/* ===========================================================
   FRONTLINE CARE FOUNDATION — stylesheet
   Design language: "the gateway" — arch motifs nod to the
   Khyber Pass, historic gateway between South & Central Asia,
   echoing the copy's own language of communities "opening doors".
   =========================================================== */

/* ---------- Tokens ---------- */
:root{
  --forest: #114444;
--forest-light: #1c6363;
--forest-dark: #0c3333;
--saffron: #fde27e;
--saffron-dark: #f5d152;
--clay: var(--forest);
--mint: #91ce9a;
--stone: #FFFFFF;
--stone-alt: #ffffff;
--stone-deep: #ffffff;
--ink: #14201d;
--ink-soft: #4b615d;
  --white: #FFFFFF;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
--font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius-card: 20px;
  --radius-sm: 10px;
  --shadow-soft: 0 10px 30px -12px rgba(18, 42, 32, 0.18);
  --shadow-lift: 0 22px 50px -16px rgba(18, 42, 32, 0.28);
  --ease: cubic-bezier(.22,.7,.24,1);
  --header-h: 160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
section[id], main [id]{ scroll-margin-top: var(--header-h); }
body{
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; min-width: 0; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input{ font-family: inherit; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--forest-dark);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.hero .container{
  max-width: 100%;
  padding-left: 40px;
}
/* Safety net against the classic CSS-grid image-blowout bug, where an
   unconstrained <img> inflates its track's min-content size beyond the
   container. Every grid item in this stylesheet should be free to shrink. */
.change-starts-grid > *, .pillars-grid > *, .about-gallery > *,
.about-split > *, .journey-gallery > *, .journey-thumbs > *,
.reach-grid > *, .programme-detail > *, .support-grid > *,
.involved-grid > *, .contact-band > *, .footer-grid > *{
  min-width: 0;
}
.visually-hidden{
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link{
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--forest); color: var(--white); padding: 12px 20px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

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

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

/* ---------- Typography helpers ---------- */
.eyebrow{
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 0.9em;
}
.reach > .eyebrow{ margin-bottom: 0.3em; }
.eyebrow-light{ color: var(--saffron); }
/* "About FCF" only — sized as a heading, not touching other eyebrows */
#about .section-head .eyebrow{
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.8vw, 3rem);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--forest-dark);
  margin-bottom: 0.2em;
}
.lede{
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 100%;
}
.section-head h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-head{ margin-bottom: 3rem; }
.text-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--forest);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .25s var(--ease), gap .25s var(--ease), color .2s;
}
.text-link:hover{ border-color: var(--forest); gap: 10px; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-sm{ padding: 11px 22px; font-size: 0.86rem; }
.btn-primary{
  background: var(--forest);
  color: var(--white);
  box-shadow: 0 10px 24px -10px rgba(30,70,56,0.55);
}
.btn-primary:hover{
  background: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(30,70,56,0.55);
}
.btn-ghost{
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover{
  background: rgba(255,255,255,0.18);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-light{
  background: var(--white);
  color: var(--forest-dark);
}
.btn-light:hover{
  background: var(--saffron);
  color: var(--forest-dark);
  transform: translateY(-2px);
}
.btn-outline{
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn-outline:hover{
  background: var(--forest);
  color: var(--white);
  transform: translateY(-1px);
}

/* ---------- Arch frame (signature motif) ---------- */
.arch-frame{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-soft);
  isolation: isolate;
  min-width: 0;
}
.arch-frame::after{
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  border-radius: inherit;
  pointer-events: none;
}
.arch-frame img{
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
}
.arch-frame:hover img{ transform: scale(1.06); }
.arch-frame.tall{ aspect-ratio: 3 / 5; }
.arch-frame.wide{ aspect-ratio: 4 / 5; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 22px 24px 0;
  transition: padding .35s var(--ease);
}
.site-header.scrolled{
  padding-top: 12px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark{
  width: 38px; height: 38px;
  color: var(--white);
  flex-shrink: 0;
  transition: color .3s var(--ease);
}
.brand-mark svg{ width: 100%; height: 100%; }
.brand-text{
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.brand-text strong{
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--white);
  font-weight: 600;
  transition: color .3s var(--ease);
}
.brand-logo{
  height: 100px;
  width: auto;
  transition: height .3s var(--ease);
}
.site-header.scrolled .brand-logo{ height: 85px; }
.brand-text em{
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--saffron);
  font-weight: 700;
}

.main-nav ul{ 
  display: flex; 
  gap: 2px; 
  padding-left: 10px;
}
.nav-link{
  position: relative;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  color: rgba(255,255,255,0.92);
  border-radius: 999px;
  transition: color .2s, background-color .25s;
}
.nav-link:hover{ background: rgba(255,255,255,0.12); }
.nav-link.active{ color: var(--saffron); }
.nav-link.active::after{
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 5px;
  height: 2px;
  background: var(--saffron);
  border-radius: 2px;
}

.header-actions{ display: flex; align-items: center; gap: 14px; }

.menu-toggle{
  display: none;
  width: 42px; height: 42px;
  border: none;
  background: transparent;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
}
.menu-toggle span{
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s, background-color .3s var(--ease);
}



.header-inner{
  max-width: var(--container);
  margin: 0 auto;
  height: 64px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 0px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 30px -16px rgba(12,51,51,0.35);
  transition: box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.scrolled .header-inner{
  height: 56px;
  padding: 8px 12px 8px 6px;
  box-shadow: 0 12px 34px -14px rgba(12,51,51,0.4);
}

/* header sitting over a dark section (hero / cta-band / footer) */

.site-header.on-dark .nav-link{ color: rgba(255,255,255,0.92); }
.site-header.on-dark .nav-link:hover{ background: rgba(255,255,255,0.14); }
.site-header.on-dark .nav-link.active{ color: var(--saffron); }
.site-header.on-dark .nav-link.active::after{ background: var(--saffron); }
.site-header.on-dark .menu-toggle span{ background: var(--white); }

/* header sitting over a light section (everything else) */

.site-header.on-light .nav-link{ color: var(--ink); }
.site-header.on-light .nav-link:hover{ background: rgba(17,68,68,0.08); }
.site-header.on-light .nav-link.active{ color: var(--clay); }
.site-header.on-light .nav-link.active::after{ background: var(--clay); }
.site-header.on-light .menu-toggle span{ background: var(--forest-dark); }
/* Once the mobile menu panel is open, force dark icon regardless of scroll,
   since the toggle sits above the light-coloured panel */
.menu-toggle.is-open span{ background: var(--forest-dark); }
.menu-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity: 0; }
.menu-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  position: fixed;
  top: 0; right: 0;
  width: min(360px, 86vw);
  height: 100vh;
  background: var(--stone);
  z-index: 600;
  padding: 110px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: -20px 0 50px -20px rgba(18,42,32,0.35);
}
.mobile-menu.is-open{ transform: translateX(0); }
.mobile-menu ul{ display: flex; flex-direction: column; gap: 6px; }
.mobile-menu a{
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: 8px 0;
  color: var(--forest-dark);
  display: inline-block;
}
.mobile-menu .btn{ align-self: flex-start; }
.mobile-menu-contact{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: .92rem;
  color: var(--ink-soft);
  padding-top: 24px;
  border-top: 1px solid var(--stone-deep);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.menu-scrim{
  position: fixed; inset: 0;
  background: rgba(18,42,32,0.4);
  z-index: 550;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.menu-scrim.is-open{ opacity: 1; pointer-events: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  height: 100vh;
  max-height: 100vh;
}
.hero-media{
  position: absolute; inset: 0;
  z-index: 0;
}
.hero-media img{
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(
    90deg,
    rgba(12,51,51,0.96) 0%,
    rgba(12,51,51,0.9) 38%,
    rgba(17,68,68,0.55) 55%,
    rgba(17,68,68,0.15) 75%,
    rgba(17,68,68,0) 100%
  );
}

.hero-content{
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
  text-align: left;
  max-width: 50%;
  margin-left: 130px;
  margin-right: auto;
}
.hero h1{
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  color: var(--white);
  font-weight: 800;
  margin-bottom: 0.28em;
}
.hero .eyebrow{ color: var(--saffron); }
.hero-lede{
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  max-width: 42ch;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2em;
  margin-left: 0;
  margin-right: 0;
}
.hero-actions{ 
  display: flex; 
  gap: 16px; 
  flex-wrap: wrap; 
  justify-content: flex-start;
}



/* ============================================================
   SECTIONS — generic
   ============================================================ */
.section{ padding: 108px 0; }
.pillars-section{ background: var(--stone-alt); }
.about-section{ background: var(--stone); }
.programmes-section{ background: var(--stone-alt); }
.get-involved-section{ background: var(--stone); }


/* Reduce gap between Reach and Get Involved sections */
.reach{
  margin-bottom: 0px !important;
  padding-bottom: 10px !important;
}

.get-involved-section{
  padding-top: 60px !important;
}

/* Reduce gap between About Split and Journey sections */
.about-split{
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
  border-bottom: none !important;
}

.journey{
  padding-top: 20px !important;
  margin-top: 0 !important;
}

/* Reduce gap between heading and description in donation section */
.donation-section .section-head{
  margin-bottom: 0px !important;
  padding-bottom: 0 !important;
}

.donation-section .section-head h2{
  margin-bottom: 0px !important;
}

.donation-section .donation-description{
  margin-top: 7px !important;
  padding-top: 0 !important;
}

/* Reduce gap between Donation box and Get Involved section */
.donation-section{
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

.get-involved-section{
  padding-top: 60px !important;
  margin-top: -100px !important;
}

/* Home page specific - Get Involved section spacing */
.home-get-involved{
  padding-top: 80px !important;
  margin-top: 0px !important;
}
/* Reduce gap between Journey and Reach sections */
.journey{
  margin-bottom: 20px !important;
  padding-bottom: 40px !important;
  border-bottom: none !important;
}

.reach{
  padding-top: 20px !important;
  margin-top: 0 !important;
}

/* Change starts here */
.change-starts-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.change-starts-text h2{ 
  font-size: clamp(2rem, 3.6vw, 2.8rem); 
  margin-top: 0;
  padding-top: 0;
}
.change-starts-text .lede{
  text-align: justify;
  max-width: 100%;
}
.change-starts-image .arch-frame{ aspect-ratio: 16/10; border-radius: 20px; }

/* Reduce gap between Change Starts Here and Building Stronger Communities */
.change-starts{
  margin-bottom: 20px !important;
  padding-bottom: 50px !important;
}

.pillars-section{
  padding-top: 40px !important;
  margin-top: 0px !important;
}

/* Pillars */
.pillars-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar-card{
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar-card:hover{
  transform: translateY(-8px);
  box-shadow: var(--shadow-lift);
}
.pillar-card .pillar-image{ margin-bottom: 22px; border-radius: 20px; aspect-ratio: 5/4; }
.pillar-card h3{ font-size: 1.32rem; }
.pillar-card p{ color: var(--ink-soft); margin-bottom: 1em; }

/* CTA band */
.cta-band{
  background: var(--forest-dark);
  background-image:
    radial-gradient(600px 300px at 90% -20%, rgba(223,162,58,0.18), transparent 60%),
    linear-gradient(135deg, var(--forest-dark), var(--forest));
  color: var(--white);
  padding: 72px 0;
}
.cta-band-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: nowrap;
}
.cta-band-text{
  flex: 1;
  min-width: 0;
}
.cta-band h2{
  color: var(--white);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  max-width: none;
  margin: 0;
}

/* About gallery */
.about-gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 3.5rem 0 5rem;
}
.about-gallery .arch-frame{ aspect-ratio: 1 / 1; }
#about .section-head .lede{ 
  max-width: 100%; 
  font-size: 1.2rem;
}
.about-split{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--stone-deep);
  margin-bottom: 5rem;
}
.about-split .eyebrow{ font-size: 0.95rem; }
.about-split > .about-block:first-child .lede{
  font-size: 1.2rem;
  line-height: 1.7;
  max-width: 100%;
  margin-top: 27px;
}
.about-block h4{ font-size: 1.15rem; margin-bottom: .35em; }
.about-block h4{ font-size: 1.15rem; margin-bottom: .35em; }
.purpose-list{ display: flex; flex-direction: column; gap: 22px; }
.purpose-item{
  padding: 20px 22px;
  background: var(--white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--saffron-dark);
}
.purpose-item p{ 
  color: var(--ink-soft); 
  margin: 0; 
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Journey */
.journey{ padding-bottom: 5rem; border-bottom: 1px solid var(--stone-deep); margin-bottom: 5rem; }
.reach{ 
  padding-bottom: 2rem; 
  margin-bottom: 0; 
}
.journey h2{ 
  font-size: clamp(1.7rem, 3vw, 2.3rem); 
  max-width: 100%; 
}
.journey-gallery{
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.journey-hero{ aspect-ratio: 4/3; border-radius: 20px; }
.journey-thumbs{
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.journey-thumbs img{
  width: 100%;
  flex: 1 1 0;
  min-height: 0;
  object-fit: cover;
  border-radius: 20px;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: saturate(0.94);
}
.journey-thumbs img:hover{ transform: scale(1.02); filter: saturate(1.1); }

/* Reach */
.reach h2{ 
  font-size: clamp(1.7rem, 3vw, 2.3rem); 
  max-width: 100%; 
  margin-bottom: 1rem; 
}
.reach{ 
  margin-bottom: 0; 
}
.reach-grid{
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.reach-cards{
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: 100%;
  min-height: 0;
}
.reach-cards .reach-card{
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.reach-card{
  background: var(--forest);
  border-radius: var(--radius-card);
  padding: 30px 40px;
  box-shadow: var(--shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-height: 0;
}
.reach-address-link{
  color: rgba(255,255,255,0.92) !important;
  text-decoration: none !important;
  transition: color 0.2s, text-decoration 0.2s;
  cursor: pointer;
}

.reach-address-link:hover{
  color: var(--saffron) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.reach-card p a{
  color: rgba(255,255,255,0.92) !important;
  text-decoration: none !important;
  transition: color 0.2s, text-decoration 0.2s;
}

.reach-card p a:hover{
  color: var(--saffron) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}
.reach-card h4{ font-size: 1.6rem; color: var(--saffron); margin-bottom: .2em; width: 100%;}
.reach-card p{ margin: 0; font-weight: 600; font-size: 1.1rem; color: rgba(255,255,255,0.92); line-height: 1.4;width: 100%;}
.reach-map{
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  height: 100%;
  min-height: 0;
}
.reach-map iframe{ width: 100%; height: 100%; border: 0; display: block; }

/* Programme detail rows */
.programme-detail{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
  margin: 0 0 88px;
}
.programme-detail-text h3{
  margin-top: 0;
  padding-top: 0;
}
.programme-detail-reverse{ direction: rtl; }
.programme-detail-reverse > *{ direction: ltr; }
.programme-detail-image{ aspect-ratio: 5/4; border-radius: 20px; }
.programme-detail-text h3{ 
  font-size: clamp(2rem, 3vw, 2.4rem); 
}
.programme-detail-text p{ 
  color: var(--ink-soft); 
  font-size: 1.2rem; 
  max-width: 46ch; 
}
/* Programmes page - spacing for What We Do heading */
.programmes-section .section-head{
  padding-top: 30px !important;
  margin-top: 10px !important;
}
/* About page - spacing for Empowering Communities heading */
.about-section .section-head{
  padding-top: 20px !important;
  margin-top: 10px !important;
}

.get-involved-section .section-head{
  padding-top: 170px !important;
  margin-top: 20px !important;
}

/* Get Involved page - reduce gap between cards and contact band */
.get-involved-section .involved-grid{
  margin-bottom: 50px !important;
  padding-bottom: 20Spx !important;
}

.get-involved-section .contact-band{
  margin-top: 0px !important;
}
/* Support grid */
.support-grid-head{ margin-top: 1rem; margin-bottom: 2.5rem; }
.support-grid-head h2{ font-size: clamp(1.7rem, 3vw, 2.2rem); }
.support-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.support-card{
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.support-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.support-card-image{ aspect-ratio: 16/11; overflow: hidden; }
.support-card-image img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.support-card:hover .support-card-image img{ transform: scale(1.07); }
.support-card-body{ padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tag{
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--forest);
  background: rgba(30,70,56,0.09);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.support-card-body h4{ font-size: 1.16rem; margin-bottom: 2px; }
.support-card-body p{ color: var(--ink-soft); font-size: .95rem; flex: 1; }
.support-card-foot{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 0px;
  border-top: 0px solid var(--stone-alt);
}
.support-card-foot .price{ font-weight: 700; color: var(--forest-dark); font-size: .92rem; }

/* Get involved cards */
.involved-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 6rem;
}
.involved-card{
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.involved-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.involved-card-image{ aspect-ratio: 16/10; overflow: hidden; }
.involved-card-image img{ width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.involved-card:hover .involved-card-image img{ transform: scale(1.07); }
.involved-card-body{ padding: 26px 26px 28px; }
.involved-card-body h3{ font-size: 1.32rem; }
.involved-card-body p{ color: var(--ink-soft); margin-bottom: 1.4em; }
.fine-print{ font-size: .88rem; color: var(--clay); font-weight: 600; margin-bottom: 1.2em; }

/* Contact band */
.contact-band{
  background: var(--forest-dark);
  background-image:
    radial-gradient(700px 340px at 8% 0%, rgba(223,162,58,0.16), transparent 60%),
    linear-gradient(135deg, var(--forest-dark), var(--forest));
  border-radius: 32px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
  color: var(--white);
}
.contact-band h2{ color: var(--white); font-size: clamp(1.6rem, 2.8vw, 2.1rem); max-width: 22ch; }
.contact-details{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 1.6em 0;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.contact-details a:hover{ color: var(--saffron); }
.social-row{ display: flex; gap: 12px; }
.social-row a{
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: background-color .25s, border-color .25s, transform .25s;
}
.social-row a svg{ width: 18px; height: 18px; }
.social-row a:hover{ background: var(--saffron); border-color: var(--saffron); color: var(--forest-dark); transform: translateY(-2px); }
.contact-band-image{ aspect-ratio: 1/1; border-radius: 20px;}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{ background: var(--forest-dark); color: rgba(255,255,255,0.82); }
.footer-grid{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  padding: 80px 28px 60px;
}
.footer-contact{
  padding-left: 56px;
  border-left: 1px solid rgba(255,255,255,0.22);
}
.footer-logo-link{ display: inline-block; }
.footer-logo{ height: 210px; width: auto; }
.footer-col h5{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .78rem;
  color: var(--saffron);
  margin: 0 0 16px;
}
.footer-contact h5{
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
  margin: 0 0 20px;
}
.footer-contact .footer-address{
  display: block;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  max-width: 34ch;
  transition: color .2s;
}
.footer-contact .footer-address:hover{ color: var(--saffron); text-decoration: underline; }
.footer-col ul{ display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.footer-col a{ color: rgba(255,255,255,0.78); transition: color .2s; }
.footer-col a:hover{ color: var(--saffron); }
.footer-newsletter p{ color: rgba(255,255,255,0.62); font-size: .92rem; margin-bottom: 16px; }
.newsletter-field{
  display: flex;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 5px;
  gap: 4px;
}
.newsletter-field input{
  flex: 1;
  background: transparent;
  border: none;
  color: var(--white);
  padding: 10px 14px;
  font-size: .92rem;
}
.newsletter-field input::placeholder{ color: rgba(255,255,255,0.5); }
.newsletter-field input:focus{ outline: none; }
.newsletter-field button{
  background: var(--saffron);
  color: var(--forest-dark);
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 700;
  font-size: .88rem;
  transition: background-color .2s, transform .2s;
}
.newsletter-field button:hover{ background: #fff; transform: translateY(-1px); }
.newsletter-msg{
  margin: 10px 2px 0;
  font-size: .85rem;
  min-height: 1.2em;
  color: var(--saffron);
}
.footer-bottom{ border-top: 1px solid rgba(255,255,255,0.12); }
.footer-bottom-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px 28px;
  font-size: .85rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}


/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal{
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible{ opacity: 1; transform: translateY(0); }
.pillars-grid .reveal:nth-child(2){ transition-delay: .08s; }
.pillars-grid .reveal:nth-child(3){ transition-delay: .16s; }

/* ============================================================
   DONATION SECTION
   ============================================================ */
.donation-section{
  margin: 2rem 0 4rem;
}

.donation-description{
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--ink-soft);
  max-width: 100%;
  margin-bottom: 2rem;
}

.donation-box{
  background: var(--forest-dark);
  background-image:
    radial-gradient(700px 340px at 8% 0%, rgba(223,162,58,0.16), transparent 60%),
    linear-gradient(135deg, var(--forest-dark), var(--forest));
  border-radius: var(--radius-card);
  padding: 50px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  box-shadow: var(--shadow-lift);
  border: 1px solid rgba(255,255,255,0.1);
}

.donation-details{
  flex: 0 1 60%;
}

.donation-details p{
  color: rgba(255,255,255,0.92);
  font-size: 1.4rem;
  margin: 0 0 12px 0;
  line-height: 1.6;
}

.donation-details p:last-child{
  margin-bottom: 0;
}

.donation-details strong{
  color: var(--saffron);
  font-weight: 700;
}

.donation-logos{
  display: flex;
  align-items: center;
  gap: 35px;
  flex-shrink: 0;
  padding-left: 40px;
  border-left: 2px solid rgba(255,255,255,0.2);
  margin-left: auto;
}

.donation-logo-circle{
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--white);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.donation-logo-circle img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
  transition: transform 0.3s ease;
}

.donation-logo-circle:hover{
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.donation-logo-circle:hover img{
  transform: scale(1.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px){
  .change-starts-grid,
  .about-split,
  .journey-gallery,
  .reach-grid,
  .contact-band{
    grid-template-columns: 1fr;
  }
  .change-starts-image{ order: -1; }
  .pillars-grid,
  .support-grid,
  .involved-grid{ grid-template-columns: repeat(2, 1fr); }
  .programme-detail,
  .programme-detail-reverse{
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 30px;
  }
  .programme-detail-image{ max-width: 420px; }
  .contact-band{ padding: 48px; }
  .contact-band-image{ max-width: 320px; justify-self: start; }
        .footer-grid{ flex-direction: column; text-align: center; }
  .footer-contact{ padding-left: 0; border-left: none; border-top: 1px solid rgba(255,255,255,0.22); padding-top: 40px; }
  .footer-logo-link{ margin: 0 auto; }
  .footer-contact .footer-address{ max-width: none; margin-left: auto; margin-right: auto; }
}

@media (max-width: 860px){
  .main-nav{ display: none; }
  .header-actions .btn-primary{ display: none; }
  .menu-toggle{ display: flex; }
  .section{ padding: 76px 0; }
  .hero{ min-height: 92vh; }
  .cta-band-inner{ flex-direction: column; align-items: flex-start; }
}

@media (max-width: 680px){
  .pillars-grid,
  .support-grid,
  .involved-grid{ grid-template-columns: 1fr; }
  .about-gallery{ gap: 12px; }
  .arch-frame{ border-radius: 16px; }
  .contact-band{ border-radius: 22px; padding: 32px; }
}

@media (max-width: 480px){
  .container{ padding: 0 20px; }
  .hero h1{ font-size: 2.5rem; }
  .footer-grid{ flex-direction: column; padding: 40px 20px 30px; }
  .footer-bottom-inner{ flex-direction: column; gap: 12px; text-align: center; padding: 15px 20px; }
  .btn{ padding: 13px 24px; }
  .reach-map{ min-height: 220px; }
  .reach-map iframe{ min-height: 220px; }
  
  /* Footer mobile fixes */
 .footer-logo{ 
  height: 120px; 
  margin-bottom: 0px;
}
.footer-brand{ 
  margin-bottom: 20px; 
  padding-bottom: 0px;
}
  .footer-brand{ 
    margin-bottom: 0px; 
  }
  .footer-contact{ 
    padding-top: 20px; 
    padding-left: 0; 
    border-left: none; 
    border-top: 1px solid rgba(255,255,255,0.22); 
  }
  .footer-contact h5{ 
    font-size: 1.5rem; 
  }
  .footer-col ul{ 
    gap: 6px; 
  }
  .social-row{ 
    justify-content: center; 
    margin-top: 10px; 
  }
  .social-row a{ 
    width: 36px; 
    height: 36px; 
  }
  .social-row a svg{ 
    width: 16px; 
    height: 16px; 
  }
  .footer-bottom{ 
    padding-bottom: 10px; 
  }
  .footer-bottom-inner{ 
    flex-direction: column; 
    gap: 8px; 
    text-align: center; 
    padding: 15px 20px; 
  }
  .footer-bottom-inner p{ 
    margin-bottom: 0; 
    font-size: 0.75rem; 
  }
}

@media (max-width: 680px){
  .pillars-grid,
  .support-grid,
  .involved-grid{ grid-template-columns: 1fr; }
  .about-gallery{ gap: 12px; }
  .arch-frame{ border-radius: 16px; }
  .contact-band{ border-radius: 22px; padding: 32px; }
  
  /* Footer tablet fixes */
  .footer-logo{ 
    height: 140px; 
  }
  .social-row{ 
    justify-content: center; 
  }
}
@media (max-width: 1024px){
  .change-starts-grid{
    display: flex;
    flex-direction: column;
    gap: 20px; /* was 64px — tightens all three gaps: heading→image→para */
  }
  .change-starts-text{
    display: contents;
  }
  .change-starts-text h2{
    order: 1;
    margin-bottom: 0; /* kill extra space directly under the heading */
  }
  .change-starts-image{
    order: 2;
  }
  .change-starts-text .lede{
    order: 3;
    margin-bottom: 0;
  }
}
/* MOBILE ONLY — hero: fits any small screen, not just one tested device */
@media (max-width: 860px){
  .hero{
    height: auto;
    max-height: none;
    min-height: 100svh; /* dynamic viewport height - ignores browser UI bars */
    min-height: 92vh;   /* fallback for browsers without svh support */
  }
  .hero-content{
    /* real mobile header is much shorter than the 160px desktop var —
       stop reserving desktop-sized space for it */
    padding-top: 100px;
    max-width: 84%;
    margin-left: 20px;
    margin-right: auto;
  }
  .hero h1{
    margin-bottom: 0.2em;
  }
  .hero-lede{
    margin-bottom: 1.4em;
  }
}

/* Extra safety for short AND narrow screens (e.g. iPhone SE) */
@media (max-width: 480px){
  .hero-content{
    padding-top: 90px;
    max-width: 88%;
    margin-left: 16px;
  }
}
@media (max-width: 480px) and (max-height: 700px){
  .hero{
    min-height: 100svh;
    min-height: 88vh;
  }
  .hero-content{
    padding-top: 76px;
  }
  .hero h1{
    font-size: clamp(2.1rem, 9vw, 2.8rem);
  }
  .hero-lede{
    font-size: 0.98rem;
    margin-bottom: 1.1em;
  }
  .hero-actions{
    gap: 10px;
  }
  .hero-actions .btn{
    padding: 12px 22px;
    font-size: 0.88rem;
  }
}
/* ============================================================
   MOBILE-ONLY HERO — separate markup, fully isolated from .hero
   ============================================================ */
.hero-mobile{ display: none; }

@media (max-width: 860px){
  .hero{ display: none !important; }

  .hero-mobile{
    display: block;
    position: relative;
    width: 100%;
    /* YouTube-style: fills the visible viewport, adapts to every phone */
    height: 100svh;
    height: 100vh; /* fallback for older browsers */
    min-height: 480px; /* prevents tiny hero on very short landscape phones */
    max-height: 900px; /* prevents absurdly tall hero on tablets */
    overflow: hidden;
    color: var(--white);
  }
  .hero-mobile-media{
    position: absolute;
    inset: 0;
  }
  .hero-mobile-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-mobile-overlay{
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(12,51,51,0.55) 0%,
      rgba(12,51,51,0.75) 60%,
      rgba(12,51,51,0.92) 100%
    );
  }
  .hero-mobile-content{
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 100px 24px 48px 20px;
    text-align: left;
  }
  .hero-mobile-content h1{
    font-size: clamp(1.9rem, 8vw, 2.6rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 0.25em;
  }
  .hero-mobile-content p{
    font-size: 0.98rem;
    color: rgba(255,255,255,0.9);
    max-width: 40ch;
    margin-bottom: 1.2em;
  }
  .hero-mobile-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* Small phones — tighten spacing */
@media (max-width: 480px){
  .hero-mobile{
    min-height: 520px;
  }
  .hero-mobile-content{
    padding: 90px 18px 32px 16px;
  }
}

/* Short + narrow phones (e.g. iPhone SE) — keep content from overflowing */
@media (max-width: 480px) and (max-height: 700px){
  .hero-mobile-content{
    padding: 80px 18px 28px 16px;
  }
  .hero-mobile-content h1{
    font-size: clamp(1.7rem, 7.5vw, 2.2rem);
  }
  .hero-mobile-content p{
    font-size: 0.92rem;
    margin-bottom: 1em;
  }
  .hero-mobile-actions .btn{
    padding: 12px 22px;
    font-size: 0.88rem;
  }
}

/* Very large phones / small tablets in portrait — cap the height */
@media (max-width: 860px) and (min-height: 900px){
  .hero-mobile{
    height: 85vh;
    max-height: 800px;
  }
}

/* Landscape phones — use a shorter hero */
@media (max-width: 860px) and (max-height: 500px) and (orientation: landscape){
  .hero-mobile{
    height: auto;
    min-height: 100vh;
  }
  .hero-mobile-content{
    padding-top: 80px;
    padding-bottom: 32px;
  }
  .hero-mobile-content h1{
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
}
/* ============================================================
   MOBILE-ONLY CENTERING — CTA band + Get Involved contact band
   (Desktop layout is untouched — these rules are inside the
   860px media query, so they never apply on desktop)
   ============================================================ */
@media (max-width: 860px){

  /* ---- CTA BAND: "Build Brighter Futures" ---- */
  .cta-band-inner{
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 28px;
  }
  .cta-band-text{
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cta-band-text .eyebrow{
    text-align: center;
    width: 100%;
  }
  .cta-band h2{
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .cta-band .btn{
    align-self: center;
  }

  /* ---- GET INVOLVED CONTACT BAND: "Get Involved Today" ---- */
  .contact-band{
    text-align: center;
    justify-items: center;
  }
  .contact-band-text{
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .contact-band-text .eyebrow{
    text-align: center;
    width: 100%;
  }
  .contact-band h2{
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .contact-details{
    align-items: center;
    text-align: center;
    width: 100%;
  }
  .contact-details a{
    text-align: center;
  }
  .contact-band .btn{
    align-self: center;
  }
  .contact-band-image{
    justify-self: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Home page's contact-band is inside .home-get-involved — same rules apply
     since it uses the same .contact-band classes. No extra rule needed. */
}
/* ============================================================
   MOBILE-ONLY CENTERING — Hero, "Change Starts Here" heading,
   "Building Stronger Communities" heading
   (Desktop untouched — all inside the 860px media query)
   ============================================================ */
@media (max-width: 860px){

  /* ---- MOBILE HERO: "Empowering Communities" ---- */
  .hero-mobile-content{
    text-align: center;
    align-items: center;
    padding-left: 24px;
    padding-right: 24px;
  }
  .hero-mobile-content h1{
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-mobile-content p{
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-mobile-actions{
    justify-content: center;
    width: 100%;
  }

  /* ---- "CHANGE STARTS HERE" heading only ---- */
  .change-starts-text h2{
    text-align: center;
    width: 100%;
  }

  /* ---- "BUILDING STRONGER COMMUNITIES" heading only ---- */
  .pillars-section .section-head h2{
    text-align: center;
    width: 100%;
  }
  .pillars-section .section-head{
    text-align: center;
  }
}
/* ============================================================
   MOBILE-ONLY REORDER — "Get Involved Today" contact band
   Order becomes:
     1. Eyebrow ("Get Involved Today")
     2. Heading ("Join FCF in empowering…")
     3. Image
     4. Email + phone
     5. Donate button
   (Desktop layout is untouched — all inside 860px media query)
   ============================================================ */
@media (max-width: 860px){

  /* Turn the two-column contact-band into a single flex column
     so we can reorder children freely */
  .contact-band{
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 24px;
    text-align: center;
    align-items: center;
  }

  /* The text wrapper becomes a flex column too, so we can
     pull its children apart and reorder around the image */
  .contact-band-text{
    display: contents; /* let its children participate in the parent flex order */
  }

  /* The image wrapper keeps its own flex context */
  .contact-band-image{
    order: 3;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    justify-self: center;
    align-self: center;
  }

  /* ---- Order the pieces ---- */
  .contact-band .eyebrow{ order: 1; text-align: center; width: 100%; margin: 0; }
  .contact-band h2{      order: 2; text-align: center; width: 100%; margin: 0; }
  /* image is order: 3 (set above) */
  .contact-band .contact-details{ order: 4; }
  .contact-band .btn{    order: 5; align-self: center; }

  /* Center the contact-details block */
  .contact-band .contact-details{
    align-items: center;
    text-align: center;
    width: 100%;
    margin: 0;
  }
  .contact-band .contact-details a{
    text-align: center;
  }
}
/* ============================================================
   MOBILE-ONLY — About page: centered text + gallery slideshow
   (Desktop 100% untouched — everything inside 860px query)
   ============================================================ */
@media (max-width: 860px){

  /* ---- CENTER: About section header ("About Us" / "Empowering Communities" / lede) ---- */
  .about-section .section-head{
    text-align: center;
  }
  .about-section .section-head .eyebrow,
  .about-section .section-head h2,
  .about-section .section-head .lede{
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  /* ---- CENTER: Journey section heading ---- */
  .journey h2{
    text-align: center;
    width: 100%;
  }

  /* ---- CENTER: Reach section heading + Local Roots card ---- */
  .reach h2{
    text-align: center;
    width: 100%;
  }
  .reach-card{
    text-align: center;
    align-items: center;
  }
  .reach-card h4,
  .reach-card p,
  .reach-card p a{
    text-align: center;
    width: 100%;
  }

  /* ============================================================
     GALLERY SLIDESHOW — 3 images become one auto-rotating slide
     ============================================================ */
  .about-gallery{
    display: block;
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 125%; /* 4:5 portrait ratio — matches .arch-frame tall */
    margin: 2rem 0 3rem;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
  }

  /* Stack all three frames on top of each other */
  .about-gallery .arch-frame{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto; /* override the desktop aspect-ratio */
    border-radius: 16px;
    opacity: 0;
    animation: galleryFade 15s infinite;
    will-change: opacity;
  }

  /* Stagger each slide: 3 slides × 5s each = 15s loop */
  .about-gallery .arch-frame:nth-child(1){ animation-delay: 0s; }
  .about-gallery .arch-frame:nth-child(2){ animation-delay: 5s; }
  .about-gallery .arch-frame:nth-child(3){ animation-delay: 10s; }

  /* Disable the hover zoom on mobile (no hover on touch anyway) */
  .about-gallery .arch-frame:hover img{
    transform: none;
  }

  /* Cross-fade keyframes */
  @keyframes galleryFade{
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    33%  { opacity: 1; }
    38%  { opacity: 0; }
    100% { opacity: 0; }
  }

  /* Respect users who prefer reduced motion */
  @media (prefers-reduced-motion: reduce){
    .about-gallery .arch-frame{
      animation: none;
    }
    .about-gallery .arch-frame:nth-child(1){
      opacity: 1; /* just show the first one */
    }
  }
}
/* ============================================================
   MOBILE-ONLY — Mobile menu panel: tighten spacing, resize
   nav links, contact info, and fix the Donate button
   (Desktop untouched — everything inside 860px query)
   ============================================================ */
@media (max-width: 860px){

  .mobile-menu{
    /* Tighter overall padding — was 110px 32px 40px */
    padding: 88px 24px 28px;
    gap: 22px;
    width: min(320px, 84vw); /* slightly narrower panel */
  }

  /* ---- Nav links: smaller, tighter ---- */
  .mobile-menu ul{
    gap: 0;
  }
  .mobile-menu ul a{
    font-size: 1.15rem;   /* was 1.5rem */
    padding: 10px 0;
    line-height: 1.3;
  }

  /* ---- Donate button in the panel: smaller, white text, fits inside ---- */
  .mobile-menu .btn{
    align-self: flex-start;
    padding: 11px 26px;   /* smaller than the default 15px 30px */
    font-size: 0.9rem;    /* smaller label */
    color: var(--white);  /* force white text */
    background: var(--forest);
    border: 1.5px solid var(--forest);
    line-height: 1;
    box-shadow: 0 6px 16px -8px rgba(30,70,56,0.55);
  }
  .mobile-menu .btn:hover,
  .mobile-menu .btn:focus-visible{
    color: var(--white);
    background: var(--forest-light);
    border-color: var(--forest-light);
  }

  /* ---- Contact block at bottom: smaller text, tighter ---- */
  .mobile-menu-contact{
    gap: 6px;
    padding-top: 18px;
    font-size: 0.82rem;   /* was .92rem */
    line-height: 1.35;
  }
  .mobile-menu-contact a{
    font-size: 0.82rem;
    color: var(--ink-soft);
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
/* ============================================================
   MOBILE-ONLY — Donation page: navbar match, no-zoom clamp,
   centered heading + paragraph, compact account layout
   (Desktop 100% untouched — everything inside 860px query)
   ============================================================ */
@media (max-width: 860px){

  /* ---- 1. Stop the "zoomed-in on first load" bug ---- */
  html, body{
    overflow-x: hidden;
    max-width: 100%;
  }
  .donation-section,
  .donation-section *{
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* ---- 2. Navbar: match the other pages exactly ----
     On the Donation page the header sits over a plain white
     section, so the .on-light theme styles apply. We just make
     sure nothing on this page overrides the header's height,
     padding, or logo size. */
  .site-header{
    padding: 22px 24px 0;
  }
  .site-header.scrolled{
    padding-top: 12px;
  }
  .site-header .header-inner{
    height: 64px;
    padding: 10px 14px 10px 0;
  }
  .site-header.scrolled .header-inner{
    height: 56px;
    padding: 8px 12px 8px 6px;
  }
  .site-header .brand-logo{
    height: 100px;
  }
  .site-header.scrolled .brand-logo{
    height: 85px;
  }

  /* ---- 3. Center the "Make a Donation" heading + paragraph ---- */
  .donation-section .section-head{
    text-align: center;
    padding-top: 100px; /* clears the fixed header on this page */
  }
  .donation-section .section-head h2{
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .donation-section .donation-description{
    text-align: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-size: 1rem;
    line-height: 1.65;
    margin-top: 10px;
  }

  /* ---- 4. Compact account box, stacked info + logos below ---- */
  .donation-section .donation-box{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    padding: 26px 20px;
    border-radius: 18px;
    text-align: center;
    /* kill the old horizontal split */
    flex-wrap: nowrap;
  }

  .donation-section .donation-details{
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin: 0;
    border: 0;
  }

  .donation-section .donation-details p{
    font-size: 0.95rem;
    line-height: 1.35;
    margin: 0;
    color: rgba(255,255,255,0.95);
    width: 100%;
    /* keep each field on one line where it fits */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .donation-section .donation-details strong{
    color: var(--saffron);
    font-weight: 700;
  }

  /* ---- 5. Logos side by side underneath, compact ---- */
  .donation-section .donation-logos{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0;
    margin: 0 auto;
    border-left: 0;   /* remove the desktop divider */
    border-top: 1px solid rgba(255,255,255,0.18);
    padding-top: 18px;
    width: 100%;
    flex-shrink: 0;
  }

  .donation-section .donation-logo-circle{
    width: 66px;
    height: 66px;
    padding: 6px;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .donation-section .donation-logo-circle img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* keeps logos from being cropped */
    transform: none;      /* kill the desktop zoom-in on the image */
  }

  /* Small phones — tighten further so nothing overflows */
  @media (max-width: 380px){
    .donation-section .donation-details p{
      font-size: 0.86rem;
      letter-spacing: -0.005em;
    }
    .donation-section .donation-logo-circle{
      width: 58px;
      height: 58px;
    }
    .donation-section .donation-logos{
      gap: 14px;
    }
  }
}
/* ============================================================
   MOBILE-ONLY — Donation page: tighter top spacing + bigger
   logos inside circles (still clipped inside the boundary)
   (Desktop 100% untouched — everything inside 860px query)
   ============================================================ */
@media (max-width: 860px){

  /* ---- 1. Reduce the gap between navbar and "Make a Donation" ---- */
  /* The previous block used padding-top: 100px to clear the fixed header.
     That's too generous — the header is ~64px tall plus its 22px top
     offset, so ~72–80px is enough. We also trim the section's own padding. */
  .donation-section .section-head{
    padding-top: 76px;   /* was 100px */
  }
  .donation-section{
    padding-top: 0;      /* the parent .section already adds padding; remove it here */
    margin-top: 0;
  }
  .donation-section .donation-description{
    margin-top: 8px;     /* was 10px — keeps heading + paragraph tight */
  }
  .donation-section .donation-box{
    margin-top: 18px;    /* small breathing room above the account card */
  }

  /* ---- 2. Bigger logos that fill the circle, still clipped ---- */
  /* Keep the circle as the hard boundary by forcing overflow: hidden,
     then scale the image up with object-fit: cover so it fills the
     circle edge-to-edge instead of floating small in the middle. */
  .donation-section .donation-logo-circle{
    overflow: hidden;    /* hard boundary — nothing escapes the circle */
    position: relative;
    padding: 0;          /* remove the inner padding that made logos look tiny */
  }
  .donation-section .donation-logo-circle img{
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fills the circle, crops instead of shrinking */
    object-position: center center;
    transform: scale(1.15); /* subtle extra zoom so it visibly fills the circle */
    transform-origin: center center;
    transition: transform .3s var(--ease);
  }
  /* Optional: slightly stronger zoom on hover-capable devices */
  @media (hover: hover){
    .donation-section .donation-logo-circle:hover img{
      transform: scale(1.25);
    }
  }

  /* ---- 3. Keep circles a comfortable size on mobile ---- */
  .donation-section .donation-logo-circle{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* Small phones — keep everything fitting */
  @media (max-width: 380px){
    .donation-section .donation-logo-circle{
      width: 62px;
      height: 62px;
    }
    .donation-section .donation-logo-circle img{
      transform: scale(1.12);
    }
  }
}


