/* ============ Roots of Promise — redesign ============ */

:root {
  /* Palette drawn from the Roots of Promise logo — the marigold "symbol of
     care and hope" hand (#E4841A / #E4B400) — plus leafy greens for roots/growth */
  --paper: #FFFDF8;
  --tint: #F1F5EC;
  --ink: #2A2A22;
  --ink-soft: #5B584C;
  --forest: #2C5B3A;
  --sage: #74A47E;
  --orange: #E8850F;        /* logo marigold: fills, icons, buttons (with dark text) */
  --orange-deep: #A85A02;   /* AA-safe orange for links and text on light backgrounds */
  --orange-bright: #F49A2E;
  --golden: #E4B400;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-full: 999px;

  --shadow-soft: 0 1px 2px rgba(96, 72, 24, 0.04), 0 10px 28px -12px rgba(96, 72, 24, 0.12);
  --shadow-lift: 0 2px 6px rgba(96, 72, 24, 0.05), 0 20px 44px -18px rgba(96, 72, 24, 0.16);

  --font-display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* Skip link: hidden until focused, then front and center */
.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* Visible focus for keyboard users — never removed, styled to the brand */
:focus-visible {
  outline: 3px solid var(--orange-deep);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; }

/* Kill the mobile double-tap delay on everything interactive */
a, button, input, textarea, select { touch-action: manipulation; }

body {
  margin: 0;
  font: 100%/1.6 system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

.container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}
.container.narrow { width: min(100% - 2.5rem, 46rem); }
.container.narrow-wide { width: min(100% - 2.5rem, 58rem); }

/* ---------- Typography ---------- */
/* Large display type: tight leading, negative tracking (optical sizing via Fraunces opsz) */
.display {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2.4rem, 6.5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
}

.heading {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; }

.prose p { margin: 0 0 1.1em; color: var(--ink-soft); }
.prose p:last-child { margin-bottom: 0; }
.prose-strong { color: var(--ink) !important; font-weight: 550; }

.section-sub {
  color: var(--ink-soft);
  max-width: 38rem;
  margin: 0.25rem auto 0;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em; /* small text: slightly positive tracking */
  margin-bottom: 1rem;
}
.badge-glass {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}
.badge-orange { color: var(--orange-deep); background: rgba(232, 133, 15, 0.12); }
.badge-sage { color: var(--forest); background: rgba(116, 164, 126, 0.18); }

/* ---------- Buttons: instant press feedback on pointer-down ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 100ms ease-out, box-shadow 240ms ease, background-color 240ms ease;
  will-change: transform;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.15em; height: 1.15em; }

.btn-primary {
  /* Logo marigold with dark text — white-on-orange fails AA */
  color: #2A1A05;
  background: var(--orange);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { background: #D97A08; box-shadow: var(--shadow-lift); }

.btn-light {
  color: var(--orange-deep);
  background: var(--paper);
  box-shadow: var(--shadow-lift);
}
.btn-light:hover { background: #fff; }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; }

/* ---------- Header: translucent material, content scrolls under ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(255, 253, 248, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* scroll edge effect instead of a hard border */
  box-shadow: 0 1px 0 rgba(43, 40, 34, 0);
  transition: box-shadow 300ms ease;
}
.site-header.scrolled { box-shadow: 0 1px 0 rgba(43, 40, 34, 0.07), 0 8px 24px -16px rgba(43, 40, 34, 0.25); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark { width: 2.25rem; height: 2.25rem; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.site-nav { display: flex; gap: 1.75rem; }
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 550; /* slightly heavier over translucent surface for legibility */
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: color 200ms ease;
}
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2.5px;
  text-underline-offset: 0.45em;
}

/* Mobile menu toggle — hidden on desktop */
.nav-toggle {
  display: none;
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  place-items: center;
  transition: transform 100ms ease-out, background-color 200ms ease;
}
.nav-toggle svg { width: 1.5rem; height: 1.5rem; }
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle:hover { background: rgba(43, 40, 34, 0.06); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  min-height: 78svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(30, 33, 26, 0.35), rgba(30, 33, 26, 0.55) 70%, rgba(30, 33, 26, 0.75)),
    linear-gradient(115deg, rgba(43, 52, 40, 0.72), rgba(43, 52, 40, 0.25) 65%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 52rem;
  padding: 9rem 0 6rem;
  color: #fff;
}
.hero-lede {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
  margin: 0 auto;
}

/* Home hero: left-aligned, taller */
.hero-home { min-height: 88vh; min-height: 88svh; }
.hero-scrim-left {
  background:
    linear-gradient(to right, rgba(30, 33, 26, 0.78), rgba(30, 33, 26, 0.5) 45%, rgba(30, 33, 26, 0.15)),
    linear-gradient(to top, rgba(30, 33, 26, 0.45), transparent 40%);
}
.hero-content-left {
  text-align: left;
  max-width: none;
  padding: 8rem 0 6rem;
}
.hero-content-left .display, .hero-content-left .hero-lede { margin-left: 0; max-width: 38rem; }
/* Hero key phrase: golden with a hand-drawn underline stroke (one human touch) */
.accent-text {
  color: var(--golden);
  padding-bottom: 0.18em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 120 10" preserveAspectRatio="none"><path d="M2 7 Q 30 2, 60 6 T 118 5" fill="none" stroke="%23E4B400" stroke-width="3.5" stroke-linecap="round" opacity="0.85"/></svg>') bottom left / 100% 0.28em no-repeat;
}
.accent-text-dark { color: var(--orange-deep); }
.badge-heart { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 0.35em; color: var(--golden); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.btn-outline {
  color: #fff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 100ms ease-out, background-color 240ms ease, color 240ms ease, border-color 240ms ease;
}
.btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Contact hero: shorter */
.hero-short { min-height: 55vh; min-height: 55svh; }
.hero-short .hero-content { padding: 8rem 0 4.5rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
/* Tinted bands get a gentle arched top edge instead of a flat seam */
.section-tinted {
  background: var(--tint);
  border-radius: clamp(28px, 6vw, 64px) clamp(28px, 6vw, 64px) 0 0;
}
.section-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ---------- Approach ---------- */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.callout {
  margin-top: 2rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: rgba(228, 180, 0, 0.1);
  border: 1px solid rgba(228, 180, 0, 0.3);
}
.callout p { margin: 0; color: var(--ink-soft); }
.callout-lead { color: var(--ink) !important; font-weight: 600; margin-bottom: 0.6rem !important; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.pillar {
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 320ms cubic-bezier(0.25, 1, 0.4, 1), box-shadow 320ms ease;
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pillar h3 { margin: 0 0 0.4rem; font-size: 1.1rem; font-weight: 600; }
.pillar p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.pillar-icon { width: 2.1rem; height: 2.1rem; margin-bottom: 0.9rem; }
.pillar-sage .pillar-icon { color: var(--sage); }
.pillar-orange .pillar-icon { color: var(--orange); }
.pillar-gold .pillar-icon { color: var(--golden); }
.pillar-forest .pillar-icon { color: var(--forest); }

/* ---------- Story ---------- */
.story p { font-size: 1.05rem; line-height: 1.75; }

/* ---------- Ground team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 52rem;
  margin-inline: auto;
}
/* Team portraits sit directly on the page — people, not product cards */
.team-card {
  margin: 0;
  text-align: center;
  padding: 1rem 1.25rem;
  transition: transform 320ms cubic-bezier(0.25, 1, 0.4, 1);
}
.team-card:hover { transform: translateY(-4px); }
.team-card img {
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.2rem;
  border: 4px solid #fff;
  box-shadow: var(--shadow-soft);
}
.team-card figcaption {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

/* Initial avatars — used where a portrait photo isn't available */
.avatar-fallback {
  display: grid;
  place-items: center;
  width: 8.5rem;
  height: 8.5rem;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  border: 4px solid #fff;
  box-shadow: var(--shadow-soft);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
}
.avatar-sage { background: linear-gradient(135deg, var(--sage), var(--forest)); }
.avatar-orange { background: linear-gradient(135deg, var(--orange), #C46F08); }
.avatar-golden { background: linear-gradient(135deg, var(--golden), #B99200); }

/* ---------- Leadership ---------- */
.leader-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 64rem;
  margin-inline: auto;
}
.leader-card {
  display: flex;
  gap: 1.4rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}
.leader-photo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid #fff;
  box-shadow: var(--shadow-soft);
}
.leader-card h3 { margin: 0 0 0.15rem; font-size: 1.25rem; font-weight: 600; }
.leader-role { margin: 0 0 0.75rem; color: var(--orange-deep); font-weight: 600; font-size: 0.9rem; letter-spacing: 0.01em; }
.leader-bio { margin: 0; font-size: 0.92rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Board ---------- */
.board-mantra { color: var(--ink-soft); font-size: 1.1rem; margin: 0 0 2rem; }
.board-mantra span { color: var(--orange-deep); font-weight: 600; }
.board-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.9rem;
}
.board-chip {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(116, 164, 126, 0.12);
  border: 1px solid rgba(116, 164, 126, 0.25);
  font-weight: 550;
  transition: border-color 240ms ease, background-color 240ms ease;
}
.board-chip:hover { border-color: rgba(116, 164, 126, 0.55); background: rgba(116, 164, 126, 0.18); }

/* ---------- Stats (home) ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
/* Stats sit directly on the band — a thin rule per figure, no floating cards */
.stat-card {
  padding: 1.5rem 0 0;
  border-top: 3px solid rgba(232, 133, 15, 0.55);
}
.stat-value {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 3rem;
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--orange-deep);
  margin: 0 0 0.75rem;
}
.stat-label { font-weight: 650; margin: 0 0 0.4rem; }
.stat-desc { margin: 0; font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- Mission (home) ---------- */
.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
/* Mission photo breaks the grid: reaches toward the viewport edge on wide screens */
.mission-media { position: relative; }
.mission-media img {
  width: 100%;
  height: clamp(300px, 40vw, 520px);
  object-fit: cover;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 1200px) {
  .mission-media { margin-left: calc((100vw - 72rem) / -2); width: calc(100% + (100vw - 72rem) / 2); }
  .mission-media img { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 0.9rem;
}
.check-list li {
  position: relative;
  padding-left: 2.1rem;
  font-weight: 550;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.12rem;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: rgba(116, 164, 126, 0.22) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%232C5B3A" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="m5 12.5 4.5 4.5L19 7.5"/></svg>') center / 60% no-repeat;
}

/* ---------- House diagram (home) ---------- */
.house { max-width: 56rem; margin-inline: auto; }
.house-roof { position: relative; }
.house-roof svg { display: block; width: 100%; height: clamp(7rem, 12vw, 9rem); }
.house-roof-label {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.14em; /* small caps text: generous positive tracking */
  white-space: nowrap;
}
.house-heart {
  position: absolute;
  left: 50%;
  bottom: -1.6rem;
  transform: translateX(-50%);
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: var(--shadow-lift);
  display: grid;
  place-items: center;
}
.house-heart svg { width: 1.9rem; height: 1.9rem; }
.house-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: rgba(44, 91, 58, 0.16);
  border-inline: 2px solid rgba(44, 91, 58, 0.16);
  padding-top: 2px;
}
.house-pillar {
  position: relative;
  background: #fff;
  padding: 3rem 1.75rem 2rem;
  text-align: center;
}
.house-pillar h3 { margin: 0 0 0.6rem; font-size: 1.15rem; font-weight: 600; }
.house-pillar p { margin: 0 0 2.4rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-soft); }
.house-pillar .pillar-icon { width: 2.6rem; height: 2.6rem; margin: 0 auto 1.1rem; display: block; }
.pillar-num {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(44, 91, 58, 0.1);
  color: var(--forest);
  font-weight: 650;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
}
.house-foundation {
  background: var(--forest);
  color: #fff;
  text-align: center;
  padding: 1.75rem 1.5rem;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.house-foundation-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 0.4rem;
}
.house-foundation p:last-child { margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.82); max-width: 34rem; margin-inline: auto; }

/* ---------- Video + stories (home) ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  max-width: 56rem;
  margin-inline: auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  background: #1E2A1E;
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  max-width: 60rem;
  margin-inline: auto;
}
.story-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 320ms cubic-bezier(0.25, 1, 0.4, 1), box-shadow 320ms ease;
}
.story-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.story-photo { position: relative; height: 16rem; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

/* Story panels — warm monogram treatment where a photo isn't available */
.story-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}
.story-fallback-sage {
  background:
    radial-gradient(26rem 16rem at 85% -20%, rgba(228, 180, 0, 0.35), transparent 60%),
    linear-gradient(140deg, var(--sage), var(--forest));
}
.story-fallback-golden {
  background:
    radial-gradient(26rem 16rem at 85% -20%, rgba(255, 255, 255, 0.3), transparent 60%),
    linear-gradient(140deg, var(--golden), var(--orange));
}
.story-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30, 33, 26, 0.55), transparent 55%);
}
.story-highlight {
  position: absolute;
  z-index: 1;
  bottom: 1rem;
  left: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--golden);
  color: #2A2205;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.story-body { padding: 1.75rem 2rem 2rem; }
.story-body h3 { margin: 0 0 0.75rem; font-size: 1.4rem; font-weight: 600; }
.story-body p { margin: 0; color: var(--ink-soft); line-height: 1.7; font-size: 0.95rem; }

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
  max-width: 64rem;
}
.contact-methods { display: grid; gap: 1.5rem; margin-top: 2rem; }
.contact-method { display: flex; gap: 1.1rem; align-items: flex-start; }
.contact-method h3 { margin: 0 0 0.2rem; font-size: 1.05rem; font-weight: 600; }
.contact-method p { margin: 0; color: var(--ink-soft); }
.contact-method a { color: var(--orange-deep); text-decoration: none; font-weight: 550; }
.contact-method a:hover { text-decoration: underline; }
.contact-icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.contact-icon svg { width: 1.35rem; height: 1.35rem; }
.contact-icon-orange { background: rgba(232, 133, 15, 0.14); color: var(--orange-deep); }
.contact-icon-sage { background: rgba(116, 164, 126, 0.18); color: var(--forest); }

.form-card {
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.form-title { margin: 0 0 1.5rem; font-size: 1.35rem; font-weight: 600; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  border: 1.5px solid rgba(43, 40, 34, 0.15);
  background: var(--paper);
  font: inherit;
  color: var(--ink);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(92, 86, 75, 0.55); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 133, 15, 0.2);
}
.field textarea { min-height: 9rem; resize: vertical; }
.btn-block { width: 100%; justify-content: center; }
.form-status { margin: 0.9rem 0 0; text-align: center; font-weight: 600; color: var(--forest); min-height: 1.4em; }

/* Inline validation: error lives with its field, AA-contrast red */
.field input.invalid, .field textarea.invalid {
  border-color: #B3261E;
  background: #FFF9F8;
}
.field input.invalid:focus, .field textarea.invalid:focus {
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.15);
}
.field-error {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  font-weight: 550;
  color: #B3261E;
}

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(90rem 40rem at 80% -10%, rgba(228, 180, 0, 0.3), transparent 60%),
    linear-gradient(140deg, var(--forest), #1E4229);
  color: #fff;
}
.cta-inner { text-align: center; }
.cta .heading { color: #fff; }
.cta-sub { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin: 0 0 2rem; }
.cta-fineprint {
  margin: 2.25rem auto 0;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.65);
  max-width: 34rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #1E2A1E;
  color: rgba(250, 246, 238, 0.75);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.site-footer h4 {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1.2rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.8rem; }
.site-footer a { color: rgba(250, 246, 238, 0.75); text-decoration: none; transition: color 200ms ease; }
.site-footer a:hover { color: #fff; }
.social-row { display: flex; gap: 0.75rem; margin-top: 1.4rem; }
.social-row a {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.08);
  transition: background-color 200ms ease, transform 100ms ease-out;
}
.social-row a:hover { background: rgba(250, 246, 238, 0.18); }
.social-row a:active { transform: scale(0.94); }
.social-row svg { width: 1.2rem; height: 1.2rem; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(250, 246, 238, 0.1);
  font-size: 0.85rem;
  color: rgba(250, 246, 238, 0.55);
}
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 1.5rem; }

/* ---------- Scroll reveal (hidden state only when JS is running) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 640ms ease, transform 640ms cubic-bezier(0.25, 1, 0.4, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* Hero entrance: plays once on load, content never starts hidden without JS */
.js .hero-rise { animation: hero-rise 800ms cubic-bezier(0.25, 1, 0.4, 1) backwards; }
.js .hero-rise:nth-child(2) { animation-delay: 80ms; }
.js .hero-rise:nth-child(3) { animation-delay: 160ms; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .approach-grid, .leader-grid, .mission-grid, .contact-grid, .story-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 24rem; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .mission-media { order: 2; }
}

@media (max-width: 640px) {
  /* Nav becomes a dropdown sheet under the header, opened by the toggle.
     Origin is anchored to the header so it reads as coming from the trigger. */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 1.25rem 1rem;
    background: rgba(250, 246, 238, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 16px 32px -16px rgba(43, 40, 34, 0.3);
    transform-origin: top center;
    transform: scaleY(0.92) translateY(-6px);
    opacity: 0;
    visibility: hidden;
    transition: transform 280ms cubic-bezier(0.25, 1, 0.4, 1), opacity 220ms ease, visibility 0s 280ms;
  }
  .site-header.menu-open .site-nav {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: transform 280ms cubic-bezier(0.25, 1, 0.4, 1), opacity 220ms ease;
  }
  .site-nav a { padding: 0.85rem 0.25rem; font-size: 1.05rem; border-bottom: 1px solid rgba(43, 40, 34, 0.07); }
  .site-nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: grid; order: 3; flex-shrink: 0; }
  .header-inner { height: 4rem; gap: 0.6rem; }
  .brand { min-width: 0; gap: 0.45rem; }
  .brand-name { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-mark { width: 1.9rem; height: 1.9rem; flex-shrink: 0; }
  .btn-header { margin-left: auto; flex-shrink: 0; padding: 0.5rem 0.8rem; font-size: 0.85rem; white-space: nowrap; }
  .hero { min-height: 70vh; min-height: 70svh; }
  .hero-content { padding: 8rem 0 5rem; }
  .pillars { grid-template-columns: 1fr; }
  .leader-card { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .house-pillars { grid-template-columns: 1fr; border-inline: none; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 1.5rem; }
  .hero-home { min-height: 78vh; min-height: 78svh; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition: opacity 220ms ease; }
  .js .hero-rise { animation: none; }
  .site-nav { transition: opacity 200ms ease, visibility 0s 200ms; transform: none; }
  .site-header.menu-open .site-nav { transition: opacity 200ms ease; }
  .pillar, .team-card, .stat-card, .story-card, .btn, .social-row a { transition: none; }
  .pillar:hover, .team-card:hover, .stat-card:hover, .story-card:hover { transform: none; }
  .btn:active, .social-row a:active { transform: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-nav { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .badge-glass { background: rgba(30, 33, 26, 0.55); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  .site-header { background: var(--paper); border-bottom: 1px solid var(--ink); }
  .board-chip, .callout { border-width: 2px; }
}
