/* EduTech STEM Academy — homepage only (other pages keep styles.css) */
:root {
  --navy: #003b5f;
  --navy-deep: #02283f;
  --teal: #78a8ab;
  --teal-dark: #357a7f;
  --gold: #f4b942;
  --gold-deep: #e0a12a;
  --coral: #e86d4f;
  --green: #2e9d70;
  --violet: #6f5aa8;
  --sky: #3a87c8;
  --ink: #102434;
  --muted: #5b6b76;
  --line: #dde6ea;
  --soft: #f3f8f9;
  --cream: #fffaf0;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 59, 95, 0.14);
  --shadow-sm: 0 8px 24px rgba(0, 59, 95, 0.08);
  --serif: "Source Serif 4", Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: var(--white); color: var(--ink); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--navy-deep); line-height: 1.15; }
h2 { font: 700 clamp(1.8rem, 3.6vw, 2.6rem)/1.12 var(--serif); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; padding: 8px 14px; border-radius: 8px; background: var(--navy); color: #fff; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; }

.eyebrow { margin-bottom: 10px; color: var(--teal-dark); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border: 2px solid transparent; border-radius: 999px;
  font-weight: 800; font-size: 0.98rem; text-decoration: none; transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.9rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 6px 0 var(--gold-deep); }
.btn-gold:hover { box-shadow: 0 7px 0 var(--gold-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--navy-deep); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; min-height: 72px; padding: 10px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid rgba(221, 230, 234, 0.9); background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(14px); }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 10px; margin-right: auto; color: var(--navy-deep); font-weight: 800; text-decoration: none; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.nav { display: flex; gap: 4px; }
.nav a { white-space: nowrap; padding: 8px 10px; border-radius: 999px; color: var(--ink); font-size: 0.92rem; font-weight: 600; text-decoration: none; }
.nav a:hover { background: var(--soft); color: var(--navy); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 9px 14px; border: 2px solid var(--navy); border-radius: 999px; color: var(--navy); font-weight: 800; font-size: 0.9rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); display: grid; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
.menu-panel a { padding: 11px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; text-decoration: none; }
.menu-panel a:hover { background: var(--soft); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 5vw, 64px); align-items: center;
  padding: clamp(40px, 7vw, 88px) clamp(16px, 5vw, 72px) clamp(48px, 7vw, 96px);
  background: radial-gradient(900px 500px at 85% 10%, rgba(120, 168, 171, 0.28), transparent 60%),
              radial-gradient(700px 420px at 0% 100%, rgba(244, 185, 66, 0.22), transparent 60%), var(--cream); }
.hero h1 { font: 700 clamp(2.4rem, 5.4vw, 4.1rem)/1.04 var(--serif); letter-spacing: -0.02em; }
.lede { max-width: 560px; margin-top: 20px; color: #2c4250; font-size: clamp(1.02rem, 1.6vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--navy); font-weight: 700; font-size: 0.93rem; }
.ticks li::before { content: "\2713"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; border-radius: 50%; background: var(--green); color: #fff; font-size: 0.75rem; }
.hero-shot { position: relative; margin: 0; }
.frame { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); transform: rotate(-1deg); }
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--muted); font-size: 0.78rem; font-weight: 600; }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9e2e6; }
.frame-bar i:first-child { background: #f28b74; } .frame-bar i:nth-child(2) { background: var(--gold); } .frame-bar i:nth-child(3) { background: #7cc59f; }
.frame-bar span { margin-left: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float { position: absolute; display: grid; gap: 2px; padding: 12px 16px; border-radius: 14px; background: #fff; box-shadow: var(--shadow); font-size: 0.85rem; }
.float b { color: var(--navy-deep); }
.float span { color: var(--muted); }
.float-a { left: -18px; bottom: -22px; border-left: 5px solid var(--green); }
.float-b { right: -12px; top: -20px; border-left: 5px solid var(--gold); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.stats div { display: grid; gap: 2px; padding: 22px 12px; background: #fff; text-align: center; }
.stats b { color: var(--navy); font: 700 clamp(1.6rem, 2.6vw, 2.2rem)/1.1 var(--serif); }
.stats span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ---------- bands ---------- */
.band { padding: clamp(56px, 8vw, 104px) clamp(16px, 5vw, 72px); }
.band-soft { background: var(--soft); }
.band-navy { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); color: #e7f0f4; }
.head { max-width: 760px; margin: 0 auto clamp(32px, 5vw, 52px); text-align: center; }
.head > p:last-child:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.head-light h2 { color: #fff; }
.head-light .eyebrow { color: var(--gold); }

/* ---------- subjects ---------- */
.subjects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.subj { --c: var(--navy); display: flex; flex-direction: column; gap: 10px; padding: 24px; border: 1px solid var(--line); border-top: 6px solid var(--c);
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform 160ms ease, box-shadow 160ms ease; }
.subj:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.subj .ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 1.6rem; }
.subj h3 { font-size: 1.3rem; }
.subj .meta { color: var(--c); font-size: 0.85rem; font-weight: 800; }
.subj > p:not(.meta):not(.nums) { color: #34495a; font-size: 0.95rem; }
.subj .nums { margin-top: auto; padding-top: 6px; color: var(--muted); font-size: 0.84rem; font-weight: 600; }
.go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-top: 6px; }
.go > a:not(.btn) { color: var(--navy); font-size: 0.9rem; font-weight: 700; text-underline-offset: 3px; }
.s-math { --c: #3a6fc4; } .s-addm { --c: #6f5aa8; } .s-bio { --c: #2e9d70; } .s-chem { --c: #d0603f; } .s-phys { --c: #c98a12; } .s-it { --c: #357a7f; }
.extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 20px auto 0; }
.extra { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 28px; border-radius: var(--radius); background: var(--cream); border: 1px solid #f1e3c4; }
.extra-alt { background: #eef6f6; border-color: #d4e7e7; }
.extra h3 { font: 700 1.5rem/1.2 var(--serif); }
.extra p { color: #34495a; }
.extra .small { color: var(--muted); font-size: 0.85rem; }

/* ---------- how it works ---------- */
.step { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1180px; margin: 0 auto; }
.step + .step { margin-top: clamp(48px, 7vw, 88px); }
.step.flip .step-copy { order: 2; }
.num { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font-weight: 900; font-size: 1.2rem; }
.step h3 { font: 700 clamp(1.5rem, 2.6vw, 2rem)/1.15 var(--serif); }
.step-copy > p { margin-top: 12px; color: #34495a; font-size: 1.04rem; }
.mini { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.mini li { padding-left: 28px; position: relative; color: var(--navy); font-weight: 600; font-size: 0.95rem; }
.mini li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 14px; border-radius: 4px; background: var(--teal); }
.shot { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.shot-pair { position: relative; padding-bottom: 18%; }
.shot-pair .shot:first-child { width: 86%; }
.shot-over { position: absolute; right: 0; bottom: 0; width: 62% !important; transform: rotate(2deg); }

/* ---------- parents & teachers ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.card { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card > span { display: block; margin-bottom: 12px; font-size: 1.7rem; }
.card p { margin-top: 8px; color: #34495a; font-size: 0.95rem; }

/* ---------- beyond the screen ---------- */
.more { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 1180px; margin: 0 auto; }
.more article { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); }
.more h3 { color: #fff; font: 700 1.4rem/1.2 var(--serif); }
.more p { color: #cfdde4; }
.more .btn { margin-top: auto; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; max-width: 1080px; margin: 0 auto; }
.about h2 { margin-bottom: 16px; }
.about p + p { margin-top: 12px; }
.about p { color: #34495a; font-size: 1.04rem; }
.about .btn { margin-top: 22px; }
.facts { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.facts li { display: grid; gap: 2px; padding: 18px 22px; border-left: 6px solid var(--gold); border-radius: 12px; background: var(--cream); }
.facts b { color: var(--navy-deep); font: 700 1.5rem/1.2 var(--serif); }
.facts span { color: var(--muted); font-size: 0.93rem; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { position: relative; padding: 18px 52px 18px 20px; cursor: pointer; list-style: none; color: var(--navy-deep); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--teal-dark); font-size: 1.5rem; font-weight: 500; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 20px 18px; color: #34495a; }

/* ---------- final cta ---------- */
.cta { padding: clamp(56px, 8vw, 96px) clamp(16px, 5vw, 72px); background: radial-gradient(700px 300px at 50% 0%, rgba(244, 185, 66, 0.25), transparent 70%), var(--navy-deep); text-align: center; }
.cta h2 { color: #fff; }
.cta p { margin-top: 12px; color: #cfdde4; font-size: 1.08rem; }

/* ---------- footer (as before) ---------- */
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding: 28px clamp(18px, 6vw, 88px);
  border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-weight: 800; }
.site-footer a { text-decoration: none; transition: color 160ms ease; }
.site-footer a:hover { color: var(--teal-dark); }
.site-footer span { color: var(--navy); }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.powered-by { display: flex; align-items: center; gap: 12px; }
.powered-by span { color: var(--muted); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.powered-by img { width: min(230px, 48vw); height: auto; max-height: 58px; object-fit: contain; }
.site-footer .edu-copyright { flex-basis: 100%; max-width: 900px; font-size: 0.8rem; font-weight: 500; line-height: 1.5; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu { display: block; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero, .step, .about { grid-template-columns: minmax(0, 1fr); }
  .step.flip .step-copy { order: 0; }
  .subjects, .cards, .more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-shot { margin: 8px 8px 24px; }
}
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .brand span { font-size: 0.95rem; }
  .subjects, .cards, .more, .extras { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-a { left: -4px; bottom: -18px; }
  .float-b { right: -4px; top: -16px; }
  .float { padding: 8px 12px; font-size: 0.78rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .site-footer { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .subj { transition: none; }
}
.shot-tall { width: auto; max-width: min(100%, 460px); justify-self: center; }

/* ---------- feedback form (feedback.html) ---------- */
.fb-wrap { max-width: 760px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) 16px clamp(56px, 8vw, 96px); }
.fb-intro { margin-bottom: 28px; }
.fb-intro h1, .fb-done h1 { font: 700 clamp(2rem, 4.4vw, 2.9rem)/1.1 var(--serif); }
.fb-intro p:last-child { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.fb-form { display: grid; gap: 22px; padding: clamp(20px, 4vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.fb-field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.fb-field legend, .fb-field .lab { padding: 0; color: var(--navy-deep); font-weight: 700; }
.fb-field legend { margin-bottom: 8px; }
.req { margin-left: 6px; color: var(--coral); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.fb-form input[type="text"], .fb-form input[type="email"], .fb-form select, .fb-form textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c9d6dc; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; }
.fb-form textarea { resize: vertical; }
.fb-form input:focus, .fb-form select:focus, .fb-form textarea:focus { border-color: var(--sky); outline: 3px solid rgba(58, 135, 200, 0.2); outline-offset: 0; }
.fb-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.fb-chips input { position: absolute; opacity: 0; }
.fb-chips span { display: inline-block; padding: 10px 16px; border: 1.5px solid #c9d6dc; border-radius: 999px; cursor: pointer; font-weight: 600; }
.fb-chips input:checked + span { border-color: var(--navy); background: var(--navy); color: #fff; }
.fb-chips input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
.fb-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.fb-stars input { position: absolute; opacity: 0; }
.fb-stars label { color: #d3dde1; font-size: 2.2rem; line-height: 1; cursor: pointer; transition: color 120ms ease; }
.fb-stars input:checked ~ label, .fb-stars label:hover, .fb-stars label:hover ~ label { color: var(--gold); }
.fb-stars input:focus-visible + label { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.hint { color: var(--muted); font-size: 0.88rem; }
.fb-check { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--cream); cursor: pointer; }
.fb-check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--navy); }
.fb-form .btn { justify-self: start; }
.fb-done { text-align: center; }
.fb-done p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.fb-tick { display: inline-grid; place-items: center; width: 72px; height: 72px; margin-bottom: 18px; border-radius: 50%; background: var(--green); color: #fff; font-size: 2.2rem; }
@media (max-width: 640px) { .fb-row { grid-template-columns: minmax(0, 1fr); } .fb-form .btn { justify-self: stretch; } }
.fb-intro .fb-about { display: inline-block; margin-top: 14px; padding: 6px 14px; border-radius: 999px; background: #eef6f6; color: var(--teal-dark); font-size: 0.9rem; font-weight: 700; }

/* ---------- testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; max-width: 1180px; margin: 0 auto; }
.quotes:not(:has(.quote)) { display: none; }
.quote { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.quote .stars { color: var(--gold); font-size: 1.1rem; letter-spacing: 2px; }
.quote blockquote { flex: 1; margin: 0; color: var(--ink); font: 600 1.08rem/1.55 var(--serif); }
.quote blockquote::before { content: "\201C"; display: block; height: 0.6em; color: var(--teal); font-size: 3rem; line-height: 1; }
.quote figcaption { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.quote figcaption b { color: var(--navy-deep); }
.quote figcaption span { color: var(--muted); font-size: 0.88rem; }
.voices-invite { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 24px; max-width: 860px; margin: 24px auto 0; padding: 22px 26px;
  border: 2px dashed #e7cf95; border-radius: var(--radius); background: var(--cream); text-align: center; }
.voices-invite p { color: #34495a; }
.voices-invite b { color: var(--navy-deep); }
@media (max-width: 900px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
