/* ==========================================================================
   Hobbyez — site styles
   One stylesheet for every page. Tokens first, then base, layout, components,
   then page sections. Mobile first; breakpoints at 640 / 900 / 1100px.
   ========================================================================== */

:root {
  --ink: #1b1f2a;
  --ink-2: #4b5263;
  --ink-3: #6b7280;
  --line: #ebe7dd;
  --bg: #ffffff;
  --bg-soft: #fbf8f1;
  --bg-tint: #fff6db;

  --brand: #f5b301;
  --brand-strong: #e0a100;
  --brand-soft: #fff1c2;

  --abacus: #0f9e8e;
  --vedic: #e5484d;
  --art: #d6409f;
  --tuition: #2f6fdf;
  --whatsapp: #1fa855;

  --accent: #b98100;
  --accent-soft: var(--brand-soft);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(27, 31, 42, .06), 0 1px 3px rgba(27, 31, 42, .06);
  --shadow: 0 10px 30px -12px rgba(27, 31, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(27, 31, 42, .28);

  --container: 1160px;
  --gutter: 20px;
  --header-h: 72px;

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.theme-abacus { --accent: var(--abacus); --accent-soft: #e0f5f2; }
.theme-vedic { --accent: var(--vedic); --accent-soft: #fde8e8; }
.theme-art { --accent: var(--art); --accent-soft: #fbe7f3; }
.theme-tuition { --accent: var(--tuition); --accent-soft: #e6eefc; }

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.8vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--accent-soft); }
@media (min-width: 900px) { .section { padding: 104px 0; } }

.section-head { max-width: 680px; margin: 0 0 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { font-size: 1.075rem; margin: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.center .eyebrow::before { display: none; }

.lead { font-size: 1.125rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: .975rem; line-height: 1.2; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

.btn-primary { background: var(--brand); color: var(--ink); box-shadow: 0 6px 18px -8px rgba(224, 161, 0, .8); }
.btn-primary:hover { background: var(--brand-strong); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #178a45; }

.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; color: var(--ink); text-decoration: none;
}
.link-arrow .icon { width: 1em; height: 1em; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }

.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand); color: var(--ink); font-weight: 800; font-size: 1.2rem;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12);
}
.brand-name { font-weight: 800; font-size: 1.3rem; letter-spacing: -.03em; }
.brand-light { color: #fff; }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 11px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links { list-style: none; }
.nav-links a, .submenu-toggle {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: 10px; border: 0; background: none;
  font-weight: 600; font-size: .975rem; color: var(--ink-2); text-decoration: none; cursor: pointer;
  transition: color .2s, background-color .2s;
}
.nav-links a:hover, .submenu-toggle:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links a[aria-current="page"], .submenu-toggle.is-active { color: var(--ink); }
.submenu-toggle .icon { width: 1rem; height: 1rem; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }

.submenu { list-style: none; }
.submenu a { gap: 10px; }
.submenu-all a { color: var(--ink); font-weight: 700; }
.submenu-all .icon { width: 1rem; height: 1rem; }

.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot-abacus { background: var(--abacus); }
.dot-vedic { background: var(--vedic); }
.dot-art { background: var(--art); }
.dot-tuition { background: var(--tuition); }

/* Mobile menu */
@media (max-width: 899px) {
  .nav-menu {
    position: fixed; inset: var(--header-h) 0 auto 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px var(--gutter) 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav-menu.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a, .submenu-toggle { width: 100%; padding: 14px 8px; font-size: 1.05rem; }
  .nav-links > li + li { border-top: 1px solid var(--line); }
  .submenu { display: none; padding: 0 0 8px 8px; }
  .has-submenu.is-open .submenu { display: block; }
  .submenu a { padding: 10px 8px; }
  .nav-cta { width: 100%; margin-top: 16px; }
  body.nav-open { overflow: hidden; }
}

/* Desktop menu */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu { display: flex; align-items: center; gap: 20px; }
  .nav-links { display: flex; align-items: center; gap: 2px; }
  .nav-links a[aria-current="page"]::after, .submenu-toggle.is-active::after { content: none; }
  .nav-links > li > a[aria-current="page"], .submenu-toggle.is-active { background: var(--bg-soft); }
  .has-submenu { position: relative; }
  .submenu {
    position: absolute; top: calc(100% + 8px); left: -8px; min-width: 250px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s, transform .18s, visibility .18s;
  }
  .submenu::before { content: ""; position: absolute; inset: -10px 0 auto 0; height: 10px; }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.is-open .submenu {
    opacity: 1; visibility: visible; transform: none;
  }
  .submenu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .nav-cta { min-height: 44px; padding: 10px 20px; }
}

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; padding: 48px 0 64px; background: linear-gradient(180deg, var(--bg-tint) 0%, #fff 100%); }
.hero::before {
  content: ""; position: absolute; width: 640px; height: 640px; right: -220px; top: -220px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 179, 1, .28), transparent);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .32em; z-index: -1;
  background: var(--brand); border-radius: 4px; opacity: .55;
}
.hero .lead { max-width: 560px; margin-bottom: 28px; }
.hero-art { position: relative; order: -1; margin: 12px 0 16px; }   /* phones: kids first, above the headline */
.hero-kids { position: relative; max-width: 600px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(27, 31, 42, .12)); }
.hero-kids > img:first-child { width: 100%; }

/* Playful hero. site.js stacks one cutout image per child over the
   illustration, so every kid can move on their own:
   sway + hop-wave always, a dance party on hover, a flip + confetti on click. */
.hero-float { animation: hero-bob 5s ease-in-out infinite; }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-kids.is-split > img:first-child { visibility: hidden; }
.hero-kids.is-split .kid { visibility: visible; }
/* Two motions run at once: a constant sway (rotate) and a hop-wave (translate),
   using the separate rotate/translate properties so they don't fight. */
.hero-kids .kid {
  position: absolute; height: auto; visibility: hidden; transform-origin: 50% 80%;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  animation: kid-sway 2.4s ease-in-out var(--sway) infinite alternate, kid-wave 4.5s ease-in-out var(--delay) infinite;
}
@keyframes kid-sway { from { rotate: -3deg; } to { rotate: 3deg; } }
@keyframes kid-wave {
  0%, 16%, 100% { translate: 0 0; }
  6%            { translate: 0 -18px; }
  11%           { translate: 0 2px; }
}

/* Dance party, every kid with their own move. site.js adds .is-party while a
   mouse is over the picture, or for a few seconds after a tap on touch screens. */
.hero-float { transition: scale .4s ease; }
.hero-art.is-party .hero-float { scale: 1.04; transition: scale .4s cubic-bezier(.3, 1.6, .5, 1); }
.hero-art.is-party .kid.dance-1 { animation: dance-hop .55s ease-in-out infinite alternate; }
.hero-art.is-party .kid.dance-2 { animation: dance-skip .9s ease-in-out infinite; }
.hero-art.is-party .kid.dance-3 { animation: dance-shuffle .8s ease-in-out infinite; }
.hero-art.is-party .kid.dance-4 { animation: dance-disco 1s ease-in-out infinite; }
.hero-art.is-party .kid.dance-5 { animation: dance-pogo .7s cubic-bezier(.3, 0, .7, 1) infinite; }
.hero-art.is-party .kid.dance-6 { animation: dance-robot 1.2s steps(1) infinite; }
.hero-art.is-party .kid.dance-7 { animation: dance-hula .9s ease-in-out infinite; }
.hero-art.is-party .kid.dance-8 { animation: dance-jelly .5s ease-in-out infinite alternate; }


/* bouncy squash-and-stretch hop */
@keyframes dance-hop {
  from { translate: 0 4px; scale: 1.08 .92; }
  to   { translate: 0 -24px; scale: .95 1.06; }
}
/* skipping along: hop, lean forward, hop, lean back */
@keyframes dance-skip {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  25%      { translate: 4px -20px; rotate: 10deg; }
  50%      { translate: 0 0; rotate: 0deg; }
  75%      { translate: -4px -20px; rotate: -10deg; }
}
/* side-step shuffle */
@keyframes dance-shuffle {
  0%, 100% { translate: -10px 0; rotate: -4deg; }
  25%      { translate: 0 -10px; rotate: 0deg; }
  50%      { translate: 10px 0; rotate: 4deg; }
  75%      { translate: 0 -10px; rotate: 0deg; }
}
/* point up, point down, disco style */
@keyframes dance-disco {
  0%, 100% { rotate: -14deg; translate: -4px 0; }
  20%, 45% { rotate: 14deg; translate: 4px -12px; }
  70%      { rotate: -14deg; translate: -4px -4px; }
}
/* big pogo jump */
@keyframes dance-pogo {
  0%, 100% { translate: 0 0; scale: 1.1 .88; }
  15%      { scale: .92 1.1; }
  50%      { translate: 0 -46px; scale: 1 1; }
  85%      { scale: .95 1.05; }
}
/* jerky robot moves */
@keyframes dance-robot {
  0%   { rotate: 0deg; translate: 0 0; }
  25%  { rotate: -10deg; translate: -6px 0; }
  50%  { rotate: 0deg; translate: 0 -10px; }
  75%  { rotate: 10deg; translate: 6px 0; }
}
/* hula hip sway */
@keyframes dance-hula {
  0%, 100% { translate: -12px 0; rotate: 10deg; }
  50%      { translate: 12px -6px; rotate: -10deg; }
}
/* wobbly jelly */
@keyframes dance-jelly {
  from { scale: 1.12 .9; rotate: -3deg; }
  to   { scale: .9 1.12; rotate: 3deg; translate: 0 -10px; }
}

.hero-art .hero-kids .kid.is-flip { animation: kid-flip .9s cubic-bezier(.3, 1.4, .5, 1); z-index: 2; }
@keyframes kid-flip {
  0%   { translate: 0 0; rotate: 0deg; scale: 1 1; }
  15%  { translate: 0 4px; rotate: 0deg; scale: 1.06 .9; }
  55%  { translate: 0 -70px; rotate: 360deg; scale: 1.05; }
  80%  { translate: 0 0; rotate: 360deg; scale: 1.08 .92; }
  100% { translate: 0 0; rotate: 360deg; scale: 1; }
}

.kid-say {
  position: absolute; z-index: 3; transform: translate(-50%, 0);
  padding: 4px 12px; border-radius: 999px; background: #fff; color: var(--c);
  font-weight: 800; font-size: clamp(.85rem, .7rem + .6vw, 1.1rem); white-space: nowrap;
  box-shadow: var(--shadow); pointer-events: none;
  animation: kid-say 1.2s ease-out forwards;
}
@keyframes kid-say {
  0%   { opacity: 0; transform: translate(-50%, 10px) scale(.5); }
  20%  { opacity: 1; transform: translate(-50%, -6px) scale(1.1); }
  70%  { opacity: 1; transform: translate(-50%, -16px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -30px) scale(.95); }
}

/* Reaches past the picture into the empty space above and below it */
.hero-doodles { position: absolute; inset: -22% -2%; pointer-events: none; z-index: 1; }
.dd {
  position: absolute; left: var(--x); top: var(--y); color: var(--c);
  font-size: calc(clamp(18px, 2.4vw, 28px) * var(--s, 1)); line-height: 1; font-weight: 700;
  rotate: var(--r, 0deg);
  animation: dd-drift var(--t, 8s) ease-in-out var(--d) infinite;
}
.dd-lg { font-size: calc(clamp(20px, 2.8vw, 32px) * var(--s, 1)); }
.dd-math { font-size: calc(clamp(22px, 3vw, 34px) * var(--s, 1)); font-weight: 800; }
.dd-text { font-size: calc(clamp(12px, 1.4vw, 16px) * var(--s, 1)); font-weight: 800; letter-spacing: .04em; }
.dd-icon svg { display: block; width: calc(clamp(24px, 3.2vw, 38px) * var(--s, 1)); height: auto; }
@keyframes dd-drift {
  0%, 100% { translate: 0 0; scale: 1; opacity: .85; }
  50%      { translate: 4px -10px; scale: 1.1; opacity: 1; }
}
.confetti {
  position: absolute; z-index: 3; width: 10px; height: 14px; border-radius: 3px;
  pointer-events: none; will-change: transform, opacity;
}
.confetti.round { width: 11px; height: 11px; border-radius: 50%; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
  font-size: .875rem; font-weight: 600; color: var(--ink);
}
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); box-shadow: 0 0 0 4px rgba(31, 168, 85, .18); margin-left: 6px; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
  .hero-art { order: 0; margin: 0; }
}

/* Trust strip */
.trust { margin-top: -28px; position: relative; z-index: 2; }
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
}
.trust-item { display: flex; align-items: center; gap: 12px; padding: 18px; background: #fff; }
.trust-item .icon-badge { width: 44px; height: 44px; }
.trust-item strong { display: block; color: var(--ink); font-size: .975rem; line-height: 1.3; }
.trust-item span { font-size: .85rem; color: var(--ink-3); line-height: 1.35; display: block; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } .trust-item { padding: 22px 24px; } }
@media (max-width: 479px) { .trust-grid { grid-template-columns: 1fr; } }

.icon-badge {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent);
}
.icon-badge .icon { width: 22px; height: 22px; }

/* ---------- Course cards ---------- */

.course-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .course-grid { grid-template-columns: repeat(4, 1fr); } }

.course-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.course-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.course-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.course-card:hover .course-card-media img { transform: scale(1.05); }
.course-card-tag {
  position: absolute; left: 14px; top: 14px; padding: 4px 10px; border-radius: 999px;
  background: #fff; color: var(--accent); font-size: .75rem; font-weight: 700; box-shadow: var(--shadow-sm);
}
.course-card-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.course-card h3 { margin-bottom: 6px; }
.course-card p { font-size: .95rem; margin-bottom: 16px; }
.course-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.course-card .link-arrow { color: var(--accent); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: var(--bg-soft); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--ink-2);
}
.chip .icon { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Split (media + text) ---------- */

.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse > :first-child { order: 2; }
}
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-soft); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.plain { box-shadow: none; background: none; overflow: visible; }

.check-list { list-style: none; display: grid; gap: 12px; margin: 0 0 28px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.check-list .icon {
  width: 22px; height: 22px; padding: 4px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); stroke-width: 3;
}

/* Video (click to load) */
.video {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0;
  border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; background: #000; box-shadow: var(--shadow-lg);
}
.video img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.video:hover img { transform: scale(1.03); opacity: .9; }
.video-play {
  position: absolute; inset: 0; margin: auto; display: grid; place-items: center;
  width: 76px; height: 76px; border-radius: 50%; background: var(--brand); color: var(--ink);
  box-shadow: 0 0 0 10px rgba(245, 179, 1, .3); transition: transform .2s;
}
.video:hover .video-play { transform: scale(1.06); }
.video-play .icon { width: 28px; height: 28px; margin-left: 4px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Feature grid ---------- */

.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .feature-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } .feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }

.feature {
  padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .25s, transform .25s;
}
.feature:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature .icon-badge { margin-bottom: 18px; }
.feature h3 { font-size: 1.075rem; margin-bottom: 6px; }
.feature p { font-size: .95rem; margin: 0; }

/* ---------- Steps ---------- */

.steps { display: grid; gap: 16px; counter-reset: step; list-style: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step { position: relative; padding: 28px; background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 12px; background: var(--ink); color: var(--brand); font-weight: 800;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p { margin: 0; font-size: .95rem; }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative; overflow: hidden; display: grid; gap: 24px; align-items: center;
  padding: 40px 28px; border-radius: var(--radius-lg);
  background: var(--ink); color: #d6d9e0;
}
.cta-band::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 179, 1, .45), transparent); pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; max-width: 520px; }
.cta-band .btn-row { position: relative; z-index: 1; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.cta-band .btn-outline:hover { border-color: #fff; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; padding: 56px; } }

/* ---------- Page header (inner pages) ---------- */

.page-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: var(--accent-soft); }
.page-hero::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .8), transparent); pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin-bottom: 14px; }
.page-hero .lead { max-width: 640px; margin-bottom: 0; }
.page-hero.simple { background: var(--bg-soft); padding: 48px 0; }
.page-hero.simple h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem); }

.course-hero-grid { display: grid; gap: 40px; align-items: center; }
.course-hero-grid .lead { margin-bottom: 24px; }
.course-hero-art img { width: 100%; max-width: 220px; margin: 0 auto; }
.course-hero-art .media-frame { max-width: 420px; margin: 0 auto; }
.course-hero-art .media-frame img { max-width: none; }
@media (min-width: 900px) { .course-hero-art img { max-width: 360px; } }
@media (min-width: 900px) {
  .page-hero { padding: 80px 0 88px; }
  .course-hero-grid { grid-template-columns: 1.2fr .8fr; gap: 56px; }
}

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 28px; max-width: 620px; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { padding: 14px 16px; background: rgba(255, 255, 255, .75); border: 1px solid rgba(27, 31, 42, .06); border-radius: var(--radius); }
.fact strong { display: block; font-size: 1.35rem; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.fact span { display: block; font-size: .8rem; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }

/* ---------- Programme cards (abacus) ---------- */

.programmes { display: grid; gap: 20px; }
.programme { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.programme-head { display: grid; gap: 18px; padding: 26px; }
.programme-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.programme-title h3 { font-size: 1.5rem; margin: 0; color: var(--accent); }
.programme-title p { margin: 0; font-size: .95rem; }
.programme-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 640px) { .programme-stats { grid-template-columns: repeat(6, 1fr); } }
.programme-stats div { background: var(--bg-soft); padding: 12px; text-align: center; }
.programme-stats strong { display: block; color: var(--ink); font-size: 1.05rem; font-weight: 800; }
.programme-stats span { display: block; font-size: .75rem; color: var(--ink-3); line-height: 1.3; }
.programme-note { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); font-size: .95rem; }

.levels { border-top: 1px solid var(--line); }
.levels > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 26px; cursor: pointer; list-style: none; font-weight: 700; color: var(--ink);
}
.levels > summary::-webkit-details-marker { display: none; }
.levels > summary:hover { background: var(--bg-soft); }
.levels > summary .icon { transition: transform .2s; color: var(--ink-3); }
.levels[open] > summary .icon { transform: rotate(180deg); }
.level-list { list-style: none; display: grid; gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.level-list li { display: grid; gap: 4px; padding: 16px 26px; background: #fff; }
@media (min-width: 640px) { .level-list li { grid-template-columns: 90px 1fr; gap: 16px; } }
.level-list .level-no { font-size: .8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.level-list h4 { font-size: 1rem; margin: 0 0 2px; }
.level-list p { margin: 0; font-size: .95rem; }

/* Benefits */
.benefit-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
.benefit { display: grid; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
@media (min-width: 640px) { .benefit { grid-template-columns: 112px 1fr; align-items: start; } }
.benefit img { width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius); background: var(--bg-soft); }
.benefit h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit p { margin: 0; font-size: .95rem; }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.table thead th { background: var(--bg-soft); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.table tr:last-child td { border-bottom: 0; }
.table td:first-child { color: var(--ink); font-weight: 700; }

.tag-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; list-style: none; }
.tag-group li { padding: 7px 14px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); font-size: .9rem; font-weight: 600; }
.subhead { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 0 0 10px; }

/* ---------- Forms ---------- */

.form-layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .form-layout { grid-template-columns: .85fr 1.15fr; gap: 56px; } }
@media (max-width: 899px) { .form-first .form-card { order: -1; } }

.form-card { padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
@media (min-width: 640px) { .form-card { padding: 40px; } }
.form-card h2 { font-size: 1.5rem; margin-bottom: 4px; }
.form-card > p { margin-bottom: 24px; }

.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }

.field label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .req { color: var(--vedic); }
.field .hint { font-weight: 500; color: var(--ink-3); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px;
  font-size: 1rem; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a3a8b3; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d6d1c4; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-strong); box-shadow: 0 0 0 4px rgba(245, 179, 1, .2); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--vedic); }
.field.has-error input:focus, .field.has-error select:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgba(229, 72, 77, .15); }
.field-error { display: none; margin: 6px 0 0; font-size: .85rem; color: #c62f35; font-weight: 500; }
.field.has-error .field-error { display: block; }
.field[hidden] { display: none; }

.form-actions { margin-top: 26px; }
.form-note { margin: 14px 0 0; font-size: .85rem; color: var(--ink-3); text-align: center; }
.form-status {
  display: none; gap: 12px; align-items: flex-start; margin-top: 20px; padding: 16px;
  border-radius: var(--radius); background: #e8f7ee; color: #14532d; font-size: .95rem;
}
.form-status.is-visible { display: flex; }
.form-status .icon { color: var(--whatsapp); margin-top: 2px; }
.form-status p { margin: 0; }

.info-list { list-style: none; display: grid; gap: 14px; margin: 28px 0; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list strong { display: block; color: var(--ink); }
.info-list a { color: var(--ink-2); text-decoration: none; }
.info-list a:hover { color: var(--ink); text-decoration: underline; }

.aside-card { padding: 24px; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.aside-card h3 { font-size: 1.05rem; }
.aside-card ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ---------- Prose (legal pages) ---------- */

.prose { max-width: 760px; margin: 0 auto; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; margin: 2.2em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--ink); text-decoration-color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose .updated { font-size: .9rem; color: var(--ink-3); }

/* ---------- Footer ---------- */

.site-footer { background: #12151d; color: #a8adba; padding: 64px 0 0; margin-top: 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 48px; }
.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { margin: 16px 0 20px; max-width: 360px; }
.footer-title { color: #fff; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-links { list-style: none; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: #a8adba; text-decoration: none; transition: color .2s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { list-style: none; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
  padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .875rem;
}
.footer-bottom p { margin: 0; }
.footer-wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; }
.footer-wa .icon { color: #25d366; }

/* ---------- WhatsApp float ---------- */

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.06); }
.whatsapp-float .icon { width: 30px; height: 30px; }

/* ---------- Utilities ---------- */

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 16px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Steps sitting inside a half-width column stay stacked */
.split .steps { grid-template-columns: 1fr; gap: 12px; }
.split .step { padding: 22px; }
