/* ========================================
   Navbar — Shared across all pages
   ======================================== */

/* Frosted glass background */
.header {
  --background-color: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: padding 0.5s ease, background-color 0.5s ease;
}

/* Scrolled state — solid white background */
.scrolled .header {
  --background-color: #ffffff !important;
}

/* Desktop: compact on hero, 20px padding on scroll */
@media (min-width: 769px) {
  .header {
    padding: 0 !important;
  }
  .scrolled .header {
    padding: 20px 0 !important;
  }
}

/* Mobile + tablet: always 20px padding, no backdrop-filter to avoid stacking conflict */
@media (max-width: 1199px) {
  .header,
  .scrolled .header {
    padding: 20px 0 !important;
  }
  .header {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* Mobile nav: ensure menu renders above all layers */
.mobile-nav-active .navmenu {
  z-index: 99999 !important;
}

@media (max-width: 1199px) {
  .mobile-nav-active .navmenu > ul {
    inset: 0 !important;
    border-radius: 0 !important;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #000 !important;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .navmenu > ul {
    padding-top: 60px;
  }

  .navmenu a {
    font-size: 22px !important;
  }

  .navmenu a::after {
    font-family: "bootstrap-icons";
    content: "\F285";
    font-size: 14px;
    line-height: 1;
    color: var(--nav-dropdown-color);
    opacity: 0.5;
  }
}
