/* ============================================================
   FRONTIERS ZA — BRAND-COMPLIANT STYLESHEET v2
   
   BRAND GUIDE (p.14-16) REFERENCE:
   
   COLOURS (exact):
     Sage       #92ACA0   PMS 5575 C   Primary
     Navy       #00426A   PMS 2188 C   Primary
     Charcoal   #505759   PMS 445 C    Primary
     Mid Grey   #888B8D   Cool Gray 8  Secondary
     Light Grey #D9D9D6   Cool Gray 1  Secondary
     Yellow     #FFD100   PMS 109 C    Accent
   
   TYPOGRAPHY (brand guide p.15-16):
     Headline:  Avenir 95 Black — ALL CAPS, tight, sans-serif dominant
                → Google Fonts: Nunito 900 (closest free alternative)
     Subhead:   Mercury Display Roman/Bold — serif, mixed case
                → Google Fonts: Lora 600/700
     Body:      Avenir 45 Book / Mercury Text G1
                → Google Fonts: Nunito 400
   
   DESIGN RULES (brand guide p.10):
     "Flat is your friend." — NO GRADIENTS anywhere
     Simple 1–2 colour palette per element
     Personality: entrepreneurial, adventurous, provocative, relentless, kinetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500;1,600&family=Nunito:wght@300;400;600;700;800;900&display=swap');

/* ---- Variables ---- */
:root {
  --sage:        #92ACA0;
  --navy:        #00426A;
  --charcoal:    #505759;
  --mid-grey:    #888B8D;
  --light-grey:  #D9D9D6;
  --yellow:      #FFD100;

  --navy-deep:   #001e38;
  --sage-light:  #C2D3CE;
  --sage-dark:   #7a968a;
  --off-white:   #F0EFEC;

  --font-display: 'Nunito', sans-serif;
  --font-serif:   'Lora', serif;

  --max-w:       1140px;
  --radius:      0px;      /* brand is flat/sharp — no rounded corners */
  --t:           0.25s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 18px;
  color: var(--charcoal);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img   { max-width: 100%; display: block; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }

/* ================================================================
   TYPOGRAPHY — strictly following brand guide examples (pp.16)
   ================================================================ */

/* HEADLINE (Example 1: Avenir 95 Black)
   ALL CAPS · extra-bold weight · tight leading */
h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.0;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--navy);
}

/* SUBHEAD (Example 1: Mercury Display Roman = serif, mixed/upper case) */
h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  line-height: 1.3;
  color: var(--navy);
}

/* BODY HEADLINE (Example 2: Mercury Display Bold) */
h3 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.35;
  color: var(--navy);
}

h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/* BODY COPY (Example 1: Avenir 45 Book 18pt) */
p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.78;
  color: var(--charcoal);
  margin-bottom: 1.15rem;
}
p:last-child { margin-bottom: 0; }

/* LABEL — small uppercase Avenir identifier */
.label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
}

/* LEAD / INTRO — Mercury Text (body serif) */
.lead {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.8;
  color: var(--charcoal);
}

/* ================================================================
   LAYOUT
   ================================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section           { padding: 96px 24px; }
.section--sm       { padding: 64px 24px; }

/* Background tokens */
.bg-white    { background: #fff; }
.bg-off      { background: var(--off-white); }
.bg-navy     { background: var(--navy); }
.bg-deep     { background: var(--navy-deep); }
.bg-charcoal { background: var(--charcoal); }
.bg-sage     { background: var(--sage); }
.bg-yellow   { background: var(--yellow); }

/* Colour utilities */
.c-white    { color: #fff !important; }
.c-sage     { color: var(--sage) !important; }
.c-navy     { color: var(--navy) !important; }
.c-yellow   { color: var(--yellow) !important; }
.c-mid      { color: var(--mid-grey) !important; }

/* ================================================================
   RULE / DIVIDER — brand uses simple horizontal bars as accents
   ================================================================ */
.rule {
  display: block;
  width: 48px;
  height: 3px;
  background: var(--sage);
  border: none;
  margin: 20px 0;
}
.rule--center  { margin: 20px auto; }
.rule--yellow  { background: var(--yellow); }
.rule--navy    { background: var(--navy); }
.rule--white   { background: #fff; }
.rule--lg      { width: 72px; }

/* ================================================================
   BUTTONS — flat, no rounded corners, all-caps Avenir
   ================================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 14px 30px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background var(--t), color var(--t), border-color var(--t), transform var(--t);
  white-space: nowrap;
  border-radius: var(--radius);
}

.btn--sage {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.btn--sage:hover   { background: var(--sage-dark); border-color: var(--sage-dark); transform: translateY(-1px); }

.btn--navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn--navy:hover   { background: var(--navy-deep); border-color: var(--navy-deep); transform: translateY(-1px); }

.btn--yellow {
  background: var(--yellow);
  color: var(--navy-deep);
  border-color: var(--yellow);
}
.btn--yellow:hover { background: #e8bb00; border-color: #e8bb00; transform: translateY(-1px); }

.btn--white-outline {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn--white-outline:hover { background: #fff; color: var(--navy); }

.btn--sage-outline {
  background: transparent;
  color: var(--sage);
  border-color: var(--sage);
}
.btn--sage-outline:hover { background: var(--sage); color: #fff; }

.btn--navy-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn--navy-outline:hover { background: var(--navy); color: #fff; }

/* ================================================================
   NAVIGATION — flat, no glass blur, solid colour
   ================================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 2px solid var(--light-grey);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo         { display: flex; align-items: center; gap: 12px; }

.nav__logo-mark {
  width: 36px; height: 36px;
  background: var(--sage);       /* flat 1-colour sage background — brand icon style */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav__logo-mark svg { width: 22px; height: 22px; fill: #fff; }

.nav__brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

.nav__brand-sub {
  display: block;
  font-weight: 400;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-light);
}

/* Menu links */
.nav__menu { display: flex; align-items: center; gap: 2px; }
.nav__item { position: relative; }

.nav__link {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: color var(--t);
}
.nav__link:hover,
.nav__link.active { color: var(--navy); }

.nav__link svg     { width: 8px; height: 8px; fill: currentColor; transition: transform var(--t); }
.nav__item:hover > .nav__link svg { transform: rotate(180deg); }

/* Dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--light-grey);
  border-top: 2px solid var(--sage);
  padding: 6px 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.nav__item:hover .nav__dropdown { display: block; }

.nav__dropdown a {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--charcoal);
  padding: 10px 18px;
  transition: color var(--t), background var(--t);
}
.nav__dropdown a:hover { color: var(--navy); background: var(--off-white); }

.nav__donate { margin-left: 14px !important; }

/* Mobile toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--charcoal);
}

/* ================================================================
   HERO — photography with FLAT dark overlay (no gradient)
   Brand: 1-colour logo on photography, ample negative space
   ================================================================ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.3;    /* brand: photography under flat colour overlay */
}

/* FLAT overlay — single solid colour, no gradient */
.hero__tint {
  position: absolute;
  inset: 0;
  background: var(--navy-deep);
  opacity: 0.65;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.hero__content .label   { display: block; margin-bottom: 16px; }
.hero__content h1       { color: #fff; max-width: 800px; margin-bottom: 4px; }

/* Colour split in headline — brand typography example uses two colours */
.hero__content h1 em {
  font-style: normal;
  color: var(--sage-light);
}

.hero__content .lead    { color: rgba(255,255,255,0.72); max-width: 560px; margin: 20px 0 36px; }
.hero__actions          { display: flex; gap: 14px; flex-wrap: wrap; }

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.38;
  animation: pulse 2.5s ease-in-out infinite;
}
.hero__scroll span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #fff;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 32px;
  background: #fff;
}

@keyframes pulse {
  0%,100% { opacity: 0.28; transform: translateX(-50%) translateY(0); }
  50%     { opacity: 0.55; transform: translateX(-50%) translateY(8px); }
}

/* ================================================================
   PAGE HERO (inner pages) — flat, single-colour background
   ================================================================ */
.page-hero {
  background: var(--navy);
  padding: 166px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Kinetic vertical line accent — brand: kinetic, adventurous */
.page-hero::after {
  content: '';
  position: absolute;
  right: 12%;
  top: 0; bottom: 0;
  width: 1px;
  background: rgba(146,172,160,0.15);
}

.page-hero .label     { display: block; margin-bottom: 14px; }
.page-hero h1         { color: #fff; max-width: 700px; }
.page-hero__lead      {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-top: 18px;
  line-height: 1.75;
}

/* Yellow bar below headline — brand kinetic accent */
.page-hero__bar {
  width: 52px;
  height: 4px;
  background: var(--yellow);
  margin-top: 24px;
}

/* ================================================================
   CARDS — flat, sharp corners, 1px border
   ================================================================ */
.card {
  background: #fff;
  border: 1px solid var(--light-grey);
  transition: transform var(--t), box-shadow var(--t);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.09);
}

/* Top accent bar — brand uses flat colour tops on elements */
.card__top          { height: 4px; background: var(--sage); }
.card__top--navy    { background: var(--navy); }
.card__top--yellow  { background: var(--yellow); }
.card__top--charcoal{ background: var(--charcoal); }

.card__body         { padding: 28px 28px 32px; }
.card__body .label  { display: block; margin-bottom: 10px; }
.card__body h3      { margin-bottom: 12px; }
.card__body p       { font-size: 1rem; color: var(--mid-grey); }
.card__img          { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.step {
  background: var(--navy-deep);
  padding: 48px 32px;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: transparent;
  transition: background var(--t);
}
.step:hover::before { background: var(--yellow); }

.step__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 4.5rem;
  line-height: 1;
  color: rgba(146,172,160,0.12);
  display: block;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.step h3  { color: #fff; margin-bottom: 12px; }
.step p   { color: rgba(255,255,255,0.52); font-size: 0.9rem; margin: 0; }

/* ================================================================
   PULLQUOTE
   ================================================================ */
.pullquote {
  border-left: 4px solid var(--sage);
  padding: 28px 36px;
  background: var(--off-white);
}

.pullquote blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 14px;
}

.pullquote cite {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  font-style: normal;
}

/* ================================================================
   STATS
   ================================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,0.08);
  border-left: 1px solid rgba(255,255,255,0.08);
}

.stat-cell {
  background: var(--navy);
  padding: 52px 36px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.stat-cell__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  color: var(--sage-light);
  display: block;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.stat-cell p { color: rgba(255,255,255,0.65); font-size: 1rem; margin: 0; }

/* ================================================================
   PEOPLE CARDS (Big Five)
   ================================================================ */
.people-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
  display: block;
  cursor: pointer;
}

.people-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.people-card:hover .people-card__img { transform: scale(1.04); }

/* Flat navy footer strip — brand: 1-colour on photography */
.people-card__footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--navy);
  padding: 14px 18px;
}

.people-card__animal {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage-light);
  margin-bottom: 4px;
}

.people-card__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  line-height: 1.25;
}

/* ================================================================
   ENDORSEMENTS
   ================================================================ */
.endorsement {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(146,172,160,0.15);
  border-top: 3px solid var(--sage);
  padding: 32px;
}

.endorsement p {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255,255,255,0.75);
  line-height: 1.78;
  margin-bottom: 20px;
}

.endorsement__author     { display: flex; align-items: center; gap: 14px; }
.endorsement__img        { height: 48px; width: auto; border-radius: 4px; object-fit: contain; }
.endorsement__name       { font-family: var(--font-display); font-weight: 900; font-size: 0.65rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; display: block; }
.endorsement__role       { font-size: 0.77rem; color: var(--sage-light); }

/* ================================================================
   CTA BANNER — flat navy-deep, yellow top border
   ================================================================ */
.cta-banner {
  background: var(--navy-deep);
  border-top: 4px solid var(--yellow);
  padding: 88px 24px;
  text-align: center;
}

.cta-banner h2 { color: #fff; margin-bottom: 16px; }
.cta-banner p  { font-family: var(--font-serif); color: rgba(255,255,255,0.65); max-width: 500px; margin: 0 auto 36px; font-size: 1.08rem; }

/* ================================================================
   DONATE BOX
   ================================================================ */
.donate-box {
  background: #fff;
  border: 1px solid var(--light-grey);
  border-top: 4px solid var(--sage);
  padding: 44px;
}

.donate-box h3 { color: var(--navy); margin-bottom: 8px; }
.donate-box > p { color: var(--mid-grey); font-size: 0.9rem; margin-bottom: 24px; }

.bank-table {
  background: var(--off-white);
  padding: 22px 26px;
  margin-bottom: 26px;
  border-left: 3px solid var(--sage);
}

.bank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--light-grey);
  font-size: 0.88rem;
}
.bank-row:last-child { border-bottom: none; }

.bank-row__label {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-grey);
}

.bank-row__value {
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--navy);
  font-size: 0.88rem;
}

.or-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid-grey);
}
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--light-grey); }

/* ================================================================
   CONTACT FORM
   ================================================================ */
.contact-box {
  background: #fff;
  border: 1px solid var(--light-grey);
  border-top: 4px solid var(--navy);
  padding: 44px;
}

.form-group          { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 7px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid var(--light-grey);
  font-family: var(--font-display);
  font-size: 0.97rem;
  color: var(--charcoal);
  background: #fff;
  transition: border-color var(--t);
  border-radius: var(--radius);
  appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus  { outline: none; border-color: var(--sage); }
.form-group textarea       { min-height: 128px; resize: vertical; }
.form-row                  { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ================================================================
   PRAYER CARDS
   ================================================================ */
.prayer-card {
  border: 1px solid var(--light-grey);
  border-top: 3px solid var(--sage);
  display: block;
  transition: transform var(--t), box-shadow var(--t);
}
.prayer-card:hover     { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.prayer-card img       { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.prayer-card__label {
  padding: 15px 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.prayer-card__label::after { content: '→'; color: var(--sage); font-size: 0.85rem; }

/* ================================================================
   VIDEO EMBED
   ================================================================ */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: var(--navy-deep);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ================================================================
   TIMELINE (History page)
   ================================================================ */
.timeline {
  padding-left: 32px;
  border-left: 2px solid rgba(146,172,160,0.22);
}

.timeline__item       { margin-bottom: 48px; position: relative; }

.timeline__dot {
  position: absolute;
  left: -40px; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--navy-deep);
}
.timeline__dot--yellow { background: var(--yellow); }

.timeline__item .label { display: block; margin-bottom: 8px; }
.timeline__item h3     { color: #fff; margin-bottom: 8px; }
.timeline__item p      { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin: 0; }

/* ================================================================
   GRIDS
   ================================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }

.align-center { align-items: center; }
.gap-lg       { gap: 64px !important; }
.gap-xl       { gap: 80px !important; }
.text-center  { text-align: center; }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
  background: var(--navy-deep);
  padding: 72px 24px 36px;
  border-top: 3px solid rgba(146,172,160,0.2);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.footer__brand p { font-size: 1rem; color: rgba(255,255,255,0.6); max-width: 280px; margin-top: 16px; line-height: 1.65; }

.footer__col h5 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 18px;
}

.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul a { font-size: 1rem; color: rgba(255,255,255,0.65); transition: color var(--t); }
.footer__col ul a:hover { color: #fff; }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}
.footer__bottom p  { font-size: 0.85rem; color: rgba(255,255,255,0.4); margin: 0; }

.footer__social    { display: flex; gap: 10px; }
.footer__social a {
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.42);
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 800;
  transition: border-color var(--t), color var(--t);
}
.footer__social a:hover { border-color: var(--sage); color: var(--sage); }

/* ================================================================
   SECTION INTRO BLOCK
   ================================================================ */
.section-intro        { margin-bottom: 52px; }
.section-intro .label { display: block; margin-bottom: 12px; }
.section-intro--center { text-align: center; }
.section-intro--center .rule { margin: 18px auto; }

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.anim-hero > * {
  opacity: 0;
  animation: fadeUp 0.55s ease forwards;
}
.anim-hero > *:nth-child(1) { animation-delay: 0.05s; }
.anim-hero > *:nth-child(2) { animation-delay: 0.17s; }
.anim-hero > *:nth-child(3) { animation-delay: 0.29s; }
.anim-hero > *:nth-child(4) { animation-delay: 0.41s; }
.anim-hero > *:nth-child(5) { animation-delay: 0.53s; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* Spacing utils */
.mt-xs { margin-top: 8px;  }
.mt-sm { margin-top: 16px; }
.mt-md { margin-top: 28px; }
.mt-lg { margin-top: 48px; }
.mb-sm { margin-bottom: 16px; }
.mb-md { margin-bottom: 28px; }
.mb-lg { margin-bottom: 48px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .grid-5        { grid-template-columns: repeat(3,1fr); }
  .steps         { grid-template-columns: repeat(2,1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  /* index.html split section (process photo + content) */
  .bg-charcoal > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .stats  { grid-template-columns: 1fr; }
  .stats .stat-cell { border-right: none; }

  /* Pullquote: stack image + quote vertically */
  .pullquote { flex-direction: column !important; gap: 20px !important; }
  .pullquote img { width: 80px !important; height: 80px !important; }

  /* Donate box padding */
  .donate-box { padding: 28px 24px; }
}

@media (max-width: 768px) {
  /* ---- NAV ---- */
  .nav__menu   { display: none; }
  .nav__toggle { display: flex; }

  .nav__menu.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--light-grey);
    border-bottom: 2px solid var(--light-grey);
    padding: 16px 20px 22px;
    gap: 2px;
    z-index: 999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

  /* Show dropdowns inline when menu is open on mobile */
  .nav__menu.open .nav__dropdown {
    display: block !important;
    position: static !important;
    box-shadow: none !important;
    border: none !important;
    border-left: 3px solid var(--sage) !important;
    padding: 4px 0 4px 12px !important;
    background: transparent !important;
    min-width: unset !important;
  }

  .nav__menu.open .nav__dropdown a {
    font-size: 0.78rem;
    padding: 8px 10px;
    color: var(--mid-grey);
  }

  .nav__menu.open .nav__item { width: 100%; }
  .nav__menu.open .nav__link { width: 100%; justify-content: space-between; padding: 10px 4px; }
  .nav__menu.open .nav__donate { margin-left: 0 !important; margin-top: 10px; width: 100%; text-align: center; }

  /* ---- GRIDS ---- */
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2,1fr); }

  /* gap-xl is too wide on mobile */
  .gap-xl { gap: 40px !important; }
  .gap-lg { gap: 32px !important; }

  /* ---- STEPS ---- */
  .steps  { grid-template-columns: 1fr; }
  .step   { border-right: none; }

  /* ---- HERO ---- */
  .hero { min-height: 100svh; }
  .hero__content { padding: 110px 20px 60px; }

  /* ---- PAGE HERO ---- */
  .page-hero { padding: 130px 20px 64px; }
  .page-hero::after { display: none; } /* remove decorative line on mobile */

  /* ---- FOOTER ---- */
  .footer { padding: 52px 20px 28px; }
  .footer__inner  { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* ---- FORMS ---- */
  .form-row       { grid-template-columns: 1fr; }
  .donate-box,
  .contact-box    { padding: 24px 20px; }

  /* ---- TYPOGRAPHY ---- */
  h1 { font-size: clamp(1.9rem,6vw,2.5rem); }
  h2 { font-size: clamp(1.3rem,4vw,1.7rem); }

  /* ---- SECTIONS ---- */
  .section    { padding: 64px 20px; }
  .section--sm { padding: 48px 20px; }

  /* ---- CTA BANNER ---- */
  .cta-banner { padding: 60px 20px; }

  /* ---- STATS ---- */
  .stats { grid-template-columns: 1fr; }
  .stat-cell { padding: 36px 24px; border-right: none; }

  /* ---- BANK TABLE ---- */
  .bank-row { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 0; }
  .bank-row__value { font-size: 0.95rem; }

  /* ---- PEOPLE CARDS ---- */
  .people-card { aspect-ratio: 4/3; }

  /* ---- index.html process section (hard-coded grid) ---- */
  section.bg-charcoal > div { grid-template-columns: 1fr !important; }
  section.bg-charcoal > div > div:first-child { min-height: 280px; }
  section.bg-charcoal > div > div:last-child { padding: 48px 24px !important; }
}

@media (max-width: 480px) {
  .grid-5 { grid-template-columns: 1fr; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }

  /* Footer single column on very small screens */
  .footer__inner { grid-template-columns: 1fr; }

  /* Nav logo size */
  .nav__logo img { height: 34px !important; }

  /* Donate box full width button */
  .donate-box .btn { width: 100%; text-align: center; }

  /* Section padding tighter */
  .section    { padding: 48px 16px; }
  .section--sm { padding: 36px 16px; }
  .page-hero  { padding: 110px 16px 52px; }

  /* CTA buttons stack */
  .cta-banner div[style*="display:flex"] {
    flex-direction: column !important;
    align-items: center !important;
  }
  .cta-banner .btn { width: 100%; max-width: 280px; text-align: center; }
}
