/* ──────────────────────────────────────────────
   LAYOUT — containers, nav, hero, sections, footer
─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: calc(var(--z-nav) + 50);
  background: var(--c-coral);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: var(--sp-2); }

/* ── Section scaffolding ── */
.section {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}
.section--dark {
  background: var(--grad-ocean);
  color: var(--on-dark);
}
.section--cream { background: var(--surface-cream); }
.section--white { background: var(--surface); }

.section__head {
  max-width: 720px;
  margin: 0 auto var(--sp-12);
  text-align: center;
}
.section__eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: var(--sp-3);
}
.section__title {
  font-size: var(--fs-4xl);
  letter-spacing: -0.02em;
}
.section__lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-lg);
  color: var(--c-muted);
}
.section--dark .section__lead { color: var(--on-dark-muted); }

/* ════════════ NAVBAR ════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.nav__inner {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}
.nav.is-scrolled {
  background: rgba(6, 26, 43, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), var(--sh-md);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: var(--r-full);
  background: var(--grad-teal);
  box-shadow: var(--sh-glow);
  flex-shrink: 0;
}
.brand__mark svg { width: 22px; height: 22px; color: #fff; }
.brand strong { color: var(--c-aqua); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.6vw, 1.6rem);
}
.nav__links a {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  font-size: var(--fs-sm);
  padding-block: var(--sp-2);
  transition: color var(--t-fast);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--c-coral);
  border-radius: 2px;
  transition: width var(--t-base);
}
.nav__links a:hover,
.nav__links a.is-active { color: #fff; }
.nav__links a:hover::after,
.nav__links a.is-active::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: var(--sp-3); }

/* Hamburger */
.nav__burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__burger span {
  width: 22px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-base);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ════════════ HERO ════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    var(--grad-hero-veil),
    radial-gradient(120% 80% at 75% 10%, #1268b3 0%, transparent 55%),
    var(--grad-ocean);
  background-size: cover;
  background-position: center;
}
/* Background video (muted autoplay loop); .hero__bg gradient shows beneath as a fallback */
.hero__video {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Veil over the video so the headline + CTAs stay readable */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-hero-veil);
}
/* Animated wave shimmer layer */
.hero__shine {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 60%;
  z-index: -1;
  background: radial-gradient(60% 60% at 50% 0%, rgba(95,214,227,0.22), transparent 70%);
  filter: blur(20px);
  animation: heroGlow 9s ease-in-out infinite alternate;
}
.hero__inner { padding-block: calc(var(--nav-h) + 2rem) 4rem; max-width: 800px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(6px);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-bottom: var(--sp-6);
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.hero__badge:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}
.hero__badge .stars { color: var(--c-gold); letter-spacing: 2px; }
.hero__badge-arrow { width: 14px; height: 14px; opacity: 0.8; }
.hero__title {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero__title .accent {
  background: linear-gradient(120deg, var(--c-aqua), var(--c-teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  margin-top: var(--sp-6);
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
}
.hero__cta {
  margin-top: var(--sp-10);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}
.hero__meta {
  margin-top: var(--sp-12);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
}
.hero__stat .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-3xl);
  color: var(--c-aqua);
}
.hero__stat .label {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.7);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: var(--sp-6);
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  animation: bob 2.4s ease-in-out infinite;
  transition: opacity var(--t-base);
}
.hero__scroll.is-hidden { opacity: 0; pointer-events: none; }
.hero__scroll span.dot {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--r-full);
  position: relative;
}
.hero__scroll span.dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 7px;
  width: 4px; height: 7px;
  margin-left: -2px;
  background: #fff;
  border-radius: 2px;
  animation: scrollDot 2.4s ease-in-out infinite;
}

/* ════════════ FOOTER ════════════ */
.footer {
  background: var(--c-deep);
  color: var(--on-dark-muted);
  padding-block: var(--sp-16) var(--sp-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-10);
  margin-bottom: var(--sp-12);
}
.brand__logo { display: block; height: 52px; width: auto; }
.footer__brand .brand { margin-bottom: var(--sp-4); }
.footer__brand .brand__logo { height: 52px; }
.footer h4 {
  color: #fff;
  font-size: var(--fs-base);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-4);
}
.footer ul li { margin-bottom: var(--sp-2); }
.footer a:hover { color: var(--c-aqua); }
.footer__socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-4); }
.footer__socials a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: var(--r-full);
  background: rgba(255,255,255,0.08);
  transition: background var(--t-fast), transform var(--t-fast);
}
.footer__socials a:hover { background: var(--c-teal); transform: translateY(-3px); }
.footer__socials svg { width: 20px; height: 20px; }
.footer__bottom {
  border-top: 1px solid var(--c-line-d);
  padding-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
}
