/* ThinkFoundry — palette taken from the original Canva site */
:root {
  --cream: #fffdf8;      /* page / card background */
  --paper: #faf6ed;      /* header */
  --ivory: #fffaf2;      /* audience section */
  --sand: #f0e5d7;       /* approach section */
  --linen: #efe1d1;      /* enquiry section */
  --blush: #e9d1be;      /* trust strip, lesson section */
  --line: #e8d9ca;
  --clay: #bc7355;       /* programme card */
  --accent: #a44729;     /* terracotta */
  --accent-dark: #8a3a21;
  --ink: #382b24;        /* charcoal text */
  --ink-soft: #55463d;
  --muted: #66594f;
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(56, 43, 36, .05), 0 8px 24px rgba(56, 43, 36, .06);
  --serif: "Figtree", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; /* display face */
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); font-weight: 300; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.eyebrow { font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: .9em; }
.muted { color: var(--muted); }
.intro, .lead { color: var(--muted); max-width: 46rem; }
.lead { font-size: 1.15rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; font: 600 1rem/1.2 var(--sans); padding: .95em 1.5em; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }
.btn-link { color: var(--ink); padding-left: .4em; padding-right: .4em; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--blush); }
.btn-link:hover { text-decoration-color: var(--accent); }
.btn-small { padding: .7em 1.15em; font-size: .92rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 246, 237, .94); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, background .2s; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -7px; } .nav-toggle-bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
.site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 20px; flex-direction: column; gap: 4px; }
.site-nav.is-open { display: flex; }
.site-nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.site-nav .btn { margin-top: 12px; }
.no-js .site-nav { display: flex; position: static; padding: 0 0 12px; }

/* Hero */
.hero { padding: 48px 0 56px; }
.hero-grid { display: grid; gap: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 24px; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }

/* Sections */
.section { padding: 64px 0; }

/* FAQ */
.faq-list { margin-top: 28px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative; font-family: var(--serif); font-size: 1.2rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--sans); font-size: 1.5rem; color: var(--accent); transition: transform .2s; }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list details p { color: var(--muted); padding: 0 40px 20px 0; margin: 0; }

/* Enquiry form */
.enquiry-form { background: var(--cream); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); border: 1px solid #d9c6b4; border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(164, 71, 41, .15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: .88rem; margin: 6px 0 0; }
.form-note { text-align: center; font-size: .9rem; color: var(--muted); margin: 12px 0 0; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: 10px; font-weight: 500; }
.form-status.is-success { background: #eef3ea; color: #2f5130; border: 1px solid #c8d8c2; }
.form-status.is-error { background: #fbeeec; color: #8a1f17; border: 1px solid #efc7c1; }

/* Footer */
.site-footer { background: var(--ink); color: #e9ddd2; padding: 48px 0 28px; }
.footer-inner { display: grid; gap: 24px; }
.footer-brand { font-family: var(--serif); font-size: 1.6rem; color: var(--white); margin: 0 0 .25em; }
.footer-line { color: #cdbfb3; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.footer-nav a { color: #e9ddd2; text-decoration: none; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; }
.footer-meta { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #b5a69a; }
.footer-meta p { margin: 0; }

/* Tablet */
@media (min-width: 640px) {
  .container { padding: 0 32px; }
  .enquiry-form { padding: 32px; }
}

/* Desktop */
@media (min-width: 960px) {
  .section { padding: 96px 0; }
  .nav-toggle { display: none; }
  .site-nav, .no-js .site-nav { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; background: none; border: 0; padding: 0; }
  .site-nav a:not(.btn) { border: 0; padding: 6px 0; }
  .site-nav a:not(.btn):hover { color: var(--accent); }
  .site-nav .btn { margin-top: 0; }
  .hero { padding: 80px 0 96px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 64px; }
  .hero-media { aspect-ratio: 4 / 3; }
      .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
}

/* ---- Rework additions (Nov 2026) ---- */

/* WhatsApp buttons */
.btn-whatsapp { background: var(--cream); color: var(--ink); border-color: var(--accent); }
.btn-whatsapp:hover { background: var(--accent); color: var(--white); }
.site-nav .btn-whatsapp { margin-top: 12px; }
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: .5em; background: #1f7a4d; color: var(--white); text-decoration: none; font-weight: 600; border-radius: 999px; padding: 12px; box-shadow: 0 6px 20px rgba(56, 43, 36, .25); transition: background .2s, transform .2s; }
.wa-float:hover { background: #17603c; transform: translateY(-1px); }
.wa-float-text { display: none; }
/* Footer padding for the floating contact buttons is set with the .page-fab rules below. */

.fee-note { font-size: .92rem; color: var(--ink-soft); margin: .75em 0 0; }

@media (min-width: 640px) {
  .wa-float { padding: 12px 18px 12px 14px; right: 24px; bottom: 24px; }
  .wa-float-text { display: inline; }
}
@media (min-width: 960px) {
  .site-nav, .no-js .site-nav { gap: 22px; }
  .site-nav .btn-whatsapp { margin-top: 0; margin-left: 4px; }
  .site-nav .btn + .btn { margin-left: -10px; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .site-nav a:not(.btn) { font-size: .95rem; }
  .site-nav, .no-js .site-nav { gap: 16px; }
}

/* Quiet student-app login: text link, not a button */
.site-nav a.nav-login { color: var(--muted); font-weight: 500; }
.site-nav a.nav-login:hover { color: var(--accent); }
@media (min-width: 960px) {
  .site-nav a.nav-login { font-size: .9rem; }
}
@media (min-width: 960px) and (max-width: 1100px) {
  .site-nav a.nav-login { font-size: .85rem; }
  .site-nav, .no-js .site-nav { gap: 14px; }
}

/* Wordmark: heavy Fraunces in ink with a terracotta full stop (see assets/logo.svg) */
.brand, .footer-brand { font-family: "Fraunces", Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: -0.015em; }
.brand { color: var(--ink); font-size: 1.55rem; }
.brand-dot { color: var(--accent); }
.footer-brand .brand-dot { color: #d0714f; } /* lighter terracotta for contrast on the dark footer */

/* Typography refresh: bold geometric headings (Figtree), humanist body (Source Sans 3) */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.12; }
.eyebrow, .btn, .site-nav a { font-family: var(--serif); }
.btn { font-weight: 700; }
.site-nav a:not(.btn) { font-weight: 600; }
.site-nav a.nav-login { font-weight: 500; }

/* Enquiry form: underline fields */
.field label { font-weight: 600; font-size: 1rem; margin-bottom: 2px; color: var(--ink); }
.field:has([required]) label::after { content: "*"; color: var(--accent); margin-left: 2px; }
.field input, .field select, .field textarea { background-color: transparent; border: 0; border-bottom: 1.5px solid var(--ink-soft); border-radius: 0; padding: 8px 0 10px; box-shadow: none; }
.field textarea { min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .8; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M0 0h14L7 9z' fill='%23382b24'/%3E%3C/svg%3E"); background-position: right 2px center; background-size: 14px 9px; padding-right: 28px; }
.field select:invalid, .field select option[value=""] { color: var(--muted); }
.field select option { color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--accent); box-shadow: none; }
@media (min-width: 768px) {
  .enquiry-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .enquiry-form > * { grid-column: 1 / -1; }
  .enquiry-form > .field:has(#parent_name), .enquiry-form > .field:has(#email), .enquiry-form > .field:has(#student_level), .enquiry-form > .field:has(#lesson_type) { grid-column: auto; }
}

/* Footer call number */
.footer-contact { margin: 12px 0 0; color: #cdbfb3; }
.footer-contact a { color: #e9ddd2; text-decoration: underline; text-underline-offset: 3px; }
.footer-contact a:hover { color: var(--white); }

/* Floating contact buttons + FAQ chat launcher */
.page-fab {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  pointer-events: none;
}
.page-fab > * { pointer-events: auto; }
.contact-floats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.wa-float, .call-float {
  position: static;
  right: auto;
  bottom: auto;
  z-index: auto;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  border-radius: 999px;
  padding: 12px;
  box-shadow: 0 6px 20px rgba(56, 43, 36, .25);
  transition: background .2s, transform .2s;
}
.call-float { background: var(--accent); color: var(--white); }
.call-float:hover { background: var(--accent-dark); transform: translateY(-1px); }
.call-float-text { display: none; }
.site-footer { padding-bottom: 140px; }
.enquiry { padding-bottom: 140px; }

.faq-bot { display: flex; flex-direction: column; align-items: flex-end; }
.faq-bot-launch {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font: 700 .95rem/1.2 var(--serif);
  color: var(--ink);
  background: var(--cream);
  border: 1.5px solid var(--accent);
  border-radius: 999px;
  padding: 12px 16px 12px 14px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(56, 43, 36, .18);
  transition: background .2s, color .2s, transform .2s;
}
.faq-bot-launch:hover { background: var(--accent); color: var(--white); }
.no-js .faq-bot-launch, .no-js .faq-bot-panel { display: none; }
body.faq-bot-open { overflow: hidden; }
.faq-bot-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: min(85vh, 640px);
  background: var(--cream);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 32px rgba(56, 43, 36, .18);
  overflow: hidden;
}
.faq-bot-panel[hidden] { display: none; }
.page-fab.is-chat-open .contact-floats,
.page-fab.is-chat-open .faq-bot-launch { visibility: hidden; pointer-events: none; }
.faq-bot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.faq-bot-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.faq-bot-close {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
}
.faq-bot-close:hover { color: var(--accent); }
.faq-bot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--ivory);
  min-height: 180px;
}
.faq-bot-msg {
  max-width: 90%;
  padding: 10px 14px;
  font-size: .98rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}
.faq-bot-msg p { margin: 0 0 .6em; }
.faq-bot-msg p:last-child { margin-bottom: 0; }
.faq-bot-msg-bot {
  align-self: flex-start;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  box-shadow: var(--shadow);
}
.faq-bot-msg-user {
  align-self: flex-end;
  background: var(--accent);
  color: var(--white);
  border-radius: 16px 16px 4px 16px;
}
.faq-bot-handoff { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.faq-bot-handoff .btn { padding: .65em 1.05em; font-size: .9rem; }
.faq-bot-call { color: var(--accent); font-weight: 700; font-family: var(--serif); text-decoration: none; display: inline-flex; align-items: center; padding: .65em .2em; }
.faq-bot-call:hover { text-decoration: underline; text-underline-offset: 3px; }
.faq-bot-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 10px 16px 4px;
  background: var(--cream);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.faq-bot-chip { flex: 0 0 auto; white-space: nowrap; }
.faq-bot-chip {
  font: 600 .85rem/1.2 var(--serif);
  color: var(--ink);
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .55em .9em;
  cursor: pointer;
}
.faq-bot-chip:hover { border-color: var(--accent); color: var(--accent); }
.faq-bot-form {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 16px 16px;
  background: var(--cream);
  border-top: 1px solid var(--line);
  margin-top: 10px;
}
.faq-bot-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink-soft);
  border-radius: 0;
  padding: 8px 0 10px;
}
.faq-bot-form input:focus { outline: none; border-bottom-color: var(--accent); }
.faq-bot-send { flex: 0 0 auto; padding: .7em 1.15em; font-size: .92rem; }

@media (min-width: 640px) {
  .page-fab {
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    flex-direction: row;
    align-items: center;
  }
  .contact-floats { flex-direction: row; }
  .wa-float, .call-float { padding: 12px 18px 12px 14px; }
  .call-float-text { display: inline; }
  .site-footer { padding-bottom: 112px; }
  .enquiry { padding-bottom: 96px; }
  .faq-bot-panel {
    left: auto;
    right: max(24px, env(safe-area-inset-right, 0px));
    bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    width: 400px;
    max-height: min(78vh, 640px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(56, 43, 36, .2);
  }
  .page-fab.is-chat-open .contact-floats,
  .page-fab.is-chat-open .faq-bot-launch { visibility: visible; pointer-events: auto; }
  body.faq-bot-open { overflow: auto; }
}

@media (min-width: 960px) {
  .enquiry { padding-bottom: 96px; }
}

.hero-start { margin: -8px 0 16px; font-weight: 600; color: var(--accent); }

/* Published fees */
.fee-table { width: 100%; border-collapse: collapse; }
.fee-table th, .fee-table td {
  text-align: left;
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.fee-table thead th {
  font-family: var(--serif);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.fee-table tbody th {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--ink);
  padding-right: 20px;
}
.fee-sublabel {
  display: block;
  margin-top: .2em;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .85rem;
  color: var(--muted);
  letter-spacing: 0;
}
.fee-table td {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.fee-table thead th:not(:first-child) { text-align: right; }
.fee-table td:nth-child(n+3) { font-size: 1.32rem; }
.fee-table tbody tr:last-child th,
.fee-table tbody tr:last-child td { border-bottom: 0; }
.fee-note { margin-top: 1.1em; }
.fee-note a { color: var(--accent); text-underline-offset: 3px; }

@media (max-width: 719px) {
  .fee-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table, .fee-table tbody, .fee-table tr, .fee-table th, .fee-table td { display: block; width: 100%; }
  .fee-table tbody tr {
    padding: 16px 0 4px;
    border-bottom: 1px solid var(--line);
  }
  .fee-table tbody tr:first-child { padding-top: 4px; }
  .fee-table tbody tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .fee-table tbody th {
    padding: 0 0 8px;
    border: 0;
    font-size: 1.05rem;
  }
  .fee-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid var(--line);
    font-size: 1.2rem;
    text-align: right;
  }
  .fee-table td:nth-child(n+3) { font-size: 1.28rem; }
  .fee-table td::before {
    content: attr(data-label);
    flex: 1 1 auto;
    font-family: var(--sans);
    font-size: .9rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--muted);
    text-align: left;
    white-space: normal;
  }
}

@media (min-width: 640px) {
  }

/* hCaptcha on the enquiry form: keep the third-party iframe inside the card
   without clipping its challenge popup or colliding with the floating buttons. */
.enquiry-form { overflow: visible; }
.field-captcha {
  margin: 4px 0 22px;
  overflow: visible;
  min-height: 78px;
}
.field-captcha .h-captcha { display: inline-block; max-width: 100%; }
.field-captcha.has-error { padding-bottom: 2px; }
@media (max-width: 479px) {
  .field-captcha { min-height: 148px; }
}

/* Referral & Discount Policy */
.fee-terms {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-top: 28px;
}
.fee-terms .intro { margin-bottom: 1.2em; }
.fee-terms h3 { font-size: 1.15rem; margin: 1.15em 0 .3em; }
.fee-terms-detail h3:first-of-type { margin-top: 0; }
.fee-terms p { color: var(--ink-soft); margin: 0 0 0.85em; }
.offer-cards {
  display: grid;
  gap: 16px;
  margin: 0 0 1.6em;
}
.offer-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 18px 18px;
}
.offer-card .ti {
  width: 28px;
  height: 28px;
  display: block;
  margin: 0 0 12px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.offer-card-label {
  font-family: var(--serif);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 .3em;
}
.offer-card-figure {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.85rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  margin: 0 0 .4em;
}
.offer-card-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: .95rem;
}
.offer-split {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}
.offer-split li {
  border-left: 2px solid var(--accent);
  padding: 6px 0 6px 12px;
  color: var(--ink);
  font-size: .95rem;
}
.offer-split-who {
  display: block;
  font-family: var(--serif);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .1em;
}
.fee-terms-detail {
  border-top: 1px solid var(--line);
  padding-top: 1.4em;
}
@media (min-width: 640px) {
  .fee-terms { padding: 32px; }
}
@media (min-width: 800px) {
  .offer-cards { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}

/* Instagram: curated gallery of self-hosted post images, each linking to the post */
.instagram { background: var(--ivory); }
.ig-head { display: flex; flex-direction: column; gap: 4px; }
.ig-head .intro { margin-bottom: 0; }
.ig-icon, .ig-multi { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ig-follow {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: .5em;
  margin-top: 14px;
  font-family: var(--serif); font-weight: 700; font-size: .98rem;
  color: var(--accent); text-decoration: none;
  padding: .7em 1.15em; border: 1px solid var(--accent); border-radius: 999px;
  transition: background .2s, color .2s;
}
.ig-follow .ig-icon { width: 1.15em; height: 1.15em; }
.ig-follow:hover { background: var(--accent); color: var(--white); }
.ig-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  margin-top: 28px;
}
.ig-tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: #f7efe4; border: 1px solid var(--line); border-radius: var(--radius-sm);
  color: var(--accent);
}
.ig-tile img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.ig-multi {
  position: absolute; top: 8px; right: 8px; width: 20px; height: 20px;
  color: var(--accent); opacity: .85; pointer-events: none;
}
.ig-veil {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 16%;
  background: rgba(56, 43, 36, .16);
  opacity: 0; transition: opacity .25s ease;
}
.ig-veil-label {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .55em 1em; border-radius: 999px;
  background: var(--accent); color: var(--white);
  font-family: var(--serif); font-weight: 700; font-size: .88rem; letter-spacing: .01em;
  box-shadow: 0 4px 14px rgba(56, 43, 36, .18);
}
.ig-veil .ig-icon { width: 1.1em; height: 1.1em; }
.ig-tile:focus-visible .ig-veil { opacity: 1; }
@media (hover: hover) {
  .ig-tile:hover .ig-veil { opacity: 1; }
  .ig-tile:hover img { transform: scale(1.015); }
}
.ig-tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .ig-tile img, .ig-veil, .ig-follow { transition: none; }
  .ig-tile:hover img { transform: none; }
}
/* Keep the last column clear of the floating Call / WhatsApp buttons on phones */
@media (max-width: 639px) {
  .instagram .container { padding-right: 64px; }
  .ig-multi { top: 6px; right: 6px; width: 16px; height: 16px; }
}
@media (min-width: 720px) {
  .ig-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .ig-follow { align-self: auto; margin-top: 0; flex: 0 0 auto; }
  .ig-head h2 { margin-bottom: .35em; }
}
@media (min-width: 900px) {
  .ig-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
}

/* ==========================================================================
   Redesign (Nov 2026): hero + key facts, level cards, tutor, approach,
   combined times & fees, location + FAQ, enquiry panel. Palette unchanged.
   ========================================================================== */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ti, .chev { width: 1.2em; height: 1.2em; flex: 0 0 auto; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chev { width: 1em; height: 1em; stroke: currentColor; stroke-width: 2.2; }
.anchor-alias { position: relative; top: -80px; display: block; height: 0; }

/* Section rhythm and backgrounds (cream / ivory / sand / linen alternate) */
.programme { background: var(--cream); }
.tutor { background: var(--ivory); }
.approach { background: var(--sand); }
.times-fees { background: var(--cream); }
.faq { background: var(--ivory); }
.enquiry { background: var(--linen); }
.section-head { max-width: 52rem; margin-bottom: 36px; }
.section-head h2 { margin-bottom: .4em; }
.section-head .intro { margin: 0; }
.section-note { margin: 24px 0 0; color: var(--ink-soft); font-size: .98rem; }
.section-note a { text-underline-offset: 3px; font-weight: 600; }

/* Buttons */
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-soft); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn .chev { margin-right: -.2em; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%); padding: 40px 0 48px; }
.hero-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; line-height: 1.5; }
.pill { display: inline-block; padding: .3em .8em; border-radius: 999px; background: var(--blush); color: var(--accent-dark); letter-spacing: .08em; font-size: .72rem; }
.hero h1 { font-size: clamp(2.5rem, 7.2vw, 4.4rem); line-height: 1.04; letter-spacing: -0.035em; margin-bottom: .4em; }
.hero h1 > span { display: block; }
.h1-accent { color: var(--accent); }
.hero .lead { color: var(--ink-soft); font-size: 1.15rem; }
.hero .lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { margin: 28px 0 22px; }
.hero-meta { display: grid; gap: 8px; color: var(--ink-soft); font-size: .98rem; }
.hero-meta li { display: flex; align-items: center; gap: .55em; }
.hero-meta .hero-start { margin: 0; font-weight: 600; color: var(--accent); }
.hero-media { position: relative; overflow: visible; box-shadow: none; aspect-ratio: auto; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-badge { display: flex; gap: 14px; align-items: center; margin: -36px 16px 0; position: relative; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; box-shadow: var(--shadow); font-size: .95rem; color: var(--ink-soft); line-height: 1.45; }
.hero-badge strong { color: var(--ink); }
.hero-badge-num { flex: 0 0 auto; font: 800 2rem/1 var(--serif); color: var(--accent); letter-spacing: -0.03em; }

/* Key facts strip */
.facts { background: var(--blush); }
.facts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding-top: 0; padding-bottom: 0; }
.fact { display: flex; gap: 12px; align-items: flex-start; padding: 18px 12px 18px 0; border-bottom: 1px solid rgba(164, 71, 41, .16); }
.fact .ti { width: 26px; height: 26px; margin-top: 2px; }
.fact b { display: block; font-family: var(--serif); font-weight: 700; color: var(--ink); line-height: 1.25; }
.fact span { display: block; font-size: .9rem; color: var(--ink-soft); line-height: 1.4; margin-top: 2px; }
.fact:nth-last-child(-n+2) { border-bottom: 0; }

/* Level cards */
.level-grid { display: grid; gap: 18px; }
.level-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); border-top: 4px solid var(--accent); }
.level-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.level-tag { font: 700 .74rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); background: var(--blush); padding: .55em .85em; border-radius: 999px; }
.level-price { margin: 0; text-align: right; line-height: 1.1; }
.level-price b { display: block; font: 800 2rem/1 var(--serif); color: var(--accent); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.level-price span { font-size: .82rem; color: var(--muted); }
.level-card h3 { font-size: 1.35rem; margin-bottom: .35em; }
.level-card > p { color: var(--ink-soft); margin-bottom: 18px; }
.level-list { display: grid; gap: 10px; padding-top: 16px; border-top: 1px solid var(--line); margin-bottom: 22px; }
.level-list li { display: flex; gap: .6em; align-items: flex-start; font-size: .98rem; line-height: 1.45; }
.level-list .ti { margin-top: .1em; }
.level-cta { margin-top: auto; display: inline-flex; align-items: center; min-height: 44px; gap: .35em; font: 700 1rem var(--serif); color: var(--accent); text-decoration: none; padding: 6px 0; }
.level-cta:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.level-cta .chev { transition: transform .2s; }
.level-cta:hover .chev { transform: translateX(3px); }

/* Tutor */
.tutor-grid { display: grid; gap: 36px; align-items: start; }
.tutor .intro { color: var(--ink-soft); }
.cred-list { display: grid; gap: 10px; margin-top: 24px; }
.cred { display: flex; gap: 14px; align-items: center; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; }
.cred .cred-icon { flex: 0 0 auto; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--blush); }
.cred-icon .ti { width: 22px; height: 22px; }
.cred b { display: block; font-family: var(--serif); font-weight: 700; line-height: 1.3; }
.cred div span { display: block; font-size: .92rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.quote-box { background: var(--accent); color: var(--white); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.quote-box .quote { font: 700 clamp(1.35rem, 3vw, 1.65rem)/1.25 var(--serif); letter-spacing: -0.02em; margin: 0 0 .7em; position: relative; padding-top: 14px; }
.quote-box .quote::before { content: ""; position: absolute; top: 0; left: 0; width: 36px; height: 3px; border-radius: 2px; background: var(--blush); }
.quote-box p:last-child { margin: 0; color: rgba(255, 255, 255, .9); font-size: .98rem; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mini-stats li { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.mini-stats b { display: block; font: 800 1.45rem/1.1 var(--serif); color: var(--accent); letter-spacing: -0.02em; }
.mini-stats span { display: block; font-size: .88rem; color: var(--ink-soft); line-height: 1.35; margin-top: 4px; }

/* Approach */
.approach-title { display: flex; flex-wrap: wrap; align-items: center; gap: .1em .3em; }
.approach-title .chev { width: .6em; height: .6em; stroke: var(--accent); stroke-width: 2.6; }
.steps { display: grid; gap: 14px; counter-reset: none; }
.step { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num { display: inline-block; font: 700 .74rem/1 var(--serif); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--blush); }
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; color: var(--ink-soft); }
.flow-title { margin: 44px 0 14px; font-size: 1.15rem; }
.lesson-flow { display: grid; gap: 8px; }
.lesson-flow li { display: flex; gap: 14px; align-items: baseline; background: var(--cream); border-radius: var(--radius-sm); padding: 14px 18px; font-weight: 600; line-height: 1.35; border: 1px solid var(--line); }
.lesson-flow span { font: 800 .95rem var(--serif); color: var(--accent); min-width: 2ch; }
.approach-more { display: grid; gap: 16px; margin-top: 32px; }
.panel { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.panel > h3 { font-size: 1.2rem; margin-bottom: .4em; }
.panel > p { color: var(--ink-soft); }
.panel-sub { color: var(--muted) !important; font-size: .95rem; margin-bottom: 18px; }
.tick-list { display: grid; gap: 10px; }
.tick-list li { display: flex; gap: .65em; align-items: flex-start; line-height: 1.5; }
.tick-list .ti { margin-top: .15em; }
.tick-list b { font-weight: 600; color: var(--ink); }
.tick-list span { color: var(--ink-soft); }

/* Times & fees */
.tf-grid { display: grid; gap: 18px; align-items: start; }
.slot-list { display: grid; gap: 10px; }
.slot { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; min-height: 64px; }
.slot:hover { border-color: var(--clay); }
.slot[aria-pressed="true"] { border-color: var(--accent); background: var(--paper); box-shadow: 0 0 0 3px rgba(164, 71, 41, .12); }
.slot-day { flex: 0 0 auto; display: grid; place-items: center; width: 58px; padding: 6px 0; border-radius: 10px; background: var(--blush); line-height: 1.1; }
.slot-day span { font: 700 .7rem var(--serif); letter-spacing: .1em; text-transform: uppercase; color: var(--accent-dark); }
.slot-day b { font: 800 1rem var(--serif); color: var(--ink); }
.slot-text { flex: 1 1 auto; min-width: 0; }
.slot-text b { display: block; font-family: var(--serif); font-weight: 700; }
.slot-text span { display: block; font-size: .92rem; color: var(--muted); }
.slot-check { width: 26px; height: 26px; padding: 4px; border-radius: 50%; border: 1.5px solid var(--line); stroke: transparent; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.slot[aria-pressed="true"] .slot-check { background: var(--accent); border-color: var(--accent); stroke: var(--white); }
.no-js .slot { cursor: default; }
.no-js .slot-check, .no-js .slot-hint, .no-js .panel-sub-js { display: none; }
.slot-hint { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }
.slot-hint a { font-weight: 600; text-underline-offset: 3px; }
.callout { margin-top: 18px; background: var(--paper); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 16px; }
.callout b { font-family: var(--serif); }
.callout p { margin: 4px 0 0; color: var(--ink-soft); font-size: .95rem; }
.schedule-note { display: flex; gap: .5em; align-items: flex-start; font-size: .92rem; color: var(--muted); margin: 18px 0 0; }
.schedule-note .ti { margin-top: .15em; }
#fees .fee-table th:first-child { padding-left: 0; }
.fee-terms { margin-top: 18px; }
.fee-terms-title { font-size: clamp(1.4rem, 3vw, 1.75rem); margin-bottom: .35em; }
.fee-terms-detail { display: grid; gap: 4px 32px; }
.fee-terms-detail h4 { font: 700 1.05rem/1.3 var(--serif); margin: .9em 0 .3em; color: var(--ink); }
.fee-terms-detail > div:first-child h4 { margin-top: 0; }
.fee-terms-detail p { margin: 0; }

/* Location + FAQ */
.loc-grid { display: grid; gap: 40px; align-items: start; }
.loc h2 { font-size: clamp(1.75rem, 3.6vw, 2.2rem); }
.mrt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.mrt li { display: inline-flex; align-items: center; gap: .45em; padding: .5em .95em; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); font-family: var(--serif); font-weight: 600; font-size: .95rem; }
.faq h2 { margin-bottom: 0; }
.faq-list { margin-top: 20px; }
.faq-list summary { font-size: 1.1rem; padding: 18px 44px 18px 0; }
.faq-list summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); right: 10px; }
.faq-list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-list summary:hover { color: var(--accent); }
.faq-list details p + p { margin-top: -8px; }

/* Enquiry */
.enquiry-shell { display: grid; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--cream); }
.enquiry-side { background: var(--accent-dark); color: var(--white); padding: 28px 24px; }
.enquiry-side .eyebrow { color: var(--blush); }
.enquiry-side h2 { color: var(--white); }
.enquiry-side p { color: rgba(255, 255, 255, .9); }
.enquiry-side .enquiry-start { font-weight: 600; color: var(--white); }
.contact-list { display: grid; gap: 10px; margin-top: 22px; }
.contact-list a { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); color: var(--white); text-decoration: none; font: 700 1rem var(--serif); transition: background .2s; }
.contact-list a:hover { background: rgba(255, 255, 255, .18); }
.contact-list .ti { stroke: var(--white); }
.contact-list .chev { margin-left: auto; }
.enquiry-shell .enquiry-form { border: 0; border-radius: 0; box-shadow: none; }

/* Footer link to policy etc. stays as before */

@media (min-width: 640px) {
  .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .fact { padding: 22px 16px 22px 0; border-bottom: 0; }
  .fact + .fact { padding-left: 16px; border-left: 1px solid rgba(164, 71, 41, .16); }
  .mini-stats { grid-template-columns: repeat(4, 1fr); }
  .tutor-side .mini-stats { grid-template-columns: 1fr 1fr; }
  .enquiry-side { padding: 36px 32px; }
  .panel { padding: 28px; }
}
@media (min-width: 640px) and (max-width: 899px) {
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(-n+2) { border-bottom: 1px solid rgba(164, 71, 41, .16); }
}
@media (min-width: 800px) {
  .approach-more { grid-template-columns: 1fr 1fr; }
  .fee-terms-detail { grid-template-columns: 1fr 1fr; }
  .fee-terms-detail > div:nth-child(2) h4 { margin-top: 0; }
  .fee-terms-detail > div:nth-child(3) { grid-row: span 2; }
}
@media (min-width: 900px) {
  .level-grid, .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .lesson-flow { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .lesson-flow li { flex-direction: column; gap: 8px; padding: 18px; }
}
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; }
  .hero h1 { font-size: clamp(3rem, 4.6vw, 3.75rem); }
  .hero-badge { position: absolute; left: -28px; bottom: -28px; margin: 0; max-width: 340px; }
  .section-head { margin-bottom: 44px; }
  .tutor-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .tf-grid { grid-template-columns: .8fr 1.2fr; gap: 24px; }
  #fees .fee-table tbody th { font-size: 1rem; }
  #fees .fee-table td { font-size: 1.15rem; }
  #fees .fee-table td:nth-child(n+3) { font-size: 1.2rem; }
  .loc-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .loc { position: sticky; top: 110px; }
  .enquiry-shell { grid-template-columns: .85fr 1.15fr; }
  .enquiry-side { padding: 44px 40px; }
  .enquiry-shell .enquiry-form { padding: 40px; }
}
@media (max-width: 479px) {
  .hero-actions .btn { width: 100%; }
  .level-card, .step, .panel { padding: 20px; }
  .slot-day { width: 52px; }
}
.fee-terms .fee-terms-title { margin: 0 0 .35em; font-size: clamp(1.4rem, 3vw, 1.75rem); }
.nowrap { white-space: nowrap; }

/* ==========================================================================
   Mobile compaction (Nov 2026): accordions, carousels, tighter spacing
   below 720px. Desktop keeps the layout above.
   ========================================================================== */
.m-acc > summary { list-style: none; }
.m-acc > summary::-webkit-details-marker { display: none; }
.m-acc > summary h3 { margin: 0 0 .4em; font-size: 1.2rem; }
.carousel-dots { display: none; }
.m-only { display: none; }
@media (min-width: 720px) {
  .m-acc > summary { cursor: default; }
  .terms-acc > summary { display: none; }
}

@media (max-width: 719px) {
  .m-hide { display: none !important; }
  .m-only { display: inline; }
  .section { padding: 44px 0; }
  h2, .section-head h2 { font-size: clamp(1.55rem, 6.4vw, 1.8rem); }
  .eyebrow { margin-bottom: .6em; font-size: .74rem; }
  .section-head { margin-bottom: 20px; }
  .section-head .intro, .intro { font-size: 1rem; }

  /* Hero: short copy, CTAs side by side, cropped photo below */
  .hero { padding: 22px 0 28px; }
  .hero-grid { gap: 20px; }
  .hero h1 { font-size: clamp(2rem, 9vw, 2.4rem); margin-bottom: .35em; }
  .hero .lead { font-size: 1.04rem; margin-bottom: 0; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 14px; }
  .hero-actions .btn { width: 100%; padding: .85em .8em; min-height: 48px; }
  .hero-meta { font-size: .92rem; gap: 4px; }
  .hero-media img { aspect-ratio: 16 / 9; }

  /* Key facts: compact 2x2 */
  .fact { gap: 8px; padding: 12px 8px 12px 0; }
  .fact:nth-child(even) { padding-left: 10px; border-left: 1px solid rgba(164, 71, 41, .16); }
  .fact .ti { width: 20px; height: 20px; margin-top: 1px; }
  .fact b { font-size: .92rem; }
  .fact span { font-size: .8rem; }

  /* Carousels with a peek of the next card */
  [data-carousel] { display: flex !important; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 4px 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  [data-carousel]::-webkit-scrollbar { display: none; }
  [data-carousel] > * { flex: 0 0 84%; scroll-snap-align: start; }
  .carousel-dots { display: flex; justify-content: center; gap: 2px; margin-top: 2px; }
  .carousel-dot { width: 44px; height: 44px; border: 0; padding: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
  .carousel-dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .2s, background .2s; }
  .carousel-dot[aria-current="true"]::before { width: 22px; background: var(--accent); }

  /* Level cards */
  .level-card { padding: 18px; }
  .level-top { margin-bottom: 10px; }
  .level-price b { font-size: 1.7rem; }
  .level-card h3 { font-size: 1.2rem; }
  .level-card > p { font-size: .95rem; margin-bottom: 12px; }
  .level-list { gap: 6px; padding-top: 12px; margin-bottom: 10px; }
  .level-list li { font-size: .93rem; }
  .section-note { margin-top: 12px; font-size: .93rem; }

  /* Tutor: compact credential list */
  .tutor-grid { gap: 18px; }
  .cred-list { gap: 0; margin-top: 0; border-top: 1px solid var(--line); }
  .cred { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 9px 0; gap: 12px; }
  .cred .cred-icon { width: 34px; height: 34px; }
  .cred-icon .ti { width: 18px; height: 18px; }
  .cred b { font-size: .98rem; }
  .cred div span { font-size: .86rem; }
  .quote-box { padding: 18px 20px; }
  .quote-box .quote { font-size: 1.15rem; margin: 0; padding-top: 12px; }

  /* Approach */
  .step { padding: 18px; }
  .step-num { margin-bottom: 10px; }
  .step h3 { font-size: 1.12rem; }
  .step p { font-size: .95rem; }
  .flow-title { margin: 22px 0 8px; font-size: 1.05rem; }
  .lesson-flow { gap: 0; background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 14px; }
  .lesson-flow li { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 9px 0; font-size: .94rem; }
  .lesson-flow li:last-child { border-bottom: 0; }
  .approach-more { gap: 10px; margin-top: 16px; }

  /* Accordions on mobile */
  details.panel.m-acc { padding: 0; }
  .m-acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 12px 18px; cursor: pointer; }
  .m-acc > summary h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; }
  .m-acc > summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-25%) rotate(45deg); transition: transform .2s; }
  .m-acc[open] > summary::after { transform: translateY(25%) rotate(-135deg); }
  details.panel.m-acc > :not(summary) { margin-left: 18px; margin-right: 18px; }
  details.panel.m-acc > :last-child { margin-bottom: 18px; }
  .panel > p, .tick-list li { font-size: .95rem; }

  /* Times & fees */
  .tf-grid { gap: 12px; }
  .panel { padding: 18px; }
  .panel > h3 { font-size: 1.1rem; }
  .panel-sub { margin-bottom: 12px; font-size: .9rem; }
  .slot-list { grid-template-columns: 1fr 1fr; gap: 8px; }
  .slot { flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; min-height: 64px; }
  .slot-day, .slot-check { display: none; }
  .slot-text b { font-size: .95rem; }
  .slot-text span { font-size: .85rem; line-height: 1.35; }
  .slot-hint { font-size: .85rem; margin-top: 8px; }
  .callout { margin-top: 12px; padding: 10px 12px; }
  .callout p { font-size: .88rem; }
  .schedule-note { font-size: .85rem; margin-top: 12px; }
  /* Fee table: one compact row per lesson type, three prices side by side */
  .fee-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 8px; padding: 12px 0; }
  .fee-table tbody tr:first-child { padding-top: 0; }
  .fee-table tbody th { grid-column: 1 / -1; padding: 0 0 4px; font-size: 1rem; }
  .fee-table tbody th .fee-sublabel { display: inline; margin-left: .35em; font-size: .8rem; }
  .fee-table td, .fee-table td:nth-child(n+3) { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 2px 0 0; border-top: 0; font-size: 1.15rem; text-align: left; }
  .fee-table td::before { flex: none; font-size: .78rem; }
  .fee-note { font-size: .86rem; }
  .fee-terms { padding: 18px; margin-top: 12px; }
  .fee-terms .fee-terms-title { font-size: 1.25rem; }
  .fee-terms .intro { font-size: .92rem; margin-bottom: 12px; }
  .offer-cards { gap: 8px; margin-bottom: 4px; }
  .offer-card { display: grid; grid-template-columns: 5.6rem 1fr; column-gap: 12px; align-items: start; padding: 12px 14px; }
  .offer-card .ti { display: none; }
  .offer-card-figure { grid-column: 1; grid-row: 1 / span 2; margin: 0; font-size: 1.3rem; }
  .offer-card-label { grid-column: 2; margin: 0; }
  .offer-card-line { grid-column: 2; font-size: .88rem; }
  .offer-split { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; margin-top: 8px; }
  .offer-split li { font-size: .86rem; padding: 2px 0 2px 10px; }
  .terms-acc > summary { padding: 12px 0; min-height: 48px; justify-content: flex-start; color: var(--accent); font: 700 1rem var(--serif); }
  .terms-acc > summary::after { margin-left: 4px; }
  .terms-acc .fee-terms-detail { padding-top: 12px; }
  .fee-terms-detail p { font-size: .93rem; }

  /* Location + FAQ */
  .loc-grid { gap: 22px; }
  .loc .intro { margin-bottom: 0; }
  .mrt { gap: 6px; margin-top: 12px; }
  .mrt li { font-size: .85rem; padding: .45em .8em; }
  .faq-list { margin-top: 12px; }
  .faq-list summary { font-size: 1rem; padding: 12px 40px 12px 0; min-height: 48px; display: flex; align-items: center; }
  .faq-list details p { font-size: .95rem; padding-bottom: 14px; }

  /* Instagram: one swipeable row instead of a tall grid */
  .instagram .container { padding-right: 20px; }
  .ig-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 12px; }
  .ig-head h2 { margin-bottom: .2em; }
  .ig-head .intro { font-size: .9rem; }
  .ig-follow { margin-top: 0; flex: 0 0 auto; padding: .6em .9em; font-size: .88rem; min-height: 44px; }
  .ig-follow span:not(.visually-hidden) { display: none; }
  .ig-follow::after { content: "Follow"; }
  .ig-grid { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px -20px 0; padding: 0 20px 6px; scroll-padding: 0 20px; scrollbar-width: none; }
  .ig-grid::-webkit-scrollbar { display: none; }
  .ig-grid > li { flex: 0 0 46%; scroll-snap-align: start; }

  /* Enquiry */
  .enquiry { padding-bottom: 104px; }
  .enquiry-side { padding: 22px 18px; }
  .enquiry-side h2 { font-size: 1.5rem; }
  .enquiry-side p { font-size: .95rem; margin-bottom: .6em; }
  .contact-list { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
  .contact-list a { min-height: 48px; padding: 10px 12px; font-size: .9rem; gap: 8px; }
  .contact-list .chev { display: none; }
  .enquiry-shell .enquiry-form { padding: 20px 18px; }
  .field { margin-bottom: 14px; }
  .field textarea { min-height: 72px; height: 88px; }
  .site-footer { padding-top: 36px; padding-bottom: 104px; }
  .footer-meta { margin-top: 20px; }
  .footer-nav { gap: 0 20px; }
  .footer-nav a, .footer-contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .brand { display: inline-flex; align-items: center; min-height: 44px; }

  /* Floating buttons: icon-only chat launcher so it no longer covers text */
  .page-fab { gap: 8px; }
  .contact-floats { gap: 8px; }
  .faq-bot-launch { padding: 13px; }
  .faq-bot-launch span { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 719px) and (prefers-reduced-motion: reduce) {
  [data-carousel], .ig-grid { scroll-behavior: auto; }
  .carousel-dot::before, .m-acc > summary::after { transition: none; }
}

/* Hero: link to the free Sec 1 Maths readiness check (/readiness) */
.hero-readiness { margin: -10px 0 20px; }
.hero-readiness a { display: inline-flex; align-items: center; gap: .45em; font-family: var(--serif); font-weight: 700; font-size: .98rem; color: var(--accent-dark); text-decoration: underline; text-decoration-color: var(--blush); text-decoration-thickness: 2px; text-underline-offset: 4px; padding: 6px 0; }
.hero-readiness a:hover { text-decoration-color: var(--accent); }
.hero-readiness .chev { width: .85em; height: .85em; }
