/* HEADER */

body.lock-scroll {
  overflow: hidden;
  height: 100vh;
}

header {
    position: fixed;
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: calc(var(--index) * 1) calc(var(--index) * 2);
    z-index: 3;
}

header > div {
    flex: 1;
}

.logo_name {
    text-decoration: none;
    font-size: calc(var(--index) * 0.9);
    font-family: 'Bebas', sans-serif;
    width: 20%;
    color: var(--support_color);
    line-height: 0.8;
    transition: color 1s;
}

.logo_name span {
    font-size: calc(var(--index) * 0.8);
    vertical-align: super;
}

.logo_slogan {
    margin-top: 5px;
    font-family: 'Montserrat';
    font-size: calc(var(--index) * 0.7);
    font-weight: 700;
    width: 35%;
    color: var(--support_color);
    transition: color 1.5s;
}

.logo_name.active, .logo_slogan.active {
    color: var(--main_color);
}

.toggle-btn {
    display: flex;
    justify-content: flex-end;
}

.burger {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.75em 2em 1.5em 2em;
    background: rgba(255, 255, 255, 0);
    border-radius: 0.25em;
    outline: none;
    height: 20px;
    width: 28px;
    border: none;
    transition: all 250ms ease-out;
    cursor: pointer;
}

.burger:before,
.burger::after {
  content: "";
  width: 40px;
  height: 2px;
  position: absolute;
  background: var(--support_color);
  transition: all 250ms ease-out;
  will-change: transform;

}

.burger:before {
  transform: translateY(-3px);
}

.burger::after {
  transform: translateY(3px);
}

.active.burger:before {
  transform: translateY(0) rotate(45deg);
  background: var(--main_color);

}

.active.burger:after {
  transform: translateY(0) rotate(-45deg);
  background: var(--main_color);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: flex;
  background: var(--support_color);
  clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  will-change: transform;
  z-index: 2;
}

.overlay-menu {
  position: fixed;
  top: 45%;
  left: 2%;
  width: 100vw;
  height: 100vh;
  display: flex;
  gap: 1em;
  flex-direction: column;
  justify-content: left;
  align-items: left;
  line-height: 0.8;
}

.menu-item {
  display: flex;
  cursor: pointer;
}

.menu-item p {
  font-family: 'Bebas';
  position: relative;
  font-size: calc(var(--index) * 7);
}

.sub-nav {
  position: absolute;
  top: 40%;
  right: 10%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  opacity: 0;
}

.content_name {
  font-family: 'Bebas';
  font-size: 24px;
  color: #7f7f7f;
  margin-bottom: 40px;
}

.type_of {
  position: relative;
  font-size: 24px;
  font-family: 'Montserrat';
  color: #7f7f7f;
  text-transform: uppercase;

}

.type_of::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: #CDC6BE;
  transition: width 0.3s ease;
}

.type_of:hover::after {
  width: 100%;
}

/* FOOTER */

footer {
  padding: calc(var(--index) * 1) calc(var(--index) * 2);
  width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: center;
  
}

footer a{
  text-decoration: none;
  color: var(--support_color);
}

footer p {
  font-size: calc(var(--index) * 0.5);
  font-family: 'Montserrat';
  font-weight: 700;
}



@media (max-width: 768px) {
  header {
    height: 15vh;
    position: relative;
  }

  .logo-main img {
    display: none;
  }

  a {
    text-decoration: none;
    color: #cdc6be;
  }

  nav {
    position: fixed;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5em 2em;
    z-index: 2;
  }

  nav > div {
    flex: 1;
  }

  .logo_name {
    text-decoration: none;
    font-size: 24px;
    width: 50%;
    font-family: 'Bebas', sans-serif;
    color: #1F1F1F;
    line-height: 0.9;
    transition: color 1.5s;
    margin-top: 20px;
  }

  .logo_name.active {
    color: #CDC6BE;
  }

  .logo_name span {
    display: none;
  }

  .logo_slogan {
    margin-top: 5px;
    font-size: 16px;
    font-weight: 700;
    width: 100%;
    color: #1F1F1F;
    transition: color 1.5s;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
  }

  .overlay-menu {
    position: fixed;
    top: 40%;
    height: 50vh;
    padding-left: calc(var(--index) * 1);
    display: flex;
    flex-direction: column;
    gap: 1em;
    justify-content: flex-start;
    align-items: flex-start;
    color: #fff;
  }

  .menu-item {
    display: flex;
    cursor: pointer;
  }

  .menu-item p {
    font-family: 'Bebas', sans-serif;
    font-size: calc(var(--index) * 8);
    margin: 0;
  }

  .type_of:hover::after {
    width: 50%;
  }

  .sub-nav {
    position: absolute;
    top: auto;
    bottom: 10%;
    left: 0;
    padding-left: calc(var(--index) * 2);
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    opacity: 0;
    transform: none;
  }

  

  footer p {
    font-size: calc(var(--index) * 0.5);
  }

}