/* Dauntsey Vale Link Scheme — brand colours kept from the original site */
:root {
  --navy: #2a377a;
  --navy-dark: #1e2858;
  --coral: #c65555;       /* original #da6b6b darkened slightly so white text passes contrast */
  --coral-soft: #da6b6b;
  --gold: #ebc267;
  --teal: #88b6b0;
  --tint: #f1f6f5;        /* teal-tinted neutral */
  --ink: #1f2433;
  --muted: #4a5163;
  --line: #d6e3e1;
  --white: #ffffff;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
  --radius: 10px;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;   /* 18px: larger base for an older audience */
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--coral); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; color: var(--navy); margin: 0 0 .6em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow > * { max-width: 760px; }
.prose { max-width: 62ch; min-width: 0; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--white); padding: .6em 1em; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; font: 600 1rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: #ad4545; color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e2b14a; color: var(--ink); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); color: var(--white); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 4px solid var(--teal); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .6rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--navy); font-weight: 600; line-height: 1.15; font-size: 1rem; }
.brand img { width: 56px; height: 56px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav ul { display: flex; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { text-decoration: none; font-size: .98rem; font-weight: 500; color: var(--ink); }
.site-nav ul a:hover { color: var(--coral); }
.header-call { min-height: 44px; font-size: .95rem; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; min-height: 44px; padding: .5em 1.1em; border: 2px solid var(--navy); border-radius: 999px; background: none; color: var(--navy); font: 600 1rem var(--font); cursor: pointer; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); flex-direction: column; align-items: stretch; padding: 1rem 20px 1.4rem; border-bottom: 4px solid var(--teal); box-shadow: 0 10px 20px rgba(0,0,0,.08); }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: .75rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
}

/* Hero */
.hero { position: relative; color: var(--white); display: grid; min-height: clamp(420px, 62vh, 640px); }
.hero-img { grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero::after { content: ""; grid-area: 1 / 1; background: linear-gradient(90deg, rgba(30,40,88,.88) 0%, rgba(30,40,88,.6) 50%, rgba(30,40,88,.1) 100%); }
.hero-content { grid-area: 1 / 1; z-index: 1; align-self: center; width: 100%; padding-block: 3rem; }
.hero h1 { color: var(--white); max-width: 14ch; }
.hero .lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 40ch; margin-bottom: 1.6rem; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-tint { background: var(--tint); }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); }
.align-center { align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }

/* Services */
.list-title { margin-bottom: 1rem; }
.services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.5rem; }
.services li { padding: .55rem 0 .55rem 1.9rem; border-bottom: 1px solid var(--line); position: relative; font-size: 1.02rem; }
.services li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .85rem; height: .45rem; border-left: 3px solid var(--teal); border-bottom: 3px solid var(--teal); transform: rotate(-45deg); }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } }

.call-card { display: grid; gap: .2rem; margin-top: 1.8rem; padding: 1.3rem 1.5rem; border-left: 6px solid var(--gold); background: var(--tint); border-radius: 0 var(--radius) var(--radius) 0; }
.call-label { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.call-number { font-size: clamp(1.6rem, 3.5vw, 2.1rem); font-weight: 700; color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums; }
.call-note { font-size: .95rem; color: var(--muted); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(42,55,122,.08); }
.step img { aspect-ratio: 928 / 484; object-fit: cover; width: 100%; }
.step-body { padding: 1.2rem 1.3rem 1.4rem; }
.step-num { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--coral); margin-bottom: .3rem; }
.step h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.step p { font-size: 1rem; margin: 0; color: var(--muted); }
@media (max-width: 1020px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.about-img { border-radius: var(--radius); max-height: 520px; width: auto; justify-self: center; }

/* Volunteer band */
.band-navy { background: var(--navy); color: var(--white); }
.band-navy h2 { color: var(--white); }
.band-navy p { font-size: 1.15rem; margin-bottom: 1.6rem; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font-size: 1.6rem; font-weight: 400; color: var(--coral); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; margin: 0; color: var(--muted); }

/* Form */
.contact-form { background: var(--white); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: var(--radius); box-shadow: 0 2px 14px rgba(42,55,122,.1); display: grid; gap: 1rem; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 500; font-size: 1rem; }
.field input, .field textarea { font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1.5px solid #b9c7c5; border-radius: 8px; background: var(--white); color: var(--ink); width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 2px solid var(--gold); outline-offset: 1px; }
.hint { font-size: .92rem; color: var(--muted); margin: -.4rem 0 0; }
.hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 500; }
.form-status.error { color: #a33a3a; }
.form-status.ok { color: #2d6b4f; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #dfe4f5; font-size: 1rem; }
.site-footer a { color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-block: 3rem 2rem; }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-brand img { width: 80px; height: 80px; }
.footer-brand p { margin: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, auto); gap: .4rem 2.5rem; }
.site-footer ul a { text-decoration: none; }
.site-footer ul a:hover { text-decoration: underline; color: var(--gold); }
.footer-base { border-top: 1px solid rgba(255,255,255,.15); padding-block: 1.2rem; font-size: .9rem; }
.footer-base p { margin: 0; }
