/* ============================================================
   Church Coverage Check — styles
   Palette: navy #1B2A4A · gold #C9A227 · white · mist #F4F5F7 · slate #4A5568
   Type: Fraunces (display) + Inter (body)
   ============================================================ */

:root {
  --ink: #1B2A4A;
  --ink-deep: #111C33;
  --gold: #C9A227;
  --gold-soft: #FBF6E3;
  --gold-line: #E4CE87;
  --paper: #FFFFFF;
  --mist: #F4F5F7;
  --slate: #4A5568;
  --slate-light: #8A94A6;
  --line: #E2E6EC;
  --danger: #9B3B2E;
  --ok: #2E6B4F;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(27, 42, 74, 0.10);
  --shadow-soft: 0 4px 14px rgba(27, 42, 74, 0.07);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1080px;
}

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

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: 17px;
  line-height: 1.65;
  color: var(--slate);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 560;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); }
h3 { font-size: 1.18rem; font-weight: 600; }

p { margin-bottom: 1em; }
a { color: var(--ink); }
img, svg { vertical-align: middle; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 780px; }

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--ink);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
}
.brand-mark svg { width: 100%; height: 100%; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--slate);
}
.site-nav a:hover { color: var(--ink); }
@media (max-width: 640px) {
  .site-nav .nav-link { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 13px 26px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
.btn-gold { background: var(--gold); color: var(--ink-deep); }
.btn-gold:hover { background: #B8931F; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: var(--ink-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--mist); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background:
    linear-gradient(180deg, #FDFDFB 0%, var(--paper) 70%),
    repeating-linear-gradient(180deg, transparent 0 34px, rgba(27,42,74,0.045) 34px 35px);
  border-bottom: 1px solid var(--line);
  padding: 74px 0 84px;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero { padding: 48px 0 60px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 { margin-bottom: 1.1rem; }
.hero .lede {
  font-size: 1.14rem;
  max-width: 34em;
  margin-bottom: 1.7rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 1.1rem; }
.trust-line {
  font-size: 0.87rem;
  color: var(--slate-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust-line svg { flex: none; }

/* Signature element: the living checklist card */
.checklist-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 26px 20px;
  max-width: 380px;
  transform: rotate(0.6deg);
  margin-left: auto;
}
@media (max-width: 860px) { .checklist-card { margin-left: 0; transform: none; } }
.checklist-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  font-size: 1.02rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink);
}
.check-item:last-of-type { border-bottom: 0; }
.check-box {
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  border: 2px solid var(--gold);
  border-radius: 4px;
  position: relative;
  background: var(--paper);
}
.check-item.checked .check-box { background: var(--gold); }
.check-item.checked .check-box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid var(--ink-deep);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(42deg);
}
.check-item .tag {
  margin-left: auto;
  flex: none;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-light);
}
.checklist-card .card-foot {
  font-size: 0.78rem;
  color: var(--slate-light);
  padding-top: 10px;
}
@keyframes tick { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.check-item.checked { animation: tick 0.4s ease both; }
.check-item.checked:nth-child(2) { animation-delay: 0.15s; }
.check-item.checked:nth-child(3) { animation-delay: 0.3s; }
.check-item.checked:nth-child(4) { animation-delay: 0.45s; }
.check-item.checked:nth-child(5) { animation-delay: 0.6s; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 52px 0; } }
.section-mist { background: var(--mist); }
.section-head { max-width: 640px; margin-bottom: 2.4rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-soft);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { margin: 0; font-size: 0.94rem; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: 14px;
}

.plain-panel {
  background: var(--ink);
  color: #D7DCE6;
  border-radius: var(--radius);
  padding: 40px 36px;
}
.plain-panel h2 { color: #fff; margin-bottom: 0.8rem; }
.plain-panel p { max-width: 46em; }
.plain-panel strong { color: var(--gold-line); }
@media (max-width: 640px) { .plain-panel { padding: 30px 22px; } }

/* ---------- FAQ ---------- */
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 16px; font-size: 0.96rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink-deep);
  color: #9AA6BC;
  padding: 44px 0 36px;
  font-size: 0.85rem;
}
.site-footer a { color: #C7CFDE; }
.site-footer .foot-disclaimer {
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 22px;
  padding-top: 18px;
  font-size: 0.79rem;
  line-height: 1.6;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }

/* ---------- Calculator wizard ---------- */
.calc-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 22px 90px;
}
.progress-track {
  height: 7px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin: 8px 0 6px;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--gold);
  border-radius: 99px;
  transition: width 0.35s ease;
}
.progress-label {
  font-size: 0.8rem;
  color: var(--slate-light);
  display: flex;
  justify-content: space-between;
  margin-bottom: 26px;
}

.calc-section-title { margin-bottom: 0.35rem; }
.calc-section-sub { font-size: 0.95rem; color: var(--slate-light); margin-bottom: 1.6rem; }

.q-block { margin-bottom: 22px; }
.q-label {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.q-label .opt { font-weight: 400; color: var(--slate-light); font-size: 0.85rem; }
.q-help { font-size: 0.84rem; color: var(--slate-light); margin: -4px 0 8px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,162,39,0.18); }

/* yes/no + choice pills */
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  position: relative;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block;
  padding: 10px 22px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  font-weight: 500;
  font-size: 0.94rem;
  color: var(--slate);
  cursor: pointer;
  background: var(--paper);
  transition: all 0.12s ease;
}
.pill input:checked + span {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pill input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.q-error {
  display: none;
  color: var(--danger);
  font-size: 0.83rem;
  margin-top: 6px;
}
.q-block.has-error .q-error { display: block; }
.q-block.has-error input[type="text"], .q-block.has-error select { border-color: var(--danger); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

/* ---------- Results ---------- */
.results { max-width: 860px; margin: 0 auto; padding: 40px 22px 90px; }
.score-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
  margin-bottom: 30px;
}
.score-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.score-num {
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.score-num small { font-size: 1.2rem; color: var(--slate-light); font-weight: 400; }
.score-meta h2 { font-size: 1.4rem; margin-bottom: 4px; }
.score-meta p { margin: 0; font-size: 0.92rem; color: var(--slate-light); }
.score-bar {
  height: 10px;
  border-radius: 99px;
  background: var(--line);
  margin-top: 22px;
  overflow: hidden;
}
.score-bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold-line), var(--gold)); border-radius: 99px; }

.gap-list { list-style: none; margin: 14px 0 0; }
.gap-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.97rem;
  color: var(--ink);
}
.gap-list li:last-child { border-bottom: 0; }
.gap-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.priority-group { margin-bottom: 34px; }
.priority-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 99px;
}
.badge-essential { background: var(--ink); color: var(--gold-line); }
.badge-strong { background: var(--gold); color: var(--ink-deep); }
.badge-situational { background: transparent; color: var(--slate); border: 1.5px solid var(--slate-light); }

.rec-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-soft);
}
.rec-card .check-box { margin-top: 4px; }
.rec-card h3 { font-size: 1.02rem; margin-bottom: 3px; }
.rec-card p { margin: 0 0 4px; font-size: 0.9rem; }
.rec-card .triggers { font-size: 0.79rem; color: var(--slate-light); }

.activity-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.activity-table th, .activity-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.activity-table th {
  font-size: 0.75rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate-light);
  border-bottom: 2px solid var(--ink);
}
.activity-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
@media (max-width: 560px) { .activity-table td:first-child { white-space: normal; } }

.agent-questions { list-style: none; }
.agent-questions li {
  padding: 12px 0 12px 30px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  font-size: 0.95rem;
  color: var(--ink);
}
.agent-questions li::before {
  content: "?";
  position: absolute;
  left: 0;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 1.5px solid var(--gold);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.flag-card {
  background: var(--gold-soft);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.flag-card strong { color: var(--ink); display: block; margin-bottom: 2px; }

.disclaimer-box {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.83rem;
  color: var(--slate);
  margin: 30px 0;
}

/* contact gate */
.gate-panel {
  background: var(--ink);
  color: #D7DCE6;
  border-radius: var(--radius);
  padding: 34px 30px;
  margin: 36px 0;
}
.gate-panel h2 { color: #fff; }
.gate-panel .q-label { color: #E7EBF2; }
.gate-panel input, .gate-panel select { border-color: rgba(255,255,255,0.25); }
.gate-panel .consent-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.84rem;
  line-height: 1.55;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}
.gate-panel .consent-row input { width: 18px; height: 18px; margin-top: 3px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.form-status { margin-top: 14px; font-size: 0.9rem; }
.form-status.error { color: #F0B9AE; }
.form-status.ok { color: #BFE3CF; }

.results-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0; }

/* section spacing inside results */
.results h2.block-title {
  margin: 40px 0 6px;
  padding-top: 26px;
  border-top: 2px solid var(--ink);
}
.results .block-sub { font-size: 0.92rem; color: var(--slate-light); margin-bottom: 18px; }

/* ---------- Simple content pages ---------- */
.content-page { max-width: 760px; margin: 0 auto; padding: 52px 22px 90px; }
.content-page h1 { margin-bottom: 0.5rem; }
.content-page h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.content-page ul { margin: 0 0 1em 1.3em; }
.content-page li { margin-bottom: 0.4em; }
.updated { font-size: 0.85rem; color: var(--slate-light); margin-bottom: 2rem; }

/* ---------- Print (Save as PDF) ---------- */
.print-only { display: none; }
@media print {
  .site-header, .site-footer, .results-actions, .gate-panel, .no-print, .wizard-nav { display: none !important; }
  .print-only { display: block; }
  body { font-size: 12px; color: #222; }
  .results { padding: 0; max-width: 100%; }
  .score-panel, .rec-card, .flag-card, .disclaimer-box { box-shadow: none; break-inside: avoid; }
  .priority-group { break-inside: avoid-page; }
  .print-letterhead {
    border-bottom: 3px solid var(--ink);
    padding-bottom: 12px;
    margin-bottom: 20px;
  }
  .print-letterhead .ph-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
  .print-letterhead .ph-title { font-size: 1rem; color: var(--slate); }
  a { text-decoration: none; color: inherit; }
}


/* ---------- Brand icons ---------- */
.card-icon {
  width: 44px;
  height: 44px;
  display: block;
  margin-bottom: 14px;
}
.step-icon {
  width: 42px;
  height: 42px;
  display: block;
  margin: -4px 0 10px;
}
.step::before { margin-bottom: 10px; }


/* ---------- Photography ---------- */
.split-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) { .split-section { grid-template-columns: 1fr; gap: 30px; } }
.photo-frame {
  margin: 0;
}
.photo-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.photo-frame figcaption {
  font-size: 0.83rem;
  color: var(--slate-light);
  padding-top: 10px;
  font-style: italic;
}
.photo-band {
  background-size: cover;
  background-position: center 40%;
  min-height: 340px;
  position: relative;
  border-top: 4px solid var(--gold);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 640px) { .photo-band { min-height: 220px; } }
.photo-band-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(17,28,51,0.82));
  color: #E7EBF2;
  font-family: var(--font-display);
  font-size: 1.15rem;
  padding: 56px 24px 22px;
  text-align: center;
}
@media print { .photo-band { display: none; } }
