/* Shared visual refinement: premium colour, readable type, and restrained motion. */
:root {
  --navy: #10283d;
  --navy2: #1a3b4d;
  --gold: #bd9c63;
  --gold-light: #ead8ae;
  --teal: #47796f;
  --cream: #f8f5ed;
  --paper: #fffdfa;
  --ink: #1b303b;
  --muted: #586a6d;
  --line: #ddd9ce;
  --max: 1240px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.72;
}

main p:not(.eyebrow):not(.placeholder-note):not(.form-note) {
  line-height: 1.72;
}

.eyebrow {
  color: #536a64;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .16em;
}

.brand { flex: 0 0 auto; }
.brand-logo { display: block; width: 190px; height: auto; }
.brand-light .brand-logo { width: 180px; }

#primary-nav { gap: clamp(16px, 2vw, 28px); }
#primary-nav > a { font-size: 14px; }
#primary-nav > a:hover,
#primary-nav > a[aria-current="page"] { color: #866a3d; }
.nav-contact { padding: 10px 15px; }

.hero {
  background:
    radial-gradient(ellipse at 79% 43%, rgba(189, 156, 99, .07), transparent 31%),
    var(--paper);
}
.hero h1 {
  font-size: clamp(42px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.068em;
}
.page-hero {
  background:
    radial-gradient(ellipse at 88% 42%, rgba(71, 121, 111, .24), transparent 34%),
    linear-gradient(115deg, #0d2336 0%, #15334a 62%, #193b4b 100%);
}
.page-hero h1 {
  font-size: clamp(46px, 6.1vw, 80px);
  line-height: 1.02;
  letter-spacing: -.07em;
}
.page-hero:after {
  color: rgba(234, 216, 174, .055);
  animation: wonderlab-orbit 44s linear infinite;
  transform-origin: center;
}
.hero h1, .page-hero h1 { animation: wonderlab-title .72s cubic-bezier(.2,.7,.25,1) both; }

.lead { font-size: 18px; line-height: 1.75; color: #53676e; }
.page-hero .lead { color: #d0dbd8; }
.hero-note { font-size: 13px; }
.hero-bottom { font-size: 10px; letter-spacing: .14em; }

.section { padding-top: clamp(76px, 7.2vw, 100px); padding-bottom: clamp(76px, 7.2vw, 100px); }
.intro-section { padding-top: 74px; padding-bottom: 96px; }
.section-label { color: #566a65; font-size: 11px; letter-spacing: .13em; }
.section h2, .center-cta h2, .outcomes-title h2, .contact-info h2,
.teacher-copy h2, .teacher-bio h2, .trial-intro h2 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -.055em;
}
.section-heading { gap: clamp(30px, 6vw, 80px); }
.section-heading > p { font-size: 17px; line-height: 1.72; color: #53676b; }
.body-large { font-size: 19px; line-height: 1.75; }
.section p:not(.eyebrow):not(.placeholder-note):not(.form-note) { max-width: 70ch; }
.section-heading > p, .schedule-notice > div > p, .contact-form-wrap p,
.teacher-copy > p, .teacher-bio > p { max-width: 70ch; }

.cream-section {
  background: linear-gradient(135deg, #faf8f1 0%, #f4f0e6 100%);
}
.teacher-section, .outcomes-section, .small-class-band {
  background: linear-gradient(135deg, #edf2ed 0%, #e1ebe4 100%);
}
.grade-card {
  background: #fffefa;
  border-color: #e4dfd2;
  box-shadow: 0 5px 16px rgba(16, 40, 61, .025);
}
.grade-card:hover, .grade-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 16px 36px rgba(16, 40, 61, .09);
}
.grade-pill { font-size: 11px; color: #285e56; background: #e5eee8; }
.grade-index { font-size: 12px; color: #8a9690; }
.grade-card h3 { font-size: clamp(21px, 2vw, 25px); }
.grade-subjects { display: block; margin-top: 11px; color: #586a6d; font-size: 12px; font-weight: 600; }
.step-card { background: rgba(255, 254, 250, .88); }
.step-card > span { font-size: 12px; }
.step-card h3 { font-size: 29px; }
.step-card p { font-size: 16px; line-height: 1.7; }
.programme-level { font-size: 13px; }
.programme-row > p { font-size: 15px; line-height: 1.65; }
.programme-details { grid-column: 3; grid-row: 1; }
.programme-details p { margin: 0 0 9px; color: #586a6d; font-size: 14px; line-height: 1.6; }
.programme-details strong { color: var(--navy); font-weight: 700; }
.programme-row .eyebrow { font-size: 11px; }
.schedule-levels { font-size: 15px; }
.outcomes-list p { font-size: 16px; }
.trial-facts p { font-size: 15px; }

.button {
  font-size: 14px;
  line-height: 1.35;
  min-height: 50px;
  letter-spacing: .01em;
}
.text-link { font-size: 14px; }
.circle-link { transition: background .22s ease, color .22s ease, transform .22s ease, border-color .22s ease; }
.circle-link:hover { transform: translateY(-2px); border-color: var(--navy); }
a, button, input, select, textarea { transition-timing-function: ease; }
.button:focus-visible, .circle-link:focus-visible, .text-link:focus-visible { outline-color: #47796f; }

.contact-form-wrap { background: linear-gradient(145deg, #f8f5ed, #f2eee3); border: 1px solid #e7e1d4; }
form label { font-size: 14px; color: #334d4a; }
form input, form select, form textarea { font-size: 16px; line-height: 1.5; border-color: #c5cec7; }
form input:focus-visible, form select:focus-visible, form textarea:focus-visible { border-color: var(--teal); }
.form-note { font-size: 13px; line-height: 1.55; max-width: 48ch; }
.form-note[data-state="success"] { color: #245e51; background: #e7f0e9; border-left: 3px solid #47796f; padding: 10px 12px; }
.form-note[data-state="error"] { color: #873f36; background: #fbefeb; border-left: 3px solid #a9574b; padding: 10px 12px; }
.form-note[data-state="sending"] { color: #425e67; }
.contact-form-wrap button:disabled { opacity: .76; cursor: progress; transform: none; }

.teacher-focus-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; padding-left: 20px; color: #435b57; }
.teacher-focus-list li { padding-left: 3px; }
.trial-request-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 26px 0; }
.trial-request-card { min-width: 0; padding: 22px; border: 1px solid var(--line); background: rgba(255, 254, 250, .75); }
.trial-request-card h3 { margin: 0 0 12px; color: var(--navy); font: 600 20px/1.3 var(--display); }
.trial-request-card > p:not(.eyebrow):not(.placeholder-note) { margin: 0 0 14px; color: #586a6d; font-size: 15px; line-height: 1.65; }
.qr-placeholder { display: grid; width: 132px; aspect-ratio: 1; place-content: center; margin: 14px auto; border: 1px dashed #9aab9f; background: repeating-linear-gradient(135deg, #f5f2e9 0 8px, #ece8dc 8px 16px); color: #435b57; text-align: center; font-size: 13px; font-weight: 700; line-height: 1.4; }
.placeholder-control { color: #586a6d; border-color: #b7c0ba; cursor: not-allowed; }
.draft-status { max-width: 65ch; color: #586a6d; }
.draft-tables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.draft-tables h3 { color: var(--navy); }
.draft-tables table { width: 100%; border-collapse: collapse; font-size: 14px; }
.draft-tables th, .draft-tables td { padding: 12px; border: 1px solid var(--line); text-align: left; }

.placeholder-note { color: #5d6c6b; font-size: 13px; line-height: 1.6; }
.small-note { font-size: 14px; }
.contact-item > span { font-size: 11px; letter-spacing: .13em; color: #687a73; }
.contact-item > a, .contact-item address { font-size: 17px; line-height: 1.65; }
.review-banner strong { font-size: 15px; }
.review-banner p { font-size: 13px; }
.privacy-section h2 { font-size: clamp(28px, 3vw, 36px); }
.privacy-section h3 { font-size: 22px; }
.privacy-section p, .privacy-section li { font-size: 16px; line-height: 1.75; }

#site-footer { background: linear-gradient(115deg, #0b2031 0%, #10283d 72%, #15364a 100%); }
.footer-main { gap: clamp(22px, 3.2vw, 42px); }
.footer-heading { font-size: 11px !important; letter-spacing: .14em; }
.footer-col a, .footer-address address { font-size: 13px; line-height: 1.9; }
.footer-bottom { font-size: 12px; line-height: 1.6; }
.review-tag { font-size: 10px; }
.footer-brand > p { font-size: 18px; }

.reveal { transition: opacity .62s ease, transform .62s cubic-bezier(.2,.7,.25,1); }
.grade-card.reveal, .step-card.reveal { transition-delay: calc(var(--reveal-index, 0) * 75ms); }
.reveal.is-visible { transition-delay: 0ms; }

@keyframes wonderlab-title {
  from { opacity: 0; transform: translateY(13px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wonderlab-orbit { to { transform: rotate(360deg); } }

@media (max-width: 1000px) {
  body { font-size: 16.5px; }
  .brand-logo { width: 174px; }
  .brand-light .brand-logo { width: 166px; }
  #primary-nav > a { font-size: 13px; }
}

@media (max-width: 820px) {
  body { font-size: 16px; line-height: 1.7; }
  main p:not(.eyebrow):not(.placeholder-note):not(.form-note) { line-height: 1.7; }
  .brand-logo { width: 160px; }
  .brand-light .brand-logo { width: 160px; }
  #primary-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transform: translateY(-7px);
    pointer-events: none;
    transition: max-height .28s ease, opacity .18s ease, transform .2s ease, visibility .28s;
  }
  #primary-nav.is-open {
    display: flex;
    visibility: visible;
    opacity: 1;
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    transform: translateY(0);
    pointer-events: auto;
  }
  #primary-nav > a { font-size: 15px; min-height: 44px; }
  .menu-toggle span:not(.sr-only) { transition: transform .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }
  .hero { padding-top: clamp(48px, 8vw, 66px); }
  .hero h1 { font-size: clamp(42px, 8vw, 62px); }
  .page-hero h1 { font-size: clamp(42px, 8vw, 62px); }
  .lead { font-size: 17px; }
  .hero .lead, .page-hero .lead { font-size: 16px; }
  .section h2, .center-cta h2, .outcomes-title h2, .contact-info h2,
  .teacher-copy h2, .teacher-bio h2, .trial-intro h2 { font-size: clamp(38px, 6vw, 50px); }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .button { font-size: 14px; }
  .programme-row > .programme-details { grid-column: 2 / 4; grid-row: 2; margin-top: -4px; }
  .teacher-focus-list { grid-template-columns: minmax(0, 1fr); }
  .trial-request-options { grid-template-columns: minmax(0, 1fr); }
  .draft-tables { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  body { font-size: 16px; }
  .brand-logo, .brand-light .brand-logo { width: 150px; }
  .hero h1 { font-size: clamp(40px, 11vw, 46px); }
  .page-hero h1 { font-size: clamp(42px, 12vw, 50px); }
  .lead { font-size: 16px; }
  .eyebrow, .section-label { font-size: 10px; }
  .hero-note { font-size: 12px; }
  .hero-bottom { font-size: 8px; }
  .section h2, .center-cta h2, .outcomes-title h2, .contact-info h2,
  .teacher-copy h2, .teacher-bio h2, .trial-intro h2 { font-size: clamp(36px, 9.5vw, 42px); }
  .grade-pill { font-size: 10px; }
  .grade-index { font-size: 11px; }
  .grade-card h3 { font-size: 19px; }
  .programme-row h2 { font-size: 21px; line-height: 1.2; }
  .footer-col a, .footer-address address { font-size: 12px; }
  .footer-bottom { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grade-card.reveal, .step-card.reveal { transition-delay: 0ms; }
}
