/* ==========================================================================
   The Midwife Next Door Foundation : site styles
   Edit colours and type in the :root block. Everything else follows.
   ========================================================================== */

/* Self-hosted fonts (SIL Open Font Licence, see assets/fonts) */
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Spectral"; src: url("../fonts/spectral-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* Brand colours */
  --navy: #0B1F3B;
  --navy-2: #13294A;      /* raised surface on navy */
  --wine: #7A1E3A;
  --wine-dark: #5E1630;
  --white: #FFFFFF;
  --sand: #EFE7DF;        /* warm neutral background */
  --blush: #F5E9EA;       /* wine-tinted neutral */
  --ink: #1C2433;         /* body text on light */
  --muted: #535C6B;       /* secondary text, AA on white and sand */
  --line: #D9CFC6;
  --on-navy-muted: #B9C3D3;

  /* Type */
  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

  /* Scale (roughly a 1.25 ratio, fluid at the top end) */
  --t-xs: 0.8125rem;
  --t-sm: 0.9375rem;
  --t-base: 1.0625rem;
  --t-md: 1.25rem;
  --t-lg: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --t-xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --t-2xl: clamp(2.5rem, 1.6rem + 4vw, 4.75rem);

  --wrap: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --space: clamp(4rem, 8vw, 7.5rem);
  --radius: 4px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--t-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wine); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wine-dark); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--wine); outline-offset: 3px; border-radius: 2px; }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--white); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  color: var(--navy);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--t-2xl); font-weight: 400; letter-spacing: -0.02em; }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
h4 { font-size: var(--t-md); font-family: var(--sans); font-weight: 600; letter-spacing: 0; line-height: 1.3; }
p { margin: 0 0 1.1em; max-width: 68ch; }
p.lead { font-size: var(--t-md); line-height: 1.6; color: var(--ink); }
ul, ol { padding-left: 1.2em; margin: 0 0 1.2em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 600; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--space) 0; }
.section--sand { background: var(--sand); }
.section--blush { background: var(--blush); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: var(--white); }
.section--navy p { color: var(--on-navy-muted); }
.section--tight { padding: calc(var(--space) * 0.6) 0; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--navy); color: var(--white); padding: 0.75rem 1rem;
}
.skip-link:focus { top: 1rem; color: var(--white); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Section intro: heading plus short text, left aligned */
.intro { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.intro p { color: var(--muted); }
.section--navy .intro p { color: var(--on-navy-muted); }
.kicker {
  display: block; font-family: var(--serif); font-style: italic;
  font-size: var(--t-md); color: var(--wine); margin-bottom: 0.5rem;
}
.section--navy .kicker, .on-navy .kicker { color: #E7B8C6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 48px; padding: 0.75rem 1.4rem;
  font: 600 var(--t-sm)/1.2 var(--sans);
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn--wine { background: var(--wine); color: var(--white); }
.btn--wine:hover { background: var(--wine-dark); color: var(--white); }
.btn--line { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--line:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.on-navy .btn--line, .section--navy .btn--line { color: var(--white); }
.on-navy .btn--line:hover, .section--navy .btn--line:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(6px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; color: var(--navy); }
.brand img { width: 46px; height: 46px; }
.brand-name { font-family: var(--serif); font-size: 1.12rem; line-height: 1.1; font-weight: 500; }
@media (min-width: 1241px) and (max-width: 1360px) { .brand-name small { display: none !important; } }
.brand-name small { display: block; font-family: var(--sans); font-size: 0.72rem; color: var(--muted); font-weight: 500; margin-top: 0.15rem; letter-spacing: 0.01em; }
.brand:hover { color: var(--navy); }

.nav-toggle {
  display: none; align-items: center; gap: 0.5rem;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  min-height: 44px; padding: 0 0.9rem; font: 600 var(--t-sm) var(--sans); color: var(--navy); cursor: pointer;
}
.nav-toggle-bars { width: 18px; height: 12px; position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after, .nav-toggle-bars span {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--navy); transition: transform .2s, opacity .2s;
}
.nav-toggle-bars::before { top: 0; } .nav-toggle-bars span { top: 5px; } .nav-toggle-bars::after { bottom: 0; }
.nav-open .nav-toggle-bars::before { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle-bars::after { transform: translateY(-5px) rotate(-45deg); }
.nav-open .nav-toggle-bars span { opacity: 0; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.25rem; }
.site-nav li { margin: 0; }
.site-nav a {
  display: block; white-space: nowrap; padding: 0.55rem 0.65rem; font-size: var(--t-sm); font-weight: 500;
  color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--wine); }
.site-nav a[aria-current="page"] { color: var(--wine); border-bottom-color: var(--wine); }
.site-nav .nav-cta a { background: var(--wine); color: var(--white); border-radius: var(--radius); padding: 0.6rem 1rem; margin-left: 0.5rem; border: 0; }
.site-nav .nav-cta a:hover, .site-nav .nav-cta a[aria-current="page"] { background: var(--wine-dark); color: var(--white); }

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--white);
    padding: 1.5rem var(--gutter) 3rem; overflow-y: auto;
    display: none;
  }
  .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { font-family: var(--serif); font-size: 1.5rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav .nav-cta a { margin: 1.5rem 0 0; text-align: center; font-family: var(--sans); font-size: 1rem; padding: 1rem; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--navy); color: var(--white); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(86vh, 760px); }
.hero-copy { padding: clamp(3rem, 8vw, 6.5rem) var(--gutter) clamp(3rem, 6vw, 5rem); padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { color: var(--white); margin-bottom: 0.45em; max-width: 13ch; }
.hero h1 .line { display: block; }
.hero h1 .line--to { font-style: italic; color: #E7B8C6; }
.hero p { color: var(--on-navy-muted); font-size: var(--t-md); max-width: 36rem; }
.hero-tagline { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--t-sm); color: var(--on-navy-muted); max-width: 36rem; }
.hero-media { position: relative; min-height: 320px; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 40%; }
.hero-media::before { /* the bridge rule that joins copy and photograph */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--wine); z-index: 1;
}
.hero-caption {
  position: absolute; right: 0; bottom: 0; z-index: 1; max-width: 26rem;
  background: rgba(11, 31, 59, 0.88); color: var(--white); padding: 0.85rem 1.1rem; font-size: var(--t-xs); line-height: 1.5;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-left: var(--gutter); }
  .hero-media { min-height: 0; aspect-ratio: 4 / 3; order: -1; }
  .hero-media::before { width: auto; height: 6px; top: auto; right: 0; bottom: 0; }
  .hero-caption { position: static; max-width: none; }
}

/* ---------- Inner page header ---------- */
.page-head { background: var(--navy); color: var(--white); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 4.5rem); position: relative; }
.page-head::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(38%, 420px); height: 6px; background: var(--wine); }
.page-head h1 { color: var(--white); font-size: var(--t-xl); max-width: 22ch; }
.page-head p { color: var(--on-navy-muted); font-size: var(--t-md); max-width: 44rem; margin: 0; }
.crumbs { font-size: var(--t-xs); color: var(--on-navy-muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--on-navy-muted); }
.crumbs a:hover { color: var(--white); }

/* ---------- Two column split ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.split > .col-5 { grid-column: span 5; } .split > .col-6 { grid-column: span 6; } .split > .col-7 { grid-column: span 7; }
.split > .col-4 { grid-column: span 4; } .split > .col-8 { grid-column: span 8; }
.split--center { align-items: center; }
@media (max-width: 860px) { .split > [class*="col-"] { grid-column: 1 / -1; } }

figure { margin: 0; }
.photo img { width: 100%; border-radius: var(--radius); }
.photo figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: 0.6rem; line-height: 1.5; max-width: 60ch; }
.section--navy .photo figcaption { color: var(--on-navy-muted); }
.photo--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.photo--wide img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- The gap (signature) ---------- */
.gap-band { background: var(--navy); color: var(--white); padding: var(--space) 0; overflow: hidden; }
.gap-band h2 { color: var(--white); max-width: 22ch; }
.gap-band .intro p { color: var(--on-navy-muted); }
.gap {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: stretch; margin-top: 1rem; position: relative;
}
.gap-side { padding: 1.75rem 0; }
.gap-side h3 { color: var(--white); font-size: var(--t-lg); font-style: italic; font-weight: 400; margin-bottom: 0.4rem; }
.gap-side p { color: var(--on-navy-muted); font-size: var(--t-sm); margin: 0; }
.gap-side--end { text-align: right; }
.gap-side--end p { margin-left: auto; }
.gap-middle {
  position: relative; padding: 1.75rem clamp(1rem, 3vw, 2.5rem);
  border-left: 1px dashed rgba(255,255,255,.3); border-right: 1px dashed rgba(255,255,255,.3);
}
.gap-middle .barriers-title { font-size: var(--t-xs); color: var(--on-navy-muted); margin-bottom: 0.75rem; }
.barriers { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.barriers li {
  margin: 0; padding: 0.4rem 0.8rem; border: 1px solid rgba(255,255,255,.25); border-radius: 999px;
  font-size: var(--t-sm); color: var(--white);
}
.bridge {
  margin-top: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 6px solid var(--wine);
}
.bridge a {
  display: block; padding: 1.25rem 1.25rem 1.4rem 0; margin-right: 1.25rem;
  color: var(--white); text-decoration: none; border-right: 1px solid rgba(255,255,255,.14);
}
.bridge a:last-child { border-right: 0; margin-right: 0; }
.bridge .num { font-family: var(--serif); font-size: var(--t-lg); color: #E7B8C6; display: block; line-height: 1; margin-bottom: 0.5rem; }
.bridge strong { display: block; font-weight: 600; font-size: var(--t-sm); line-height: 1.35; }
.bridge a:hover strong { text-decoration: underline; text-underline-offset: 0.2em; }
.bridge-caption { font-size: var(--t-xs); color: var(--on-navy-muted); margin-top: 1rem; }
@media (max-width: 860px) {
  .gap { grid-template-columns: 1fr; }
  .gap-side--end { text-align: left; }
  .gap-side--end p { margin-left: 0; }
  .gap-middle { border: 0; border-top: 1px dashed rgba(255,255,255,.3); border-bottom: 1px dashed rgba(255,255,255,.3); padding: 1.5rem 0; }
  .bridge { grid-template-columns: 1fr 1fr; }
  .bridge a:nth-child(2) { border-right: 0; margin-right: 0; }
  .bridge a:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
}

/* ---------- Pillars (detailed list) ---------- */
.pillars { border-top: 1px solid var(--line); }
.pillar {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1rem, 3vw, 2.5rem); padding: clamp(1.75rem, 3vw, 2.75rem) 0; border-bottom: 1px solid var(--line);
}
.pillar .num { font-family: var(--serif); font-size: 3rem; line-height: 0.9; color: var(--wine); }
.pillar h3 { margin-bottom: 0.4rem; }
.pillar p { color: var(--muted); }
.pillar ul { margin: 0; padding-left: 1.1em; }
.pillar li::marker { color: var(--wine); }
@media (max-width: 860px) { .pillar { grid-template-columns: 3rem minmax(0, 1fr); } .pillar ul { grid-column: 2; } .pillar .num { font-size: 2rem; } }

/* ---------- Programme features ---------- */
.programmes { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.25rem, 3vw, 2rem); }
.prog {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none;
}
.prog:hover { color: var(--ink); border-color: var(--navy); }
.prog img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.prog-body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.prog h3 { margin-bottom: 0.35rem; }
.prog p { color: var(--muted); font-size: var(--t-sm); }
.prog .more { margin-top: auto; font-weight: 600; font-size: var(--t-sm); color: var(--wine); }
.prog:hover .more { text-decoration: underline; }
.prog--feature { grid-row: span 2; }
.prog--feature img { aspect-ratio: 4 / 3; }
.prog--text { background: var(--navy); border-color: var(--navy); }
.prog--text h3 { color: var(--white); }
.prog--text p { color: var(--on-navy-muted); }
.prog--text .more { color: #F0C9D5; }
.prog--text:hover { border-color: var(--wine); }
.status {
  display: inline-block; align-self: flex-start; font-size: var(--t-xs); font-weight: 600;
  padding: 0.2rem 0.6rem; border-radius: 999px; margin-bottom: 0.9rem;
}
.status--done { background: var(--blush); color: var(--wine-dark); }
.status--plan { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.prog--text .status--plan { color: var(--on-navy-muted); border-color: rgba(255,255,255,.3); }
@media (max-width: 860px) { .programmes { grid-template-columns: 1fr; } .prog--feature { grid-row: auto; } }

/* ---------- Experience figures ---------- */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.figure { padding: 1.75rem 1.5rem 0 0; }
.figure + .figure { padding-left: 1.5rem; border-left: 1px solid var(--line); }
.figure b { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; color: var(--navy); margin-bottom: 0.6rem; }
.figure span { font-size: var(--t-sm); color: var(--muted); display: block; max-width: 22ch; }
.figures-note {
  margin-top: 2rem; font-size: var(--t-xs); color: var(--muted); max-width: 70ch;
  padding-left: 1rem; border-left: 3px solid var(--wine);
}
@media (max-width: 860px) {
  .figures { grid-template-columns: 1fr 1fr; }
  .figure { padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); }
  .figure + .figure { padding-left: 0; border-left: 0; }
  .figure:nth-child(even) { padding-left: 1rem; border-left: 1px solid var(--line); }
}

/* ---------- Media coverage ---------- */
.press { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.press li { margin: 0; border-bottom: 1px solid var(--line); }
.press a, .press .press-item {
  display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: 1.5rem; align-items: baseline;
  padding: 1.25rem 0; text-decoration: none; color: var(--ink);
}
.press .outlet { font-family: var(--serif); font-size: var(--t-md); color: var(--navy); }
.press .headline { font-size: var(--t-base); }
.press .go { font-size: var(--t-sm); font-weight: 600; color: var(--wine); white-space: nowrap; }
.press a:hover .headline { text-decoration: underline; text-underline-offset: .2em; }
.press .pending { font-size: var(--t-xs); color: var(--muted); white-space: nowrap; }
@media (max-width: 700px) {
  .press a, .press .press-item { grid-template-columns: 1fr; gap: 0.25rem; }
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.gallery figure { grid-column: span 2; }
.gallery figure.wide { grid-column: span 4; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.gallery figure.wide img { aspect-ratio: 8 / 3; }
.gallery figcaption { font-size: var(--t-xs); color: var(--muted); margin-top: 0.4rem; }
@media (max-width: 860px) { .gallery { grid-template-columns: 1fr 1fr; } .gallery figure, .gallery figure.wide { grid-column: span 1; } .gallery figure.wide img { aspect-ratio: 4 / 3; } }
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 6px solid var(--wine); }
.value { padding: 1.5rem 1.25rem 0 0; }
.value + .value { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.value h3 { font-size: var(--t-md); margin-bottom: 0.4rem; }
.value p { font-size: var(--t-sm); color: var(--muted); margin: 0; }
@media (max-width: 960px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 1.25rem 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Statements (vision, mission) ---------- */
.statements { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem); }
.statement h2 { font-size: var(--t-md); font-family: var(--sans); font-weight: 600; color: var(--wine); margin-bottom: 0.75rem; }
.statement p.big { font-family: var(--serif); font-size: var(--t-lg); line-height: 1.3; color: var(--navy); max-width: 26ch; }
@media (max-width: 700px) { .statements { grid-template-columns: 1fr; } }

/* ---------- Quote / principle ---------- */
.principle { font-family: var(--serif); font-size: var(--t-xl); line-height: 1.2; color: var(--navy); max-width: 24ch; margin: 0; font-weight: 400; }
.section--navy .principle { color: var(--white); }

/* ---------- Timeline (real sequence) ---------- */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2rem 1.75rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 0.45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--wine); }
.timeline li.next::before { background: var(--white); border: 2px solid var(--wine); }
.timeline .when { font-size: var(--t-xs); font-weight: 600; color: var(--wine); display: block; }
.timeline h4 { margin: 0.2rem 0 0.35rem; }
.timeline p { color: var(--muted); font-size: var(--t-sm); margin: 0; }

/* ---------- Programme detail ---------- */
.prog-detail + .prog-detail { border-top: 1px solid var(--line); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin: 1.5rem 0; }
.facts h4 { font-size: var(--t-sm); color: var(--wine); margin-bottom: 0.4rem; }
.facts ul { font-size: var(--t-sm); margin: 0; }
@media (max-width: 600px) { .facts { grid-template-columns: 1fr; } }
.kit-list { columns: 2; column-gap: 2rem; font-size: var(--t-sm); }
@media (max-width: 500px) { .kit-list { columns: 1; } }
.callout { background: var(--blush); border-left: 4px solid var(--wine); padding: 1.25rem 1.5rem; border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--t-sm); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Ways to get involved ---------- */
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 3vw, 2rem); }
.way { padding-top: 1.25rem; border-top: 2px solid var(--navy); }
.way h3 { font-size: var(--t-lg); }
.way p { color: var(--muted); font-size: var(--t-sm); }
.way ul { font-size: var(--t-sm); color: var(--ink); }
@media (max-width: 860px) { .ways { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; max-width: 40rem; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; font-size: var(--t-sm); margin-bottom: 0.35rem; color: var(--navy); }
.field .hint { display: block; font-weight: 400; color: var(--muted); font-size: var(--t-xs); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 1px solid #A9A29B; border-radius: var(--radius);
  padding: 0.75rem 0.85rem; min-height: 48px;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(122, 30, 58, .35); border-color: var(--wine); }
.field-error { color: #9B1C2E; font-size: var(--t-xs); margin-top: 0.3rem; display: none; }
.field.invalid .field-error { display: block; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #9B1C2E; }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--t-sm); }
.check input { width: 20px; height: 20px; margin-top: 0.2rem; accent-color: var(--wine); flex: none; }
.hp { position: absolute; left: -9999px; }
.notice { font-size: var(--t-xs); background: var(--sand); padding: 0.9rem 1rem; border-radius: var(--radius); color: var(--ink); }

/* ---------- Contact list ---------- */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); margin: 0; }
.contact-list .label { display: block; font-size: var(--t-xs); color: var(--muted); }
.contact-list .value-text { font-size: var(--t-md); font-family: var(--serif); color: var(--navy); }
.placeholder { background: #FFF4D6; color: #6B4A00; padding: 0 0.3em; border-radius: 3px; font-family: var(--sans); font-size: 0.85em; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--wine); color: var(--white); padding: clamp(3rem, 6vw, 5rem) 0; }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { color: #F3D9E1; }
.cta-band .btn--light { background: var(--white); color: var(--wine); }
.cta-band .btn--light:hover { background: var(--navy); color: var(--white); }
.cta-band .btn--line { color: var(--white); }
.cta-band .btn--line:hover { background: var(--white); color: var(--wine); border-color: var(--white); }
.cta-band :focus-visible { outline-color: var(--white); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: var(--t-sm); }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand { display: flex; gap: 0.9rem; align-items: flex-start; }
.footer-brand img { width: 56px; height: 56px; flex: none; }
.footer-brand .name { font-family: var(--serif); color: var(--white); font-size: 1.25rem; line-height: 1.2; margin: 0 0 0.5rem; }
.footer-tagline { color: var(--white); font-family: var(--serif); font-style: italic; margin-top: 1rem; max-width: 30ch; }
.site-footer h2 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; color: var(--white); margin-bottom: 0.9rem; letter-spacing: 0; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: var(--t-xs); }
.related { border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); padding: 0.75rem 1rem; font-size: var(--t-xs); max-width: 32rem; }
.related p { margin: 0; }
.site-footer .placeholder { background: rgba(255, 244, 214, .15); color: #F5DFA8; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.small { font-size: var(--t-sm); }
.stack > * + * { margin-top: 1.5rem; }

/* One orchestrated load moment on the home hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line { opacity: 0; transform: translateY(14px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero h1 .line--to { animation-delay: .18s; }
  .hero-media::before { transform: scaleY(0); transform-origin: top; animation: draw .9s .3s cubic-bezier(.2,.7,.2,1) forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes draw { to { transform: none; } }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { color: #000; }
}
