/* ==========================================================================
   THRYA HEALTH AND RESEARCH FOUNDATION
   Stylesheet: WHO WE WORK WITH (who-we-work-with.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 — Page hero
     10. PAGE — Partners
     11. PAGE — Partnership model
     12. PAGE — What we seek
     13. PAGE — Volunteer & enquiry form
     14. PAGE — CTA band
     15. Back-to-top button
     16. 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); }
.section-lede{ color: var(--color-ink-soft); font-size: 1.08rem; }

.text-link{
  color: var(--color-forest-2); font-weight: 600; border-bottom: 1.5px solid var(--color-terracotta);
  padding-bottom: 2px; transition: color .2s ease, border-color .2s ease;
}
.text-link:hover{ color: var(--color-terracotta); }

/* ----------------------------------------------------------------------
   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; }
.btn-outline-light{ border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover{ background: #fff; color: var(--color-forest); }

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

/* ----------------------------------------------------------------------
   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 — PAGE HERO
   ---------------------------------------------------------------------- */
.page-hero{
  position: relative;
  padding: var(--space-xl) 0 var(--space-xl);
  overflow: hidden;
  background: linear-gradient(165deg, var(--color-forest) 0%, #0F241D 100%);
  border-radius: 12px;
}
.page-hero::before{
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 90% -12%, rgba(192,138,52,.24), transparent 55%),
    radial-gradient(circle at 2% 118%, rgba(31,80,64,.6), transparent 50%);
}
.page-hero::after{
  content: '';
  position: absolute;
  left: 1.5rem; right: 1.5rem; bottom: 0;
  height: 1px;
  background: rgba(255,255,255,.12);
}
.page-hero .container{ position: relative; z-index: 1; }
.page-hero .eyebrow{ color: var(--color-gold); }

.page-hero h1{
  font-family: var(--font-display); font-weight: 500; font-style: normal;
  font-size: clamp(2.3rem, 4.4vw, 3.4rem);
  max-width: 20ch;
  letter-spacing: -.01em;
  color: #fff;
}
.page-hero-lede{ font-size: 1.15rem; color: rgba(255,255,255,.72); max-width: 56ch; }

.partner-chip{
  all: unset;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: #fff;
  border-bottom: 1.5px dashed rgba(192,138,52,.6);
  transition: color .2s ease, border-color .2s ease;
}
.partner-chip:hover,
.partner-chip.is-active{ color: var(--color-gold); border-color: var(--color-gold); }
.partner-chip:focus-visible{ outline: 2px solid var(--color-gold); outline-offset: 3px; border-radius: 2px; }

.partner-note{
  margin: 1rem 0 0;
  min-height: 1.3rem;
  font-size: .92rem;
  color: rgba(255,255,255,.72);
  border-left: 2px solid var(--color-gold);
  padding-left: .7rem;
  max-width: 52ch;
}

@media (max-width: 640px){
  .partner-note{ font-size: .88rem; }
}


/* ----------------------------------------------------------------------
   10. PAGE — PARTNERS
   ---------------------------------------------------------------------- */
.partners{ padding:0;}

.partner-spotlight{ max-width: 720px; margin: 0 auto; }

/* ---- diagonal split diptych ---- */
.partner-diagonal{
  position: relative; height: 320px; border-radius: var(--radius-md);
  overflow: hidden; background: var(--color-forest);
}

.partner-diagonal-photo{
  position: absolute; top: 0; left: 0; bottom: 0; width: 50%;
  opacity: 1; transition: opacity .45s ease;
}
.partner-diagonal.is-swapping .partner-diagonal-photo{ opacity: 0; }
.partner-diagonal-photo img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.partner-diagonal-panel{
  position: absolute; top: 0; right: 0; height: 100%; width: 50%;
  display: flex; flex-direction: column; justify-content: center;
  padding: 2rem 2.2rem 2rem 2.6rem;
}
.partner-diagonal-eyebrow{
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--color-gold); font-weight: 600; margin: 0 0 .6rem;
}
.partner-diagonal-panel h3{
  font-size: 1.35rem; color: #FBF6EF; margin: 0 0 .7rem; font-weight: 500;
}
.partner-diagonal-desc{
  font-size: .95rem; line-height: 1.65; color: rgba(251,246,239,.82);
  margin: 0 0 1.1rem; max-width: 34ch;
}
.partner-diagonal-type{
  font-size: .78rem; letter-spacing: .03em; color: var(--color-gold); margin: 0;
}


@media (max-width: 640px){
  .partner-diagonal{ height: auto; display: flex; flex-direction: column; }
  .partner-diagonal-photo{
    position: relative; width: 100%; height: 200px;
  }
  .partner-diagonal-panel{
    position: relative; width: 100%; height: auto;
    padding: 1.6rem 1.4rem 1.8rem;
  }
  .partner-diagonal-desc{ max-width: none; }
}


/* ----------------------------------------------------------------------
   11. PAGE — PARTNERSHIP MODEL
   ---------------------------------------------------------------------- */
.model{ padding: var(--space-xxl) 0; background: var(--color-cream-deep); }

.model-line{
  position: relative; max-width: 900px; margin: 0 auto;
  display: flex; justify-content: space-between; gap: .5rem;
}

.model-line-track{
  position: absolute; left: 24px; right: 24px; top: 27px; height: 2px;
  background: var(--color-line);
}
.model-line-fill{
  position: absolute; left: 0; top: 0; height: 100%; width: 0%;
  background: var(--color-terracotta);
  transition: width 1.1s ease;
}

.model-node{
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .6rem; padding: 0 .4rem;
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.model-node.is-in{ opacity: 1; transform: translateY(0); }

.model-dot{
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-paper); border: 2px solid var(--color-line);
  color: var(--color-forest-2);
  display: flex; align-items: center; justify-content: center;
  transition: transform .25s ease, border-color .25s ease;
}
.model-node:hover .model-dot{
  transform: translateY(-3px) scale(1.05);
  border-color: var(--color-terracotta);
}

.model-node-title{
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-forest);
  margin: 0;
}
.model-node-desc{ font-size: .8rem; line-height: 1.55; color: var(--color-ink-soft); margin: 0; }

@media (max-width: 640px){
  .model-line{ flex-wrap: wrap; row-gap: 1.8rem; }
  .model-line-track,
  .model-line-fill{ display: none; }
  .model-node{ flex: 0 0 calc(50% - .5rem); }
}

@media (prefers-reduced-motion: reduce){
  .model-line-fill{ transition: none; }
  .model-node{ transition: none; }
}


/* ----------------------------------------------------------------------
   12. PAGE — WHAT WE SEEK
   ---------------------------------------------------------------------- */
.seek{ padding: 0px }
.seek-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: start; }
.seek-card{ background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg); padding: var(--space-lg); }
.seek-card-accent{ border-color: rgba(184,92,52,.35); }
.seek-card h3{ font-size: 1.4rem; }
.seek-lede{ color: var(--color-ink-soft); padding-bottom: 1.4rem; margin-bottom: .4rem; border-bottom: 1px solid var(--color-line); }

.seek-item{
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
  border-bottom: 1px solid var(--color-line);
  padding: 1rem 0;
}
.seek-item:last-child{ border-bottom: none; }
.seek-item:focus-visible{ outline: 2.5px solid var(--color-terracotta); outline-offset: 3px; border-radius: 4px; }

.seek-item-head{ display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.seek-item-head strong{ color: var(--color-forest); font-size: 1rem; font-weight: 600; }

.seek-toggle{
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  position: relative;
  transition: transform .3s ease, border-color .3s ease;
}
.seek-toggle::before,
.seek-toggle::after{
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--color-terracotta);
  border-radius: 1px;
  transform: translate(-50%, -50%);
}
.seek-toggle::before{ width: 9px; height: 1.5px; }
.seek-toggle::after{ width: 1.5px; height: 9px; transition: opacity .25s ease; }

.seek-item[aria-expanded="true"] .seek-toggle{ transform: rotate(180deg); border-color: var(--color-terracotta); }
.seek-item[aria-expanded="true"] .seek-toggle::after{ opacity: 0; }

.seek-item-body{
  display: block;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  color: var(--color-ink-soft);
  font-size: .92rem;
  text-align: left;
  transition: max-height .35s ease, opacity .3s ease, margin-top .35s ease;
}
.seek-item[aria-expanded="true"] .seek-item-body{ max-height: 120px; opacity: 1; margin-top: .6rem; }

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


/* ----------------------------------------------------------------------
   13. PAGE — VOLUNTEER & ENQUIRY FORM
   ---------------------------------------------------------------------- */
.volunteer{ padding: 0; }

.persona-switch{ display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2.4rem; }
.persona-btn{
  all: unset;
  padding: .65rem 1.2rem;
  border: 1.5px solid var(--color-line);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  color: var(--color-ink-soft);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}
.persona-btn.is-active{ border-color: var(--color-forest); background: var(--color-forest); color: #fff; }
.persona-btn:focus-visible{ outline: 2.5px solid var(--color-terracotta); outline-offset: 3px; }

.volunteer-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-xl); align-items: start; }

.persona-copy{ transition: opacity .2s ease; }
.persona-copy.is-fading{ opacity: 0; }

.pathway-list{ margin: 1.4rem 0; }
.pathway-list li{
  padding: .9rem 0;
  border-bottom: 1px solid var(--color-line);
  font-size: .98rem;
  color: var(--color-ink-soft);
}
.pathway-list li:first-child{ padding-top: 0; }
.pathway-list strong{ color: var(--color-forest); display: block; margin-bottom: .2rem; }
.pathway-note{ font-size: .9rem; color: var(--color-ink-soft); font-style: italic; }

.form-cell{ position: relative; }

.enquiry-form{
  background: var(--color-paper); border: 1px solid var(--color-line); border-radius: var(--radius-lg);
  margin-top: -175px;
  padding: var(--space-lg); box-shadow: var(--shadow-lift);
}
.form-eyebrow{    font-family: var(--font-display); font-size: 1.4rem; color: var(--color-forest); margin-bottom: 1.4rem; transition: opacity .2s ease; }.form-row{ margin-bottom: 1.2rem; }
.form-row label{ display: block; font-weight: 600; font-size: .9rem; color: var(--color-forest); margin-bottom: .45rem; transition: opacity .2s ease; }
.form-row label span{ font-weight: 400; color: var(--color-ink-soft); }
.form-row input, .form-row select, .form-row textarea{
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--color-line);
  background: var(--color-cream); font-family: var(--font-body); font-size: .96rem; color: var(--color-ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus{
  outline: none; border-color: var(--color-terracotta); box-shadow: 0 0 0 3px rgba(184,92,52,.15);
}
.form-row textarea{ resize: vertical; min-height: 100px; }
.form-note{ font-size: .82rem; color: var(--color-ink-soft); margin: .9rem 0 0; }

.form-confirmation{

  position: absolute; inset: 0;
  text-align: center; background: var(--color-forest); color: #fff; border-radius: var(--radius-lg);
  padding:70px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transform: scale(.97);
  transition: opacity .35s ease, transform .35s ease;
}
.form-confirmation:not([hidden]){ opacity: 1; pointer-events: auto; transform: scale(1); }
.confirmation-icon{
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--color-gold); color: var(--color-forest); font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem;
}
.form-confirmation h3{ color: #fff; margin-bottom: .5rem; }
.form-confirmation p{ color: #D9D2C2; margin: 0; }

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


/* ----------------------------------------------------------------------
   14. PAGE — CTA BAND
   ---------------------------------------------------------------------- */
.cta-band{ background: var(--color-forest); color: #fff; padding: var(--space-xl) 0; margin-bottom: var(--space-xxl); }
.cta-inner{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); flex-wrap: wrap; }
.cta-inner h2{ color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 22ch; margin: 0; }
.hero-actions{ display: flex; gap: 1rem; flex-wrap: wrap; }

/* ----------------------------------------------------------------------
   15. 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); }


/* ==========================================================================
   16. 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.

   Note: the old 16.1/16.4/16.5 here targeted `.partner-grid` and
   `.model-grid`, which don't exist in this page's markup (Partners uses
   `.partner-diagonal`, the model uses `.model-line`) — those were dead
   rules left over from an earlier layout and have been dropped; the real
   classes are tightened below instead.
   ========================================================================== */

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

  /* Volunteer & enquiry form stacks here too, so the reorder has to live
     at this same breakpoint — putting it only in the ≤640px block below
     meant nothing visibly changed between 641–1024px, where it was
     already stacked but still in its original order.
     Confirmed from the HTML: .volunteer-grid has exactly two direct
     children — an unnamed <div> wrapping the persona copy + pathway
     list, then <div class="form-cell">. (.persona-copy is actually a
     <p> nested inside that first div, not the div itself, which is why
     ordering it earlier had no visible effect — order only works on
     the flex/grid item itself, not a descendant of it.) nth-child
     targets the real grid items directly. */
  .volunteer-grid{
    grid-template-columns: 1fr;
    display: grid;
    gap: 1.8rem;
  }
  .volunteer-grid > *:nth-child(1){ order: 2; }
  .volunteer-grid > *:nth-child(2){ order: 1; }
}

/* ==========================================================================
   16.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; }
}

/* ==========================================================================
   16.3 PAGE HERO (rebuilt from scratch)
   Small-header treatment: short section, tight padding, smaller type.
   ========================================================================== */
@media (max-width: 640px){
  .page-hero{ padding: 1.8rem 0 1.6rem; }
  .page-hero::after{ left: 1rem; right: 1rem; }

  .page-hero .eyebrow{ font-size: .7rem; margin-bottom: .5rem; }

  .page-hero h1{
    font-size: 1.7rem;
    line-height: 1.2;
    max-width: 100%;
    margin-bottom: .5rem;
  }
  .page-hero-lede{ font-size: .88rem; max-width: 100%; }
  .partner-note{ font-size: .82rem; padding-left: .6rem; }
}

/* ==========================================================================
   16.4 PARTNERS (rebuilt from scratch)
   The diagonal split already stacks photo-over-panel at ≤640px — this
   just pulls the photo shorter and the panel copy tighter to match the
   rest of the mobile site's density.
   ========================================================================== */
@media (max-width: 640px){
  .partner-diagonal-photo{ height: 170px; }
  .partner-diagonal-panel{ padding: 1.3rem 1.1rem 1.4rem; }
  .partner-diagonal-eyebrow{ font-size: .68rem; margin-bottom: .4rem; }
  .partner-diagonal-panel h3{ font-size: 1.15rem; margin-bottom: .5rem; }
  .partner-diagonal-desc{ font-size: .85rem; line-height: 1.55; margin-bottom: .8rem; }
  .partner-diagonal-type{ font-size: .7rem; }
}

/* ==========================================================================
   16.5 PARTNERSHIP MODEL (rebuilt from scratch)
   Nodes already wrap two-per-row at ≤640px — shrink the dots and type so
   two fit comfortably with less dead space between rows.
   ========================================================================== */
@media (max-width: 640px){
  .model{ padding: 2.6rem 0; }
  .model-line{ row-gap: 1.4rem; }
  .model-dot{ width: 44px; height: 44px; }
  .model-node{ gap: .4rem; }
  .model-node-title{ font-size: .88rem; }
  .model-node-desc{ font-size: .74rem; }
}

/* ==========================================================================
   16.6 WHAT WE SEEK (rebuilt from scratch)
   Cards already stack full-width from the ≤860px rule above — tighten
   the card padding, headings and item rows for mobile.
   ========================================================================== */
@media (max-width: 640px){
  .seek{ padding: 0; }
  .seek-grid{ gap: 1rem; }
  .seek-card{ padding: 1.2rem; }
  .seek-card h3{ font-size: 1.15rem; }
  .seek-lede{ font-size: .88rem; padding-bottom: 1rem; }
  .seek-item{ padding: .8rem 0; }
  .seek-item-head strong{ font-size: .92rem; }
  .seek-item-body{ font-size: .85rem; }
}

/* ==========================================================================
   16.7 VOLUNTEER & ENQUIRY FORM (rebuilt from scratch)
   Grid already stacks from the ≤860px rule above; the form's -175px
   overlap margin (used to float it up over the section above on desktop)
   is reset to 0 so it doesn't run into the persona copy on mobile.
   ========================================================================== */
@media (max-width: 640px){
  .persona-switch{ gap: .5rem; margin: 1.2rem 0 1.8rem; }
  .persona-btn{ padding: .5rem 1rem; font-size: .82rem; }

  /* form/pathway-copy reorder now lives in the ≤1024px block above,
     where the grid actually starts stacking */

  .pathway-list{ margin: 1.1rem 0; }
  .pathway-list li{ padding: .7rem 0; font-size: .9rem; }
  .pathway-note{ font-size: .85rem; }

  .enquiry-form{
    margin-top: 0;
    padding: 1.3rem;
  }
  .form-eyebrow{ font-size: 1.15rem; margin-bottom: 1.1rem; }
  .form-row{ margin-bottom: 1rem; }
  .form-row label{ font-size: .85rem; }
  .form-row input, .form-row select, .form-row textarea{ padding: .7rem .85rem; font-size: .92rem; }
}

/* ==========================================================================
   16.8 CTA BAND (rebuilt from scratch)
   ========================================================================== */
@media (max-width: 640px){
  .cta-band{ padding: 2.4rem 0; margin-bottom: var(--space-lg); }
  .cta-inner{ flex-direction: column; align-items: flex-start; text-align: left; gap: 1.2rem; }
  .cta-inner h2{ font-size: 1.4rem; }
  .cta-inner .hero-actions{ width: 100%; }
  .cta-inner .btn{ flex: 1; text-align: center; }
}

/* ==========================================================================
   16.9 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; }
}

/* ==========================================================================
   16.10 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; }
}