/* ==========================================================================
   Elaine's House, LLC — site styles
   Brand system: docs/brand-brief.md  ·  Tokens sampled from the logo/flyer
   ========================================================================== */

/* Metric-matched fallbacks keep layout stable while web fonts load (reduces CLS). */
@font-face { font-family: "Cormorant Fallback"; src: local("Georgia"); size-adjust: 84%; ascent-override: 92%; descent-override: 29%; }
@font-face { font-family: "Nunito Sans Fallback"; src: local("Arial"); size-adjust: 101%; ascent-override: 100%; descent-override: 35%; }

:root {
  --plum-900: #270848;
  --plum-800: #451259;
  --plum-700: #57196f;
  --plum-600: #69267c;
  --lavender-200: #dcc6e6;
  --lavender-100: #eddef2;
  --lavender-50: #f7f0fa;
  --gold-700: #855610; /* darkened from flyer #9b6715 to pass AA for small text */
  --gold-500: #d9a436;
  --gold-300: #fcdb78;
  --cream-50: #fcf2e4;
  --white: #fffdf9;
  --ink: #270848;
  --muted: #5b4a6b;
  --line: rgba(69, 18, 89, .14);

  --font-display: "Cormorant Garamond", "Cormorant Fallback", Georgia, serif;
  --font-caps: "Cinzel", "Georgia", serif;
  --font-body: "Nunito Sans", "Nunito Sans Fallback", Arial, sans-serif;

  --radius: 16px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px rgba(39, 8, 72, .08);
  --shadow-lg: 0 24px 60px rgba(39, 8, 72, .16);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --ease: .18s ease-in-out;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem; /* 19px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--plum-600); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--plum-800); }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; color: var(--plum-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); }
h4 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(1.2rem, 1.6vw, 1.4rem); color: var(--muted); }
.script-accent { font-family: var(--font-display); font-style: italic; color: var(--plum-600); }

.eyebrow {
  font-family: var(--font-caps); font-size: .82rem; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700);
  display: inline-block; margin-bottom: 1rem;
}
.on-dark .eyebrow { color: var(--gold-300); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 800px; }
.center { text-align: center; }
.center .lead, .center.narrow { margin-left: auto; margin-right: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--plum-800); color: #fff; padding: .75rem 1rem; z-index: 2000; }
.skip-link:focus { left: 1rem; top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons (pill) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--font-body); font-weight: 800; font-size: 1.02rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--plum { background: var(--plum-800); color: #fff; }
.btn--plum:hover { background: var(--plum-900); color: #fff; box-shadow: 0 0 0 3px var(--gold-300); }
.btn--gold { background: var(--gold-500); color: var(--plum-900); }
.btn--gold:hover { background: var(--gold-300); color: var(--plum-900); }
.btn--outline { background: transparent; color: var(--plum-800); border-color: var(--plum-800); }
.btn--outline:hover { background: var(--plum-800); color: #fff; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--ghost-light:hover { background: #fff; color: var(--plum-800); }
.btn--sm { min-height: 44px; padding: .55rem 1.15rem; font-size: .95rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.center .btn-row { justify-content: center; }

/* ---------- Utility bar + header ---------- */
.utility { background: var(--plum-900); color: #eadff0; font-size: .92rem; }
.utility .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 42px; }
.utility a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.utility a:hover { color: var(--gold-300); }
.utility svg { width: 16px; height: 16px; color: var(--gold-300); }
.utility__links { display: flex; gap: 1.5rem; }
.utility__memorial { font-family: var(--font-display); font-style: italic; font-size: 1.02rem; color: var(--gold-300); }
@media (max-width: 760px) { .utility__memorial { display: none; } .utility .container { justify-content: center; } .utility__links { gap: 1rem; } .utility__hide-sm { display: none !important; } }

/* No backdrop-filter here: it would become the containing block for the fixed mobile nav. */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 4px 18px rgba(39, 8, 72, .04); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; min-height: 84px; }
.brand { display: inline-flex; flex: none; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .15rem; }
.nav a.nav__link, .nav button.nav__link {
  display: inline-flex; align-items: center; gap: .3rem; padding: .6rem .8rem; border-radius: 999px;
  font: 700 1rem var(--font-body); color: var(--plum-900); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav a.nav__link:hover, .nav button.nav__link:hover, .nav a.nav__link[aria-current="page"] { background: var(--lavender-100); color: var(--plum-800); }
.nav__link svg { width: 16px; height: 16px; transition: transform var(--ease); }
.has-drop { position: relative; }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 290px; list-style: none; margin: 0; padding: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: all var(--ease);
}
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.open .drop { opacity: 1; visibility: visible; transform: none; }
.has-drop.open .nav__link svg { transform: rotate(180deg); }
.drop a { display: block; padding: .6rem .85rem; border-radius: 10px; color: var(--plum-900); text-decoration: none; font-weight: 600; font-size: .98rem; }
.drop a:hover { background: var(--lavender-50); color: var(--plum-700); }
.header-ctas { display: flex; gap: .6rem; flex: none; }
.nav-toggle { display: none; background: none; border: 2px solid var(--plum-800); border-radius: 999px; width: 48px; height: 48px; color: var(--plum-800); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1180px) {
  .header-ctas .btn--gold { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .brand img { height: 54px; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(420px, 100%); background: var(--white); flex-direction: column; align-items: stretch;
    padding: 96px 24px 32px; display: none; overflow-y: auto; box-shadow: var(--shadow-lg); z-index: 1001;
  }
  .nav.open { display: flex; animation: nav-in .25s ease; }
  @keyframes nav-in { from { transform: translateX(100%); } to { transform: none; } }
  .nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .nav a.nav__link, .nav button.nav__link { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .85rem 1rem; }
  .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 1rem; display: none; min-width: 0; }
  .has-drop.open .drop { display: block; }
  .header-ctas { display: none; }
  .nav .nav__mobile-ctas { display: grid; gap: .75rem; margin-top: 1.5rem; }
  .nav-close { position: absolute; top: 22px; right: 22px; }
  body.nav-open { overflow: hidden; }
  .nav-scrim { position: fixed; inset: 0; background: rgba(39, 8, 72, .45); z-index: 1000; }
}
@media (min-width: 1021px) { .nav__mobile-ctas, .nav-close, .nav-scrim { display: none !important; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section--tint { background: var(--lavender-50); }
.section--cream { background: var(--cream-50); }
.section--plum { background: var(--plum-800); color: #f3e9f7; }
.section--plum h2, .section--plum h3 { color: #fff; }
.section--plum .lead { color: #e2d3ea; }
.section-head { max-width: 760px; margin: 0 auto clamp(2.5rem, 5vw, 4rem); text-align: center; }
.section-head .lead { margin-bottom: 0; }

/* Signature divider: gold rule + heart */
.divider { display: flex; align-items: center; justify-content: center; gap: .9rem; margin: 0 auto 1.1rem; color: var(--plum-600); }
.divider::before, .divider::after { content: ""; height: 1px; width: 64px; background: linear-gradient(90deg, transparent, var(--gold-500)); }
.divider::after { background: linear-gradient(90deg, var(--gold-500), transparent); }
.divider svg { width: 18px; height: 18px; fill: currentColor; }
.on-dark .divider, .section--plum .divider { color: var(--gold-300); }
.divider--left { justify-content: flex-start; }
.divider--left::before { display: none; }

.emblem { width: 58px; height: auto; margin: 0 auto 1rem; }

/* ---------- Home hero: Ray & Elaine are the stars ---------- */
.hero-tribute {
  position: relative; overflow: hidden; color: #f6eefa;
  background:
    radial-gradient(1200px 600px at 85% 20%, rgba(217, 164, 54, .22), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(105, 38, 124, .55), transparent 60%),
    var(--plum-900);
}
.hero-tribute::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--gold-700), var(--gold-500), var(--gold-300), var(--gold-500), var(--gold-700)); }
.hero-tribute .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-top: clamp(56px, 8vw, 110px); padding-bottom: clamp(64px, 9vw, 120px); }
.hero-tribute h1 { color: #fff; }
.hero-tribute h1 em { font-style: italic; color: var(--gold-300); font-weight: 600; }
.hero-tribute .lead { color: #e6d8ee; max-width: 36ch; }
.hero-tribute .eyebrow { color: var(--gold-300); }
.hero-tribute .trust-mini { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; padding: 0; list-style: none; font-size: .98rem; color: #e6d8ee; }
.hero-tribute .trust-mini li { display: inline-flex; align-items: center; gap: .45rem; }
.hero-tribute .trust-mini svg { width: 18px; height: 18px; color: var(--gold-300); }

.portrait-frame { position: relative; justify-self: center; width: min(460px, 100%); }
.portrait-frame__arch {
  position: relative; border-radius: 999px 999px 24px 24px; overflow: hidden; aspect-ratio: 768 / 862;
  border: 3px solid var(--gold-500); box-shadow: 0 0 0 10px rgba(217, 164, 54, .12), var(--shadow-lg);
}
.portrait-frame__arch img { width: 100%; height: 100%; object-fit: cover; }
.portrait-frame figcaption {
  position: relative; margin: -34px auto 0; width: max-content; max-width: 92%; text-align: center;
  background: var(--white); color: var(--plum-900); border: 1px solid var(--gold-500); border-radius: 28px;
  padding: .7rem 1.5rem; box-shadow: var(--shadow);
}
.portrait-frame figcaption strong { display: block; font-family: var(--font-display); font-size: 1.45rem; line-height: 1.1; font-weight: 700; }
.portrait-frame figcaption span { font-family: var(--font-caps); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); }
.portrait-frame .heart-float { position: absolute; top: 8%; left: -6%; width: 64px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.3)); }

@media (max-width: 900px) {
  .hero-tribute .container { grid-template-columns: minmax(0, 1fr); text-align: center; }
  .hero-tribute .lead { margin-left: auto; margin-right: auto; }
  .hero-tribute .btn-row, .hero-tribute .trust-mini { justify-content: center; }
  .portrait-frame { width: min(340px, 86%); order: -1; }
  .portrait-frame .heart-float { width: 48px; left: -4%; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; color: #fff; background: var(--plum-900); overflow: hidden; }
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(39, 8, 72, .92) 0%, rgba(39, 8, 72, .78) 45%, rgba(39, 8, 72, .35) 100%); }
.page-hero .container { position: relative; padding-top: clamp(72px, 10vw, 130px); padding-bottom: clamp(72px, 10vw, 130px); }
.page-hero__inner { max-width: 640px; }
.page-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.page-hero .lead { color: #eadff0; }
.page-hero .eyebrow { color: var(--gold-300); }
.page-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 5px; background: linear-gradient(90deg, var(--gold-700), var(--gold-500), var(--gold-300), var(--gold-500), var(--gold-700)); }
.crumbs { font-size: .92rem; margin-bottom: 1.2rem; color: #d9c8e3; }
.crumbs a { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 .4rem; color: var(--gold-300); }
/* Mobile: the photo becomes a clear block above the text (no overlay over faces). */
@media (max-width: 700px) {
  .page-hero__bg { position: relative; aspect-ratio: 4 / 3; }
  .page-hero__bg::after { background: linear-gradient(180deg, transparent 70%, rgba(39, 8, 72, .55) 100%); }
  .page-hero .container { padding-top: 28px; padding-bottom: 56px; }
}

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--cream-50); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; margin: 0; padding: 1.4rem 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem 2rem; }
.trust-strip li { display: flex; gap: .8rem; align-items: center; font-weight: 700; font-size: 1rem; line-height: 1.35; color: var(--plum-900); }
.trust-strip li span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.trust-strip .ico { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--gold-500); display: grid; place-items: center; color: var(--plum-700); }
.trust-strip .ico svg { width: 22px; height: 22px; }
@media (max-width: 960px) { .trust-strip ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-strip ul { grid-template-columns: 1fr; } }

/* ---------- Split / zigzag ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5.5rem); align-items: center; }
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.split--flip .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split__media--accent::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--gold-500); border-radius: var(--radius); z-index: -1; }
.split--flip .split__media--accent::before { inset: 18px 18px -18px -18px; }
.split__media .tag { position: absolute; left: 18px; bottom: 18px; background: rgba(255, 253, 249, .95); color: var(--plum-900); padding: .5rem 1rem; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--flip .split__media { order: 0; } .split__media--accent::before { display: none; } }

.checklist { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.checklist li { display: flex; gap: .75rem; align-items: flex-start; }
.checklist svg { flex: none; width: 24px; height: 24px; color: var(--gold-700); margin-top: .2rem; }
.section--plum .checklist svg { color: var(--gold-300); }

/* ---------- Tribute (home) ---------- */
.tribute { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.tribute__collage { position: relative; min-height: 520px; }
.tribute__collage figure { margin: 0; position: absolute; background: #fff; padding: 12px 12px 40px; box-shadow: var(--shadow-lg); border-radius: 6px; }
.tribute__collage figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; border-radius: 2px; }
.tribute__collage figcaption { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font-family: var(--font-display); font-style: italic; font-size: 1.08rem; color: var(--plum-800); }
.tribute__collage .p1 { width: 62%; height: 300px; left: 0; top: 0; transform: rotate(-3deg); }
.tribute__collage .p2 { width: 52%; height: 330px; right: 0; top: 150px; transform: rotate(3deg); z-index: 2; }
.tribute__collage .p3 { width: 44%; height: 230px; left: 8%; bottom: 0; transform: rotate(-1.5deg); z-index: 3; }
.tribute blockquote { margin: 1.8rem 0; padding: 1.4rem 1.6rem; border-left: 4px solid var(--gold-500); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--font-display); font-size: 1.5rem; line-height: 1.35; font-style: italic; color: var(--plum-800); box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .tribute { grid-template-columns: 1fr; }
  .tribute__collage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .tribute__collage figure { position: relative; transform: none !important; width: auto !important; height: 240px !important; inset: auto !important; }
  .tribute__collage .p3 { grid-column: 1 / -1; height: 280px !important; }
}

/* ---------- Values / feature cards ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.value { background: #fff; border-radius: var(--radius); padding: 2rem 1.6rem; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--gold-500); }
.value .ico { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem; background: var(--lavender-100); color: var(--plum-700); }
.value .ico svg { width: 30px; height: 30px; }
.value h3 { font-size: 1.6rem; margin-bottom: .4rem; }
.value p { font-size: 1.02rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform var(--ease), box-shadow var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__img { aspect-ratio: 3 / 2; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: 1.65rem; }
.card__body p { font-size: 1.02rem; color: var(--muted); }
.card__link { margin-top: auto; font-weight: 800; color: var(--plum-700); text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.card__link svg { width: 18px; height: 18px; transition: transform var(--ease); }
.card:hover .card__link svg { transform: translateX(4px); }
.card__link::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; counter-reset: step; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 2.4rem 1.5rem 1.6rem; box-shadow: var(--shadow); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; top: -20px; left: 1.5rem; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--plum-800); color: var(--gold-300); font: 700 1rem var(--font-body); border: 3px solid var(--white); }
.steps h3 { font-size: 1.45rem; }
.steps p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 2.4rem; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Phone CTA bar */
.callbar { background: linear-gradient(90deg, var(--gold-700), var(--gold-500)); color: var(--plum-900); }
.callbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 1rem 2rem; padding-top: 1.6rem; padding-bottom: 1.6rem; text-align: center; }
.callbar p { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 700; line-height: 1.2; }
.callbar a.callbar__phone { display: inline-flex; align-items: center; gap: .6rem; background: var(--plum-900); color: #fff; text-decoration: none; padding: .8rem 1.6rem; border-radius: 999px; font-weight: 800; font-size: 1.2rem; }
.callbar a.callbar__phone:hover { background: var(--plum-800); }
.callbar svg { width: 22px; height: 22px; color: var(--gold-300); }

/* Dual CTA split */
.dual { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.dual__card { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(2rem, 4vw, 3.2rem); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.dual__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.dual__card::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.dual__card { min-height: 640px; }
.dual__card--families::before { background: linear-gradient(180deg, transparent 42%, rgba(39, 8, 72, .92) 75%); }
.dual__card--careers::before { background: linear-gradient(180deg, transparent 42%, rgba(52, 28, 4, .92) 75%); }
.dual__card h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.dual__card p { color: #f1e8f5; max-width: 42ch; }
.dual__card .eyebrow { color: var(--gold-300); }
/* Mobile: photo on top in full view, text on a solid panel below. */
@media (max-width: 820px) {
  .dual { grid-template-columns: 1fr; }
  .dual__card { padding: 0; min-height: 0; display: block; }
  .dual__card img { position: relative; inset: auto; z-index: auto; aspect-ratio: 4 / 3; height: auto; }
  .dual__card::before { display: none; }
  .dual__card--families { background: var(--plum-800); }
  .dual__card--careers { background: #4a2a07; }
  .dual__body { padding: 1.6rem 1.5rem 1.8rem; }
}

/* Pull quote / promise */
.promise { text-align: center; max-width: 900px; margin: 0 auto; }
.promise blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.25; font-style: italic; color: #fff; }
.promise cite { display: block; margin-top: 1.4rem; font-style: normal; font-family: var(--font-caps); letter-spacing: .2em; font-size: .85rem; text-transform: uppercase; color: var(--gold-300); }

/* Areas */
.areas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.area { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); border-left: 4px solid var(--gold-500); }
.area h3 { font-size: 1.6rem; display: flex; align-items: center; gap: .5rem; }
.area h3 svg { width: 22px; height: 22px; color: var(--gold-700); }
.area p { font-size: 1.02rem; color: var(--muted); }
@media (max-width: 900px) { .areas { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; counter-reset: faq; }
.faq details { border-bottom: 1px solid var(--line); counter-increment: faq; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; padding: 1.4rem 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: var(--plum-900); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: counter(faq, decimal-leading-zero); font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--gold-700); }
.faq summary::after { content: "+"; font-family: var(--font-body); font-size: 1.6rem; color: var(--plum-600); transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.4rem 2.6rem; color: var(--muted); }

/* Story page */
.memorial-hero { background: var(--plum-900); color: #f3e9f7; position: relative; overflow: hidden; }
.memorial-hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 120px); }
.memorial-hero h1 { color: #fff; }
.memorial-hero h1 em { color: var(--gold-300); }
.memorial-hero .lead { color: #e2d3ea; }
.memorial-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 6px; background: linear-gradient(90deg, var(--gold-700), var(--gold-500), var(--gold-300), var(--gold-500), var(--gold-700)); }
@media (max-width: 900px) { .memorial-hero .container { grid-template-columns: minmax(0, 1fr); text-align: center; } .memorial-hero .btn-row { justify-content: center; } .memorial-hero .portrait-frame { order: -1; width: min(340px, 86%); } }
.in-loving { font-family: var(--font-caps); letter-spacing: .28em; font-size: .85rem; text-transform: uppercase; color: var(--gold-300); }

.album { columns: 3 260px; column-gap: 1.4rem; }
.album figure { break-inside: avoid; margin: 0 0 1.4rem; background: #fff; padding: 12px 12px 14px; border-radius: 8px; box-shadow: var(--shadow); }
.album img { border-radius: 4px; width: 100%; }
.album figcaption { font-family: var(--font-display); font-style: italic; font-size: 1.15rem; color: var(--plum-800); text-align: center; padding-top: .6rem; line-height: 1.3; }

.letter { background: #fff; border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.6rem); box-shadow: var(--shadow); border: 1px solid var(--line); position: relative; }
.letter::before { content: "\201C"; position: absolute; top: -.2em; left: .2em; font-family: var(--font-display); font-size: 9rem; color: var(--gold-500); opacity: .35; line-height: 1; }
.letter p { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.55; color: var(--plum-900); }
.letter .sign { font-family: var(--font-display); font-style: italic; font-size: 1.6rem; color: var(--plum-700); margin: 0; }

.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 820px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 22px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold-500), var(--lavender-200)); }
.timeline li { position: relative; padding: 0 0 2.2rem 72px; }
.timeline li::before { content: ""; position: absolute; left: 12px; top: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 4px solid var(--plum-700); }
.timeline h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.timeline p { color: var(--muted); margin: 0; }

/* Forms */
.form-wrap { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }
.form-card { background: #fff; border-radius: 20px; padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow-lg); border-top: 5px solid var(--plum-800); }
.form-card h2, .form-card h3 { margin-bottom: .3rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.2rem; margin-top: 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; font-weight: 700; font-size: 1rem; margin-bottom: .35rem; color: var(--plum-900); }
.field .req { color: #a3263a; }
.field input, .field select, .field textarea {
  width: 100%; font: 400 1.05rem var(--font-body); color: var(--ink); background: var(--white);
  border: 1.5px solid #cbbcd6; border-radius: var(--radius-sm); padding: .8rem .95rem; min-height: 52px; transition: border-color var(--ease), box-shadow var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--plum-600); box-shadow: 0 0 0 4px rgba(105, 38, 124, .15); }
.field .hint { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; }
.choices label { display: inline-flex; align-items: center; gap: .45rem; font-weight: 400; }
.choices input { width: 20px; height: 20px; min-height: 0; accent-color: var(--plum-700); }
.hp { position: absolute !important; left: -9999px !important; }
.form-note { font-size: .92rem; color: var(--muted); }
.formnotice { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: var(--radius-sm); font-weight: 600; }
.formnotice--info { background: var(--lavender-100); color: var(--plum-900); }
.formnotice--success { background: #e5f4ea; color: #1d5b35; }
.formnotice--error { background: #fbe6ea; color: #8a1f33; }

.contact-list { list-style: none; padding: 0; margin: 1.6rem 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--lavender-100); color: var(--plum-700); display: grid; place-items: center; }
.contact-list .ico svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: 1rem; }
.contact-list a { font-weight: 700; }

.map { border: 0; width: 100%; height: 340px; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 1rem; }

/* Careers specifics */
.pay-badge { display: inline-flex; flex-direction: column; align-items: center; background: var(--gold-500); color: var(--plum-900); border-radius: 20px; padding: 1rem 1.6rem; font-weight: 800; line-height: 1.15; }
.pay-badge strong { font-family: var(--font-display); font-size: 2.4rem; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.perk { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); }
.perk .ico { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--cream-50); border: 1px solid var(--gold-500); color: var(--gold-700); display: grid; place-items: center; }
.perk .ico svg { width: 22px; height: 22px; }
.perk h3 { font-size: 1.35rem; margin-bottom: .2rem; }
.perk p { font-size: 1rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .perks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .perks { grid-template-columns: 1fr; } }

/* Prose (legal) */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 2rem; margin-top: 2.2rem; }
.prose li { margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum-900); color: #d8c9e2; font-size: 1rem; position: relative; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--gold-700), var(--gold-500), var(--gold-300), var(--gold-500), var(--gold-700)); }
.footer-memorial { text-align: center; padding: 3.2rem 0 2.4rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer-memorial p { margin: 0; font-family: var(--font-display); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem); color: #fff; }
.footer-memorial span { display: block; font-family: var(--font-caps); font-style: normal; letter-spacing: .24em; font-size: .78rem; text-transform: uppercase; color: var(--gold-300); margin-bottom: .6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.4rem; padding: 3.2rem 0; }
.footer-grid h2 { font-family: var(--font-caps); font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); margin-bottom: 1rem; font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-300); text-decoration: underline; }
.footer-logo img { width: 240px; height: auto; margin-bottom: 1rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold-300); flex: none; margin-top: .3rem; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.6rem 0 2rem; font-size: .9rem; text-align: center; color: #bfaecb; }
.footer-legal p { margin: 0 0 .5rem; }
.footer-legal a { color: #fff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.fg-credit { display: flex; justify-content: center; margin-top: 1.2rem; }
.fg-credit a { display: inline-flex; align-items: center; gap: .5rem; font-size: .78rem; color: #a995b7; text-decoration: none; transition: color .2s; }
.fg-credit a:hover { color: #fff; }
.fg-credit img { height: 20px; width: auto; }

/* Mobile sticky call/CTA bar */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(255, 253, 249, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(39, 8, 72, .1); }
  .mobile-bar .btn { min-height: 48px; font-size: .98rem; padding: .5rem .8rem; }
  body { padding-bottom: 76px; }
}

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