/* =========================================================
   SCAPS — NGO Design System
   Palette inspired by the SCAPS logo (forest green + saffron)
   and Indian flag tones, on warm cream backgrounds.
   ========================================================= */

:root {
  /* Warm neutral backgrounds — cream / parchment */
  --c-bg: #fdfaf3;
  --c-bg-soft: #f8f1e3;
  --c-bg-alt: #efe5d0;
  --c-bg-dark: #1d1611;
  --c-bg-darker: #14100c;

  /* Text — warm brown ink */
  --c-text: #2a1f15;
  --c-text-muted: #5b4a3b;
  --c-text-soft: #806c5b;
  --c-text-inverse: #fdfaf3;

  /* Primary — SCAPS forest green (from the logo) */
  --c-primary: #1f7a3f;
  --c-primary-dark: #155929;
  --c-primary-tint: #2fa057;
  --c-primary-light: #e6f3eb;

  /* Accent — Saffron / vibrant orange (from logo arc + Indian flag) */
  --c-accent: #e85d2d;
  --c-accent-dark: #c4481c;
  --c-accent-light: #fceadf;

  /* Supporting */
  --c-ochre: #d4a437;
  --c-ochre-light: #fbf3d9;
  --c-terracotta: #c45838;
  --c-mustard: #c79214;

  /* Semantic */
  --c-safe: #1f7a3f;
  --c-safe-light: #e6f3eb;
  --c-warning: #c79214;
  --c-warning-light: #fbf3d9;
  --c-danger: #c4481c;
  --c-danger-light: #fceadf;

  /* Borders — warm beige */
  --c-border: #e3d6bd;
  --c-border-strong: #c9b69a;

  /* Typography — modern sans, with Plus Jakarta Sans for display warmth */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii — slightly softer for handcrafted feel */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows — warmer brown tones */
  --sh-sm: 0 1px 2px rgba(42, 31, 21, 0.06), 0 1px 3px rgba(42, 31, 21, 0.05);
  --sh-md: 0 4px 12px rgba(42, 31, 21, 0.08), 0 2px 4px rgba(42, 31, 21, 0.05);
  --sh-lg: 0 14px 32px rgba(42, 31, 21, 0.10), 0 4px 12px rgba(42, 31, 21, 0.05);
  --sh-xl: 0 24px 48px rgba(42, 31, 21, 0.14), 0 8px 16px rgba(42, 31, 21, 0.06);

  /* Layout */
  --container: 1200px;
  --nav-h: 72px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);

  /* Very subtle paper-grain background pattern */
  --pattern-dot: radial-gradient(circle at 1px 1px, rgba(42, 31, 21, 0.022) 1px, transparent 0);
}

/* =========================================================
   Reset
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  background-image: var(--pattern-dot);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--c-primary);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-primary-dark); }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 var(--s-4);
  letter-spacing: -0.022em;
  color: var(--c-text);
}

h1 { font-size: clamp(2rem, 3.5vw + 1rem, 3.25rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.625rem, 1.6vw + 1rem, 2.25rem); }
h3 { font-size: clamp(1.15rem, 0.8vw + 0.9rem, 1.375rem); }
h4 { font-size: 1.0625rem; font-weight: 700; }

p {
  margin: 0 0 var(--s-4);
  color: var(--c-text-muted);
}

ul, ol {
  margin: 0 0 var(--s-4);
  padding-left: var(--s-5);
}
li {
  margin-bottom: var(--s-2);
  color: var(--c-text-muted);
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--c-primary);
  color: #fff;
  padding: var(--s-3) var(--s-5);
  z-index: 1000;
  border-radius: 0 0 var(--r-md) 0;
  transform: translateY(-100%);
  transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); color: #fff; }

/* =========================================================
   Layout
   ========================================================= */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section { padding: var(--s-9) 0; }
.section--tight { padding: var(--s-7) 0; }
.section--soft { background: var(--c-bg-soft); }
.section--alt { background: var(--c-bg-alt); }

.section--dark {
  background: var(--c-bg-dark);
  color: var(--c-text-inverse);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 { color: var(--c-text-inverse); }
.section--dark p { color: rgba(253, 250, 243, 0.78); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-7);
}

.section-head__eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: var(--c-accent-light);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-4);
  border: 1px solid rgba(232, 93, 45, 0.2);
}

.section--dark .section-head__eyebrow {
  background: rgba(232, 93, 45, 0.18);
  color: #ffb088;
  border-color: rgba(232, 93, 45, 0.3);
}

.grid { display: grid; gap: var(--s-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* =========================================================
   Trust strip (NGO registration banner)
   ========================================================= */
.trust-strip {
  background: var(--c-bg-darker);
  color: rgba(253, 250, 243, 0.8);
  font-size: 0.82rem;
  border-bottom: 2px solid var(--c-accent);
}
.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-2) var(--s-5);
  flex-wrap: wrap;
}
.trust-strip strong { color: #fff; }
.trust-strip__pills {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.trust-strip__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-strip__pill svg { color: var(--c-accent); }

/* =========================================================
   Header / Navigation
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 250, 243, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--c-primary); }

.brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: var(--r-md);
  color: var(--c-primary);
  border: 1px solid var(--c-border);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__sub { display: none; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: inline-block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--t-fast);
}
.nav__link:hover,
.nav__link[aria-current="page"] {
  color: var(--c-primary);
  background: var(--c-primary-light);
}

/* Dropdown */
.nav__item--dropdown { position: relative; }
.nav__caret {
  display: inline-block;
  margin-left: 4px;
  font-size: 0.65em;
  opacity: 0.7;
  transition: transform var(--t-fast);
}
.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown:focus-within .nav__caret { transform: rotate(180deg); }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  list-style: none;
  padding: var(--s-2);
  margin: 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast), visibility var(--t-fast), transform var(--t-fast);
  z-index: 110;
}
.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__dropdown li { margin: 0; }
.nav__dropdown a {
  display: block;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  color: var(--c-text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__dropdown a:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
}

.nav__cta { margin-left: var(--s-3); }

.nav__toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  color: var(--c-text);
}
.nav__toggle:hover { background: var(--c-bg-alt); }

@media (max-width: 980px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--c-bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--s-4);
    border-top: 1px solid var(--c-border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base), transform var(--t-base);
    overflow-y: auto;
  }
  .nav__menu.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link {
    padding: var(--s-4);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    font-size: 1rem;
  }
  .nav__cta { margin: var(--s-4) 0 0; }

  /* On mobile, dropdown expands inline */
  .nav__item--dropdown > .nav__link { pointer-events: none; }
  .nav__caret { display: none; }
  .nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    min-width: 0;
  }
  .nav__dropdown a {
    padding: var(--s-3) var(--s-4) var(--s-3) var(--s-7);
    border-bottom: 1px solid var(--c-border);
    border-radius: 0;
    font-size: 0.95rem;
    color: var(--c-text-soft);
  }
}

/* Legacy emergency strip (kept for any leftover refs) */
.emergency-strip { display: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: all var(--t-fast);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:focus-visible {
  outline: 3px solid var(--c-primary-light);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--c-text);
  color: var(--c-bg);
}
.btn--primary:hover {
  background: var(--c-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--accent {
  background: var(--c-accent);
  color: #fff;
}
.btn--accent:hover {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-border-strong);
}
.btn--ghost:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-light);
}

.btn--light {
  background: #fff;
  color: var(--c-primary);
}
.btn--light:hover {
  background: var(--c-primary-light);
  color: var(--c-primary-dark);
}

.btn--lg { padding: var(--s-4) var(--s-6); font-size: 1rem; }
.btn--sm { padding: var(--s-2) var(--s-4); font-size: 0.85rem; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative;
  padding: var(--s-8) 0 var(--s-9);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 100%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(232, 93, 45, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(31, 122, 63, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-8);
  align-items: center;
}
@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero { padding: var(--s-7) 0 var(--s-8); }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-text-soft);
  background: transparent;
  padding: 4px 0;
  margin-bottom: var(--s-5);
}
.hero__eyebrow svg { color: var(--c-accent); }

.hero__title {
  margin-bottom: var(--s-5);
  font-weight: 800;
  color: var(--c-text);
}
.hero__title span {
  color: var(--c-primary);
  position: relative;
  display: inline-block;
}
.hero__title span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.08em;
  height: 0.3em;
  background: var(--c-accent-light);
  z-index: -1;
  border-radius: 2px;
}

.hero__lede {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  max-width: 540px;
  margin-bottom: var(--s-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}

/* =========================================================
   Cards
   ========================================================= */
.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: all var(--t-base);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  border-color: var(--c-primary);
  box-shadow: var(--sh-lg);
  transform: translateY(-3px);
}

.card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--c-primary-light);
  color: var(--c-primary);
  margin-bottom: var(--s-5);
}
.card__icon--accent { background: var(--c-accent-light); color: var(--c-accent); }
.card__icon--safe { background: var(--c-safe-light); color: var(--c-safe); }
.card__icon--warning { background: var(--c-ochre-light); color: var(--c-mustard); }
.card__icon--danger { background: var(--c-danger-light); color: var(--c-danger); }

.card__title {
  font-size: 1.2rem;
  margin-bottom: var(--s-2);
  font-family: var(--font-display);
  font-weight: 600;
}

.card__text {
  color: var(--c-text-muted);
  font-size: 0.95rem;
  margin-bottom: var(--s-4);
  flex: 1;
}

.card__link {
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: var(--s-1);
  transition: gap var(--t-fast);
  margin-top: auto;
  color: var(--c-primary);
}
.card__link:hover { gap: var(--s-3); color: var(--c-primary-dark); }

/* =========================================================
   Stats
   ========================================================= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-5);
}
.stat { text-align: center; padding: var(--s-5); }
.stat__value {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
  font-weight: 600;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: var(--s-2);
  background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section--dark .stat__value {
  background: linear-gradient(135deg, #fff 0%, var(--c-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label { font-size: 0.95rem; color: var(--c-text-muted); font-weight: 500; }
.section--dark .stat__label { color: rgba(253, 250, 243, 0.78); }

/* =========================================================
   Programs / feature blocks
   ========================================================= */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
  padding: var(--s-7) 0;
}
.feature--reverse .feature__media { order: 2; }
@media (max-width: 800px) {
  .feature { grid-template-columns: 1fr; gap: var(--s-5); padding: var(--s-5) 0; }
  .feature--reverse .feature__media { order: 0; }
}

.feature__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--c-primary-light) 0%, var(--c-accent-light) 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--sh-md);
}
.feature__media-icon {
  width: 96px;
  height: 96px;
  color: var(--c-primary);
  opacity: 0.5;
}

.feature__tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: var(--s-3);
}

.feature__title { margin-bottom: var(--s-4); }

.feature__list { list-style: none; padding: 0; margin: var(--s-5) 0; }
.feature__list li {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
  color: var(--c-text-muted);
}
.feature__list-tick {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--c-safe-light);
  color: var(--c-safe);
  display: grid;
  place-items: center;
  margin-top: 2px;
}

/* =========================================================
   CTA Banner — Indian flag inspired
   ========================================================= */
.cta-banner {
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-lg);
  padding: var(--s-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232, 93, 45, 0.22) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-banner__inner { position: relative; max-width: 720px; margin: 0 auto; }
.cta-banner h2 { color: #fff; margin-bottom: var(--s-4); }
.cta-banner p { color: rgba(255, 255, 255, 0.88); font-size: 1.05rem; margin-bottom: var(--s-6); }
.cta-banner__ctas {
  display: flex;
  gap: var(--s-3);
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================================
   Form
   ========================================================= */
.form { display: grid; gap: var(--s-4); }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: var(--s-3) var(--s-4);
  font: inherit;
  font-size: 0.95rem;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  transition: border var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-light);
}
.field textarea { min-height: 140px; resize: vertical; font-family: inherit; }

/* =========================================================
   Page hero (inner pages)
   ========================================================= */
.page-hero {
  padding: var(--s-8) 0 var(--s-7);
  background:
    radial-gradient(ellipse 50% 80% at 100% 0%, rgba(232, 93, 45, 0.10) 0%, transparent 50%),
    linear-gradient(180deg, var(--c-bg-soft) 0%, var(--c-bg) 100%);
  border-bottom: 1px solid var(--c-border);
}
.page-hero__inner { max-width: 780px; }

.breadcrumb {
  display: flex;
  gap: var(--s-2);
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  font-size: 0.85rem;
  color: var(--c-text-soft);
  flex-wrap: wrap;
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "›";
  margin-right: var(--s-2);
  color: var(--c-border-strong);
}
.breadcrumb a { color: var(--c-text-soft); }
.breadcrumb a:hover { color: var(--c-primary); }

.page-hero__title { margin-bottom: var(--s-3); }
.page-hero__lede {
  font-size: 1.125rem;
  color: var(--c-text-muted);
  margin: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
  background: var(--c-bg-dark);
  color: rgba(253, 250, 243, 0.75);
  padding: var(--s-8) 0 var(--s-5);
  font-size: 0.9rem;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-ochre) 50%, var(--c-primary) 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand { color: #fff; }
.footer-brand .brand:hover { color: #fff; }
.footer-brand .brand__sub { color: rgba(253, 250, 243, 0.6); }

.footer__about {
  margin: var(--s-4) 0;
  color: rgba(253, 250, 243, 0.7);
  max-width: 380px;
}

.footer__heading {
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  font-family: var(--font-sans);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.footer__links li { margin: 0; color: rgba(253, 250, 243, 0.7); }
.footer__links a {
  color: rgba(253, 250, 243, 0.7);
  font-size: 0.9rem;
}
.footer__links a:hover { color: #fff; }

.social { display: flex; gap: var(--s-2); margin-top: var(--s-4); }
.social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: rgba(253, 250, 243, 0.08);
  color: #fff;
  transition: background var(--t-fast);
}
.social a:hover { background: var(--c-accent); }

.footer__base {
  border-top: 1px solid rgba(253, 250, 243, 0.1);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 0.85rem;
  color: rgba(253, 250, 243, 0.55);
}
.footer__base a { color: rgba(253, 250, 243, 0.55); }
.footer__base a:hover { color: #fff; }

/* =========================================================
   Pledge / quote
   ========================================================= */
.pledge {
  background: #fff;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-accent);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  font-style: italic;
  color: var(--c-text);
  font-size: 1.05rem;
  line-height: 1.6;
}
.pledge cite {
  display: block;
  margin-top: var(--s-3);
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--c-text-soft);
}

/* =========================================================
   Utility
   ========================================================= */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mb-6 { margin-bottom: var(--s-6); }
.flex { display: flex; }
.gap-3 { gap: var(--s-3); }
.justify-center { justify-content: center; }
.wrap { flex-wrap: wrap; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
