/* =============================================================
   The Devon Farmers' Benevolent Fund — Site Stylesheet
   Theme: Clean Education · Editorial, refined, warm
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --bg-muted: #eef2f7;
  --primary: #1e3a5f;
  --primary-600: #15294a;
  --primary-700: #0f1f35;
  --dark: #0f1f35;
  --gold: #f59e0b;
  --gold-600: #d97e06;
  --ink: #111827;
  --ink-2: #374151;
  --ink-3: #6b7280;
  --rule: #e5e7eb;
  --rule-dark: rgba(255, 255, 255, 0.12);
  --success: #059669;

  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', sans-serif;

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 2px rgba(15, 31, 53, 0.05);
  --shadow: 0 4px 12px rgba(15, 31, 53, 0.08);
  --shadow-lg: 0 20px 40px -12px rgba(15, 31, 53, 0.18);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 .5em;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 500; }
h2 { font-size: clamp(28px, 3.8vw, 44px); font-weight: 500; }
h3 { font-size: clamp(20px, 2vw, 26px); font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; }

p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-2); line-height: 1.65; }

.italic { font-style: italic; color: var(--primary); font-weight: 500; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
  border-radius: 0 0 6px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(60px, 8vw, 110px) 0; }
.section-tight { padding: clamp(40px, 5vw, 70px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 18px;
}
.eyebrow-gold { color: var(--gold); }
.eyebrow-light { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  border-radius: 999px;
  border: 1.5px solid var(--primary);
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-600); border-color: var(--primary-600); transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--dark) !important; }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); color: #fff !important; }
.btn-ghost { background: transparent; color: var(--primary) !important; }
.btn-ghost:hover { background: var(--primary); color: #fff !important; }
.btn-ghost-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,0.35); }
.btn-ghost-light:hover { background: #fff; color: var(--primary) !important; border-color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 13px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--primary);
}
.arrow-link::after {
  content: "→";
  transition: transform .2s;
}
.arrow-link:hover::after { transform: translateX(4px); }

/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  position: sticky;
  top: 0;
  background: var(--dark);
  color: #fff;
  z-index: 100;
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}
.brand-mark svg { width: 22px; height: 22px; color: #fff; }
.brand-text { line-height: 1.15; }
.brand-text .name {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  display: block;
}
.brand-text .subtitle {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: block;
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: all .2s;
}
.nav-cta:hover { background: var(--gold); color: var(--dark) !important; }

.hamburger {
  display: none;
  background: transparent;
  border: 0;
  color: #fff;
  padding: 6px;
}
.hamburger svg { width: 28px; height: 28px; }

/* =============================================================
   HERO (Home)
   ============================================================= */
.hero {
  background: var(--dark);
  color: #fff;
  padding: clamp(70px, 9vw, 130px) 0 clamp(80px, 10vw, 140px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(245, 158, 11, 0.09), transparent 55%),
    radial-gradient(ellipse at 95% 80%, rgba(30, 58, 95, 0.45), transparent 55%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 2; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero h1 {
  color: #fff;
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.05;
  margin-bottom: 22px;
  font-weight: 500;
}
.hero h1 .italic {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}
.hero .lead {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(17px, 1.3vw, 19px);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stat .num {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 44px);
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
  display: block;
}
.hero-stat .lbl {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

.hero-card {
  background: linear-gradient(145deg, rgba(30, 58, 95, 0.6), rgba(15, 31, 53, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}
.hero-card .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero-card .badge::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-card h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 12px;
}
.hero-card p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}
.hero-card .meta {
  display: grid;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-card .meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.hero-card .meta-row span:first-child { color: rgba(255, 255, 255, 0.55); }
.hero-card .meta-row span:last-child { color: #fff; font-weight: 500; }

/* =============================================================
   ABOUT section (2-column)
   ============================================================= */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-img {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 36px;
}
.pillar .n {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 8px;
  display: block;
  letter-spacing: 0.04em;
}
.pillar h4 { margin-bottom: 6px; }
.pillar p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* =============================================================
   PROGRAMMES cards
   ============================================================= */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}
.section-head h2 { max-width: 18ch; margin: 0; }

.prog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.prog-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
  display: flex;
  flex-direction: column;
}
.prog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prog-card .img {
  aspect-ratio: 3/2;
  background: var(--bg-muted);
  overflow: hidden;
}
.prog-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.prog-card:hover .img img { transform: scale(1.05); }
.prog-card .body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.prog-card .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.prog-card .cat {
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.prog-card .num {
  font-family: var(--font-head);
  font-style: italic;
  color: var(--ink-3);
  font-size: 14px;
}
.prog-card h3 { margin-bottom: 10px; font-size: 22px; }
.prog-card p {
  color: var(--ink-2);
  font-size: 14.5px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* =============================================================
   DARK IMPACT section
   ============================================================= */
.impact {
  background: var(--dark);
  color: #fff;
  padding: clamp(70px, 9vw, 120px) 0;
  position: relative;
  overflow: hidden;
}
.impact::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.08), transparent 50%);
}
.impact .wrap { position: relative; z-index: 2; }

.impact-head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.impact h2 { color: #fff; }
.impact h2 .italic { color: var(--gold); }
.impact-head p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 17px; }

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.impact-stat {
  padding: 36px 28px 36px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.impact-stat:last-child { border-right: 0; padding-right: 0; }
.impact-stat:not(:first-child) { padding-left: 28px; }
.impact-stat .num {
  font-family: var(--font-head);
  font-size: clamp(36px, 4.5vw, 52px);
  color: var(--gold);
  font-weight: 500;
  line-height: 1;
  display: block;
  margin-bottom: 10px;
}
.impact-stat .num .plus { font-size: 0.7em; font-style: italic; }
.impact-stat .lbl {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  line-height: 1.4;
}

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.testimonials-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.test-head h2 { margin-bottom: 16px; max-width: 14ch; }
.test-head p { color: var(--ink-2); font-size: 16px; }

.test-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 20px;
  position: relative;
}
.test-card::before {
  content: '"';
  position: absolute;
  top: 18px;
  left: 30px;
  font-family: var(--font-head);
  font-size: 80px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.25;
  font-style: italic;
}
.test-card blockquote {
  font-family: var(--font-head);
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  margin: 0 0 24px;
  padding-left: 30px;
  padding-top: 10px;
  font-weight: 500;
  font-style: italic;
}
.test-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 30px;
}
.test-author .mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  display: grid; place-items: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
}
.test-author .name { font-weight: 600; color: var(--ink); display: block; }
.test-author .role { font-size: 13px; color: var(--ink-3); }

/* =============================================================
   SUPPORT CTA block
   ============================================================= */
.support-cta {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 5vw, 72px);
  color: #fff;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.support-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 30%, rgba(245, 158, 11, 0.12), transparent 50%);
  pointer-events: none;
}
.support-cta > * { position: relative; z-index: 2; }
.support-cta h2 { color: #fff; margin-bottom: 16px; }
.support-cta p { color: rgba(255, 255, 255, 0.82); margin-bottom: 28px; font-size: 16px; }
.support-cta .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================================
   FOOTER
   ============================================================= */
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.8);
  padding: clamp(50px, 6vw, 80px) 0 24px;
}
footer a { color: rgba(255, 255, 255, 0.8); }
footer a:hover { color: var(--gold); }

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-about .brand { margin-bottom: 18px; }
.foot-about p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 36ch;
  margin-bottom: 16px;
  line-height: 1.55;
}
.foot-reg {
  display: inline-block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.04em;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
}
.foot-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 18px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 10px; font-size: 14.5px; }
.foot-col a { color: rgba(255, 255, 255, 0.7); }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
}
.foot-bottom .quote {
  font-family: var(--font-head);
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
  max-width: 40ch;
  text-align: right;
}
.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  transition: all .2s;
}
.socials a:hover { background: var(--gold); color: var(--dark); }
.socials svg { width: 16px; height: 16px; }

/* =============================================================
   PAGE BANNER (used on interior pages)
   ============================================================= */
.page-banner {
  background: var(--dark);
  color: #fff;
  padding: clamp(60px, 7vw, 100px) 0 clamp(70px, 8vw, 110px);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 100%, rgba(245, 158, 11, 0.1), transparent 55%);
}
.page-banner .wrap { position: relative; z-index: 2; max-width: 880px; }
.page-banner .eyebrow { color: var(--gold); }
.page-banner h1 {
  color: #fff;
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.05;
  margin-bottom: 20px;
}
.page-banner h1 .italic { color: var(--gold); }
.page-banner .lead { color: rgba(255, 255, 255, 0.78); max-width: 56ch; }

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 26px;
  letter-spacing: 0.02em;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.7); }
.breadcrumb span::after { content: '/'; margin-left: 10px; color: rgba(255, 255, 255, 0.3); }

/* =============================================================
   CARDS & GRIDS (generic reusable)
   ============================================================= */
.card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: all .25s;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card .icon {
  width: 48px; height: 48px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--primary);
  border-radius: 12px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.card .icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; margin: 0; line-height: 1.6; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* =============================================================
   PROSE (legal pages, blog articles)
   ============================================================= */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
}
.prose h2 { margin: 2.2em 0 .6em; color: var(--ink); font-size: 32px; }
.prose h3 { margin: 1.8em 0 .5em; color: var(--ink); font-size: 22px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose p { margin-bottom: 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; }
.prose li { margin-bottom: 0.5em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 24px;
  margin: 2em 0;
  font-family: var(--font-head);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* =============================================================
   FORMS
   ============================================================= */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--bg);
  font: inherit;
  color: var(--ink);
  transition: all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-msg {
  background: rgba(5, 150, 105, 0.08);
  border: 1px solid rgba(5, 150, 105, 0.25);
  color: var(--success);
  padding: 14px 18px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 14.5px;
  display: none;
}
.form-msg.show { display: block; }

/* =============================================================
   BLOG
   ============================================================= */
.blog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all .25s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-card .img { aspect-ratio: 16/10; background: var(--bg-muted); overflow: hidden; }
.blog-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.blog-card:hover .img img { transform: scale(1.05); }
.blog-card .body { padding: 26px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-card .cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 21px; margin-bottom: 12px; color: var(--ink); }
.blog-card p { color: var(--ink-2); font-size: 14.5px; margin-bottom: 20px; flex-grow: 1; }
.blog-card .read-more { color: var(--primary); font-weight: 600; font-size: 14px; }

.article-meta {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-meta .cat-chip {
  background: rgba(245, 158, 11, 0.12);
  color: var(--gold-600);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
}

/* =============================================================
   CHAT WIDGET
   ============================================================= */
.chat-toggle {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 25px rgba(15, 31, 53, 0.25);
  z-index: 90;
  display: grid;
  place-items: center;
  transition: transform .2s;
}
.chat-toggle:hover { transform: scale(1.05); background: var(--primary-600); }
.chat-toggle svg { width: 24px; height: 24px; }
.chat-panel {
  position: fixed;
  bottom: 92px;
  right: 22px;
  width: 340px;
  max-width: calc(100vw - 44px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(15, 31, 53, 0.22);
  z-index: 91;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--rule);
}
.chat-panel.open { display: flex; }
.chat-head {
  background: var(--primary);
  color: #fff;
  padding: 18px 20px;
}
.chat-head h4 { color: #fff; margin: 0 0 2px; font-size: 16px; }
.chat-head p { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.chat-body {
  padding: 18px;
  flex-grow: 1;
  height: 240px;
  overflow-y: auto;
  background: var(--bg);
}
.chat-msg {
  background: #fff;
  border: 1px solid var(--rule);
  padding: 10px 14px;
  border-radius: 12px 12px 12px 2px;
  font-size: 14px;
  margin-bottom: 10px;
  max-width: 85%;
  line-height: 1.5;
}
.chat-msg.user {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  border-radius: 12px 12px 2px 12px;
  margin-left: auto;
}
.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--rule);
  background: #fff;
}
.chat-form input {
  flex-grow: 1;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
}
.chat-form input:focus { outline: none; border-color: var(--primary); }
.chat-form button {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 14px;
}

/* =============================================================
   COOKIE BANNER
   ============================================================= */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(15, 31, 53, 0.18);
  padding: 24px;
  z-index: 92;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner h4 { margin: 0 0 8px; font-size: 17px; }
.cookie-banner p { font-size: 14px; color: var(--ink-2); margin-bottom: 16px; line-height: 1.5; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-sm { padding: 8px 16px; font-size: 13px; border-radius: 8px; }

/* =============================================================
   REVEAL ANIMATION
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px var(--gutter) 30px;
    gap: 6px;
    align-items: stretch;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .hamburger { display: block; }
  .nav-cta { display: none; }

  .hero-grid,
  .about-split,
  .prog-grid,
  .impact-head,
  .testimonials-grid,
  .support-cta,
  .foot-grid,
  .blog-list,
  .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .hero-stats,
  .impact-stats {
    grid-template-columns: 1fr 1fr;
  }
  .impact-stat {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 0;
  }
  .impact-stat:not(:first-child) { padding-left: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .foot-bottom .quote { text-align: left; }
  .pillars { grid-template-columns: 1fr; gap: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .chat-panel { right: 10px; width: calc(100vw - 20px); }
}
