:root {
  /* Project Giveback brand palette */
  --navy: #0F294B;
  --navy-900: #0F294B;
  --navy-800: #173A69;
  --navy-700: #2D4D7B;
  --red: #9E1D20;
  --red-800: #7E1618;
  --red-600: #C0282B;
  --gray: #6D6E71;
  --gray-600: #8A8B8E;
  --gray-100: #EEEEEF;
  --gray-050: #F5F5F7;
  --white: #FFFFFF;

  /* Darker gray reserved for body text to clear WCAG 1.4.3 (AA) with margin.
     #595A5C → ~6.7:1 contrast on white. */
  --text-muted: #595A5C;

  /* Semantic aliases (kept so existing rules keep working) */
  --ink-950: var(--navy-900);
  --ink-900: var(--navy-800);
  --ink-700: var(--text-muted);
  --paper: var(--white);
  --paper-strong: var(--gray-050);
  --gold: var(--red);
  --rust: var(--red);
  --rust-deep: var(--red-800);
  --teal: var(--navy-700);

  --line: rgba(15, 41, 75, 0.14);
  --line-strong: rgba(15, 41, 75, 0.22);
  --shadow: 0 20px 60px rgba(15, 41, 75, 0.14);
  --shadow-sm: 0 12px 30px rgba(15, 41, 75, 0.08);
  --shadow-red: 0 14px 30px rgba(158, 29, 32, 0.28);
  --radius: 24px;
  --radius-sm: 16px;
}

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--navy-900);
  background:
    radial-gradient(circle at top left, rgba(158, 29, 32, 0.08), transparent 32%),
    radial-gradient(circle at 85% 8%, rgba(15, 41, 75, 0.10), transparent 30%),
    radial-gradient(circle at 20% 95%, rgba(15, 41, 75, 0.05), transparent 40%),
    linear-gradient(180deg, #ffffff 0%, var(--gray-050) 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--navy-800);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: var(--red);
}

/* Prose / content links: underline so they are distinguishable from
   surrounding text without relying on color alone (SC 1.4.1) */
main p a,
main li a:not(.btn),
.callout a,
.form-note a,
.story-quote a,
.hero-panel p a,
.hero-note a,
.footer-shell li a,
.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

main p a:hover,
main li a:not(.btn):hover,
.footer-shell li a:hover,
.footer-bottom a:hover {
  text-decoration-thickness: 2.5px;
}

/* Primary header nav only — footer <nav> lists stay underlined like prose links */
.site-header nav ul li a:not(.btn) {
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.55em;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.08;
  color: var(--navy-900);
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

ul {
  margin: 0;
  padding-left: 1.2rem;
}

::selection {
  background: var(--red);
  color: var(--white);
}

:focus {
  outline: none;
}

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

/* Higher-contrast focus ring for dark / red backgrounds, where a red ring would
   not meet WCAG 1.4.11 / 2.4.11 non-text contrast. Uses white outline plus a
   navy halo so it stays visible on any surface in the site. */
.hero-panel :focus-visible,
.impact-band :focus-visible,
.cta-band :focus-visible,
.nav-links a.active:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.social-links a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(15, 41, 75, 0.45);
}

/* ---------- Accessibility utilities ---------- */

/* Visually hidden, available to assistive tech (screen readers) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Skip-to-content link: appears only when focused */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--navy-900);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(15, 41, 75, 0.35);
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  outline: 3px solid var(--red);
  outline-offset: 2px;
  text-decoration: none;
  color: var(--white);
}

/* Main container can receive focus after skip-link activation without a
   visible outline on the whole page */
main:focus {
  outline: none;
}

/* Required-field marker used inside form labels */
.req {
  color: var(--red);
  font-weight: 900;
  margin-left: 4px;
}

.form-required-note {
  margin: 0 0 8px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.form-optional {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9em;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(160%);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 41, 75, 0.10);
  box-shadow: 0 1px 0 rgba(158, 29, 32, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand img {
  width: 220px;
  max-width: 100%;
}

.brand-copy {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--navy-900);
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
  background: rgba(158, 29, 32, 0.08);
  color: var(--red);
  text-decoration: none;
}

.nav-links a.active {
  background: var(--navy-900);
  color: var(--white);
  text-decoration: none;
}

.nav-cta .btn {
  margin-left: 6px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(15, 41, 75, 0.07);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
  content: "";
}

.menu-toggle span::before {
  position: absolute;
  top: -7px;
  left: 0;
}

.menu-toggle span::after {
  position: absolute;
  top: 7px;
  left: 0;
}

.menu-toggle[aria-expanded="true"] span {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero {
  position: relative;
  padding: 96px 0 84px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 20px 20px auto auto;
  width: min(40vw, 420px);
  height: min(40vw, 420px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 29, 32, 0.18), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 41, 75, 0.10), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow,
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(158, 29, 32, 0.10);
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero p.lead,
.section-intro {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.hero-panel {
  position: relative;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(15, 41, 75, 0.98), rgba(23, 58, 105, 0.95)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
  color: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: -60px;
  left: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 29, 32, 0.55), transparent 70%);
}

.hero-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 29, 32, 0.40), transparent 70%);
}

.hero-panel h2,
.hero-panel h3,
.hero-panel p,
.hero-panel li,
.hero-panel .stat-label {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.hero-panel .panel-tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(158, 29, 32, 0.40);
}

.stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
}

.stat-value {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--white);
}

.stat-label {
  font-size: 0.88rem;
  /* ~7:1 on stat tile surfaces for WCAG 1.4.3 */
  color: rgba(255, 255, 255, 0.95);
}

section {
  padding: 84px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--gray-050) 0%, var(--white) 100%);
  border-top: 1px solid rgba(15, 41, 75, 0.06);
  border-bottom: 1px solid rgba(15, 41, 75, 0.06);
}

.section-header {
  max-width: 740px;
  margin-bottom: 36px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card,
.feature-block,
.story-card,
.contact-card,
.form-card,
.program-detail,
.impact-band,
.cta-band {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.card,
.story-card,
.program-detail,
.contact-card,
.form-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card::before,
.story-card:not(.story-card)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy-900), var(--red));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.card:hover,
.story-card:hover,
.program-detail:hover,
.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(158, 29, 32, 0.28);
}

.card:hover::before {
  opacity: 1;
}

.card h3,
.story-card h3,
.program-detail h3 {
  margin-bottom: 10px;
}

.card p,
.story-card p,
.program-detail p {
  color: var(--text-muted);
}

.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--red));
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 41, 75, 0.25);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 28px;
  align-items: center;
}

.story-card {
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 29, 32, 0.14), transparent 70%);
  pointer-events: none;
}

.story-quote {
  position: relative;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy-900);
}

blockquote.story-quote {
  margin-inline: 0;
  margin-bottom: 0;
  padding-inline: 0;
  border-inline: 0;
}

blockquote.story-quote p {
  margin: 0;
}

.list-checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}

.list-checks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.hero-panel .list-checks li {
  color: var(--white);
}

.list-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px rgba(158, 29, 32, 0.18);
}

.impact-band {
  padding: 34px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--red-800) 100%);
  color: var(--white);
  border: 0;
}

.impact-band::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(158, 29, 32, 0.55), transparent 70%);
  pointer-events: none;
}

.impact-band > * {
  position: relative;
  z-index: 1;
}

.impact-band h2,
.impact-band p,
.impact-band li {
  color: var(--white);
}

.impact-band .grid-3 {
  margin-top: 24px;
}

.impact-pill {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.impact-pill strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.15rem;
  font-family: "Fraunces", Georgia, serif;
}

.program-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-nav a {
  display: block;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.program-nav a:hover {
  transform: translateY(-2px);
  text-decoration: none;
  border-color: var(--red);
  box-shadow: 0 14px 30px rgba(158, 29, 32, 0.15);
}

.program-nav strong {
  display: block;
  margin-bottom: 6px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.2rem;
  color: var(--navy-900);
}

.program-stack {
  display: grid;
  gap: 20px;
}

.program-detail {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 20px;
}

.program-mark {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.program-mark span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--navy-900), var(--red));
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  box-shadow: 0 10px 24px rgba(15, 41, 75, 0.28);
}

.cta-band {
  padding: 36px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-800) 60%, var(--navy-900) 100%);
  color: var(--white);
  border: 0;
}

.cta-band::before {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2,
.cta-band p {
  color: var(--white);
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--red);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.cta-band .btn-primary:hover {
  background: var(--white);
  color: var(--red-800);
}

.cta-band .btn-ghost {
  background: transparent;
  color: var(--white);
  /* Stronger border for WCAG 1.4.11 on red gradient */
  border: 2px solid rgba(255, 255, 255, 0.72);
}

.cta-band .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
}

.contact-grid,
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 24px;
}

.contact-details-full .contact-card {
  width: 100%;
}

.contact-details-full .contact-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-details-full .contact-row {
  grid-template-columns: 52px minmax(0, 1fr);
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.contact-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.contact-row .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy-900), var(--red));
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(15, 41, 75, 0.22);
}

.contact-row .label {
  display: block;
  margin-bottom: 2px;
  color: var(--red);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy-900);
  font-weight: 800;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.social-links a:hover {
  text-decoration: none;
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
}

.form-card form {
  display: grid;
  gap: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: block;
  font-weight: 800;
  color: var(--navy-900);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  /* Navy-tinted border at ~3.5:1 on white, meets WCAG 1.4.11 non-text contrast */
  border: 1px solid rgba(15, 41, 75, 0.55);
  border-radius: 16px;
  background: var(--white);
  color: var(--navy-900);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--red);
  outline: 3px solid var(--red);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--white), 0 0 0 5px rgba(15, 41, 75, 0.35);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-meta {
  padding: 26px 0 52px;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(180px, 0.8fr));
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.footer-shell::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-900) 0%, var(--red) 50%, var(--navy-900) 100%);
}

.footer-brand img {
  width: 220px;
  max-width: 100%;
  margin-bottom: 14px;
}

.footer-shell h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--navy-900);
}

.footer-shell ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-shell li {
  margin-bottom: 8px;
  color: var(--text-muted);
}

.footer-shell a {
  color: var(--navy-800);
}

.footer-shell a:hover {
  color: var(--red);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.footer-bottom nav[aria-label='Social media'] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-800) 100%);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  box-shadow: 0 18px 36px rgba(158, 29, 32, 0.36);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  color: var(--white);
  box-shadow: 0 12px 26px rgba(15, 41, 75, 0.28);
}

.btn-secondary:hover {
  box-shadow: 0 18px 36px rgba(15, 41, 75, 0.36);
}

.btn-ghost {
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid rgba(15, 41, 75, 0.16);
}

.btn-ghost:hover {
  border-color: var(--red);
  color: var(--red);
}

.hero .btn-ghost {
  background: rgba(255, 255, 255, 0.95);
}

.callout {
  padding: 18px 20px;
  border-left: 4px solid var(--red);
  border-radius: 18px;
  background: rgba(158, 29, 32, 0.06);
  color: var(--navy-900);
}

.muted {
  color: var(--text-muted);
}

@media (max-width: 1080px) {
  .hero-inner,
  .split,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .grid-3,
  .program-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-details-full .contact-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a,
  .nav-cta .btn {
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .nav-cta .btn {
    margin-left: 0;
  }

  .grid-2,
  .grid-3,
  .program-nav,
  .stats-grid,
  .field-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

  .contact-details-full .contact-list {
    grid-template-columns: 1fr;
  }

  .program-detail {
    grid-template-columns: 1fr;
  }

  .program-mark {
    justify-content: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(1160px, calc(100% - 28px));
  }

  .hero {
    padding-top: 74px;
  }

  section {
    padding: 68px 0;
  }

  .hero-panel,
  .card,
  .story-card,
  .program-detail,
  .contact-card,
  .form-card,
  .impact-band,
  .cta-band {
    padding: 22px;
  }

  .brand img,
  .footer-brand img {
    width: 190px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }

  .nav-links a,
  .menu-toggle span,
  .menu-toggle span::before,
  .menu-toggle span::after,
  .card,
  .story-card,
  .contact-card,
  .form-card,
  .program-detail,
  .program-nav a,
  .btn,
  .social-links a,
  input,
  select,
  textarea {
    transition: none;
  }

  .card:hover,
  .story-card:hover,
  .contact-card:hover,
  .form-card:hover,
  .program-detail:hover,
  .btn:hover,
  .program-nav a:hover {
    transform: none;
  }

  .menu-toggle[aria-expanded="true"] span::before,
  .menu-toggle[aria-expanded="true"] span::after {
    transition: none;
  }
}
