/* ==========================================================================
   Adventure Wellbeing School: redesign draft, shared stylesheet
   Layout: bottle-green masthead, prose-led sections on alternating washes,
   photographs cut to the leaf shape from the school's tree logo.
   Change the palette in one place: the :root block below.
   ========================================================================== */

:root {
  /* One deliberate light look, the same on every device. */
  color-scheme: only light;

  /* Scheme: Tonal Sage with Oat. Greens run in one family from the logo sage
     to deep forest; grounds are oat and linen; labels are walnut.
     The previous Sage and Olive palette is kept in styles-sage-olive-backup.css. */
  --green:        #4E6A4A;   /* links, rules and accents, from the logo sage */
  --green-deep:   #26331F;   /* deep forest: buttons, footer */
  --green-mid:    #2F3F2A;   /* page titles, closing band */
  --green-line:   #5F7B5B;
  --leaf:         #B8CFB0;   /* pale sage, for text on the deep greens */
  --logo-green:   #789274;   /* sampled from the lettering of the school logo */
  --logo-deep:    #5F7B5B;   /* the header */
  --bark:         #7A5A2B;   /* walnut, small-caps labels on light grounds */
  --bark-light:   #E8DCC2;   /* oat, the same labels on dark green */

  /* Grounds */
  --paper:        #FBF8F1;   /* linen */
  --sage:         #D9E4D3;   /* pale sage wash */
  --stone:        #EFE8D8;   /* oat wash, also the contact strip */
  --white:        #FFFFFF;

  /* Text and lines */
  --ink:          #1E2A19;
  --body:         #4A5145;
  --muted:        #646B5E;
  --border:       #DCD5C3;
  --alert:        #8A2E1F;
  --alert-soft:   #F6E7E2;

  /* Type */
  --font-display: 'Young Serif', Georgia, 'Times New Roman', serif;
  --font-body:    'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Layout */
  --wrap: 1140px;
  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;
  --shadow-sm: 0 2px 10px rgba(44, 58, 22, 0.06);
  --shadow:    0 6px 22px rgba(44, 58, 22, 0.10);
}

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

html { scroll-behavior: smooth; background: var(--paper); }

body {
  font-family: var(--font-body);
  font-size: 1.04rem;
  color: var(--body);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.14;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.6vw, 3.9rem); letter-spacing: -0.5px; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.55rem); }
h3 { font-size: 1.3rem; }

p { margin-bottom: 1.1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--green); }
a:hover { color: var(--green-deep); }
a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bark);
  outline-offset: 2px;
}

img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--white); color: var(--green-deep);
  padding: 12px 20px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   Masthead
   -------------------------------------------------------------------------- */
.topbar { background: var(--stone); color: var(--green-deep); font-size: 0.86rem; font-weight: 600; }
.topbar .wrap {
  display: flex; justify-content: flex-end; flex-wrap: wrap;
  gap: 6px 24px; padding-top: 8px; padding-bottom: 8px;
}
.topbar a { color: var(--green-deep); text-decoration: none; }
.topbar a:hover { color: var(--green-deep); text-decoration: underline; }

.site-header {
  background: var(--logo-deep);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding-top: 10px; padding-bottom: 10px; position: relative;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 58px; width: auto; }
.brand strong {
  font-family: var(--font-display); font-weight: 400;
  color: #fff; font-size: 1.12rem; line-height: 1.15; max-width: 11ch;
}

.nav-toggle {
  display: none; background: none; color: #fff; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 10px;
  padding: 9px 14px; font: 600 0.92rem var(--font-body);
}
.nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav a, .nav .sub-toggle {
  display: block; padding: 10px 14px; border-radius: 9px;
  color: #fff; text-decoration: none; white-space: nowrap;
  font: 700 0.96rem var(--font-body); background: none; border: 0; cursor: pointer;
}
.nav a:hover, .nav .sub-toggle:hover { background: rgba(44, 58, 22, 0.18); color: #fff; }
.nav a.active, .nav .sub-toggle.active { background: rgba(44, 58, 22, 0.26); color: #fff; }
.nav .sub-toggle::after {
  content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 9px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.has-sub { position: relative; }
.sub {
  display: none; list-style: none; position: absolute; top: 100%; left: 0;
  min-width: 230px; background: var(--white); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: 8px;
}
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { display: block; }
.nav .sub a { color: var(--ink); font-weight: 600; }
.nav .sub a:hover, .nav .sub a.active { background: var(--sage); color: var(--green-deep); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 28px; border-radius: var(--pill); border: 2px solid transparent;
  font: 700 0.97rem var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green-deep); color: #fff; }
.btn-primary:hover { background: var(--green); color: #fff; }
.btn-ghost { background: var(--white); border-color: var(--border); color: var(--green-deep); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* --------------------------------------------------------------------------
   Small-caps label
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block; font: 700 0.76rem var(--font-body);
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--bark); margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Bands (page sections)
   -------------------------------------------------------------------------- */
.band { padding-block: 68px; }
.band.tight { padding-block: 40px; }
.band.white { background: var(--white); }
.band.sage  { background: var(--sage); }
.band.stone { background: var(--stone); }

.section-head { max-width: 700px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 12px; }

/* Homepage hero */
.hero { padding-block: 56px 64px; }
.hero h1 { margin-bottom: 20px; }
.hero h1 span { display: block; color: var(--green); }

/* Interior page masthead continues the green block */
.page-hero { background: var(--green-mid); padding-block: 44px 48px; }
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.2rem); }
.page-hero p { color: #D5DCC6; max-width: 640px; margin-top: 10px; }
.page-hero .eyebrow { color: var(--bark-light); }
.crumbs { font-size: 0.86rem; color: #B9C4A3; margin-bottom: 14px; }
.crumbs a { color: #DDE5CC; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   Split: prose beside one photograph
   -------------------------------------------------------------------------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 56px; align-items: center;
}
.split.photo-first { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
.split > * { min-width: 0; }
.split h2 { margin-bottom: 16px; }

/* Photographs take the leaf shape from the tree in the school logo */
.leaf { border-radius: 120px 16px 120px 16px; overflow: hidden; box-shadow: var(--shadow); }
.leaf.flip { border-radius: 16px 120px 16px 120px; }
.leaf img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.leaf.tall img { aspect-ratio: 4 / 5; }
.leaf.natural img { aspect-ratio: auto; }

.photo-band img { width: 100%; height: clamp(220px, 34vw, 400px); object-fit: cover; object-position: center 62%; }

/* --------------------------------------------------------------------------
   At a glance: a ruled row of facts, not tiles
   -------------------------------------------------------------------------- */
.glance {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.glance div { padding: 22px 22px; border-left: 1px solid var(--border); }
.glance div:first-child { border-left: 0; padding-left: 0; }
.glance strong {
  display: block; font-family: var(--font-display); font-weight: 400;
  font-size: 1.5rem; color: var(--green); line-height: 1.15; margin-bottom: 6px;
}
.glance span { font-size: 0.93rem; color: var(--muted); line-height: 1.45; display: block; }

/* --------------------------------------------------------------------------
   Prose
   -------------------------------------------------------------------------- */
.prose h2 { margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; }
.prose ul { margin: 0 0 1.1rem 1.3rem; }
.prose li { margin-bottom: 7px; }
.pullquote {
  font-family: var(--font-display); font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  line-height: 1.35; color: var(--green-deep);
  border-left: 4px solid var(--green); padding-left: 22px; margin: 6px 0 26px;
}

/* Values: four quarters divided by hairlines */
.value-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.value-panel { background: var(--white); padding: 30px 28px; }
.value-panel img { width: 58px; height: 58px; margin-bottom: 14px; }
.value-panel h3 { margin-bottom: 8px; }
.value-panel p { font-size: 0.98rem; }

/* FAQ accordion */
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary {
  padding: 18px 4px; cursor: pointer; list-style: none;
  font-weight: 700; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--green); border-bottom: 2px solid var(--green);
  transform: rotate(45deg); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq .answer { padding: 0 4px 20px; max-width: 68ch; }

/* --------------------------------------------------------------------------
   Team
   -------------------------------------------------------------------------- */
.team-group + .team-group { margin-top: 52px; }
.team-group h2 { font-size: 1.6rem; margin-bottom: 22px; }
.team-grid {
  display: grid; gap: 26px 20px; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.person img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center top;
  border-radius: 56px 12px 56px 12px; background: var(--stone); margin-bottom: 12px;
}
.person strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; color: var(--ink); line-height: 1.2; }
.person span { font-size: 0.88rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   Lists of documents and contacts
   -------------------------------------------------------------------------- */
.doc-list { list-style: none; border-top: 1px solid var(--border); }
.doc-list li { border-bottom: 1px solid var(--border); }
.doc-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 6px; text-decoration: none; color: var(--ink); font-weight: 700;
}
.doc-list a:hover { background: var(--sage); color: var(--green-deep); }
.doc-list .tag {
  flex-shrink: 0; font-size: 0.74rem; font-weight: 700; letter-spacing: 1.4px;
  color: var(--green); border: 1px solid var(--green); border-radius: var(--pill); padding: 3px 11px;
}
.doc-list small { display: block; font-weight: 400; color: var(--muted); font-size: 0.9rem; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.contact-grid h3 { font-size: 1.05rem; margin-bottom: 6px; }
.contact-grid .big { font-size: 1.12rem; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.contact-grid a.big { color: var(--green-deep); }

.la-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.la { background: var(--white); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); min-width: 0; }
.la h3 { font-size: 1.12rem; margin-bottom: 10px; }
.la p { font-size: 0.96rem; margin-bottom: 0.5rem; overflow-wrap: anywhere; }

.emergency {
  background: var(--alert-soft); border-left: 5px solid var(--alert);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 20px 24px; margin: 26px 0;
}
.emergency strong { display: block; color: var(--alert); font-size: 0.8rem; letter-spacing: 1.8px; text-transform: uppercase; }
.emergency span { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }

/* Term dates table */
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 480px; font-variant-numeric: tabular-nums; }
caption { text-align: left; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); padding: 34px 0 12px; }
th, td { text-align: left; padding: 13px 14px 13px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.kind { display: inline-block; font-size: 0.78rem; font-weight: 700; border-radius: var(--pill); padding: 2px 11px; border: 1px solid var(--border); color: var(--muted); white-space: nowrap; }
.kind.term { background: var(--green); border-color: var(--green); color: #fff; }
.kind.hol { background: var(--sage); border-color: var(--sage); color: var(--green-deep); }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); }
.form-card h3 { margin: 26px 0 14px; font-size: 1.15rem; }
.form-card h3:first-of-type { margin-top: 0; }
.field { margin-bottom: 18px; min-width: 0; }
.field label { display: block; font-weight: 700; font-size: 0.92rem; color: var(--ink); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #B9B7A4; border-radius: 10px;
  font: inherit; font-size: 0.98rem; color: var(--ink); background: var(--white);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-note { font-size: 0.9rem; color: var(--muted); margin-top: 14px; }
.form-status { background: var(--sage); color: var(--green-deep); font-weight: 600; border-radius: 10px; padding: 14px 16px; margin-top: 18px; }
.form-status.error { background: #FBE9E4; color: #8A2B17; }
.form-card button[disabled] { opacity: 0.7; cursor: wait; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* --------------------------------------------------------------------------
   Closing band and footer
   -------------------------------------------------------------------------- */
.cta-band { background: var(--green-mid); border-radius: 30px 30px 0 0; padding-block: 64px; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #D5DCC6; max-width: 640px; margin-inline: auto; }
.cta-band .lead { font-family: var(--font-display); font-size: 1.22rem; color: var(--leaf); line-height: 1.4; }
.cta-band .btn-row { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--green-deep); }
.cta-band .btn-primary:hover { background: var(--sage); }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.site-footer { background: var(--green-deep); color: #C3CCB1; padding-top: 56px; font-size: 0.94rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 42px; }
.footer-grid > div { min-width: 0; }
.site-footer img { height: 110px; width: auto; }
.site-footer h4 { font: 700 0.76rem var(--font-body); letter-spacing: 2.4px; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #C3CCB1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.14); padding: 20px 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px 24px;
  font-size: 0.86rem; color: #A9B396;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--logo-deep); border-top: 1px solid rgba(255, 255, 255, 0.25);
    padding: 10px 24px 20px; max-height: 75vh; overflow-y: auto;
  }
  .nav.open { display: block; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav .sub-toggle { display: none; }
  .sub { display: block; position: static; background: none; box-shadow: none; padding: 0; min-width: 0; }
  .nav .sub a { color: #fff; }
  .nav .sub a:hover, .nav .sub a.active { background: rgba(255, 255, 255, 0.12); color: #fff; }

  .split, .split.photo-first { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .split.photo-first .leaf { order: 0; }
  .band { padding-block: 48px; }
  .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .glance div, .glance div:first-child { padding: 18px 16px 18px 0; border-left: 0; }
  .glance div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .la-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .topbar .wrap { justify-content: center; }
  .brand img { height: 46px; }
  .brand strong { font-size: 0.98rem; }
  .hero { padding-block: 34px 44px; }
  .page-hero { padding-block: 28px 32px; }
  .leaf { border-radius: 72px 14px 72px 14px; }
  .leaf.flip { border-radius: 14px 72px 14px 72px; }
  .value-grid, .field-row, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .form-card { padding: 26px 20px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
/* --------------------------------------------------------------------------
   Prospectus components
   -------------------------------------------------------------------------- */
.brand img { height: 72px; }
.lede { font-size: 1.2rem; color: var(--ink); line-height: 1.55; }
.hero .where { font-weight: 700; color: var(--green); margin-bottom: 18px; }
.narrow-img { border-radius: var(--radius); box-shadow: var(--shadow); margin-inline: auto; }
.mt { margin-top: 44px; }

/* Quotes from Ofsted and from parents */
.quote { border-left: 4px solid var(--green); padding-left: 22px; min-width: 0; }
.quote p { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.4; color: var(--green-deep); margin-bottom: 10px; }
.quote cite { font-style: normal; font-size: 0.8rem; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--bark); }
.quote.big p { font-size: clamp(1.4rem, 3vw, 2rem); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.quotes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.prose .quote { margin: 28px 0; }

/* Five Ways to Wellbeing, phases, partners: ruled columns */
.ruled { display: grid; gap: 28px 26px; list-style: none; }
.ruled.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ruled.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ruled.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ruled li { border-top: 3px solid var(--green); padding-top: 14px; min-width: 0; }
.ruled h3 { font-size: 1.22rem; margin-bottom: 6px; }
.ruled .sub-label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bark); margin-bottom: 8px; }
.ruled p { font-size: 0.96rem; line-height: 1.6; }
.ruled .evidence { font-size: 0.88rem; color: var(--muted); margin-top: 8px; }

/* Tick lists */
.ticks { list-style: none; }
.prose .ticks { margin-left: 0; }
.ticks li { position: relative; padding: 8px 0 8px 34px; margin: 0; color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ''; position: absolute; left: 6px; top: 14px; width: 7px; height: 13px;
  border-right: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(45deg);
}
.ticks.cols { columns: 2; column-gap: 40px; }
.ticks.cols li { break-inside: avoid; }

/* Pathways: four parallel panels */
.pathways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pathway { background: var(--white); border-radius: var(--radius); padding: 30px 28px; box-shadow: var(--shadow-sm); min-width: 0; }
.pathway h3 { font-size: 1.45rem; margin-bottom: 4px; }
.pathway .phase-tags { font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--bark); margin-bottom: 12px; }
.pathway dl { margin-top: 16px; border-top: 1px solid var(--border); }
.pathway dt { font-size: 0.76rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.pathway dd { font-size: 0.95rem; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* A day with us */
.timeline { list-style: none; border-top: 1px solid var(--border); }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.timeline .when { font-family: var(--font-display); font-size: 1.3rem; color: var(--green); line-height: 1.2; font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.12rem; margin-bottom: 4px; }
.timeline p { font-size: 0.98rem; }

/* Ofsted summary figures */
.figures { display: flex; flex-wrap: wrap; gap: 18px 48px; margin: 26px 0; }
.figures strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.3rem; color: var(--green); line-height: 1.1; }
.figures span { font-size: 0.93rem; color: var(--muted); }

@media (max-width: 940px) {
  .ruled.five, .ruled.four, .ruled.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quotes, .quotes.two, .pathways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .brand img { height: 56px; }
  .ruled.five, .ruled.four, .ruled.three { grid-template-columns: minmax(0, 1fr); }
  .ticks.cols { columns: 1; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* --------------------------------------------------------------------------
   Home page intro: logo, then name, then slogan (option A)
   -------------------------------------------------------------------------- */
/* Set over the photograph of Sherwood House, under a deep green wash */
.intro {
  position: relative; overflow: hidden; text-align: center;
  padding-block: 64px 72px; background: var(--green-deep);
}
.intro-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.intro::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(38, 51, 31, 0.62), rgba(38, 51, 31, 0.84));
}
.intro-seq { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.intro-logo { width: min(190px, 46vw); }
.intro .eyebrow { margin-bottom: 0; color: var(--bark-light); }
.intro-name { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.1rem); color: #fff; line-height: 1.15; }
.intro-rule { width: 70px; height: 3px; background: var(--leaf); border-radius: 3px; }
.intro h1 { font-size: clamp(2.6rem, 6.6vw, 4.6rem); line-height: 1.04; color: #fff; }
.intro h1 span { display: block; color: var(--leaf); }
.intro .lede { max-width: 62ch; color: #E6EBDA; }
.intro .btn-row { justify-content: center; margin-top: 8px; }
.intro .btn-primary { background: #fff; color: var(--green-deep); }
.intro .btn-primary:hover { background: var(--sage); color: var(--green-deep); }
.intro .btn-outline { border-color: rgba(255, 255, 255, 0.6); color: #fff; }
.intro .btn-outline:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* Each element ends fully visible; with reduced motion nothing moves */
.intro-seq > * { animation: intro-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro-seq .s1 { animation-name: intro-grow; animation-duration: 1s; }
.intro-seq .s2 { animation-delay: 0.75s; }
.intro-seq .s3 { animation-delay: 1.35s; }
.intro-seq .s4 { animation-delay: 2s; }
.intro-seq .s5 { animation-delay: 2.4s; }
.intro-seq .s0 { animation-delay: 2.7s; }
@keyframes intro-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes intro-grow { from { opacity: 0; transform: scale(0.82); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro-seq > * { animation: none; } }
/* Phones: the intro on plain green, with the whole photograph beneath it */
@media (max-width: 700px) {
  .intro { display: flex; flex-direction: column; padding-block: 30px 0; }
  .intro::before { display: none; }
  .intro-bg { order: 2; position: static; display: block; height: auto; aspect-ratio: 3 / 2; object-position: center; margin-top: 34px; }
  .intro-seq { gap: 11px; }
  .intro-logo { width: 110px; }
  .intro-name { font-size: 1.4rem; }
  .intro h1 { font-size: 2.3rem; }
  .intro .lede { font-size: 1rem; line-height: 1.6; }
  .intro .btn-row { margin-top: 4px; gap: 10px; }
  .intro .btn { padding: 12px 22px; }
}

/* A split that keeps its photo beside the text on smaller screens, so the
   section is shorter: two columns on tablets, the photo tucked into the
   text on phones */
@media (max-width: 940px) {
  .split.keep, .split.keep.photo-first { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
}
/* Tighter spacing between labels, headings and the text under them */
.band { padding-block: 56px; }
.eyebrow { margin-bottom: 8px; }
.eyebrow + h1, .eyebrow + h2, .eyebrow + h3,
.prose .eyebrow + h2, .prose .eyebrow + h3 { margin-top: 0; }
.split h2, .section-head h2 { margin-bottom: 10px; }
.section-head { margin-bottom: 26px; }
.prose h2 { margin: 28px 0 10px; }
.prose h3 { margin: 20px 0 6px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.ruled h3 { margin-bottom: 4px; }
.ruled .sub-label { margin-bottom: 6px; }
.pathway .phase-tags { margin-bottom: 6px; }
.team-group h2 { margin-bottom: 16px; }
.team-group + .team-group { margin-top: 40px; }
.page-hero p { margin-top: 6px; }
.mt { margin-top: 32px; }
@media (max-width: 940px) { .band { padding-block: 40px; } }

/* Compact footer: just the address and contact details */
.site-footer { padding-top: 34px; }
.footer-find { padding-bottom: 26px; }
.footer-find h4 { margin-bottom: 10px; }
.footer-find address { display: flex; flex-wrap: wrap; gap: 6px 28px; line-height: 1.6; }

/* AWS Group logo beside the company line, on a small white tile so its colours read on the dark footer */
.footer-bottom .company { display: flex; align-items: center; gap: 12px; max-width: 760px; }
.site-footer .group-logo { height: 30px; width: auto; flex-shrink: 0; align-self: center; }

/* The prospectus: a drawn cover beside the link, in a white card */
.prospectus-card {
  background: var(--white); border-radius: var(--radius); padding: 34px 36px;
  display: flex; align-items: center; gap: 44px; flex-wrap: wrap; box-shadow: var(--shadow-sm);
}
.prospectus-card > div:last-child { flex: 1 1 300px; min-width: 0; }
.prospectus-card h2 { margin-bottom: 8px; }
.prospectus-card p { margin-bottom: 18px; max-width: 52ch; }
.prospectus-card .meta { font-size: 0.88rem; color: var(--muted); margin: 10px 0 0; }
.cover {
  width: 180px; aspect-ratio: 210 / 297; border-radius: 6px; background: var(--logo-deep); color: #fff;
  padding: 20px 16px; display: flex; flex-direction: column; justify-content: space-between; flex-shrink: 0;
  box-shadow: 10px 12px 0 rgba(0, 0, 0, 0.12), 0 14px 30px rgba(0, 0, 0, 0.22); transform: rotate(-3deg);
}
.cover img { width: 66px; }
.cover b { font-family: var(--font-display); font-weight: 400; font-size: 1.1rem; line-height: 1.15; }
.cover b span { display: block; color: var(--bark-light); }
.cover small { font-size: 0.68rem; letter-spacing: 1.5px; text-transform: uppercase; opacity: 0.85; }
@media (max-width: 560px) {
  .prospectus-card { padding: 26px 22px; gap: 28px; }
  .cover { width: 140px; }
}

/* Key Information: a grid of links to the published information */
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--white); border-radius: var(--radius-sm); padding: 20px 22px;
  font-weight: 700; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.link-card::after {
  content: ''; flex-shrink: 0; width: 8px; height: 8px;
  border-right: 2px solid var(--green); border-top: 2px solid var(--green); transform: rotate(45deg);
}
.link-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: var(--green-deep); }
@media (max-width: 940px) { .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .link-grid { grid-template-columns: minmax(0, 1fr); } }

.callout { background: var(--paper); border-left: 4px solid var(--green); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 22px 26px; }
.callout h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* Two-column fact tables, such as the proprietor's details */
table.facts { min-width: 0; }
table.facts th { width: 34%; text-transform: none; letter-spacing: 0; font-size: 0.95rem; color: var(--ink); font-weight: 700; }
table.facts td:first-child { white-space: normal; }

/* Boxed tables, as on the Delaney site: white, rounded, with a coloured header row */
table.boxed { background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
table.boxed thead th {
  background: var(--green-deep); color: #fff; font-size: 0.88rem; letter-spacing: 0.4px;
  text-transform: none; padding: 14px 18px;
}
table.boxed td { padding: 14px 18px; font-size: 0.95rem; }
table.boxed tr:last-child td { border-bottom: 0; }
table.boxed strong { color: var(--ink); }

/* Safeguarding team table: a real table at every size, as on the Delaney site.
   On narrow screens it scrolls sideways inside its own box. */
.team-table { min-width: 560px; }
.team-table td[data-label="Contact"] { white-space: nowrap; }
.team-table td:first-child { white-space: normal; font-weight: 400; color: var(--body); }

/* Safeguarding team on phones: the DSL first in a dark box, then the deputies */
.team-phone { display: none; }
@media (max-width: 700px) {
  .team-desktop { display: none; }
  .team-phone { display: block; margin-bottom: 1.1rem; }
}
.lead-box { background: var(--green-deep); color: #fff; border-radius: var(--radius-sm); padding: 18px 18px 16px; margin-bottom: 18px; }
.lead-box .k { display: block; font-size: 0.72rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--bark-light); font-weight: 700; }
.lead-box b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 4px 0 2px; }
.lead-box small { display: block; color: var(--leaf); font-size: 0.9rem; margin-bottom: 8px; }
.lead-box a { display: block; color: #fff; padding: 3px 0; }
.dep-k { font-size: 0.78rem; letter-spacing: 1.6px; text-transform: uppercase; color: var(--bark); font-weight: 700; margin-bottom: 8px; }
.prose ul.dep, .dep { list-style: none; margin: 0; background: var(--white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.dep li { padding: 13px 16px; border-bottom: 1px solid var(--border); margin: 0; }
.dep li:last-child { border-bottom: 0; }
.dep b { display: block; color: var(--ink); }
.dep small { display: block; color: var(--muted); font-size: 0.86rem; margin-bottom: 2px; }
.dep a { display: block; color: var(--green-deep); overflow-wrap: anywhere; }

/* Term dates: one column per term on wide screens, stacked on phones.
   Each date is a small card with a coloured edge showing its type. */
.terms-intro { max-width: 68ch; margin-bottom: 16px; }
.key-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; align-items: start; }
.term-block h2 { font-size: 1.45rem; margin-bottom: 12px; }
.dates { list-style: none; display: grid; gap: 8px; }
.dates li {
  background: var(--white); border-radius: var(--radius-sm); padding: 12px 14px 12px 16px;
  border-left: 5px solid var(--border); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "what kind" "when when";
  gap: 2px 10px; align-items: center;
}
.dates li > .kind { grid-area: kind; }
.dates li > b { grid-area: what; }
.dates li > .when { grid-area: when; }
.dates li.term { border-left-color: var(--green); }
.dates li.hol { border-left-color: var(--leaf); }
.dates li.inset { border-left-color: var(--bark); }
.dates li.bank { border-left-color: var(--bark-light); }
.dates b { color: var(--ink); font-size: 1rem; }
.dates .when { font-size: 0.93rem; color: var(--body); font-variant-numeric: tabular-nums; }
.kind.inset { background: var(--white); border-color: var(--bark); color: var(--bark); }
.kind.bank { background: var(--white); border-color: var(--bark-light); color: var(--bark); }
@media (max-width: 1000px) { .terms { grid-template-columns: minmax(0, 1fr); max-width: 620px; } }

/* Work Here: vacancy cards and numbered steps */
.jobs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 4px 0 16px; }
.job { background: var(--white); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-sm); border-top: 4px solid var(--green); min-width: 0; }
.job h2 { font-size: 1.35rem; margin-bottom: 10px; }
@media (max-width: 900px) { .jobs { grid-template-columns: minmax(0, 1fr); } }
.job-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.job-meta span { font-size: 0.8rem; font-weight: 700; border-radius: var(--pill); padding: 3px 11px; background: var(--sage); color: var(--green-deep); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { counter-increment: step; background: var(--white); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow-sm); min-width: 0; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--green-deep); color: #fff; font-weight: 700; margin-bottom: 10px;
}
.steps h3 { font-size: 1.15rem; margin-bottom: 4px; }
.steps p { font-size: 0.96rem; overflow-wrap: anywhere; }
@media (max-width: 760px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* Two short text blocks side by side */
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; }
@media (max-width: 800px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* Prospectus viewer: each PDF page drawn as an image, one under another */
.pdf-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.pdf-bar p { color: var(--muted); }
.pdf-pages { display: grid; gap: 18px; }
.pdf-pages canvas { width: 100%; height: auto; display: block; background: var(--white); border-radius: 6px; box-shadow: var(--shadow); }

.contact-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .contact-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contact-grid.four { grid-template-columns: minmax(0, 1fr); } }

/* A subheading directly under a section heading */
.section-head .subhead { font-size: 1.2rem; color: var(--green); margin-bottom: 8px; }

/* The four school values in one row on wide screens */
.value-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 940px) { .value-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .value-grid.four { grid-template-columns: minmax(0, 1fr); } }

/* Photos that repeat elsewhere and only add scrolling on a phone */
@media (max-width: 640px) { .hide-phone { display: none; } }

/* A smaller photo beside its text on larger screens */
@media (min-width: 941px) {
  .split.small-photo.photo-first { grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); }
}
.split.small-photo .leaf { max-width: 340px; }

/* Phones: label and heading full width, then the photo beside the first
   paragraph, then the rest of the text full width */
@media (max-width: 640px) {
  .split.keep, .split.keep.photo-first { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 0 16px; align-items: start; }
  .split.keep .prose { display: contents; }
  .split.keep .prose > * { grid-column: 1 / -1; }
  .split.keep .prose > .eyebrow { grid-row: 1; }
  .split.keep .prose > h2 { font-size: 1.75rem; }
  .split.keep .prose > h2:first-of-type { grid-row: 2; margin: 0 0 18px; }
  .split.keep .leaf { grid-column: 1; grid-row: 3; border-radius: 44px 10px 44px 10px; margin-bottom: 1.1rem; }
  .split.keep .leaf img { aspect-ratio: 3 / 4; }
  .split.keep .prose > p:first-of-type { grid-column: 2; grid-row: 3; font-size: 0.98rem; }
}

/* Phones: bigger tap areas for the contact links, 16px form text so iPhones
   do not zoom in when a field is tapped, and slightly larger small labels */
@media (max-width: 700px) {
  .topbar a { display: inline-block; padding: 9px 4px; }
  .topbar .wrap { padding-top: 0; padding-bottom: 0; }
  .contact-grid a.big { display: inline-block; padding: 6px 0; }
  .field input, .field select, .field textarea { font-size: 16px; }
  .eyebrow, .sub-label, .ruled .sub-label, .pathway .phase-tags, .kind, .doc-list .tag { font-size: 0.8rem; }
  .quote cite { font-size: 0.84rem; }
}

@media print {
  .topbar, .nav, .nav-toggle, .cta-band, .site-footer { display: none; }
}

/* Open evening pop up */
.promo {
  position: fixed; inset: 0; margin: auto; height: fit-content;
  width: min(460px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  border: 0; border-radius: var(--radius); padding: 34px 30px 28px;
  background: var(--paper); color: var(--body);
  box-shadow: 0 24px 60px rgba(20, 30, 16, 0.35); border-top: 6px solid var(--green);
}
.promo::backdrop { background: rgba(30, 42, 25, 0.55); }
.promo[open] { animation: promo-in 0.25s ease; }
@keyframes promo-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.promo h2 { margin: 4px 0 14px; font-size: 2rem; color: var(--green-mid); }
.promo-when { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; background: var(--sage); border-radius: 10px; padding: 12px 16px; color: var(--green-deep); }
.promo-when strong { font-size: 1.1rem; }
.promo-where { font-size: 0.92rem; color: var(--muted); }
.promo .btn-row { margin-top: 20px; }
.promo-close {
  position: absolute; top: 10px; right: 12px; width: 40px; height: 40px;
  border: 0; background: transparent; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; border-radius: 50%;
}
.promo-close:hover, .promo-close:focus-visible { background: var(--stone); color: var(--ink); }
@media (max-width: 480px) { .promo { padding: 30px 20px 22px; } .promo h2 { font-size: 1.7rem; } }
