/* ============================================================
   CAMDEV — Shared stylesheet
   Brand: CAMDEV Brand Guidelines 2025-08-02
   Colours:  Merlot #981B1E (primary) · Black Pearl #0A2240
             Tarawera #0A314D · Alizarin Crimson #D01319
             Smalt #002D74 · Matisse #205493
   Fonts:    Playfair Display (headings) · Inter (body)
   NOTE FOR FUTURE EDITS: every page links to this one file.
   Change a colour or font here and it changes site-wide.
   ============================================================ */

:root {
  --merlot: #981B1E;
  --crimson: #D01319;
  --navy: #0A2240;
  --tarawera: #0A314D;
  --matisse: #205493;
  --smalt: #002D74;
  --ink: #22303F;          /* body text */
  --ink-soft: #4B5A6A;     /* secondary text */
  --paper: #FFFFFF;
  --paper-warm: #F7F5F2;   /* alternating section background */
  --line: #E5E1DB;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(10, 34, 64, 0.08);
  --shadow-lift: 0 12px 32px rgba(10, 34, 64, 0.14);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
h4 { font-family: 'Inter', sans-serif; font-weight: 600; color: var(--navy); font-size: 1.05rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; }
a  { color: var(--matisse); }

.kicker {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--merlot);
  margin-bottom: 0.75rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46em; }

/* ---------- Layout helpers ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-warm { background: var(--paper-warm); }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--tarawera) 100%); color: #EAF0F7; }
.section-navy h2, .section-navy h3 { color: #FFFFFF; }
.section-navy p { color: #C9D6E5; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- Skip link (accessibility) ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-bar {
  max-width: var(--max); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { text-decoration: none; line-height: 1.15; }
.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700; font-size: 1.7rem; letter-spacing: 0.04em;
  color: var(--merlot); display: block;
}
.brand-sub {
  font-size: 0.62rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--navy); display: block;
}
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--navy); font-weight: 500; font-size: 0.98rem;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--merlot); }
.nav-links a[aria-current="page"] { color: var(--merlot); border-bottom-color: var(--merlot); }
.nav-cta {
  background: var(--merlot); color: #fff !important; padding: 10px 20px !important;
  border-radius: 999px; border-bottom: none !important; font-weight: 600;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--crimson); color: #fff !important; }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: 0.2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: inline-block; padding: 12px 0; }
  .nav-cta { margin-top: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(152, 27, 30, 0.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--tarawera) 55%, var(--smalt) 100%);
  color: #fff; padding: 96px 0 88px;
}
.hero h1 { color: #fff; max-width: 17em; }
.hero .lede { color: #C9D6E5; margin-top: 1.2rem; }
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: #F3C8C9; border: 1px solid rgba(243, 200, 201, 0.4);
  border-radius: 999px; padding: 6px 16px; margin-bottom: 1.5rem;
}
.hero-actions { margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 14px 30px; border-radius: 999px; transition: all 0.2s;
}
.btn-primary { background: var(--merlot); color: #fff; }
.btn-primary:hover { background: var(--crimson); transform: translateY(-1px); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--tarawera); transform: translateY(-1px); }

/* ---------- Stats band ---------- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 24px; margin-top: 8px;
}
.stat { text-align: center; padding: 12px; }
.stat-number {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: 2.4rem; color: var(--merlot); display: block;
}
.section-navy .stat-number { color: #F3C8C9; }
.stat-label { font-size: 0.95rem; color: var(--ink-soft); }
.section-navy .stat-label { color: #C9D6E5; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 28px; margin-top: 2.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 28px; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.card-icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: rgba(152, 27, 30, 0.09); margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--merlot); }

/* Programme feature cards */
.programme-card { display: flex; flex-direction: column; }
.programme-tag {
  align-self: flex-start; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--merlot); background: rgba(152, 27, 30, 0.09);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.programme-card ul { margin: 0 0 1.4rem 1.2rem; color: var(--ink-soft); }
.programme-card li { margin-bottom: 0.45rem; }
.programme-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Feature / checklist lists ---------- */
.checklist { list-style: none; margin: 1.2rem 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: 0.7rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em; width: 18px; height: 18px;
  border-radius: 50%; background: var(--merlot);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') center/contain no-repeat;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3"><path d="M20 6L9 17l-5-5"/></svg>') center/contain no-repeat;
}

/* ---------- Split (two-column text/media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Timeline (About page) ---------- */
.timeline { list-style: none; margin: 2.5rem 0 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: var(--line);
}
.timeline li { position: relative; padding: 0 0 2.2rem 3rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 4px solid var(--merlot);
}
.timeline-year {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 700;
  font-size: 1.2rem; color: var(--merlot); display: block; margin-bottom: 0.2rem;
}

/* ---------- Steps (numbered journey) ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 4rem; margin-bottom: 2rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2rem; }
details {
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  padding: 20px 24px; margin-bottom: 14px;
}
details summary {
  cursor: pointer; font-weight: 600; color: var(--navy); font-size: 1.05rem;
  list-style: none; position: relative; padding-right: 2rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--merlot); font-weight: 400;
}
details[open] summary::after { content: "\2212"; }
details p { margin: 0.9rem 0 0; color: var(--ink-soft); }

/* ---------- Quote / heritage strip ---------- */
.quote-strip {
  border-left: 4px solid var(--merlot); padding: 8px 0 8px 28px; margin: 2rem 0;
  font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; color: var(--navy);
  line-height: 1.5;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .btn { margin-top: 1.4rem; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-top: 2.5rem; }
.contact-card a { font-weight: 600; color: var(--merlot); text-decoration: none; font-size: 1.1rem; }
.contact-card a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D6E5; padding: 56px 0 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand .brand-sub { color: #8FA3BC; }
.footer-tagline { margin-top: 12px; font-style: italic; color: #8FA3BC; }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #C9D6E5; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 24px;
  font-size: 0.82rem; color: #8FA3BC; display: flex; flex-wrap: wrap; gap: 8px 24px;
  justify-content: space-between;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--tarawera) 100%);
  color: #fff; padding: 72px 0 60px;
}
.page-hero h1 { color: #fff; }
.page-hero .lede { color: #C9D6E5; margin-top: 1rem; }
.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.2rem; color: #8FA3BC; }
.breadcrumbs a { color: #C9D6E5; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Utility ---------- */
.mt-2 { margin-top: 2rem; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
