/* ==========================================================================
   Preplanning My Funeral — design tokens
   Palette: dusk sage + brass (calm, dignified, continuity — not somber)
   Type: Fraunces (display) / Public Sans (body) / IBM Plex Mono (data)
   Signature: the "horizon line" — a thin sage-to-brass gradient rule that
   marks transitions, echoing a calm dusk skyline and the idea of a gentle,
   well-marked path forward.
   ========================================================================== */

:root {
  --ink: #1F2E2B;
  --ink-soft: #445450;
  --base: #F1F2ED;
  --base-alt: #FFFFFF;
  --sage: #4C6B5D;
  --sage-deep: #2E4038;
  --sage-tint: #E4E9E2;
  --brass: #B98B4E;
  --brass-soft: #E7D3AF;
  --brass-deep: #8B6A35;
  --line: #CBCFC2;
  --shadow: rgba(31, 46, 43, 0.10);

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--sage-deep); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  display: inline-block;
  margin-bottom: 0.9em;
}

/* Signature horizon-line divider */
.horizon {
  height: 2px;
  width: 100%;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--brass) 20%, var(--sage) 55%, transparent 85%);
  opacity: 0.7;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 242, 237, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 16px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.logo span { color: var(--sage-deep); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 600;
}
.nav-links a[aria-current="page"] { color: var(--sage-deep); }
.nav-links a:hover { color: var(--sage-deep); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.header-phone strong { color: var(--sage-deep); }
.nav-toggle { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--sage-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); box-shadow: 0 6px 16px var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 0;
  background: linear-gradient(180deg, var(--base) 0%, var(--base) 60%, var(--sage-tint) 100%);
}
.hero .wrap { padding-bottom: 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
  padding-bottom: 56px;
}
.trust-bullets {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.trust-bullets li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-soft);
}
.trust-bullets li::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--brass);
}

/* Lead form card */
.lead-card {
  background: var(--base-alt);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 18px 40px var(--shadow);
  border: 1px solid var(--line);
}
.lead-card h3 { margin-bottom: 4px; }
.lead-card .lead-sub { font-size: 0.9rem; margin-bottom: 20px; }
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--base);
  font-family: var(--font-body);
  font-size: 0.97rem;
  color: var(--ink);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 14px 0 18px;
}
.consent input { margin-top: 3px; }
.form-fineprint { font-size: 0.75rem; color: var(--ink-soft); margin-top: 12px; text-align: center; }
.form-fineprint a { color: var(--ink-soft); }

.horizon-hero { margin-top: 8px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--sage-tint); }
.section-deep { background: var(--sage-deep); color: #fff; }
.section-deep h2, .section-deep .eyebrow { color: #fff; }
.section-deep p { color: rgba(255,255,255,0.82); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Steps (a real sequence — numbering is earned here) */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 26px 26px;
  background: var(--base-alt);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--brass);
  border: 1px solid var(--brass-soft);
  border-radius: 999px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-card {
  background: var(--base-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.stat-num {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  color: var(--sage-deep);
  display: block;
  margin-bottom: 6px;
}
.stat-card p { font-size: 0.92rem; margin-bottom: 0; }
.stat-note { font-size: 0.82rem; color: var(--ink-soft); margin-top: 18px; }

/* Trust grid */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
}
.trust-item { display: flex; gap: 14px; }
.trust-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--brass-soft);
}
.section-deep .trust-item h3 { color: #fff; margin-bottom: 4px; font-size: 1.05rem; }
.section-deep .trust-item p { font-size: 0.92rem; }

/* Quote */
.quote-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin: 0 0 18px;
  font-weight: 500;
}
.quote-block cite { font-size: 0.85rem; color: var(--ink-soft); font-style: normal; }

/* FAQ accordion */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--sage-deep);
  flex: none;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 4px 20px; max-width: 780px; }
.faq-a p { margin-bottom: 0; }

/* State list */
.state-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}
.state-card {
  background: var(--base-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
}
.state-card:hover { border-color: var(--sage-deep); color: var(--sage-deep); }
.state-card span { font-family: var(--font-mono); color: var(--brass); font-size: 0.85rem; }

.callout {
  background: var(--sage-tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  font-size: 0.95rem;
}
.callout p:last-child { margin-bottom: 0; }

/* About page */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
.about-photo {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 18px 40px var(--shadow);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 320px; margin: 0 auto; }
}

.callout.legal-flag { background: #FBF1E1; border-left-color: var(--brass); }
.legal-flag-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7A4E10;
  background: var(--brass-soft);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--base-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.checklist li::before {
  content: "";
  flex: none;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 2px solid var(--sage);
  border-radius: 4px;
}

/* ---------- Decision-tree quiz ---------- */
.quiz-card {
  background: var(--base-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 52px;
  box-shadow: 0 18px 40px var(--shadow);
}
.quiz-progress { height: 5px; background: var(--sage-tint); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.quiz-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brass), var(--sage));
  border-radius: 999px;
  transition: width 0.3s ease;
}
.quiz-step-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.quiz-question { font-family: var(--font-display); font-size: 1.75rem; font-weight: 600; color: var(--ink); margin-bottom: 30px; line-height: 1.25; }
.quiz-options { display: grid; gap: 16px; }
.quiz-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 22px 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--sage-deep);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.quiz-option:hover { background: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 22px var(--shadow); }
.quiz-option::after { content: "\2192"; color: var(--brass-soft); font-family: var(--font-mono); font-size: 1.1rem; margin-left: 16px; flex-shrink: 0; }
.quiz-back {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 26px;
  padding: 0;
}
.quiz-back:hover { color: var(--sage-deep); }
.quiz-result-name { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--ink); margin: 8px 0 12px; }
.quiz-result-price { font-family: var(--font-mono); font-size: 1.45rem; color: var(--sage-deep); margin: 22px 0 6px; }
.quiz-result-note { font-size: 0.86rem; color: var(--ink-soft); margin-bottom: 28px; }
.quiz-result-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.quiz-result-actions .btn { padding: 16px 28px; font-size: 1rem; }
@media (max-width: 640px) {
  .quiz-card { padding: 30px 22px; }
  .quiz-question { font-size: 1.4rem; }
  .quiz-option { padding: 18px 24px; font-size: 1.05rem; }
  .quiz-result-actions { flex-direction: column; }
  .quiz-result-actions .btn { width: 100%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 56px 0 28px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-body); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-grid a:hover { color: #fff; }
.footer-logo { color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; display: block; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .header-phone span.label { display: none; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 52px 0; }
}
