/* ==========================================================================
   THRYA HEALTH AND RESEARCH FOUNDATION
   Stylesheet: DONATE (donate.html)

   Structure of this file:
     1.  Design tokens          (kept identical across every page stylesheet)
     2.  Reset & base
     3.  Typography utilities
     4.  Buttons & links
     5.  Layout utilities
     6.  Site header & navigation
     7.  Site footer
     8.  Scroll reveal / motion
     9.  PAGE — Donate hero
     10. PAGE — Donation form (amount / programme / payment)
     11. PAGE — Summary sidebar
     12. PAGE — Confirmation state
     13. PAGE — FAQ accordion
     14. Back-to-top button
     15. MOBILE RESPONSIVE (section by section, labelled)
   ========================================================================== */


/* ----------------------------------------------------------------------
   1. DESIGN TOKENS
   ---------------------------------------------------------------------- */
:root{
  --color-cream:        #FBF6EF;
  --color-cream-deep:   #F3E8D8;
  --color-paper:        #FFFDF9;
  --color-forest:       #14332A;
  --color-forest-2:     #1F5040;
  --color-terracotta:   #B85C34;
  --color-terracotta-deep:#93482A;
  --color-gold:         #C08A34;
  --color-ink:          #211D18;
  --color-ink-soft:     #5B564D;
  --color-line:         #E3D6C2;
  --color-sage:         #E3E8D6;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --space-xs: .5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-xxl: 8rem;

  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 32px;

  --shadow-soft: 0 24px 60px -30px rgba(20,51,42,.35);
  --shadow-lift: 0 14px 34px -18px rgba(20,51,42,.28);

  --container-w: 1200px;
  --header-h: 124px;
}

/* ----------------------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------------------- */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body{
  margin: 0;
  background: var(--color-cream);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4{ font-family: var(--font-display); color: var(--color-forest); margin: 0 0 .6em; line-height: 1.15; font-weight: 500; }
p{ margin: 0 0 1em; }
button{ font-family: inherit; cursor: pointer; }

.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--color-forest); color: #fff;
  padding: .8rem 1.2rem; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus{ left: 0; }

:focus-visible{ outline: 2.5px solid var(--color-terracotta); outline-offset: 3px; }

/* ----------------------------------------------------------------------
   3. TYPOGRAPHY UTILITIES
   ---------------------------------------------------------------------- */
.eyebrow{
  font-family: var(--font-body); font-weight: 700; font-size: .78rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-terracotta); margin: 0 0 .9rem;
  display: inline-block;
}
.eyebrow-light{ color: var(--color-gold); }
.section-head{ max-width: 680px; margin: 0 auto var(--space-xl); text-align: center; }
.section-head h2{ font-size: clamp(1.8rem, 3vw, 2.6rem); }
.text-link{ color: var(--color-forest-2); font-weight: 600; border-bottom: 1.5px solid var(--color-terracotta); padding-bottom: 2px; }

/* ----------------------------------------------------------------------
   4. BUTTONS & LINKS
   ---------------------------------------------------------------------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.9rem; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; transition: transform .2s ease, background .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn-primary{ background: var(--color-terracotta); color: #fff; box-shadow: var(--shadow-lift); }
.btn-primary:hover{ background: var(--color-terracotta-deep); }
.btn-ghost{ border-color: var(--color-forest); color: var(--color-forest); background: transparent; }
.btn-ghost:hover{ background: var(--color-forest); color: #fff; }

/* ----------------------------------------------------------------------
   5. LAYOUT UTILITIES
   ---------------------------------------------------------------------- */
.container{ max-width: var(--container-w); margin: 0 auto; padding: 0 1.5rem; }

/* ----------------------------------------------------------------------
   6. SITE HEADER & NAVIGATION — floating glass capsule
   (identical markup/styles to the Home page header)
   ---------------------------------------------------------------------- */
.site-header{
  /* NOTE: no backdrop-filter/transform directly on this element or on
     .header-inner — either would make this sticky header the containing
     block for any position:fixed descendant (like the mobile nav panel
     below), trapping it inside the header's own box instead of the
     viewport. The glass effect instead lives on .header-inner::before,
     a pseudo-element, which never becomes a containing block for real
     DOM descendants like .site-nav. */
  position: sticky; top: 0; z-index: 100; width: 100%;
  padding: 14px 1.5rem;
  background: transparent;
  transition: padding .35s ease;
}
.site-header.is-scrolled{ padding-top: 10px; padding-bottom: 10px; }

.header-inner{
  position: relative;
  height: 96px;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 .6rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
/* the nav pill: logo + links, its own glass capsule */
.nav-capsule{
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: 70px; padding: 0 .6rem 0 1.6rem;
}
.nav-capsule::before{
  content: '';
  position: absolute; inset: 0;
  z-index: -1;
  border-radius: 999px;
  background: rgba(251, 246, 239, .62);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow:
    0 18px 40px -22px rgba(20, 51, 42, .35),
    0 2px 8px -2px rgba(20, 51, 42, .12),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  transition: background .35s ease, box-shadow .35s ease;
}
.site-header.is-scrolled .nav-capsule::before{
  background: rgba(251, 246, 239, .86);
  box-shadow:
    0 22px 44px -20px rgba(20, 51, 42, .4),
    0 2px 10px -2px rgba(20, 51, 42, .16),
    inset 0 1px 0 rgba(255, 255, 255, .6);
}

.brand{ display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand-mark {
    width: 152px;
    height: 47px;
    object-fit: contain;
}.brand-name{ font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: .04em; color: var(--color-forest); }

.site-nav{ display: flex; align-items: center; gap: .25rem; }
.nav-link{
  font-weight: 600; font-size: .92rem; color: var(--color-ink);
  padding: .6rem 1.05rem; border-radius: 999px;
  transition: color .25s ease, background .25s ease;
}
.nav-link:hover,
.nav-link.is-active{
  color: var(--color-terracotta); background: rgba(20, 51, 42, .07);
}

/* separate floating CTA pill, outside the nav capsule — dark, with a
   circular arrow bubble, matching a "book appointment" style hero CTA */
.nav-cta{
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: .7rem;
  background: var(--color-forest); color: #fff !important; font-weight: 600; font-size: .92rem;
  padding: .5rem .5rem .5rem 1.4rem; border-radius: 999px;
  box-shadow: 0 14px 28px -12px rgba(20, 51, 42, .55);
  transition: background .25s ease, transform .2s ease, box-shadow .25s ease;
}
.nav-cta:hover{ background: var(--color-forest-deep, #0E241D); transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(20, 51, 42, .65); }
.nav-cta-arrow{
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; background: var(--color-terracotta);
  font-size: 1rem; line-height: 1;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    padding: 0;
    margin-right: 1.2rem;
}
.nav-toggle span{ display: block; height: 2px; width: 100%; background: var(--color-forest); border-radius: 2px; transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------------
   7. SITE FOOTER
   ---------------------------------------------------------------------- */
.site-footer{
  position: relative;
  background: linear-gradient(175deg, var(--color-forest) 0%, #142b23 100%);
  color: #E9E3D6;
  padding: var(--space-xl) 0 var(--space-md);
  margin-top: var(--space-xxl);
  overflow: hidden;
}

/* subtle top accent line */
.site-footer::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-terracotta), var(--color-gold), var(--color-terracotta));
  opacity: .85;
}

/* faint radial glow for depth, matching CTA band */
.site-footer::after{
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(214, 163, 63, .12), transparent 55%);
  pointer-events: none;
}

.footer-inner{
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.footer-logo{
  display: block;
  width: 71px;
  height: 65px;
  margin-left: 0px;
  margin-top: -6px;
  margin-bottom: .4rem;
  opacity: 1;
}

.footer-name{
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin: 1.1rem 0 .3rem;
  line-height: 1.35;
}

.footer-tagline{
  color: var(--color-gold);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0;
}

.footer-col h3{
  font-family: var(--font-body);
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer-col h3::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 24px; height: 2px;
  background: var(--color-terracotta);
}

.footer-col a, .footer-col p{
  display: block;
  color: #D9D2C2;
  font-size: .95rem;
  margin-bottom: .65rem;
  line-height: 1.5;
}

.footer-col a{
  position: relative;
  width: fit-content;
  transition: color .25s ease, transform .25s ease;
}
.footer-col a:hover{
  color: #fff;
  transform: translateX(3px);
}

.footer-bottom{
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p{
  margin: 0;
  font-size: .85rem;
  color: #B9AF9C;
}

.footer-social{ display: flex; gap: .9rem; }
.footer-social a{
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: flex; align-items: center; justify-content: center;
  color: #E9E3D6;
  transition: background .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.footer-social a:hover{
  background: var(--color-terracotta);
  border-color: var(--color-terracotta);
  transform: translateY(-3px);
  box-shadow: 0 8px 18px -6px rgba(196, 106, 79, .55);
}



/* ----------------------------------------------------------------------
   8. SCROLL REVEAL / MOTION
   ---------------------------------------------------------------------- */
.js [data-reveal]{ opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js [data-reveal].is-visible{ opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------------
   9. PAGE — DONATE HERO
   ---------------------------------------------------------------------- */
.donate-hero{ background: var(--color-forest); color: #fff; padding: var(--space-xl) 0; overflow: hidden; border-radius: 12px; }
.donate-hero-inner{ max-width: 760px; }

/* interactive eyebrow tag — links to the donation form, with a hover/focus
   tooltip and a small arrow that nudges downward */
.eyebrow-tag{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  cursor: pointer;
  padding: .4rem .2rem;
  border-radius: 6px;
  transition: color .25s ease;
}
.eyebrow-tag:hover,
.eyebrow-tag:focus-visible{ color: #fff; }
.eyebrow-arrow{ transition: transform .25s ease; }
.eyebrow-tag:hover .eyebrow-arrow,
.eyebrow-tag:focus-visible .eyebrow-arrow{ transform: translateY(3px); }

.eyebrow-tooltip{
  position: absolute;
  left: 0; top: 100%;
  margin-top: .5rem;
  background: #fff;
  color: var(--color-forest);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: 0;
  text-transform: none;
  padding: .4rem .7rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s ease, transform .25s ease;
  pointer-events: none;
}
.eyebrow-tag:hover .eyebrow-tooltip,
.eyebrow-tag:focus-visible .eyebrow-tooltip{ opacity: 1; transform: translateY(0); }

/* heading — same upright Fraunces weight 500 used by every other title
   on the site, no italic override */
.donate-hero h1{
  color: #fff;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
}

/* highlighted phrase with a gold underline that draws in on load */
.hl{ position: relative; display: inline-block; }
.hl-underline{
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 12px;
  overflow: visible;
}
.hl-underline path{
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  transition: stroke-dashoffset 1.1s cubic-bezier(.22,1,.36,1);
}
.js .hl-underline path.is-drawn{ stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce){
  .hl-underline path{ stroke-dashoffset: 0; transition: none; }
  .eyebrow-tag, .eyebrow-arrow, .eyebrow-tooltip{ transition: none; }
}


/* ----------------------------------------------------------------------
   10. PAGE — DONATION FORM
   ---------------------------------------------------------------------- */
.donate-main{ padding: var(--space-xxl) 0; }
.donate-grid{ display: grid; grid-template-columns: 1.3fr .8fr; gap: var(--space-xl); align-items: start; }

.donate-form{
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  padding: var(--space-lg); box-shadow: var(--shadow-lift);
}
.donate-block{ padding-bottom: var(--space-md); margin-bottom: var(--space-md); border-bottom: 1px solid var(--color-line); }
.donate-block:last-of-type{ border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.donate-block-label{ font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .02em; text-transform: uppercase; color: var(--color-forest); margin-bottom: 1.2rem; }

.amount-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.amount-option{
  padding: .9rem .5rem; border-radius: var(--radius-sm); border: 1.5px solid var(--color-line); background: var(--color-cream);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--color-forest); transition: all .2s ease;
}
.amount-option:hover{ border-color: var(--color-terracotta); }
.amount-option.is-selected{ background: var(--color-terracotta); border-color: var(--color-terracotta); color: #fff; }
.custom-amount-row label{ display: block; font-size: .88rem; font-weight: 600; color: var(--color-ink-soft); margin-bottom: .5rem; }
.custom-amount-input{ display: flex; align-items: center; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm); background: var(--color-cream); overflow: hidden; }
.custom-amount-input span{ padding: 0 0 0 1rem; color: var(--color-ink-soft); font-weight: 700; }
.custom-amount-input input{ flex: 1; border: none; background: transparent; padding: .8rem 1rem .8rem .3rem; font-size: 1rem; font-family: var(--font-body); color: var(--color-ink); }
.custom-amount-input input:focus{ outline: none; }
.custom-amount-input:focus-within{ border-color: var(--color-terracotta); }
.custom-amount-input.is-invalid{ border-color: var(--color-terracotta-deep); }
.custom-amount-error{ font-size: .82rem; color: var(--color-terracotta-deep); margin: .5rem 0 0; }
.custom-amount-error[hidden]{ display: none; }

.programme-option-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.programme-option{
  display: block; padding: 1rem 1.1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--color-line);
  background: var(--color-cream); cursor: pointer; transition: all .2s ease; position: relative;
}
.programme-option input{ position: absolute; opacity: 0; pointer-events: none; }
.programme-option:hover{ border-color: var(--color-terracotta); }
.programme-option.is-selected{ border-color: var(--color-terracotta); background: #FBEEE6; box-shadow: 0 0 0 1px var(--color-terracotta); }
.programme-option-title{ display: block; font-family: var(--font-body); font-weight: 700; color: var(--color-forest); font-size: .95rem; margin-bottom: .3rem; }
.programme-option-desc{ display: block; font-size: .83rem; color: var(--color-ink-soft); }

.payment-tabs{ display: flex; gap: .6rem; margin-bottom: 1.2rem; flex-wrap: wrap; }
.payment-tab{
  padding: .65rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--color-line); background: var(--color-cream);
  font-family: var(--font-body); font-weight: 600; font-size: .88rem; color: var(--color-ink-soft); transition: all .2s ease;
}
.payment-tab.is-active{ background: var(--color-forest); border-color: var(--color-forest); color: #fff; }
.payment-panel{ background: var(--color-cream); border-radius: var(--radius-sm); padding: 1.3rem; }
.payment-detail-row{ display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; padding: .5rem 0; border-bottom: 1px dashed var(--color-line); margin: 0; }
.payment-detail-row:last-of-type{ border-bottom: none; }
.payment-detail-row span{ color: var(--color-ink-soft); }
.payment-detail-row strong{ font-family: var(--font-body); color: var(--color-forest); text-align: right; }
.payment-note{ font-size: .85rem; color: var(--color-ink-soft); margin: .8rem 0 0; }
.payment-note-muted{ opacity: .7; font-style: italic; }

.btn-donate{ width: 100%; margin-top: var(--space-md); padding: 1.1rem; font-size: 1.05rem; }
.donate-security-note{ text-align: center; font-size: .82rem; color: var(--color-ink-soft); margin: .9rem 0 0; }

/* ----------------------------------------------------------------------
   10b. PAGE — DONOR DETAILS MODAL
   ---------------------------------------------------------------------- */
.donate-modal{
  border: none; border-radius: var(--radius-lg); padding: 0;
  max-width: 480px; width: calc(100% - 2rem);
  box-shadow: var(--shadow-soft); background: var(--color-paper);
}
.donate-modal::backdrop{ background: rgba(20,51,42,.55); backdrop-filter: blur(2px); }

.donate-modal-form{ position: relative; padding: var(--space-lg) var(--space-md) var(--space-md); max-height: 85vh; overflow-y: auto; }
.donate-modal-form h3{ margin-bottom: 1.3rem; padding-right: 1.5rem; }

.donate-modal-close{
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px; border-radius: 50%;
  border: none; background: var(--color-cream); color: var(--color-ink-soft); font-size: 1.3rem; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease;
}
.donate-modal-close:hover{ background: var(--color-terracotta); color: #fff; }

.modal-field{ margin-bottom: 1rem; }
.modal-field label{ display: block; font-size: .88rem; font-weight: 600; color: var(--color-forest); margin-bottom: .4rem; }
.modal-field .req{ color: var(--color-terracotta); margin-left: .15rem; }
.modal-field input, .modal-field select{
  width: 100%; padding: .75rem .9rem; border-radius: var(--radius-sm); border: 1.5px solid var(--color-line);
  background: var(--color-cream); font-family: var(--font-body); font-size: .95rem; color: var(--color-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.modal-field select{ appearance: none; -webkit-appearance: none; cursor: pointer; }
.modal-field input:focus, .modal-field select:focus{
  outline: none; border-color: var(--color-terracotta); box-shadow: 0 0 0 3px rgba(184,92,52,.15);
}
.modal-field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.modal-radio-field{ padding: .9rem 1rem; background: var(--color-cream); border-radius: var(--radius-sm); border: 1.5px solid var(--color-line); }
.modal-radio{ display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; color: var(--color-forest); cursor: pointer; }
.modal-radio input{ width: 17px; height: 17px; accent-color: var(--color-terracotta); flex-shrink: 0; }

.modal-foreign-note{
  font-size: .82rem; color: var(--color-ink-soft); background: var(--color-cream-deep);
  border-left: 3px solid var(--color-terracotta); border-radius: 6px; padding: .75rem .9rem; margin: 1rem 0 0;
}

.modal-privacy-note{ font-size: .78rem; color: var(--color-ink-soft); text-align: center; margin: .9rem 0 0; }

.modal-error{
  font-size: .85rem; color: var(--color-terracotta-deep); background: #FBEAE3;
  border-left: 3px solid var(--color-terracotta-deep); border-radius: 6px; padding: .7rem .9rem; margin: 1rem 0 0;
}
.modal-error[hidden]{ display: none; }
.btn-donate:disabled{ opacity: .65; cursor: not-allowed; }

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

/* ----------------------------------------------------------------------
   11. PAGE — SUMMARY SIDEBAR
   ---------------------------------------------------------------------- */
.donate-summary{
  position: sticky; top: calc(var(--header-h) + 1.5rem); background: var(--color-forest); color: #fff;
  border-radius: var(--radius-lg); padding: var(--space-md); box-shadow: var(--shadow-soft);
}
.donate-summary h3{ color: #fff; font-size: 1.2rem; margin-bottom: 1.2rem; }
.summary-row{ display: flex; justify-content: space-between; align-items: baseline; padding: .7rem 0; font-size: .95rem; }
.summary-row span{ color: #C9C1AE; }
.summary-row strong{ font-family: var(--font-body); color: var(--color-gold); font-size: 1.1rem; text-align: right; max-width: 60%; }
.summary-divider{ height: 1px; background: rgba(255,255,255,.15); margin: 1rem 0; }
.summary-note{ font-size: .85rem; color: #D9D2C2; margin-bottom: 1.2rem; }
.summary-trust-list li{ font-size: .85rem; color: #C9C1AE; padding: .5rem 0; border-top: 1px solid rgba(255,255,255,.1); }
.summary-trust-list li:first-child{ border-top: none; }



/* ----------------------------------------------------------------------
   12. PAGE — CONFIRMATION STATE
   ---------------------------------------------------------------------- */
.donate-confirmation{
  text-align: center; max-width: 560px; margin: var(--space-lg) auto 0; background: var(--color-paper);
  border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-soft);
}
.confirmation-icon{
  display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-sage); color: var(--color-forest-2); font-size: 1.6rem; font-weight: 700; margin-bottom: 1.1rem;
}
.donate-confirmation p{ color: var(--color-ink-soft); font-size: .95rem; }

/* ----------------------------------------------------------------------
   13. PAGE — FAQ ACCORDION
   ---------------------------------------------------------------------- */
.donate-faq{ padding-bottom: var(--space-xxl); }
.accordion{ max-width: 760px; margin: 0 auto; }
.accordion-item{ border-bottom: 1px solid var(--color-line); }
.accordion-item:first-child{ border-top: 1px solid var(--color-line); }
.accordion-trigger{
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: none; border: none;
  padding: 1.3rem .3rem; font-family: var(--font-display); font-size: 1.08rem; color: var(--color-forest); text-align: left;
}
.accordion-icon{ font-size: 1.3rem; color: var(--color-terracotta); transition: transform .25s ease; flex-shrink: 0; }
.accordion-item.is-open .accordion-icon{ transform: rotate(45deg); }
.accordion-panel{ max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion-item.is-open .accordion-panel{ max-height: 220px; }
.accordion-panel p{ padding: 0 .3rem 1.3rem; color: var(--color-ink-soft); font-size: .95rem; margin: 0; }

/* ----------------------------------------------------------------------
   14. BACK TO TOP BUTTON
   ---------------------------------------------------------------------- */
.to-top{
  position: fixed; right: 1.6rem; bottom: 1.6rem; width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-forest); color: #fff; border: none; font-size: 1.2rem; box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .3s ease, transform .3s ease, background .2s ease;
  z-index: 90;
}
.to-top.is-visible{ opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover{ background: var(--color-terracotta); }


/* ==========================================================================
   15. MOBILE RESPONSIVE
   Organised section by section, matching the numbering above. Rebuilt to
   match the other pages' mobile approach: a single ≤640px breakpoint,
   small header, tight padding, reduced empty space. Nav, footer and
   back-to-top are copied over unchanged from the home page stylesheet so
   every page behaves and looks identical on mobile.
   ========================================================================== */

/* ---- 15.1 Layout & tablet breakpoint (≤ 1024px) ---- */
@media (max-width: 1024px){
  :root{ --space-xxl: 6rem; --space-xl: 3.6rem; }
  .donate-grid{ grid-template-columns: 1fr; }
  .donate-summary{ position: static; }
  .footer-inner{ grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   15.2 HEADER & NAVIGATION (rebuilt from scratch)
   Identical to the home page's mobile nav capsule.
   ========================================================================== */
@media (max-width: 640px){
  :root{ --header-h: 88px; }

  .site-header{ padding: 10px 1rem; }
  .header-inner{ height: 64px; padding: 0 .3rem; }

  .nav-toggle{ display: flex; }

  .nav-capsule{
    height: 64px;
    padding: 0 .4rem 0 1rem;
  }
  .brand-mark{
    width: 43px;
    height: 64px;
    margin-left: 12px;
  }
  .brand-name{ font-size: 1.05rem; }

  .nav-cta{ font-size: .72rem; gap: .4rem; padding: .3rem .3rem .3rem .8rem; }
  .nav-cta-arrow{ width: 26px; height: 26px; font-size: .85rem; }

  .site-nav{
    position: fixed;
    top: calc(var(--header-h) + .5rem);
    left: 50%;
    width: min(88vw, 360px);
    max-height: 50vh;
    transform: translateX(-50%) translateY(-12px) scale(.96);
    flex-direction: column;
    align-items: stretch;
    gap: .2rem;
    padding: .8rem;
    border-radius: var(--radius-lg);
    /* same frosted-glass recipe as .nav-capsule::before. backdrop-filter is
       safe here because .site-nav is itself the fixed element — it has no
       fixed descendants that could get trapped by a new containing block. */
    background: rgba(251, 246, 239, .62);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow:
      0 18px 40px -22px rgba(20, 51, 42, .35),
      0 2px 8px -2px rgba(20, 51, 42, .12),
      inset 0 1px 0 rgba(255, 255, 255, .55);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease, background .35s ease, box-shadow .35s ease;
  }
  /* keep in step with the capsule, which gets more opaque once scrolled */
  .site-header.is-scrolled .site-nav{
    background: rgba(251, 246, 239, .86);
    box-shadow:
      0 22px 44px -20px rgba(20, 51, 42, .4),
      0 2px 10px -2px rgba(20, 51, 42, .16),
      inset 0 1px 0 rgba(255, 255, 255, .6);
  }
  /* browsers without backdrop-filter: fall back to a near-solid panel */
  @supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){
    .site-nav,
    .site-header.is-scrolled .site-nav{ background: rgba(251, 246, 239, .97); }
  }
  .site-nav.is-open{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  .nav-link{ width: 100%; font-size: 1rem; padding: .8rem .9rem; text-align: left; }

  body.nav-open{ overflow: hidden; }
}

/* ==========================================================================
   15.3 DONATE HERO (rebuilt from scratch)
   Small-header treatment: short section, tight padding, smaller type.
   ========================================================================== */
@media (max-width: 640px){
  .donate-hero{ padding: 1.8rem 0; }
  .eyebrow-tag{ font-size: .7rem; padding: .3rem 0; }
  .eyebrow-tooltip{ font-size: .68rem; padding: .35rem .6rem; }
  .donate-hero h1{ font-size: 1.5rem; line-height: 1.32; }
}

/* ==========================================================================
   15.4 DONATION FORM (rebuilt from scratch)
   Grid already stacks from the ≤1024px rule above — tighten the form's
   padding and every control inside it for mobile.
   ========================================================================== */
@media (max-width: 640px){
  .donate-main{ padding: 1.8rem 0 2.4rem; }
  .donate-form{ padding: 1.2rem; }
  .donate-block{ padding-bottom: 1.2rem; margin-bottom: 1.2rem; }
  .donate-block-label{ font-size: .82rem; margin-bottom: .9rem; }

  .amount-grid{ grid-template-columns: repeat(2, 1fr); gap: .6rem; margin-bottom: 1rem; }
  .amount-option{ padding: .75rem .5rem; font-size: .92rem; }
  .custom-amount-row label{ font-size: .82rem; }
  .custom-amount-input input{ font-size: .92rem; padding: .7rem 1rem .7rem .3rem; }
  .custom-amount-error{ font-size: .78rem; }

  .programme-option-grid{ grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .programme-option{ padding: .75rem .8rem; }
  .programme-option-title{ font-size: .82rem; }
  .programme-option-desc{ font-size: .72rem; }

  .payment-tabs{ flex-direction: column; gap: .5rem; margin-bottom: 1rem; }
  .payment-tab{ width: 100%; text-align: center; padding: .55rem 1rem; font-size: .85rem; }
  .payment-panel{ padding: 1rem; }
  .payment-detail-row{ font-size: .85rem; }
  .payment-note{ font-size: .8rem; }

  .btn-donate{ padding: .95rem; font-size: .98rem; }
  .donate-security-note{ font-size: .78rem; }
}

/* ---- 15.4b Donor details modal (≤ 640px) ---- */
@media (max-width: 640px){
  .donate-modal-form{ padding: 1.3rem 1.1rem 1.1rem; }
  .donate-modal-form h3{ font-size: 1.15rem; margin-bottom: 1rem; }
  .modal-field{ margin-bottom: .8rem; }
  .modal-field label{ font-size: .82rem; }
  .modal-field input, .modal-field select{ padding: .65rem .8rem; font-size: .9rem; }
  .modal-radio-field{ padding: .75rem .9rem; }
  .modal-radio{ font-size: .85rem; }
  .modal-foreign-note{ font-size: .78rem; padding: .65rem .8rem; }
  .modal-privacy-note{ font-size: .74rem; }
}

/* ==========================================================================
   15.5 SUMMARY SIDEBAR (rebuilt from scratch)
   ========================================================================== */
@media (max-width: 640px){
  .donate-summary{ padding: 1.2rem; }
  .donate-summary h3{ font-size: 1.05rem; margin-bottom: .9rem; }
  .summary-row{ padding: .55rem 0; font-size: .85rem; }
  .summary-row strong{ font-size: .98rem; }
  .summary-note{ font-size: .78rem; margin-bottom: .9rem; }
  .summary-trust-list li{ font-size: .78rem; padding: .4rem 0; }
}

/* ==========================================================================
   15.6 CONFIRMATION STATE (rebuilt from scratch)
   ========================================================================== */
@media (max-width: 640px){
  .donate-confirmation{ padding: 1.2rem; margin-top: 1.6rem; }
  .confirmation-icon{ width: 46px; height: 46px; font-size: 1.3rem; margin-bottom: .9rem; }
  .donate-confirmation p{ font-size: .88rem; }
}

/* ==========================================================================
   15.7 FAQ ACCORDION (rebuilt from scratch)
   ========================================================================== */
@media (max-width: 640px){
  .donate-faq{ padding-bottom: 2.4rem; }
  .accordion-trigger{ font-size: .96rem; padding: .95rem 0; }
  .accordion-icon{ font-size: 1.1rem; }
  .accordion-panel p{ font-size: .85rem; padding-bottom: .95rem; }
}

/* ==========================================================================
   15.8 FOOTER (rebuilt from scratch)
   Identical to the home page's mobile footer.
   ========================================================================== */
@media (max-width: 640px){
  .site-footer{ padding: 1.8rem 0 1rem; margin-top: var(--space-lg); }

  .footer-inner{
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem .8rem;
    padding-bottom: 1.1rem;
  }
  .footer-brand{
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: .6rem;
  }
  .footer-col:nth-child(4){ grid-column: 1 / -1; }

  .footer-logo{ grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 36px; margin: 0; }
  .footer-name{ grid-column: 2; grid-row: 1; font-size: .8rem; margin: 0; line-height: 1.25; align-self: end; }
  .footer-tagline{ grid-column: 2; grid-row: 2; font-size: .58rem; margin: 0; align-self: start; white-space: normal; }

  .footer-col h3{ font-size: .66rem; margin-bottom: .45rem; padding-bottom: .3rem; }
  .footer-col a, .footer-col p{ font-size: .78rem; margin-bottom: .3rem; }

  .footer-bottom{
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding-top: .8rem;
  }
  .footer-bottom p{ font-size: .68rem; }

  .footer-social{ gap: .5rem; }
  .footer-social a{ width: 26px; height: 26px; }
  .footer-social a svg{ width: 14px; height: 14px; }
}

/* ==========================================================================
   15.9 BACK TO TOP (rebuilt from scratch)
   Identical to the home page's mobile back-to-top button.
   ========================================================================== */
@media (max-width: 640px){
  .to-top{ right: 1rem; bottom: 1rem; width: 40px; height: 40px; font-size: 1rem; }
}