/* ============================================
   JOLLY EDUCATION — Shared Stylesheet
   Modern · Warm · Playful · Trusted
   ============================================ */

:root {
  /* Core palette */
  --teal: #5BBDB1;
  --teal-dark: #4AA89D;
  --teal-light: #8ED4CB;
  --yellow: #F6C445;
  --yellow-dark: #E5B53A;
  --coral: #F28C7A;
  --coral-dark: #E07A68;
  --cream: #FFF7EC;
  --cream-warm: #FBEED9;
  --navy: #2F3A4A;
  --navy-soft: #5A6577;
  --white: #FFFFFF;
  --light-gray: #F8F6F3;
  --border: rgba(47, 58, 74, 0.08);

  /* Logo colors */
  --logo-pink: #E6007E;
  --logo-blue: #1E88E5;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(47, 58, 74, 0.06);
  --shadow-md: 0 6px 20px rgba(47, 58, 74, 0.08);
  --shadow-lg: 0 16px 40px rgba(47, 58, 74, 0.12);
  --shadow-coral: 0 8px 24px rgba(242, 140, 122, 0.32);
  --shadow-teal: 0 8px 24px rgba(91, 189, 177, 0.3);
  --shadow-yellow: 0 8px 24px rgba(246, 196, 69, 0.32);

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Type */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p { color: var(--navy-soft); }

::selection { background: var(--yellow); color: var(--navy); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm { max-width: 820px; }
.container-xs { max-width: 640px; }

section {
  padding: clamp(64px, 10vw, 112px) 0;
  position: relative;
}

.section-cream { background: var(--cream); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.8); }

.section-title {
  text-align: center;
  margin-bottom: clamp(40px, 6vw, 64px);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-title .eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(91, 189, 177, 0.12);
  border-radius: var(--r-pill);
}
.section-title h2 { margin-bottom: 14px; }
.section-title p { font-size: 1.05rem; }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s var(--ease-bounce);
}
.logo:hover { transform: scale(1.04); }
.logo-img {
  height: 56px;
  width: auto;
  display: block;
}
/* Footer logo sits on navy — keep full color but size slightly smaller */
footer .logo-img { height: 60px; }
@media (max-width: 768px) {
  .logo-img { height: 44px; }
  footer .logo-img { height: 52px; }
}

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
  list-style: none;
}
.nav-links a {
  padding: 10px 16px;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  transition: all 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--teal); background: rgba(91, 189, 177, 0.08); }
.nav-links a.active { color: var(--teal); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 20px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
  transform: translateX(-50%);
}

/* Dropdown (desktop) */
.nav-links .has-submenu { position: relative; }
.nav-links .submenu-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 16px;
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s var(--ease);
}
.nav-links .submenu-toggle:hover,
.nav-links .has-submenu:hover .submenu-toggle,
.nav-links .has-submenu.open .submenu-toggle { color: var(--teal); background: rgba(91, 189, 177, 0.08); }
/* Highlight dropdown toggle when current page is one of its submenu items */
.nav-links .has-submenu:has(a.active) .submenu-toggle { color: var(--teal); }
.nav-links .submenu-toggle .caret {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.2s var(--ease);
}
.nav-links .has-submenu:hover .submenu-toggle .caret,
.nav-links .has-submenu.open .submenu-toggle .caret { transform: rotate(180deg); }
.nav-links .submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 8px;
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 100;
}
.nav-links .has-submenu:hover .submenu,
.nav-links .has-submenu:focus-within .submenu,
.nav-links .has-submenu.open .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-links .submenu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.92rem;
  white-space: nowrap;
  border-radius: var(--r-md);
}
.nav-links .submenu a::after { display: none; }

/* Language switcher */
.lang-switch {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-left: 4px;
  border-radius: var(--r-pill);
  background: rgba(91, 189, 177, 0.08);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch a {
  padding: 2px 6px !important;
  color: var(--navy-soft) !important;
  background: transparent !important;
  border-radius: 6px;
  transition: color .2s ease, background .2s ease;
}
.lang-switch a:hover { color: var(--teal) !important; }
.lang-switch a.lang-active {
  color: var(--teal) !important;
  background: var(--white) !important;
  box-shadow: 0 1px 3px rgba(47,58,74,0.08);
}
.lang-switch a.lang-active::after { display: none !important; }
.lang-sep { color: var(--navy-soft); opacity: 0.35; font-weight: 400; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.nav-toggle:hover { background: var(--cream); }
.nav-toggle span {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-pill);
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-coral);
}
.btn-primary:hover { background: var(--coral-dark); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(242,140,122,0.45); }

.btn-secondary {
  background: var(--yellow);
  color: var(--navy);
  box-shadow: var(--shadow-yellow);
}
.btn-secondary:hover { background: var(--yellow-dark); transform: translateY(-2px); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(47,58,74,0.15);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); background: rgba(91,189,177,0.05); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { display: flex; width: 100%; }

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ============================================
   HERO (with looping video)
   ============================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cream) 0%, #FDE8D0 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(47, 58, 74, 0.15) 0%, rgba(47, 58, 74, 0.55) 100%),
    linear-gradient(90deg, rgba(47, 58, 74, 0.4) 0%, rgba(47, 58, 74, 0.05) 60%);
}

/* Fallback animated gradient if no video loads */
.hero-fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(246, 196, 69, 0.6), transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(242, 140, 122, 0.55), transparent 45%),
    radial-gradient(circle at 60% 20%, rgba(91, 189, 177, 0.5), transparent 45%),
    var(--cream);
  animation: heroShift 16s ease-in-out infinite alternate;
}
@keyframes heroShift {
  0% { filter: hue-rotate(0deg); transform: scale(1); }
  100% { filter: hue-rotate(15deg); transform: scale(1.05); }
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-inner {
  max-width: 760px;
  color: var(--white);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-md);
  animation: fadeUp 0.8s var(--ease) 0.1s both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(91,189,177,0.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(91,189,177,0.3); }
  50% { box-shadow: 0 0 0 8px rgba(91,189,177,0.1); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.25);
  animation: fadeUp 0.8s var(--ease) 0.2s both;
}
.hero h1 .highlight {
  color: var(--yellow);
  font-style: italic;
  position: relative;
  display: inline-block;
}
.hero h1 .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 8px;
  background: rgba(246, 196, 69, 0.3);
  border-radius: 8px;
  z-index: -1;
}

.hero p {
  color: rgba(255,255,255,0.95);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 620px;
  margin-bottom: 32px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
  animation: fadeUp 0.8s var(--ease) 0.3s both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  animation: fadeUp 0.8s var(--ease) 0.4s both;
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  margin-top: 18px;
  animation: fadeUp 0.8s var(--ease) 0.5s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero trust strip */
.hero-trust {
  position: absolute;
  bottom: 24px;
  left: 0; right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 0 24px;
  animation: fadeUp 1s var(--ease) 0.7s both;
}
.hero-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}
.hero-trust-item svg { width: 18px; height: 18px; color: var(--teal); }

/* ============================================
   FEATURE CARDS
   ============================================ */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.05;
  transition: transform 0.5s var(--ease);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scale(1.5); }
.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
  transition: transform 0.3s var(--ease-bounce);
}
.feature-card:hover .feature-icon { transform: rotate(-6deg) scale(1.08); }
.icon-teal   { background: rgba(91, 189, 177, 0.15); color: var(--teal); }
.icon-yellow { background: rgba(246, 196, 69, 0.18); color: var(--yellow-dark); }
.icon-coral  { background: rgba(242, 140, 122, 0.18); color: var(--coral); }

.feature-card h3 { margin-bottom: 10px; font-size: 1.25rem; }
.feature-card p { font-size: 0.95rem; line-height: 1.65; }

/* ============================================
   PROGRAM CARDS
   ============================================ */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.program-card {
  background: var(--white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s var(--ease);
  position: relative;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.program-header {
  padding: 32px 28px 28px;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.program-header::after {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.program-header.teal { background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%); }
.program-header.coral { background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 100%); }
.program-header.yellow { background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-dark) 100%); color: var(--navy); }
.program-header.navy { background: linear-gradient(135deg, var(--navy) 0%, #1e2634 100%); }
.program-header h3 {
  color: inherit;
  font-size: 1.5rem;
  margin-bottom: 6px;
  position: relative;
  z-index: 1;
}
.program-header .grade-band {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255,255,255,0.22);
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.program-header.yellow .grade-band { background: rgba(47,58,74,0.15); }

.program-body { padding: 28px; }
.program-body .tagline {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.program-body p { font-size: 0.95rem; margin-bottom: 20px; }
.program-detail {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px dashed var(--border);
  font-size: 0.9rem;
}
.program-detail:first-of-type { border-top: 0; }
.program-detail span { color: var(--navy-soft); }
.program-detail strong { color: var(--navy); font-weight: 600; }

/* Inline badge variant (used on ZH program & index cards).
   Sits as a pill at the top of a .program-card. Needs vertical padding
   so CJK ascenders aren't clipped by the card's rounded-corner overflow. */
.program-badge {
  display: inline-block;
  margin: 24px 28px 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
/* When a .program-badge sits directly above an h3, pull the h3 closer. */
.program-card .program-badge + h3 {
  margin: 14px 28px 0;
  font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem);
  color: var(--navy);
}
/* Give the rest of the zh card content consistent padding. */
.program-card .program-badge ~ p,
.program-card .program-badge ~ ul,
.program-card .program-badge ~ .btn,
.program-card .program-badge ~ a {
  margin-left: 28px;
  margin-right: 28px;
}
.program-card .program-badge ~ .btn,
.program-card .program-badge ~ a.link-arrow {
  margin-bottom: 28px;
}
.program-card .program-badge ~ a.link-arrow { display: inline-block; }
.program-card .program-list {
  list-style: none;
  padding: 0;
  margin: 0 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.program-card .program-list li {
  font-size: 0.92rem;
  color: var(--navy-soft);
  line-height: 1.55;
}
.program-card .program-list li strong { color: var(--navy); font-weight: 600; }
.program-card .program-tag {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy);
  font-size: 1.05rem;
  margin: 14px 28px 12px !important;
}

/* ============================================
   PROMISE GRID (checkmarks)
   ============================================ */
.promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.promise-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px;
  background: var(--white);
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  transition: all 0.25s var(--ease);
}
.promise-item:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.promise-check {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: var(--shadow-teal);
}
.promise-item h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  margin-bottom: 4px;
}
.promise-item p { font-size: 0.9rem; line-height: 1.55; }

/* ============================================
   APPROACH STEPS (numbered, Diagnose → Fix → Train → Advance)
   ============================================ */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  position: relative;
}
.approach-step {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s var(--ease);
  border: 1px solid var(--border);
}
.approach-step:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.approach-number {
  position: absolute;
  top: -20px;
  left: 28px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: var(--shadow-yellow);
  transform: rotate(-4deg);
  transition: transform 0.3s var(--ease-bounce);
}
.approach-step:hover .approach-number { transform: rotate(0deg) scale(1.08); }
.approach-step h3 { margin-top: 8px; margin-bottom: 10px; font-size: 1.25rem; color: var(--teal); }
.approach-step p { font-size: 0.95rem; }

/* Systems table */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.system-card {
  background: var(--white);
  border-radius: var(--r-lg);
  padding: 28px;
  border-top: 4px solid var(--teal);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s var(--ease);
}
.system-card:nth-child(2) { border-top-color: var(--yellow); }
.system-card:nth-child(3) { border-top-color: var(--coral); }
.system-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.system-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.system-card .system-desc { font-size: 0.95rem; margin-bottom: 16px; }
.system-card .system-output {
  display: inline-block;
  padding: 8px 14px;
  background: var(--cream);
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* ============================================
   STATS / NUMBERS
   ============================================ */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 48px;
  background: var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  margin-top: -60px;
  position: relative;
  z-index: 2;
}
.stat { text-align: center; }
.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy-soft);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   LAUNCH INCENTIVES STRIP (home page)
   ============================================ */
.launch-strip {
  padding: clamp(48px, 7vw, 80px) 24px;
  background: linear-gradient(180deg, var(--cream) 0%, #FFF1DC 100%);
  border-top: 1px solid rgba(91,189,177,0.15);
  border-bottom: 1px solid rgba(91,189,177,0.15);
}
.launch-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  border: 2px dashed rgba(242,140,122,0.35);
}
.launch-strip-head { text-align: center; margin-bottom: 32px; }
.launch-strip-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  background: rgba(242,140,122,0.12);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: 14px;
}
.launch-strip-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0;
  color: var(--navy);
}
.launch-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.launch-strip-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--cream);
  padding: 20px 22px;
  border-radius: var(--r-md);
}
.launch-strip-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.launch-strip-item:nth-child(2) .launch-strip-icon { background: var(--teal); }
.launch-strip-item:nth-child(3) .launch-strip-icon { background: var(--yellow-dark); }
.launch-strip-item h4 {
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: var(--navy);
}
.launch-strip-item p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--navy-soft);
  line-height: 1.5;
}
.launch-strip-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.launch-strip-fineprint {
  font-size: 0.78rem;
  color: var(--navy-soft);
  opacity: 0.8;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  padding: clamp(56px, 8vw, 88px) 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before, .cta-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  animation: floatSlow 8s ease-in-out infinite alternate;
}
.cta-banner::before {
  width: 240px; height: 240px;
  top: -80px; left: -80px;
}
.cta-banner::after {
  width: 180px; height: 180px;
  bottom: -60px; right: -60px;
  animation-delay: 2s;
}
@keyframes floatSlow {
  from { transform: translate(0, 0); }
  to { transform: translate(20px, 20px); }
}
.cta-banner-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.92); font-size: 1.05rem; margin-bottom: 28px; }

/* ============================================
   FAQ ACCORDION
   ============================================ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all 0.25s var(--ease);
}
.faq-item:hover { border-color: rgba(91,189,177,0.3); }
.faq-item.open { border-color: var(--teal); box-shadow: var(--shadow-sm); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  text-align: left;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
}
.faq-toggle {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
  color: var(--teal);
  font-size: 1.2rem;
  font-weight: 700;
}
.faq-item.open .faq-toggle { background: var(--teal); color: var(--white); transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease), padding 0.35s var(--ease);
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 320px; padding: 0 24px 22px; }
.faq-answer p { font-size: 0.98rem; line-height: 1.7; }

/* ============================================
   FORMS (booking page)
   ============================================ */
.form-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-field label .req { color: var(--coral); }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 2px solid var(--border);
  background: var(--cream);
  border-radius: var(--r-md);
  font-size: 1rem;
  transition: all 0.2s var(--ease);
  font-family: inherit;
  color: var(--navy);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(91,189,177,0.15);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 0.85rem; color: var(--navy-soft); margin-top: 20px; text-align: center; }

/* What happens / process list */
.process-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  counter-reset: step;
}
.process-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  counter-increment: step;
}
.process-list li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
}
.process-list li h4 { margin-bottom: 4px; font-size: 1rem; }
.process-list li p { font-size: 0.92rem; }

/* ============================================
   PAGE HEADER (for non-home pages)
   ============================================ */
.page-header {
  padding: clamp(72px, 10vw, 120px) 24px clamp(56px, 8vw, 88px);
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-warm) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header::before, .page-header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}
.page-header::before {
  width: 240px; height: 240px;
  top: -80px; left: -60px;
  background: radial-gradient(circle, rgba(91,189,177,0.3), transparent 70%);
}
.page-header::after {
  width: 280px; height: 280px;
  bottom: -100px; right: -80px;
  background: radial-gradient(circle, rgba(246,196,69,0.35), transparent 70%);
}
.page-header-inner { position: relative; z-index: 1; max-width: 820px; margin: 0 auto; }
.page-header h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 16px;
}
.page-header h1 .highlight {
  color: var(--teal);
  font-style: italic;
}
.page-header p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 640px;
  margin: 0 auto;
}

/* ============================================
   FLOATING SHAPES (decorative)
   ============================================ */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
.shape-teal   { background: radial-gradient(circle, rgba(91, 189, 177, 0.4), transparent 70%); }
.shape-yellow { background: radial-gradient(circle, rgba(246, 196, 69, 0.4), transparent 70%); }
.shape-coral  { background: radial-gradient(circle, rgba(242, 140, 122, 0.4), transparent 70%); }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.92rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--yellow); }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; line-height: 1.6; max-width: 300px; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.footer-bottom .heart { color: var(--coral); }

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 18px; font-size: 1rem; width: 100%; border-radius: var(--r-md); }
  .nav-links .btn { width: 100%; margin-top: 6px; }
  .lang-switch { width: 100%; justify-content: center; margin: 8px 0 4px; padding: 8px 10px; }
  .lang-switch a { padding: 6px 14px !important; width: auto; font-size: 0.95rem; }

  /* Dropdown flattens on mobile — show toggle as label, submenu inline */
  .nav-links .has-submenu { width: 100%; }
  .nav-links .submenu-toggle {
    display: none; /* hide the collapsed label — items appear inline instead */
  }
  .nav-links .submenu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .nav-links .submenu a { padding: 14px 18px; font-size: 1rem; }

  .hero { min-height: 82vh; }
  .hero-content { padding: 60px 20px; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { display: none; }

  .stats-strip { padding: 32px 20px; margin-top: -40px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
