/* Grief Reorientation — site styles. Brand: navy, gold, ivory, lavender; Bodoni Moda + Figtree. */

:root {
  --navy: #11153A; --navy-2: #1B2050; --navy-3: #262C63;
  --gold: #D3A64F; --gold-ink: #9C7428; --gold-soft: #E8CF97;
  --ivory: #F4F5F9; --paper: #FFFFFF; --sand: #F7F4EC;
  --lavender: #B5B9D6; --lav-soft: #E6E8F3;
  --ink: #2B2F48; --muted: #63677F; --rule: #DADCEA;
  --serif: 'Bodoni Moda', Didot, 'Bodoni MT', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wrap: 1120px; --narrow: 760px;
  --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font: 400 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: var(--narrow); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }

/* Type */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; color: var(--navy); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(40px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4.2vw, 48px); }
h3 { font-size: clamp(22px, 2.4vw, 27px); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-ink); }
.eyebrow { display: block; font: 600 12px/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 18px; }
.lede { font: italic 400 clamp(20px, 2.4vw, 25px)/1.45 var(--serif); color: var(--navy); }
.muted { color: var(--muted); }
.rule { width: 56px; border: 0; border-top: 1px solid var(--gold); margin: 28px 0; }
.center .rule, .rule.center { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  padding: 18px 30px; border-radius: var(--radius); border: 1px solid var(--navy); background: var(--navy); color: var(--ivory); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--navy-3); color: var(--paper); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn.gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--ivory); }
.btn.ghost.light { color: var(--ivory); border-color: rgba(244,245,249,.55); }
.btn.ghost.light:hover { background: var(--ivory); color: var(--navy); border-color: var(--ivory); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .btns { justify-content: center; }
@media (max-width: 480px) { .btns .btn { width: 100%; } }

/* Header */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.site-header.solid { position: sticky; top: 0; background: rgba(244,245,249,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ivory); }
.logo svg { width: 38px; height: 38px; flex: none; }
.logo span { font: 400 23px/1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.logo span em { color: var(--gold); }
.solid .logo { color: var(--navy); }
.solid .logo span em { color: var(--gold-ink); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font: 500 14px var(--sans); letter-spacing: .04em; color: var(--ivory); text-decoration: none; }
.nav a:hover { color: var(--gold); }
.solid .nav a { color: var(--navy); }
.solid .nav a:hover { color: var(--gold-ink); }
.nav .btn { padding: 13px 20px; font-size: 12px; }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .site-header .wrap { height: 72px; }
  .logo span { font-size: 20px; }
  .menu-btn { display: block; color: var(--ivory); }
  .solid .menu-btn { color: var(--navy); }
  .nav { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 16px 20px; }
  .nav.open { display: flex; }
  .nav a, .solid .nav a { color: var(--ivory); padding: 14px 4px; border-bottom: 1px solid rgba(181,185,214,.18); }
  .nav .btn { margin-top: 14px; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: min(100vh, 920px); display: flex; align-items: flex-end; color: var(--ivory); background: var(--navy) center/cover no-repeat; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(17,21,58,.72) 0%, rgba(17,21,58,.35) 45%, rgba(17,21,58,0) 75%),
  linear-gradient(180deg, rgba(17,21,58,.55) 0%, rgba(17,21,58,.15) 32%, rgba(17,21,58,.55) 64%, rgba(17,21,58,.92) 100%); }
.hero .wrap { position: relative; padding-top: 140px; padding-bottom: 96px; width: 100%; }
.hero h1 { color: var(--ivory); max-width: 13ch; }
.hero h1 em { color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero .lede { color: var(--ivory); max-width: 34ch; opacity: .95; }
.hero .scroll { position: absolute; left: 50%; bottom: 26px; width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); }
@media (max-width: 600px) { .hero .wrap { padding-bottom: 72px; } .hero .scroll { display: none; } }

/* Sections */
.section { padding: clamp(72px, 10vw, 132px) 0; }
.section.paper { background: var(--paper); }
.section.sand { background: var(--sand); }
.section.navy { background: var(--navy); color: var(--lav-soft); }
.section.navy h2, .section.navy h3 { color: var(--ivory); }
.section.navy h2 em { color: var(--gold); }
.section.navy .eyebrow { color: var(--gold); }
.section.navy a { color: var(--ivory); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split.wide-left { grid-template-columns: 1.15fr .85fr; }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }
.photo { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--radius); background: var(--navy-2); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo.wide { aspect-ratio: 3/2; }
.photo::after { content: ''; position: absolute; inset: 14px; border: 1px solid rgba(211,166,79,.6); pointer-events: none; }

/* Quote band */
.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 22ch; font: italic 400 clamp(30px, 4.6vw, 52px)/1.25 var(--serif); color: var(--ivory); }
.quote-band cite { display: block; margin-top: 26px; font: 600 12px var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--gold); font-style: normal; }

/* Feature list */
.ticks { list-style: none; padding: 0; margin: 24px 0 0; }
.ticks li { position: relative; padding: 14px 0 14px 34px; border-bottom: 1px solid var(--rule); }
.ticks li::before { content: ''; position: absolute; left: 4px; top: 25px; width: 14px; border-top: 1px solid var(--gold); }
.section.navy .ticks li { border-color: rgba(181,185,214,.2); }

/* Journeys grid */
.journeys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 56px; }
.journey { background: var(--paper); padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 6px; min-height: 230px; transition: background .2s; }
.journey .n { font: 400 44px/1 var(--serif); color: var(--gold); margin-bottom: 12px; }
.journey h3 { font-size: 23px; margin: 0 0 8px; }
.journey p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.journey p + p { margin-top: 2px; }
a.journey { text-decoration: none; color: inherit; }
a.journey:hover { background: var(--sand); }
@media (max-width: 960px) { .journeys { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .journeys { grid-template-columns: 1fr; } .journey { min-height: 0; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 56px; counter-reset: s; }
.steps > div { border-top: 1px solid var(--gold); padding-top: 26px; }
.steps > div::before { counter-increment: s; content: '0' counter(s); display: block; font: 400 15px var(--serif); color: var(--gold-ink); margin-bottom: 14px; letter-spacing: .1em; }
.section.navy .steps > div::before { color: var(--gold); }
.steps h3 { font-size: 24px; }
.steps p { margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* Offer card */
.offer { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold); padding: clamp(32px, 5vw, 56px); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(17,21,58,.45); }
.price { display: flex; align-items: baseline; gap: 12px; margin: 10px 0 4px; }
.price b { font: 400 64px/1 var(--serif); color: var(--navy); }
.price span { color: var(--muted); font-size: 15px; }
.fine { font-size: 14px; color: var(--muted); margin-top: 18px; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 26px; font-size: 15px; text-align: left; }
.consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--navy); flex: none; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); margin-top: 40px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative; font: 400 22px/1.3 var(--serif); color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 1px solid var(--gold-ink); border-bottom: 1px solid var(--gold-ink); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details > div { padding: 0 0 26px; max-width: 64ch; }
.faq details > div p { margin: 0 0 12px; }

/* Care note */
.care { font-size: 15px; color: var(--muted); border-left: 2px solid var(--gold); padding: 6px 0 6px 20px; margin-top: 40px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--lavender); padding: 72px 0 40px; font-size: 14px; }
.site-footer .top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(181,185,214,.18); }
.site-footer .tag { font: italic 400 22px var(--serif); color: var(--gold); margin-top: 18px; }
.site-footer nav { display: grid; grid-template-columns: repeat(2, auto); gap: 10px 48px; align-content: start; }
.site-footer a { color: var(--ivory); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; font-size: 13px; }
.site-footer .logo { color: var(--ivory); }

/* Forms & panels (sign-in, welcome) */
.panel { background: var(--paper); border: 1px solid var(--rule); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: clamp(28px, 5vw, 52px); max-width: 560px; margin: 0 auto; }
.field { margin: 18px 0; }
.field label { display: block; font-weight: 500; margin-bottom: 8px; color: var(--navy); }
.field input { width: 100%; font: inherit; padding: 15px 16px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ivory); color: var(--ink); }
.field input:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(211,166,79,.2); }
.msg { margin-top: 16px; font-size: 15px; min-height: 1.4em; }
.msg.err { color: #9B3B2E; }
.page-top { padding: 150px 0 40px; }
@media (max-width: 900px) { .page-top { padding-top: 120px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
