:root{
  --bg: #ffffff;
  --card: #ffffff;
  --text: #000000;
  --muted: #444444;
  --brand: #c62828;
  --brand2: #1565c0;
  --border: rgba(0,0,0,.12);
  --shadow: 0 8px 18px rgba(0,0,0,.08);
}

/* Reset / base */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
  line-height:1.6;
}

a{ color:inherit; }

.container{
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Accessibility */
.skip-link{
  position:absolute;
  left:-999px;
  top:0;
}
.skip-link:focus{
  left:12px;
  top:12px;
  background:#000;
  color:#fff;
  padding:8px 10px;
  border-radius:6px;
}

/* Header */
.site-header{
  position:sticky;
  top:0;
  z-index:50;
  background:#ffffff;
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:14px 0;
}

.brand-logo{
  height:42px;
  display:block;
}

/* Navigation */
.site-nav{
  display:flex;
  gap:14px;
  align-items:center;
}

.site-nav a{
  text-decoration:none;
  padding:8px 12px;
  border-radius:8px;
  color:#000;
  font-weight:500;
}

.site-nav a[aria-current="page"]{
  background:rgba(0,0,0,.06);
}

.site-nav a:hover{
  background:rgba(0,0,0,.05);
}

/* Mobile nav button */
.nav-toggle{
  display:none;
  background:#fff;
  border:1px solid var(--border);
  border-radius:10px;
  width:44px;
  height:44px;
}

.nav-toggle-bars{
  width:18px;
  height:2px;
  background:#000;
  margin:0 auto;
  position:relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after{
  content:"";
  position:absolute;
  width:18px;
  height:2px;
  background:#000;
  left:0;
}

.nav-toggle-bars::before{ top:-6px; }
.nav-toggle-bars::after{ top:6px; }

/* Hero */
.hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,.92) 0%,
      rgba(255,255,255,.55) 55%,
      rgba(255,255,255,.92) 100%
    ),
    url("../img/cover.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-content{
  position:relative;
  padding:64px 0;
}

.hero h1{
  font-size: clamp(2rem, 4vw, 3rem);
  line-height:1.1;
  margin:0 0 14px;
}

/* =========================
   Donate page hero image
   ========================= */

.page-donate .hero-media{
  background-image:
    linear-gradient(
      90deg,
      rgba(255,255,255,.95) 0%,
      rgba(255,255,255,.65) 55%,
      rgba(255,255,255,.95) 100%
    ),
    url("../img/donate-hero.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================
   Donate page – smaller hero
   ========================= */

.page-donate .hero {
  min-height: 300px;
}

/* =========================
   Donate page – tighten spacing
   ========================= */

/* Reduce space below hero */
.page-donate .hero {
  margin-bottom: 0;
}

/* Pull Make a Donation section closer */
.page-donate .section.section-alt {
  padding-top: 32px;   /* was 56px */
}

/* Reduce hero inner padding */
.page-donate .hero-content {
  padding-bottom: 32px;
}

.lead{
  max-width:60ch;
  color:var(--muted);
  margin-bottom:18px;
}

/* Sections */
.section{
  padding:56px 0;
}

.section-alt{
  background:#f6f6f6;
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}

/* Layout helpers */
.grid-2{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:24px;
}

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:18px;
}

/* Sponsor logos */
.sponsor-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 12px;
}

.sponsor-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Cards */
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px;
  box-shadow:var(--shadow);
}

.card-link{
  text-decoration:none;
  display:block;
}

.card-link:hover{
  outline:2px solid rgba(0,0,0,.08);
}

/* Buttons */
.button{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 16px;
  border-radius:10px;
  background:var(--brand);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  border:1px solid var(--brand);
}

.button:hover{
  filter:brightness(1.05);
}

.button-secondary{
  background:#fff;
  color:#000;
  border:1px solid var(--border);
}

.button-link-inline{
  color:var(--brand2);
  text-decoration:none;
  font-weight:500;
}

/* Footer */
.site-footer{
  padding:28px 0;
  border-top:1px solid var(--border);
}

.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  color:var(--muted);
}

.footer-links{
  display:flex;
  gap:14px;
}

.footer-links a{
  text-decoration:none;
  color:var(--muted);
}

.footer-links a:hover{
  color:#000;
}

/* Screen reader only */
.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* =========================
   DONATE PAGE FIXES
   (Desktop + Mobile)
   ========================= */

/* Make donate cards two columns on desktop */
.page-donate .donate-cards{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

/* Stack donate cards on smaller screens */
@media (max-width: 700px){
  .page-donate .donate-cards{
    grid-template-columns: 1fr;
  }
}

/* Make BOTH donate buttons red (override secondary on donate page only) */
.page-donate .donate-cards .button.button-secondary{
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* Optional: align buttons nicely at bottom */
.page-donate .donate-cards .card{
  display:flex;
  flex-direction:column;
}

.page-donate .donate-cards .card .button{
  margin-top:auto;
  width: fit-content;
}

/* Mobile (general) */
@media (max-width: 820px){
  .grid-2{
    grid-template-columns:1fr;
  }

  .cards{
    grid-template-columns:1fr;
  }

  .nav-toggle{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .site-nav{
    display:none;
    position:absolute;
    right:4vw;
    top:70px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:10px;
    flex-direction:column;
    min-width:220px;
  }

  .site-nav.is-open{
    display:flex;
  }
}
