/* Reminea website, green (Cypress) brand. Tokens follow DESIGN.md. */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-500.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --cypress: #1F3D35;
  --candle: #C8892E;
  --paper: #F6F1EA;
  --ink: #232A27;
  --stone: #E4DCD0;
  --sage: #D3DCD6;
  --muted: #5F6763;

  --bg: var(--paper);
  --surface: #FBF8F3;
  --panel: var(--stone);
  --text: var(--ink);
  --text-2: var(--muted);
  --heading: var(--cypress);
  --btn-bg: var(--cypress);
  --btn-fg: var(--paper);
  --line: rgb(31 61 53 / 0.16);
  --focus: var(--candle);
  --shadow: 0 6px 8px -4px rgb(31 61 53 / 0.18);

  --radius: 8px;
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --space-section: clamp(72px, 10vw, 136px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* z-index scale */
  --z-header: 10;
  --z-menu: 20;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121E1A;
    --surface: #182823;
    --panel: #1C2E28;
    --text: #E9E4DC;
    --text-2: #B9C2BC;
    --heading: #F6F1EA;
    --btn-bg: var(--paper);
    --btn-fg: var(--cypress);
    --line: rgb(211 220 214 / 0.18);
    --shadow: 0 6px 8px -4px rgb(0 0 0 / 0.35);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 500 1.125rem/1.6 "Figtree", system-ui, sans-serif; /* 18px minimum */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: "Newsreader", Georgia, serif; font-weight: 500; color: var(--heading); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.5rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 3.25rem); line-height: 1.08; }
h3 { font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); line-height: 1.2; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

.skip { position: absolute; left: 16px; top: -60px; z-index: 30; background: var(--btn-bg); color: var(--btn-fg); padding: 12px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: var(--radius);
  font: 600 1.0625rem/1 "Figtree", system-ui, sans-serif; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn .ph { font-size: 1.25em; }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-primary:hover { background: color-mix(in oklab, var(--btn-bg) 88%, var(--candle)); }
.btn-quiet { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-quiet:hover { background: color-mix(in oklab, var(--heading) 8%, transparent); }
.btn-lg { min-height: 56px; padding: 0 26px; font-size: 1.125rem; }
.btn-block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: color-mix(in oklab, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
@supports (backdrop-filter: blur(1px)) { .site-header { backdrop-filter: blur(10px); } }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; flex: none; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--candle); }
.call { flex: none; }
.menu-btn, .menu-close {
  display: none; width: 48px; height: 48px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: transparent; color: var(--heading); font-size: 1.5rem; align-items: center; justify-content: center; cursor: pointer;
}
.menu {
  margin: 0; inset: 0 0 auto auto; width: min(360px, 100vw); height: 100dvh; max-height: none;
  border: 0; padding: 24px; background: var(--bg); color: var(--text);
  box-shadow: -12px 0 24px -12px rgb(0 0 0 / 0.25);
}
.menu::backdrop { background: rgb(18 30 26 / 0.45); }
.menu nav { display: grid; gap: 4px; margin: 24px 0 32px; }
.menu nav a { font: 500 1.5rem/1.2 "Newsreader", Georgia, serif; color: var(--heading); text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--line); }
.menu > .menu-close { display: flex; margin-left: auto; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .call { margin-left: auto; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 520px) {
  .brand img { height: 34px; }
  .call-label { display: none; }
  .call { width: 48px; padding: 0; }
  .header-row { gap: 12px; min-height: 64px; }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(56px, 7vw, 104px);
}
.hero-copy { display: grid; gap: 24px; }
.lead { font-size: clamp(1.1875rem, 1.1rem + 0.35vw, 1.375rem); color: var(--text); max-width: 36ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-photo { margin: 0; justify-self: end; width: 100%; max-width: 520px; }
.hero-photo img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); width: 100%; }
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-photo { justify-self: stretch; max-width: none; order: 2; }
  .hero-photo img { aspect-ratio: 3 / 2; }
}

/* Funeral (quiet temperature: no amber except the step rule) */
.funeral { padding-block: var(--space-section); border-top: 1px solid var(--line); }
.funeral h2 { max-width: 20ch; }
.steps { list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: none; }
.steps li { display: grid; gap: 12px; align-content: start; padding-top: 20px; border-top: 2px solid var(--heading); position: relative; }
.steps li::before { content: ""; position: absolute; top: -2px; left: 0; width: 48px; height: 2px; background: var(--candle); }
.step-n { font: 500 1rem/1 "Figtree", sans-serif; color: var(--text-2); }
.steps p { color: var(--text); max-width: 34ch; }
.included { margin-top: clamp(48px, 6vw, 80px); background: var(--panel); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px; }
.included ul { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 40px; }
.included li { break-inside: avoid; padding: 6px 0 6px 22px; position: relative; color: var(--text); }
.included li::before { content: ""; position: absolute; left: 0; top: 0.95em; width: 10px; height: 2px; background: var(--heading); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .included { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .included ul { columns: 1; } }

/* Photo band */
.band { position: relative; }
.band img { width: 100%; height: clamp(360px, 52vw, 640px); object-fit: cover; }
.band-line {
  position: relative; margin-top: clamp(-96px, -7vw, -48px); width: fit-content; max-width: min(820px, 100%);
  margin-inline: 0; padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 56px);
  background: var(--cypress); color: var(--paper); border-radius: 0 var(--radius) var(--radius) 0;
  font: 500 clamp(1.6rem, 1.2rem + 1.8vw, 2.75rem)/1.15 "Newsreader", Georgia, serif; text-wrap: balance;
}
@media (min-width: 1240px) { .band-line { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); max-width: calc((100vw - var(--wrap)) / 2 + 820px); } }

/* Grave care (warm temperature) */
.care { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding-block: var(--space-section); }
.care-media { position: relative; padding-bottom: 72px; }
.care-media img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.report {
  position: absolute; right: clamp(-16px, -2vw, 0px); bottom: 0; width: min(340px, 86%);
  background: var(--surface); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow);
  border-top: 3px solid var(--candle); display: grid; gap: 6px;
}
.report-date { font-weight: 600; color: var(--heading); }
.report-place { color: var(--text-2); font-size: 1rem; }
.report-text { font: 500 1.25rem/1.3 "Newsreader", Georgia, serif; color: var(--text); margin-top: 6px; }
.care-copy { display: grid; gap: 24px; }
.care-copy > p { max-width: 46ch; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: baseline; }
.ticks .ph { color: var(--candle); font-size: 1.15rem; flex: none; transform: translateY(2px); }
@media (max-width: 900px) {
  .care { grid-template-columns: 1fr; }
  .care-media { padding-bottom: 0; }
  .report { position: relative; right: auto; bottom: auto; margin: -48px 12px 0 auto; }
}

/* Prices */
.prices { background: var(--panel); padding-block: var(--space-section); --text-2: var(--text); } /* Muted on Stone fails 4.5:1, so Ink */
.prices-note { margin-top: 16px; max-width: 52ch; color: var(--text); }
.price-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(32px, 5vw, 64px); margin-top: clamp(40px, 5vw, 64px); }
.price-group { display: grid; gap: 16px; align-content: start; }
.price-group dl { margin: 0; display: grid; }
.price-group dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.price-group dl div:first-child { border-top: 2px solid var(--heading); }
.price-group dt { color: var(--text); }
.price-group dd { margin: 0; font: 500 1.5rem/1 "Newsreader", Georgia, serif; color: var(--heading); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price-foot { color: var(--text-2); font-size: 1rem; }
.price-group-care dl div:first-child { border-top-color: var(--candle); }

/* FAQ */
.faq { padding-block: var(--space-section); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-list { display: grid; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font: 500 clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem)/1.3 "Newsreader", Georgia, serif; color: var(--heading); min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { flex: none; font-size: 1.25rem; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; max-width: 62ch; color: var(--text); }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; } }

/* Contact: committed cypress */
.contact { background: var(--cypress); color: var(--paper); padding-block: var(--space-section); }
@media (prefers-color-scheme: dark) { .contact { background: #0D1714; } }
.contact h2 { color: var(--paper); max-width: 14ch; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-info { display: grid; gap: 28px; }
.big-phone { font: 500 clamp(2.5rem, 1.8rem + 3vw, 4.25rem)/1 "Newsreader", Georgia, serif; color: var(--paper); text-decoration: none; width: fit-content; border-bottom: 2px solid var(--candle); padding-bottom: 8px; font-variant-numeric: tabular-nums; }
.big-phone:hover { color: #fff8ee; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; color: var(--sage); }
.facts li { display: flex; gap: 14px; align-items: baseline; }
.facts .ph { color: var(--candle); font-size: 1.25rem; transform: translateY(3px); flex: none; }
.facts a { color: var(--paper); }

.contact-form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 20px; }
.contact-form h3 { color: var(--cypress); }
.field { display: grid; gap: 8px; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field select, .field textarea {
  font: 500 1.0625rem/1.4 "Figtree", system-ui, sans-serif; color: var(--ink); background: #FFFDF9;
  border: 1.5px solid #8C948F; border-radius: var(--radius); padding: 12px 14px; min-height: 50px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--candle); outline-offset: 1px; border-color: var(--cypress); }
.field [aria-invalid="true"] { border-color: #A2362B; }
.help { font-size: 0.95rem; color: var(--muted); }
.err { font-size: 0.95rem; color: #A2362B; font-weight: 600; }
.contact-form .btn-primary { background: var(--cypress); color: var(--paper); }
.form-status { font-weight: 600; color: var(--cypress); min-height: 1.6em; }
.form-status.is-error { color: #A2362B; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--cypress); color: var(--sage); border-top: 1px solid rgb(211 220 214 / 0.16); padding-block: 32px calc(32px + env(safe-area-inset-bottom)); font-size: 1rem; }
@media (prefers-color-scheme: dark) { .site-footer { background: #0D1714; } }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: center; }
.footer-row img { height: 34px; width: auto; margin-right: auto; }
.site-footer a { color: var(--paper); }

/* Motion: content is visible by default; JS only adds the settle-in for blocks still below the fold */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 0.9s var(--ease-out) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-photo img { animation: unveil 1.1s var(--ease-out) 0.1s both; }
  .will-reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); }
  .will-reveal.in { opacity: 1; transform: none; filter: none; transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out), filter 0.8s var(--ease-out); }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round var(--radius)); } to { clip-path: inset(0 0 0 0 round var(--radius)); } }
