/*
Theme Name: Sendero Centre
Theme URI: https://www.senderocentre.ca
Author: Sendero Centre
Author URI: https://www.senderocentre.ca
Description: Official WordPress theme for Sendero Centre – Central Alberta's path to hope, respect, and healing.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: sendero
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Brand Palette — Sendero Centre Brand Guide ── */
  --color-teal-dark:    #0D3240;   /* dark bg: header, footer, dark sections */
  --color-teal:         #298AA1;   /* PRIMARY teal — brand guide #298AA1    */
  --color-teal-mid:     #3A9DB5;   /* hover/active teal                     */
  --color-teal-light:   #AACED4;   /* brand guide light teal #AACED4        */
  --color-teal-xlight:  #EAF4F7;   /* near-white teal for section bg        */
  --color-orange:       #F37436;   /* brand guide orange #F37436            */
  --color-orange-light: #F8965E;   /* orange hover                          */
  --color-gold:         #EFB03C;   /* brand guide gold #EFB03C              */

  /* ── Neutrals ── */
  --color-white:        #FFFFFF;
  --color-off-white:    #F7FBFC;
  --color-cream:        #FFFFFF;
  --color-sand:         #EAF4F7;
  --color-warm-gray:    #AACED4;   /* borders — brand light teal            */
  --color-text:         #565656;   /* brand guide body text #565656         */
  --color-text-muted:   #7A8C93;

  /* ── Typography — Century Gothic (brand guide) ──
     Century Gothic is a geometric sans-serif. We load Jost from
     Google Fonts as a near-identical web fallback, then let the
     browser use Century Gothic if it is installed locally.       */
  --font-display: 'Century Gothic', 'CenturyGothic', 'Jost', 'Futura', 'Trebuchet MS', Arial, sans-serif;
  --font-body:    'Century Gothic', 'CenturyGothic', 'Jost', 'Futura', 'Trebuchet MS', Arial, sans-serif;

  /* ── Spacing ── */
  --space-xs:  0.5rem;   --space-sm: 1rem;
  --space-md:  2rem;     --space-lg: 4rem;
  --space-xl:  8rem;     --space-2xl: 12rem;

  /* ── Radii ── */
  --radius-sm:   8px;   --radius-md:  16px;
  --radius-lg:  32px;   --radius-full: 9999px;

  /* ── Shadows — softer & lighter ── */
  --shadow-sm: 0 2px 12px rgba(41,138,161,0.07);
  --shadow-md: 0 8px 32px rgba(41,138,161,0.11);
  --shadow-lg: 0 24px 64px rgba(41,138,161,0.16);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
  --dur-fast: 180ms;  --dur-mid: 380ms;  --dur-slow: 650ms;

  --container-max: 1260px;
  --container-pad: clamp(1.5rem, 5vw, 3.5rem);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;  /* Century Gothic is naturally wide — slightly tighten */
  color: var(--color-teal-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.5rem);   font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h4 { font-size: clamp(1rem, 1.6vw, 1.3rem); }
/* Note: max-width is set contextually on .section-header p,
   .hero-subtext etc. rather than globally to avoid centering weirdness. */
p  { max-width: none; }
.hero-subtext,
.events-page-intro,
.about-hero-sub,
.contact-hero-sub,
.flex-hero-subtitle { max-width: 60ch; }
.section-header p { max-width: 70ch; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;  /* Century Gothic — slightly less tracking than Raleway needed */
  color: var(--color-orange);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 2.2em;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all var(--dur-mid) var(--ease-out);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: none;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--color-orange);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(243,116,54,0.35);
}
.btn-primary:hover {
  background: var(--color-orange-light);
  box-shadow: 0 8px 32px rgba(243,116,54,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255,255,255,0.55);
  backdrop-filter: blur(4px);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.9); color: #fff; }

.btn-teal {
  background: var(--color-teal);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(41,138,161,0.3);
}
.btn-teal:hover { background: var(--color-teal-dark); }

.btn-arrow::after { content: '\2192'; transition: transform var(--dur-fast); margin-left: 0.2em; }
.btn-arrow:hover::after { transform: translateX(4px); }

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 9999;
  padding: 0.75em 1.5em;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
  transition: top var(--dur-fast);
}
.skip-link:focus { top: 0; }

/* ============================================================
   HEADER
   The crisis bar + nav bar are both inside #site-header (fixed).
   This prevents the transparent state from overlapping a
   separately-positioned crisis bar in the document flow.
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--dur-mid), box-shadow var(--dur-mid);
}

/* WordPress admin bar offset */
.admin-bar #site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #site-header { top: 46px; }
}

/* Transparent state: subtle dark gradient so nav text is always readable
   against any hero image without an ugly solid bar */
#site-header.is-transparent {
  /* Always show solid — same as scrolled state */
  background: rgba(18, 64, 79, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

#site-header.is-scrolled {
  background: rgba(18, 64, 79, 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

/* Crisis bar — lives inside fixed header, always at the top */
.header-crisis-bar {
  background: var(--color-orange);
  text-align: center;
  padding: 0.4rem var(--container-pad);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
  transition: opacity var(--dur-mid), max-height var(--dur-mid);
}

/* Crisis bar always visible — header is always solid */

.header-crisis-bar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-block: 0.5rem;
  flex-wrap: nowrap; /* never wrap to second row */
  min-width: 0;
}

/* Logo — now a transparent PNG so no filter tricks needed */
.site-logo { flex-shrink: 0; }
.site-logo-link { display: block; line-height: 0; }

.site-logo-img {
  height: 120px;
  width: auto;
  display: block;
  transition: opacity var(--dur-fast);
}

.site-logo-link:hover .site-logo-img { opacity: 0.85; }

/* ============================================================
   NAVIGATION
   Heavily scoped to #site-header to prevent WP style bleed.
   WP menu HTML: nav > ul.menu > li.menu-item > a
   ============================================================ */

#site-header .primary-nav {
  display: flex;
  align-items: center;
}

/* Top-level list ─ reset WP defaults */
#site-header .primary-nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#site-header .primary-nav > ul,
#site-header .primary-nav > div > ul {
  display: flex;
  align-items: center;
}

/* Top-level items */
#site-header .primary-nav > ul > li,
#site-header .primary-nav > div > ul > li {
  position: relative;
  float: none !important;
}

/* Top-level links */
#site-header .primary-nav > ul > li > a,
#site-header .primary-nav > div > ul > li > a {
  display: block;
  padding: 0.5em 0.8em;
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,0.95) !important;
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast), background var(--dur-fast);
  letter-spacing: 0.01em;
  text-decoration: none !important;
  white-space: nowrap;
  line-height: 1.4;
}

#site-header .primary-nav > ul > li > a:hover,
#site-header .primary-nav > div > ul > li > a:hover,
#site-header .primary-nav > ul > li.current-menu-item > a,
#site-header .primary-nav > ul > li.current_page_item > a,
#site-header .primary-nav > div > ul > li.current-menu-item > a {
  color: var(--color-white) !important;
  background: rgba(255,255,255,0.12);
}

/* Dropdown — hidden by default */
#site-header .primary-nav .sub-menu,
  body > .primary-nav .sub-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  min-width: 220px;
  background: var(--color-white) !important;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem !important;
  margin: 0 !important;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-mid) var(--ease-out),
              visibility var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out);
  z-index: 200;
  float: none !important;
}

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

#site-header .primary-nav .sub-menu li {
  float: none !important;
}

#site-header .primary-nav .sub-menu li a,
  body > .primary-nav .sub-menu li a {
  display: block !important;
  padding: 0.6em 1em !important;
  font-family: var(--font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: var(--color-teal-dark) !important;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
  text-decoration: none !important;
  line-height: 1.4;
  background: transparent !important;
}

#site-header .primary-nav .sub-menu li a:hover {
  background: var(--color-teal-xlight) !important;
  color: var(--color-teal) !important;
}

/* Header actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.header-crisis-link {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  padding: 0.9em 1.4em;
  border-radius: var(--radius-full);
  border: 2px solid var(--color-orange);
  background: rgba(243,116,54,0.12);
  transition: all var(--dur-fast);
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.header-crisis-link:hover {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.1);
}

.crisis-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.8); }
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--dur-mid) var(--ease-out);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── LARGE LAPTOP 1140–1400px: compact but full nav ──────── */
@media (max-width: 1400px) and (min-width: 1141px) {
  #site-header .primary-nav > ul > li > a,
  #site-header .primary-nav > div > ul > li > a {
    font-size: 0.85rem !important;
    padding: 0.4em 0.55em !important;
    letter-spacing: 0;
  }
  .header-crisis-link {
    font-size: 0.78rem !important;
    padding: 0.65em 0.9em !important;
    letter-spacing: 0.01em;
  }
  .header-actions .btn {
    font-size: 0.78rem !important;
    padding: 0.65em 1.1em !important;
  }
  .header-logo img { height: 44px !important; }
}

/* Mobile CTAs inside nav overlay — hidden everywhere except open mobile nav */
.mobile-nav-ctas { display: none !important; }

@media (max-width: 1140px) {
  .nav-toggle { display: flex !important; }
  .header-crisis-link,
  .crisis-link-full,
  .crisis-link-short { display: none !important; }
  .header-actions .btn.btn-primary { display: none !important; }

  /* Full-screen overlay — entire content scrolls together */
  #site-header .primary-nav,
  body > .primary-nav {
    position: fixed !important;
    top: 0 !important; left: 0 !important;
    width: 100vw !important; height: 100vh !important;
    background: var(--color-teal-dark) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 5rem 2rem 2rem !important;
    transform: translateX(100%) !important;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1) !important;
    z-index: 1001 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    box-sizing: border-box !important;
  }

  #site-header .primary-nav.is-open,
  body > .primary-nav.is-open {
    transform: translateX(0) !important;
  }

  /* Mobile CTAs — scroll with nav, full width, good spacing */
  #site-header .primary-nav.is-open .mobile-nav-ctas,
  body > .primary-nav.is-open .mobile-nav-ctas {
    display: flex !important;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    padding: 1.5rem 0 3rem;
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .mobile-nav-ctas .btn {
    display: flex !important;
    width: 100%;
    justify-content: center;
    font-size: 1rem !important;
    padding: 0.85em 1.5em !important;
    box-sizing: border-box;
  }

  /* Top-level list */
  #site-header .primary-nav > ul,
  #site-header .primary-nav > div > ul,
  body > .primary-nav > ul,
  body > .primary-nav > div > ul {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 100% !important;
    gap: 0 !important;
  }

  /* Top-level items */
  #site-header .primary-nav > ul > li,
  #site-header .primary-nav > div > ul > li,
  body > .primary-nav > ul > li,
  body > .primary-nav > div > ul > li {
    width: 100% !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    position: relative !important;
  }

  /* Top-level links */
  #site-header .primary-nav > ul > li > a,
  #site-header .primary-nav > div > ul > li > a,
  body > .primary-nav > ul > li > a,
  body > .primary-nav > div > ul > li > a {
    display: block !important;
    font-size: 1.5rem !important;
    font-family: var(--font-display) !important;
    font-weight: 700 !important;
    color: #fff !important;
    padding: 0.6em 0 !important;
    background: none !important;
    border-radius: 0 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.2 !important;
    width: 100% !important;
  }

  #site-header .primary-nav > ul > li > a:hover,
  #site-header .primary-nav > div > ul > li > a:hover,
  body > .primary-nav > ul > li > a:hover,
  body > .primary-nav > div > ul > li > a:hover {
    color: var(--color-gold) !important;
    background: none !important;
  }

  /* Sub-menus — always visible on mobile */
  #site-header .primary-nav .sub-menu,
  body > .primary-nav .sub-menu {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 0 0.5rem 1rem !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    display: block !important;
    pointer-events: auto !important;
  }

  #site-header .primary-nav .sub-menu li a,
  body > .primary-nav .sub-menu li a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 1rem !important;
    padding: 0.35em 0 !important;
    background: transparent !important;
    display: block !important;
  }
  #site-header .primary-nav .sub-menu li a:hover,
  body > .primary-nav .sub-menu li a:hover {
    color: var(--color-gold) !important;
    background: transparent !important;
  }

  /* Close button */
  .mobile-nav-close {
    display: flex !important;
    position: absolute !important;
    top: 1.25rem !important; right: 1.25rem !important;
    background: rgba(255,255,255,0.1) !important;
    border: none !important;
    width: 44px !important; height: 44px !important;
    border-radius: 50% !important;
    color: #fff !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 1002 !important;
  }
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }
.reveal-delay-4 { transition-delay: 400ms; }
.reveal-delay-5 { transition-delay: 500ms; }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--color-teal-dark);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    170deg,
    rgba(13,50,64,0.65) 0%,
    rgba(13,50,64,0.55) 25%,
    rgba(13,50,64,0.80) 65%,
    rgba(13,50,64,0.97) 100%
  );
}

.hero-mesh {
  position: absolute; inset: 0; z-index: 2;
  background:
    radial-gradient(ellipse 70% 50% at 75% 20%, rgba(37,128,160,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 35% at 15% 75%, rgba(224,117,53,0.1) 0%, transparent 60%);
}

.hero-swoop {
  position: absolute; bottom: -2px; left: 0; right: 0; z-index: 3; line-height: 0;
}
.hero-swoop svg { width: 100%; height: auto; }

.hero-content {
  position: relative; z-index: 4;
  padding-bottom: clamp(6rem, 11vw, 10rem);
  /* Clears crisis bar (~32px) + 120px logo nav + breathing room */
  padding-top: clamp(10rem, 16vw, 14rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-orange);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out) 0.2s forwards;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px; height: 2px;
  background: var(--color-orange);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7.5vw, 7rem);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  max-width: 14ch;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.4s forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.45), 0 1px 4px rgba(0,0,0,0.3);
}
.hero-headline .line { display: block; }
.hero-headline .accent-word { color: var(--color-gold); font-style: italic; }
.hero-headline .headline-accent { font-style: normal; text-shadow: 0 2px 24px rgba(0,0,0,0.5), 0 1px 6px rgba(0,0,0,0.35); }

.hero-subtext {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(255,255,255,0.85);
  max-width: 48ch;
  margin-bottom: 2.75rem;
  line-height: 1.75;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.6s forwards;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 0.8s forwards;
}

/* Floating crisis card — desktop */
.hero-crisis-card {
  position: absolute;
  right: var(--container-pad);
  bottom: calc(clamp(5rem, 10vw, 9rem) + 1.5rem);
  z-index: 4;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  color: var(--color-white);
  min-width: 230px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out) 1s forwards;
}
.hero-crisis-card .crisis-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.4rem;
}
.hero-crisis-card .crisis-number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.3rem;
  text-decoration: none;
}
.hero-crisis-card .crisis-available {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.1rem;
}
.hero-crisis-card .btn {
  width: 100%;
  justify-content: center;
  font-size: 0.75rem;
  padding: 0.65em 1.2em;
}

.hero-scroll {
  position: absolute;
  bottom: clamp(5rem, 10vw, 9rem);
  left: 50%; transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.4);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  animation: fade-in 1s var(--ease-out) 1.5s both;
}
.scroll-mouse {
  width: 22px; height: 34px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-mouse::before {
  content: '';
  width: 3px; height: 6px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scroll-wheel 2s ease infinite;
}
@keyframes scroll-wheel {
  0%   { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-crisis-card { display: none; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-section {
  background: var(--color-white);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section-header { margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.section-header h2 { color: var(--color-teal-dark); }
.section-header p  { color: var(--color-text-muted); font-size: 1.05rem; margin-top: 0.75rem; max-width: 70ch; }
.section-header--center { text-align: center; }
.section-header--center p { margin-inline: auto; }
.section-header--center .eyebrow { display: block; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-teal-light);
  transition: box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-mid));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-mid) var(--ease-out);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--color-teal-mid);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  background: var(--color-teal-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg {
  width: 28px; height: 28px;
  color: var(--color-teal);
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.service-card h3 { font-size: 1.2rem; color: var(--color-teal-dark); }
.service-card p  { color: var(--color-text-muted); font-size: 0.95rem; line-height: 1.65; flex: 1; }

.card-link {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase; letter-spacing: 0.14em;
  transition: gap var(--dur-fast), color var(--dur-fast);
  text-decoration: none;
}
.card-link::after { content: '\2192'; }
.card-link:hover  { gap: 0.7em; color: var(--color-orange); }

/* ============================================================
   STATS SECTION
   ============================================================ */
.stats-section {
  position: relative; overflow: hidden;
  background: var(--color-teal-dark);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}
.stats-bg { position: absolute; inset: 0; z-index: 0; }
.stats-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.1;
  filter: grayscale(50%) saturate(0.5);
}
.stats-section::before {
  content: '';
  position: absolute; top: -40%; right: -5%;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,128,160,0.2) 0%, transparent 70%);
  z-index: 1;
}
.stats-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
  position: relative; z-index: 2;
}
@media (max-width: 820px) { .stats-inner { grid-template-columns: 1fr; gap: var(--space-lg); } }

.stats-intro .eyebrow { color: var(--color-gold); margin-bottom: 0.75rem; }
.stats-intro h2 { color: var(--color-white); font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.stats-intro p  { color: rgba(255,255,255,0.7); font-size: 1rem; line-height: 1.7; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  backdrop-filter: blur(4px);
  transition: background var(--dur-mid), transform var(--dur-mid) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-card:hover { background: rgba(255,255,255,0.12); transform: translateY(-4px); }

/* Icon above the number */
.stat-icon {
  width: 38px; height: 38px;
  background: rgba(239,176,60,0.15); /* gold tint */
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.25rem;
}
.stat-icon svg {
  width: 20px; height: 20px;
  stroke: var(--color-gold);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}

/* Gold accent bar above the number */
.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-top: 0.75rem;
}
.stat-value::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
.stat-label {
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase; letter-spacing: 0.1em;
  font-family: var(--font-body);
}

/* ============================================================
   ABOUT / SENDERO SECTION
   ============================================================ */
.about-section {
  background: var(--color-off-white);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
  position: relative;
}

/* Forest path image — very subtle, behind the content */
.about-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.about-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.06;
  filter: saturate(0.4) sepia(0.2);
}

/* Ensure about content sits above the bg image */
.about-section .container { position: relative; z-index: 1; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
@media (max-width: 760px) { .about-inner { grid-template-columns: 1fr; } }

.about-image-block { position: relative; }
.about-image-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.about-image-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.about-image-main:hover img { transform: scale(1.03); }

.about-accent-card {
  position: absolute;
  bottom: -2rem; right: -2rem;
  background: var(--color-orange);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  max-width: 190px;
  box-shadow: var(--shadow-lg);
}
.about-accent-card .word {
  font-family: var(--font-display);
  font-size: 2.2rem; font-weight: 800;
  line-height: 1; font-style: italic;
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
}
.about-accent-card p { font-size: 0.8rem; opacity: 0.85; line-height: 1.5; max-width: none; }

.about-content .eyebrow { margin-bottom: 0.75rem; }
.about-content h2 { color: var(--color-teal-dark); margin-bottom: 1.25rem; }
.about-content p  { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }
.about-content .btn { margin-top: 1.5rem; }

.vision-highlight {
  background: var(--color-teal-xlight);
  border-left: 4px solid var(--color-orange);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.vision-highlight p {
  font-family: var(--font-body);
  font-size: 1.05rem; font-style: italic;
  color: var(--color-teal-dark);
  margin: 0; max-width: none;
  font-weight: 600;
}

/* ============================================================
   COMMUNITY / VISION SECTION
   ============================================================ */
.community-section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--color-teal-xlight);
  overflow: hidden;
}
.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}
@media (max-width: 760px) {
  .community-inner { grid-template-columns: 1fr; }
  .community-image { order: -1; }
}

.community-content .eyebrow { margin-bottom: 0.75rem; }
.community-content h2 { color: var(--color-teal-dark); margin-bottom: 1.25rem; }
.community-content p  { color: var(--color-text-muted); font-size: 1.05rem; line-height: 1.75; margin-bottom: 1rem; }

.community-stat {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  color: var(--color-teal);
  margin-top: 0.5rem; margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.community-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1 / 1;
}
.community-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.community-image:hover img { transform: scale(1.04); }

/* ============================================================
   GET STARTED SECTION
   ============================================================ */
.help-section {
  /* Light background so it doesn't feel heavy after the dark stats section */
  background: var(--color-white);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  position: relative; overflow: hidden;
}
.help-section::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(41,138,161,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 100% 0%, rgba(224,117,53,0.04) 0%, transparent 60%);
  pointer-events: none;
}

.help-section .section-header h2 { color: var(--color-teal-dark); }
.help-section .section-header p  { color: var(--color-text-muted); }
.help-section .eyebrow { color: var(--color-orange); }

.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  position: relative; z-index: 1;
}
@media (max-width: 960px) { .help-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .help-grid { grid-template-columns: 1fr; } }

.help-card {
  background: var(--color-white);
  border: 1.5px solid var(--color-teal-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: background var(--dur-mid), transform var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid), border-color var(--dur-mid);
  text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  text-align: left; /* override browser default center on <button> */
  border: 1.5px solid var(--color-teal-light); /* keep border explicit */
  font-family: var(--font-body);
  width: 100%;
  background-color: var(--color-white);
}
.help-card:hover {
  background: var(--color-teal-xlight);
  border-color: var(--color-teal-mid);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.help-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.help-card-icon svg {
  width: 26px; height: 26px;
  stroke: white; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
/* Per-card icon colour variants */
.help-card-icon--teal   { background: linear-gradient(135deg, var(--color-teal) 0%, var(--color-teal-mid) 100%); }
.help-card-icon--orange { background: linear-gradient(135deg, var(--color-orange) 0%, #F8965E 100%); }
.help-card-icon--gold   { background: linear-gradient(135deg, var(--color-gold) 0%, #F5C853 100%); }
.help-card h3 { font-size: 1.1rem; color: var(--color-teal-dark); }
.help-card p  { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; flex: 1; }

.card-arrow {
  align-self: flex-start;
  font-size: 0.78rem; font-weight: 700;
  color: var(--color-teal);
  text-transform: uppercase; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 0.3em;
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.card-arrow::after { content: '\2192'; }
.help-card:hover .card-arrow { gap: 0.6em; color: var(--color-orange); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  background: var(--color-teal-xlight);
  padding-block: clamp(3rem, 6vw, 5.5rem);
  position: relative; overflow: hidden;
}
.contact-bg-img { position: absolute; inset: 0; z-index: 0; }
.contact-bg-img img { width: 100%; height: 100%; object-fit: cover; opacity: 0.05; }

.contact-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
@media (max-width: 760px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-info .eyebrow { margin-bottom: 0.75rem; }
.contact-info h2 { color: var(--color-teal-dark); margin-bottom: 1rem; }
.contact-info p  { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 2rem; }

.contact-detail {
  display: flex; align-items: flex-start; gap: 1rem;
  margin-bottom: 1.25rem;
}
.contact-detail-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--color-teal-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 20px; height: 20px;
  stroke: var(--color-teal); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-detail-text { display: flex; flex-direction: column; gap: 2px; }
.contact-detail-text .label {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--color-text-muted);
}
.contact-detail-text .value {
  font-size: 1rem; font-weight: 600;
  color: var(--color-teal-dark); text-decoration: none;
}
.contact-detail-text a:hover { color: var(--color-orange); }

.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.contact-form-wrapper h3 { font-size: 1.5rem; margin-bottom: 1.5rem; color: var(--color-teal-dark); }
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 1.5rem; }
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group label {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.form-group input,
.form-group textarea {
  padding: 0.9em 1.15em;
  border: 1.5px solid var(--color-teal-light);
  border-radius: var(--radius-md);
  background: var(--color-off-white);
  font-size: 1rem; color: var(--color-text);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
  font-family: var(--font-body);
  width: 100%;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(41,138,161,0.12);
}
.form-group textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(90,94,107,0.5); }

.form-notice { font-size: 0.78rem; color: var(--color-text-muted); margin-top: 0.25rem; max-width: none; }

#form-status {
  display: none;
  padding: 0.9rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem; font-weight: 600;
}

/* Old inclusion strip removed — now part of .footer-values below */

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  background: var(--color-teal-dark);
  color: rgba(255,255,255,0.75);
}

.footer-top {
  padding-block: clamp(4rem, 7vw, 6rem);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--space-lg);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo-link { display: block; line-height: 0; margin-bottom: 1.25rem; }

.footer-brand .footer-logo {
  height: 100px;
  width: auto;
  display: block;
  opacity: 0.95;
}
.footer-brand p {
  font-size: 0.9rem; line-height: 1.65;
  color: rgba(255,255,255,0.55); margin-bottom: 1.25rem;
}

.footer-socials { display: flex; gap: 0.6rem; }
.social-link {
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--dur-fast);
  text-decoration: none;
}
.social-link:hover {
  background: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.13em;
  color: var(--color-white); margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.footer-col ul li { margin-bottom: 0.6rem !important; list-style: none !important; }
.footer-col ul li a {
  font-size: 0.9rem; color: rgba(255,255,255,0.6);
  transition: color var(--dur-fast); text-decoration: none;
}
.footer-col ul li a:hover { color: var(--color-gold); }

.footer-crisis-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem; margin-top: 0.5rem;
}
.footer-crisis-box .crisis-number {
  font-family: var(--font-display);
  font-size: 1.4rem; font-weight: 700;
  color: var(--color-gold);
  display: block; margin-bottom: 0.25rem; text-decoration: none;
}
.footer-crisis-box .crisis-sub { font-size: 0.78rem; color: rgba(255,255,255,0.5); }

.footer-bottom {
  padding-block: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p   { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a   { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-bottom a:hover { color: var(--color-gold); }

.footer-acknowledgement {
  background: rgba(0,0,0,0.15);
  padding: 1.5rem var(--container-pad);
  text-align: center;
}
.footer-acknowledgement p {
  font-size: 0.8rem; color: rgba(255,255,255,0.4);
  max-width: 75ch; margin-inline: auto; line-height: 1.7;
}

.footer-exit-link {
  position: fixed;
  bottom: 1.5rem; right: var(--container-pad);
  z-index: 500;
  background: var(--color-teal-dark);
  color: rgba(255,255,255,0.85);
  padding: 0.6em 1.2em;
  border-radius: var(--radius-full);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all var(--dur-fast);
  text-decoration: none;
}
.footer-exit-link:hover { background: var(--color-teal); color: var(--color-white); }


/* ============================================================
   FOOTER VALUES — two-column split block
   Left: heart + All. Ways. Welcome.
   Right: Land Acknowledgement
   ============================================================ */
.footer-values-split {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 1.5rem;
}

.footer-values-split-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 2rem;
  align-items: center;
}

/* Left column */
.fvs-left {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.fvs-heart {
  height: 52px;
  width: auto;
  flex-shrink: 0;
}

.fvs-left-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.fvs-welcome {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-white);
}

.fvs-welcome-body {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
  max-width: 36ch;
}

/* Divider */
.fvs-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(255,255,255,0.1);
}

/* Right column */
.fvs-right {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.fvs-treaty-title {
  display: block;
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-gold);
  opacity: 0.9;
}

.fvs-treaty-body {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
}

/* Mobile: stack vertically */
@media (max-width: 680px) {
  .footer-values-split-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .fvs-divider {
    width: 100%;
    height: 1px;
    align-self: auto;
  }
  .fvs-heart { height: 40px; }
  .fvs-welcome-body { max-width: none; }
}

/* ============================================================
   WORDPRESS UTILITIES
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute; width: 1px;
}
:focus-visible { outline: 3px solid var(--color-orange); outline-offset: 3px; }

.entry-content ul,
.entry-content ol { margin: 1.25em 0; padding: 0; }
.entry-content ul { list-style: none; }
.entry-content ul li {
  position: relative;
  padding-left: 1.5em;
  margin-bottom: 0.6em;
}
.entry-content ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 8px; height: 8px;
  border-right: 2px solid var(--color-teal);
  border-top: 2px solid var(--color-teal);
  transform: rotate(45deg);
}
.entry-content ol { list-style: decimal; padding-left: 1.5rem; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4rem; }
.entry-content p  { margin-bottom: 1rem; }

@media (max-width: 600px) {
  :root { --space-xl: 4rem; --space-lg: 2.5rem; }
  .about-accent-card { display: none; }
}


/* ============================================================
   RESPONSIVE — COMPREHENSIVE MOBILE / TABLET PASS
   Breakpoints: 1060 (nav), 860, 768, 640, 480, 380
   ============================================================ */

/* ── Shared: section padding tighter on small screens ────────── */
@media (max-width: 640px) {
  :root {
    --container-pad: 1.25rem;
  }
  .section-header { margin-bottom: 2rem; }
  .section-header h2 { font-size: clamp(1.6rem, 7vw, 2.4rem); }
}

/* ── Hero ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero-content {
    padding-top: clamp(9rem, 25vw, 12rem);
    padding-bottom: 5rem;
  }
  .hero-headline {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
    max-width: 100%;
    letter-spacing: -0.02em;
  }
  .hero-subtext { font-size: 0.95rem; margin-bottom: 1.75rem; }
  .hero-eyebrow { font-size: 0.68rem; }
  .hero-ctas .btn { font-size: 0.82rem; padding: 0.8em 1.5em; }
  .hero-scroll { display: none; }  /* hide scroll indicator on small screens */
}

/* ── Services ───────────────────────────────────────────────── */
@media (max-width: 640px) {
  .service-card { padding: 1.75rem 1.5rem; }
}

/* ── Stats ──────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .stats-intro { text-align: center; }
  .stats-grid { gap: 0.875rem; }
  .stat-card { padding: 1.25rem; }
  .stat-value { font-size: clamp(2rem, 10vw, 3rem); }
  .stat-label { font-size: 0.7rem; }
}

/* ── About ──────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .about-inner { gap: 2.5rem; }
  .about-image-main { aspect-ratio: 3 / 2; } /* less tall on mobile */
}
@media (max-width: 640px) {
  .about-content p { font-size: 0.95rem; }
  .vision-highlight { padding: 1rem 1.25rem; }
  .vision-highlight p { font-size: 0.95rem; }
}

/* ── Community ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  .community-inner { gap: 2.5rem; }
  .community-image { aspect-ratio: 4 / 3; } /* less square on mobile */
}

/* ── Get Started / Help cards ───────────────────────────────── */
@media (max-width: 640px) {
  .help-card { padding: 1.5rem 1.25rem; }
  .help-card h3 { font-size: 1rem; }
  .help-card p  { font-size: 0.85rem; }
}

/* ── Contact ────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .contact-inner { gap: 2rem; }
}
@media (max-width: 640px) {
  .contact-detail { gap: 0.75rem; }
  .contact-detail-text .value { font-size: 0.9rem; }
}

/* ── Footer ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .footer-top { padding-block: 2.5rem; }
  .footer-grid { gap: 2rem; }
  .footer-brand .footer-logo { height: 68px; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
  }
  .footer-exit-link {
    bottom: 1rem;
    right: 1rem;
    font-size: 0.72rem;
    padding: 0.5em 1em;
  }
}

/* ── Homepage Events strip ──────────────────────────────────── */
@media (max-width: 640px) {
  .hp-events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .hp-event-card__body { padding: 1.25rem; }
  .hp-event-card__title { font-size: 1rem; }
}

/* ── Events archive / page ──────────────────────────────────── */
@media (max-width: 640px) {
  .events-page-hero { padding-top: 7rem; }
  .event-card__body { padding: 1.25rem; }
  .event-card__title { font-size: 1rem; }
  .event-card__actions { gap: 0.6rem; }
}

/* ── Single event ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .single-event-title { font-size: clamp(1.6rem, 8vw, 2.5rem); }
  .single-event-hero { padding-top: 7rem; min-height: 320px; }
  .event-detail-card { padding: 1.5rem; }
}

/* ── Header / Nav ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .header-inner { padding-block: 0.75rem; }
  .site-logo-img { height: 80px; }
  .header-crisis-bar { font-size: 0.72rem; padding: 0.35rem var(--container-pad); }
}

/* ── Buttons — ensure 44px min touch target on mobile ──────── */
@media (max-width: 768px) {
  .btn { min-height: 44px; }
  .btn-outline-teal { min-height: 44px; }
  .nav-toggle { width: 48px; height: 48px; }
}

/* ── Typography — body text readable on small screens ──────── */
@media (max-width: 480px) {
  body { font-size: 0.95rem; }
  h2   { letter-spacing: 0; }      /* Raleway wide tracking hurts tiny screens */
  .eyebrow { letter-spacing: 0.1em; }
}

/* ── Safe area padding for notched phones ───────────────────── */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .footer-exit-link {
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

/* ── Prevent horizontal scroll — only on body, never on html ── */
body { max-width: 100vw; }

/* ── Images — prevent overflow in any container ────────────── */
img { max-width: 100%; height: auto; }
.about-image-main img,
.community-image img,
.hp-event-card__image-link img,
.event-card__image img,
.single-event-hero__bg img { width: 100%; }

/* ── Tables — make them scroll if they overflow ─────────────── */
.entry-content table { display: block; overflow-x: auto; }



/* ============================================================
   RESPONSIVE — COMPREHENSIVE MOBILE & TABLET PASS
   Breakpoints:
     1060px — nav collapses to hamburger
     820px  — two-col layouts shrink
     600px  — small phone, tightest spacing
     480px  — very small phone
   ============================================================ */

/* ── Global mobile guards ─────────────────────────────────── */
img { max-width: 100%; height: auto; }

/* Prevent long words / URLs from overflowing containers */
p, h1, h2, h3, h4, li, td, th, blockquote {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Ensure all containers never cause horizontal scroll */
.container { width: 100%; }

/* Hero mobile rules consolidated into max-width:640px block above */

/* ── SERVICES — mobile ────────────────────────────────────── */
@media (max-width: 500px) {
  .service-card { padding: 1.75rem 1.5rem; }
  .service-icon { width: 48px; height: 48px; }
  .service-icon svg { width: 24px; height: 24px; }
}

/* ── STATS — mobile ───────────────────────────────────────── */
@media (max-width: 820px) {
  .stats-intro { text-align: center; }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .stat-card  { padding: 1.25rem; }
  .stat-value { font-size: 2rem; }
}

/* ── ABOUT — mobile ───────────────────────────────────────── */
@media (max-width: 760px) {
  .about-image-main { aspect-ratio: 4 / 3; } /* less tall on mobile */
  .about-content p  { max-width: none; }
  .vision-highlight { margin-inline: 0; }
}

/* ── COMMUNITY — mobile ───────────────────────────────────── */
@media (max-width: 760px) {
  .community-image { aspect-ratio: 4 / 3; }
  .community-content p { max-width: none; }
}

/* ── HELP / GET STARTED — mobile ─────────────────────────── */
@media (max-width: 500px) {
  .help-card { padding: 1.5rem 1.25rem; }
  .help-card-icon { width: 44px; height: 44px; }
}

/* ── CONTACT — mobile ─────────────────────────────────────── */
@media (max-width: 760px) {
  .contact-form-wrapper { padding: 1.5rem; }
  .contact-info p { max-width: none; }
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
  .form-group input,
  .form-group textarea { font-size: 16px; } /* prevents iOS auto-zoom on focus */
}

/* ── SECTION HEADER — tighter on mobile ──────────────────── */
@media (max-width: 600px) {
  .section-header { margin-bottom: 2rem; }
  .section-header p { font-size: 0.95rem; }
}

/* ── FOOTER — mobile ──────────────────────────────────────── */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  /* Exit button too close to content on small screens — move higher */
  .footer-exit-link {
    bottom: 4rem;
    right: 1rem;
    padding: 0.5em 0.9em;
    font-size: 0.72rem;
  }
}

/* ── HOMEPAGE EVENTS STRIP — mobile ──────────────────────── */
@media (max-width: 600px) {
  .hp-events-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ── EVENTS ARCHIVE / PAGE — mobile ──────────────────────── */
@media (max-width: 560px) {
  .event-card__body    { padding: 1.25rem; }
  .event-card__actions { flex-direction: column; align-items: stretch; }
  .event-card__actions .btn,
  .event-card__actions .btn-text-link { width: 100%; text-align: center; justify-content: center; }
}

/* ── SINGLE EVENT — mobile ────────────────────────────────── */
@media (max-width: 860px) {
  .single-event-body .container { padding-inline: var(--container-pad); }
  .event-detail-card { position: static; } /* unstick sidebar on mobile */
}

/* ── NAVIGATION — full-width mobile menu items ────────────── */
@media (max-width: 960px) {
  #site-header .primary-nav > ul > li,
  #site-header .primary-nav > div > ul > li { width: 100%; }
}

/* ── BUTTONS — never overflow on tiny screens ──────────────── */
@media (max-width: 400px) {
  .btn { padding: 0.75em 1.25em; font-size: 0.78rem; }
  .hero-ctas .btn { font-size: 0.8rem; }
}

/* ── TYPOGRAPHY SCALE — progressive reduction ─────────────── */
@media (max-width: 480px) {
  h2 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  h3 { font-size: clamp(1.15rem, 5vw, 1.4rem); }
  .eyebrow { font-size: 0.65rem; letter-spacing: 0.14em; }
}

/* ── ABOUT BG IMAGE — hide on small screens to reduce visual noise */
@media (max-width: 760px) {
  .about-bg { display: none; }
}

/* ── INCLUSION STRIP — stack on tiny screens ─────────────── */
.inclusion-heart { height: 90px; width: auto; }
@media (max-width: 480px) {
  .inclusion-strip { flex-direction: column; text-align: center; }
  .inclusion-heart  { height: 70px; }
}

/* ── VALUES SPLIT — two-col → one-col ────────────────────── */
@media (max-width: 680px) {
  .footer-values-split-inner { grid-template-columns: 1fr; gap: 1.25rem; }
  .fvs-divider { width: 100%; height: 1px; align-self: auto; }
}


@media print {
  #site-header, .footer-exit-link { display: none; }
  body { color: black; background: white; }
}

/* ============================================================
   EVENTS — SHARED COMPONENTS
   ============================================================ */

/* Status & category badges */
.event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.event-badge--category {
  background: var(--color-orange);
  color: var(--color-white);
}

.event-badge--virtual {
  background: var(--color-teal-light);
  color: var(--color-teal);
}

.event-badge--upcoming { background: rgba(41,138,161,0.12); color: var(--color-teal); }
.event-badge--sold_out { background: #FEF2F2; color: #DC2626; }
.event-badge--cancelled { background: #F3F4F6; color: #6B7280; }
.event-badge--past { background: #F3F4F6; color: #6B7280; }

/* Meta row (date / time / location) */
.event-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.event-meta-item svg {
  width: 14px; height: 14px;
  stroke: var(--color-teal-mid);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.event-meta-item--date { color: var(--color-teal); font-weight: 700; }

.event-meta-item--price {
  background: var(--color-teal-xlight);
  color: var(--color-teal);
  padding: 0.2em 0.6em;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.72rem;
}

/* Disabled button */
.btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Teal outline button (used on events) */
.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.75em 1.5em;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-teal);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-teal);
  background: transparent;
  transition: all var(--dur-mid) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.btn-outline-teal:hover {
  background: var(--color-teal);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Text link button */
.btn-text-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  text-decoration: none;
  transition: color var(--dur-fast), gap var(--dur-fast);
  white-space: nowrap;
}

.btn-text-link:hover { color: var(--color-orange); }

/* ============================================================
   HOMEPAGE EVENTS STRIP
   ============================================================ */
.hp-events-section {
  background: var(--color-off-white);
  padding-block: clamp(3.5rem, 6vw, 6rem);
  border-bottom: 1px solid var(--color-teal-light);
}

.hp-events-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  flex-wrap: wrap;
}

.hp-events-header h2 { margin: 0; }

.hp-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) { .hp-events-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .hp-events-grid { grid-template-columns: 1fr; } }

/* Homepage event card */
.hp-event-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-teal-light);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid);
}

.hp-event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--color-teal-mid);
}

.hp-event-card__image-link {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-teal-xlight);
}

.hp-event-card__image-link img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hp-event-card:hover .hp-event-card__image-link img {
  transform: scale(1.04);
}

.hp-event-card__no-image {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-event-card__no-image svg {
  width: 48px; height: 48px;
  stroke: var(--color-teal-mid);
  opacity: 0.4;
}

.hp-event-card__image-link .event-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.hp-event-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.hp-event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.hp-event-card__title {
  font-size: 1.15rem;
  line-height: 1.3;
  margin: 0;
}

.hp-event-card__title a {
  color: var(--color-teal-dark);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.hp-event-card__title a:hover { color: var(--color-orange); }

.hp-event-card__desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  flex: 1;
}

.hp-event-card__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* ============================================================
   EVENTS ARCHIVE PAGE
   ============================================================ */
.events-page-hero {
  background: var(--color-teal-dark);
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.events-page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 30%, rgba(37,128,160,0.2) 0%, transparent 60%);
  pointer-events: none;
}

.events-page-hero .eyebrow { color: var(--color-gold); margin-bottom: 0.5rem; }
.events-page-hero h1 {
  color: var(--color-white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.events-page-intro {
  color: rgba(255,255,255,0.72);
  font-size: 1.05rem;
  max-width: 55ch;
  position: relative;
  z-index: 1;
}

.events-hero-swoop {
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  z-index: 2; line-height: 0;
}
.events-hero-swoop svg { width: 100%; height: auto; }

.events-archive-section {
  background: var(--color-white);
  padding-block: clamp(2.5rem, 4vw, 4rem);
}

/* Archive grid */
.events-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 960px) { .events-archive-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .events-archive-grid { grid-template-columns: 1fr; } }

/* Archive event card */
.event-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--color-teal-light);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
  border-color: var(--color-teal-mid);
}

.event-card__image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-teal-xlight);
  flex-shrink: 0;
}

.event-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.event-card:hover .event-card__image img { transform: scale(1.04); }

.event-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

.event-card__image-placeholder svg {
  width: 56px; height: 56px;
  stroke: var(--color-teal-mid); opacity: 0.3;
}

.event-card__badges {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  display: flex; gap: 0.4rem; flex-wrap: wrap;
  z-index: 2;
}

.event-card__body {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

.event-card__title {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 0;
}

.event-card__title a {
  color: var(--color-teal-dark);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.event-card__title a:hover { color: var(--color-orange); }

.event-card__desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  flex: 1;
}

.event-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.event-card__link-secondary {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-teal-mid);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.event-card__link-secondary:hover { color: var(--color-orange); }

/* Cancelled card styling */
.event-card--status-cancelled { opacity: 0.65; }
.event-card--status-past { opacity: 0.75; }

/* Empty state */
.events-empty {
  text-align: center;
  padding: 2.5rem 1rem 3rem;
  max-width: 500px;
  margin-inline: auto;
}

.events-empty__icon svg {
  width: 72px; height: 72px;
  stroke: var(--color-teal-light);
  margin-inline: auto;
  margin-bottom: 1.5rem;
}

.events-empty h2 { color: var(--color-teal-dark); margin-bottom: 0.75rem; }
.events-empty p  { color: var(--color-text-muted); margin-bottom: 2rem; }

/* Pagination */
.events-pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-teal-light);
}

.events-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px;
  padding-inline: 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem; font-weight: 600;
  color: var(--color-teal);
  border: 1.5px solid var(--color-teal-light);
  text-decoration: none;
  transition: all var(--dur-fast);
}

.events-pagination .page-numbers:hover,
.events-pagination .current {
  background: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

/* ============================================================
   SINGLE EVENT PAGE
   ============================================================ */
.single-event-hero {
  background: var(--color-teal-dark);
  padding-top: clamp(8rem, 14vw, 12rem);
  padding-bottom: 4.5rem;
  position: relative;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.single-event-hero.has-image { min-height: 480px; }

.single-event-hero__bg {
  position: absolute; inset: 0; z-index: 0;
}

.single-event-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.single-event-hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(14,58,71,0.4) 0%,
    rgba(14,58,71,0.85) 60%,
    rgba(14,58,71,0.97) 100%
  );
}

.single-event-hero__content {
  position: relative; z-index: 2;
}

.single-event-hero__swoop {
  position: absolute; bottom: -2px; left: 0; right: 0;
  z-index: 3; line-height: 0;
}

.single-event-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1rem;
}

.single-event-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--dur-fast);
}

.single-event-breadcrumb a:hover { color: var(--color-gold); }

.single-event-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.single-event-title {
  color: var(--color-white);
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  margin-bottom: 0.75rem;
}

.single-event-intro {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 60ch;
  line-height: 1.7;
}

/* Body layout */
.single-event-body {
  background: var(--color-white);
  padding-block: clamp(3rem, 5vw, 5rem);
}

.single-event-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

@media (max-width: 860px) {
  .single-event-layout {
    grid-template-columns: 1fr;
  }
  .single-event-sidebar { order: -1; }
}

.single-event-description { line-height: 1.8; }
.single-event-description p  { color: var(--color-text); margin-bottom: 1rem; max-width: 70ch; }
.single-event-description h2, .single-event-description h3 { margin-block: 1.5rem 0.5rem; }
.single-event-description ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.single-event-description li { margin-bottom: 0.4rem; }

.single-event-back { margin-top: 2.5rem; }

.btn-back-link {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-teal);
  text-decoration: none;
  text-transform: uppercase;
  transition: color var(--dur-fast);
}

.btn-back-link:hover { color: var(--color-orange); }

/* Sidebar detail card */
.event-detail-card {
  background: var(--color-off-white);
  border: 1.5px solid var(--color-teal-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: sticky;
  top: calc(110px + 1rem);
}

.event-detail-card__title {
  font-size: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-teal-light);
}

.event-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
}

.event-detail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.event-detail-item dt {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  white-space: nowrap;
  padding-top: 2px;
}

.event-detail-item dt svg {
  width: 14px; height: 14px;
  stroke: var(--color-teal-mid);
  fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

.event-detail-item dd {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-teal-dark);
  line-height: 1.5;
}

.event-detail-address {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

.event-detail-link {
  font-weight: 700;
  color: var(--color-teal);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--dur-fast);
}

.event-detail-link:hover { color: var(--color-orange); }

.event-detail-card__ctas {
  margin-bottom: 1.5rem;
}

.event-detail-card__cancelled {
  background: #FEF2F2;
  color: #DC2626;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
}

.event-detail-share {
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-teal-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.event-detail-share > span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.event-share-links {
  display: flex;
  gap: 0.5rem;
}

.event-share-links a {
  width: 34px; height: 34px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-teal-light);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-teal);
  text-decoration: none;
  transition: all var(--dur-fast);
}

.event-share-links a:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-white);
}

.event-share-links svg {
  width: 15px; height: 15px;
  fill: currentColor;
  stroke: none;
}

/* ============================================================
   FLEXIBLE PAGE BUILDER & INNER PAGE STYLES
   ============================================================ */

/* ── Shared Section Padding ──────────────────────────────── */
.flex-split-section,
.flex-full-text-section,
.flex-cards-section,
.flex-feature-section,
.flex-faq-section,
.flex-cta-band,
.about-intro-band,
.about-mvg-section,
.about-beliefs-section,
.about-values-section,
.about-timeline-section,
.about-board-section,
.about-reports-section,
.about-affiliates-section,
.contact-page-main,
.contact-quick-cards {
    padding-block: clamp(3rem,5vw,5rem);
}
/* Board and affiliates sit adjacent — tighten their specific padding */
.about-board-section  { padding-bottom: clamp(2rem,3vw,3rem); }
.about-affiliates-section { padding-block: clamp(2rem,3vw,3rem); }

.flex-body { line-height: 1.8; }
.flex-body p + p { margin-top: 1em; }

/* ── Custom bullet lists ── */
.flex-body ul {
    list-style: none;
    margin: 1.25em 0;
    padding: 0;
}
.flex-body ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 0.65em;
    line-height: 1.65;
}
.flex-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--color-teal);
    border-top: 2px solid var(--color-teal);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* ── Ordered lists ── */
.flex-body ol {
    list-style: none;
    margin: 1.25em 0;
    padding: 0;
    counter-reset: sendero-list;
}
.flex-body ol li {
    position: relative;
    padding-left: 2em;
    margin-bottom: 0.65em;
    line-height: 1.65;
    counter-increment: sendero-list;
}
.flex-body ol li::before {
    content: counter(sendero-list);
    position: absolute;
    left: 0;
    top: 0.1em;
    width: 1.4em;
    height: 1.4em;
    background: var(--color-teal);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-display);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested lists */
.flex-body ul ul,
.flex-body ol ol,
.flex-body ul ol,
.flex-body ol ul {
    margin: 0.4em 0 0.4em 1em;
}
.flex-body ul ul li::before { border-color: var(--color-teal-light); }

.flex-body a { color: var(--color-teal); text-decoration: underline; }
.flex-body a:hover { color: var(--color-orange); }
.flex-body strong { font-weight: 700; }
.is-dark .flex-body,
.is-dark h2,
.is-dark h3,
.is-dark p { color: rgba(255,255,255,0.9); }
.is-dark .eyebrow { opacity: 0.7; }

/* ── Flex Page Hero ──────────────────────────────────────── */
.flex-page-hero {
    position: relative;
    background: var(--color-teal-dark);
    color: #fff;
    padding-top: clamp(9rem,16vw,14rem);
    padding-bottom: clamp(5rem,8vw,7rem);
    background-size: cover;
    background-position: center;
}
.flex-page-hero.has-bg .flex-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(14,58,71,0.82) 0%, rgba(14,58,71,0.65) 100%);
}
.flex-hero-content {
    position: relative; z-index: 2;
}
.flex-hero-content h1 { color: #fff; font-size: clamp(2.4rem,5.5vw,4rem); margin-bottom: 1rem; }
.flex-hero-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.82); max-width: 640px; margin-bottom: 2rem; }
.flex-hero-swoop { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.flex-hero-swoop svg { width: 100%; height: auto; }

/* ── About & Contact Hero variants ──────────────────────── */
.about-page-hero,
.contact-page-hero {
    position: relative;
    background: var(--color-teal-dark);
    color: #fff;
    padding-top: clamp(9rem,16vw,14rem);
    padding-bottom: clamp(5rem,8vw,7rem);
    overflow: hidden;
}
/* The actual <img> for the hero background — no CSS bg-image so browser can pick focal point */
.about-hero-imgwrap {
    position: absolute; inset: 0; z-index: 0;
}
.about-hero-bg-img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 25%;  /* show faces for group photos — top quarter of image */
    display: block;
}
.about-hero-overlay,
.contact-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(
        to bottom,
        rgba(13,50,64,0.72) 0%,
        rgba(13,50,64,0.55) 50%,
        rgba(13,50,64,0.80) 100%
    );
}
.about-hero-content,
.contact-page-hero .container {
    position: relative; z-index: 2;
}
.about-hero-swoop,
.contact-hero-swoop { z-index: 2; }
.about-page-hero h1,
.contact-page-hero h1 { color: #fff; font-size: clamp(2.4rem,5.5vw,4rem); margin-bottom: 1rem; }
.about-hero-sub,
.contact-hero-sub { color: rgba(255,255,255,0.8); font-size: 1.1rem; max-width: 600px; }
.about-hero-swoop,
.contact-hero-swoop { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; }
.about-hero-swoop svg,
.contact-hero-swoop svg { width: 100%; height: auto; }

/* ── Flex Split Content ──────────────────────────────────── */
.flex-split-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem,6vw,6rem);
    align-items: center;
}
.flex-split-inner.flex-split--right .flex-split-image { order: 2; }
.flex-split-inner.flex-split--right .flex-split-content { order: 1; }

.flex-split-image img {
    width: 100%; display: block; border-radius: var(--radius-lg);
    object-fit: cover; box-shadow: var(--shadow-lg);
}
.flex-split-image--portrait  img { aspect-ratio: 4/5; }
.flex-split-image--square    img { aspect-ratio: 1/1; }
.flex-split-image--landscape img { aspect-ratio: 4/3; }

.flex-split-content h2 { color: var(--color-teal-dark); margin-bottom: 1.25rem; }
.flex-split-content .btn { margin-top: 2rem; }

@media (max-width: 768px) {
    .flex-split-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .flex-split-inner.flex-split--right .flex-split-image,
    .flex-split-inner.flex-split--right .flex-split-content { order: unset; }
}

/* ── Flex Full Text ──────────────────────────────────────── */
.flex-full-text-section h2 { color: var(--color-teal-dark); margin-bottom: 0.5rem; }
.flex-full-text-section.is-dark h2 { color: #fff; }
.flex-full-text-section .section-header { margin-bottom: 1rem; }

/* ── Flex Stats Band (reuses stats-section styles) ───────── */
.flex-stats-band { padding-block: clamp(3rem,5vw,5rem); }

/* ── Flex Cards Grid ─────────────────────────────────────── */
.flex-cards-grid {
    display: grid;
    grid-template-columns: repeat(var(--flex-cols, 3), 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}
@media (max-width: 900px) { .flex-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .flex-cards-grid { grid-template-columns: 1fr; } }

.flex-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1.5px solid rgba(41,138,161,0.1);
    overflow: hidden;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.flex-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.flex-card--icon .flex-card-body,
.flex-card--feature .flex-card-body,
.flex-card--image .flex-card-body,
.flex-card--tall .flex-card-body { padding: 1.75rem; }

.flex-card-icon {
    width: 52px; height: 52px;
    background: var(--color-teal-xlight);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.flex-card-icon svg { width: 22px; height: 22px; stroke: var(--color-teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.flex-card-img img { width: 100%; height: 200px; object-fit: cover; display: block; }

/* ── Tall card variant ── */
.flex-card--tall .flex-card-img img { height: 320px; }
.flex-card--tall .flex-card-body { padding: 1.75rem; }
.flex-card--tall { display: flex; flex-direction: column; }
.flex-card--tall .flex-card-body { flex: 1; display: flex; flex-direction: column; }
.flex-card--tall .flex-card-body .card-link-arrow { margin-top: auto; padding-top: 1rem; }

/* Standard image card — square crop */
.flex-card--image .flex-card-img img { height: 220px; }

/* Feature card — 16:9 crop */
.flex-card--feature .flex-card-img img { aspect-ratio: 16/9; height: auto; }
.flex-card h3 { font-size: 1.1rem; color: var(--color-teal-dark); margin-bottom: 0.6rem; }
.flex-card p  { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; }

.card-link-arrow {
    display: inline-block; margin-top: 1rem;
    font-size: 0.85rem; font-weight: 700;
    color: var(--color-teal); text-decoration: none;
    font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: 0.05em;
    transition: color var(--dur-fast);
}
.card-link-arrow:hover { color: var(--color-orange); }

/* ── Flex Feature Blocks ─────────────────────────────────── */
.flex-feature-grid {
    display: grid;
    grid-template-columns: repeat(var(--fb-cols, 3), 1fr);
    gap: 1.5rem;
}
@media (max-width: 860px) { .flex-feature-grid { grid-template-columns: 1fr; } }

.flex-feature-block { border-radius: var(--radius-lg); overflow: hidden; }
.flex-feature-img { position: relative; }
.flex-feature-img img { width: 100%; height: 260px; object-fit: cover; display: block; }
.flex-feature-img-label {
    position: absolute; bottom: 1rem; left: 1rem;
    background: var(--color-orange); color: #fff;
    font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 0.3em 0.75em;
    border-radius: 4px;
}
.flex-feature-body { padding: 2rem; }
.flex-feature-body h3 { color: var(--color-teal-dark); margin-bottom: 1rem; font-size: 1.4rem; }
.flex-feature-body .btn { margin-top: 1.5rem; }

/* ── FAQ Accordion ───────────────────────────────────────── */
.faq-accordion { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1.5px solid rgba(41,138,161,0.15); }
.faq-item:first-child { border-top: 1.5px solid rgba(41,138,161,0.15); }

.faq-question {
    width: 100%; background: none; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: 1.25rem 0;
    font-family: var(--font-display); font-size: 1.05rem; font-weight: 600;
    color: var(--color-teal-dark); text-align: left;
    transition: color var(--dur-fast);
}
.faq-question:hover { color: var(--color-teal); }
.faq-chevron {
    width: 20px; height: 20px; flex-shrink: 0;
    stroke: currentColor; fill: none; stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
    transition: transform var(--dur-fast);
}
.faq-question[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-question[aria-expanded="true"] { color: var(--color-teal); }

.faq-answer { overflow: hidden; transition: max-height 0.3s ease; }
.faq-answer[hidden] { display: block !important; max-height: 0; }
.faq-answer-inner { padding: 0 0 1.5rem; }
.faq-answer-inner p + p { margin-top: 0.75em; }

/* ── CTA Band ────────────────────────────────────────────── */
.flex-cta-band { padding-block: clamp(4rem,7vw,6rem); }
.flex-cta-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 2rem; flex-wrap: wrap;
}
.flex-cta-text h2 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: 0.5rem; }
.flex-cta-text p  { color: rgba(255,255,255,0.8); }
.flex-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--color-teal-dark); }
.btn-white:hover { background: var(--color-teal-xlight); }
.btn-outline-white {
    background: transparent; color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: calc(0.75em - 2px) calc(1.75em - 2px);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
@media (max-width: 640px) { .flex-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ── About Intro Band ────────────────────────────────────── */
.about-intro-band {
    background: var(--color-teal-xlight);
    padding-block: clamp(3rem,6vw,5rem);
}
.about-intro-text {
    max-width: 820px; margin: 0 auto;
    font-size: 1.05rem; line-height: 1.85; color: var(--color-teal-dark);
    text-align: left;
}

/* ── About Mission/Vision/Goal ───────────────────────────── */
.about-mvg-section { background: #fff; }
.about-mvg-grid {
    display: grid; grid-template-columns: repeat(3,1fr);
    gap: 2rem; margin-top: 3rem;
}
@media (max-width: 768px) { .about-mvg-grid { grid-template-columns: 1fr; } }

.about-mvg-card {
    background: var(--color-off-white);
    border-radius: var(--radius-lg); padding: 2.25rem;
    border-top: 4px solid var(--color-teal);
}
.about-mvg-card:nth-child(2) { border-top-color: var(--color-orange); }
.about-mvg-card:nth-child(3) { border-top-color: var(--color-gold); }
.about-mvg-icon {
    width: 48px; height: 48px;
    background: var(--color-teal-xlight);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
}
.about-mvg-icon svg { width: 22px; height: 22px; fill: var(--color-teal); }
.about-mvg-card h3 { color: var(--color-teal-dark); font-size: 1.15rem; margin-bottom: 0.75rem; }

/* ── Core Beliefs ────────────────────────────────────────── */
.about-beliefs-section { background: var(--color-teal-xlight); }
.about-beliefs-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2,1fr); gap: 1.25rem;
    margin-top: 2.5rem;
}
@media (max-width: 640px) { .about-beliefs-list { grid-template-columns: 1fr; } }

.about-belief-item {
    background: #fff; border-radius: var(--radius-md);
    padding: 1.5rem; display: flex; gap: 1.25rem; align-items: flex-start;
    box-shadow: var(--shadow-sm);
}
.belief-number {
    font-size: 1.8rem; font-weight: 800; line-height: 1;
    color: var(--color-teal); font-family: var(--font-display);
    flex-shrink: 0; width: 2.5rem;
}
.about-belief-item p { color: var(--color-text); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* ── Our Values ──────────────────────────────────────────── */
.about-values-section { background: var(--color-teal-dark); }
.about-values-section .section-header h2,
.about-values-section .section-header .eyebrow { color: #fff; }
.about-values-grid {
    display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem;
}
@media (max-width: 860px) { .about-values-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px) { .about-values-grid { grid-template-columns: 1fr; } }

.about-value-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-lg); padding: 2rem;
    transition: background var(--dur-fast);
}
.about-value-card:hover { background: rgba(255,255,255,0.13); }
.value-number {
    display: block; font-size: 2.5rem; font-weight: 800;
    color: var(--color-gold); font-family: var(--font-display);
    line-height: 1; margin-bottom: 0.75rem;
}
.about-value-card h3 { color: #fff; font-size: 1.15rem; margin-bottom: 0.5rem; }
.about-value-card p  { color: rgba(255,255,255,0.72); font-size: 0.9rem; line-height: 1.65; }

/* ── Timeline ────────────────────────────────────────────── */
.about-timeline-section { background: var(--color-off-white); }
.timeline { position: relative; max-width: 900px; margin: 3rem auto 0; }
.timeline::before {
    content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
    width: 3px; background: var(--color-teal-light);
    transform: translateX(-50%);
}
@media (max-width: 640px) { .timeline::before { left: 20px; } }

.timeline-entry {
    position: relative; width: calc(50% - 2.5rem);
    margin-bottom: 3rem;
}
.timeline-entry--left  { margin-left: 0; margin-right: auto; text-align: right; }
.timeline-entry--right { margin-left: auto; margin-right: 0; }

.timeline-year {
    font-size: 1.5rem; font-weight: 800;
    color: var(--color-teal); font-family: var(--font-display);
    margin-bottom: 0.5rem;
}
.timeline-content {
    background: #fff; border-radius: var(--radius-md);
    padding: 1.5rem; box-shadow: var(--shadow-sm);
    border: 1.5px solid rgba(41,138,161,0.1);
}
.timeline-content p { font-size: 0.9rem; color: var(--color-text); line-height: 1.65; margin: 0; }
.timeline-entry--left .timeline-content  { border-right: 4px solid var(--color-teal); }
.timeline-entry--right .timeline-content { border-left: 4px solid var(--color-orange); }

@media (max-width: 640px) {
    .timeline-entry { width: calc(100% - 3.5rem); margin-left: 3.5rem !important; text-align: left; }
    .timeline-entry--left .timeline-content,
    .timeline-entry--right .timeline-content { border-left: 4px solid var(--color-teal); border-right: none; }
}

/* ── Board of Directors ──────────────────────────────────── */
.about-board-section { background: #fff; }
.about-board-intro { max-width: 640px; margin-bottom: 2rem; text-align: center; margin-inline: auto; }
.about-board-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}
.about-board-card {
    width: calc(25% - 1rem);
    min-width: 160px;
    max-width: 200px;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.25rem;
    text-align: center;
}
@media (max-width: 860px) {
    .about-board-card { width: calc(50% - 0.75rem); max-width: none; }
}
@media (max-width: 480px) {
    .about-board-card { width: calc(50% - 0.75rem); }
}
.board-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--color-teal); color: #fff;
    font-size: 1.3rem; font-weight: 800; font-family: var(--font-display);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
}
.about-board-card strong { display: block; font-size: 0.9rem; color: var(--color-teal-dark); }
.about-board-card span  { font-size: 0.78rem; color: var(--color-text-muted); }

/* ── AGM Reports ─────────────────────────────────────────── */
.about-reports-section { background: var(--color-teal-xlight); }
.about-reports-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 2.5rem;
}
@media (max-width: 860px) { .about-reports-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 540px) { .about-reports-grid { grid-template-columns: repeat(2,1fr); } }

.about-report-card {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: inherit;
    transition: transform var(--dur-fast);
}
.about-report-card:hover { transform: translateY(-4px); }
.report-thumb { width: 100%; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-md); }
.report-thumb img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.report-thumb--placeholder {
    aspect-ratio: 3/4; background: var(--color-teal);
    display: flex; align-items: center; justify-content: center;
}
.report-thumb--placeholder svg { width: 40px; height: 40px; stroke: rgba(255,255,255,0.6); fill: none; stroke-width: 1.5; }
.report-year { font-weight: 700; font-size: 0.9rem; color: var(--color-teal-dark); margin-top: 0.75rem; }
.report-download { font-size: 0.78rem; color: var(--color-teal); }

/* ── Affiliates ──────────────────────────────────────────── */
.about-affiliates-section {
    background: var(--color-teal-xlight);
    border-top: 1px solid var(--color-teal-light);
    border-bottom: 1px solid var(--color-teal-light);
}
.about-affiliates-section .section-header { margin-bottom: 0.75rem; }
.about-affiliates-body { max-width: 720px; }

/* ── Contact Page ────────────────────────────────────────── */
.contact-quick-cards { background: var(--color-off-white); padding-block: clamp(2rem,4vw,3rem); }
.contact-quick-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem;
}
@media (max-width: 860px) { .contact-quick-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px) { .contact-quick-grid { grid-template-columns: 1fr 1fr; } }

.contact-quick-card {
    background: #fff; border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem; text-align: center; text-decoration: none;
    box-shadow: var(--shadow-sm); border: 1.5px solid rgba(41,138,161,0.1);
    display: flex; flex-direction: column; align-items: center; gap: 0.35rem;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.contact-quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.contact-quick-card--crisis { border-color: var(--color-orange); background: #fff5ee; }
.cqc-icon { width: 44px; height: 44px; background: var(--color-teal-xlight); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.cqc-icon svg { width: 20px; height: 20px; stroke: var(--color-teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-quick-card--crisis .cqc-icon { background: #ffe5d0; }
.contact-quick-card--crisis .cqc-icon svg { stroke: var(--color-orange); }
.cqc-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); font-weight: 700; }
.cqc-value { font-weight: 700; font-size: 0.95rem; color: var(--color-teal-dark); }

.contact-page-inner {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(3rem,6vw,6rem); align-items: start;
}
@media (max-width: 860px) { .contact-page-inner { grid-template-columns: 1fr; } }

.contact-page-form-col h2 { color: var(--color-teal-dark); margin-bottom: 0.5rem; }

.contact-detail-card {
    background: var(--color-off-white); border-radius: var(--radius-lg);
    padding: 1.75rem; margin-bottom: 1.25rem;
}
.contact-detail-card h3 {
    font-size: 1rem; color: var(--color-teal-dark);
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 0.85rem;
}
.contact-detail-card h3 svg { width: 18px; height: 18px; stroke: var(--color-teal); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

.contact-map-section { line-height: 0; }
.contact-map-wrapper iframe { width: 100%; min-height: 400px; display: block; }


/* ============================================================
   TABBED TIMELINE — About Us page
   ============================================================ */
.about-timeline-section { background: var(--color-off-white); }

.tl-strip-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-block: 2.5rem;
}

.tl-strip-scroll {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tl-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    padding-block: 0.25rem;
}
.tl-strip::-webkit-scrollbar { display: none; }

.tl-year-btn {
    flex-shrink: 0;
    padding: 0.55em 1.2em;
    border-radius: var(--radius-full);
    border: 2px solid var(--color-teal-light);
    background: #fff;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dur-fast);
    white-space: nowrap;
}
.tl-year-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}
.tl-year-btn.is-active {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #fff;
    box-shadow: 0 4px 16px rgba(41,138,161,0.3);
}

.tl-strip-arrow {
    flex-shrink: 0;
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-teal-light);
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all var(--dur-fast);
    color: var(--color-teal);
}
.tl-strip-arrow:hover { background: var(--color-teal); border-color: var(--color-teal); color: #fff; }
.tl-strip-arrow svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tl-strip-arrow--prev.is-hidden,
.tl-strip-arrow--next.is-hidden { opacity: 0.3; pointer-events: none; }

.tl-panels { position: relative; min-height: 160px; }

.tl-panel {
    display: none;
    animation: tlFadeIn 0.35s ease;
}
.tl-panel.is-active { display: grid; grid-template-columns: 120px 1fr; gap: 2rem; align-items: start; }

@keyframes tlFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tl-panel-year {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-teal);
    font-family: var(--font-display);
    line-height: 1;
    padding-top: 0.25rem;
}

.tl-panel-content {
    background: #fff;
    border-radius: var(--radius-md);
    padding: 1.75rem 2rem;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-orange);
}
.tl-panel-content p { font-size: 0.95rem; margin-bottom: 0.75rem; }
.tl-panel-content p:last-child { margin-bottom: 0; }

@media (max-width: 640px) {
    .tl-panel.is-active { grid-template-columns: 1fr; gap: 0.75rem; }
    .tl-panel-year { font-size: 2rem; }
    .tl-panel-content { padding: 1.25rem; }
    .tl-strip-arrow { display: none; }
}

/* ============================================================
   DONATE & VOLUNTEER PAGE
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.dv-hero {
    position: relative;
    background: var(--color-teal-dark);
    color: #fff;
    padding-top: clamp(9rem,15vw,13rem);
    padding-bottom: clamp(5rem,8vw,7rem);
}
.dv-hero__content { position: relative; z-index: 2; }
.dv-hero h1 { color: #fff; font-size: clamp(2.4rem,5vw,4rem); margin-bottom: 1rem; }
.dv-hero__sub { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 600px; margin-bottom: 2.5rem; }
.dv-hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.dv-hero__swoop { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; z-index: 2; }
.dv-hero__swoop svg { width: 100%; height: auto; }

/* ── Impact strip ─────────────────────────────────────────── */
.dv-impact-strip {
    background: var(--color-teal);
    padding-block: 2rem;
}
.dv-impact-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 1rem;
    text-align: center;
}
@media (max-width: 640px) { .dv-impact-grid { grid-template-columns: repeat(2,1fr); } }

.dv-impact-item { padding: 0.75rem; }
.dv-impact-value {
    display: block;
    font-size: clamp(1.8rem,3.5vw,2.5rem);
    font-weight: 800;
    color: #fff;
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.dv-impact-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Donate section ───────────────────────────────────────── */
.dv-donate-section {
    background: var(--color-off-white);
    padding-block: clamp(3rem,5vw,5rem);
}
.dv-donate-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem,6vw,6rem);
    align-items: start;
}
@media (max-width: 860px) { .dv-donate-inner { grid-template-columns: 1fr; } }

.dv-donate-cta-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: clamp(2rem,4vw,3.5rem);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--color-teal-light);
    text-align: center;
}
.dv-donate-cta-icon {
    width: 80px; height: 80px;
    background: var(--color-teal-xlight);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.25rem;
}
.dv-card-lead {
    font-size: 1rem;
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.65;
    margin-bottom: 1.5rem !important;
    max-width: 34ch;
    margin-inline: auto;
}
.dv-donate-cta-icon svg {
    width: 36px; height: 36px;
    stroke: var(--color-teal);
}
.dv-donate-cta-card h3 {
    font-size: 1.5rem;
    color: var(--color-teal-dark);
    margin-bottom: 0.75rem;
}
.dv-donate-cta-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    max-width: 36ch;
    margin-inline: auto;
}
.dv-donate-main-btn {
    font-size: 1rem !important;
    padding: 1em 2.5em !important;
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
}
.dv-donate-secure-note {
    font-size: 0.78rem !important;
    color: var(--color-text-muted) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem !important;
}
.dv-donate-secure-note svg {
    width: 14px; height: 14px;
    stroke: var(--color-teal); fill: none;
    stroke-width: 2; flex-shrink: 0;
}
.dv-donate-also {
    border-top: 1px solid var(--color-teal-xlight);
    padding-top: 1.5rem;
    text-align: left;
}
.dv-donate-also-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem !important;
}
.dv-donate-also-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.dv-donate-also-options span {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.dv-embed-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    /* CanadaHelps uses height:100% — we give the container a fixed height
       so the iframe has something to fill. Adjust if form is taller/shorter. */
    position: relative;
    width: 100%;
    height: 680px;
}
.dv-embed-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

/* Responsive height adjustments */
@media (max-width: 1060px) { .dv-embed-wrapper { height: 720px; } }
@media (max-width: 768px)  { .dv-embed-wrapper { height: 780px; } }
@media (max-width: 480px)  { .dv-embed-wrapper { height: 860px; } }

.dv-donate-content-col h2 { color: var(--color-teal-dark); margin-bottom: 1.25rem; }
.dv-donate-photo {
    margin-top: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.dv-donate-photo img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

/* ── Ways to give ─────────────────────────────────────────── */
.dv-giving-section {
    background: #fff;
    padding-block: clamp(3rem,5vw,5rem);
}
.dv-giving-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 768px) { .dv-giving-grid { grid-template-columns: 1fr; } }

.dv-giving-card {
    background: var(--color-off-white);
    border-radius: var(--radius-lg);
    padding: 2.25rem 2rem;
    border: 1.5px solid rgba(41,138,161,0.12);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.dv-giving-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.dv-giving-icon {
    width: 56px; height: 56px;
    background: var(--color-teal-xlight);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.dv-giving-icon svg {
    width: 24px; height: 24px;
    stroke: var(--color-teal); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.dv-giving-card h3 { font-size: 1.15rem; color: var(--color-teal-dark); }
.dv-giving-card p  { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; flex: 1; }
.dv-giving-card .btn-outline-teal { margin-top: 0.5rem; align-self: flex-start; }

/* ── Volunteer section ────────────────────────────────────── */
.dv-vol-section {
    background: var(--color-teal-xlight);
    padding-block: clamp(3rem,5vw,5rem);
}
.dv-vol-inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(3rem,6vw,6rem);
    align-items: start;
}
@media (max-width: 860px) { .dv-vol-inner { grid-template-columns: 1fr; } }

.dv-vol-image img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: block;
}
.dv-vol-content h2 { color: var(--color-teal-dark); margin-bottom: 1.25rem; }
.dv-vol-roles {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-block: 2rem;
}
.dv-vol-role {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.dv-vol-role-icon {
    width: 44px; height: 44px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--shadow-sm);
}
.dv-vol-role-icon svg {
    width: 20px; height: 20px;
    stroke: var(--color-teal); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.dv-vol-role strong { display: block; color: var(--color-teal-dark); font-size: 0.95rem; margin-bottom: 0.25rem; }
.dv-vol-role p { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.6; margin: 0; }
.dv-vol-note { font-size: 0.8rem; color: var(--color-text-muted); margin-top: 0.75rem; font-style: italic; }

/* ── Sponsorship ──────────────────────────────────────────── */
.dv-sponsorship-section {
    background: #fff;
    padding-block: clamp(3rem,5vw,5rem);
}
.dv-spons-inner {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: clamp(3rem,6vw,5rem);
    align-items: start;
}
@media (max-width: 768px) { .dv-spons-inner { grid-template-columns: 1fr; } }

.dv-spons-image img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    display: block;
}
.dv-spons-content h2 { color: var(--color-teal-dark); margin-bottom: 1.25rem; }

/* ── CTA band ─────────────────────────────────────────────── */
.dv-cta-band {
    background: var(--color-orange);
    padding-block: clamp(3rem,5vw,5rem);
}
.dv-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    flex-wrap: wrap;
}
.dv-cta-text h2 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: 0.5rem; }
.dv-cta-text p  { color: rgba(255,255,255,0.75); max-width: 50ch; }
.dv-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 640px) { .dv-cta-inner { flex-direction: column; align-items: flex-start; } }


/* ============================================================
   DONATION MODAL
   ============================================================ */
.dv-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.dv-modal[hidden] { display: none; }

.dv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(13,50,64,0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
    animation: modalFadeIn 0.25s ease;
}

.dv-modal-box {
    position: relative;
    z-index: 2;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: 0 32px 80px rgba(13,50,64,0.35);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalSlideUp 0.3s var(--ease-out);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.dv-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--color-teal-xlight);
    flex-shrink: 0;
}
.dv-modal-header h2 {
    font-size: 1.3rem;
    color: var(--color-teal-dark);
    margin: 0;
}
.dv-modal-close {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-teal-light);
    background: transparent;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: var(--color-text-muted);
    transition: all var(--dur-fast);
    flex-shrink: 0;
}
.dv-modal-close:hover {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #fff;
}
.dv-modal-close svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 2.5; stroke-linecap: round;
}

.dv-modal-body {
    flex: 1;
    overflow-y: auto;
    position: relative;
    /* Give CanadaHelps iframe a proper height */
    min-height: 560px;
}
.dv-modal-body iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
    display: block;
}

@media (max-width: 640px) {
    .dv-modal { padding: 0; align-items: flex-end; }
    .dv-modal-box {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        max-height: 92vh;
    }
    .dv-modal-body { min-height: 480px; }
    .dv-modal-header { padding: 1.25rem 1.25rem; }
}

/* ============================================================
   HERO HEADLINE — coloured words
   ============================================================ */
.hero-headline .headline-accent {
    font-style: normal;
    /* colour set both inline and via class below */
}
.hero-headline .headline-accent--hope    { color: var(--color-teal)   !important; }
.hero-headline .headline-accent--respect { color: var(--color-orange) !important; }
.hero-headline .headline-accent--healing { color: var(--color-gold)   !important; }

/* ============================================================
   DONATE CARD — categorised amounts
   ============================================================ */
.dv-donate-subtitle {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem !important;
    text-align: center;
}

/* Frequency toggle */
.dv-freq-toggle {
    display: flex;
    background: var(--color-teal-xlight);
    border-radius: var(--radius-full);
    padding: 4px;
    gap: 4px;
    margin-bottom: 1.5rem;
}
.dv-freq-btn {
    flex: 1;
    padding: 0.55em 1em;
    border: none;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.dv-freq-btn.is-active {
    background: var(--color-teal);
    color: #fff;
    box-shadow: 0 2px 8px rgba(41,138,161,0.3);
}

/* Amount grid */
.dv-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}
.dv-amount-btn {
    padding: 0.7em 0.5em;
    border: 2px solid var(--color-teal-light);
    border-radius: var(--radius-md);
    background: #fff;
    color: var(--color-teal-dark);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--dur-fast);
}
.dv-amount-btn:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}
.dv-amount-btn.is-active {
    background: var(--color-teal);
    border-color: var(--color-teal);
    color: #fff;
    box-shadow: 0 4px 12px rgba(41,138,161,0.3);
}

.dv-amount-custom {
    position: relative;
    display: flex;
    align-items: center;
}
.dv-amount-custom-prefix {
    position: absolute;
    left: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 700;
    pointer-events: none;
}
.dv-amount-input {
    width: 100%;
    padding: 0.7em 0.75em 0.7em 1.5rem;
    border: 2px solid var(--color-teal-light);
    border-radius: var(--radius-md);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    background: #fff;
    transition: border-color var(--dur-fast);
}
.dv-amount-input:focus {
    outline: none;
    border-color: var(--color-teal);
}
.dv-amount-input::-webkit-inner-spin-button,
.dv-amount-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.dv-amount-input[type=number] { -moz-appearance: textfield; }

/* Impact statement */
.dv-impact-statement {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: var(--color-teal-xlight);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
    margin-bottom: 1.5rem !important;
    font-size: 0.88rem;
    color: var(--color-teal-dark);
    line-height: 1.5;
}
.dv-impact-statement svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: var(--color-orange);
}


/* ============================================================
   MOBILE NAV — CLOSE BUTTON + OVERLAY POLISH
   ============================================================ */

/* Close button inside overlay — only shown when nav is open */
.mobile-nav-close {
  display: none;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast);
  z-index: 10;
}
.mobile-nav-close:hover { background: rgba(255,255,255,0.18); }

@media (max-width: 960px) {
  .mobile-nav-close {
    display: flex;
  }

  /* Ensure nav overlay positions close button correctly */
  #site-header .primary-nav {
    padding-top: 5.5rem; /* room for close button */
  }

  /* Backdrop — click to close */
  #site-header .primary-nav::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-slow);
  }
  #site-header .primary-nav.is-open::before {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ── SECTION PADDING — intermediate tablet fix ─────────────── */
@media (max-width: 960px) and (min-width: 641px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .help-grid      { grid-template-columns: repeat(3, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: repeat(2, 1fr); }
  .hp-events-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Laptop 1280px: ensure header items scale ───────────────── */
@media (max-width: 1380px) and (min-width: 961px) {
  .header-inner { gap: 1rem; }
  .header-actions { gap: 0.5rem; }
  #site-header .primary-nav > ul,
  #site-header .primary-nav > div > ul { gap: 0; }
}


/* ============================================================
   PAGE HEADER OFFSET
   Applied on flexible pages that don't start with a hero block.
   Pushes content below the fixed header (crisis bar + nav).
   ============================================================ */
.page-header-offset {
    /* crisis bar ~36px + nav bar ~130px (120px logo + padding) + a little breathing room */
    height: clamp(7rem, 14vw, 10rem);
    background: var(--color-teal-dark);
}

/* Also ensure any inner page that uses a generic page template
   gets pushed below the header if WP uses the default template */
.page-template-default main,
.error404 main {
    padding-top: clamp(7rem, 14vw, 10rem);
}

@media (max-width: 960px) {
    /* Smaller header at mobile/tablet */
    .page-header-offset {
        height: clamp(6rem, 13vw, 8rem);
    }
}

/* ── Coloured card body backgrounds ─────────────────────────── */
.flex-card-body--coloured {
    color: #fff;
}
.flex-card-body--coloured h3 {
    color: #fff;
}
.flex-card-body--coloured p {
    color: rgba(255,255,255,0.88);
}
.flex-card-body--coloured .card-link-arrow {
    color: rgba(255,255,255,0.9);
}
.flex-card-body--coloured .card-link-arrow:hover {
    color: #fff;
    text-decoration: underline;
}
/* Gold card — white text (overrides the dark text default) */
[style*="var(--color-gold)"].flex-card-body--coloured,
[style*="--color-gold"].flex-card-body--coloured {
    color: #fff;
}
[style*="var(--color-gold)"].flex-card-body--coloured h3,
[style*="var(--color-gold)"].flex-card-body--coloured p { color: #fff; }
[style*="var(--color-gold)"].flex-card-body--coloured .card-link-arrow { color: rgba(255,255,255,0.9); }
[style*="var(--color-gold)"].flex-card-body--coloured .card-link-arrow:hover { color: #fff; }

/* ============================================================
   SERVICE PAGE SHARED STYLES
   Used by: page-counselling.php, page-crisis-response.php,
   page-police-court.php, page-prevention-education.php
   ============================================================ */
.sv-hero {
    position: relative;
    background: var(--color-teal-dark);
    color: #fff;
    padding-top: clamp(9rem,16vw,14rem);
    padding-bottom: clamp(5rem,8vw,7rem);
    background-size: cover;
    background-position: center;
    overflow: hidden;
}
.sv-hero.has-bg .sv-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(160deg, rgba(13,50,64,0.72) 0%, rgba(13,50,64,0.90) 100%);
}
.sv-hero__content { position: relative; z-index: 2; }
.sv-hero h1 { color: #fff; font-size: clamp(2.4rem,5vw,4rem); margin-bottom: 1rem; text-shadow: 0 2px 16px rgba(0,0,0,0.4); }
.sv-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.85); max-width: 600px; margin-bottom: 2rem; text-shadow: 0 1px 8px rgba(0,0,0,0.3); }
.sv-hero__swoop { position: absolute; bottom: -2px; left: 0; right: 0; line-height: 0; z-index: 3; }
.sv-hero__swoop svg { width: 100%; height: auto; }

.sv-intro-section { padding-block: clamp(3rem,6vw,5rem) clamp(1.5rem,2.5vw,2rem); background: #fff; }
.sv-intro-inner { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.sv-intro-inner.sv-intro--split { grid-template-columns: 1.4fr 1fr; gap: clamp(2.5rem,5vw,5rem); align-items: start; }
@media (max-width: 768px) { .sv-intro-inner.sv-intro--split { grid-template-columns: 1fr; } }

.sv-aside-card { background: var(--color-teal-xlight); border-left: 4px solid var(--color-teal); border-radius: var(--radius-md); padding: 1.75rem 2rem; }
.sv-aside-card p { color: var(--color-teal-dark); }
.sv-aside-card a { color: var(--color-teal); }
.sv-aside-card strong { color: var(--color-teal-dark); }

.sv-types-section { padding-block: clamp(3rem,5vw,5rem); }
.sv-type { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem,6vw,5rem); align-items: center; }
.sv-type--flipped .sv-type__image { order: 2; }
.sv-type--flipped .sv-type__content { order: 1; }
/* Single-column layout when there is no image */
.sv-type--no-image {
    grid-template-columns: 1fr;
    max-width: 860px;
}
.sv-type--no-image .sv-type__content h2 { font-size: clamp(1.5rem,2.5vw,2rem); }
.sv-type__image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); display: block; }
.sv-type__content h2 { color: var(--color-teal-dark); font-size: clamp(1.4rem,2.5vw,2rem); margin-bottom: 0.65rem; }
.sv-type__aside-info { background: var(--color-teal-xlight); border-left: 4px solid var(--color-orange); border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-top: 0.75rem; font-size: 0.88rem; line-height: 1.6; }
.sv-type__aside-info p { margin-bottom: 0.4em; }
.sv-type__aside-info p:last-child { margin-bottom: 0; }
.sv-type__aside-info a { color: var(--color-teal); }
@media (max-width: 768px) {
    .sv-type { grid-template-columns: 1fr; gap: 2rem; }
    .sv-type--flipped .sv-type__image, .sv-type--flipped .sv-type__content { order: unset; }
    .sv-type__image img { aspect-ratio: 16/9; }
}

.sv-cta-band { background: var(--color-teal); padding-block: clamp(3rem,5vw,5rem); }
.sv-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sv-cta-text h2 { color: #fff; font-size: clamp(1.6rem,3.5vw,2.4rem); margin-bottom: 0.5rem; }
.sv-cta-text p  { color: rgba(255,255,255,0.82); max-width: 50ch; }
.sv-cta-actions { display: flex; gap: 1rem; flex-wrap: wrap; flex-shrink: 0; }
@media (max-width: 640px) { .sv-cta-inner { flex-direction: column; align-items: flex-start; } }

/* ============================================================
   SERVICES HUB (page-services-hub.php) — 2×2 grid
   ============================================================ */
.sh-intro-band { padding-block: clamp(2.5rem,5vw,4rem); background: #fff; }
.sh-intro-body { max-width: 820px; }

.sh-grid-section { background: var(--color-off-white); padding-block: clamp(3rem,6vw,5rem); }
.sh-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}
@media (max-width: 768px) { .sh-cards-grid { grid-template-columns: 1fr; } }

.sh-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid rgba(41,138,161,0.1);
    display: flex; flex-direction: column;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.sh-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.sh-card__img-link { display: block; overflow: hidden; line-height: 0; flex-shrink: 0; }
.sh-card__img { width: 100%; height: 240px; object-fit: cover; display: block; transition: transform 0.4s ease; }
.sh-card:hover .sh-card__img { transform: scale(1.03); }

.sh-card__img-placeholder {
    width: 100%; height: 240px;
    display: flex; align-items: center; justify-content: center;
}
.sh-card__img-placeholder span { font-size: 5rem; font-weight: 800; color: rgba(255,255,255,0.25); font-family: var(--font-display); }
.sh-card--teal   .sh-card__img-placeholder { background: var(--color-teal-dark); }
.sh-card--orange .sh-card__img-placeholder { background: var(--color-orange); }

.sh-card__body {
    padding: 2rem;
    flex: 1;
    display: flex; flex-direction: column;
}
.sh-card__title { font-size: 1.4rem; color: var(--color-teal-dark); margin-bottom: 0.75rem; }
.sh-card__title a { color: inherit; text-decoration: none; }
.sh-card__title a:hover { color: var(--color-teal); }
.sh-card__excerpt { flex: 1; color: var(--color-text-muted); font-size: 0.92rem; }
.sh-card__excerpt p { color: var(--color-text-muted); margin-bottom: 0; }
.sh-card__btn { margin-top: 1.5rem; align-self: flex-start; }

/* Accent bar on top of each card — matches colour theme */
.sh-card--teal   { border-top: 4px solid var(--color-teal); }
.sh-card--orange { border-top: 4px solid var(--color-orange); }

@media (max-width: 640px) {
    .sh-card__img, .sh-card__img-placeholder { height: 200px; }
    .sh-card__body { padding: 1.5rem; }
    .sh-card__title { font-size: 1.2rem; }
}

/* ── Police & Court — compact horizontal strip ───────────── */
.pc-cards-section { background: var(--color-off-white); }
.pc-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-block: clamp(2rem,4vw,3rem);
}
@media (max-width: 860px) { .pc-cards-grid { grid-template-columns: 1fr; gap: 0.75rem; } }

.pc-card {
    background: #fff;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--color-teal);
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    box-shadow: var(--shadow-sm);
}
/* hide images in the compact strip — content only */
.pc-card__image { display: none; }
.pc-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.pc-card__body h3 {
    color: var(--color-teal-dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}
.pc-card__body .flex-body {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}
.pc-card__body .flex-body p { margin-bottom: 0.5em; }
.pc-card__body .flex-body p:last-child { margin-bottom: 0; }
.pc-card__body .flex-body ul { margin: 0.4em 0; padding-left: 0; }
.pc-card__body .flex-body ul li { padding-left: 1.2em; margin-bottom: 0.3em; font-size: 0.85rem; }
.pc-card__body .flex-body ul li::before { top: 0.45em; width: 6px; height: 6px; }
.pc-card__body .sv-type__aside-info {
    font-size: 0.82rem;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem !important;
}
.pc-card__body .btn { font-size: 0.78rem !important; padding: 0.6em 1.2em !important; margin-top: 0.75rem !important; }

/* ── Counselling cards — full standalone card style ─────── */
.cs-cards-section {
    background: var(--color-off-white);
    padding-block: clamp(3rem,6vw,5rem);
}
.cs-cards-section .pc-cards-grid {
    grid-template-columns: repeat(3,1fr);
    gap: 1.5rem;
    align-items: stretch;
}
@media (max-width: 900px) { .cs-cards-section .pc-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .cs-cards-section .pc-cards-grid { grid-template-columns: 1fr; } }

/* Override the compact strip styles completely */
.cs-cards-section .pc-card {
    border-left: none;
    border-top: 4px solid var(--color-teal);
    border-radius: var(--radius-lg);
    padding: 0;
    background: #fff;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.cs-cards-section .pc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.cs-cards-section .pc-card__image { display: block !important; }
.cs-cards-section .pc-card__image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}
.cs-cards-section .pc-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.cs-cards-section .pc-card__body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-teal-dark);
    line-height: 1.3;
    margin: 0;
}
.cs-cards-section .pc-card__body .flex-body {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    flex: 1; /* takes all available space, pushes button down */
}
.cs-cards-section .pc-card__body .flex-body p { margin-bottom: 0.5em; color: var(--color-text-muted); }
.cs-cards-section .pc-card__body .flex-body p:last-child { margin-bottom: 0; }
.cs-cards-section .pc-card__body .flex-body ul li { font-size: 0.88rem; }
.cs-cards-section .pc-card__body .btn {
    margin-top: auto !important;
    font-size: 0.8rem !important;
    padding: 0.65em 1.4em !important;
    align-self: flex-start;
    display: inline-flex !important;
}

/* Empty state for pages with no ACF content yet */
.sv-empty-state {
    padding: 2rem;
    background: var(--color-teal-xlight);
    border-left: 4px solid var(--color-teal);
    border-radius: var(--radius-md);
    max-width: 640px;
}
.sv-empty-state p { color: var(--color-teal-dark); font-size: 0.95rem; margin: 0; }
.sv-empty-state a { color: var(--color-teal); text-decoration: underline; }
.cs-cards-section {
    background: var(--color-off-white);
    padding-block: clamp(3rem,6vw,5rem);
}
.cs-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
@media (max-width: 900px) { .cs-cards-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 580px) { .cs-cards-grid { grid-template-columns: 1fr; } }

.cs-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1.5px solid rgba(41,138,161,0.1);
    display: flex;
    flex-direction: column;
    transition: transform var(--dur-fast), box-shadow var(--dur-fast);
}
.cs-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.cs-card__image img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}
.cs-card__body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-top: 3px solid var(--color-teal);
}
.cs-card__body h3 { color: var(--color-teal-dark); font-size: 1.05rem; margin-bottom: 0.6rem; }
.cs-card__desc { font-size: 0.88rem; color: var(--color-text-muted); line-height: 1.65; flex: 1; }
.cs-card__desc p { margin-bottom: 0.5em; }
.cs-card__btn { align-self: flex-start; margin-top: 1.25rem; font-size: 0.8rem !important; padding: 0.7em 1.4em !important; }

.cs-faq-section {
    background: #fff;
    padding-block: clamp(3rem,6vw,5rem);
}
.cs-faq-section .faq-accordion { max-width: 860px; margin: 0 auto; }

/* ── Service type accent panel (shows when no image uploaded) ── */
.sv-type__accent-panel {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    min-height: 280px;
}
.sv-type__accent-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.sv-type__accent-label {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.7);
}
@media (max-width: 768px) {
    .sv-type__accent-panel { min-height: 160px; aspect-ratio: 16/9; }
}

/* ── Crisis Response — compact grouped service sections ─────── */
.cr-services-section {
    background: var(--color-off-white);
    padding-block: clamp(3rem,5vw,4.5rem);
}
.cr-sv-type {
    /* Tighter than the default sv-type which uses clamp(2.5rem,6vw,5rem) */
    padding-block: clamp(2rem,3.5vw,3rem);
    /* Wider image column for better visual balance */
    grid-template-columns: 1fr 1.2fr;
}
.cr-sv-type.sv-type--flipped { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 768px) {
    .cr-sv-type,
    .cr-sv-type.sv-type--flipped { grid-template-columns: 1fr; }
}
.cr-divider {
    border: none;
    border-top: 1px solid rgba(41,138,161,0.15);
    margin: 0;
}

/* ── Crisis Response — no-image: content sits in right col, left is empty space ── */
/* The 2-col grid stays intact — when no image the left col is invisible whitespace,
   giving a natural indent/stagger between items */
.cr-sv-type {
    /* Content column is narrower — makes reading width comfortable */
    grid-template-columns: 1fr 1.4fr;
}
.cr-sv-type.sv-type--flipped {
    grid-template-columns: 1.4fr 1fr;
}
/* When no image, the empty left cell still takes its grid space = natural stagger */
.cr-sv-type .sv-type__image:empty,
.cr-sv-type .sv-type__image img:not([src]) {
    opacity: 0;
    pointer-events: none;
}

/* Empty image slot — invisible but keeps grid structure for stagger */
.sv-type__image--empty { background: transparent; min-height: 1px; }

/* Crisis response — full width when no image */
.cr-sv-type--full {
    grid-template-columns: 1fr;
}
.cr-sv-type--full .sv-type__content {
    max-width: 760px;
}

/* ── Service page subheading — sits above intro paragraph ── */
.sv-intro-subheading {
    font-size: clamp(1.2rem, 2.5vw, 1.7rem);
    font-weight: 700;
    color: var(--color-teal-dark);
    line-height: 1.3;
    margin-bottom: 0.85rem;
}

/* ============================================================
   CONTACT FORM 7 — styled to match the existing form design
   ============================================================ */

/* Remove CF7's default browser validation tooltips & outline */
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus { outline: none; }

/* The form itself — matches .contact-form */
.wpcf7-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* CF7 wraps each field in a <p> by default — treat like .form-group */
.wpcf7-form p {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0 !important;
    max-width: none !important;
}

/* Labels */
.wpcf7-form label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    font-family: var(--font-display);
}

/* All text inputs, email, tel, textarea */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
    padding: 0.9em 1.15em;
    border: 1.5px solid var(--color-teal-light);
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    font-size: 1rem;
    color: var(--color-text);
    font-family: var(--font-body);
    width: 100%;
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
    -webkit-appearance: none;
    appearance: none;
}
.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form input[type="url"]:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(41,138,161,0.12);
    outline: none;
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder { color: rgba(90,94,107,0.5); }
.wpcf7-form textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

/* Submit button — matches .btn.btn-primary */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    padding: 0.9em 2.2em;
    border-radius: var(--radius-full);
    background: var(--color-orange);
    color: #fff !important;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: none;
    cursor: pointer;
    transition: all var(--dur-mid) var(--ease-out);
    width: auto;
    align-self: flex-start;
}
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--color-orange-light);
    transform: translateY(-2px);
}

/* Validation error messages */
.wpcf7-not-valid {
    border-color: #e05050 !important;
    box-shadow: 0 0 0 3px rgba(224,80,80,0.1) !important;
}
.wpcf7-not-valid-tip {
    font-size: 0.78rem;
    color: #c0392b;
    margin-top: 0.25rem;
    font-family: var(--font-body);
}

/* Response messages (success / error) */
.wpcf7-response-output {
    margin: 0.5rem 0 0 !important;
    padding: 0.9rem 1.2rem !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-body);
    border: none !important;
}
.wpcf7-form.sent .wpcf7-response-output {
    background: rgba(41,138,161,0.1);
    color: var(--color-teal-dark);
    border-left: 4px solid var(--color-teal) !important;
}
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output {
    background: rgba(224,80,80,0.08);
    color: #c0392b;
    border-left: 4px solid #e05050 !important;
}

/* Acceptance checkbox (if used) */
.wpcf7-form .wpcf7-acceptance {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.6rem;
}
.wpcf7-form .wpcf7-acceptance input[type="checkbox"] {
    width: 18px; height: 18px;
    accent-color: var(--color-teal);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Loading spinner while submitting */
.wpcf7-spinner {
    display: none !important; /* We rely on the button state instead */
}
.wpcf7-form.submitting input[type="submit"] {
    opacity: 0.65;
    pointer-events: none;
}

/* Two-column layout for name+email — wrap in a <div class="cf7-row"> in CF7 */
.cf7-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 500px) {
    .cf7-row { grid-template-columns: 1fr; }
}

/* iOS zoom prevention */
@media (max-width: 768px) {
    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea { font-size: 16px; }
}

/* ============================================================
   CONTACT MODAL
   ============================================================ */
.contact-modal-box {
    max-width: 640px;
    max-height: 92vh;
}
.contact-modal-header-text h2 { font-size: 1.25rem; margin: 0 0 0.2rem; color: var(--color-teal-dark); }
.contact-modal-header-text p  { font-size: 0.82rem; color: var(--color-text-muted); margin: 0; }

/* Quick contact strip */
.contact-modal-quick {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    background: var(--color-teal-xlight);
}
@media (max-width: 500px) { .contact-modal-quick { grid-template-columns: 1fr; } }

.contact-modal-quick-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    transition: background var(--dur-fast);
}
.contact-modal-quick-item:hover { background: rgba(41,138,161,0.12); }
.contact-modal-quick-icon {
    width: 36px; height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}
.contact-modal-quick-icon svg { width: 16px; height: 16px; stroke: var(--color-teal); }
.contact-modal-quick-item strong { display: block; font-size: 0.8rem; color: var(--color-teal-dark); }
.contact-modal-quick-item span  { font-size: 0.75rem; color: var(--color-text-muted); }

/* Divider */
.contact-modal-divider {
    display: flex; align-items: center; gap: 1rem;
    padding: 0 1.75rem;
    margin-block: 0.25rem;
}
.contact-modal-divider::before,
.contact-modal-divider::after {
    content:''; flex:1; height:1px; background:var(--color-teal-light);
}
.contact-modal-divider span { font-size: 0.75rem; color: var(--color-text-muted); white-space: nowrap; }

/* Form area */
.contact-modal-body {
    overflow-y: auto;
    padding: 0 !important;
    min-height: unset !important;
    display: flex;
    flex-direction: column;
}
.contact-modal-form {
    padding: 1rem 1.75rem 1.75rem;
}
.contact-modal-form .contact-form { gap: 1rem; }
.contact-modal-form .form-group select {
    padding: 0.9em 1.15em;
    border: 1.5px solid var(--color-teal-light);
    border-radius: var(--radius-md);
    background: var(--color-off-white);
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text);
    width: 100%;
    cursor: pointer;
}
.contact-modal-form .form-group select:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 3px rgba(41,138,161,0.12);
    outline: none;
}

/* ── Crisis link — show number on desktop, short label on mobile ── */
.crisis-link-short { display: none; }
.crisis-link-full  { display: inline; }

@media (max-width: 1280px) {
    /* At laptop widths, shorten to keep header from overflowing */
    .crisis-link-full  { display: none; }
    .crisis-link-short { display: inline; }
}
@media (min-width: 1281px) {
    /* Full number visible on large desktop */
    .crisis-link-full  { display: inline; }
    .crisis-link-short { display: none; }
}

/* ============================================================
   COUNSELLING — sv-type alternating layout
   ============================================================ */
.cs-types-section {
    padding-block: clamp(1.5rem, 2.5vw, 2.5rem) clamp(3rem, 5vw, 5rem);
    background: #fff;
}
/* ============================================================
   COUNSELLING / POLICE / PREVENTION — alternating full-width sections
   ============================================================ */
.cs-types-section {
    padding: 0;
    background: transparent;
}
/* PHP-assigned classes — reliable regardless of sibling modal divs */
.cs-sv-type--teal  { background: var(--color-teal-xlight); }
.cs-sv-type--white { background: #fff; }

/* Each block full-width with generous padding */
.cs-sv-type {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(3rem, 6vw, 7rem);
    align-items: center;
    padding: clamp(4rem, 7vw, 6rem) clamp(2rem, 6vw, 8rem);
    box-sizing: border-box;
    width: 100%;
}
/* But the section background spans full-width */
.cs-types-section .cs-sv-type {
    width: 100%;
    margin: 0 auto;
}
/* Full-width band — background on the parent section div */
.cs-sv-type--teal,
.cs-sv-type--white {
    /* stretch background across full viewport */
}

.cs-sv-type--full {
    grid-template-columns: 1fr;
    max-width: 800px;
}
.cs-sv-type.sv-type--flipped .sv-type__image { order: 2; }
.cs-sv-type.sv-type--flipped .sv-type__content { order: 1; }
.cs-sv-type .sv-type__image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 8px 32px rgba(13,50,64,0.14);
}
.cs-sv-type .sv-type__image img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}
.cs-sv-type .sv-type__content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.cs-sv-type .sv-type__content h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    color: var(--color-teal-dark);
    margin: 0;
}
/* Aside box — white bg when on teal band */
.cs-sv-type--teal .sv-type__aside-info {
    background: #fff;
    border-left-color: var(--color-teal);
}
.cs-divider { display: none; }

/* Ultra-wide: content caps at 1800px but background still bleeds edge to edge */
@media (min-width: 1920px) {
    .cs-sv-type {
        padding-inline: calc((100vw - 1800px) / 2);
    }
}

@media (max-width: 900px) {
    .cs-sv-type {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: clamp(3rem, 5vw, 4rem) var(--container-pad);
    }
    .cs-sv-type.sv-type--flipped .sv-type__image { order: 0; }
    .cs-sv-type.sv-type--flipped .sv-type__content { order: 0; }
}

/* ============================================================
   RESPONSIVE AUDIT FIXES v1.9.5
   ============================================================ */

/* ── Tablet (768-1140px) general fixes ── */
@media (max-width: 1140px) {
    /* Header inner tighter */
    .header-inner { gap: 0.75rem; }
    
    /* Services cards — 2 col on tablet */
    .services-grid { grid-template-columns: repeat(2,1fr) !important; }
    
    /* Stats grid — 2x2 on tablet */
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    
    /* About split — stack on tablet */
    .about-split { grid-template-columns: 1fr !important; gap: 2rem !important; }
    
    /* Community split — stack */
    .community-inner { grid-template-columns: 1fr !important; }
}

/* ── Tablet portrait (600-768px) ── */
@media (max-width: 768px) {
    /* Section headings smaller */
    .section-header h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    
    /* Stats 2 col */
    .stats-grid { grid-template-columns: repeat(2,1fr); gap: 1rem; }
    
    /* Impact strip on donate page — 2 col */
    .dv-impact-grid { grid-template-columns: repeat(2,1fr) !important; }
    
    /* Service hub cards — 1 col */
    .sh-cards-grid { grid-template-columns: 1fr !important; }
    
    /* Event cards — 1 col */
    .events-strip-grid { grid-template-columns: 1fr !important; }
    
    /* Contact quick cards — 2 col */
    .contact-quick-grid { grid-template-columns: repeat(2,1fr) !important; }
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {
    /* Stats 1 col */
    .stats-grid { grid-template-columns: 1fr 1fr; }
    
    /* Contact quick cards — 1 col */
    .contact-quick-grid { grid-template-columns: 1fr !important; }
    
    /* Help grid — 1 col */
    .help-grid { grid-template-columns: 1fr !important; }
    
    /* Board cards — 1 col */
    .about-board-card { width: 100% !important; max-width: 100% !important; }
    
    /* DV impact — 1 col */
    .dv-impact-grid { grid-template-columns: 1fr 1fr !important; }
    
    /* Hero headline smaller */
    .hero-headline { font-size: clamp(2.2rem, 10vw, 3rem) !important; }
    
    /* Hero crisis card hidden on tiny screens */
    .hero-crisis-card { display: none !important; }
}

/* ============================================================
   NEWS & EVENTS — newsletter signup bar
   ============================================================ */
.ne-newsletter-bar {
    background: var(--color-orange);
    padding: clamp(1.5rem, 3vw, 2.25rem) 0;
    border-top: 3px solid rgba(255,255,255,0.15);
}
.ne-newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}
.ne-newsletter-text h2 {
    color: #fff;
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin: 0 0 0.25rem;
}
.ne-newsletter-text p {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin: 0;
}
.ne-newsletter-bar .btn {
    flex-shrink: 0;
    white-space: nowrap;
    background: #fff !important;
    color: var(--color-orange) !important;
    border-color: #fff !important;
}
.ne-newsletter-bar .btn:hover {
    background: var(--color-teal-dark) !important;
    color: #fff !important;
    border-color: var(--color-teal-dark) !important;
}
@media (max-width: 600px) {
    .ne-newsletter-inner { flex-direction: column; align-items: flex-start; }
    .ne-newsletter-bar .btn { width: 100%; justify-content: center; }
}

/* ── Donate header button — slightly secondary to crisis link ── */
.btn-donate-header {
    background: rgba(255,255,255,0.12) !important;
    border: 1.5px solid rgba(255,255,255,0.35) !important;
    color: #fff !important;
    font-size: 0.82rem !important;
}
.btn-donate-header:hover {
    background: rgba(255,255,255,0.22) !important;
    color: #fff !important;
}
/* Crisis link hover */
.header-crisis-link:hover {
    background: var(--color-orange) !important;
    border-color: var(--color-orange) !important;
    color: #fff !important;
}

/* ── Mobile hero top spacing — all hero types ──────────────── */
@media (max-width: 640px) {
    .sv-hero,
    .about-page-hero,
    .contact-page-hero,
    .events-page-hero,
    .dv-hero,
    .flex-hero { padding-top: clamp(7rem, 22vw, 9rem) !important; }
}
