/*
Theme Name: Hope Empowerment
Theme URI: https://hopeempowerment.co.za/
Author: Hope Empowerment
Description: A fast, accessible custom theme for Hope Empowerment in Hopefield, South Africa.
Version: 1.0.8
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: hope-empowerment
*/

:root {
  --ink: #12242d;
  --ink-soft: #334a55;
  --orange: #f47b20;
  --orange-dark: #cc5710;
  --gold: #ffb23f;
  --cream: #fff9f1;
  --sand: #f5ecdf;
  --mist: #edf3f1;
  --white: #ffffff;
  --green: #486c5b;
  --line: rgba(18, 36, 45, 0.13);
  --shadow: 0 24px 70px rgba(18, 36, 45, 0.12);
  --shadow-soft: 0 14px 36px rgba(18, 36, 45, 0.09);
  --radius: 1.4rem;
  --radius-sm: 0.85rem;
  --container: min(1180px, calc(100% - 2rem));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--orange-dark);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ink);
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

::selection {
  color: var(--ink);
  background: #ffd89d;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.narrow {
  width: min(780px, 100%);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: 0.5rem;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: var(--orange-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.6rem;
  height: 0.18rem;
  background: var(--orange);
  border-radius: 2rem;
  content: "";
}

.display,
h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  font-size: clamp(2.9rem, 7vw, 6.7rem);
}

h2 {
  font-size: clamp(2.1rem, 4.5vw, 4.1rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

h4 {
  font-size: 1.08rem;
}

p {
  margin: 0 0 1.1rem;
}

.lead {
  max-width: 760px;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.72;
}

.section {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8.5rem);
}

.section-sm {
  padding-block: clamp(3.2rem, 6vw, 5.5rem);
}

.section-white {
  background: var(--white);
}

.section-mist {
  background: var(--mist);
}

.section-dark {
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
}

.section-dark h2,
.section-dark h3,
.section-dark .lead {
  color: var(--white);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.section-head h2,
.section-head p {
  margin-bottom: 0;
}

.accent {
  color: var(--orange);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  margin-top: 1.7rem;
}

.btn,
.wp-block-button__link {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.84rem 1.25rem;
  color: var(--white);
  background: var(--orange-dark);
  border: 2px solid var(--orange-dark);
  border-radius: 999px;
  box-shadow: none;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover,
.wp-block-button__link:hover {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn-light {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.btn-light:hover {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn-ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(18, 36, 45, 0.3);
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link::after {
  content: "→";
  transition: transform 180ms ease;
}

.text-link:hover::after {
  transform: translateX(0.25rem);
}

/* Header */
.topbar {
  color: rgba(255, 255, 255, 0.78);
  background: #0a171d;
  font-size: 0.76rem;
  font-weight: 650;
}

.topbar .container {
  display: flex;
  min-height: 2.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar p {
  margin: 0;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(255, 249, 241, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.admin-bar .site-header {
  top: 32px;
}

.header-inner {
  display: flex;
  min-height: 5.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
}

.site-nav li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 0.85rem 0.75rem;
  color: var(--ink);
  border-radius: 0.5rem;
  font-size: 0.84rem;
  font-weight: 760;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current-menu-ancestor > a {
  color: var(--orange-dark);
  background: rgba(244, 123, 32, 0.08);
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% - 0.2rem);
  left: 0;
  display: grid;
  visibility: hidden;
  width: min(320px, 90vw);
  padding: 0.6rem;
  gap: 0.1rem;
  opacity: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  transform: translateY(0.4rem);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.site-nav .sub-menu a {
  padding: 0.75rem 0.8rem;
}

.header-donate {
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.27rem auto;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-open .nav-toggle span {
  opacity: 0;
}

.nav-open .nav-toggle::before {
  transform: translateY(0.29rem) rotate(45deg);
}

.nav-open .nav-toggle::after {
  transform: translateY(-0.29rem) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: min(830px, calc(100vh - 7rem));
  display: grid;
  overflow: hidden;
  align-items: end;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 43%;
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(6, 18, 24, 0.94) 0%, rgba(8, 23, 30, 0.76) 44%, rgba(8, 20, 27, 0.2) 78%),
    linear-gradient(0deg, rgba(6, 18, 24, 0.65) 0%, transparent 45%);
  content: "";
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 880px;
  padding-block: clamp(4rem, 8vw, 6rem) clamp(3rem, 6vw, 5rem);
}

.hero h1 {
  font-size: clamp(2.9rem, 6vw, 5.8rem);
}

.hero .eyebrow {
  color: #ffc476;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero .lead {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.84);
}

.hero-note {
  display: inline-flex;
  margin-top: 2rem;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.82rem;
  font-weight: 700;
}

.hero-note::before {
  width: 0.6rem;
  height: 0.6rem;
  background: var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0.4rem rgba(244, 123, 32, 0.2);
  content: "";
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.page-hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.26), transparent 66%);
  border-radius: 50%;
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 1;
  padding-block: clamp(5rem, 10vw, 9rem);
}

.page-hero h1 {
  max-width: 950px;
  margin-bottom: 1.3rem;
  color: var(--white);
  font-size: clamp(2.8rem, 7vw, 6.2rem);
}

.page-hero .lead {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.8);
}

/* Cards and layouts */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--sand);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.card:hover .card-media img {
  transform: scale(1.035);
}

.card-body {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.card-kicker {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--orange-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
}

.card p {
  color: var(--ink-soft);
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.program-card {
  position: relative;
  min-height: 400px;
  display: flex;
  grid-column: span 4;
  overflow: hidden;
  align-items: end;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  text-decoration: none;
}

.program-card.wide {
  grid-column: span 8;
}

.program-card img,
.program-card::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.program-card img {
  object-fit: cover;
  transition: transform 500ms ease;
}

.program-card::after {
  background: linear-gradient(0deg, rgba(8, 22, 29, 0.95) 0%, rgba(8, 22, 29, 0.08) 78%);
  content: "";
}

.program-card-content {
  position: relative;
  z-index: 1;
  padding: 1.75rem;
}

.program-card h3 {
  margin-bottom: 0.5rem;
  color: var(--white);
}

.program-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.program-card:hover {
  color: var(--white);
}

.program-card:hover img {
  transform: scale(1.045);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.split-image {
  position: relative;
}

.split-image img {
  width: 100%;
  min-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.split-image::after {
  position: absolute;
  z-index: -1;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 56%;
  height: 56%;
  background: var(--orange);
  border-radius: var(--radius);
  content: "";
}

.split-copy h2 {
  margin-bottom: 1.35rem;
}

.split-copy p {
  color: var(--ink-soft);
}

.check-list,
.plain-list {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  margin: 0.7rem 0;
  padding-left: 2rem;
  color: var(--ink-soft);
}

.check-list li::before {
  position: absolute;
  top: 0.22rem;
  left: 0;
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  color: var(--white);
  background: var(--orange);
  border-radius: 50%;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 900;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stat {
  padding: clamp(1.5rem, 4vw, 2.8rem);
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--orange-dark);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.stat span {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
}

.quote-card {
  position: relative;
  padding: clamp(2rem, 6vw, 4.6rem);
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quote-card::before {
  position: absolute;
  top: 1rem;
  right: 2.2rem;
  color: rgba(244, 123, 32, 0.25);
  content: "“";
  font-family: var(--serif);
  font-size: 10rem;
  line-height: 1;
}

.quote-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2.55rem);
  line-height: 1.42;
}

.quote-card cite {
  display: block;
  margin-top: 1.6rem;
  color: #ffc476;
  font-family: var(--font);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.info-box {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.info-box h3 {
  margin-bottom: 0.8rem;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.4rem 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.5rem 0.8rem;
  color: var(--ink-soft);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.timeline {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0;
  list-style: none;
  counter-reset: step;
}

.timeline li {
  position: relative;
  padding: 0 0 2.3rem 4rem;
  counter-increment: step;
}

.timeline li::before {
  position: absolute;
  top: -0.15rem;
  left: 0;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  color: var(--white);
  background: var(--orange-dark);
  border-radius: 50%;
  content: counter(step);
  font-weight: 900;
}

.timeline li::after {
  position: absolute;
  top: 2.65rem;
  bottom: 0;
  left: 1.36rem;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline li:last-child::after {
  display: none;
}

.timeline h3 {
  margin-bottom: 0.45rem;
}

.timeline p {
  color: var(--ink-soft);
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4.2rem);
  color: var(--white);
  background: var(--orange-dark);
  border-radius: var(--radius);
}

.cta-band::after {
  position: absolute;
  right: -5rem;
  bottom: -8rem;
  width: 25rem;
  height: 25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta-band h2 {
  max-width: 720px;
  margin-bottom: 0.65rem;
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.7rem);
}

.cta-band p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.notice {
  padding: 1rem 1.15rem;
  color: #5b4316;
  background: #fff2d6;
  border: 1px solid #efd59c;
  border-radius: var(--radius-sm);
}

.notice.success {
  color: #1d5139;
  background: #e9f7ef;
  border-color: #b8dfc8;
}

.notice.error {
  color: #7a2828;
  background: #fff0f0;
  border-color: #edbcbc;
}

/* Forms */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.contact-details {
  display: grid;
  margin: 1.7rem 0 0;
  padding: 0;
  gap: 1.15rem;
  list-style: none;
}

.contact-details strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-details a {
  color: var(--ink-soft);
  text-decoration: none;
}

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

.field {
  display: grid;
  gap: 0.42rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.form-label {
  color: var(--ink);
  font-size: 0.79rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: #fffdf9;
  border: 1px solid rgba(18, 36, 45, 0.23);
  border-radius: 0.7rem;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange-dark);
  box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.13);
  outline: 0;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.consent input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
  accent-color: var(--orange-dark);
}

.honeypot {
  position: absolute !important;
  overflow: hidden;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Article */
.article-body {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.article-body h2 {
  margin-top: 2.6rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.article-body h3 {
  margin-top: 2rem;
}

.article-body ul,
.article-body ol {
  padding-left: 1.35rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background: #09171d;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(250px, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  padding-block: clamp(3.5rem, 7vw, 6rem);
  gap: 2.4rem;
}

.footer-brand img {
  width: 105px;
  height: 105px;
  margin-bottom: 1rem;
  object-fit: contain;
}

.footer-brand p {
  max-width: 360px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  font-size: 0.83rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

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

.footer-links li {
  margin: 0.55rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffc476;
}

.footer-bottom {
  display: flex;
  min-height: 4.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}

/* 404 */
.error-page {
  display: grid;
  min-height: 65vh;
  place-items: center;
  text-align: center;
}

.error-page strong {
  display: block;
  color: var(--orange);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  line-height: 0.9;
}

/* Responsive */
@media (max-width: 1000px) {
  .section-head,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    gap: 1.2rem;
  }

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

  .program-card,
  .program-card.wide {
    grid-column: span 6;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    z-index: 999;
    top: 100%;
    right: 0;
    bottom: auto;
    left: 0;
    visibility: hidden;
    display: block;
    min-height: calc(100vh - 5.25rem);
    padding: 1rem;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    background: var(--cream);
    transform: translateY(-0.5rem);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .admin-bar .site-nav {
    top: 100%;
  }

  .nav-open .site-nav {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav ul {
    display: grid;
    align-items: stretch;
  }

  .site-nav a {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .site-nav .sub-menu {
    position: static;
    visibility: visible;
    width: 100%;
    padding: 0 0 0 1rem;
    opacity: 1;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
  }

  .site-nav .sub-menu a {
    font-size: 0.88rem;
  }

  .header-donate {
    display: inline-flex;
    margin: 1rem 0 0 0.8rem;
  }

  .hero {
    min-height: 720px;
  }

  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(6, 18, 24, 0.91), rgba(8, 23, 30, 0.58)),
      linear-gradient(0deg, rgba(6, 18, 24, 0.7), transparent 50%);
  }

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

  .stat:nth-child(2) {
    border-right: 0;
  }

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .cta-band-inner {
    display: grid;
  }
}

@media (max-width: 620px) {
  :root {
    --container: min(100% - 1.2rem, 1180px);
    --radius: 1.05rem;
  }

  .topbar .container {
    justify-content: center;
  }

  .topbar p:first-child {
    display: none;
  }

  .brand img {
    width: 64px;
    height: 64px;
  }

  .header-inner {
    min-height: 4.75rem;
  }

  .site-nav {
    top: 100%;
    min-height: calc(100vh - 4.75rem);
  }

  .admin-bar .site-nav {
    top: 100%;
  }

  h1 {
    font-size: clamp(2.65rem, 15vw, 4.4rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero {
    min-height: 670px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-content {
    padding-block: 5rem 3.6rem;
  }

  .button-row .btn {
    width: 100%;
  }

  .card-grid,
  .info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

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

  .program-card,
  .program-card.wide {
    min-height: 360px;
    grid-column: auto;
  }

  .field-full {
    grid-column: auto;
  }

  .split-image img {
    min-height: 390px;
  }

  .split-image::after {
    right: 0;
    bottom: -0.8rem;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .stat,
  .stat:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

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

  .footer-bottom {
    padding-block: 1rem;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .topbar,
  .site-header,
  .site-footer,
  .button-row,
  .cta-band {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }
}
