/* ═══════════════════════════════════════════════════
   YOUNGFERNS Kids Therapy & Learning Center
   Shared Stylesheet v4
   Ipoh, Perak, Malaysia
═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Fredoka+One&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --green-dark: #1b4332;
  --green:      #2d6a4f;
  --green-mid:  #40916c;
  --green-light:#74c69d;
  --green-pale: #d8f3dc;
  --green-mint: #f0faf4;
  --amber:      #f4a261;
  --amber-dark: #e76f51;
  --orange:     #ff7a18;
  --orange-pale:#fff1e6;
  --yellow:     #ffd166;
  --wa:         #25d366;
  --white:      #ffffff;
  --cream:      #fefdf9;
  --ink:        #1a2e1f;
  --body:       #374151;
  --muted:      #6b7280;
  --border:     #d1e8d8;
  --radius:     14px;
  --radius-sm:  8px;
  --shadow:     0 2px 12px rgba(27,67,50,.10);
  --shadow-lg:  0 8px 40px rgba(27,67,50,.15);
  --font-head:  'Fredoka One', 'Nunito', sans-serif;
  --font-body:  'Quicksand', 'Nunito', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--body);
  line-height: 1.65;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; }
button { cursor: pointer; font-family: var(--font-body); border: none; background: none; }

/* ── LAYOUT ── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 52px 0; }
.section-mint { background: var(--green-mint); }
.section-green { background: var(--green-dark); }
.section-cream { background: var(--cream); }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; color: var(--green-dark); }
h1 { font-size: clamp(32px, 5vw, 58px); }
h2 { font-size: clamp(24px, 3.5vw, 40px); margin-bottom: 14px; }
h3 { font-size: clamp(18px, 2.5vw, 24px); margin-bottom: 8px; }
p  { font-size: 15.5px; line-height: 1.78; margin-bottom: 12px; }
.lead { font-size: 18px; color: var(--muted); line-height: 1.75; }
/* Bright-orange brand highlight for key words */
.hl { color: var(--orange); font-style: normal; }
.eyebrow {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--green-mid);
  margin-bottom: 10px;
  border-bottom: 2px solid var(--green-light); padding-bottom: 2px;
}
/* White text on green backgrounds */
.section-green h1,
.section-green h2,
.section-green h3,
.section-green h4,
.section-green p,
.section-green .lead,
.section-green .eyebrow,
.green-bg h1,
.green-bg h2,
.green-bg h3,
.green-bg p,
.green-bg .eyebrow,
.green-bg .lead { color: var(--white) !important; }
.section-green .eyebrow { color: var(--green-light) !important; border-color: var(--green-light); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 50px;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  transition: all .22s; cursor: pointer; white-space: nowrap;
  text-decoration: none; border: none;
}
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 4px 16px rgba(45,106,79,.25); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-amber { background: var(--amber); color: var(--white); box-shadow: 0 4px 16px rgba(244,162,97,.3); }
.btn-amber:hover { background: var(--amber-dark); transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: var(--white); box-shadow: 0 4px 16px rgba(37,211,102,.28); }
.btn-wa:hover { background: #128c7e; transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green); color: var(--white); }
.btn-white { background: var(--white); color: var(--green-dark); }
.btn-white:hover { background: var(--green-pale); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; }

/* ── CARDS ── */
.card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: box-shadow .22s, transform .22s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }

/* ── TAGS ── */
.tag {
  display: inline-block; padding: 3px 11px; border-radius: 20px;
  font-size: 12px; font-weight: 700;
}
.tag-green { background: var(--green-pale); color: var(--green-dark); }
.tag-amber { background: #fff3e0; color: #7c4700; }
.tag-blue  { background: #e8f0fe; color: #1a56db; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white); position: sticky; top: 0; z-index: 900;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(27,67,50,.07);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 16px;
}
.navbar-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.navbar-logo img { width: 66px; height: 66px; border-radius: 10px; object-fit: cover; }
.logo-text { line-height: 1.15; }
.logo-name {
  display: block; font-family: var(--font-head);
  font-size: 20px; color: var(--green-dark); line-height: 1;
}
.logo-sub { display: block; font-size: 16px; color: var(--muted); font-weight: 600; letter-spacing: .3px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .nav-links button {
  padding: 8px 13px; font-family: var(--font-body); font-size: 14px;
  font-weight: 600; color: var(--ink); border-radius: var(--radius-sm);
  transition: .15s; white-space: nowrap; background: none;
  display: flex; align-items: center; gap: 4px;
}
.nav-links a:hover, .nav-links button:hover { background: var(--orange-pale); color: var(--orange); }
.nav-links a.active { color: var(--green); }
/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  min-width: 220px; padding: 6px; z-index: 200;
  opacity: 0; pointer-events: none; transform: translateY(6px);
  transition: .18s;
}
/* Transparent bridge across the gap so moving from the button to the
   menu never crosses dead space (which would close the menu early) */
.dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { opacity: 1; pointer-events: all; transform: translateY(0); }
.dropdown-menu a {
  display: block; padding: 9px 14px; font-size: 14px;
  font-weight: 500; color: var(--body); border-radius: var(--radius-sm);
  transition: .12s; white-space: nowrap;
}
.dropdown-menu a:hover { background: var(--orange-pale); color: var(--orange); }
/* CTA phone */
.nav-cta { display: flex; align-items: center; gap: 12px; }
/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 0; left: 0; right: 0; background: var(--white);
  /* Size to the VISIBLE area, not the layout viewport. A fixed `inset: 0` box is
     as tall as the layout viewport, which does NOT shrink when the mobile
     address/toolbar is shown — so the drawer extended behind the browser chrome,
     its content "fit" the oversized box, and overflow-y had nothing to scroll.
     The bottom links were therefore unreachable. `100dvh` tracks the visible
     viewport so a taller menu actually becomes scrollable; `100vh` is the
     fallback for browsers without dvh support. */
  height: 100vh; height: 100dvh;
  z-index: 1000; flex-direction: column; padding: 24px;
  /* Keep the last link clear of the home indicator / bottom toolbar. */
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  /* Stop the scroll from chaining to the body and feeling "stuck" at the edges. */
  overscroll-behavior: contain;
}
.mobile-menu.open { display: flex; }
/* The drawer is a column flexbox. Flex children default to flex-shrink:1, so a
   menu taller than the viewport gets compressed to fit instead of overflowing,
   leaving nothing for overflow-y to scroll (links squash and clip). Keeping the
   children at their natural height lets the drawer overflow and scroll. */
.mobile-menu > * { flex-shrink: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.mobile-close { font-size: 22px; color: var(--green-dark); background: var(--green-mint); width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.mobile-link { display: block; padding: 14px 0; font-size: 17px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border); }
.mobile-link:hover { color: var(--green); }
.mobile-link.active { color: var(--green); font-weight: 700; }
.mobile-section { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); padding: 16px 0 6px; }
/* Collapsible mobile sections */
.mobile-section-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; cursor: pointer; user-select: none; }
.mobile-section-arrow { font-size: 13px; line-height: 1; color: var(--muted); transition: transform .25s ease; }
.mobile-section.collapsed .mobile-section-arrow { transform: rotate(-90deg); }
.mobile-group { overflow: hidden; max-height: 1500px; transition: max-height .3s ease; }
.mobile-group.collapsed { max-height: 0; }

/* ── HERO ── */
.hero {
  background: linear-gradient(140deg, var(--green-dark) 0%, #2d5a3d 55%, var(--green-dark) 100%);
  padding: 88px 0 72px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('https://static.wixstatic.com/media/864024_66cd990d140c4b6ea2e68fc4262dc613~mv2.jpg') center/cover no-repeat;
  opacity: .12;
}
.hero-pattern {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-pattern::after {
  content: '';
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(116,198,157,.15), transparent 70%);
  top: -100px; right: -100px; border-radius: 50%;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 800px; margin: 0 auto; }
.hero-emoji { font-size: 48px; display: flex; gap: 12px; justify-content: center; margin-bottom: 20px; }
.hero-emoji span { animation: float 2.5s ease-in-out infinite; display: inline-block; }
.hero-emoji span:nth-child(2) { animation-delay: .42s; }
.hero-emoji span:nth-child(3) { animation-delay: .83s; }
.hero-emoji span:nth-child(4) { animation-delay: 1.25s; }
.hero-emoji span:nth-child(5) { animation-delay: 1.67s; }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
.hero-badge {
  display: inline-block;
  background: rgba(116,198,157,.2); border: 1px solid rgba(116,198,157,.4);
  color: var(--green-light); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 { color: var(--white); margin-bottom: 18px; }
.hero h1 em { color: var(--orange); font-style: normal; }
.hero .lead { color: rgba(255,255,255,.82); margin-bottom: 28px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 36px; }
.hero-trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.trust-pill {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600;
}
.trust-dot { width: 6px; height: 6px; background: var(--green-light); border-radius: 50%; flex-shrink: 0; }

/* ── ACCENT BAR ── */
.accent-bar { background: var(--green); padding: 13px 0; }
.accent-bar-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap;
}
.accent-bar-inner span { color: rgba(255,255,255,.9); font-size: 13px; font-weight: 600; }
.accent-bar-inner .sep { color: rgba(255,255,255,.3); }

/* ── PAGE HERO (inner pages) ── */
.page-hero { background: linear-gradient(150deg, var(--green-dark), #2d5a3d); padding: 60px 0; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 50%, rgba(116,198,157,.12), transparent 60%); }
.page-hero-inner { position: relative; z-index: 1; }
.page-hero h1 { color: var(--white); }
.page-hero p { color: rgba(255,255,255,.8); font-size: 16.5px; max-width: 640px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,.55); transition: .15s; }
.breadcrumb a:hover { color: var(--green-light); }
.breadcrumb span { color: rgba(255,255,255,.3); }

/* ── PROGRAM CARDS ── */
.prog-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; transition: all .25s;
  cursor: pointer; position: relative; overflow: hidden;
}
.prog-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--green-light);
  transform: scaleX(0); transition: .25s; transform-origin: left;
}
.prog-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.prog-card:hover::before { transform: scaleX(1); }
.prog-icon { font-size: 36px; margin-bottom: 14px; display: block; }
.prog-title { font-family: var(--font-head); font-size: 20px; color: var(--green-dark); margin-bottom: 10px; }
.prog-desc { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.prog-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.prog-link { color: var(--green); font-weight: 700; font-size: 13.5px; transition: .15s; }
.prog-link:hover { color: var(--green-dark); }

/* ── STATS ── */
.stats-section { background: linear-gradient(135deg, var(--green-dark), var(--green)); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat-num {
  font-family: var(--font-head); font-size: clamp(40px,5vw,58px);
  color: var(--yellow); display: block; line-height: 1;
  animation: countup .6s ease-out;
}
@keyframes countup { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }
.stat-label { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 600; margin-top: 6px; display: block; }

/* ── CONDITIONS GRID ── */
.conditions-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px,1fr)); gap: 10px; }
.condition-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 11px 15px;
  display: flex; align-items: center; gap: 9px;
  font-size: 14px; font-weight: 600; color: var(--body);
  transition: all .18s; cursor: default;
}
.condition-item:hover { background: var(--green-mint); border-color: var(--green-light); color: var(--green-dark); transform: translateY(-1px); }
.condition-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green-light); flex-shrink: 0; }

/* ── GALLERY ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; position: relative; cursor: zoom-in;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(27,67,50,.88));
  padding: 18px 16px 14px; border-radius: 0 0 var(--radius) var(--radius);
  transform: translateY(4px); transition: .25s;
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }
.gallery-caption strong { display: block; color: var(--white); font-size: 14px; font-weight: 700; }
.gallery-caption span { color: rgba(255,255,255,.8); font-size: 12px; }

/* ── TESTIMONIALS ── */
.tcard {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; position: relative;
}
.tcard::before {
  content: '"'; font-family: Georgia, serif; font-size: 80px;
  color: var(--green-pale); position: absolute; top: 0; left: 14px; line-height: 1;
}
.tcard-body { font-size: 14.5px; color: var(--body); line-height: 1.8; font-style: italic; margin-bottom: 18px; padding-top: 20px; }
.tcard-author { display: flex; align-items: center; gap: 11px; }
.tcard-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tcard-name { font-weight: 700; font-size: 13.5px; color: var(--green-dark); }
.tcard-role { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stars { color: var(--amber); font-size: 13px; margin-bottom: 4px; letter-spacing: 1px; }

/* ── FAQ ── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; padding: 20px 0;
  text-align: left; font-family: var(--font-body); font-size: 15.5px; font-weight: 700;
  color: var(--ink); display: flex; justify-content: space-between; align-items: center;
  gap: 16px; cursor: pointer; transition: color .15s;
}
.faq-q:hover, .faq-q.open { color: var(--green); }
.faq-ic { font-size: 22px; color: var(--green); transition: transform .3s; flex-shrink: 0; }
.faq-q.open .faq-ic { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 0 18px; font-size: 14.5px; color: var(--muted); line-height: 1.8; }
.faq-a.open { display: block; }
.faq-a strong { color: var(--green-dark); }

/* ── CONTACT FORM ── */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.flbl { display: block; font-size: 13px; font-weight: 700; color: var(--green-dark); margin-bottom: 5px; margin-top: 14px; }
.finput, .fsel, .ftxt {
  width: 100%; padding: 11px 15px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 14.5px;
  color: var(--ink); background: var(--white); outline: none; transition: .2s;
}
.finput:focus, .fsel:focus, .ftxt:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,79,.08); }
.ftxt { resize: vertical; min-height: 90px; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  padding: 7px 14px; border: 1.5px solid var(--border); border-radius: 50px;
  font-size: 13px; font-weight: 600; color: var(--body); cursor: pointer;
  transition: .15s; background: var(--white); user-select: none; font-family: var(--font-body);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.sel { background: var(--green-pale); border-color: var(--green); color: var(--green-dark); }

/* ── FLOATING WA ── */
.wa-float { position: fixed; bottom: 26px; right: 26px; z-index: 990; }
.wa-float a {
  width: 56px; height: 56px; background: var(--wa); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 18px rgba(37,211,102,.5);
  animation: wa-pulse 2.5s ease-in-out infinite;
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 18px rgba(37,211,102,.4); }
  50% { box-shadow: 0 4px 28px rgba(37,211,102,.7), 0 0 0 10px rgba(37,211,102,.08); }
}
.wa-tooltip {
  position: absolute; bottom: 65px; right: 0;
  background: var(--green-dark); color: var(--white); font-size: 12.5px; font-weight: 600;
  padding: 8px 13px; border-radius: 10px 10px 0 10px;
  white-space: nowrap; box-shadow: var(--shadow-lg); display: none;
}
.wa-float:hover .wa-tooltip { display: block; }

/* ── FOOTER ── */
.footer { background: #111d15; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.55); margin-bottom: 14px; line-height: 1.7; }
.footer-logo-name { font-family: var(--font-head); font-size: 22px; color: var(--white); display: block; margin-bottom: 2px; }
.footer-logo-sub { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 16px; }
.footer-socials { display: flex; gap: 10px; margin-top: 4px; }
.footer-social { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-size: 16px; transition: .15s; text-decoration: none; }
.footer-social:hover { background: var(--green-mid); }
.footer-col h5 { font-family: var(--font-body); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.35); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 9px; transition: .15s; }
.footer-col a:hover { color: var(--green-light); }
.footer-col p { font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 9px; }
.footer-bottom { padding: 18px 0; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: rgba(255,255,255,.35); flex-wrap: wrap; gap: 8px; }
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.55); font-size: 12px; text-decoration: none; transition: .15s; }
.footer-legal a:hover { color: var(--green-light); }

/* ── LEGAL / POLICY PAGES ── */
.legal-content p { font-size: 15px; color: var(--text, #333); line-height: 1.75; margin-bottom: 18px; }
.legal-content h2 { font-size: 21px; margin: 34px 0 12px; color: var(--green); }
.legal-content ul { margin: 0 0 18px; padding-left: 22px; }
.legal-content li { font-size: 15px; line-height: 1.7; margin-bottom: 10px; color: var(--text, #333); }
.legal-content a { color: var(--green); text-decoration: underline; }
.legal-updated { font-size: 13px; color: var(--muted); font-style: italic; margin-bottom: 28px; }

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: .1s; }
.fade-up-delay-2 { transition-delay: .2s; }
.fade-up-delay-3 { transition-delay: .3s; }
.fade-up-delay-4 { transition-delay: .4s; }
.fade-up-delay-5 { transition-delay: .5s; }
.fade-up-delay-6 { transition-delay: .6s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  /* Scale the header brand down so the logo, wordmark, language switcher and
     hamburger all fit a phone screen without horizontal overflow.
     NOTE: the `.navbar` prefix is intentional — the base `.logo-name` rule
     further down the file (font-size: 22.95px !important) has the same
     specificity, so an unprefixed `.logo-name` here would lose on source
     order. The extra class makes these mobile rules win regardless. */
  .navbar .logo-name { font-size: 16px !important; }
  .navbar .logo-sub { font-size: 11px; }
  .navbar .navbar-logo img { width: 46px; height: 46px; }
  /* Let the brand block shrink instead of forcing the row wider than the
     screen; allow the longer sub-line to wrap rather than push the layout. */
  .navbar .navbar-logo { flex-shrink: 1; min-width: 0; gap: 8px; }
  /* Keep the EN/BM switcher visible in the mobile header. The smaller brand
     name above frees the space it needs, and a tighter button size keeps the
     hamburger from being pushed off-screen. */
  .navbar-inner > .lang-switch { display: inline-flex; margin-left: auto; flex-shrink: 0; }
  .navbar-inner > .lang-switch button { padding: 5px 10px; font-size: 12px; }
  /* Move the hamburger to the far left of the header on mobile; the existing
     space-between layout then places the brand to its right. */
  .hamburger { display: flex; order: -1; }
  .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .accent-bar-inner { gap: 10px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  /* Shrink the mobile drawer height by 30% (from full viewport to 70vh/70dvh)
     and keep the longer link list scrollable inside the shorter container.
     (Item spacing is handled by the stylish drawer rules near the end of the
     file.) */
  .mobile-menu { height: 70vh; max-height: 70dvh; overflow-y: auto; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .conditions-grid { grid-template-columns: 1fr 1fr; }
  .frow { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════
   V4 UPDATES, Logo, Program Cards,
   Condition Cards, Team, Blog, SEO
══════════════════════════════════════ */

/* LOGO, header & footer */
.nav-logo-img {
  width: 52px; height: 52px;
  border-radius: 8px; object-fit: contain;
  background: #fff; padding: 2px;
}
.logo-name { font-size: 22.95px !important; font-weight: 900 !important; letter-spacing: -.3px; }
.footer-logo-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.footer-logo-img {
  width: 72px; height: 72px; border-radius: 10px;
  object-fit: contain; background: #fff; padding: 3px; flex-shrink: 0;
}
.footer-logo-name { font-family: var(--font-head); font-size: 21.6px; color: var(--white); display: block; line-height: 1.2; }
.footer-logo-sub { font-size: 12px; color: rgba(255,255,255,.4); letter-spacing: .5px; display: block; margin-top: 2px; }

/* PROGRAM CARDS, colourful flip-on-hover */
.prog-card-v2 {
  border: none; cursor: pointer;
  background: transparent;
  perspective: 1400px;
  min-height: 280px;
}
/* The rotating element */
.prog-card-v2 .pc-inner {
  position: relative; width: 100%; height: 100%; min-height: inherit;
  transform-style: preserve-3d;
  transition: transform .7s cubic-bezier(.34,1.25,.5,1);
}
.prog-card-v2:hover .pc-inner,
.prog-card-v2:focus-within .pc-inner { transform: rotateY(180deg); }

/* Front and back faces */
.prog-card-v2 .pc-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  border-radius: 18px; padding: 28px 24px;
  overflow: hidden; color: var(--white);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.prog-card-v2:hover .pc-face { box-shadow: 0 16px 48px rgba(0,0,0,.18); }
/* Glossy sheen on both faces */
.prog-card-v2 .pc-face::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.prog-card-v2 .pc-back {
  transform: rotateY(180deg);
  justify-content: center;
}
/* Subtle darken on the back so the flip reads clearly */
.prog-card-v2 .pc-back::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.16); pointer-events: none;
}
.prog-card-v2 .pc-back > * { position: relative; z-index: 1; }

.prog-card-v2 .prog-icon-v2 {
  font-size: 48px; line-height: 1; margin-bottom: 16px; display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.prog-card-v2 .prog-title-v2 {
  font-family: var(--font-head); font-size: 20px; color: var(--white);
  margin-bottom: 8px; line-height: 1.2;
}
.prog-card-v2 .prog-desc-v2 { font-size: 14px; color: rgba(255,255,255,.92); line-height: 1.65; margin-bottom: 16px; }
.prog-card-v2 .prog-tags-v2 { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.prog-card-v2 .ptag { background: rgba(255,255,255,.2); color: var(--white); padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 700; }
/* Hint pinned to the bottom of the front face */
.prog-card-v2 .pc-flip-hint {
  margin-top: auto; font-size: 12.5px; font-weight: 700;
  color: rgba(255,255,255,.85); letter-spacing: .3px;
  display: inline-flex; align-items: center; gap: 6px;
}
.prog-card-v2 .prog-btn {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.22); color: var(--white);
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 700;
  transition: background .2s, transform .2s; text-decoration: none;
  backdrop-filter: blur(4px);
}
.prog-card-v2 .prog-btn:hover { background: rgba(255,255,255,.4); transform: translateX(3px); }
/* Card colours, applied to the faces */
.pc-speech .pc-face  { background: linear-gradient(135deg, #2d6a4f, #40916c); }
.pc-ot .pc-face      { background: linear-gradient(135deg, #e07b39, #f4a261); }
.pc-eip .pc-face     { background: linear-gradient(135deg, #1a56db, #4f86f7); }
.pc-physio .pc-face  { background: linear-gradient(135deg, #0891b2, #22d3ee); }
.pc-sensory .pc-face { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.pc-psych .pc-face   { background: linear-gradient(135deg, #be185d, #ec4899); }
.pc-speced .pc-face  { background: linear-gradient(135deg, #b45309, #f59e0b); }
.pc-school .pc-face  { background: linear-gradient(135deg, #15803d, #4ade80); }
.pc-afterschool .pc-face { background: linear-gradient(135deg, #4338ca, #818cf8); }
/* Respect users who prefer reduced motion, flip instantly */
@media (prefers-reduced-motion: reduce) {
  .prog-card-v2 .pc-inner { transition: none; }
}

/* CONDITION CARDS, colourful */
.cond-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}
.cond-card-v2 {
  border-radius: 14px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; cursor: pointer;
  transition: all .25s cubic-bezier(.34,1.56,.64,1);
  text-decoration: none; position: relative; overflow: hidden;
  border: none;
}
.cond-card-v2:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.cond-card-v2 .cond-emoji { font-size: 32px; line-height: 1; }
.cond-card-v2 .cond-label {
  font-size: 13px; font-weight: 700; color: var(--white); line-height: 1.3;
}
/* Condition card colours, cycle through */
.cc-1 { background: linear-gradient(135deg,#1b4332,#40916c); }
.cc-2 { background: linear-gradient(135deg,#1a56db,#4f86f7); }
.cc-3 { background: linear-gradient(135deg,#7c3aed,#a855f7); }
.cc-4 { background: linear-gradient(135deg,#e07b39,#f4a261); }
.cc-5 { background: linear-gradient(135deg,#be185d,#ec4899); }
.cc-6 { background: linear-gradient(135deg,#0891b2,#22d3ee); }
.cc-7 { background: linear-gradient(135deg,#b45309,#f59e0b); }
.cc-8 { background: linear-gradient(135deg,#065f46,#34d399); }

/* TEAM CARDS */
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.team-card {
  background: var(--white); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); transition: all .25s;
  text-align: center;
}
.team-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.team-card-photo {
  width: 320px; height: 380px; object-fit: cover; object-position: top center;
  max-width: 100%; display: block;
}
.team-card-placeholder {
  width: 100%; aspect-ratio: 3/4; background: linear-gradient(135deg,var(--green-pale),var(--green-mint));
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.team-card-body { padding: 18px 16px; }
.team-flip-front .team-card-body {
  flex: 1 1 auto; min-height: 138px;
  display: flex; flex-direction: column; justify-content: center;
}
.team-card-role { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--green-mid); margin-bottom: 4px; }
.team-card-name { font-family: var(--font-head); font-size: 20px; color: var(--green-dark); margin-bottom: 8px; line-height: 1.2; }
.team-card-quals { font-size: 13px; color: var(--muted); line-height: 1.6; }

/* FLIP TEAM CARDS */
.team-flip {
  background: transparent; box-shadow: none; overflow: visible;
  perspective: 1400px; cursor: pointer; outline: none;
}
.team-flip:hover { transform: none; box-shadow: none; }
.team-flip:focus-visible .team-flip-inner { box-shadow: 0 0 0 3px var(--green-pale), var(--shadow-lg); }
.team-flip-inner {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform .65s cubic-bezier(.4,.2,.2,1);
  border-radius: 18px;
}
.team-flip:hover .team-flip-inner,
.team-flip.is-flipped .team-flip-inner { transform: rotateY(180deg); }
.team-flip-front, .team-flip-back {
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: 18px; overflow: hidden; background: var(--white);
  box-shadow: var(--shadow);
}
.team-flip-front { position: relative; display: flex; flex-direction: column; height: 100%; }
.team-flip-front .team-card-photo { margin: 0; }
.team-flip-hint {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--green-mid);
}
.team-flip-back {
  position: absolute; inset: 0; transform: rotateY(180deg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 26px 24px; text-align: left;
  background: linear-gradient(155deg, var(--green-mid), var(--green-dark));
  color: #fff; overflow-y: auto;
}
.team-flip-back .team-back-role {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--green-pale); margin-bottom: 4px;
}
.team-flip-back .team-back-name {
  font-family: var(--font-head); font-size: 21px; color: #fff;
  margin-bottom: 12px; line-height: 1.2;
}
.team-flip-back .team-back-bio { font-size: 13.5px; line-height: 1.7; color: rgba(255,255,255,.92); margin: 0; }
.team-flip-back .team-back-hint {
  margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  text-transform: uppercase; color: var(--green-pale); opacity: .85;
}

/* BLOG, placeholder page */
.blog-coming { text-align: center; padding: 80px 24px; max-width: 600px; margin: 0 auto; }
.blog-coming h2 { margin-bottom: 12px; }
.blog-coming p { color: var(--muted); margin-bottom: 24px; }

/* CONDITION DETAIL PAGE */
.cond-detail-hero { padding: 60px 0; }
.cond-detail-hero h1 { color: var(--white); font-size: clamp(28px,4vw,46px); margin-bottom: 12px; }
.cond-detail-hero p { color: rgba(255,255,255,.8); font-size: 16.5px; max-width: 640px; }

/* Responsive updates */
@media(max-width:1024px){ .team-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:600px){
  .team-grid { grid-template-columns: 1fr; }
  .cond-cards-grid { grid-template-columns: repeat(3,1fr); }
  .prog-card-v2 .prog-icon-v2 { font-size: 40px; }
}
@media(max-width:400px){
  .cond-cards-grid { grid-template-columns: repeat(2,1fr); }
}

/* ── SOCIAL ICONS, brand colours ── */
.footer-social { color: rgba(255,255,255,.7); transition: all .2s; }
.footer-social svg { display: block; }
.footer-social-fb:hover  { background: #1877f2; color: #fff; }
.footer-social-ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); color: #fff; }
.footer-social-gm:hover  { background: #4285f4; color: #fff; }
.footer-social-wa:hover  { background: #25d366; color: #fff; }
.footer-social-gb:hover  { background: #fff; }

/* ══════════════════════════════════════
   LANGUAGE SWITCHER (EN / BM)
══════════════════════════════════════ */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--border); border-radius: 50px;
  overflow: hidden; flex-shrink: 0; background: var(--white);
}
.lang-switch button {
  padding: 6px 13px; font-family: var(--font-body);
  font-size: 13px; font-weight: 700; line-height: 1;
  color: var(--muted); background: transparent; transition: .15s;
}
.lang-switch button.active { background: var(--orange); color: var(--white); }
.lang-switch button:not(.active):hover { background: var(--orange-pale); color: var(--orange); }
/* Switcher placed inside the open mobile menu */
.mobile-menu .lang-switch { margin: 18px 0 4px; align-self: flex-start; }

/* Hide Google Translate's injected banner / gadget chrome */
.goog-te-banner-frame.skiptranslate,
.goog-te-gadget-icon,
#goog-gt-tt,
.goog-te-balloon-frame { display: none !important; }
#google_translate_element { display: none !important; }
.goog-te-gadget { height: 0; font-size: 0; overflow: hidden; }
body { top: 0 !important; }
font.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* ══════════════════════════════════════
   YOUR CHILD'S JOURNEY — process flow
══════════════════════════════════════ */
.journey-flow {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 44px 10px;
  position: relative;
}
/* steps are now circles, not cards */
.jstep {
  position: relative;
  background: transparent;
  border: 0;
  padding: 4px 10px;
  text-align: center;
  transition: transform .25s ease;
}
.jstep:hover { transform: translateY(-5px); }
.jstep-illo {
  width: 80px; height: 80px;          /* 20% smaller than the old 100px card circle */
  margin: 0 auto 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 36%, #fff, var(--green-mint));
  box-shadow: inset 0 0 0 2px var(--green-pale), 0 6px 16px rgba(45,106,79,.12);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.jstep:hover .jstep-illo {
  transform: scale(1.06);
  box-shadow: inset 0 0 0 2px var(--green-light), 0 10px 22px rgba(45,106,79,.2);
}
.jstep-illo svg { width: 64px; height: 64px; }   /* 80px → 64px (−20%) */
.jstep-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-family: var(--font-head); font-size: 14px; line-height: 1;
  margin-bottom: 7px; box-shadow: 0 3px 10px rgba(45,106,79,.3);
}
.jstep-title { font-size: 15px; margin-bottom: 5px; }
.jstep-desc { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── single-row flow with animated arrows (desktop only) ──
   All 8 steps sit in one row, left → right. */
.jstep::after,
.jstep::before {
  content: '';
  position: absolute;
  display: none;
  color: var(--green-light);
  font-size: 24px; font-weight: 900; line-height: 1;
  pointer-events: none;
}
@media (min-width: 1025px) {
  /* forward arrows between every consecutive step point right */
  .jstep:nth-child(1)::after,
  .jstep:nth-child(2)::after,
  .jstep:nth-child(3)::after,
  .jstep:nth-child(4)::after,
  .jstep:nth-child(5)::after,
  .jstep:nth-child(6)::after,
  .jstep:nth-child(7)::after {
    content: '➜';
    display: block;
    top: 40px; right: -7px;
    animation: jArrowRight 1.4s ease-in-out infinite;
  }
}
@keyframes jArrowRight {
  0%, 100% { transform: translateX(0);    opacity: .45; }
  50%      { transform: translateX(7px);  opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .jstep::after, .jstep::before { animation: none !important; opacity: .7 !important; }
}
@media (max-width: 1024px) {
  .journey-flow { grid-template-columns: repeat(2, 1fr); gap: 34px 16px; }
}
@media (max-width: 560px) {
  .journey-flow { grid-template-columns: 1fr; gap: 14px; max-width: 380px; margin: 0 auto; }
  .jstep { display: flex; align-items: center; text-align: left; gap: 16px; padding: 14px 6px; }
  .jstep-illo { width: 66px; height: 66px; margin: 0; flex-shrink: 0; }
  .jstep-illo svg { width: 52px; height: 52px; }
  .jstep-num { margin-bottom: 5px; }
}

/* ══════════════════════════════════════
   MOBILE MENU — stylish animated drawer
   (Backdrop, drop-in sheet, gradient header, two-line brand, rounded link
   rows with a sliding accent bar, staggered reveal, and a morphing hamburger.
   These rules sit at the end of the file so they win on source order over the
   earlier .mobile-* base and media-query rules.)
══════════════════════════════════════ */

/* Dimmed, blurred backdrop behind the sheet (created on first open in JS). */
.mobile-menu-backdrop {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(12, 30, 20, .5);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .32s ease, visibility .32s ease;
}
.mobile-menu-backdrop.show { opacity: 1; visibility: visible; }

@keyframes mm-drawer-in  { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes mm-drawer-out { from { opacity: 1; transform: translateY(0); }     to { opacity: 0; transform: translateY(-18px); } }
@keyframes mm-item-in    { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: translateX(0); } }

@media (max-width: 768px) {
  /* The drawer is a rounded card that drops from the top of the screen. */
  .mobile-menu {
    border-radius: 0 0 24px 24px;
    box-shadow: 0 26px 60px rgba(12, 40, 25, .30);
    transform-origin: top center;
  }
  .mobile-menu.open    { animation: mm-drawer-in .42s cubic-bezier(.16, 1, .3, 1); }
  .mobile-menu.closing { display: flex; pointer-events: none; animation: mm-drawer-out .26s ease forwards; }

  /* Full-bleed gradient header with the brand reversed out in white. */
  .mobile-menu-header {
    margin: -24px -24px 14px; padding: 18px 22px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    box-shadow: 0 6px 18px rgba(12, 40, 25, .18);
  }
  .mobile-menu-header .navbar-logo img { border: 2px solid rgba(255, 255, 255, .7); }
  .mobile-close { transition: transform .25s ease, background .2s ease; }
  .mobile-close:hover, .mobile-close:active { transform: rotate(90deg); }

  /* Two-line wordmark: "YOUNGFERNS" over an indented, spaced "EDUWORLD". */
  .mobile-menu-header .logo-name {
    display: flex; flex-direction: column; gap: 1px;
    font-size: 21px !important; line-height: 1.02; color: #fff !important;
  }
  .mobile-menu-header .mb-line1 { font-weight: 900; letter-spacing: .2px; }
  .mobile-menu-header .mb-line2 {
    padding-left: .85em; font-size: 14px; letter-spacing: 3px;
    font-weight: 700; color: var(--green-light);
  }

  /* Links become rounded rows with a sliding accent bar on hover/tap. */
  .mobile-link {
    position: relative; display: flex; align-items: center;
    padding: 11px 14px; margin: 1px 0; border-bottom: none;
    border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--ink);
    transition: background .2s ease, color .2s ease, padding .2s ease;
  }
  .mobile-link::before {
    content: ''; position: absolute; left: 4px; top: 50%;
    width: 3px; height: 56%; border-radius: 3px; background: var(--green);
    transform: translateY(-50%) scaleY(0); transform-origin: center;
    transition: transform .2s ease;
  }
  .mobile-link:hover, .mobile-link:active { background: var(--green-mint); color: var(--green); padding-left: 22px; }
  .mobile-link:hover::before, .mobile-link:active::before { transform: translateY(-50%) scaleY(1); }
  /* Current page: persistent selected state mirroring the desktop nav highlight. */
  .mobile-link.active { background: var(--green-mint); color: var(--green); padding-left: 22px; font-weight: 700; }
  .mobile-link.active::before { transform: translateY(-50%) scaleY(1); }

  /* Section headings: a tidy divider that doubles as a collapse toggle. */
  .mobile-section {
    margin-top: 8px; padding: 14px 14px 6px; color: var(--green);
    border-top: 1px solid var(--border);
  }
  .mobile-section:first-of-type { border-top: none; margin-top: 0; }
  .mobile-section-arrow { color: var(--green); }

  /* Cascading reveal: each row eases in just after the one before it,
     replayed every time the drawer opens. */
  .mobile-menu.open .mobile-link,
  .mobile-menu.open .mobile-section {
    animation: mm-item-in .42s both cubic-bezier(.16, 1, .3, 1);
    animation-delay: calc(var(--i, 0) * 26ms + 80ms);
  }

  /* The hamburger morphs into an X while the drawer is open. */
  .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Respect users who prefer reduced motion: keep the layout, drop the motion. */
@media (prefers-reduced-motion: reduce) {
  .mobile-menu.open, .mobile-menu.closing,
  .mobile-menu.open .mobile-link, .mobile-menu.open .mobile-section { animation: none !important; }
  .mobile-menu-backdrop { transition: none; }
}
