/* Site header — glass over hero, solid on scroll */

#navbar {
  isolation: isolate;
  background: transparent;
  border: none;
  box-shadow: none;
}

#navbar::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(28px) saturate(190%) brightness(1.08);
  -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.08);
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 1px 12px rgba(15, 23, 42, 0.04);
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

#navbar.nav-over-hero::before {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(22px) saturate(175%) brightness(1.06);
  -webkit-backdrop-filter: blur(22px) saturate(175%) brightness(1.06);
  border-bottom-color: rgba(255, 255, 255, 0.22);
}

#navbar.nav-scrolled::before {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 4px 24px rgba(1, 102, 68, 0.08);
}

#navbar .nav-inner,
#navbar #mobileMenu {
  position: relative;
  z-index: 1;
}

#mobileMenu {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-top-color: rgba(255, 255, 255, 0.4) !important;
}

#navbar.nav-over-hero #mobileMenu {
  background: rgba(1, 45, 30, 0.94);
  backdrop-filter: blur(28px) saturate(165%);
  -webkit-backdrop-filter: blur(28px) saturate(165%);
  border-top-color: rgba(255, 255, 255, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#navbar.nav-over-hero #mobileMenu .nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
}

#navbar.nav-over-hero #mobileMenu .nav-link:hover,
#navbar.nav-over-hero #mobileMenu .nav-link--active {
  color: #f7af28;
}

#navbar.nav-over-hero #mobileMenu .border-silver-border {
  border-color: rgba(255, 255, 255, 0.14) !important;
}

#navbar.nav-scrolled #mobileMenu {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top-color: #e2e8f0 !important;
}

#navbar.nav-scrolled #mobileMenu .nav-link {
  color: #016644;
  text-shadow: none;
}

#navbar.nav-over-hero .nav-link {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35);
}

#navbar.nav-over-hero .nav-link:hover,
#navbar.nav-over-hero .nav-link--active {
  color: #f7af28;
}

#navbar.nav-over-hero .nav-link::after {
  background: #f7af28;
}

#navbar.nav-over-hero .nav-cta {
  background: #f7af28;
  color: #251a00;
  border: none;
}

#navbar.nav-over-hero .nav-cta:hover {
  background: #d99520;
  color: #251a00;
}

#navbar.nav-over-hero #menuBtn {
  color: #f7af28;
}

#navbar.nav-scrolled .nav-link {
  color: #016644;
  text-shadow: none;
}

#navbar.nav-scrolled .nav-link:hover,
#navbar.nav-scrolled .nav-link--active {
  color: #014d33;
}

#navbar.nav-scrolled .nav-link::after {
  background: #016644;
}

#navbar.nav-scrolled .nav-cta {
  background: #f7af28;
  color: #251a00;
  border: none;
}

#navbar.nav-scrolled .nav-cta:hover {
  background: #d99520;
  color: #251a00;
}

@media (max-width: 767px) {
  #mobileMenu {
    margin-left: -20px;
    margin-right: -20px;
    max-width: none;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  #navbar.nav-over-hero:has(#mobileMenu:not(.hidden))::before {
    background: rgba(1, 45, 30, 0.96);
    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  #navbar.nav-over-hero:has(#mobileMenu:not(.hidden)) #mobileMenu {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
  }

  #navbar.nav-over-hero #menuBtn,
  #navbar.nav-scrolled #menuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  #menuBtn {
    display: none !important;
  }
}

#navbar.nav-scrolled #menuBtn {
  color: #016644;
}

.nav-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-menu {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.nav-actions {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.nav-link {
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #f7af28;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link--active::after {
  width: 100%;
}

.nav-link--active {
  font-weight: 700;
}

#navbar.nav-over-hero .nav-link--active {
  color: #f7af28;
}

#navbar.nav-scrolled .nav-link--active {
  color: #014d33;
}

.nav-cta {
  font-family: 'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left 44%;
  transform: translateY(-5px);
  image-rendering: auto;
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.35s ease;
}

.logo-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: center;
  height: 40px;
  line-height: 0;
}

.logo-img--white {
  position: relative;
  z-index: 1;
}

.logo-img--green {
  position: absolute;
  left: 0;
  top: 0;
  height: 40px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left 44%;
  transform: translateY(-5px);
  opacity: 0;
  z-index: 2;
}

#navbar.nav-scrolled .logo-img--white {
  opacity: 0;
}

#navbar.nav-scrolled .logo-img--green {
  opacity: 1;
}

@media (min-width: 1024px) {
  .logo-img,
  .logo-img--green {
    height: 44px;
    max-width: 256px;
    transform: translateY(-6px);
  }

  .logo-wrap {
    height: 44px;
  }

  .nav-link {
    font-size: 0.84375rem;
  }
}
