/* Brand colours sampled from the Gratia logo.
   Purple is also the international epilepsy awareness colour. */
:root {
  --brand: #5b3284;
  --brand-dark: #3d1f5c;
  --brand-light: #f3eef9;
  --teal: #16705a;
  --teal-light: #e6f3ef;
  --navy: #173f7a;
  --accent: #c4893d;
  --accent-light: #fbf3e8;
  --text: #1f1d24;
  --muted: #5c5866;
  --bg: #ffffff;
  --bg-alt: #faf8fc;
  --border: #e6e1ec;
  --radius: 12px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Merriweather", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.25; color: var(--brand-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; font-family: var(--font); font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--brand-dark); }
.brand img { height: 60px; width: auto; }
.site-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 14px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; }
.site-nav a:hover { background: var(--brand-light); color: var(--brand-dark); }
.site-nav a[aria-current="page"] { color: var(--brand); background: var(--brand-light); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font: inherit; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; padding: 8px 20px 16px; }
}

/* Buttons */
.btn { font: inherit; font-weight: 600; cursor: pointer; display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 2px solid transparent; transition: background .15s, color .15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #a9712b; color: #fff; }
.btn-outline { border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--brand-dark); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--navy) 100%); color: #fff; padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px; border-radius: 50%; border: 40px solid rgba(196,137,61,.25); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { font-size: 1.2rem; max-width: 56ch; opacity: .92; margin-bottom: 1.6em; }
.page-hero { background: var(--brand-light); padding: 64px 0 48px; }
.page-hero p { color: var(--muted); max-width: 60ch; font-size: 1.15rem; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: .5em; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p:last-child { margin-bottom: 0; }
.card-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-light); color: var(--brand); display: grid; place-items: center; font-weight: 700; margin-bottom: 16px; }

.list-check { list-style: none; padding: 0; margin: 0; }
.list-check li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand); box-shadow: inset 0 0 0 4px var(--brand-light); }

.callout { background: var(--brand); color: #fff; border-radius: var(--radius); padding: 48px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.callout h2 { color: #fff; margin-bottom: .3em; }
.callout p { margin: 0; opacity: .9; }

.first-aid { border-left: 4px solid var(--accent); }

/* Contact */
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: 14px; }
.contact-list strong { display: block; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input, .form textarea, .form select { width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 18px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--brand); border-color: var(--brand); }
.map { border: 0; width: 100%; min-height: 320px; border-radius: var(--radius); }

.todo { background: #fff4d6; outline: 1px dashed #d4a017; padding: 0 4px; }

/* Footer */
.site-footer { background: #1d1328; color: #d9d3e2; padding-top: 56px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand, .footer-head { color: #fff; font-weight: 700; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 6px; }
.footer-bottom { border-top: 1px solid #3a2d4a; margin-top: 40px; padding: 20px; font-size: .85rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .callout { padding: 32px; } }

/* Colour variants for cards, echoing the logo */
.card.teal .card-icon { background: var(--teal-light); color: var(--teal); }
.card.navy .card-icon { background: #e8eef8; color: var(--navy); }
.card.gold .card-icon { background: var(--accent-light); color: #8a5a1c; }
.card-icon svg { width: 26px; height: 26px; }
.stat { font-family: var(--font-head); font-size: 2.2rem; color: var(--brand); margin: 0; }
.footer-logo { background: #fff; border-radius: 10px; padding: 10px 14px; display: inline-block; margin-bottom: 14px; }
.footer-logo img { height: 56px; width: auto; }
.role { font-size: .85rem; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Committee photos */
.avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; margin-bottom: 14px; border: 3px solid var(--brand-light); }

/* Floating WhatsApp button */
.wa-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); z-index: 60; }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 30px; height: 30px; }

/* Value proposition list */
.proposition { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; gap: 16px; max-width: 820px; }
.proposition li { counter-increment: p; position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 22px 76px; font-size: 1.1rem; }
.proposition li::before { content: counter(p); position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-family: var(--font-head); }
