/* ==========================================================
   ClemencyNow.org  |  global.css (shared by every page)
   California Clemency Coalition
   ========================================================== */

/* ---------- 0. Self hosted fonts: preloaded, font-display optional = zero layout shift from font swap ---------- */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: optional; src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 700; font-display: optional; src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: optional; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: optional; src: url("../fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: optional; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: optional; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

/* ---------- 1. Design tokens ---------- */
:root {
  /* Brand colors */
  --navy: #1B2A4A;          /* Justice Navy */
  --navy-deep: #131F38;
  --navy-soft: #24365C;
  --red: #C0272D;           /* Advocacy Red */
  --red-dark: #9C1D22;
  --gold: #F2A93B;          /* California Gold */
  --gold-dark: #D98E1F;
  --green: #588C5A;         /* Freedom Green */
  --green-dark: #42704A;

  /* Neutrals */
  --ink: #1D2433;
  --muted: #55607A;
  --paper: #FFFFFF;
  --mist: #F3F5F9;
  --line: #DCE1EA;

  /* Type */
  --font-head: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-h3: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  --fs-h2: clamp(2rem, 1.5rem + 2vw, 3rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 8vw, 7rem);
  --radius-sm: 6px;
  --radius: 14px;
  --radius-pill: 999px;

  --shadow: 0 10px 30px rgba(19, 31, 56, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--navy);
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.015em; }
h3 { font-size: var(--fs-h3); }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  background: var(--gold);
  color: var(--navy);
  padding: 0.6rem 1rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 3. Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--mist { background: var(--mist); }
.section--navy { background: var(--navy); color: #E8ECF4; }
.section--navy h2, .section--navy h3 { color: #FFFFFF; }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head h2 { color: var(--green); }
.section--navy .section-head h2 { color: var(--gold); }

.lead { font-size: var(--fs-lg); color: var(--muted); max-width: 40em; }
.section--navy .lead { color: #C9D2E3; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }

.grid-2 {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: var(--navy);
  --btn-fill: var(--paper);
  --btn-glow: rgba(242, 169, 59, 0.45);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.8rem;
  min-height: 52px;
  border: 2px solid var(--btn-bg);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.35s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

/* fill sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-fill);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.45s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  color: var(--btn-hover-fg, var(--navy));
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--btn-glow);
}
.btn:hover::before,
.btn:focus-visible::before {
  transform: scaleX(1);
  transform-origin: left center;
}
.btn:active { transform: translateY(-1px); }

.btn svg {
  width: 20px; height: 20px;
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.btn:hover svg { transform: translateX(4px); }

/* Variants */
.btn-gold { /* defaults above */ }

.btn-red {
  --btn-bg: var(--red);
  --btn-fg: #FFFFFF;
  --btn-fill: var(--navy);
  --btn-hover-fg: #FFFFFF;
  --btn-glow: rgba(192, 39, 45, 0.4);
}

.btn-navy {
  --btn-bg: var(--navy);
  --btn-fg: #FFFFFF;
  --btn-fill: var(--gold);
  --btn-hover-fg: var(--navy);
  --btn-glow: rgba(27, 42, 74, 0.35);
}

.btn-green {
  --btn-bg: var(--green);
  --btn-fg: #FFFFFF;
  --btn-fill: var(--navy);
  --btn-hover-fg: #FFFFFF;
  --btn-glow: rgba(88, 140, 90, 0.4);
}

.btn-outline-light {
  --btn-bg: transparent;
  --btn-fg: #FFFFFF;
  --btn-fill: #FFFFFF;
  --btn-hover-fg: var(--navy);
  --btn-glow: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.7);
}
.btn-outline-light:hover { border-color: #FFFFFF; }

.btn-lg { padding: 1.15rem 2.3rem; font-size: 1.0625rem; min-height: 60px; }
.btn-sm { padding: 0.6rem 1.2rem; min-height: 44px; font-size: 0.9375rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ---------- 5. Header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 4px solid var(--gold);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #FFFFFF;
  text-decoration: none;
}
.brand img { width: 64px; height: 64px; }
.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.15;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.brand:hover { color: #FFFFFF; }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.main-nav a:not(.btn) {
  display: block;
  padding: 0.55rem 0.8rem;
  color: #E8ECF4;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0 2px;
  background-position: 50% calc(100% - 4px);
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease), color 0.2s;
}
.main-nav a:not(.btn):hover,
.main-nav a[aria-current="page"] {
  color: #FFFFFF;
  background-size: calc(100% - 1.6rem) 2px;
}
.main-nav .btn { margin-left: 0.6rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  width: 48px; height: 48px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* WordPress admin bar (logged in users only) */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #E8ECF4;
  padding-block: clamp(2.75rem, 7vw, 6.5rem) clamp(3.5rem, 8vw, 7.5rem);
}

.hero::after { /* gold horizon line echoing the logo ring */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--gold) 0 70%, var(--red) 70% 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: 600;
}
.hero-kicker svg { width: 22px; height: 22px; }

.hero h1 { color: #FFFFFF; margin-bottom: 0.4em; }
.hero h1 .line-gold { display: block; color: var(--gold); }

.hero-text {
  font-size: var(--fs-lg);
  color: #C9D2E3;
  max-width: 34em;
  margin-bottom: 1.75rem;
}

.hero-media { position: relative; justify-self: center; width: min(100%, 370px); }

.arch {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  border: 6px solid var(--gold);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: var(--navy-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: -2.25rem;
  bottom: -1.75rem;
  width: clamp(90px, 11vw, 120px);
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.4));
}

.poppy { position: absolute; pointer-events: none; }
.poppy--hero-a { right: -3rem; top: 1.5rem; width: 140px; opacity: 0.9; }
.poppy--hero-b { right: 38%; bottom: -2.5rem; width: 90px; opacity: 0.35; }

/* ---------- 7. Mission and vision ---------- */
.statement {
  position: relative;
  padding-left: clamp(1.25rem, 3vw, 2rem);
  border-left: 5px solid var(--gold);
}
.statement + .statement { margin-top: 3rem; }
.statement h2 { color: var(--green); margin-bottom: 0.35em; }
.statement p { font-size: var(--fs-lg); color: var(--ink); }
.statement--vision { border-left-color: var(--red); }

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--mist);
}
.photo-frame img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; }
.photo-frame::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  background: var(--green);
}

/* ---------- 8. Values ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.value {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--navy-soft);
  border-radius: var(--radius);
  border-top: 5px solid var(--gold);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
}
.value:hover { transform: translateY(-4px); background: #2A3F6A; }

.value-icon {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
}
.value-icon svg { width: 30px; height: 30px; }

.value h3 { color: #FFFFFF; margin-bottom: 0.2em; }
.value-tagline {
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.9em;
}
.value p:not(.value-tagline) { color: #C9D2E3; }

.value:nth-child(2) { border-top-color: var(--green); }
.value:nth-child(2) .value-icon { background: var(--green); color: #FFFFFF; }
.value:nth-child(3) { border-top-color: var(--red); }
.value:nth-child(3) .value-icon { background: var(--red); color: #FFFFFF; }
.value:nth-child(4) { border-top-color: #FFFFFF; }
.value:nth-child(4) .value-icon { background: #FFFFFF; color: var(--navy); }

/* ---------- 9. Join band ---------- */
.join {
  position: relative;
  overflow: hidden;
  background: var(--red);
  color: #FFFFFF;
  padding-block: clamp(4rem, 8vw, 6rem);
}
.join h2 { color: #FFFFFF; max-width: 16em; }
.join p { color: #FFE9D6; font-size: var(--fs-lg); max-width: 36em; margin-bottom: 2rem; }
.join .poppy { right: -2rem; top: 50%; transform: translateY(-50%); width: clamp(180px, 26vw, 320px); opacity: 0.22; }

.join-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2.2rem;
  display: grid;
  gap: 0.7rem;
}
.join-steps li { display: flex; gap: 0.75rem; align-items: flex-start; }
.join-steps svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0.25rem; color: var(--gold); }

/* ---------- 10. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #B9C3D6;
  padding-block: 4rem 2rem;
  font-size: var(--fs-sm);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand img { width: 96px; height: 96px; margin-bottom: 1rem; }
.site-footer h2 {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: #E8ECF4; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.social a {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), color 0.3s;
}
.social a:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: translateY(-3px); }
.social svg { width: 20px; height: 20px; }

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

/* ---------- 10b. What clemency means ---------- */
.clemency-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.type-card {
  --tone: var(--gold);
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.25rem);
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.type-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 6px;
  background: var(--tone);
  transition: width 0.4s var(--ease);
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.type-card:hover::before { width: 10px; }
.type-card--green { --tone: var(--green); }
.type-card--red { --tone: var(--red); }
.type-card h3 { color: var(--navy); }
.type-card p { color: var(--muted); }
.type-icon {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  background: var(--tone);
  color: #FFFFFF;
}
.type-card--gold .type-icon { color: var(--navy); }
.type-icon svg { width: 26px; height: 26px; }

/* ---------- 10c. How we work ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
}
.pillar { padding-top: 1.5rem; border-top: 3px solid var(--navy); }
.pillar-icon { width: 44px; height: 44px; color: var(--red); margin-bottom: 1rem; }
.pillar h3 { color: var(--green); }
.pillar p { color: var(--muted); }

/* ---------- 10d. Quote band ---------- */
.quote-band {
  position: relative;
  background: var(--gold);
  color: var(--navy);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  overflow: hidden;
}
.quote { margin: 0 auto; max-width: 52rem; text-align: center; }
.quote-mark { width: 56px; height: 56px; margin: 0 auto 1.25rem; color: var(--red); }
.quote blockquote { margin: 0 0 1.5rem; }
.quote blockquote p {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}
.quote figcaption { font-size: 1rem; color: var(--navy-soft); }

/* ---------- 10e. Ways to act ---------- */
.ways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}
.way {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--navy);
  color: #C9D2E3;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s;
}
.way::after { /* gold rises from the bottom on hover */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gold);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.way:hover, .way:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(242, 169, 59, 0.35);
  color: var(--navy);
}
.way:hover::after, .way:focus-visible::after { transform: translateY(0); }
.way-icon { width: 40px; height: 40px; color: var(--gold); margin-bottom: 1.1rem; transition: color 0.35s; }
.way h3 { color: #FFFFFF; font-size: 1.35rem; transition: color 0.35s; }
.way p { flex: 1; }
.way:hover .way-icon, .way:hover h3 { color: var(--navy); }
.way-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-weight: 700;
  color: var(--gold);
  transition: color 0.35s;
}
.way:hover .way-link { color: var(--red); }
.way-link svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.way:hover .way-link svg { transform: translateX(5px); }

/* ---------- 10f. FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-head { position: sticky; top: 120px; margin-bottom: 0; }
.faq-head .lead { margin-bottom: 1.75rem; }
.faq-list { display: grid; gap: 0.85rem; }
.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] { border-color: var(--gold); box-shadow: var(--shadow); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--navy);
}
.faq-item summary:hover h3 { color: var(--red); }
.faq-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  transition: transform 0.35s var(--ease), background-color 0.3s, color 0.3s;
}
.faq-icon svg { width: 18px; height: 18px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); background: var(--red); color: #FFFFFF; }
.faq-body { padding: 0 1.5rem 1.4rem; color: var(--muted); }

/* ---------- 10g. Icon beside title (values, clemency cards, pillars) ---------- */
.value, .type-card, .pillar {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: center;
  align-content: start;
}
.value > *, .type-card > *, .pillar > * { grid-column: 1 / -1; }
.value > .value-icon, .type-card > .type-icon, .pillar > .pillar-icon { grid-column: 1; margin-bottom: 0; }
.value > h3, .type-card > h3, .pillar > h3 { grid-column: 2; margin: 0; }
.value > :nth-child(3), .type-card > :nth-child(3), .pillar > :nth-child(3) { margin-top: 1.1rem; }

/* ---------- 10h. Inner page hero ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #E8ECF4;
  padding-block: clamp(2.2rem, 4.2vw, 3.5rem) clamp(2.6rem, 5vw, 4.25rem);
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--gold) 0 70%, var(--red) 70% 100%);
}
.page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.page-hero h1 { color: #FFFFFF; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
.page-hero h1 .line-gold { color: var(--gold); }
.page-hero .hero-text { margin-bottom: 1.5rem; }
.page-hero h1 { margin-bottom: 0.35em; }
.page-hero .breadcrumb { margin-bottom: 0.9rem; }

.breadcrumb { margin-bottom: 1.25rem; font-size: var(--fs-sm); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.breadcrumb li { display: flex; align-items: center; gap: 0.5rem; color: var(--gold); font-weight: 600; }
.breadcrumb li + li::before { content: "/"; color: rgba(255, 255, 255, 0.4); }
.breadcrumb a { color: #C9D2E3; text-decoration: none; font-weight: 500; }
.breadcrumb a:hover { color: #FFFFFF; }

.hero-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 5 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 6px solid var(--gold);
  background: var(--navy-soft);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero .poppy { right: -2.5rem; top: -2rem; width: 150px; opacity: 0.25; }

/* ---------- 10i. Stats strip ---------- */
.stats {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.stats li {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--gold);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.stats strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
  line-height: 1.1;
  color: #FFFFFF;
}
.stats span { color: #C9D2E3; font-size: var(--fs-sm); }

/* ---------- 10j. Prose ---------- */
.prose { max-width: 42rem; }
.prose h2 { color: var(--green); }
.prose p { color: var(--ink); }
.prose .lead { color: var(--muted); }
.eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  background: rgba(192, 39, 45, 0.1);
  color: var(--red);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.section--navy .eyebrow { background: rgba(242, 169, 59, 0.15); color: var(--gold); }

/* ---------- 10k. Members ---------- */
.members-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.member {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 100%;
  padding: 1.25rem 1.35rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold); }
.monogram {
  flex-shrink: 0;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
}
.monogram--long { font-size: 0.78rem; letter-spacing: 0.02em; }
.members-grid li:nth-child(4n+2) .monogram { background: var(--green); color: #FFFFFF; }
.members-grid li:nth-child(4n+3) .monogram { background: var(--red); color: #FFFFFF; }
.members-grid li:nth-child(4n+4) .monogram { background: var(--gold); color: var(--navy); }
.member h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; color: var(--navy); }

/* ---------- 10l. Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-soft);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- 10m. Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: 1.1rem;
  border-radius: 50%;
  background: var(--red);
  color: #FFFFFF;
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 700;
}
.steps h3 { color: var(--navy); }
.steps p { color: var(--muted); }

/* ---------- 10n. Check lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.85rem; }
.check-list li { display: flex; gap: 0.8rem; align-items: flex-start; }
.check-list svg { flex-shrink: 0; width: 24px; height: 24px; margin-top: 0.15rem; color: var(--green); }
.section--navy .check-list svg { color: var(--gold); }

.panel {
  height: 100%;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--paper);
  border-top: 5px solid var(--gold);
  box-shadow: var(--shadow);
}
.panel--green { border-top-color: var(--green); }
.panel--red { border-top-color: var(--red); }
.panel { color: var(--ink); }
.panel h3, .section--navy .panel h3 { color: var(--navy); }
.panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

/* ---------- 10o. Embeds (form, donation) : fixed height, no layout shift ---------- */
.embed-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.embed-card iframe { display: block; width: 100%; height: var(--embed-h, 900px); border: 0; }
.embed-note { margin-top: 1rem; font-size: var(--fs-sm); color: var(--muted); }

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.donate-aside { position: sticky; top: 120px; }
.freq-chips { list-style: none; margin: 1.25rem 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.freq-chips li {
  padding: 0.45rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--mist);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
}
.fine-print { font-size: var(--fs-sm); color: var(--muted); }

/* ---------- 10p. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.info-card {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--navy);
  color: #C9D2E3;
}
.info-card h2 { color: var(--gold); font-size: 1.6rem; }
.info-item { display: flex; gap: 1rem; align-items: flex-start; padding-block: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.info-item svg { flex-shrink: 0; width: 26px; height: 26px; color: var(--gold); margin-top: 0.15rem; }
.info-item strong { display: block; color: #FFFFFF; }
.info-item a { color: #FFFFFF; font-weight: 600; word-break: break-word; }
.info-item a:hover { color: var(--gold); }
.info-card .social a { border-color: rgba(255, 255, 255, 0.25); }

.form-card {
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.form-card h2 { color: var(--green); font-size: 1.9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; color: var(--navy); font-size: var(--fs-sm); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 170px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.2);
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  display: none;
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
}
.form-status.is-success { display: block; background: rgba(88, 140, 90, 0.12); color: var(--green-dark); border: 1px solid var(--green); }
.form-status.is-error { display: block; background: rgba(192, 39, 45, 0.08); color: var(--red-dark); border: 1px solid var(--red); }

/* ---------- 10q. 404 ---------- */
.notfound { text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.notfound .btn-row { justify-content: center; }

/* ---------- 10r. Photo slider (CSS scroll snap) ---------- */
.slider-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}
.slider-head .section-head { margin-bottom: 0; }
.slider-nav { display: flex; gap: 0.75rem; flex-shrink: 0; }
.slider-arrow {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s, transform 0.3s var(--ease), opacity 0.3s;
}
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow:hover:not(:disabled) { background: var(--navy); color: var(--gold); transform: translateY(-2px); }
.slider-arrow:disabled { opacity: 0.35; cursor: default; }

.slider { --gap: 1.25rem; --per-view: 4; }
.slider-track {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-block: 0.5rem 1rem;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider-track.is-dragging .slide-btn { pointer-events: none; }

.slide {
  flex: 0 0 calc((100% - (var(--per-view) - 1) * var(--gap)) / var(--per-view));
  margin: 0;
  scroll-snap-align: start;
}
.slide-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-soft);
  cursor: zoom-in;
}
.slide-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  transition: transform 0.6s var(--ease);
}
.slide-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 31, 56, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.slide-zoom {
  position: absolute;
  right: 1rem; bottom: 1rem;
  z-index: 1;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  transform: scale(0.6);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.slide-zoom svg { width: 22px; height: 22px; }
.slide-btn:hover img, .slide-btn:focus-visible img { transform: scale(1.06); }
.slide-btn:hover::after, .slide-btn:focus-visible::after { opacity: 1; }
.slide-btn:hover .slide-zoom, .slide-btn:focus-visible .slide-zoom { transform: scale(1); opacity: 1; }

.slider-progress {
  height: 4px;
  margin-top: 0.75rem;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
}
.slider-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform-origin: left center;
  transform: scaleX(var(--progress, 0.5));
  transition: transform 0.2s linear;
}

/* ---------- 10s. Lightbox popup ---------- */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: 100vw; max-height: 100vh;
  margin: 0;
  padding: clamp(3.5rem, 7vw, 5rem) clamp(1rem, 7vw, 6rem) clamp(4.5rem, 8vw, 5.5rem);
  border: 0;
  background: rgba(13, 21, 38, 0.94);
  color: #FFFFFF;
  overflow: hidden;
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; animation: lb-in 0.3s var(--ease); }
.lightbox::backdrop { background: rgba(13, 21, 38, 0.6); }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }

.lightbox-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  touch-action: pan-y;
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  -webkit-user-drag: none;
  user-select: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.lightbox-img.is-changing { opacity: 0; transform: scale(0.97); }
.lightbox-caption {
  position: absolute;
  left: 0; right: 0; bottom: clamp(1rem, 3vw, 1.75rem);
  padding-inline: 1rem;
  text-align: center;
  color: #C9D2E3;
}
.lightbox-count { color: var(--gold); font-weight: 700; margin-left: 0.5rem; }

.lightbox-btn {
  position: absolute;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(27, 42, 74, 0.7);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease);
}
.lightbox-btn svg { width: 24px; height: 24px; }
.lightbox-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); transform: scale(1.08); }
.lightbox-close { top: clamp(0.75rem, 2vw, 1.5rem); right: clamp(0.75rem, 2vw, 1.5rem); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.5rem); top: 50%; margin-top: -27px; }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.5rem); top: 50%; margin-top: -27px; }
body.lightbox-open { overflow: hidden; }

/* ---------- 10t. Fluent Forms (contact page) matched to the theme ---------- */
.form-card .fluentform .ff-el-group { margin-bottom: 1.1rem; }
.form-card .fluentform .ff-el-input--label label {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.form-card .fluentform .ff-el-is-required.asterisk-right label::after { color: var(--red); }
.form-card .fluentform .ff-el-form-control {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  box-shadow: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form-card .fluentform textarea.ff-el-form-control { min-height: 170px; resize: vertical; }
.form-card .fluentform .ff-el-form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(242, 169, 59, 0.2);
}
.form-card .fluentform .ff-el-is-error .ff-el-form-control { border-color: var(--red); }
.form-card .fluentform .ff-el-is-error .text-danger,
.form-card .fluentform .error.text-danger { color: var(--red-dark); font-size: var(--fs-sm); margin-top: 0.35rem; }

.form-card .fluentform .ff-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 1.15rem 2.3rem;
  border: 2px solid var(--red) !important;
  border-radius: var(--radius-pill) !important;
  background: var(--red) !important;
  color: #FFFFFF !important;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.25s var(--ease), box-shadow 0.35s var(--ease);
}
.form-card .fluentform .ff-btn-submit:hover,
.form-card .fluentform .ff-btn-submit:focus-visible {
  background: var(--navy) !important;
  border-color: var(--navy) !important;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(192, 39, 45, 0.4);
  opacity: 1;
}

.form-card .ff-message-success {
  padding: 1rem 1.25rem;
  border: 1px solid var(--green);
  border-radius: 10px;
  background: rgba(88, 140, 90, 0.12);
  color: var(--green-dark);
  font-weight: 600;
  box-shadow: none;
}
.form-card .ff-errors-in-stack { color: var(--red-dark); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1080px) {
  .ways-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slider { --per-view: 2; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--navy);
    border-bottom: 4px solid var(--gold);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 1rem var(--gutter) 1.5rem; gap: 0.25rem; }
  .main-nav a:not(.btn) { padding: 0.85rem 0.5rem; font-size: 1rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
  .main-nav .btn { margin: 0.75rem 0 0; width: 100%; }
}

@media (max-width: 860px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-media { width: min(100%, 300px); margin-top: 1rem; }
  .hero-badge { left: -0.75rem; }
  .poppy--hero-a { right: -1.5rem; width: 100px; }
  .values-grid, .clemency-types, .pillars, .faq-layout { grid-template-columns: 1fr; }
  .faq-head, .donate-aside { position: static; }
  .page-hero-grid, .donate-layout, .contact-layout, .panel-grid, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-photo { max-width: 560px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .brand-name { font-size: 1rem; }
  .brand img { width: 52px; height: 52px; }
  .btn-row .btn { width: 100%; }
  .ways-grid, .members-grid, .form-grid { grid-template-columns: 1fr; }
  .slider { --per-view: 1.15; --gap: 0.9rem; }
  .slider-head { align-items: flex-start; flex-direction: column; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; margin-top: 0; width: 48px; height: 48px; }
  .lightbox-caption { bottom: 1.6rem; padding-inline: 4.5rem; font-size: var(--fs-sm); }
  .stats { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .embed-card iframe { height: var(--embed-h-mobile, var(--embed-h, 900px)); }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
