/* ==========================================================================
   Civic Voices — civic-voices.org
   Design system derived from the Civic Voices mark:
   crimson (megaphone), gold (sound marks), slate (handle), taupe (cone).
   Display: Bricolage Grotesque · Body: Public Sans
   ========================================================================== */

:root {
  --crimson: #8e0028;
  --crimson-deep: #6d001f;
  --red: #b32020;
  --gold: #d4af1e;
  --gold-soft: #f4e9c3;
  --slate: #0a0a0a;
  --slate-deep: #000000;
  --ink: #000000;
  --body: #111111;
  --taupe: #a99c94;
  --line: #e5dfda;
  --paper: #faf8f5;
  --white: #ffffff;

  --font-display: "Inter", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --max: 1180px;
  --radius: 6px;
  --shadow: 0 12px 34px rgba(31, 46, 54, 0.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p + p { margin-top: 1em; }

a { color: var(--crimson); text-decoration: none; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* --------------------------------------------------------------------------
   Signature devices from the mark
   -------------------------------------------------------------------------- */

/* The vertical rule from the logo, used as an eyebrow anchor */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 3px;
  height: 1.35em;
  background: var(--crimson);
  flex: none;
}
.eyebrow--gold { color: #a2820a; }
.eyebrow--gold::before { background: var(--gold); }
.eyebrow--slate { color: var(--slate); }
.eyebrow--slate::before { background: var(--slate); }
.on-dark .eyebrow { color: var(--gold); }
.on-dark .eyebrow::before { background: var(--gold); }

/* Gold sound marks from the logo, drawn as an SVG accent */
.sparks { display: inline-block; width: 44px; height: 34px; vertical-align: -4px; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 13px;
  border-radius: 4px;
  white-space: nowrap;
}
.nav a:hover { background: var(--paper); color: var(--crimson); }
.nav a.active { color: var(--crimson); box-shadow: inset 0 -3px 0 var(--crimson); border-radius: 0; }
.nav a.nav-cta {
  background: var(--crimson);
  color: var(--white);
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 4px;
}
.nav a.nav-cta:hover { background: var(--crimson-deep); color: var(--white); box-shadow: none; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    display: none;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav a { padding: 13px 10px; border-bottom: 1px solid var(--paper); }
  .nav a.active { box-shadow: inset 3px 0 0 var(--crimson); padding-left: 16px; }
  .nav a.nav-cta { margin: 12px 0 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  padding: 15px 30px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn-primary { background: var(--crimson); color: var(--white); }
.btn-primary:hover { background: var(--crimson-deep); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--slate-deep); }
.btn-gold:hover { background: #c19f14; color: var(--slate-deep); }
.btn-outline { border-color: var(--crimson); color: var(--crimson); background: transparent; }
.btn-outline:hover { background: var(--crimson); color: var(--white); }
.btn-outline-light { border-color: rgba(255,255,255,0.75); color: var(--white); background: transparent; }
.btn-outline-light:hover { background: var(--white); color: var(--slate); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section { padding: 92px 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--slate); }
.section--crimson { background: var(--crimson); }
.section--tight { padding: 64px 0; }

.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }
.on-dark p { color: rgba(255, 255, 255, 0.92); }
.on-dark a:not(.btn) { color: var(--gold); }

.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.2rem; line-height: 1.65; }

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero-copy { }
.hero-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1.2rem;
}
.hero h1 .accent { color: var(--crimson); }
.hero-copy p { margin: 1.4rem 0 2rem; font-size: 1.18rem; max-width: 34em; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
  background: var(--taupe);
}
.hero-media::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -18px;
  width: 45%;
  height: 45%;
  border: 3px solid var(--gold);
  border-radius: var(--radius);
  z-index: -1;
}
.hero-tag {
  position: absolute;
  left: -14px;
  bottom: 26px;
  background: var(--slate);
  color: var(--white);
  font-weight: 700;
  font-size: 0.86rem;
  padding: 12px 18px;
  border-radius: 4px;
  box-shadow: var(--shadow);
}
.hero-tag strong { color: var(--gold); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
  .hero-media { max-width: 480px; }
}

/* Page hero (interior pages) */
.page-hero { background: var(--slate); padding: 84px 0 76px; position: relative; overflow: hidden; }
.page-hero::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--crimson), var(--gold));
}
.page-hero .container { max-width: 880px; margin-left: auto; margin-right: auto; }
.page-hero h1 { margin-bottom: 1.1rem; }
.page-hero .lead { font-size: 1.22rem; }
.page-hero--crimson { background: linear-gradient(135deg, var(--crimson-deep), var(--crimson)); }
.page-hero--gold::before { background: var(--gold); }

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat { background: var(--slate); padding: 34px 26px; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat .label { margin-top: 10px; color: rgba(255,255,255,0.8); font-size: 0.92rem; line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   The three doors (ecosystem cards)
   -------------------------------------------------------------------------- */

.doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.door {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--taupe);
  border-radius: var(--radius);
  padding: 38px 32px 34px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.door:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.door--platform { border-top-color: var(--crimson); }
.door--initiative { border-top-color: var(--gold); }
.door--consulting { border-top-color: var(--slate); }
.door .kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.door--platform .kicker { color: var(--crimson); }
.door--initiative .kicker { color: #a2820a; }
.door--consulting .kicker { color: var(--slate); }
.door h3 { margin-bottom: 12px; font-size: 1.45rem; }
.door p { flex: 1; }
.door .door-link { margin-top: 22px; font-weight: 700; font-size: 0.98rem; }
.door .door-link::after { content: " →"; }
@media (max-width: 900px) { .doors { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   The loop (Learn → Feedback rail)
   -------------------------------------------------------------------------- */

.loop { position: relative; margin-top: 3rem; }
.loop-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}
.loop-rail::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 6%;
  right: 6%;
  height: 3px;
  background: var(--line);
  z-index: 0;
}
.loop-step { position: relative; z-index: 1; text-align: center; padding: 0 6px; }
.loop-step .dot {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--crimson);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 3px var(--crimson);
}
.loop-step:last-child .dot { background: var(--gold); color: var(--slate-deep); box-shadow: 0 0 0 3px var(--gold); }
.loop-step h4 { font-size: 1.02rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.loop-step p { font-size: 0.92rem; line-height: 1.55; }
.loop-return {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
  background: var(--gold-soft);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 18px 26px;
  font-weight: 600;
  color: var(--slate);
}
@media (max-width: 900px) {
  .loop-rail { grid-template-columns: 1fr; gap: 30px; }
  .loop-rail::before { top: 6%; bottom: 6%; left: 26px; right: auto; width: 3px; height: auto; }
  .loop-step { display: grid; grid-template-columns: 54px 1fr; gap: 18px; text-align: left; }
  .loop-step .dot { margin: 0; }
  .loop-step h4 { grid-column: 2; }
  .loop-step p { grid-column: 2; }
  .loop-step .dot { grid-row: 1 / span 2; }
}

/* --------------------------------------------------------------------------
   Two-column feature blocks
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: var(--taupe);
}
.split.reverse .split-media { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
}

/* --------------------------------------------------------------------------
   Cards, lists, tables of content
   -------------------------------------------------------------------------- */

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.card h3, .card h4 { margin-bottom: 10px; }
.card .card-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 10px;
}
.card--flag { border-left: 4px solid var(--gold); }
.card--quiet { background: var(--paper); border-color: transparent; }

.check-list { list-style: none; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--crimson);
  border-bottom: 3px solid var(--crimson);
  transform: rotate(-45deg);
}
.check-list--gold li::before { border-color: var(--gold); }
.on-dark .check-list li { color: rgba(255,255,255,0.85); }

.x-list { list-style: none; }
.x-list li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.x-list li::before {
  content: "✕";
  position: absolute;
  left: 2px;
  top: 0;
  color: var(--red);
  font-weight: 800;
}

/* Promise vs practice (platform page) */
.contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contrast .panel { border-radius: var(--radius); padding: 34px 30px; }
.contrast .panel--promise { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--crimson); }
.contrast .panel--practice { background: var(--slate); border-top: 5px solid var(--red); }
.contrast .panel--practice h3, .contrast .panel--practice li { color: var(--white); }
.contrast .panel h3 { margin-bottom: 18px; }
@media (max-width: 860px) { .contrast { grid-template-columns: 1fr; } }

/* Service tiers (consulting) */
.tier {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 36px;
  margin-bottom: 26px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 30px;
}
.tier-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  color: var(--white);
  background: var(--slate);
  border-radius: var(--radius);
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tier:nth-of-type(1) .tier-no { background: var(--crimson); }
.tier:nth-of-type(2) .tier-no { background: var(--slate); }
.tier:nth-of-type(3) .tier-no { background: var(--red); }
.tier:nth-of-type(4) .tier-no { background: var(--gold); color: var(--slate-deep); }
.tier h3 { margin-bottom: 4px; }
.tier .tier-meta { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--taupe); margin-bottom: 14px; }
.tier ul { margin-top: 14px; }
@media (max-width: 700px) {
  .tier { grid-template-columns: 1fr; }
  .tier-no { width: 72px; height: 72px; font-size: 1.7rem; }
}

/* Case studies */
.case {
  border-left: 4px solid var(--crimson);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 30px 30px 26px;
}
.case h4 { margin-bottom: 8px; }
.case .case-client { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 10px; }
.case .case-result { margin-top: 14px; font-weight: 700; color: var(--slate); }
.case .case-result strong { color: var(--crimson); }

/* Impact pathway (initiative) */
.pathway { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.pathway .step {
  flex: 1 1 200px;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 26px 24px;
  position: relative;
  min-width: 200px;
}
.pathway .step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: var(--gold);
  color: var(--slate-deep);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.pathway .step h4 { color: var(--crimson); margin-bottom: 8px; }
.pathway .step p { font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 900px) {
  .pathway { flex-direction: column; }
  .pathway .step:not(:last-child)::after {
    content: "↓";
    right: auto; left: 32px; top: auto; bottom: -14px; transform: none;
  }
}

/* Access tiers (platform) */
.access { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.access .card h4 { font-size: 1.05rem; }
.access .card .who { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--crimson); margin-bottom: 8px; }
@media (max-width: 1020px) { .access { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .access { grid-template-columns: 1fr; } }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.team .member { text-align: left; }
.team .member img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: top center;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.team .member .role { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--crimson); margin-bottom: 4px; }
.team .member h3 { margin-bottom: 8px; }
.team .member p { font-size: 0.95rem; }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
.partners .logo-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 104px;
}
.partners img { max-height: 62px; width: auto; object-fit: contain; filter: grayscale(0.15); }
@media (max-width: 760px) { .partners { grid-template-columns: 1fr 1fr; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.quote::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 3.4rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.quote cite { display: block; margin-top: 16px; font-style: normal; font-weight: 700; color: var(--slate); }
@media (max-width: 860px) { .quotes { grid-template-columns: 1fr; } }

/* Photo strip */
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.photo-strip img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius);
  background: var(--taupe);
}
@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   CTA band
   -------------------------------------------------------------------------- */

.cta-band { background: linear-gradient(135deg, var(--crimson-deep), var(--crimson)); padding: 78px 0; }
.cta-band .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.cta-band h2 { color: var(--white); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.85); }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 860px) {
  .cta-band .container { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
}

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */

.form-wrap { max-width: 680px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { display: block; font-weight: 700; font-size: 0.9rem; color: var(--ink); margin-bottom: 7px; }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 13px 14px;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--crimson);
  box-shadow: 0 0 0 3px rgba(142, 0, 40, 0.12);
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-note { font-size: 0.86rem; color: var(--taupe); margin-top: 12px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-banner {
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 26px;
  font-weight: 600;
  display: none;
}
.form-banner.show { display: block; }
.form-banner--ok { background: #eaf5ec; border: 1px solid #bfe0c6; color: #1e5c2c; }
.form-banner--err { background: #fbeeee; border: 1px solid #eccaca; color: #8c2626; }

.contact-details { display: grid; gap: 6px; }
.contact-details .item { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-details .item .k { font-weight: 700; color: var(--slate); min-width: 92px; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--slate-deep); color: rgba(255,255,255,0.88); padding: 70px 0 0; }
.site-footer a { color: rgba(255,255,255,0.88); }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 52px; }
.footer-brand img { height: 44px; margin-bottom: 16px; }
.footer-brand .tagline { color: var(--gold); font-weight: 700; font-family: var(--font-display); font-size: 1.05rem; }
.footer-grid h4 { color: var(--white); font-size: 0.86rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; font-size: 0.95rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
}
.social-row { display: flex; gap: 14px; flex-wrap: wrap; }
.social-row a {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  padding: 7px 13px;
  font-size: 0.85rem;
  font-weight: 600;
}
.social-row a:hover { border-color: var(--gold); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */

/* Hidden-until-scrolled applies only when JS is running (html.js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* Utility */
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.maxw { max-width: 760px; }
.center { text-align: center; }


/* ==========================================================================
   Centre-aligned text blocks (client preference)
   Functional elements (forms, footer navigation, contact details) stay
   left-aligned for usability; bulleted lists stay left-aligned inside
   centred blocks for readability.
   ========================================================================== */

.hero-copy { text-align: center; }
.hero-copy p { margin-left: auto; margin-right: auto; }
.hero-copy .btn-row { justify-content: center; }

.page-hero .container { text-align: center; }
.page-hero .btn-row { justify-content: center; }

.section-head { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .eyebrow { justify-content: center; }

.card, .door, .quote, .stat, .team .member, .pathway .step, .loop-step, .case, .tier > div:last-child { text-align: center; }
.split > div:not(.split-media) { text-align: center; }
.cta-band .container { grid-template-columns: 1fr; text-align: center; }
.cta-band .btn-row { justify-content: center; }
.form-wrap > .eyebrow, .form-wrap h2 { text-align: left; }

.check-list, .x-list { display: inline-block; text-align: left; max-width: 100%; }
.tier .tier-no { margin-left: auto; margin-right: auto; }
.tier { grid-template-columns: 1fr; gap: 18px; }
.case { border-left: none; border-top: 4px solid var(--crimson); border-radius: 0 0 var(--radius) var(--radius); }

/* ==========================================================================
   Cookie consent notice
   ========================================================================== */

.cookie-notice {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  background: var(--slate-deep);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.cookie-notice.show { display: flex; }
.cookie-notice p { margin: 0; font-size: 0.92rem; line-height: 1.55; }
.cookie-notice .btn { padding: 11px 26px; font-size: 0.9rem; flex: none; }

/* ==========================================================================
   Video previews — See Civic Voices in action
   ========================================================================== */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.video-grid:empty { display: none; }

.video-card { text-align: center; }

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.video-frame iframe,
.video-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* Tap-to-play overlay (thumbnail mode) */
.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}
.video-play:hover { background: rgba(0, 0, 0, 0.45); }
.video-play .play-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-play .play-badge::after {
  content: "";
  margin-left: 5px;
  border-left: 18px solid var(--slate-deep);
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

/* Mute / unmute toggle (autoplay preview mode) */
.video-mute {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: var(--gold);
  color: var(--slate-deep);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  transition: transform 0.15s ease;
}
.video-mute:hover { transform: scale(1.08); }

.video-title {
  display: block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.video-title:hover { color: var(--gold); }

@media (max-width: 1020px) { .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .video-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Facebook live feed panel (Initiative page)
   ========================================================================== */

.fb-panel {
  display: flex;
  justify-content: center;
}
.fb-panel #fb-page-embed {
  width: 100%;
  max-width: 500px;
  min-height: 620px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.fb-panel iframe { display: block; width: 100%; border: 0; }
