/* ==========================================================================
   DFW Immigrant Law Center — site styles
   Mobile-first. Brand palette from PRD; deeper emerald used for text-bearing
   fills so white copy clears WCAG AA (brand #4CAF50 is used for accents).
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/montserrat-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/open-sans-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --slate: #34495e;
  --slate-900: #1f2d3a;
  --slate-800: #24343f;
  --slate-700: #2a3b4c;
  --emerald: #4caf50;
  --emerald-deep: #2e7d32;
  --emerald-dark: #256428;
  --emerald-soft: #eaf4ea;
  --amber: #ffc107;
  --amber-soft: #fff4d1;
  --saddle: #795548;
  --ink: #1f2d3a;
  --body: #3d4f5f;
  --muted: #5b6b7a;
  --paper: #ffffff;
  --mist: #f8f8f8;
  --mist-2: #f1f4f6;
  --line: #e2e8ec;
  --danger: #b3261e;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(31, 45, 58, 0.06);
  --shadow: 0 14px 36px rgba(31, 45, 58, 0.1);
  --shadow-lg: 0 28px 70px rgba(31, 45, 58, 0.18);

  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4rem, 8vw, 7rem);

  --font-head: "Montserrat", "Segoe UI", sans-serif;
  --font-body: "Open Sans", "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
picture,
svg,
iframe {
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

a {
  color: var(--emerald-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: var(--amber);
  color: var(--slate-900);
}

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 4px;
}

.on-dark :where(a, button, input, textarea, select):focus-visible {
  outline-color: var(--amber);
}

[id] {
  scroll-margin-top: 100px;
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: 860px;
}

.section {
  padding-block: var(--section-y);
}

.section--mist {
  background: var(--mist);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 4rem);
}

.section--flush-top {
  padding-top: 0;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--fill {
  fill: currentColor;
  stroke: none;
}

.skip-link {
  position: fixed;
  top: -120px;
  left: 1rem;
  z-index: 1000;
  padding: 0.85rem 1.25rem;
  background: var(--amber);
  color: var(--slate-900);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
}

.text-center {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--emerald-deep);
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

.eyebrow--center {
  justify-content: center;
}

.on-dark .eyebrow,
.eyebrow--light {
  color: var(--amber);
}

.section-head {
  max-width: 760px;
  margin: 0 auto clamp(2rem, 4vw, 3.25rem);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.section-head p {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.85rem 1.65rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease,
    color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn svg {
  flex: none;
}

.btn--pill {
  border-radius: var(--radius-pill);
}

.btn--primary {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  color: #fff;
}

.btn--primary:hover {
  background: var(--emerald-dark);
  border-color: var(--emerald-dark);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(46, 125, 50, 0.28);
}

.btn--secondary {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--slate-900);
  border-color: var(--slate-900);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 26px rgba(31, 45, 58, 0.24);
}

.btn--outline {
  background: transparent;
  border-color: var(--emerald-deep);
  color: var(--emerald-deep);
}

.btn--outline:hover {
  background: var(--emerald-deep);
  color: #fff;
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  border-color: var(--slate);
  color: var(--slate);
}

.btn--outline-dark:hover {
  background: var(--slate);
  color: #fff;
  transform: translateY(-2px);
}

.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.btn--ghost-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--slate);
  transform: translateY(-2px);
}

.btn--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--slate-900);
}

.btn--amber:hover {
  background: #ffce3a;
  border-color: #ffce3a;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(255, 193, 7, 0.3);
}

.btn--sm {
  min-height: 44px;
  padding: 0.6rem 1.15rem;
  font-size: 0.72rem;
}

.btn--lg {
  min-height: 56px;
  padding: 1rem 2rem;
  font-size: 0.875rem;
}

.btn--block {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn__summary {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 1;
}

.btn.is-loading::after {
  content: "";
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--emerald-deep);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.link-arrow svg {
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--emerald-dark);
}

.link-arrow:hover svg {
  transform: translateX(5px);
}

.link-arrow--light {
  color: #fff;
}

.link-arrow--light:hover {
  color: var(--amber);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.header-slot {
  position: relative;
  z-index: 100;
}

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-height: 64px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  margin-inline: auto;
}

.brand__logo {
  width: auto;
  height: 40px;
}

.primary-nav {
  display: none;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: absolute;
  right: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
}

.header__donate {
  min-height: 44px;
  padding: 0.5rem 0.9rem;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
}

.header__actions .header__donate {
  display: none;
}

.header__donate--mobile {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--slate);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: var(--mist);
  border-color: #cfd9e0;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
}

.nav-toggle__bars span:nth-child(1) {
  top: 0;
}

.nav-toggle__bars span:nth-child(2) {
  top: 6px;
}

.nav-toggle__bars span:nth-child(3) {
  top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
}

/* Tablet and up: the PRD's desktop header begins at 768px. */
@media (min-width: 768px) {
  .header-slot {
    height: 72px;
  }

  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
  }

  .site-header.is-stuck {
    position: fixed;
    height: 60px;
    box-shadow: 0 8px 28px rgba(31, 45, 58, 0.12);
  }

  .header__inner {
    justify-content: flex-start;
    gap: 0.75rem;
    height: 72px;
    min-height: 0;
    transition: height 0.2s ease-in-out;
  }

  .site-header.is-stuck .header__inner {
    height: 60px;
  }

  .brand {
    margin-inline: 0;
    flex: none;
  }

  .brand__logo {
    height: 44px;
    transition: height 0.2s ease-in-out;
  }

  .site-header.is-stuck .brand__logo {
    height: 38px;
  }

  .primary-nav {
    display: block;
    margin-inline: auto;
  }

  .primary-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(0.6rem, 1.4vw, 1.25rem);
    list-style: none;
  }

  .primary-nav__list a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 0;
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--slate);
    text-decoration: none;
    white-space: nowrap;
  }

  .primary-nav__list a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--emerald-deep);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.22s var(--ease);
  }

  .primary-nav__list a:hover::after,
  .primary-nav__list a:focus-visible::after {
    transform: scaleX(1);
  }

  .primary-nav__list a[aria-current="page"] {
    font-weight: 600;
    color: var(--slate-900);
  }

  .primary-nav__list a[aria-current="page"]::after {
    transform: scaleX(1);
  }

  .header__actions {
    position: static;
    transform: none;
    flex: none;
  }

  .header__actions .header__donate {
    display: inline-flex;
    min-height: 44px;
    padding: 0.55rem 0.95rem;
    font-size: 0.66rem;
  }

  .header__donate--mobile {
    display: none;
  }

  .nav-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header-slot {
    height: 84px;
  }

  .site-header {
    height: 84px;
  }

  .site-header.is-stuck {
    height: 64px;
  }

  .header__inner {
    gap: 1rem;
    height: 84px;
  }

  .site-header.is-stuck .header__inner {
    height: 64px;
  }

  .brand__logo {
    height: 50px;
  }

  .site-header.is-stuck .brand__logo {
    height: 40px;
  }

  .primary-nav__list {
    gap: clamp(1rem, 2.1vw, 2rem);
  }

  .primary-nav__list a {
    font-size: 0.875rem;
  }

  .header__actions .header__donate {
    padding: 0.6rem 1.25rem;
    font-size: 0.72rem;
  }
}

/* Mobile menu ------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  background: var(--slate-900);
  color: #fff;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.42s var(--ease), visibility 0.42s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu.is-open {
  transform: none;
  visibility: visible;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100%;
  padding: 1.25rem var(--gutter) 2.25rem;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.mobile-menu__label {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.45);
}

.mobile-menu__list {
  display: grid;
  list-style: none;
  margin-bottom: 2.25rem;
}

.mobile-menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-head);
  font-size: clamp(1.45rem, 6vw, 1.8rem);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.mobile-menu__list a span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--amber);
}

.mobile-menu__list a:hover,
.mobile-menu__list a[aria-current="page"] {
  color: var(--amber);
  padding-left: 0.4rem;
}

.mobile-menu__cta {
  display: grid;
  gap: 1rem;
  margin-top: auto;
}

.mobile-menu__consult {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.mobile-menu__consult:hover {
  color: var(--amber);
}

.mobile-menu__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.68);
}

.mobile-menu__contact a {
  color: inherit;
  text-decoration: none;
}

.mobile-menu__contact a:hover {
  color: var(--amber);
}

@media (min-width: 1024px) {
  .mobile-menu {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(580px, 86vh, 860px);
  overflow: hidden;
  background: var(--slate-900);
  color: #fff;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      180deg,
      rgba(18, 30, 42, 0.86) 0%,
      rgba(18, 30, 42, 0.58) 46%,
      rgba(18, 30, 42, 0.66) 100%
    ),
    radial-gradient(
      ellipse at 50% 40%,
      rgba(18, 30, 42, 0.1),
      rgba(18, 30, 42, 0.55)
    );
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin-inline: auto;
  padding-block: clamp(4.5rem, 10vw, 7rem);
  text-align: center;
}

.hero h1 {
  max-width: 900px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.32);
}

.hero__lead {
  max-width: 680px;
  margin: 1.4rem auto 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.hero__actions .btn {
  min-width: 210px;
}

.hero--page {
  min-height: clamp(380px, 54vh, 540px);
}

.hero--page .hero__content {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.hero--page h1 {
  font-size: clamp(2.3rem, 5.2vw, 3.75rem);
}

.hero--page .hero__lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.15rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
}

.hero__kicker::before,
.hero__kicker::after {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
  opacity: 0.7;
}

/* --------------------------------------------------------------------------
   Trust bar
   -------------------------------------------------------------------------- */

.trust-bar {
  position: relative;
  z-index: 3;
  margin-top: -3.5rem;
  padding-bottom: 0;
}

.trust-bar__inner {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trust-item > div {
  flex: 1;
  min-width: 0;
}

.trust-item__icon {
  order: 2;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.trust-item strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.35;
}

.trust-item div > span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

@media (min-width: 768px) {
  .trust-bar {
    margin-top: -4rem;
  }

  .trust-bar__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 1.75rem 0.5rem;
  }

  .trust-item {
    padding: 0 1.5rem;
  }

  .trust-item + .trust-item {
    border-left: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   Mission
   -------------------------------------------------------------------------- */

.mission__grid {
  display: grid;
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.mission__panel {
  position: relative;
  padding: clamp(2rem, 5vw, 4.25rem);
  background: var(--amber);
  color: var(--slate-900);
}

.mission__panel::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -60px;
  width: 200px;
  height: 200px;
  border: 2px solid rgba(31, 45, 58, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.mission__panel .eyebrow {
  color: var(--slate-900);
}

.mission__panel .eyebrow::before {
  background: var(--slate-900);
}

.mission__panel h2 {
  max-width: 15ch;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.mission__panel p {
  margin-top: 1.1rem;
  color: #2c3a45;
  font-size: 1rem;
  line-height: 1.75;
}

.mission__panel .btn {
  margin-top: 1.8rem;
}

.mission__media {
  position: relative;
  min-height: 300px;
}

.mission__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 900px) {
  .mission__grid {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .mission__media {
    min-height: 520px;
  }
}

/* --------------------------------------------------------------------------
   Pillars
   -------------------------------------------------------------------------- */

.pillars__grid {
  display: grid;
  gap: 1.5rem;
}

.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.pillar-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.pillar-card:hover::after {
  transform: scaleX(1);
}

.pillar-card__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pillar-card:hover .pillar-card__icon {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(46, 125, 50, 0.16);
}

.pillar-card__icon svg {
  width: 30px;
  height: 30px;
}

.pillar-card h3 {
  font-size: 1.35rem;
}

.pillar-card p {
  flex: 1;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .pillars__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Programs band
   -------------------------------------------------------------------------- */

.programs-band {
  position: relative;
  overflow: hidden;
  background: var(--emerald-deep);
  color: #fff;
}

.programs-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
      rgba(255, 255, 255, 0.13) 1px,
      transparent 1px
    ),
    radial-gradient(
      ellipse at 12% 18%,
      rgba(255, 255, 255, 0.12),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 88% 82%,
      rgba(255, 193, 7, 0.16),
      transparent 52%
    );
  background-size: 24px 24px, 100% 100%, 100% 100%;
  pointer-events: none;
}

.programs-band__grid {
  position: relative;
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.programs-band h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
}

.programs-band p {
  color: rgba(255, 255, 255, 0.9);
}

.programs-band__list {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 2rem;
  list-style: none;
}

.programs-band__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.975rem;
}

.programs-band__list svg {
  flex: none;
  margin-top: 0.3rem;
  color: var(--amber);
}

.programs-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
}

.programs-band__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.programs-band__media img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
  transform: scale(1.04);
}

.floating-badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 280px;
  padding: 0.9rem 1.1rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--slate);
}

.floating-badge svg {
  flex: none;
  color: var(--emerald-deep);
}

.floating-badge strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8rem;
  line-height: 1.3;
}

.floating-badge span {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}

@media (min-width: 900px) {
  .programs-band__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials {
  overflow: hidden;
}

.carousel {
  position: relative;
}

.carousel__viewport {
  overflow: hidden;
  padding: 0.5rem 0 1.25rem;
}

.carousel__track {
  display: flex;
  align-items: stretch;
  transition: transform 0.55s var(--ease);
}

.carousel__slide {
  flex: 0 0 100%;
  padding-inline: 0.75rem;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  height: 100%;
  padding: 2rem;
  background: var(--paper);
  border-top: 3px solid var(--amber);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card__mark {
  width: 34px;
  height: 34px;
  color: var(--amber);
  fill: currentColor;
  stroke: none;
}

.testimonial-card blockquote {
  margin: 0;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.75;
  color: var(--slate);
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.author__monogram {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
}

.author__name {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--emerald-deep);
  line-height: 1.3;
}

.author__role {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
}

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.carousel__btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--slate);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.carousel__btn:hover {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}

.carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline: 0.5rem;
}

.carousel__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
}

.carousel__dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: #c8d2d9;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.carousel__dot[aria-current="true"]::after {
  width: 24px;
  background: var(--emerald-deep);
}

@media (min-width: 768px) {
  .carousel__slide {
    flex-basis: 50%;
  }
}

@media (min-width: 1024px) {
  .carousel__slide {
    flex-basis: 33.3333%;
  }
}

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 11vw, 8.5rem);
  text-align: center;
  color: #fff;
  background: var(--slate-900);
}

.cta-band__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.cta-band__media img {
  width: 100%;
  height: 118%;
  margin-top: -9%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(18, 30, 42, 0.72),
    rgba(18, 30, 42, 0.88)
  );
}

.cta-band h2 {
  max-width: 900px;
  margin-inline: auto;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.005em;
}

.cta-band p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
}

.cta-band__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

.cta-band__actions .btn {
  width: min(90%, 320px);
}

@media (min-width: 600px) {
  .cta-band__actions {
    flex-direction: row;
    justify-content: center;
  }

  .cta-band__actions .btn {
    width: auto;
  }
}

/* Subtle parallax is applied by script.js via transform on the media image. */

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--slate);
  color: rgba(255, 255, 255, 0.82);
}

.footer__grid {
  display: grid;
  min-width: 0;
  gap: 2.5rem;
  padding-block: clamp(3rem, 6vw, 4.5rem) 3rem;
}

.footer__brand img {
  width: auto;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
}

.footer__brand p {
  max-width: 36ch;
  margin-top: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.76);
}

.footer__heading {
  margin-bottom: 1rem;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.footer__list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.footer__list a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__list a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.footer__contact {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

.footer__contact svg {
  flex: none;
  margin-top: 0.18rem;
  color: var(--amber);
}

.footer__contact a {
  color: inherit;
  text-decoration: none;
}

.footer__contact a:hover {
  color: var(--amber);
  text-decoration: underline;
}

.footer__cta .btn {
  width: 100%;
}

.footer__consult {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  margin-top: 0.6rem;
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: normal;
  line-height: 1.4;
}

.footer__consult:hover {
  color: var(--amber);
}

.footer__consult svg {
  transition: transform 0.2s var(--ease);
}

.footer__consult:hover svg {
  transform: translateX(4px);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.socials a {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.socials a:hover {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
  transform: translateY(-2px);
}

.footer__bottom {
  background: var(--slate-800);
  padding-block: 1.35rem;
}

.footer__bottom-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.62);
}

.footer__bottom-inner p {
  margin: 0;
}

.footer__legal-note {
  max-width: 60ch;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__bottom-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.6fr 0.75fr 1fr 1fr;
    gap: 3rem;
  }

  .footer__brand {
    grid-column: auto;
  }

  .socials {
    justify-content: flex-start;
  }
}

/* --------------------------------------------------------------------------
   Page hero variants
   -------------------------------------------------------------------------- */

.page-intro {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
}

.page-intro__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

.page-intro h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.5rem);
}

.page-intro p {
  max-width: 62ch;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.page-intro__aside {
  padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--amber);
  background: var(--mist);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--muted);
}

@media (min-width: 900px) {
  .page-intro__grid {
    grid-template-columns: 1.4fr 0.6fr;
    gap: 4rem;
  }
}

/* --------------------------------------------------------------------------
   Story / values
   -------------------------------------------------------------------------- */

.story__grid {
  display: grid;
  min-width: 0;
  gap: 2.5rem;
}

.story__aside h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.story__aside p {
  margin-top: 1rem;
  color: var(--muted);
}

.story__body p + p {
  margin-top: 1.15rem;
}

.story__body p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.pullquote {
  margin: 2rem 0;
  padding: 0.35rem 0 0.35rem 1.4rem;
  border-left: 4px solid var(--amber);
  font-family: var(--font-head);
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--slate);
}

.values {
  display: grid;
  gap: 0.85rem;
  margin-top: 2rem;
  list-style: none;
}

.values li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--mist);
  border-radius: var(--radius-sm);
}

.values svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--emerald-deep);
}

.values strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--ink);
}

.values span {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

@media (min-width: 600px) {
  .values {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .story__grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
    align-items: start;
  }

  .story__aside {
    position: sticky;
    top: 110px;
  }
}

/* --------------------------------------------------------------------------
   Board
   -------------------------------------------------------------------------- */

.board__grid {
  display: grid;
  gap: 1.5rem;
}

.member-card {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.member__avatar {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.member__avatar--green {
  background: var(--emerald-deep);
}

.member__avatar--amber {
  background: var(--amber);
  color: var(--slate-900);
}

.member__avatar--brown {
  background: var(--saddle);
}

.member-card h3 {
  font-size: 1.1rem;
}

.member__role {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald-deep);
}

.member__bio {
  margin-top: 0.8rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 600px) {
  .board__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .board__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .board__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
    margin-inline: auto;
  }
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: #fff;
}

.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 15% 20%,
      rgba(76, 175, 80, 0.18),
      transparent 45%
    ),
    radial-gradient(
      ellipse at 85% 85%,
      rgba(255, 193, 7, 0.12),
      transparent 50%
    );
  pointer-events: none;
}

.stats__grid {
  position: relative;
  display: grid;
  gap: 2.25rem;
  text-align: center;
}

.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--amber);
}

.stat__label {
  display: block;
  margin-top: 0.8rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.82);
}

.stat__note {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (min-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat + .stat {
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }
}

/* --------------------------------------------------------------------------
   Join CTA
   -------------------------------------------------------------------------- */

.join {
  background: var(--emerald-soft);
  text-align: center;
}

.join h2 {
  max-width: 760px;
  margin-inline: auto;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
}

.join p {
  max-width: 620px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.join__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --------------------------------------------------------------------------
   Programs page
   -------------------------------------------------------------------------- */

.overview__grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.overview__grid > * {
  min-width: 0;
}

.overview__grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.overview__grid p {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.accreditation-card {
  min-width: 0;
  padding: 2rem;
  background: var(--mist);
  border-top: 4px solid var(--emerald-deep);
  border-radius: var(--radius-sm);
}

.accreditation-card h3 {
  font-size: 1.1rem;
}

.accreditation-card ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  list-style: none;
}

.accreditation-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.accreditation-card svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--emerald-deep);
}

@media (min-width: 900px) {
  .overview__grid {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
  }
}

.program-grid {
  display: grid;
  gap: 1.5rem;
}

.program-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.program-card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.program-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.program-card h3 {
  font-size: 1.12rem;
}

.program-card > p {
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.program-card__more {
  display: none;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--body);
}

.program-card__more.is-open {
  display: block;
}

.program-card .link-arrow {
  margin-top: auto;
  padding-top: 0.9rem;
  justify-content: flex-start;
}

.program-card .link-arrow svg {
  transition: transform 0.2s var(--ease);
}

.program-card .link-arrow[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

@media (min-width: 768px) {
  .program-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1200px) {
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* BIA alert ---------------------------------------------------------------- */

.bia__box {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--amber);
  border: 2px solid var(--slate);
  border-radius: var(--radius);
  color: var(--slate-900);
}

.bia__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--amber);
}

.bia__box h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  color: var(--slate-900);
}

.bia__box p {
  margin-top: 0.5rem;
  color: #2c3a45;
  font-size: 0.98rem;
  line-height: 1.7;
}

.bia__box .btn {
  justify-self: start;
}

@media (min-width: 900px) {
  .bia__box {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Get involved
   -------------------------------------------------------------------------- */

.why__grid {
  display: grid;
  min-width: 0;
  gap: 2.5rem;
  align-items: start;
}

.why__grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.why__grid > div > p {
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.8;
}

.why__reasons {
  display: grid;
  gap: 1.25rem;
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.reason:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.reason__num {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--emerald-deep);
  padding-top: 0.2rem;
}

.reason h3 {
  font-size: 1.05rem;
}

.reason p {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 900px) {
  .why__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
}

.volunteer-grid {
  display: grid;
  gap: 1.5rem;
}

.volunteer-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.volunteer-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.volunteer-card__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--saddle);
}

.volunteer-card h3 {
  font-size: 1.12rem;
}

.volunteer-card p {
  flex: 1;
  margin-top: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.volunteer-card .link-arrow {
  margin-top: 1rem;
  justify-content: flex-start;
}

@media (min-width: 600px) {
  .volunteer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .volunteer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Donation options --------------------------------------------------------- */

.give {
  position: relative;
  overflow: hidden;
  background: var(--slate);
  color: #fff;
}

.give::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse at 85% 20%,
      rgba(76, 175, 80, 0.2),
      transparent 48%
    ),
    radial-gradient(
      ellipse at 10% 90%,
      rgba(255, 193, 7, 0.12),
      transparent 50%
    );
  pointer-events: none;
}

.give__grid {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.give h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
}

.give p {
  color: rgba(255, 255, 255, 0.84);
}

.give__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.give__amounts {
  display: grid;
  gap: 0.85rem;
}

.give-amount {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: #fff;
  transition: background-color 0.2s ease, border-color 0.2s ease,
    transform 0.2s ease;
}

.give-amount:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--amber);
  transform: translateX(4px);
}

.give-amount strong {
  font-family: var(--font-head);
  font-size: 1.35rem;
  color: var(--amber);
  line-height: 1;
}

.give-amount span {
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.give__amounts--single {
  align-content: start;
}

.give__amounts--single .give-amount {
  grid-template-columns: 1fr;
  gap: 0.4rem;
  align-items: start;
}

.give__amounts--single .give-amount strong {
  font-size: 1.5rem;
}

.give__note {
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
}

@media (min-width: 900px) {
  .give__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
  }
}

.partner {
  background: var(--mist);
}

.partner__panel {
  display: grid;
  min-width: 0;
  gap: 1.75rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--emerald-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.partner__panel h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.partner__panel p {
  max-width: 62ch;
  color: var(--muted);
}

@media (min-width: 900px) {
  .partner__panel {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 3rem;
  }
}

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */

.blog-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.search-field {
  position: relative;
  width: 100%;
  max-width: 420px;
}

.search-field svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.search-field input {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  border: 1px solid #d5dee4;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
}

.search-field input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28);
  outline: none;
}

.filter-chips {
  display: none;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-select {
  display: block;
}

.chip {
  min-height: 44px;
  padding: 0.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--paper);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.chip:hover {
  border-color: var(--slate);
}

.chip[aria-pressed="true"] {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}

@media (min-width: 768px) {
  .blog-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1.5rem;
  }

  .filter-chips {
    display: flex;
    justify-content: flex-end;
  }

  .filter-select {
    display: none;
  }
}

.featured-grid {
  display: grid;
  gap: 1.5rem;
}

.featured-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #fff;
}

.featured-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(18, 30, 42, 0.08) 0%,
    rgba(18, 30, 42, 0.55) 55%,
    rgba(18, 30, 42, 0.9) 100%
  );
}

.featured-card:hover img {
  transform: scale(1.04);
}

.featured-card__content {
  display: grid;
  gap: 0.7rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.featured-card h3 {
  color: #fff;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.featured-card p {
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.65;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--amber);
  color: var(--slate-900);
  font-family: var(--font-head);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.74);
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

@media (min-width: 900px) {
  .featured-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.post-card__media {
  overflow: hidden;
}

.post-card__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.post-card:hover .post-card__media img {
  transform: scale(1.04);
}

.post-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.5rem;
}

.post-card__body .tag {
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.post-card h3 {
  font-size: 1.12rem;
  line-height: 1.35;
}

.post-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

.post-card .meta {
  color: var(--muted);
  font-size: 0.72rem;
}

.post-card .link-arrow {
  margin-top: auto;
  padding-top: 0.6rem;
  justify-content: flex-start;
}

@media (min-width: 600px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-empty {
  display: none;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--muted);
}

.blog-empty.is-visible {
  display: block;
}

.blog-empty strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-head);
  color: var(--ink);
}

/* Newsletter --------------------------------------------------------------- */

.newsletter {
  background: var(--amber-soft);
}

.newsletter__panel {
  display: grid;
  min-width: 0;
  gap: 2rem;
  align-items: center;
}

.newsletter h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.newsletter p {
  margin-top: 0.75rem;
  color: #4a4a3a;
}

.newsletter__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.newsletter__form .field {
  flex: 1;
}

.newsletter__form .btn {
  flex: none;
}

.newsletter__note {
  font-size: 0.78rem;
  color: #5c5a45;
}

@media (min-width: 600px) {
  .newsletter__form {
    flex-direction: row;
    align-items: flex-end;
  }
}

@media (min-width: 900px) {
  .newsletter__panel {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Article dialog ----------------------------------------------------------- */

.article-dialog {
  width: calc(100% - 2rem);
  max-width: 720px;
  max-height: 86vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--body);
  box-shadow: var(--shadow-lg);
}

.article-dialog::backdrop {
  background: rgba(18, 30, 42, 0.68);
}

.article-dialog__inner {
  max-height: 86vh;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  overflow-y: auto;
}

.article-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.article-dialog__close {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--slate);
}

.article-dialog__close:hover {
  background: var(--mist);
}

.article-dialog__meta {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald-deep);
}

.article-dialog h2 {
  margin-top: 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.article-dialog__body p {
  margin-top: 1rem;
  font-size: 0.98rem;
  line-height: 1.8;
}

.article-dialog__body h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.article-dialog__disclaimer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.info-grid {
  display: grid;
  gap: 1rem;
}

.info-card {
  display: block;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
}

a.info-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

a.info-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
  transition: transform 0.2s ease;
}

a.info-card:hover .info-card__icon {
  transform: scale(1.08);
}

.info-card h3 {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-card p,
.info-card__value {
  margin-top: 0.35rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--slate);
}

a.info-card:hover .info-card__value {
  color: var(--emerald-deep);
}

@media (min-width: 600px) {
  .info-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .info-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .info-grid--three {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1000px;
    margin-inline: auto;
  }
}

.contact-layout {
  display: grid;
  min-width: 0;
  gap: 2.5rem;
}

.contact-aside {
  padding: 2rem;
  background: var(--mist);
  border-top: 4px solid var(--amber);
  border-radius: var(--radius-sm);
}

.contact-aside h3 {
  font-size: 1.15rem;
}

.contact-aside p {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-aside ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.25rem;
  list-style: none;
}

.contact-aside li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--body);
}

.contact-aside svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--emerald-deep);
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.25fr 0.75fr;
    gap: 4rem;
    align-items: start;
  }
}

.map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.map-head h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.map-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--mist);
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-card {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  max-width: 330px;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.map-card__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--emerald-soft);
  color: var(--emerald-deep);
}

.map-card strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.35;
}

.map-card p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--muted);
}

.map-card .link-arrow {
  margin-top: 0.35rem;
  font-size: 0.68rem;
}

@media (max-width: 599px) {
  .map-card {
    position: static;
    max-width: none;
    margin: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: none;
    border-top: 1px solid var(--line);
  }

  .map-wrap iframe {
    height: 320px;
  }
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form {
  display: grid;
  gap: 1.15rem;
}

.form__row {
  display: grid;
  gap: 1.15rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field label {
  font-family: var(--font-head);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.field .req {
  color: var(--saddle);
  margin-left: 0.15rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 48px;
  padding: 0.8rem 1rem;
  border: 1px solid #d5dee4;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
  min-height: 160px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a98a4;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.28);
  outline: none;
}

.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: var(--danger);
}

.field__error {
  display: none;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--danger);
}

.field.has-error .field__error {
  display: block;
}

.form__note {
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.form-success {
  display: none;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--emerald);
  border-left: 4px solid var(--emerald-deep);
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
  color: var(--slate-900);
  font-size: 0.9rem;
  line-height: 1.6;
}

.form-success.is-visible {
  display: flex;
}

.form-success svg {
  flex: none;
  margin-top: 0.15rem;
  color: var(--emerald-deep);
}

@media (min-width: 768px) {
  .form__row--two {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------------------------------
   Donate page
   -------------------------------------------------------------------------- */

.donate-layout {
  display: grid;
  min-width: 0;
  gap: 2.5rem;
  align-items: start;
}

.donate-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.donate-card h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.donate-card > p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.donate-callout {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 1.75rem 0;
  padding: 1.25rem;
  background: var(--emerald-soft);
  border-radius: var(--radius);
}

.donate-callout__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--emerald-deep);
  color: #fff;
}

.donate-callout h3 {
  font-size: 1.05rem;
}

.donate-callout p {
  margin-top: 0.35rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--body);
}

.donate-alt {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.donate-alt h3 {
  font-size: 1rem;
}

.donate-alt p {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.donate-alt__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.frequency {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.75rem;
  padding: 0.35rem;
  background: var(--mist);
  border-radius: var(--radius-pill);
}

.frequency label {
  position: relative;
}

.frequency input,
.amount input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.frequency span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.frequency input:checked + span {
  background: var(--slate);
  color: #fff;
}

.frequency input:focus-visible + span {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

.amount-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.amount span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  min-height: 86px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.amount small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.amount input:checked + span {
  border-color: var(--emerald-deep);
  background: var(--emerald-soft);
  box-shadow: inset 0 0 0 1px var(--emerald-deep);
}

.amount input:focus-visible + span {
  outline: 3px solid var(--emerald);
  outline-offset: 2px;
}

.custom-amount {
  margin-top: 1rem;
}

.input-prefix {
  position: relative;
}

.input-prefix span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--muted);
}

.input-prefix input {
  padding-left: 2rem;
}

.impact-note {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  background: var(--amber-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  color: #3f3a28;
}

.donate-card .btn--block {
  margin-top: 1.5rem;
}

.donation-result {
  display: none;
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--emerald);
  border-radius: var(--radius-sm);
  background: var(--emerald-soft);
}

.donation-result.is-visible {
  display: block;
}

.donation-result h3 {
  font-size: 1.1rem;
  color: var(--slate-900);
}

.donation-result p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--body);
}

.donation-result__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.donation-result__actions .btn {
  min-height: 44px;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
}

.donate-aside {
  display: grid;
  gap: 1.5rem;
}

.aside-card {
  padding: 1.75rem;
  background: var(--mist);
  border-radius: var(--radius);
  border-top: 4px solid var(--emerald-deep);
}

.aside-card--amber {
  border-top-color: var(--amber);
}

.aside-card h3 {
  font-size: 1.1rem;
}

.aside-card ul {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
  list-style: none;
}

.aside-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.aside-card svg {
  flex: none;
  margin-top: 0.2rem;
  color: var(--emerald-deep);
}

.aside-card--amber svg {
  color: var(--saddle);
}

.give-grid {
  display: grid;
  gap: 1.5rem;
}

.give-card {
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.give-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--amber-soft);
  color: var(--saddle);
}

.give-card h3 {
  font-size: 1.05rem;
}

.give-card p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--muted);
}

@media (min-width: 768px) {
  .give-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .donate-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
  }
}


/* Grid children must be allowed to shrink below their content width. */
.give__grid > *,
.contact-layout > *,
.donate-layout > *,
.why__grid > *,
.story__grid > *,
.programs-band__grid > *,
.mission__grid > *,
.footer__grid > *,
.newsletter__panel > *,
.partner__panel > *,
.overview__grid > *,
.pillars__grid > *,
.program-grid > *,
.volunteer-grid > *,
.board__grid > *,
.info-grid > *,
.featured-grid > *,
.blog-grid > *,
.form__row > * {
  min-width: 0;
}

/* --------------------------------------------------------------------------
   Reveal animations
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

/* Mobile keeps reveals vertical so off-screen offsets never create
   horizontal scroll before the element animates in. */
.js [data-reveal="left"],
.js [data-reveal="right"] {
  transform: translateY(26px);
}

@media (min-width: 768px) {
  .js [data-reveal="left"] {
    transform: translateX(-34px);
  }

  .js [data-reveal="right"] {
    transform: translateX(34px);
  }
}

.js [data-reveal="scale"] {
  transform: scale(0.96);
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.delay-1 {
  --reveal-delay: 100ms;
}

.delay-2 {
  --reveal-delay: 200ms;
}

.delay-3 {
  --reveal-delay: 300ms;
}

/* Hero entrance */
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero__kicker,
  .hero h1,
  .hero__lead,
  .hero__actions {
    animation: heroIn 0.8s var(--ease) both;
  }

  .hero h1 {
    animation-delay: 0.12s;
  }

  .hero__lead {
    animation-delay: 0.24s;
  }

  .hero__actions {
    animation-delay: 0.36s;
  }

  .js .bia__box.is-visible {
    animation: biaPulse 2s ease-out 3;
  }

  .js .cta-band.is-visible h2 {
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  }

  .js .cta-band.is-visible p {
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
  }

  .js .cta-band.is-visible .cta-band__actions {
    animation: bounceIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.24s both;
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(0.97);
  }
  60% {
    opacity: 1;
    transform: translateY(-4px) scale(1.005);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes biaPulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(52, 73, 94, 0.28);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(52, 73, 94, 0);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .cta-band {
    background-attachment: scroll;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .mobile-menu,
  .cta-band,
  .site-footer,
  .carousel__controls,
  .skip-link {
    display: none !important;
  }

  body {
    color: #000;
  }

  .hero {
    min-height: 0;
    color: #000;
  }

  .hero::before {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   Article pages (blog/<slug>.html)
   -------------------------------------------------------------------------- */

.article-page {
  max-width: 720px;
  margin-inline: auto;
}

.article-page p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.8;
}

.article-page h2,
.article-page h3,
.article-page h4 {
  margin-top: 1.75rem;
  line-height: 1.3;
}

.article-page h3 {
  font-size: 1.2rem;
}

.article-page a {
  color: var(--emerald-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-page ul,
.article-page ol {
  margin-top: 1rem;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.article-page blockquote {
  margin-top: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-left: 3px solid var(--emerald);
  background: var(--mist);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-page img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.article-page__disclaimer {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}

.article-page__back {
  margin-top: 1.5rem;
}
