/* Lifeframe Studio — site-wide styles.
   Research-informed: warm earthy palette (2026 trend toward warm neutrals),
   serif headings (typography projects authority + trust), single primary CTA
   per page, mobile-first, 5-second clarity in hero.
   Funeral home website conventions: dignity, restraint, soothing colors. */

:root {
  --cream: #f4ead5;
  --cream-2: #ece2c4;
  --cream-3: #e0d3a8;
  --ink: #2a2522;
  --ink-2: #514943;
  --muted: #7a6f66;
  --accent: #7a5a30;
  --accent-2: #c9a86b;
  --rule: #d8c9a3;
  --page-max: 820px;
  --page-wide: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
.wrap {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap-wide { max-width: var(--page-wide); }

/* Top bar — shared across pages */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
  gap: 16px;
}
.brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.005em;
  white-space: nowrap;
}
.brand span { color: var(--accent); font-style: italic; font-weight: 400; }
.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
.nav a {
  font-size: 14px;
  color: var(--ink-2);
  text-decoration: none;
}
.nav a:hover { color: var(--accent); }
.nav a.cta-mini {
  color: var(--accent);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
}
.nav a.cta-mini:hover { color: var(--ink); border-color: var(--accent); }
@media (max-width: 640px) {
  .nav a:not(.cta-mini) { display: none; }
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  max-width: 720px;
}
.hero .lede {
  font-size: 20px;
  margin: 0 0 12px;
  color: var(--ink);
  max-width: 640px;
}
.hero .sub {
  font-size: 17px;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 640px;
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 32px; }
  .hero .lede { font-size: 18px; }
}

/* Sample video figure */
.sample {
  margin: 0 0 32px;
  background: #0a0908;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 32px -16px rgba(0,0,0,0.3);
}
.sample video {
  width: 100%;
  max-height: 720px;
  display: block;
  margin: 0 auto;
  background: #0a0908;
}
.sample figcaption {
  background: #0a0908;
  color: #c9a86b;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
  font-style: italic;
}

/* CTAs */
.cta {
  display: inline-block;
  background: var(--ink);
  color: var(--cream);
  font-size: 17px;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
  font-weight: 500;
}
.cta:hover { background: var(--accent); color: var(--cream); }
.cta-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  padding: 13px 23px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  margin-left: 8px;
}
.cta-secondary:hover { background: var(--ink); color: var(--cream); }

/* Sections */
section { padding: 48px 0; border-top: 1px solid var(--rule); }
section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 500;
  margin: 0 0 28px;
  letter-spacing: -0.005em;
}
section h3 {
  font-family: Georgia, serif;
  font-size: 21px;
  margin: 0 0 6px;
  font-weight: 500;
}
@media (max-width: 640px) {
  section { padding: 40px 0; }
  section h2 { font-size: 26px; }
}

/* Page heading (non-home pages) */
.page-head {
  padding: 56px 0 32px;
}
.page-head h1 {
  font-family: Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
.page-head p {
  font-size: 18px;
  color: var(--ink-2);
  margin: 0;
  max-width: 640px;
}
@media (max-width: 640px) {
  .page-head h1 { font-size: 28px; }
}

/* Three-step list (how-it-works) */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 56px;
  margin-bottom: 32px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  font-family: Georgia, serif;
  font-size: 32px;
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}
.steps p { margin: 0; color: var(--ink-2); }

/* Pricing tiers */
.tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 620px) { .tiers { grid-template-columns: 1fr; } }
.tiers-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.tier {
  background: var(--cream-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 24px;
}
.tier.premium {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.tier h3 { font-family: Georgia, serif; font-size: 22px; margin: 0 0 12px; font-weight: 500; }
.tier .price { font-family: Georgia, serif; font-size: 36px; margin: 0 0 16px; font-weight: 500; }
.tier .price span { font-size: 16px; color: var(--muted); font-weight: 400; }
.tier.premium .price span { color: var(--cream-2); }
.tier ul { list-style: none; padding: 0; margin: 0; }
.tier li { font-size: 15px; padding: 4px 0; border-top: 1px solid rgba(0,0,0,0.06); }
.tier.premium li { border-top-color: rgba(255,255,255,0.1); }
.tier li:first-child { border-top: none; }
.micro { font-size: 14px; color: var(--muted); margin: 12px 0 0; }

/* Guarantee list */
.guarantee-list { list-style: none; padding: 0; margin: 0; }
.guarantee-list li {
  padding: 12px 0;
  border-top: 1px solid var(--rule);
  font-size: 16px;
  color: var(--ink-2);
}
.guarantee-list li:first-child { border-top: none; padding-top: 0; }
.guarantee-list strong { color: var(--ink); }

/* FAQ */
.faq-list { list-style: none; padding: 0; margin: 0; }
.faq-list details {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.faq-list details:first-of-type { border-top: none; }
.faq-list summary {
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  cursor: pointer;
  color: var(--ink);
  list-style: none;
  padding-right: 32px;
  position: relative;
}
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 24px;
  color: var(--accent);
  line-height: 1;
}
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }

/* Prose pages (privacy, terms, about) */
.prose { max-width: 680px; }
.prose p, .prose ul, .prose ol { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose h2 {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  margin: 36px 0 12px;
  color: var(--ink);
}
.prose h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
  margin: 24px 0 8px;
  color: var(--ink);
}
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose .updated {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 32px;
}

/* Request section */
.request { background: var(--cream-2); }
.request h2 { margin-bottom: 12px; }
.request p { margin: 0 0 24px; color: var(--ink-2); max-width: 640px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 32px 0;
}
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--cream-2);
  border-radius: 6px;
  padding: 20px;
}
.contact-card h3 { margin: 0 0 8px; }
.contact-card p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); }

/* Footer */
footer {
  padding: 36px 0 48px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
  background: var(--cream);
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
footer .footer-links a { color: var(--ink-2); text-decoration: none; }
footer .footer-links a:hover { color: var(--accent); }
footer .footer-address {
  margin: 8px 0;
  line-height: 1.5;
  color: var(--muted);
}
footer .footer-legal {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}
