/* Clark Funeral Home — refreshed site styles */
:root {
  --brand: #660000;
  --brand-dark: #4a0000;
  --brand-soft: #f6eeeb;
  --cream: #faf7f2;
  --sand: #f1ebe2;
  --ink: #2b2522;
  --muted: #5f5650;
  --line: #e4dbd0;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(43, 37, 34, .08);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: .18em; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid #b8860b; outline-offset: 2px; }
.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; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap.narrow { max-width: 820px; }
.narrow-block { max-width: 760px; margin-left: auto; margin-right: auto; }
.center, .center-text { text-align: center; }
.btn-row.center { justify-content: center; }
.eyebrow { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin: 0 0 .6rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .7rem 1.4rem; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 2px solid var(--brand); transition: background .15s, color .15s, border-color .15s; text-align: center; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); border-color: #fff; }
.btn-light:hover { background: var(--cream); color: var(--brand-dark); border-color: var(--cream); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }

/* Top bar + header */
.topbar { background: var(--brand); color: #fff; font-size: .95rem; }
.topbar-in { display: flex; align-items: center; justify-content: center; gap: 1rem; min-height: 44px; padding-top: .35rem; padding-bottom: .35rem; }
.topbar p { margin: 0; text-align: center; }
.topbar a { color: #fff; font-weight: 700; }
.topbar-link { display: none; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-in { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { flex: 0 0 auto; margin-right: auto; }
.brand img { width: 180px; height: auto; }
.btn-call { display: none; }
.nav-toggle { display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem .9rem; background: transparent; border: 2px solid var(--brand); border-radius: 999px; color: var(--brand); font: 600 1rem var(--sans); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
.site-nav.is-open { display: block; }
.nav-list { list-style: none; margin: 0; padding: .5rem 1.25rem 1rem; }
.nav-list > li { border-bottom: 1px solid var(--line); }
.nav-list > li:last-child { border-bottom: 0; }
.sub-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; min-height: 52px; background: none; border: 0; font: 600 1.05rem var(--sans); color: var(--ink); cursor: pointer; padding: 0; text-align: left; }
.sub-toggle::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 .3rem .25rem; transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-bottom: -.2rem; }
.sub { list-style: none; margin: 0; padding: 0 0 .75rem .75rem; display: none; }
.sub-toggle[aria-expanded="true"] + .sub { display: block; }
.sub a { display: block; padding: .55rem 0; color: var(--ink); text-decoration: none; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--brand); }
.sub a[aria-current="page"] { font-weight: 700; }
.nav-guide { display: flex; align-items: center; min-height: 52px; font-weight: 700; color: var(--brand); text-decoration: none; }
.hide-lg { display: inline; }

@media (min-width: 640px) {
  .topbar-in { justify-content: space-between; }
  .topbar-link { display: inline-block; padding: .2rem 0; }
  .brand img { width: 210px; }
  .btn-call { display: inline-flex; min-height: 44px; padding: .55rem 1.1rem; }
}
@media (max-width: 639px) { .hide-sm { display: none; } }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .brand img { width: 230px; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; max-height: none; overflow: visible; }
  .nav-list { display: flex; align-items: center; gap: .15rem; padding: 0; }
  .nav-list > li { border: 0; position: relative; }
  .sub-toggle { width: auto; min-height: 44px; padding: 0 .65rem; font-size: .98rem; gap: .35rem; }
  .sub-toggle::after { width: 6px; height: 6px; margin: 0 0 .2rem .35rem; }
  .has-sub.is-active > .sub-toggle { color: var(--brand); }
  .sub { position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: .5rem; z-index: 60; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
  .sub a { padding: .5rem .75rem; border-radius: 8px; font-size: .97rem; }
  .sub a:hover { background: var(--brand-soft); }
  .nav-guide { min-height: 44px; padding: 0 .65rem; }
  .hide-lg { display: none; }
}

/* Banner (inner pages) */
.banner { position: relative; isolation: isolate; color: #fff; background: var(--brand-dark); min-height: 260px; display: flex; align-items: flex-end; }
.banner-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,10,8,.25) 0%, rgba(30,10,8,.72) 100%); }
.banner-in { padding-top: 4.5rem; padding-bottom: 2.5rem; }
.banner h1 { color: #fff; margin: 0; max-width: 20ch; }
.banner .eyebrow { color: #f3dcd2; }
.banner .lead { color: #f6ece6; margin: .75rem 0 0; }
.banner-plain { min-height: 180px; background: var(--brand); }
.banner-plain::after { display: none; }
@media (min-width: 900px) { .banner { min-height: 340px; } .banner-in { padding-bottom: 3.25rem; } }

.subnav { background: var(--cream); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: .7rem 0; display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: thin; }
.subnav li { flex: 0 0 auto; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: .35rem .95rem; border-radius: 999px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); font-size: .95rem; white-space: nowrap; }
.subnav a:hover { border-color: var(--brand); color: var(--brand); }
.subnav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Sections */
.section { padding: 3.5rem 0; }
.section.tint { background: var(--cream); }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.25rem; }
.section-head h2 { margin-bottom: .4rem; }
.list-head { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.list-head:first-of-type { margin-top: 2rem; }

.split { display: grid; gap: 2.5rem; align-items: center; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr .9fr; gap: 4rem; } .split.contact { align-items: start; } }

/* Hero slideshow */
.hero { position: relative; isolation: isolate; color: #fff; min-height: 78vh; min-height: 78svh; display: flex; align-items: center; background: #2b1a14; overflow: hidden; }
.slides, .slide { position: absolute; inset: 0; }
.slides { z-index: -2; }
.slide { opacity: 0; transition: opacity 1.4s ease; }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(25,10,6,.58); }
@media (min-width: 900px) { .hero-shade { background: linear-gradient(90deg, rgba(25,10,6,.8) 0%, rgba(25,10,6,.52) 55%, rgba(25,10,6,.25) 100%); } }
.hero-in { padding-top: 4rem; padding-bottom: 5rem; }
.hero .eyebrow { color: #f3dcd2; font-size: .9rem; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 7vw, 4.6rem); margin-bottom: .3em; }
.hero-sub { font-family: var(--serif); font-size: clamp(1.2rem, 2.6vw, 1.6rem); max-width: 30ch; line-height: 1.35; color: #fbf3ee; }
.hero-pause { position: absolute; right: 1.25rem; bottom: 1.25rem; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.3); color: #fff; cursor: pointer; display: grid; place-items: center; }
.i-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.hero-pause[aria-pressed="true"] .i-pause { width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 13px; border-color: transparent transparent transparent currentColor; margin-left: 4px; }
@media (prefers-reduced-motion: reduce) { .slide { transition: none; } }

/* Cards */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 6px rgba(43,37,34,.04); }
.card > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1.4rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .5rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--brand); }
.card-body p { font-size: 1rem; color: var(--muted); }
.card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.card-link:hover { text-decoration: underline; }
.post-meta { font-size: .92rem; color: var(--muted); margin: 0 0 .75rem; }

/* Feature rows */
.feature { display: grid; gap: 1.5rem; align-items: center; margin: 0 0 3rem; }
.feature-media img, .feature-media video { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow); }
.feature-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.feature-text > :last-child { margin-bottom: 0; }
@media (min-width: 860px) {
  .feature { grid-template-columns: 420px 1fr; gap: 3rem; margin-bottom: 4rem; }
  .feature:nth-of-type(even) { grid-template-columns: 1fr 420px; }
  .feature:nth-of-type(even) .feature-media { order: 2; }
}
.video video { width: 100%; height: auto; border-radius: var(--radius); background: #000; }
.video figcaption { font-size: .92rem; color: var(--muted); margin-top: .5rem; }
.video { margin: 0; }
.video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 2rem; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }

/* Prose */
.prose { max-width: 100%; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.8rem; }
.prose > :first-child, .prose .feature-text > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose blockquote { margin: 1.5rem 0; padding: .5rem 0 .5rem 1.25rem; border-left: 4px solid var(--brand); color: var(--muted); }
.prose a { overflow-wrap: anywhere; }
.figure { margin: 2rem 0; }
.figure img { border-radius: var(--radius); }
.caption { font-size: .92rem; color: var(--muted); margin-top: .6rem; text-align: center; }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 .75rem; background: #fff; }
.faq summary { cursor: pointer; padding: 1rem 3rem 1rem 1.25rem; font-family: var(--serif); font-size: 1.15rem; font-weight: 600; list-style: none; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 1.25rem; top: .8rem; font-size: 1.5rem; color: var(--brand); font-family: var(--sans); }
.faq[open] summary::after { content: "–"; }
.faq-a { padding: 0 1.25rem 1rem; }

/* Reviews */
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem; color: var(--muted); }
.rating-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); }
.stars { color: #b8860b; letter-spacing: .1em; }
.reviews { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.reviews-all { columns: 1; display: block; }
@media (min-width: 760px) { .reviews-all { columns: 2; column-gap: 1.5rem; } }
@media (min-width: 1100px) { .reviews-all { columns: 3; } }
.reviews-all .review { break-inside: avoid; margin-bottom: 1.5rem; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin: 0; }
.review blockquote { margin: .5rem 0 1rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.6; }
.review blockquote p { margin: 0; }
.review figcaption { font-weight: 700; }
.review figcaption span { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }

/* Family guide CTA */
.guide-cta { background: var(--brand); color: #fff; padding: 3.5rem 0; }
.guide-in { display: grid; gap: 1rem; align-items: center; }
.guide-cta h2 { color: #fff; }
.guide-cta .eyebrow { color: #f3dcd2; }
.guide-cta p { color: #f8eeea; font-size: 1.1rem; margin: 0; }
@media (min-width: 900px) { .guide-in { grid-template-columns: 1fr auto; gap: 3rem; } .guide-cta .btn-row { margin: 0; } }
.guide-inline { background: var(--brand-soft); border-radius: var(--radius); padding: 1.75rem; margin-top: 2.5rem; }
.guide-inline h2 { margin-top: 0; }

/* Flowers band */
.flowers-band { position: relative; isolation: isolate; padding: 4rem 0; overflow: hidden; }
.band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.flowers-card { background: rgba(255,255,255,.95); border-radius: var(--radius); padding: 2rem; max-width: 520px; box-shadow: var(--shadow); }
@media (min-width: 900px) { .flowers-band { padding: 6rem 0; } }

/* People */
.people { display: grid; gap: 2rem; margin-top: 2.5rem; }
.person { display: grid; gap: 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.person-img { width: 100%; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; border-radius: 10px; }
.person h2 { font-size: 1.5rem; margin: 0 0 .2rem; }
.role { color: var(--brand); font-weight: 600; margin-bottom: .9rem; }
.person p:last-child { margin-bottom: 0; }
@media (min-width: 760px) { .person { grid-template-columns: 240px 1fr; gap: 2rem; padding: 1.75rem; align-items: start; } .person-img { max-width: none; } }

/* Gallery, info cards, map */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery figure:first-child { grid-column: span 2; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1rem; } .gallery figure:first-child { grid-column: span 1; grid-row: span 2; } .gallery figure:first-child img { aspect-ratio: auto; height: 100%; } }
.info-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.75rem; }
.info-card h2 { font-size: 1.4rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { padding-left: 1.75rem; position: relative; margin-bottom: .55rem; }
.checks li::before { content: ""; position: absolute; left: .2rem; top: .5em; width: 7px; height: 12px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); }
.big-phone { font-family: var(--serif); font-size: 1.8rem; font-weight: 700; margin-bottom: .2rem; }
.big-phone a { text-decoration: none; }
.map { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; border: 0; }
.note-row { margin-top: 2.5rem; padding: 1.25rem 1.5rem; background: var(--cream); border-radius: var(--radius); text-align: center; }
.note-row p { margin: 0; }

/* Forms */
.form { margin-top: 1.5rem; }
.form-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.form-grid { display: grid; gap: 1rem 1.25rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field.full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .35rem; margin: 0; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .98rem; }
.req { color: var(--brand); }
.field input, .field textarea { font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #cfc3b6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-height: 48px; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(102,0,0,.15); outline-offset: 0; }
.form-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 0 0 1.25rem; background: #fff; }
.form-section > legend { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; padding: 0 .5rem; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem 1rem; }
.choice { display: inline-flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 40px; padding: .25rem .75rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.form-note { font-size: .95rem; color: var(--muted); margin: 1rem 0; }
[data-hp-form-status] { font-weight: 600; }

/* Blog post */
.post-wrap { padding: 3rem 0 4rem; }
.post-head { text-align: left; margin-bottom: 1.5rem; }
.post-head h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
.post-img { width: 100%; border-radius: var(--radius); margin: 0 0 2rem; }
.post-back { margin-top: 2.5rem; }

/* Footer */
.site-footer { background: #241a17; color: #e9dfd8; padding: 3.5rem 0 4.5rem; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer h2 { font-family: var(--sans); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: #d9c2b8; margin-bottom: 1rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer-brand img { width: 200px; height: auto; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 34px; align-items: center; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: 1rem; }
.footer-phone { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; text-decoration: none; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .92rem; color: #cbbdb4; }
.footer-bottom p { margin: 0 0 .5rem; }
