/* ============================================================
   NAV.CSS — Navigation bar & mobile drawer
   Barnet Premier Swim
   ============================================================ */

nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  background: rgba(11, 37, 69, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: box-shadow 0.3s var(--ease);
}
nav.scrolled { box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4); }

/* Logo */
.nav-brand { display: flex; align-items: center; }

.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Desktop links — hidden on mobile */
.nav-links {
  display: none;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.87rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-pill {
  background: var(--pool);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600 !important;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: none;
  -webkit-tap-highlight-color: transparent;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mob-menu {
  position: fixed;
  inset: 70px 0 0 0;
  background: var(--navy);
  z-index: 190;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mob-menu.open { transform: translateX(0); }
.mob-menu a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.2rem;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: color 0.2s;
}
.mob-menu a:hover { color: var(--pool); }

.mob-cta {
  margin-top: 20px;
  background: var(--pool) !important;
  color: var(--navy) !important;
  border-radius: var(--r-md) !important;
  text-align: center;
  border-bottom: none !important;
  font-family: 'Outfit', sans-serif !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
}