/* ===========================
   Radical Scholar – Global CSS
   =========================== */

/* ---------- Root & Palette ---------- */
:root{
  --burgundy:#611B1D;               /* RS primary */
  --blue:#1E3A5F;                   /* Sibling anchor */
  --blue-deep:#0F1E2D;              /* Ink / deep tone */
  --gold:#D4AF37;                   /* Accent (hover, focus) */
  --off:#F9F7F2;                    /* Alt background */
  --ink:#0F1E2D;                    /* Heading/body ink */
  --muted:#425466;                  /* Secondary text */
  --border:#E9E9E9;                 /* Hairlines */
  --white:#FFFFFF;

  --radius:14px;
  --shadow:0 6px 24px rgba(0,0,0,.08);

  /* Type scale */
  --fs-hero: clamp(2rem, 4vw + 1rem, 3.2rem);
  --fs-h1: clamp(2rem, 2.5vw + 1rem, 3.4rem);
  --fs-h2: clamp(1.5rem, 1.6vw + .9rem, 2.2rem);
  --fs-h3: clamp(1.1rem, .9vw + .9rem, 1.4rem);

  --maxw:1120px;
}

/* ---------- Base ---------- */
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,
               "Apple Color Emoji","Segoe UI Emoji";
  line-height:1.6;
  color:var(--ink);
  background:var(--off);
}
img{max-width:100%;height:auto;display:block}
a{color:var(--blue);text-decoration:none}
a:hover{text-decoration:underline}
.container{max-width:var(--maxw);margin:0 auto;padding:0 1.25rem}

/* ---------- Typography ---------- */
h1,h2,h3,h4{
  font-family:"Playfair Display",Georgia,serif;
  color:var(--ink);
  margin:0 0 .5rem;
}
h1{font-size:var(--fs-h1)}
h2{font-size:var(--fs-h2)}
h3{font-size:var(--fs-h3)}
p{margin:.5rem 0 1rem}

/* ---------- Header (shared include) ---------- */
header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,.9);
  backdrop-filter:saturate(140%) blur(6px);
  border-bottom:1px solid var(--border);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px}
.brand{display:flex;align-items:center;gap:.75rem}
.brand img{height:38px;width:auto}
.brand .wordmark{
  font-family:"Playfair Display",Georgia,serif;
  font-size:1.25rem; color:var(--ink); letter-spacing:.02em;
}

.menu{display:flex;gap:1rem;align-items:center}
.menu a{
  padding:.4rem .6rem;
  border-radius:8px;
  color:var(--burgundy);
}
/* Highlight current page, but never override the Donate CTA look */
.menu a[aria-current="page"]:not(.donate-btn){
  background:var(--burgundy);
  color:#fff;
}

/* Donate button: always a burgundy CTA */
.menu a.donate-btn{
  background:var(--burgundy);
  color:#fff !important;
  padding:.5rem 1rem;
  border-radius:8px;
  font-weight:600;
  transition:background .25s ease,color .25s ease;
}
.menu a.donate-btn:hover{
  background:var(--gold);
  color:var(--ink) !important;
  text-decoration:none;
}

/* Keyboard focus */
.menu a:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:2px;
}

/* Mobile nav */
.hamburger{display:none;background:none;border:0;padding:.5rem;margin-left:.5rem}
.hamburger span{display:block;width:24px;height:2px;background:var(--ink);margin:5px 0}
@media (max-width:900px){
  .menu{display:none}
  .hamburger{display:block}
  .menu.open{
    display:flex;flex-direction:column;gap:.5rem;
    position:absolute; top:68px; left:0; right:0;
    background:#fff; border-bottom:1px solid var(--border); padding:1rem;
  }
}

/* ---------- Hero (one-pager) ---------- */
.hero{position:relative; isolation:isolate}
.hero .inner{
  display:grid; grid-template-columns:1.2fr .8fr; gap:2rem; align-items:center;
  padding: min(7vw,5rem) 0;
}
.hero .copy h1{font-size:var(--fs-hero)}
.tag{
  display:inline-block; background:var(--burgundy); color:#fff;
  border-radius:999px; padding:.25rem .65rem; font-size:.8rem; margin-bottom:.75rem;
}
.hero .art{justify-self:end}
.hero .mark{
  width:min(280px,40vw); height:auto;
  filter:drop-shadow(0 10px 24px rgba(97,27,29,.22));
}

/* ---------- Buttons (general) ---------- */
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  padding:.75rem 1.1rem; border-radius:10px; font-weight:600; border:2px solid transparent;
}
.btn-primary{background:var(--burgundy); color:#fff; border-color:var(--burgundy)}
.btn-primary:hover{background:var(--gold); border-color:var(--gold); color:var(--ink)}
.btn-outline{border-color:var(--gold); color:var(--ink)}
.btn-outline:hover{background:var(--gold); color:var(--ink)}

/* ---------- Sections & Cards ---------- */
section{padding:64px 0}
.cards{display:grid; grid-template-columns:repeat(3,1fr); gap:1.2rem; margin-top:1.2rem}
.card{
  background:#fff; border:1px solid var(--border);
  border-radius:var(--radius); padding:1.15rem; box-shadow:var(--shadow);
}

/* ---------- Band CTA ---------- */
.band{background:linear-gradient(135deg,var(--burgundy),var(--blue)); color:#fff}
.band h2,.band p{color:#fff}

/* ---------- Forms ---------- */
form{
  background:#fff; border:1px solid var(--border);
  border-radius:var(--radius); padding:1rem; box-shadow:var(--shadow);
}
input,textarea,select{
  width:100%; padding:.6rem; border:1px solid var(--border); border-radius:10px;
  font:inherit; color:inherit; background:#fff;
}

/* ---------- Donate page hero band ---------- */
.donate-hero{
  background:var(--burgundy); color:#fff; padding:56px 0; text-align:center;
}
.donate-hero h1,.donate-hero p{color:#fff}
.donate-hero p{max-width:720px; margin:0 auto; font-size:1.1rem}

/* ---------- Footer ---------- */

.footer{
  background:var(--burgundy);
  color:#fff;
}
.footer a{
  color:#fff;
  opacity:.95;
  text-decoration:none;
}
.footer a:hover{
  opacity:1;
  text-decoration:underline;
}

/* Footer container */
.footer .container{
  max-width:1080px;
  margin:0 auto;
  padding:2rem 1.25rem;
}

/* 3-column layout */
.footer-grid-3{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr;
  gap:2rem;
  align-items:start;
}

/* Column alignment */
.footer-left{ text-align:left; }
.footer-center{ text-align:center; }
.footer-right{ text-align:right; }

/* Text rhythm */
.footer-left p{
  margin-top:0;
  margin-bottom:0.3rem;
}
.footer .fine{
  font-size:.9rem;
  opacity:.9;
  margin-bottom:0.25rem;
}

/* Candid badge – tight + consistent */
.candid-badge{
  margin:0.15rem 0 0.25rem;
}
.footer .candid-badge img{
  width:110px;
  height:auto;
  display:block;
}

/* Legal link just below badge */
.footer-left a[href*="legal"]{
  display:inline-block;
  margin-top:0.15rem;
}

/* Social section */
.footer-social{
  margin-top:0.75rem;
}
.footer-social-label{
  font-size:0.9rem;
  margin-bottom:0.35rem;
}
.footer-social-icons{
  display:flex;
  gap:0.4rem;
  justify-content:flex-end;   /* flush right on desktop */
}

/* Social icon base */
.footer-social-icons a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  text-decoration:none;
}
.footer-social-icons svg{
  width:32px;
  height:32px;
  display:block;
}

/* Reset any global fills */
.footer-social-icons svg *{
  fill:none;
  stroke:none;
}

/* Circle shell */
.footer-social-icons circle{
  fill:transparent;
  stroke:#F8F5F0;            /* light outline on burgundy */
  stroke-width:1.3;
}

/* Icon glyphs (F, IG, X) */
.footer-social-icons path,
.footer-social-icons rect,
.footer-social-icons circle + circle{
  fill:#F8F5F0;
}

/* Hover: gold circle, burgundy glyph */
.footer-social-icons a:hover circle{
  fill:#A47E2B;
}
.footer-social-icons a:hover path,
.footer-social-icons a:hover rect,
.footer-social-icons a:hover circle + circle{
  fill:#611B1D;
}

/* Footer bottom stripe */
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.2);
  text-align:center;
  padding:1rem 0 1.25rem;
  font-size:.9rem;
  opacity:.95;
}

/* ---------- Responsive tweaks ---------- */
@media (max-width:900px){
  .hero .inner{
    grid-template-columns:1fr;
    text-align:center;
  }
  .hero .art{justify-self:center}
  .cards{grid-template-columns:1fr}

  /* Footer: stack & centre */
  .footer-grid-3{
    grid-template-columns:1fr;
    text-align:center;
    justify-items:center;
  }
  .footer-left,
  .footer-center,
  .footer-right{
    text-align:center;
  }
  .candid-badge{
    display:flex;
    justify-content:center;
  }
  .footer-social-icons{
    justify-content:center;
  }
}
/* === Global Candid Badge === */
.footer .candid-badge img {
  width: 110px !important;
  height: auto !important;
  display: block;
}