/* ============================================================
   Cricket For Change — Shared Stylesheet
   Hornsey CC × Togo Union UK
   ============================================================ */

:root {
  --claret:   #b81f49;  /* HCC claret */
  --claret-d: #8a1536;
  --green:    #006837;  /* Togo green */
  --green-d:  #004d28;
  --gold:     #FFCB00;  /* Togo gold */
  --red:      #D21034;  /* Togo red */
  --cream:    #faf8f5;
  --dark:     #1a1a2e;
  --mid:      #4a4a5a;
  --light:    #f0ede8;
  --white:    #ffffff;

  --sans: 'Segoe UI', Arial, sans-serif;
  --serif: Georgia, 'Times New Roman', serif;

  --max: 1100px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--dark);
  background: var(--white);
}

/* ── UTILITY ── */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── FLAG STRIPE ── */
.flag-stripe {
  display: flex;
  height: 8px;
  width: 100%;
}
.flag-stripe span { flex: 1; }
.fs-r { background: var(--red); }
.fs-y { background: var(--gold); }
.fs-g { background: var(--green); }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  box-shadow: 0 2px 12px rgba(0,0,0,.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand .brand-badges {
  display: flex;
  gap: 4px;
}
.brand-badge {
  display: inline-block;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  border-radius: 3px;
  text-transform: uppercase;
}
.bb-hcc  { background: var(--claret); color: var(--white); }
.bb-togo { background: var(--green);  color: var(--white); }
.nav-brand .brand-title {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .03em;
  line-height: 1.2;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: var(--white); }
.nav-links a.nav-donate {
  background: var(--claret);
  color: var(--white);
  font-weight: 700;
}
.nav-links a.nav-donate:hover { background: var(--claret-d); }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: .3s;
}

/* ── HERO ── */
.hero {
  position: relative;
  background: var(--dark);
  overflow: hidden;
  padding: 80px 24px 72px;
  text-align: center;
}
.hero-bg-stripes {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    rgba(184,31,73,.08) 0px, rgba(184,31,73,.08) 2px,
    transparent 2px, transparent 28px
  );
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  max-width: 820px;
  margin: 0 auto 20px;
  letter-spacing: -.01em;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 0 auto 36px;
}
.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .2s, transform .1s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-claret { background: var(--claret); color: var(--white); }
.btn-claret:hover { background: var(--claret-d); }
.btn-green  { background: var(--green); color: var(--white); }
.btn-green:hover  { background: var(--green-d); }
.btn-gold   { background: var(--gold); color: var(--dark); }
.btn-gold:hover   { background: #e6b700; }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.5);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ── SECTION COMMON ── */
.section { padding: 72px 0; }
.section-alt { background: var(--cream); }
.section-dark { background: var(--dark); color: var(--white); }
.section-claret { background: var(--claret); color: var(--white); }
.section-green { background: var(--green); color: var(--white); }

.section-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--claret);
  margin-bottom: 10px;
  display: block;
}
.section-dark  .section-label,
.section-claret .section-label { color: var(--gold); }
.section-green .section-label  { color: var(--gold); }

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 620px;
  margin-bottom: 48px;
}
.section-dark  .section-sub,
.section-claret .section-sub,
.section-green  .section-sub { color: rgba(255,255,255,.75); }

/* ── STAT GRID ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.stat-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}
.stat-card .stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card .stat-label {
  font-size: .9rem;
  font-weight: 500;
  line-height: 1.4;
}
.sc-claret { background: var(--claret); color: var(--white); }
.sc-green  { background: var(--green);  color: var(--white); }
.sc-gold   { background: var(--gold);   color: var(--dark); }
.sc-dark   { background: var(--dark);   color: var(--white); }
.sc-red    { background: var(--red);    color: var(--white); }
.sc-light  { background: var(--light);  color: var(--dark); border: 1px solid #ddd; }

/* ── PILLAR CARDS ── */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.pillar-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid var(--claret);
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
}
.pillar-card.pc-green { border-top-color: var(--green); }
.pillar-card.pc-gold  { border-top-color: var(--gold); }
.pillar-card.pc-red   { border-top-color: var(--red); }
.pillar-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.pillar-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
.pillar-card p {
  font-size: .92rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── NEWS CARDS ── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 40px;
}
.news-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  display: flex;
  flex-direction: column;
}
.news-card-tag {
  padding: 24px 24px 0;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tag-claret { background: var(--claret); color: var(--white); }
.tag-green  { background: var(--green);  color: var(--white); }
.tag-gold   { background: var(--gold);   color: var(--dark); }
.news-card-body { padding: 16px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; line-height: 1.3; }
.news-card p  { font-size: .9rem; color: var(--mid); line-height: 1.6; flex: 1; }
.news-card-meta {
  font-size: .8rem;
  color: #999;
  margin-top: 16px;
}
.news-card-img {
  height: 180px;
  overflow: hidden;
}
.news-card-img svg { width: 100%; height: 100%; }

/* ── DONATE BLOCK ── */
.donate-block {
  background: var(--dark);
  border-radius: 10px;
  padding: 48px 40px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}
.donate-block h2 {
  color: var(--white);
  font-size: 1.9rem;
  font-weight: 900;
  margin-bottom: 12px;
}
.donate-block p { color: rgba(255,255,255,.75); margin-bottom: 24px; font-size: 1rem; }

.qr-frame {
  display: inline-block;
  background: var(--white);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.25);
  margin-bottom: 20px;
}
.qr-frame img { display: block; width: 200px; height: 200px; }

.gift-aid-box {
  background: rgba(255,203,0,.12);
  border: 1px solid rgba(255,203,0,.4);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-top: 24px;
  font-size: .9rem;
  color: rgba(255,255,255,.85);
  text-align: left;
}
.gift-aid-box strong { color: var(--gold); }

/* ── QUOTE / PULL ── */
.pull-quote {
  border-left: 5px solid var(--claret);
  padding: 16px 24px;
  margin: 32px 0;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--mid);
  background: var(--cream);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.section-dark .pull-quote {
  border-left-color: var(--gold);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.8);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 56px 0 32px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand h3 {
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.footer-brand p { font-size: .88rem; line-height: 1.7; }
.footer-col h4 {
  color: var(--gold);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: .88rem;
  transition: color .2s;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom a { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.55); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 6px; }

/* ── PROSE ── */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.6rem; font-weight: 800; margin: 40px 0 14px; }
.prose h3 { font-size: 1.2rem; font-weight: 700; margin: 28px 0 10px; color: var(--claret); }
.prose p  { margin-bottom: 18px; line-height: 1.8; color: var(--mid); }
.prose ul { margin: 0 0 18px 22px; }
.prose ul li { margin-bottom: 8px; line-height: 1.7; color: var(--mid); }
.prose strong { color: var(--dark); }

/* ── ARTICLE HEADER ── */
.article-header {
  background: var(--dark);
  padding: 56px 24px 48px;
  text-align: left;
}
.article-header h1 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  max-width: 820px;
  margin-bottom: 16px;
}
.article-meta {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
}

/* ── IMPACT ROW ── */
.impact-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
  margin: 32px 0;
}
.impact-item {
  flex: 1;
  min-width: 160px;
  background: var(--light);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  border-top: 4px solid var(--green);
}
.impact-item .num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}
.impact-item .lbl { font-size: .85rem; color: var(--mid); line-height: 1.4; }

/* ── RESPONSIVE ── */
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .nav-links { display: none; flex-direction: column; position: absolute;
    top: 64px; left: 0; right: 0; background: var(--dark);
    padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-inner { position: relative; }
}
@media (max-width: 500px) {
  .hero { padding: 56px 16px 52px; }
  .section { padding: 52px 0; }
  .pillars, .stat-grid, .news-grid { grid-template-columns: 1fr; }
}
