/* ================================================================
   BGS NAVIGATION
   Mobile-first. CTA hidden on mobile. No orange.
   Logo: circular image. Brand text: BGS / Blessed Group of Schools
   ================================================================ */

/* ── Header shell ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-sticky);
  transition:
    background var(--dur-normal) var(--ease-out),
    box-shadow var(--dur-normal) var(--ease-out),
    padding var(--dur-normal) var(--ease-out);
}
.site-header .container {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

/* Transparent state (on hero pages) */
.site-header--transparent {
  background: transparent;
  padding-block: 1rem;
}

/* Scrolled/solid state */
.site-header--solid,
.site-header.is-scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  box-shadow: 0 1px 0 var(--border-subtle), var(--shadow-sm);
  padding-block: 0.625rem;
}

/* ── Logo ── */
.nav-logo {
  display: flex; align-items: center;
  gap: var(--s-3); text-decoration: none; flex-shrink: 0;
  min-height: 44px; /* touch target */
}
.nav-logo__img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: #fff;
  object-fit: contain;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-normal) var(--ease-out);
}
.nav-logo:hover .nav-logo__img { transform: scale(1.05); }

.nav-logo__text { display: flex; flex-direction: column; line-height: 1; }
.nav-logo__abbr {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--fw-black);
  letter-spacing: var(--tracking-tight);
  color: #fff;
  transition: color var(--dur-fast);
}
.nav-logo__name {
  font-size: 0.6rem;
  font-weight: var(--fw-semi);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color var(--dur-fast);
  line-height: 1.4;
}

/* Solid header — dark text */
.site-header--solid .nav-logo__abbr,
.site-header.is-scrolled .nav-logo__abbr { color: var(--color-primary); }
.site-header--solid .nav-logo__name,
.site-header.is-scrolled .nav-logo__name { color: var(--text-secondary); }

/* ── Primary nav ── */
.primary-nav {
  display: flex; align-items: center; gap: 0.125rem;
}
.nav-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.80);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast), background var(--dur-fast);
  position: relative;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.10); }
.nav-link.is-active { color: #fff; font-weight: var(--fw-semi); }
.nav-link.is-active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--blue-300);
}

/* Solid header nav links */
.site-header--solid .nav-link,
.site-header.is-scrolled .nav-link { color: var(--text-secondary); }
.site-header--solid .nav-link:hover,
.site-header.is-scrolled .nav-link:hover { color: var(--color-primary); background: var(--blue-50); }
.site-header--solid .nav-link.is-active,
.site-header.is-scrolled .nav-link.is-active { color: var(--color-primary); }
.site-header--solid .nav-link.is-active::after,
.site-header.is-scrolled .nav-link.is-active::after { background: var(--color-primary); }

/* ── Nav actions area ── */
.nav-actions {
  display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0;
}

/* ── Language switcher ── */
.lang-switcher {
  display: flex;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  overflow: hidden;
}
.site-header--solid .lang-switcher,
.site-header.is-scrolled .lang-switcher { border-color: var(--border-default); }

.lang-btn {
  padding: 0.3rem 0.65rem;
  font-size: var(--text-2xs); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  border: none; background: transparent; cursor: pointer;
  color: rgba(255,255,255,0.65);
  transition: background var(--dur-fast), color var(--dur-fast);
  min-height: 32px;
}
.lang-btn.is-active {
  background: rgba(255,255,255,0.18); color: #fff;
}
.site-header--solid .lang-btn,
.site-header.is-scrolled .lang-btn { color: var(--text-secondary); }
.site-header--solid .lang-btn.is-active,
.site-header.is-scrolled .lang-btn.is-active {
  background: var(--color-primary); color: #fff;
}

/* ── Header CTA — HIDDEN on mobile ── */
.nav-cta {
  display: none; /* Hidden on mobile by default */
}
@media (min-width: 1024px) {
  .nav-cta {
    display: inline-flex;
    align-items: center; gap: 0.375rem;
    padding: 0.5rem 1.25rem;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.8125rem; font-weight: var(--fw-semi);
    border-radius: var(--r-full);
    border: 2px solid var(--color-primary);
    text-decoration: none; white-space: nowrap;
    transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
    box-shadow: var(--shadow-blue);
  }
  .nav-cta:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    transform: translateY(-1px);
  }
  .site-header--transparent .nav-cta {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: none;
  }
  .site-header--transparent .nav-cta:hover {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.6);
  }
}

/* ── Hamburger ── */
.hamburger {
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  border: none; background: transparent; cursor: pointer;
  padding: 10px; border-radius: var(--r-md);
  transition: background var(--dur-fast);
}
.hamburger:hover { background: rgba(255,255,255,0.10); }
.site-header--solid .hamburger:hover,
.site-header.is-scrolled .hamburger:hover { background: var(--grey-100); }

.hamburger__bar {
  display: block; height: 2px; background: #fff;
  border-radius: var(--r-full);
  transition: transform var(--dur-normal) var(--ease-out), opacity var(--dur-fast), background var(--dur-fast);
}
.site-header--solid .hamburger__bar,
.site-header.is-scrolled .hamburger__bar { background: var(--text-primary); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ── */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--blue-950);
  z-index: var(--z-overlay);
  display: flex; flex-direction: column;
  padding: var(--s-4) var(--container-pad) var(--s-8);
  overflow-y: auto; overflow-x: hidden;
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease-out);
  visibility: hidden;
}
.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

/* ── Mobile menu close button ── */
.mobile-menu__close {
  display: flex; align-items: center; justify-content: flex-end;
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: var(--s-2);
  flex-shrink: 0;
}
.mobile-menu__close-btn {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.80);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mobile-menu__close-btn:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.mobile-menu__close-btn svg { width: 22px; height: 22px; }

.mobile-nav__item { border-bottom: 1px solid rgba(255,255,255,0.06); }
.mobile-nav__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) 0;
  font-size: 1.125rem; font-weight: var(--fw-medium);
  color: rgba(255,255,255,0.72); text-decoration: none;
  transition: color var(--dur-fast);
}
.mobile-nav__link:hover,
.mobile-nav__link[aria-current="page"] { color: #fff; }
.mobile-nav__link svg { width: 18px; height: 18px; opacity: 0.4; }

.mobile-menu__footer {
  margin-top: auto; padding-top: var(--s-7);
  display: flex; flex-direction: column; gap: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.10);
}
.mobile-lang-row {
  display: flex; gap: var(--s-3);
}
.mobile-lang-btn {
  flex: 1; padding: var(--s-3); border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent; color: rgba(255,255,255,0.55);
  font-weight: var(--fw-semi); font-size: var(--text-sm);
  cursor: pointer; text-align: center;
  transition: all var(--dur-fast);
}
.mobile-lang-btn.is-active {
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary);
}
.mobile-apply-btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-4); border-radius: var(--r-xl);
  background: var(--color-primary); color: #fff;
  font-weight: var(--fw-semi); font-size: 1rem;
  text-decoration: none; text-align: center;
  transition: background var(--dur-fast);
  box-shadow: var(--shadow-blue);
}
.mobile-apply-btn:hover { background: var(--color-primary-dark); }

.mobile-social-row {
  display: flex; align-items: center; gap: var(--s-3);
  padding-top: var(--s-3);
}
.mobile-social-link {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.60);
  transition: background var(--dur-fast), color var(--dur-fast);
}
.mobile-social-link:hover { background: var(--color-primary); color: #fff; }
.mobile-social-link svg { width: 18px; height: 18px; }

/* ── WhatsApp floating button ── */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: var(--z-overlay);
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.50);
  transition: transform var(--dur-normal) var(--ease-out), box-shadow var(--dur-normal);
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(37,211,102,0.60);
}
.whatsapp-float svg { width: 32px; height: 32px; }

/* ── Responsive: show/hide nav elements ── */
@media (min-width: 1024px) {
  .primary-nav { display: flex; }
  .hamburger { display: none; }
}
@media (max-width: 1023px) {
  .primary-nav { display: none; }
}
