/* -----------------------------------------------------------
   The Wafflemeister Foundation — stylesheet
   Adapted from the Wafflemeister brand kit (v1.0):
   roundel mark, colour palette and Bebas Neue headline type,
   toned down and reworded for a registered charity audience.
   ----------------------------------------------------------- */

:root {
  --wm-cream: #ebe6d4;
  --wm-cream-light: #fff6e7;
  --wm-chocolate: #2d0a09;
  --wm-red: #cc0839;
  --wm-red-dark: #a30730;
  --wm-caramel: #bd7b37;
  --wm-text: #2d0a09;
  --wm-text-muted: #5b4a45;
  --wm-border: #ddd3bd;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", "Tenorite", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--wm-text);
  background: var(--wm-cream-light);
  line-height: 1.6;
  font-size: 17px;
}

h1, h2, h3, .display {
  font-family: "Bebas Neue", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--wm-chocolate);
  font-weight: 400;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.1rem; margin-top: 0; }
h3 { font-size: 1.4rem; }

p { margin: 0 0 1rem; }

a { color: var(--wm-red); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
header.site-header {
  background: var(--wm-cream);
  border-bottom: 1px solid var(--wm-border);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 48px;
  width: auto;
  display: block;
}

.brand-text {
  font-family: "Bebas Neue", sans-serif;
  color: var(--wm-chocolate);
  font-size: 1.1rem;
  line-height: 1.1;
}
.brand-text small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--wm-text-muted);
  text-transform: uppercase;
}

nav.main-nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

nav.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  color: var(--wm-chocolate);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 4px;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  background: var(--wm-red);
  color: #fff;
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--wm-cream) 0%, var(--wm-cream-light) 100%);
  padding: 64px 0 56px;
  border-bottom: 1px solid var(--wm-border);
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--wm-red);
  margin-bottom: 10px;
}

.hero h1 { max-width: 720px; }

.hero .lead {
  max-width: 640px;
  font-size: 1.1rem;
  color: var(--wm-text-muted);
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--wm-red);
}
.btn-primary {
  background: var(--wm-red);
  color: #fff;
}
.btn-primary:hover { background: var(--wm-red-dark); text-decoration: none; }
.btn-secondary {
  background: transparent;
  color: var(--wm-red);
}
.btn-secondary:hover { background: var(--wm-red); color: #fff; text-decoration: none; }

/* Sections */
section {
  padding: 56px 0;
}
section.alt {
  background: var(--wm-cream);
}
section.dark {
  background: var(--wm-chocolate);
  color: var(--wm-cream-light);
}
section.dark h1, section.dark h2, section.dark h3 { color: var(--wm-cream-light); }
section.dark a { color: #f2c9d4; }

.section-intro {
  max-width: 720px;
  margin-bottom: 32px;
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: #fff;
  border: 1px solid var(--wm-border);
  border-top: 4px solid var(--wm-red);
  border-radius: 6px;
  padding: 24px;
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* Icon badges — simple original line icons, brand-coloured, no external assets */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--wm-cream);
  margin-bottom: 10px;
}
.icon-badge svg {
  width: 24px;
  height: 24px;
  stroke: var(--wm-red);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
section.dark .icon-badge { background: rgba(235,230,212,0.12); }
section.dark .icon-badge svg { stroke: var(--wm-cream); }
.hero .icon-badge { background: rgba(204,8,57,0.08); }

/* Photo gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
section.dark .gallery img { box-shadow: 0 0 0 1px rgba(235,230,212,0.15); }

/* Responsive video embed */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  margin-top: 20px;
  border-radius: 6px;
  overflow: hidden;
  background: #000;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Stat strip */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: center;
}
.stat-strip .stat-number {
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.4rem;
  color: var(--wm-red);
  display: block;
}
.stat-strip .stat-label {
  font-size: 0.85rem;
  color: var(--wm-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Definition-style list */
.info-list dt {
  font-weight: 700;
  color: var(--wm-chocolate);
  margin-top: 18px;
}
.info-list dd {
  margin: 4px 0 0;
  color: var(--wm-text-muted);
}

/* Note / callout box */
.callout {
  background: var(--wm-cream);
  border-left: 4px solid var(--wm-red);
  padding: 18px 20px;
  border-radius: 4px;
  margin: 24px 0;
}
.callout p:last-child { margin-bottom: 0; }

/* Placeholder note for content still to be added */
.tbc {
  font-style: italic;
  color: var(--wm-text-muted);
  border: 1px dashed var(--wm-border);
  padding: 14px 16px;
  border-radius: 4px;
  background: #fff;
}

/* Contact details */
.contact-block dt { font-weight: 700; }
.contact-block dd { margin: 0 0 14px; }

/* Footer */
footer.site-footer {
  background: var(--wm-chocolate);
  color: var(--wm-cream);
  padding: 40px 0 28px;
  font-size: 0.88rem;
}
footer.site-footer a { color: var(--wm-cream); text-decoration: underline; }
footer.site-footer .footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
footer.site-footer .legal {
  border-top: 1px solid rgba(235,230,212,0.2);
  padding-top: 18px;
  color: #cbb9b6;
  font-size: 0.82rem;
}
footer.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
footer.site-footer nav li { margin-bottom: 6px; }

@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  h1 { font-size: 2.1rem; }
  footer.site-footer .footer-grid { grid-template-columns: 1fr; }
}
