/* ============================================================
   LATITUDE — style.css
   Brand tokens → base reset → layout → sections → responsive
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Warm terracotta brand palette
     (token names kept from the original teal/navy scheme) */
  --navy:      #3A3430;  /* warm charcoal — main text & dark sections */
  --navy-deep: #2E2925;  /* deeper charcoal — nav & footer */
  --teal:      #C96F4A;  /* warm terracotta — primary accent */
  --teal-dim:  #B25E3B;  /* terracotta hover */
  --sage:      #8FAF8F;  /* sage green — highlights, small sections */
  --sage-dim:  #7A9A7A;
  --peach:     #F7C9A8;  /* light peach — cards & callouts */
  --white:     #FFFCF7;  /* off-white — main page background */
  --off-white: #FFF4E6;  /* soft cream — alternating sections */
  --cream:     #FBF6EE;  /* light ink for dark sections */
  --muted:     #8A7F76;  /* warm muted grey */
  --border:    #E7DECF;  /* warm border */

  /* SVG asset theming — inline brand SVGs read these */
  --lat-ink:      var(--navy-deep);
  --lat-accent:   var(--teal);
  --lat-accent-2: var(--sage);
  --lat-peach:    var(--peach);

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Plus Jakarta Sans', system-ui, sans-serif;

  --max-w: 1140px;
  --pad-x: clamp(1.25rem, 5vw, 4rem);
  --sec-pad: clamp(4.75rem, 9vw, 7.5rem);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out-quart: cubic-bezier(0.16, 1, 0.3, 1);

  --body-text: #57514B;  /* softened charcoal for body copy */

  /* Graph-paper pattern, tiled 48px — dark & light variants */
  --pattern-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23FBF6EE'%3E%3Cpath d='M12 0V48M24 0V48M36 0V48M0 12H48M0 24H48M0 36H48' opacity='.05'/%3E%3Cpath d='M0 .5H48M.5 0V48' opacity='.09'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%232E2925'%3E%3Cpath d='M12 0V48M24 0V48M36 0V48M0 12H48M0 24H48M0 36H48' opacity='.04'/%3E%3Cpath d='M0 .5H48M.5 0V48' opacity='.07'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
ul { list-style: none; }

h1, h2, h3 { text-wrap: balance; }

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

.form__field input:focus-visible,
.form__field select:focus-visible,
.form__field textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 0;
}

section {
  scroll-margin-top: 72px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  background: var(--navy-deep);
  color: var(--cream);
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 6px 6px;
  font-size: 0.85rem;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Shared utilities ───────────────────────────────────── */
.label {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.label--teal  { color: var(--teal); }
.label--white { color: rgba(251,246,238,0.55); }

.btn {
  display: inline-block;
  padding: 0.9rem 2.1rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease);
}
.btn--teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(201,111,74,0.25);
}
.btn--teal:hover {
  background: var(--teal-dim);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,111,74,0.32);
}
.btn--teal:active { transform: translateY(0); }

/* ── Brand SVG dividers ─────────────────────────────────── */
.divider {
  display: block;
  width: 200px;
  height: 20px;
  margin: 0 auto;
}
.divider--left { margin: 0 0 1.25rem -25px; }  /* optically align first dot with text edge */
.divider--brackets {
  width: 170px;
  margin: 0 0 1.5rem -48px;
}

/* interval-midpoint rule inside the stat card */
.rule-svg {
  display: block;
  width: 100%;
  max-width: 210px;
  height: 22px;
  margin: 0.35rem -18px 0.85rem;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.9rem var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav__logo img {
  height: 34px;
  width: auto;
  border-radius: 3px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--white); }

.nav__cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  font-weight: 600 !important;
  transition: background 0.2s !important;
}
.nav__cta:hover { background: var(--teal-dim) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav__burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  /* dark section: flip the SVG ink to cream */
  --lat-ink: var(--cream);
  position: relative;
  background:
    radial-gradient(ellipse 720px 520px at 78% 42%, rgba(201,111,74,0.13), transparent 65%),
    var(--navy);
  padding: calc(70px + 5.5rem) var(--pad-x) 6.5rem;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pattern-dark);
  /* keep the texture behind the copy only — the graphic already carries its own coordinate grid,
     so overlapping the two here read as a busy double grid */
  mask-image: radial-gradient(ellipse 60% 85% at 24% 45%, black 20%, transparent 60%);
  -webkit-mask-image: radial-gradient(ellipse 60% 85% at 24% 45%, black 20%, transparent 60%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 5.8vw, 4.75rem);
  font-weight: 800;
  line-height: 1.06;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero__headline em {
  font-style: italic;
  color: var(--peach);
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(251,246,238,0.68);
  max-width: 44ch;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(251,246,238,0.75);
  border-bottom: 1px solid rgba(251,246,238,0.25);
  padding-bottom: 2px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.hero__link:hover {
  color: var(--peach);
  border-color: var(--peach);
}

.hero__facts {
  display: flex;
  align-items: center;
  gap: 0.5rem 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(251,246,238,0.12);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(251,246,238,0.55);
  flex-wrap: wrap;
}

/* dot separator travels with each fact so it never wraps alone */
.hero__facts > span:not(:first-child)::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 1rem;
  vertical-align: middle;
}

.hero__graphic {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.25));
}

/* ── About ──────────────────────────────────────────────── */
.about {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
}

.about__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}

.about__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.about__body p {
  color: var(--body-text);
  margin-bottom: 1.2rem;
  font-size: 1.0125rem;
  max-width: 58ch;
}
.about__body p strong { color: var(--navy); font-weight: 600; }

.about__aside {
  padding-top: 1rem;
  position: sticky;
  top: 100px;
}

.about__stat-block {
  background: var(--peach);
  border-radius: 10px;
  padding: 1.85rem;
  box-shadow: 0 10px 30px -18px rgba(58,52,48,0.4);
}

.about__stat {
  display: flex;
  flex-direction: column;
}

.about__stat-num {
  font-family: var(--font-serif);
  font-size: 3.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.about__stat-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  opacity: 0.75;
  margin-top: 0.25rem;
}

.about__detail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.about__detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 500;
}

.about__dot {
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Mission ────────────────────────────────────────────── */
.mission {
  background:
    var(--pattern-light),
    var(--off-white);
  padding: var(--sec-pad) var(--pad-x);
}

.mission__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2rem 6rem;
  align-items: start;
}

.mission__inner > .label { grid-column: 1 / -1; }

.mission__quote {
  grid-column: 1;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.5vw, 2.75rem);
  font-weight: 700;
  font-style: italic;
  line-height: 1.25;
  color: var(--navy);
  border: none;
  padding: 0;
}

.mission__body {
  grid-column: 2;
  padding-top: 0.5rem;
}

.mission__body p {
  color: var(--body-text);
  margin-bottom: 1.2rem;
  font-size: 1.0125rem;
  line-height: 1.8;
}

/* ── Reusable step number badge (used in How Your Week Works, How Enrolment Works) ── */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--teal);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 1rem;
  flex-shrink: 0;
}

/* ── Courses We Teach ───────────────────────────────────── */
.courses {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
}

.courses__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.courses__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.courses__intro {
  font-size: 1.0125rem;
  color: var(--body-text);
  max-width: 62ch;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.courses__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.courses__card {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 2.25rem;
}

.courses__card--y12 {
  border-color: var(--teal);
}

.courses__year {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.1rem;
}

.courses__list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.courses__list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9375rem;
  color: var(--body-text);
  font-weight: 500;
}

/* ── What We Offer ──────────────────────────────────────── */
.offer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: var(--sec-pad) var(--pad-x);
}

.offer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.offer__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 2.75rem;
}

.offer__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: stretch;
}

.offer__panel {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem 2.25rem 1.6rem;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
}
.offer__panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -22px rgba(58,52,48,0.35);
}

.offer__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.offer__icon svg {
  width: 28px; height: 28px;
}
.offer__panel--secondary .offer__icon {
  background: #DDE8DD;  /* soft sage tint to pair with the sage label */
}

.offer__panel-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.offer__panel-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.offer__panel-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1.1rem !important;
}

.offer__panel p {
  font-size: 0.9875rem;
  color: var(--body-text);
  margin-bottom: 0.9rem;
  line-height: 1.75;
}
.offer__panel p strong { color: var(--navy); font-weight: 600; }

.offer__panel--secondary .offer__panel-label { color: var(--sage-dim); }

/* ── How Your Week Works ─────────────────────────────────── */
.week {
  background: var(--off-white);
  padding: var(--sec-pad) var(--pad-x);
}

.week__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.week__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.week__intro {
  font-size: 1.0125rem;
  color: var(--body-text);
  max-width: 64ch;
  line-height: 1.8;
  margin-bottom: 2.75rem;
}

.week__tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.week__track {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  border-radius: 0 10px 10px 0;
  padding: 1.5rem 1.75rem;
}

.week__track--alt {
  border-left-color: var(--sage);
}

.week__track-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

.week__track--alt .week__track-label { color: var(--sage-dim); }

.week__track p {
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.7;
}

.week__flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.week__flow-item p {
  font-size: 0.9rem;
  color: var(--body-text);
  font-weight: 500;
  line-height: 1.5;
  max-width: 22ch;
}

.week__note {
  margin-top: 2rem;
  font-size: 0.9375rem;
  font-style: italic;
  color: var(--muted);
}

/* ── Latitude or Private ─────────────────────────────────── */
.vs {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  padding: var(--sec-pad) var(--pad-x);
}

.vs__inner {
  max-width: 72ch;
  margin: 0 auto;
}

.vs__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.75rem;
}

.vs__body p {
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

/* ── Where Lessons Run ───────────────────────────────────── */
.location {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
}

.location__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  align-items: start;
}

.location__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.location__body p {
  color: var(--body-text);
  margin-bottom: 1.2rem;
  font-size: 1.0125rem;
  line-height: 1.8;
  max-width: 58ch;
}
.location__body p strong { color: var(--navy); font-weight: 600; }

.location__suburbs {
  font-size: 0.9375rem !important;
  color: var(--muted) !important;
}

.location__aside {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.75rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.location__fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.location__fact-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.location__fact-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
}

/* ── Sample Materials ────────────────────────────────────── */
.samples {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
}

.samples__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.samples__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 2rem;
}

.samples__card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  align-items: center;
}

.samples__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  aspect-ratio: 3 / 4;
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  background: var(--off-white);
  padding: 1.5rem;
  text-align: center;
}
.samples__placeholder svg { width: 36px; height: 36px; }
.samples__placeholder span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.samples__caption {
  font-size: 1.0125rem;
  color: var(--body-text);
  line-height: 1.8;
  max-width: 52ch;
}

/* ── Pricing ─────────────────────────────────────────────── */
.pricing {
  background: var(--off-white);
  padding: var(--sec-pad) var(--pad-x);
}

.pricing__inner {
  max-width: 72ch;
  margin: 0 auto;
}

.pricing__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.pricing__inner p {
  font-size: 1.0125rem;
  color: var(--body-text);
  line-height: 1.85;
  max-width: 62ch;
}

/* ── How Enrolment Works ─────────────────────────────────── */
.enrol {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
}

.enrol__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.enrol__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 2.75rem;
}

.enrol__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.enrol__step h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.enrol__step p {
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.6;
}

/* ── Student & Parent Feedback ───────────────────────────── */
.feedback {
  background: var(--off-white);
  padding: var(--sec-pad) var(--pad-x);
}

.feedback__inner {
  max-width: 68ch;
  margin: 0 auto;
  text-align: center;
}
.feedback__inner .label { display: block; }

.feedback__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.feedback__inner p {
  font-size: 1.0125rem;
  color: var(--body-text);
  line-height: 1.85;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
}

.faq__inner {
  max-width: 860px;
  margin: 0 auto;
}

.faq__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3.2vw, 2.6rem);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
  margin-bottom: 2.5rem;
}

.faq__list {
  display: flex;
  flex-direction: column;
}

.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 1.15rem 0;
}
.faq__item:first-child { border-top: 1px solid var(--border); }

.faq__item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
  color: var(--teal);
  transition: transform 0.2s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(45deg); }

.faq__item p {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.75;
  max-width: 68ch;
}
.faq__item p a { color: var(--teal); font-weight: 600; border-bottom: 1px solid rgba(201,111,74,0.35); }

/* ── Class Timings ───────────────────────────────────────── */
.timings {
  background: var(--white);
  padding: var(--sec-pad) var(--pad-x);
  border-top: 1px solid var(--border);
}

.timings__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.timings__head {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.9rem;
}

.timings__head-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--peach);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.timings__head-icon svg {
  width: 30px; height: 30px;
}

.timings__eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.2rem;
}

.timings__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--navy);
}

.timings__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.timings__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
}

.timings__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
}

.timings__th {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: left;
  padding: 0.85rem 1.25rem;
}

.timings__th--time {
  width: 110px;
}

.timings__row {
  border-bottom: 1px solid var(--border);
}
.timings__row:last-child { border-bottom: none; }

.timings__time {
  padding: 1.25rem;
  vertical-align: middle;
  white-space: nowrap;
}

.timings__time-start {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.timings__time-end {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
}

.timings__cell {
  padding: 1rem 1.25rem;
  vertical-align: top;
}

/* Class cards — mirror the reference image */
.class-card {
  background: var(--off-white);
  border-left: 3px solid transparent;
  padding: 0.65rem 0.85rem;
  border-radius: 0 4px 4px 0;
  display: inline-block;
  min-width: 220px;
}

.class-card--y11 { border-left-color: var(--sage); }
.class-card--y12 { border-left-color: var(--teal); }

.class-card__year {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.class-card__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
.class-card--y11 .class-card__name { color: var(--sage-dim); }
.class-card--y12 .class-card__name { color: var(--teal); }

.class-card__type {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Legend */
.timings__legend {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.timings__legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}

.timings__legend-item::before {
  content: '';
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.timings__legend-item--y11::before { background: var(--sage); }
.timings__legend-item--y12::before { background: var(--teal); }

/* ── Who We Serve ───────────────────────────────────────── */
.serve {
  /* dark section: flip the SVG ink to cream */
  --lat-ink: var(--cream);
  position: relative;
  background: var(--navy);
  padding: var(--sec-pad) var(--pad-x);
  overflow: hidden;
}
.serve::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--pattern-dark);
  mask-image: linear-gradient(115deg, transparent 35%, black 85%);
  -webkit-mask-image: linear-gradient(115deg, transparent 35%, black 85%);
  pointer-events: none;
}

.serve__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
}

.serve__icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(251,246,238,0.08);
  border: 1px solid rgba(251,246,238,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.serve__icon svg {
  width: 28px; height: 28px;
}

.serve__heading {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin: 1rem 0 0.4rem;
}

.serve__sub {
  font-size: 1.1rem;
  color: rgba(251,246,238,0.5);
  margin-bottom: 3.5rem;
  font-weight: 400;
}

.serve__details {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-top: 1px solid rgba(251,246,238,0.1);
  padding-top: 2.5rem;
}

.serve__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.serve__year {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
}

.serve__note {
  font-size: 0.9rem;
  color: rgba(251,246,238,0.5);
  max-width: 28ch;
  line-height: 1.5;
}

.serve__divider {
  width: 1px;
  background: rgba(251,246,238,0.12);
  margin: 0 3rem;
}

/* ── Book a Call ────────────────────────────────────────── */
.booking {
  background: var(--off-white);
  padding: 6rem var(--pad-x) 3rem;
}

.booking__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.booking__header {
  max-width: 58ch;
  margin-bottom: 2.5rem;
}

.booking__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.booking__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ── Contact ────────────────────────────────────────────── */
.contact {
  background: var(--off-white);
  padding: var(--sec-pad) var(--pad-x);
}

.contact__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 5rem;
  align-items: start;
}

.contact__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.contact__sub {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* Form */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 20px 50px -30px rgba(58,52,48,0.3);
}

.form__row { display: contents; }

.form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  width: 100%;
}

.form__row--action {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-top: 0.4rem;
  width: 100%;
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
}

.form__optional {
  font-weight: 400;
  color: var(--muted);
}

.form__field input,
.form__field select,
.form__field textarea {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--navy);
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.65rem 0.85rem;
  outline: none;
  transition: border-color 0.2s var(--ease);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form__field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A7F76' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.form__field input::placeholder,
.form__field textarea::placeholder { color: #ADA49B; }

.form__field input:focus,
.form__field select:focus,
.form__field textarea:focus {
  border-color: var(--teal);
}

.form__field textarea { resize: vertical; min-height: 110px; }

.form__success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--teal);
}
/* Formspree shows success by removing aria-hidden */
.form__success:not([aria-hidden="true"]) { display: flex; }

.form__fs-error:not(:empty) {
  font-size: 0.85rem;
  color: #c0392b;
  margin-bottom: 0.75rem;
}

.form__field-error:not(:empty) {
  display: block;
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #c0392b;
}

.form__success-dot {
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--navy-deep);
  padding: 3rem var(--pad-x) 2.5rem;
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__divider {
  margin: 0 auto 2rem;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer__brand { display: flex; align-items: center; gap: 1.5rem; }

.footer__logo {
  height: 26px;
  border-radius: 2px;
  opacity: 0.9;
}

.footer__tagline {
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(251,246,238,0.4);
}

.footer__meta {
  font-size: 0.8rem;
  color: rgba(251,246,238,0.35);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__graphic {
    order: 2;
    margin-top: 1rem;
  }
  .hero__svg { max-width: 400px; }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about__aside { position: static; }
  .about__stat-block { max-width: 340px; }

  .mission__inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .mission__inner > .label { grid-column: 1; }
  .mission__quote { grid-column: 1; }
  .mission__body  { grid-column: 1; }

  .offer__panels {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .courses__grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .week__tracks {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .week__flow {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .location__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .location__aside { max-width: 340px; }

  .samples__card {
    grid-template-columns: 1fr;
  }
  .samples__placeholder { max-width: 220px; aspect-ratio: 4 / 3; }

  .enrol__steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .hero__graphic { display: none !important; }

  .nav__links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1rem var(--pad-x) 1.5rem;
  }
  .nav__links.open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__links a {
    display: block;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__cta {
    margin-top: 0.5rem;
    padding: 0.65rem 0 !important;
    background: none !important;
    color: var(--teal) !important;
    border-bottom: none !important;
  }

  .nav__burger { display: flex; }

  .hero {
    padding-top: calc(60px + 3.5rem);
    padding-bottom: 4rem;
  }
  .hero__facts { margin-top: 2.25rem; }
  .hero__svg { max-width: 320px; }

  .divider--brackets { margin-left: -34px; }

  .serve__details { flex-direction: column; gap: 2rem; }
  .serve__divider { display: none; }

  .week__flow { grid-template-columns: 1fr; gap: 1.5rem; }
  .enrol__steps { grid-template-columns: 1fr; gap: 1.75rem; }
  .samples__card { text-align: center; justify-items: center; }

  .footer__row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .footer__brand { flex-direction: column; align-items: flex-start; gap: 0.5rem; }

  /* Burger open state */
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Motion & Animations ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes curveDraw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

@keyframes svgFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero__eyebrow {
    animation: fadeUp 0.65s var(--ease-out-quart) both;
  }
  .hero__headline {
    animation: fadeUp 0.65s var(--ease-out-quart) 0.1s both;
  }
  .hero__sub {
    animation: fadeUp 0.65s var(--ease-out-quart) 0.2s both;
  }
  .hero__actions {
    animation: fadeUp 0.65s var(--ease-out-quart) 0.3s both;
  }
  .hero__facts {
    animation: fadeUp 0.65s var(--ease-out-quart) 0.4s both;
  }
  .hero__graphic {
    animation: fadeUp 0.9s var(--ease-out-quart) 0.25s both;
  }

  /* Hero curves draw themselves in (pathLength="1" set in markup) */
  .hero__curve {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: curveDraw 1.6s var(--ease-out-quart) 0.7s forwards;
  }
  .hero__curve--alt {
    animation-delay: 0.95s;
    animation-duration: 1.4s;
  }
  .hero__tangent,
  .hero__point {
    opacity: 0;
    animation: svgFade 0.6s ease-out 1.9s forwards;
  }
  /* preserve the asset's designed opacities once faded in */
  .hero__tangent { animation-name: svgFadeTangent; }
  @keyframes svgFadeTangent {
    from { opacity: 0; }
    to   { opacity: 0.7; }
  }
  .hero__point:first-of-type { animation-name: svgFadePointRing; }
  @keyframes svgFadePointRing {
    from { opacity: 0; }
    to   { opacity: 0.5; }
  }

  /* Scroll reveal */
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(20px);
    transition:
      opacity 0.6s var(--ease-out-quart),
      transform 0.6s var(--ease-out-quart);
  }
  .js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
  .js [data-reveal-delay="1"] { transition-delay: 0.08s; }
  .js [data-reveal-delay="2"] { transition-delay: 0.16s; }
  .js [data-reveal-delay="3"] { transition-delay: 0.24s; }
}

/* ── Accessibility ──────────────────────────────────────── */
.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;
}
