#header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition:
    background-color 0.5s ease,
    border-color 0.5s ease,
    box-shadow 0.5s ease,
    color 0.5s ease;
  width: 100%;
}

#header.header-scrolled {
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(29, 32, 64, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

#header-content {
  font-size: 1rem;
  padding-inline: 2rem;
  justify-content: space-between;
  align-items: center;
  height: 3rem;
  display: flex;
  margin-inline: auto;
  max-width: 67.5rem;
  gap: 1rem;
}

#name-avance,
.nav-itens,
.fast-icons {
  color: #0e111b;
}

#name-avance {
  font-weight: 600;
  letter-spacing: 0.035rem;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  transition:
    color 0.5s ease,
    opacity 0.2s ease;
}

#name-avance:hover {
  opacity: 70%;
  transition: all 0.2s ease;
}

#navigation {
  display: flex;
  gap: 2.25rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-itens {
  letter-spacing: 0.035rem;
  opacity: 85%;
  cursor: pointer;
  font-size: 0.95rem;
  color: #ffffff;
  transition:
    color 0.5s ease,
    opacity 0.2s ease;
}

.nav-itens:hover {
  font-weight: 600;
  opacity: 100%;
  transition: all 0.2s ease;
}

#icons {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.fast-icons {
  background: none;
  border: none;
  cursor: pointer;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.88);
  transition:
    color 0.5s ease,
    opacity 0.2s ease;
}

#header-instagram-svg:hover {
  stroke-width: 2.2px;
  transition: all 0.2s ease;
  width: 18.5px;
  height: 18.5px;
}

#header-location-svg:hover {
  stroke-width: 2.2px;
  transition: all 0.2s ease;
  width: 18.5px;
  height: 18.5px;
}

#menu-button {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.5s ease;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  z-index: 300;
}

#menu-svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

#header.header-scrolled #menu-button {
  color: #1d2040;
}

#mobile-menu {
  position: fixed;
  top: 3rem;
  right: -100%;
  width: min(78vw, 320px);
  height: 70vh;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 150;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 1.5rem 1.5rem;
  transition: right 0.35s ease;
  border-bottom-left-radius: 2rem;
  box-shadow: -20px 30px 60px rgba(0, 0, 0, 0.12);
  overflow-y: auto;
  overflow-x: hidden;
}

#mobile-nav-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

#mobile-whatsapp-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.mobile-menu-open {
  right: 0 !important;
}

.mobile-nav-item {
  width: 100%;
  color: #1d2040;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    color 0.25s ease,
    padding-left 0.25s ease;
}

.mobile-nav-item:hover {
  color: #40528c;
  padding-left: 0.4rem;
}

#header.header-scrolled #name-avance {
  color: #1d2040;
}

#header.header-scrolled .nav-itens {
  color: rgba(29, 32, 64, 0.72);
}

#header.header-scrolled .nav-itens:hover {
  color: #1d2040;
}

#header.header-scrolled .fast-icons {
  color: #1d2040;
}

#mobile-whatsapp-button {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.24);
}

@media (max-width: 1024px) {
  #header-content {
    padding-inline: 3rem;
  }

  #navigation {
    gap: 1.25rem;
  }
}

@media (max-width: 768px) {
  #header {
    height: 3rem;
  }

  #header-content {
    padding-inline: 1rem;
    gap: 1rem;
    margin-inline: 2rem;
  }

  #menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #mobile-menu {
    top: 3rem;
    width: 60vw;
    max-height: 55vh;
    padding: 2.5rem 1.5rem 1.5rem;
    gap: 1.5rem;
  }

  #navigation {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    display: none;
  }

  .nav-itens {
    font-size: 0.75rem;
  }

  #icons {
    gap: 1rem;
    display: none;
  }

  #whatsapp-button {
    display: none !important;
  }

  #mobile-whatsapp-button {
    max-width: 80%;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  #header-content {
    height: 3rem;
    padding-inline: 1rem;
  }

  #name-avance {
    font-size: 1rem;
  }

  #menu-svg {
    width: 22px;
    height: 22px;
  }

  #mobile-menu {
    top: 3rem;
    width: 60vw;
    max-height: 55vh;
    padding: 2.5rem 1.5rem 1.5rem;
    gap: 1.5rem;
  }

  .mobile-nav-item {
    font-size: 1rem;
    padding: 0.2rem 0;
  }

  #mobile-whatsapp-button {
    font-size: 0.9rem;
    padding: 0.7rem 0.9rem;
    max-width: 100%;
    /* margin-top: 2.8rem; */
  }
}
