/* ===========================================================
   Crossroads Prison Ministries — site.css
   Design tokens, reset, typography, components, sections.
   =========================================================== */

:root {
  /* Colors — locked in spec §4 */
  --charcoal: #464749;
  --near-black: #211e1e;
  --cream: #fcf5e6;
  --cream-deep: #f6ead0;
  --gold: #e8a838;
  --gold-light: #f5d99a;
  --gold-tint: #fbe7b3;
  --accent: #d66937;
  --silver: #a4a7a9;
  --border: #e3dbc3;
  --white: #ffffff;

  /* Shape */
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(70, 71, 73, 0.08);
  --shadow-lg: 0 24px 60px rgba(70, 71, 73, 0.14);

  /* Type */
  --font-sans: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-sans);
  color: var(--near-black);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ----- NAV ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 245, 230, 0.92);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid rgba(70, 71, 73, 0.08);
  transition: box-shadow .2s ease;
}
.nav.is-scrolled { box-shadow: 0 2px 14px rgba(70, 71, 73, 0.08); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px;
  max-width: 1400px; margin: 0 auto;
  gap: 24px;
}
.logo { height: 40px; width: auto; }
.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500; color: var(--charcoal);
}
.nav-links a { transition: color .15s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-ctas { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none;
  background: transparent; border: 0; padding: 8px;
  color: var(--charcoal);
}
.nav-toggle svg { width: 28px; height: 28px; }

/* ----- BUTTONS ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  text-align: center;
}
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-primary { background: var(--gold); color: #fff; box-shadow: 0 6px 0 rgba(70,71,73,0.08); }
.btn-primary:hover { background: #d89a2f; transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--charcoal); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-ghost { background: transparent; color: var(--charcoal); }
.btn-sm { padding: 10px 18px; font-size: 12px; }
.btn-lg { padding: 18px 32px; font-size: 14px; }

/* ----- TYPOGRAPHY ----- */
h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(28px, 3.8vw, 44px); }
h3 { font-size: 22px; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ----- HEXAGON SYSTEM (regular pointy-top) ----- */
.hex {
  position: relative;
  width: var(--hex-size, 260px);
  aspect-ratio: 0.866 / 1;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  display: grid; place-items: center;
}
.hex-dark  { background: var(--charcoal);   color: #fff; }
.hex-gold  { background: var(--gold);       color: #fff; }
.hex-cream { background: var(--gold-light); color: var(--charcoal); }
.hex-tint  { background: var(--gold-tint);  color: var(--charcoal); }
.hex-photo {
  background-size: cover; background-position: center;
  background-color: var(--charcoal);
  color: #fff;
}
.hex-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(34,33,33,0.15) 30%, rgba(34,33,33,0.65) 100%);
  pointer-events: none;
}
.hex-inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 14%;
}
.hex-inner .label {
  font-size: 12px; font-weight: 700; letter-spacing: 2px;
  opacity: .85; margin-bottom: 10px; text-transform: uppercase;
}
.hex-inner .headline {
  font-size: clamp(20px, 2.4vw, 34px); font-weight: 900; line-height: .95;
  letter-spacing: -0.01em; text-transform: uppercase;
}
.hex-dark  .hex-inner .headline { color: var(--gold); }
.hex-gold  .hex-inner .headline { color: #fff; }
.hex-cream .hex-inner .headline { color: var(--accent); }
.hex-tint  .hex-inner .headline { color: var(--charcoal); }

/* Honeycomb cluster — positions 4 hexes in a tessellated layout */
.honeycomb {
  --hex-size: 220px;
  --hex-h: calc(var(--hex-size) / 0.866);
  --col: calc(var(--hex-size) * 0.75);
  --row: var(--hex-h);
  position: relative;
  width: calc(var(--col) * 3 + var(--hex-size) * 0.25);
  height: calc(var(--row) * 2.5);
  margin: 0 auto;
}
.honeycomb .hex { position: absolute; width: var(--hex-size); }
.hc-a { left: 0;                                top: calc(var(--row) * 0.5); }
.hc-b { left: var(--col);                       top: 0; }
.hc-c { left: var(--col);                       top: var(--row); }
.hc-d { left: calc(var(--col) * 2);             top: calc(var(--row) * 0.5); }

/* ----- SECTIONS ----- */
section { padding: 96px 24px; }
.section-dark  { background: var(--charcoal); color: var(--cream); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--gold); }
.section-cream { background: var(--cream-deep); }

/* ----- STATS ----- */
.stat { text-align: center; }
.stat .num {
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 900; color: var(--gold);
  line-height: 1; letter-spacing: -0.03em;
}
.stat .label { font-size: 14px; color: var(--charcoal); margin-top: 8px; font-weight: 500; }

/* ----- CARDS ----- */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(70,71,73,0.06);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 999px;
  background: var(--gold); color: #fff;
  font-weight: 800; font-size: 18px;
  margin-bottom: 20px;
}
.step p { color: #5a5a5a; font-size: 15px; margin: 0; }

/* ----- FORM ----- */
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.form-inline input {
  flex: 1; min-width: 220px;
  padding: 16px 20px;
  border-radius: 999px; border: 1px solid var(--border);
  font-size: 15px; background: #fff; color: var(--near-black);
  font-family: inherit;
}
.form-inline input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.form-inline input::placeholder { color: #9a9a9a; }

/* ----- FOOTER ----- */
.footer {
  background: var(--near-black); color: var(--cream);
  padding: 72px 24px 32px;
  font-size: 14px;
}
.footer a { color: var(--gold-light); }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px; margin: 0 auto;
}
.footer h4 {
  color: #fff; font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; margin: 0 0 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer .logo-footer {
  height: 44px; filter: brightness(0) invert(1); opacity: .9; margin-bottom: 16px;
}
.footer p { opacity: .7; margin: 0 0 12px; }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  opacity: .6; font-size: 12px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ----- STICKY CTA ----- */
.sticky-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  box-shadow: var(--shadow-lg);
}

/* ----- TRUST BADGES ----- */
.trust {
  background: var(--cream); padding: 56px 24px;
}
.trust-inner {
  max-width: 1000px; margin: 0 auto; text-align: center;
}
.trust-label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: #888; margin: 0 0 24px; font-weight: 600;
}
.trust-row {
  display: flex; gap: 48px;
  justify-content: center; align-items: center;
  flex-wrap: wrap; opacity: .85;
}
.trust-row img { width: auto; }
.trust-row .badge-sm { height: 54px; }
.trust-row .badge-md { height: 72px; }

/* ===========================================================
   HOMEPAGE SECTIONS
   =========================================================== */

/* Hero */
.hero { padding: 80px 24px 120px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 10% 90%, var(--gold-light) 0%, transparent 30%),
    radial-gradient(circle at 90% 20%, var(--gold-tint) 0%, transparent 25%);
  opacity: .6; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.hero-copy h1 span { color: var(--gold); }
.hero-copy p {
  font-size: 19px; color: #4a4a4a;
  max-width: 540px; margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust {
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: #6a6a6a; align-items: center;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust span::before { content: '✓'; color: var(--gold); font-weight: 800; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual .honeycomb { --hex-size: 190px; margin: 0 auto; }

/* Stats band */
.stats-band { background: var(--cream-deep); padding: 72px 24px; }
.stats-band .stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 48px; max-width: 1100px; margin: 0 auto;
}

/* Stories */
.stories-head { text-align: center; }
.stories-head p {
  max-width: 640px; margin: 0 auto 16px;
  color: #5a5a5a; font-size: 17px;
}
.stories-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1200px; margin: 48px auto 0;
}
.story-card {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  color: #fff; padding: 32px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.story-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
  z-index: 1;
}
.story-card > * { position: relative; z-index: 2; }
.story-card .bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.story-card-1 .bg { background-image: url('../img/hero-male.jpg'); background-color: #3a3b3d; }
.story-card-2 .bg { background-image: url('../img/portrait-woman.webp'); background-color: var(--gold); }
.story-card-3 .bg { background-image: url('../img/video-man.jpg'); background-color: #3a3b3d; }
.story-card .tag {
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; opacity: .85;
}
.story-card .quote {
  font-size: 20px; font-weight: 600; line-height: 1.4;
  margin: 12px 0 14px;
}
.story-card .byline { font-size: 13px; opacity: .85; }

/* How it works */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; max-width: 1100px; margin: 48px auto 0;
}
.section-head { text-align: center; }

/* Signup block */
.signup-wrap {
  max-width: 780px; margin: 0 auto; text-align: center;
}
.signup-wrap p {
  font-size: 18px; opacity: .9; margin: 0 0 28px;
}
.signup-note {
  margin-top: 20px; font-size: 13px; opacity: .7;
}

/* Other ways */
.ways-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; max-width: 1100px; margin: 48px auto 0;
}
.way-card {
  padding: 32px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
}
.way-card h3 { margin-bottom: 8px; }
.way-card p {
  font-size: 14px; color: #5a5a5a; margin: 0 0 16px;
}
.way-card a {
  font-weight: 700; color: var(--accent);
  font-size: 13px; letter-spacing: 1px; text-transform: uppercase;
}

/* ===========================================================
   GET-INVOLVED SECTIONS
   =========================================================== */

/* Split hero */
.split-hero {
  padding: 0; position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 76px);
}
.split-panel {
  padding: 80px 48px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.split-panel::before { content:''; position:absolute; inset:0; opacity:.35; z-index:0; }
.split-panel > * { position: relative; z-index: 1; }

.split-mentor {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2c2d2f 100%);
  color: #fff;
}
.split-mentor::before {
  background: radial-gradient(circle at 20% 20%, var(--gold) 0%, transparent 45%);
}
.split-mentor .eyebrow { color: var(--gold); }
.split-mentor h1 {
  color: #fff;
  font-size: clamp(36px, 4.4vw, 58px);
  max-width: 520px;
}
.split-mentor h1 span { color: var(--gold); }
.split-mentor p {
  color: rgba(255,255,255,0.85);
  font-size: 17px; max-width: 460px; margin: 0 0 28px;
}
.split-mentor .btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.split-mentor .tick-list {
  list-style: none; padding: 0; margin: 0;
  font-size: 13px; color: rgba(255,255,255,0.75);
  display: flex; gap: 20px; flex-wrap: wrap;
}
.split-mentor .tick-list li::before {
  content: '✓ '; color: var(--gold); font-weight: 800;
}

.split-support {
  background: linear-gradient(135deg, var(--cream-deep) 0%, var(--gold-light) 100%);
  color: var(--charcoal);
}
.split-support::before {
  background: radial-gradient(circle at 80% 80%, var(--accent) 0%, transparent 40%);
}
.split-support .eyebrow { color: var(--accent); }
.split-support h1 {
  font-size: clamp(32px, 4vw, 48px);
  max-width: 460px;
}
.split-support p {
  color: #4a4a4a; font-size: 16px;
  max-width: 460px; margin: 0 0 24px;
}
.support-options { display: grid; gap: 12px; max-width: 440px; }
.support-option {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 24px;
  background: rgba(255,255,255,0.6);
  border-radius: var(--radius);
  border: 1px solid rgba(70,71,73,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform .15s, background .15s;
}
.support-option:hover { transform: translateX(4px); background: rgba(255,255,255,0.9); }
.support-option strong { display: block; font-size: 16px; margin-bottom: 2px; }
.support-option small { font-size: 13px; color: #6a6a6a; }
.support-option .arrow {
  font-size: 20px; color: var(--accent); font-weight: 800;
}

.split-hex {
  position: absolute; z-index: 0;
  --hex-size: 220px;
}
.split-hex-1 { top: 48px; right: 48px; }
.split-hex-2 { bottom: 48px; left: 48px; }

/* Quote section */
.quote-wrap { max-width: 800px; margin: 0 auto; text-align: center; }
.quote-wrap blockquote {
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 600; line-height: 1.4; color: var(--charcoal);
  margin: 0 0 20px;
}
.quote-wrap cite {
  font-size: 14px; color: #6a6a6a; font-style: normal;
  letter-spacing: 1px; text-transform: uppercase;
}

/* ===========================================================
   RESPONSIVE
   =========================================================== */

@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.is-open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 24px;
    gap: 18px;
    border-bottom: 1px solid rgba(70,71,73,0.08);
  }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual .honeycomb { --hex-size: 150px; }
  .split-hero { grid-template-columns: 1fr; min-height: 0; }
  .split-hex { --hex-size: 170px; }
  .split-hex-1 { top: 24px; right: 24px; }
  .split-hex-2 { bottom: 24px; left: 24px; }
  .stories-grid { grid-template-columns: 1fr; }
  .ways-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  section { padding: 64px 20px; }
  .stats-band .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 24px; }
}
@media (max-width: 560px) {
  .hero-visual .honeycomb { --hex-size: 110px; }
  .hero-trust { gap: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .sticky-cta { left: 16px; right: 16px; bottom: 16px; text-align: center; }
}
