/* ========================================
   UNIFIED HEADER & MOBILE NAV CSS
   Single source of truth for all pages
   ======================================== */

/* --- Glassmorphism Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.04);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: saturate(1.8) blur(24px);
    -webkit-backdrop-filter: saturate(1.8) blur(24px);
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 78px;
}

/* --- Brand --- */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}
.brand img {
  width: 180px;
  height: auto;
  flex: none;
}

/* --- Desktop Nav --- */
.nav ul {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  position: relative;
  display: block;
  font: 600 0.9rem "Poppins", system-ui, -apple-system, sans-serif;
  color: #0A1128;
  text-decoration: none;
  padding: 0.65em 0.85em;
  border-radius: 8px;
  transition: color 0.25s ease;
}
.nav a:hover {
  color: #3B82F6;
}
.nav a[aria-current="page"] {
  color: #3B82F6;
  font-weight: 700;
}
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.85em;
  right: 0.85em;
  bottom: 0.25em;
  height: 2px;
  background: #3B82F6;
}
.nav__quote {
  display: none;
}

/* --- Header Actions --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* --- Nav Toggle Button (hidden on desktop) --- */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1.5px solid #DDE1E8;
  background: #FFFFFF;
  color: #0A1128;
  cursor: pointer;
  place-items: center;
  padding: 0;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle * {
  pointer-events: none;
}
.nav-toggle .i {
  width: 24px;
  height: 24px;
  display: block;
}
.nav-toggle .i--close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .i--menu {
  display: none;
}
.nav-toggle[aria-expanded="true"] .i--close {
  display: block;
}

/* --- Mobile Breakpoint (<=1023px) --- */
@media (max-width: 1023px) {
  .nav-toggle {
    display: grid !important;
    align-items: center;
    justify-content: center;
  }
  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 2px solid #FF5E00;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    display: none;
    z-index: 99999;
  }
  .nav.is-open {
    display: block !important;
  }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 24px 24px;
    gap: 0;
  }
  .nav a {
    padding: 14px 8px;
    border-bottom: 1px solid #DDE1E8;
    border-radius: 0;
    font-size: 1.05rem;
    color: #0A1128;
    display: block;
  }
  .nav a[aria-current="page"] {
    color: #FF5E00;
    font-weight: 700;
  }
  .nav a[aria-current="page"]::after {
    display: none;
  }
  .nav__quote {
    display: block;
    padding-top: 16px;
  }
  .nav__quote a {
    border: 0;
    color: #ffffff !important;
    text-align: center;
    width: 100%;
    display: block;
    padding: 12px 24px;
  }
}

/* --- Small Mobile (<=560px) --- */
@media (max-width: 560px) {
  .header-quote {
    display: none !important;
  }
  .brand img {
    width: 150px;
  }
}
