@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Navy and gold are sampled from crest.webp. */
  --navy: #02122d;
  --gold: #f7c061;
  --ivory: #faf6ed;
  --card: #fffaf0;
  --muted: #495365;
  --line: #d3b686;
  --input-line: #8b7759;
  --focus: var(--focus-on-ivory);
  --focus-on-ivory: #79501d;
  color-scheme: light;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
  background: var(--navy);
  color: var(--navy);
  font: 16px/1.65 'Inter', system-ui, sans-serif;
}
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
header, main { background: var(--ivory); }
header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  font: 600 25px/1 'Geist', system-ui, sans-serif;
  text-decoration: none;
}
.brand small { display: block; margin-top: 5px; font-size: 9px; letter-spacing: .16em; }
.seal {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
}
.seal img { width: 100%; height: 100%; object-fit: contain; }
nav { display: flex; align-items: center; gap: 20px; }
nav a { font-size: 13px; text-decoration: none; font-weight: 600; }
nav a:hover, nav a[aria-current="page"], footer a:hover, .text:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu-toggle { display: none; }

.hero, footer {
  --focus: var(--gold);
  background: var(--navy);
  color: var(--ivory);
}
.hero { background: radial-gradient(ellipse at top right, #112c50, var(--navy) 64%); padding-block: clamp(64px, 9vw, 132px); border-bottom: 1px solid var(--gold); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; gap: clamp(32px, 6vw, 84px); }
.hero p:not(.eyebrow) { max-width: 55ch; }
.eyebrow { margin: 0 0 18px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow, footer .eyebrow, .hero em { color: var(--gold); }
h1, h2, h3 { margin: 0 0 .45em; font: 600 1em/1.1 'Geist', system-ui, sans-serif; letter-spacing: -.04em; }
h1 { max-width: 16ch; font-size: clamp(2.6rem, 5.8vw, 5.3rem); }
h2 { font-size: clamp(1.95rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.65rem); }
.hero h1 + p { margin: 1.35rem 0 0; }
.feature, .card { background: var(--card); color: var(--navy); border: 1px solid var(--line); border-radius: 12px; }
.feature { padding: clamp(22px, 4vw, 38px); }
.feature h2 { font-size: clamp(1.8rem, 3.2vw, 2.9rem); }
.hero .feature .eyebrow { color: var(--focus); }
.hero .feature { --focus: var(--focus-on-ivory); }

.hero .maths-feature { --focus: var(--gold); color: var(--ivory); background: var(--navy); border-color: var(--gold); }
.hero .maths-feature .eyebrow { color: var(--gold); }
.photo { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.button, .menu-toggle, .floating-chat {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: var(--navy);
  color: var(--ivory);
  font: 700 .875rem/1.35 'Inter', system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.button:hover, .menu-toggle:hover, .floating-chat:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero .button { background: var(--gold); color: var(--navy); }
.button.outline, .menu-toggle { background: transparent; color: inherit; border-color: currentColor; }
.hero .button.outline { background: transparent; color: inherit; }
.menu-toggle { display: none; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.alt { border-block: 1px solid var(--line); }
.lede, .card p, .muted { max-width: 65ch; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 25px; }
.card { padding: 26px; }
.text { font-weight: 700; text-underline-offset: 4px; }
.text:hover { color: var(--focus); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 50px; align-items: center; }
.rows { max-width: 850px; }
.rows details, .row { border-top: 1px solid var(--line); padding: 16px 0; }
.rows details:last-child, .row:last-child { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
summary:hover { text-decoration: underline; text-underline-offset: 4px; }
summary span { color: var(--focus); margin-right: 12px; }
.row { display: flex; justify-content: space-between; gap: 15px; }
.programme-price strong { font-size: 1.75rem; }
footer { padding-block: 46px 18px; }
.foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 20px; }
.foot a:not(.brand) { display: block; margin-bottom: 6px; font-size: 14px; }
.copyright { border-top: 1px solid var(--gold); margin-top: 28px; padding-top: 14px; font-size: 12px; }
.enquiry-form { display: grid; max-width: 620px; gap: 18px; }
.enquiry-phone { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 12px; }
.enquiry-phone input { min-width: 0; }
.enquiry-form label { display: grid; gap: 6px; font-weight: 600; }
.enquiry-form label span { color: var(--muted); font-size: .9em; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border: 1px solid var(--input-line);
  border-radius: 7px;
  background: var(--card);
  color: var(--navy);
  font: inherit;
}
.enquiry-form input::placeholder { color: var(--muted); }
.enquiry-form .actions, .form-status { margin: 0; }
.enquiry-form button:disabled { cursor: wait; }
.floating-chat {
  position: fixed;
  z-index: 10;
  right: 16px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  --focus: var(--gold);
  border-color: var(--gold);
  border-radius: 24px;
  color: var(--gold);
}
.floating-chat svg { width: 20px; height: 20px; flex: none; fill: currentColor; }

@media (max-width: 1000px) {
  .bar { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding-block: 12px; }
  .menu-toggle { display: inline-flex; }
  .bar > .button { grid-column: 1 / -1; justify-self: start; }
  #primary-nav { display: none; grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 0; }
  .menu-toggle[aria-expanded="true"] + #primary-nav { display: flex; }
  #primary-nav a { padding-block: 10px; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .hero-grid, .grid, .split { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
}

.programme-details h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.programme-details dl { margin: 20px 0 0; }
.programme-details dl > div {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) minmax(0, 2fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.programme-details dt { font-weight: 700; }
.programme-details dd { margin: 0; }
.programme-details ul { margin: 0; padding-left: 1.2em; }
.mobile-chat { display: none; }
@media (max-width: 1000px) {
  .mobile-chat { display: block; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .programme-details dl > div { grid-template-columns: 1fr; gap: 2px; }
}

.skip-link { position: absolute; top: 8px; left: 8px; z-index: 20; padding: 8px 16px; background: var(--ivory); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
nav a.current-section { text-decoration: underline; text-underline-offset: 4px; }
.card:has(.actions) { display: flex; flex-direction: column; align-items: flex-start; }
.card:has(.actions) .text { margin-top: auto; }
.card .actions { margin-top: 16px; }
summary { min-height: 28px; }
@media (prefers-reduced-motion: no-preference) {
  .button { transition: box-shadow 160ms ease; }
  .button:hover { box-shadow: 0 0 0 2px currentColor; }
}
