/* Fonts stored with the site (Inter for text, Oswald for headings) - SIL Open Font Licence */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Oswald'; font-style: normal; font-weight: 500 600; font-display: swap; src: url(../fonts/oswald-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Higginshaw Community Project — main stylesheet
   Change the colours below to match the club/community colours.
   ========================================================================== */
:root {
  --brand: #14213d;        /* main dark colour: header, footer, headings */
  --brand-2: #1f3a6e;      /* lighter shade of brand */
  --accent: #f2a900;       /* buttons, highlights */
  --accent-ink: #14213d;   /* text on accent buttons */
  --bg: #ffffff;
  --bg-alt: #f4f5f7;
  --ink: #1d1f23;
  --muted: #5b6270;
  --line: #e2e5ea;
  --radius: 10px;
  --max: 1140px;
  --font-head: "Oswald", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
/* Let long web addresses and emails wrap on small phones instead of pushing the page sideways */
p, li, a { overflow-wrap: anywhere; }
/* Grid columns may shrink below their longest word (stops sideways scrolling on phones) */
.split > *, .activity > *, .footer-grid > * { min-width: 0; }
a { color: var(--brand-2); }
a:hover { color: var(--accent); }
h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--brand);
  line-height: 1.2;
  letter-spacing: .01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); text-transform: uppercase; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--brand); color: #fff; }
.section.dark h2, .section.dark h3 { color: #fff; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Top bar ---------- */
.topbar { background: var(--brand); color: #fff; font-size: .9rem; }
.topbar .container { display: flex; gap: 20px; justify-content: flex-end; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--accent); }

/* ---------- Header / nav ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--brand); }
.brand img { width: 56px; height: 56px; object-fit: contain; }
.brand span { font-family: var(--font-head); font-size: 1.25rem; text-transform: uppercase; line-height: 1.1; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: block; padding: 10px 14px; border-radius: 6px; white-space: nowrap; overflow-wrap: normal;
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--bg-alt); color: var(--brand); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--brand); }
.header-social { display: flex; gap: 8px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700;
  text-decoration: none; border: 0; cursor: pointer; font-size: 1rem;
}
.btn:hover { filter: brightness(1.08); color: var(--accent-ink); }
.btn.outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--brand); overflow: hidden; }
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.hero .container { position: relative; padding-top: 96px; padding-bottom: 96px; }
.hero h1 { color: #fff; }
.hero p { max-width: 640px; font-size: 1.1rem; }

.page-hero { background: var(--brand); color: #fff; padding: 56px 0; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .crest { width: 72px; margin-bottom: 12px; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 800px) { .split, .split.reverse { grid-template-columns: 1fr; gap: 24px; } .split.reverse > :first-child { order: 0; } }
.rounded { border-radius: var(--radius); }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card .card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card h3 a { color: var(--brand); text-decoration: none; }
.card .meta { color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.card .more { margin-top: auto; font-weight: 700; }

/* ---------- Activities ---------- */
.activity { display: grid; grid-template-columns: 360px 1fr; gap: 32px; align-items: start; padding: 32px 0; border-bottom: 1px solid var(--line); }
.activity:last-child { border-bottom: 0; }
.activity img { border-radius: var(--radius); aspect-ratio: 1.09; object-fit: cover; width: 100%; }
.activity .when { background: var(--bg-alt); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: 4px; }
@media (max-width: 800px) { .activity { grid-template-columns: 1fr; } }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 24px 0; }
.gallery a { display: block; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; transition: transform .2s; }
.gallery img:hover { transform: scale(1.02); }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 24px; }
.article img { border-radius: var(--radius); margin: 24px 0; }
.article h2 { font-size: 1.5rem; margin-top: 1.4em; }
.press img { max-width: min(520px, 100%); margin-left: auto; margin-right: auto; }

/* ---------- Video slot ---------- */
.video { aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; color: #fff; text-align: center; }
.video > p { padding: 16px; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; display: block; object-fit: contain; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand); color: #dfe4ee; padding: 56px 0 24px; font-size: .95rem; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.2rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 20px; font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.social { display: flex; gap: 10px; list-style: none; padding: 0; margin: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); }
.social a:hover { background: var(--accent); }
.social svg { width: 20px; height: 20px; fill: currentColor; }
.header-social a { background: var(--bg-alt); color: var(--brand); }

/* ---------- Forms ---------- */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { form .row { grid-template-columns: 1fr; } }
input, textarea {
  width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08); color: #fff; font: inherit; margin-bottom: 12px;
}
input::placeholder, textarea::placeholder { color: #b9c1d1; }
textarea { min-height: 120px; resize: vertical; }
.newsletter { display: flex; gap: 8px; }
.newsletter input { margin: 0; }
.form-note { font-size: .82rem; color: #b9c1d1; margin: 8px 0 0; }
.map-link { color: inherit; text-decoration: none; }
.map-link:hover { color: var(--accent); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button:disabled { opacity: .6; cursor: wait; }
.form-status { margin: 12px 0 0; padding: 12px 14px; border-radius: 6px; font-weight: 600; color: #fff; }
.form-status:empty { display: none; }
.form-status.success { background: rgba(242,169,0,.15); border: 1px solid var(--accent); }
.form-status.error { background: rgba(255,110,110,.15); border: 1px solid #ff8a8a; }
.form-status a { color: var(--accent); }
