/* =========================================================
   DREAMSPARK ACADEMY — brand system (recreated static site)
   Palette derived from the real logo: burnt-orange + deep navy.
   Fonts: Outfit (display) + Figtree (body).
   ========================================================= */

:root {
  --orange:    #F06000;   /* logo burnt orange (primary) */
  --orange-d:  #C44E00;   /* darker orange (hover/active) */
  --orange-l:  #FF8A3D;   /* light orange (tints/accents) */
  --navy:      #003050;   /* logo deep navy */
  --navy-d:    #06283D;   /* darker navy (dark sections) */
  --ink:       #08303F;   /* text (navy-black) */
  --muted:     #5C7184;   /* muted slate */
  --bg:        #FFFFFF;
  --bg-soft:   #FFF4EC;   /* warm orange off-white */
  --navy-soft: #EAF1F6;   /* pale navy tint */
  --line:      rgba(8,48,63,0.14);
  --line-soft: rgba(8,48,63,0.07);
  --display: "Outfit", system-ui, sans-serif;
  --body: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow:     0 18px 44px rgba(8,48,63,0.10);
  --shadow-sm:  0 8px 22px rgba(8,48,63,0.07);
  --shadow-orange: 0 14px 34px rgba(240,96,0,0.28);
  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); background: var(--bg); color: var(--ink); line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 300; background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; transition: top .2s var(--ease); }
.skip-link:focus { top: 16px; }

/* ---------- Layout container (fixes the "no margins" issue) ---------- */
.page-shell { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 1rem; padding: 13px 26px; border-radius: 999px; border: 0; transition: transform .35s cubic-bezier(0.34,1.56,0.64,1), background-color .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn-lg { padding: 16px 32px; font-size: 1.06rem; }
.btn-block { width: 100%; padding: 16px; font-size: 1.06rem; }
.btn-cta { background: var(--orange); color: #fff; box-shadow: var(--shadow-orange); }
.btn-cta:hover { background: var(--orange-d); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 20px; padding: 14px var(--pad); background: rgba(255,255,255,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.brand-logo { height: 48px; width: auto; }
.desktop-nav { display: flex; gap: 28px; margin-left: auto; }
.nav-link { font-weight: 600; font-size: 1rem; color: var(--muted); position: relative; padding: 6px 0; transition: color .25s; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--orange); }
.nav-link.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; border-radius: 999px; background: var(--orange); }
.mobile-toggle { display: none; margin-left: auto; background: transparent; border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); padding: 8px 12px; }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 8px var(--pad) 16px; border-bottom: 1px solid var(--line-soft); background: #fff; }
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; color: var(--muted); }
.mobile-nav a.active { color: var(--orange); }

/* ---------- Mission / About heading ---------- */
.mission-heading { display: grid; gap: 18px; padding: clamp(56px,9vw,100px) 0 32px; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.82rem; color: var(--orange); }
.academy-heading { font-size: clamp(2.4rem, 7vw, 5rem); font-weight: 800; letter-spacing: -0.02em; }
.display-title { font-size: clamp(2rem, 6vw, 4.2rem); font-weight: 800; line-height: 1.02; }
.outlined-title { color: var(--orange); -webkit-text-stroke: 2px var(--orange); }
.orange-rule { width: 120px; height: 6px; border-radius: 999px; background: var(--orange); margin-top: 6px; }

.mission-copy { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(24px,4vw,56px); padding-bottom: clamp(48px,7vw,88px); align-items: start; }
.ownership { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 26px 24px; }
.ownership h3 { font-size: 1.25rem; margin-bottom: 10px; }
.ownership p { color: var(--muted); font-size: 0.98rem; }
.philosophy-lead { font-size: clamp(1.1rem,2vw,1.3rem); color: var(--ink); font-weight: 500; }
.philosophy-lead strong { color: var(--orange); }
.philosophy-note { margin-top: 16px; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px,10vw,128px) 0; }
.section-head { margin-bottom: 40px; }
.section-heading { display: grid; gap: 10px; margin-bottom: 36px; }
.section-heading h2, .section-head h2 { font-size: clamp(2rem,5vw,3.4rem); font-weight: 800; }
.section-rule { width: 90px; height: 5px; border-radius: 999px; background: var(--orange); }
.lead { color: var(--muted); font-size: 1.12rem; margin-top: 14px; max-width: 620px; }

/* ---------- Team ---------- */
.team-section { background: var(--bg-soft); }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.ceo-profile { grid-column: 1 / -1; display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.operations-profile, .director-profile { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.portrait { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--r-md); background: linear-gradient(160deg, var(--orange), var(--navy)); }
.portrait.mono { display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(3rem,8vw,5rem); letter-spacing: -0.03em; }
.profile-name { font-size: 1.5rem; }
.credentials { color: var(--orange); font-weight: 700; font-size: 0.95rem; }
.profile-role { color: var(--muted); font-weight: 600; margin: 2px 0 12px; }
.profile-copy p { color: var(--muted); margin-bottom: 10px; }
.director-profile { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
.director-profile .portrait { aspect-ratio: 1; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(110% 80% at 88% 0%, rgba(240,96,0,0.14), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(0,48,80,0.10), transparent 55%), var(--bg-soft); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px,5vw,64px); align-items: center; padding: clamp(64px,10vw,120px) 0; }
.hero-title { font-size: clamp(2.8rem,8vw,5.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 0.98; }
.hero-title em { font-style: normal; color: var(--orange); }
.hero-sub { margin-top: 22px; max-width: 520px; color: var(--muted); font-size: clamp(1.05rem,2vw,1.25rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-badge { position: absolute; margin: 16px; display: inline-block; background: rgba(255,255,255,0.92); color: var(--orange-d); font-weight: 800; font-size: 0.8rem; padding: 8px 15px; border-radius: 999px; }

.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-top: 32px; }
.stat { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 22px; background: #fff; box-shadow: var(--shadow-sm); }
.stat-num { display: block; font-family: var(--display); font-weight: 800; font-size: clamp(2rem,4vw,2.8rem); color: var(--orange); }
.stat-label { color: var(--muted); font-weight: 600; font-size: 0.92rem; }

/* ---------- Programs (age tabs) ---------- */
.age-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 28px; }
.age-tabs button { background: #fff; border: 2px solid var(--line); color: var(--ink); padding: 12px 24px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 1rem; transition: background-color .25s, color .25s, border-color .3s, transform .3s cubic-bezier(0.34,1.56,0.64,1); }
.age-tabs button:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.age-tabs button[aria-selected="true"] { background: var(--orange); color: #fff; border-color: var(--orange); box-shadow: var(--shadow-orange); }
.band { display: none; grid-template-columns: 0.9fr 1.1fr; gap: clamp(22px,4vw,52px); align-items: start; }
.band.active { display: grid; }
.band-media { position: relative; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.band-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.band-media .chip { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.92); color: var(--orange-d); font-size: 0.78rem; font-weight: 800; padding: 7px 14px; border-radius: 999px; }
.band-cards { display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .4s cubic-bezier(0.34,1.56,0.64,1), border-color .3s; }
.card:hover { transform: translateY(-6px); border-color: rgba(240,96,0,0.5); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); margin-top: 6px; }
.card .age-note { color: var(--orange-d); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Center finder (search-first) ---------- */
.finder { max-width: 760px; }
.finder input { width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r-md); padding: 17px 20px; transition: border-color .25s, box-shadow .25s; }
.finder input::placeholder { color: #b3a9b6; font-weight: 500; }
.finder input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,96,0,0.16); }
.finder-hint { color: var(--muted); margin: 12px 2px 0; font-weight: 600; }
.finder-results { margin-top: 18px; display: grid; gap: 12px; }
.center { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; box-shadow: var(--shadow-sm); transition: transform .35s cubic-bezier(0.34,1.56,0.64,1), border-color .3s; }
.center:hover { transform: translateY(-3px); border-color: rgba(0,48,80,0.4); }
.center .c-name { font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
.center .c-prov { color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.center .c-go { background: var(--navy); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; font-size: 0.9rem; }
.center .c-go:hover { background: var(--navy-d); }
.finder-empty { color: var(--muted); padding: 26px 2px; font-weight: 600; }

/* ---------- Bento / cards ---------- */
.bento { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.bento .card { display: flex; flex-direction: column; gap: 8px; }
.card-tag { margin-top: auto; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 800; color: var(--navy); padding-top: 8px; }
.card-icon { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--orange); background: rgba(240,96,0,0.12); margin-bottom: 4px; }
.card-icon svg { width: 26px; height: 26px; }

/* ---------- Split (franchise / team) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
.split .card-media { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: var(--shadow); }
.split .card-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* ---------- Blog / listings ---------- */
.posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.post { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.post .post-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--orange), var(--navy)); }
.post .post-body { padding: 20px 22px 24px; }
.post .post-ch { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); font-weight: 800; }
.post h3 { font-size: 1.25rem; margin-top: 6px; }
.post p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }
.post .post-go { color: var(--orange); font-weight: 700; margin-top: 12px; display: inline-block; }

.job, .tuition-tier, .listing { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); }
.job h3, .tuition-tier h3, .listing h3 { font-size: 1.3rem; }
.job .meta, .listing .meta { color: var(--muted); font-weight: 600; font-size: 0.92rem; margin: 4px 0 12px; }
.job p, .listing p, .tuition-tier p { color: var(--muted); }
.stack { display: grid; gap: 16px; }
.callout { background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 30px; }
.callout h3 { font-size: 1.5rem; }

/* ---------- Form ---------- */
.trial-form { max-width: 640px; display: grid; gap: 16px; }
.trial-form label { display: block; font-size: 0.85rem; font-weight: 800; letter-spacing: 0.04em; color: var(--muted); }
.trial-form input, .trial-form select, .trial-form textarea { width: 100%; font: inherit; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r-sm); padding: 13px 15px; transition: border-color .25s, box-shadow .25s; }
.trial-form input:focus, .trial-form select:focus, .trial-form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(240,96,0,0.15); }
.trial-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trial-success { display: none; background: linear-gradient(160deg, var(--orange), var(--orange-d)); color: #fff; border-radius: var(--r-md); padding: 28px; font-weight: 600; box-shadow: 0 16px 40px rgba(240,96,0,0.30); }
.trial-success strong { display: block; font-family: var(--display); font-size: 1.8rem; margin-bottom: 6px; }

/* ---------- Footer (dark brand band) ---------- */
.site-footer { background: var(--navy-d); margin-top: 40px; color: #fff; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 56px var(--pad) 40px; display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255,255,255,0.72); font-weight: 600; transition: color .25s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,0.72); font-weight: 600; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.palette-dots { display: inline-flex; gap: 8px; }
.palette-dot { width: 14px; height: 14px; border-radius: 50%; }
.palette-dot:nth-child(1) { background: var(--orange); }
.palette-dot:nth-child(2) { background: var(--orange-l); }
.palette-dot:nth-child(3) { background: #fff; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal { opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-flex; }
  .hero-inner, .mission-copy, .band, .split, .team-grid, .ceo-profile, .director-profile { grid-template-columns: 1fr; }
  .ceo-profile .portrait, .director-profile .portrait { max-width: 280px; }
  .bento, .posts { grid-template-columns: repeat(2,1fr); }
  .stats-strip { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .bento, .posts, .stats-strip { grid-template-columns: 1fr; }
  .trial-form .row2 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .reveal { opacity: 1 !important; transform: none !important; } }
