/* XCurio Academy – layout & components. Brand tokens live in brand.css. */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }

h1, h2, h3, h4 { color: var(--xc-navy); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1, h2 { text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.55rem + 3vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.9vw, 2.625rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--xc-navy); color: #fff; padding: 12px 20px; border-radius: 12px;
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.container--narrow { max-width: 820px; }

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tint { background: var(--xc-blue-tint); }
.section--cream { background: var(--xc-cream); }
.section--tight-top { padding-top: clamp(24px, 4vw, 48px); }

.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-weight: 800;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--xc-blue);
}
.section-head { max-width: 660px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--xc-text-muted); margin: 0; }
.lead { font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.25rem); color: var(--xc-text-muted); }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--xc-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: block; flex: none; border-radius: 8px; }
.brand img { height: 60px; width: auto; }

.nav-list { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-link {
  position: relative; display: block;
  padding: 10px 18px; border-radius: var(--xc-radius-pill);
  font-weight: 700; color: var(--xc-navy); text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.nav-link:hover { background: var(--xc-blue-tint); color: var(--xc-blue); }
.nav-link[aria-current="page"]::after, .nav-link.is-current::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 3px;
  height: 3px; border-radius: 3px; background: var(--xc-orange);
}

.menu-toggle {
  display: none;
  width: 48px; height: 48px; padding: 0;
  align-items: center; justify-content: center;
  border: 2px solid var(--xc-border); border-radius: 14px;
  background: #fff; color: var(--xc-navy); cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 800px) {
  .site-header__inner { min-height: 68px; }
  .brand img { height: 48px; }
  .js .menu-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--xc-border);
    box-shadow: 0 16px 32px rgba(31, 49, 106, 0.08);
    padding: 8px clamp(16px, 4vw, 32px) 20px;
  }
  .js .site-nav.is-open { display: block; }
  .js .nav-list { flex-direction: column; align-items: stretch; gap: 2px; }
  .js .nav-link { padding: 14px 16px; font-size: 1.125rem; border-radius: 14px; }
  .js .nav-link[aria-current="page"], .js .nav-link.is-current { background: var(--xc-orange-tint); }
  .js .nav-link[aria-current="page"]::after, .js .nav-link.is-current::after { display: none; }
  /* Without JavaScript, keep the links visible in a compact row */
  html:not(.js) .nav-link { padding: 8px 10px; font-size: 0.9375rem; }
}

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 30px;
  border: 0; border-radius: var(--xc-radius-pill);
  font: 800 1.0625rem/1.2 var(--xc-font-body);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--xc-orange) 0%, var(--xc-gold) 100%);
  color: var(--xc-navy);
  box-shadow: 0 4px 0 #D46E2C, 0 10px 22px rgba(240, 138, 62, 0.30);
}
.btn--primary:hover { color: var(--xc-navy); transform: translateY(-2px); filter: brightness(1.04); box-shadow: 0 6px 0 #D46E2C, 0 14px 26px rgba(240, 138, 62, 0.34); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #D46E2C, 0 4px 10px rgba(240, 138, 62, 0.25); }
.btn--outline { background: #fff; color: var(--xc-navy); border: 2px solid var(--xc-border); }
.btn--outline:hover { color: var(--xc-blue); border-color: var(--xc-periwinkle); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 800; color: var(--xc-blue); text-decoration: none;
}
.text-link .icon { width: 20px; height: 20px; transition: transform 0.15s; }
.text-link:hover { color: var(--xc-navy); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover .icon { transform: translateX(3px); }

/* CTA button with Curio beside it */
.cta { display: inline-flex; align-items: flex-end; gap: 6px; max-width: 100%; }
.cta__owl { width: 66px; height: auto; flex: none; margin-bottom: -6px; }
.cta:hover .owl__wing, .cta:focus-within .owl__wing { animation: owl-wave 0.9s ease-in-out 2; }
.owl__wing { transform-box: fill-box; transform-origin: 85% 90%; }
@keyframes owl-wave {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-18deg); }
  75% { transform: rotate(10deg); }
}
@media (max-width: 400px) {
  .cta__owl { width: 52px; }
  .cta .btn { padding: 0 22px; }
}

/* ---------- Hero (home) ---------- */
.hero, .page-hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(126, 198, 234, 0.22), transparent 60%),
    radial-gradient(900px 480px at -10% 110%, rgba(255, 255, 255, 0.7), transparent 60%),
    var(--xc-blue-tint);
  overflow: clip;
}
.hero { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 10vw, 128px); }
.hero::after, .page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px;
  height: clamp(28px, 4.5vw, 64px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V46C240 8 480 0 720 22s480 44 720 6v52z' fill='%23fff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
  pointer-events: none;
}

.hero__grid { display: grid; grid-template-columns: 1.08fr 0.92fr; align-items: center; gap: clamp(24px, 4vw, 56px); }
.hero__title { margin-bottom: 0.4em; }
.hero__lead { max-width: 560px; margin-bottom: 32px; }
.hero__note { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; font-weight: 700; font-size: 0.9375rem; color: var(--xc-text-muted); }
.hero__note li { display: inline-flex; align-items: center; gap: 6px; }
.hero__note .icon { width: 18px; height: 18px; color: var(--xc-blue); stroke-width: 2.6; }

/* Hand-drawn underline under a highlighted word */
.swoosh { position: relative; white-space: nowrap; z-index: 0; }
.swoosh::after {
  content: ""; position: absolute; z-index: -1; left: -2%; right: -2%; bottom: -0.08em; height: 0.34em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M4 14C50 5 120 3 196 9' fill='none' stroke='%23F2B258' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* Hero illustration: characters popping out of a round window */
.hero-art { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 1 / 1.02; }
.stage { position: absolute; left: 7%; right: 7%; bottom: 2%; aspect-ratio: 1; }
.stage::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: 0 30px 60px rgba(43, 83, 178, 0.10); }
.stage__pop {
  position: absolute; left: 0; right: 0; bottom: 0; top: -25%;
  border-radius: 0 0 50% 50% / 0 0 40% 40%;
  overflow: hidden;
}
.stage__pop > * { position: absolute; bottom: 0; }
.stage__kid--left { left: -1%; width: 46%; z-index: 2; }
.stage__kid--right { right: -1%; width: 46%; z-index: 2; }
.stage__owl { left: 20%; width: 60%; bottom: 12%; z-index: 1; animation: bob 4.5s ease-in-out infinite; }
.stage__owl .owl__wing { animation: owl-wave 0.9s ease-in-out 0.8s 2; }

.float { position: absolute; width: clamp(28px, 4vw, 44px); animation: float 6s ease-in-out infinite; }
.float--plus { top: 6%; left: 2%; }
.float--divide { top: 2%; right: 6%; animation-delay: -2s; animation-duration: 7s; }
.float--triangle { top: 46%; left: -2%; animation-delay: -4s; animation-duration: 8s; }
.float--circle { top: 38%; right: -2%; animation-delay: -1s; }
.float--sm { width: clamp(18px, 2.4vw, 26px); }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-12px) rotate(8deg); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 400px; }
}

/* ---------- Inner page hero ---------- */
.page-hero { padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 104px); }
.page-hero__grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: clamp(24px, 4vw, 56px); }
.page-hero__text { max-width: 680px; }
.page-hero__text .lead { margin-bottom: 0; }
.page-hero__text .cta { margin-top: 28px; }
.page-hero__art { position: relative; width: clamp(170px, 24vw, 280px); }
.page-hero__art .float { width: clamp(22px, 3vw, 34px); }
@media (max-width: 720px) {
  .page-hero__grid { grid-template-columns: 1fr; }
  .page-hero__art { width: 160px; order: -1; }
}

.breadcrumb { margin-bottom: 18px; font-size: 0.9375rem; font-weight: 700; color: var(--xc-text-muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--xc-periwinkle); }
.breadcrumb a { color: var(--xc-blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: var(--xc-radius-pill);
  background: #fff; border: 1.5px solid var(--xc-border);
  font-weight: 700; font-size: 0.9375rem;
}
.chip .icon { width: 18px; height: 18px; color: var(--xc-blue); }

/* ---------- Program cards (home) ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 920px) { .cards-3 { grid-template-columns: 1fr; max-width: 540px; margin-inline: auto; } }

.program-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 2px solid var(--xc-border); border-radius: var(--xc-radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.program-card--live:hover { transform: translateY(-4px); box-shadow: var(--xc-shadow); border-color: #CFDDF3; }
.program-card__art { position: relative; height: 196px; display: flex; align-items: flex-end; justify-content: center; overflow: hidden; background: var(--xc-blue-tint); }
.program-card__art--orange { background: var(--xc-orange-tint); }
.program-card__art--cream { background: var(--xc-cream); }
.program-card__body { display: flex; flex-direction: column; flex: 1; padding: 24px 28px 28px; }
.program-card__body h3 { margin-bottom: 8px; font-size: 1.45rem; }
.program-card__body p { flex: 1; color: var(--xc-text-muted); margin-bottom: 20px; }
.program-card .text-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tag {
  align-self: flex-start; margin-bottom: 12px; padding: 4px 12px; border-radius: var(--xc-radius-pill);
  background: var(--xc-blue-tint); color: var(--xc-blue);
  font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.02em;
}

.kids-row { display: flex; align-items: flex-end; justify-content: center; padding-inline: 12px; }
.kids-row img { width: auto; margin-left: -12px; transition: transform 0.25s ease; }
.kids-row img:first-child { margin-left: 0; }
.program-card--live:hover .kids-row img { transform: translateY(-4px); }
.program-card--live:hover .kids-row img:nth-child(even) { transform: translateY(-8px); }

/* Student peeking over a "Coming Soon" sign */
.peek { position: relative; width: 240px; height: 100%; }
.peek__kid { position: absolute; left: 50%; bottom: 14px; height: 150px; width: auto; transform: translateX(-50%); }
.peek__sign {
  position: absolute; left: 0; right: 0; bottom: 14px; height: 62px;
  display: grid; place-items: center;
  background: #fff; border: 3px solid var(--xc-peach); border-radius: 16px;
  box-shadow: 0 6px 0 rgba(229, 123, 55, 0.18);
  font: 600 1.3rem/1 var(--xc-font-display); letter-spacing: 0.02em; color: var(--xc-navy);
}
.peek__sign::before, .peek__sign::after {
  content: ""; position: absolute; top: -9px; width: 20px; height: 18px; border-radius: 10px 10px 8px 8px;
  background: var(--skin, #F4CFAE);
}
.peek__sign::before { left: 64px; }
.peek__sign::after { right: 64px; }

/* ---------- Feature highlights ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.features--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features, .features--3 { grid-template-columns: 1fr; } }
@media (min-width: 561px) and (max-width: 1000px) { .features--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 561px) and (max-width: 760px) { .features--3 { grid-template-columns: 1fr; } }

.feature { background: #fff; border: 2px solid var(--xc-border); border-radius: var(--xc-radius-card); padding: 28px 24px 26px; }
.feature h3 { margin: 18px 0 8px; font-size: 1.25rem; }
.feature p { margin: 0; color: var(--xc-text-muted); font-size: 1rem; }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--xc-blue-tint); color: var(--xc-blue); }
.feature__icon .icon { width: 28px; height: 28px; }
.feature__icon--orange { background: var(--xc-orange-tint); color: #C8612A; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px;
  padding: clamp(32px, 5vw, 60px);
  border-radius: 32px;
  background: linear-gradient(120deg, var(--xc-navy) 0%, #28479A 100%);
  color: #D9E2F7;
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 560px; font-size: 1.0625rem; }
.cta-band .text-link { color: #fff; margin-top: 16px; }
.cta-band .text-link:hover { color: var(--xc-gold); }
.cta-band > * { position: relative; }
.cta-band__deco { position: absolute !important; pointer-events: none; }
.cta-band__deco--ring { width: 300px; right: -110px; top: -130px; opacity: 0.16; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Grade tiles (programs) ---------- */
.grade-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 920px) { .grade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grade-grid { grid-template-columns: 1fr; } }

.grade-tile {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 2px solid var(--xc-border); border-radius: var(--xc-radius-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.grade-tile:hover { transform: translateY(-4px); box-shadow: var(--xc-shadow); border-color: #CFDDF3; }
.grade-tile__art { display: flex; align-items: flex-end; justify-content: center; height: 212px; background: var(--tile-bg, var(--xc-blue-tint)); }
.grade-tile__art img { width: auto; height: var(--h, 150px); transition: transform 0.25s ease; }
.grade-tile:hover .grade-tile__art img { transform: translateY(-6px); }
.grade-tile__body { display: flex; align-items: flex-start; gap: 16px; flex: 1; padding: 20px 22px 22px 24px; }
.grade-tile__text { flex: 1; }
.grade-tile__text h3 { margin-bottom: 4px; font-size: 1.4rem; }
.grade-tile__text p { margin: 0; color: var(--xc-text-muted); font-size: 0.98rem; line-height: 1.5; }

.arrow-btn {
  display: grid; place-items: center; flex: none; align-self: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--xc-orange), var(--xc-gold));
  color: var(--xc-navy);
  box-shadow: 0 3px 0 #D46E2C;
}
.arrow-btn::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.arrow-btn .icon { stroke-width: 2.6; transition: transform 0.15s; }
.grade-tile:hover .arrow-btn .icon { transform: translateX(3px); }
.arrow-btn:focus-visible { outline-offset: 4px; }

/* ---------- Course page ---------- */
.course-art { position: relative; width: clamp(190px, 26vw, 300px); aspect-ratio: 1; }
.course-art .stage { left: 0; right: 0; bottom: 0; }
.course-art .stage__pop > img { left: 50%; width: 62%; bottom: 0; transform: translateX(-50%); }
.course-art .float { width: clamp(22px, 3vw, 34px); }
@media (max-width: 720px) { .course-art { width: 200px; order: -1; } }

.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.prose-block p { color: #33416C; }

.panel { border-radius: var(--xc-radius-card); padding: clamp(24px, 3.5vw, 36px); }
.panel--orange { background: var(--xc-orange-tint); }
.panel h2, .panel h3 { font-size: 1.5rem; margin-bottom: 18px; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-weight: 600; }
.checklist .tick { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #C8612A; box-shadow: 0 0 0 2px var(--xc-peach) inset; }
.checklist .tick .icon { width: 17px; height: 17px; stroke-width: 3; }

.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 920px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card { background: #fff; border: 2px solid var(--xc-border); border-radius: 20px; padding: 24px 24px 20px; }
.topic-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.topic-card__head h3 { margin: 0; font-size: 1.2rem; }
.topic-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--xc-blue-tint); color: var(--xc-blue); flex: none; }
.topic-card:nth-child(even) .topic-card__icon { background: var(--xc-orange-tint); color: #C8612A; }
.topic-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.topic-card li { position: relative; padding-left: 20px; color: #33416C; font-size: 1rem; line-height: 1.5; }
.topic-card li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--xc-apricot); }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
@media (max-width: 920px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .facts { grid-template-columns: 1fr; } }
.fact { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: #fff; border: 2px solid var(--xc-border); }
.fact .icon { color: var(--xc-blue); }
.fact dt { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--xc-text-muted); }
.fact dd { margin: 0; font: 600 1.3rem/1.25 var(--xc-font-display); color: var(--xc-navy); }
.fact dd small { display: block; margin-top: 4px; font: 600 0.9375rem/1.4 var(--xc-font-body); color: var(--xc-text-muted); }

.note-card {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  margin-top: 16px; padding: 20px 24px; border-radius: 20px;
  border: 2px dashed #D6E2F5; background: #fff;
}
.note-card .icon { color: #C8612A; }
.note-card p { margin: 0; flex: 1; min-width: 220px; }

.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: clamp(40px, 6vw, 64px); }
.pager a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 8px 22px 8px 8px; border: 2px solid var(--xc-border); border-radius: var(--xc-radius-pill);
  color: var(--xc-navy); font-weight: 800; text-decoration: none; background: #fff;
  transition: border-color 0.15s, color 0.15s;
}
.pager a:hover { border-color: var(--xc-periwinkle); color: var(--xc-blue); }
.pager a.pager__next { margin-left: auto; flex-direction: row-reverse; padding: 8px 8px 8px 22px; }
.pager__face { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; background: var(--xc-blue-tint); flex: none; }
.pager__face img { width: 72px; max-width: none; height: auto; margin: -17px 0 0 -14px; }
.pager small { display: block; font-weight: 700; font-size: 0.8125rem; color: var(--xc-text-muted); }

/* ---------- About ---------- */
.mission { max-width: 920px; margin: 0 auto; text-align: center; }
.mission blockquote { margin: 0; font: 500 clamp(1.5rem, 1.1rem + 1.7vw, 2.35rem)/1.3 var(--xc-font-display); color: var(--xc-navy); }
.mission p { color: var(--xc-text-muted); max-width: 640px; margin: 20px auto 0; }

.gallery { display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: repeat(2, 220px); gap: 16px; margin: 0; padding: 0; list-style: none; }
.gallery li:first-child { grid-row: span 2; }
.gallery li:last-child { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 160px; }
  .gallery li:first-child { grid-column: span 2; grid-row: auto; }
  .gallery li:last-child { grid-column: span 2; }
}
.photo { position: relative; height: 100%; margin: 0; border-radius: 20px; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo--placeholder {
  display: grid; place-items: center; align-content: center; gap: 8px;
  background: repeating-linear-gradient(135deg, #F4F8FE 0 14px, #EDF3FC 14px 28px);
  border: 2px dashed #D3E0F4; color: var(--xc-text-muted); font-weight: 700; font-size: 0.9375rem; text-align: center;
}
.photo--placeholder .icon { width: 32px; height: 32px; color: var(--xc-periwinkle); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 20px; background: #fff; border: 2px solid var(--xc-border);
}
.contact-item__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--xc-blue-tint); color: var(--xc-blue); flex: none; }
.contact-item:nth-child(2) .contact-item__icon { background: var(--xc-orange-tint); color: #C8612A; }
.contact-item__label { display: block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--xc-text-muted); }
.contact-item a, .contact-item address { font-style: normal; font-weight: 700; font-size: 1.0625rem; color: var(--xc-navy); text-decoration: none; overflow-wrap: anywhere; }
.contact-item a:hover { color: var(--xc-blue); text-decoration: underline; }

.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--xc-radius-card); background: #fff; border: 2px solid var(--xc-border); box-shadow: 0 10px 30px rgba(31, 49, 106, 0.05); }
.form-card h2 { font-size: 1.75rem; margin-bottom: 6px; }
.form-card > p { color: var(--xc-text-muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-weight: 800; }
.field input, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  border: 2px solid var(--xc-border); border-radius: 14px; background: #FBFCFF;
  font: 400 1.0625rem/1.5 var(--xc-font-body); color: var(--xc-navy);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--xc-blue); background: #fff; box-shadow: 0 0 0 4px rgba(43, 83, 178, 0.14); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-foot { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 6px; }
.form-foot small { color: var(--xc-text-muted); font-size: 0.875rem; flex: 1; min-width: 200px; }
.form-banner {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 20px; padding: 14px 18px; border-radius: 14px;
  background: var(--xc-orange-tint); font-weight: 700;
}
.form-banner .icon { color: #C8612A; margin-top: 2px; }
.form-status:empty { display: none; }
.form-status { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--xc-blue-tint); font-weight: 700; }

.map { margin-top: clamp(32px, 5vw, 56px); border-radius: var(--xc-radius-card); overflow: hidden; border: 2px solid var(--xc-border); aspect-ratio: 16 / 7; background: var(--xc-blue-tint); }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) { .map { aspect-ratio: 4 / 3; } }

/* ---------- Simple pages (policies, thank-you, 404) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 0.5em; }
.prose p, .prose li { color: #33416C; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--xc-orange-deep); }
.updated { color: var(--xc-text-muted); font-weight: 700; font-size: 0.9375rem; }
.draft-note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-bottom: 28px; padding: 16px 20px; border-radius: 14px;
  background: var(--xc-orange-tint); border-left: 5px solid var(--xc-orange); font-weight: 600;
}
.draft-note .icon { color: #C8612A; margin-top: 2px; }

.center-page { text-align: center; padding-block: clamp(48px, 8vw, 96px); }
.center-page__art { width: clamp(180px, 30vw, 240px); margin: 0 auto 24px; }
.center-page .lead { max-width: 560px; margin: 0 auto 32px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--xc-navy-deep); color: #C9D3EE; padding-top: clamp(48px, 7vw, 72px); font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.2fr 0.8fr 1fr; gap: 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand img { height: 60px; width: auto; margin-bottom: 18px; }
.footer-brand .tagline { font-weight: 800; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; margin-bottom: 12px; }
.footer-brand p { max-width: 320px; }
.site-footer h2 { margin: 0 0 16px; font: 800 0.8125rem/1.3 var(--xc-font-body); letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: #C9D3EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 20px; height: 20px; color: var(--xc-gold); margin-top: 3px; }
.footer-contact address { font-style: normal; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(40px, 6vw, 56px); padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.9rem; color: #A9B6DA;
}
.footer-bottom p { margin: 0; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Helpers ---------- */
/* Highlighted text to replace with real details before launch */
.ph { background: #FFF3E6; box-shadow: inset 0 -2px 0 var(--xc-apricot); border-radius: 4px; padding: 0 4px; }
.page-hero--simple { padding-bottom: clamp(56px, 7vw, 88px); }
.trial-card { margin-top: 20px; }
.trial-card p { color: #33416C; }
[id] { scroll-margin-top: 96px; }

@media (max-width: 560px) {
  .feature { display: grid; grid-template-columns: 48px 1fr; gap: 2px 16px; padding: 20px; align-items: start; }
  .feature__icon { grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; }
  .feature__icon .icon { width: 24px; height: 24px; }
  .feature h3 { margin: 2px 0 4px; }
}

/* ---------- Program content (Grades 1–6 Math) ---------- */
.enroll-badge {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px; padding: 7px 16px 7px 12px;
  border-radius: var(--xc-radius-pill); background: #fff; border: 1.5px solid var(--xc-peach);
  font-weight: 800; font-size: 0.875rem; line-height: 1.3; color: var(--xc-navy);
}
.enroll-badge::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--xc-orange); box-shadow: 0 0 0 4px rgba(240, 138, 62, 0.22);
}
.subtitle { margin: -0.1em 0 0.8em; font: 500 clamp(1.2rem, 1rem + 0.8vw, 1.5rem)/1.3 var(--xc-font-display); color: var(--xc-blue); }

/* Concrete → Pictorial → Abstract */
.cpa { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin: 0; padding: 0; list-style: none; }
.cpa__step { position: relative; padding: 18px 22px 26px; border-radius: var(--xc-radius-card); background: #fff; border: 2px solid var(--xc-border); text-align: center; }
.cpa__step + .cpa__step::before {
  content: ""; position: absolute; left: -41px; top: 62px; width: 34px; height: 34px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23E57B37' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 18px no-repeat;
  box-shadow: 0 0 0 2px var(--xc-peach);
}
.cpa__art { display: grid; place-items: center; height: 124px; margin-bottom: 18px; border-radius: 16px; background: var(--xc-blue-tint); }
.cpa__step:nth-child(2) .cpa__art { background: var(--xc-orange-tint); }
.cpa__art svg { width: 100%; max-width: 230px; height: auto; }
.cpa__art text { font: 600 20px var(--xc-font-display); fill: var(--xc-navy); }
.cpa__art .cpa__eq { font-size: 38px; }
.cpa__label { display: block; margin-bottom: 4px; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--xc-blue); }
.cpa__step h3 { margin-bottom: 6px; font-size: 1.4rem; }
.cpa__step p { margin: 0; color: var(--xc-text-muted); font-size: 1rem; }
@media (max-width: 800px) {
  .cpa { grid-template-columns: 1fr; gap: 44px; max-width: 460px; margin-inline: auto; }
  .cpa__step + .cpa__step::before { left: 50%; top: -40px; transform: translateX(-50%) rotate(90deg); }
}

.split {
  display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 16px clamp(24px, 5vw, 64px); align-items: start;
  margin-top: clamp(48px, 7vw, 80px); padding-top: clamp(32px, 5vw, 56px);
  border-top: 2px dashed #F1E0CC;
}
.split h2 { margin: 0; }
.split p { margin: 0; font-size: 1.125rem; color: #33416C; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

.strand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .strand-grid { grid-template-columns: 1fr; max-width: 640px; } }
.strand { padding: 28px 26px; border-radius: var(--xc-radius-card); background: #fff; border: 2px solid var(--xc-border); }
.strand h3 { margin: 18px 0 10px; font-size: 1.3rem; }
.strand p { margin: 0; color: #33416C; font-size: 1rem; }

.align-card {
  display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 20px 40px; align-items: center;
  margin-top: 24px; padding: clamp(24px, 4vw, 36px); border-radius: var(--xc-radius-card); background: var(--xc-blue-tint);
}
.align-card h3 { margin: 0 0 8px; font-size: 1.35rem; }
.align-card p { margin: 0; color: var(--xc-text-muted); }
.align-card .chips { margin: 0; }
.align-card .chip .icon { color: #C8612A; stroke-width: 2.6; }
@media (max-width: 860px) { .align-card { grid-template-columns: 1fr; } }

.cta-band__accent { display: block; color: var(--xc-gold); }

/* Method strip on course pages */
.cpa-mini { margin-top: 24px; padding: 18px 22px; border-radius: 18px; background: var(--xc-blue-tint); }
.cpa-mini__label { display: block; margin-bottom: 10px; font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--xc-blue); }
.cpa-mini ol { display: flex; flex-wrap: wrap; gap: 8px 40px; margin: 0; padding: 0; list-style: none; }
.cpa-mini li { position: relative; display: flex; flex-direction: column; font-size: 0.9375rem; font-weight: 600; color: var(--xc-text-muted); }
.cpa-mini li strong { font: 600 1.1rem/1.3 var(--xc-font-display); color: var(--xc-navy); }
.cpa-mini li + li::before { content: "→"; position: absolute; left: -28px; top: 0; font-weight: 800; font-size: 1.1rem; color: var(--xc-orange-deep); }

/* ---------- Programs dropdown ---------- */
.has-sub { position: relative; }
.nav-toggle { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle .chev { width: 18px; height: 18px; stroke-width: 2.4; transition: transform 0.15s; }
.nav-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.subnav {
  position: absolute; top: calc(100% + 10px); left: 50%; z-index: 60;
  min-width: 290px; margin: 0; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--xc-border); border-radius: 18px; box-shadow: var(--xc-shadow);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
}
.subnav::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-toggle[aria-expanded="true"] + .subnav,
html:not(.js) .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 801px) {
  .has-sub:hover .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
}
.subnav a { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; font-weight: 800; line-height: 1.35; color: var(--xc-navy); text-decoration: none; }
.subnav small { font-size: 0.8125rem; font-weight: 600; color: var(--xc-text-muted); }
.subnav a:hover { background: var(--xc-blue-tint); color: var(--xc-blue); }
.subnav a[aria-current="page"] { background: var(--xc-orange-tint); }
@media (max-width: 800px) {
  .js .nav-toggle { width: 100%; justify-content: space-between; }
  .js .has-sub .subnav {
    display: none; position: static; min-width: 0; margin: 2px 0 8px 16px; padding: 0 0 0 12px;
    border: 0; border-left: 2px solid var(--xc-border); border-radius: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .js .nav-toggle[aria-expanded="true"] + .subnav { display: block; transform: none; }
  .js .subnav::before { display: none; }
}

/* ---------- Coming-soon pages ---------- */
.btn .icon { width: 20px; height: 20px; }
.soon-art {
  display: flex; align-items: flex-end; justify-content: center;
  width: clamp(250px, 26vw, 300px); height: 210px; overflow: hidden;
  border: 3px solid #fff; border-radius: 28px; background: var(--xc-orange-tint);
  box-shadow: 0 20px 40px rgba(31, 49, 106, 0.08);
}
.soon-art--cream { background: var(--xc-cream); }
@media (max-width: 720px) { .soon-art { order: -1; width: 260px; height: 190px; } }
