/* Moore Family Funeral Homes — site styles */
:root {
  --maroon: #58000c;
  --maroon-dark: #3d0008;
  --maroon-soft: #7a1a26;
  --gold: #c8a05b;
  --gold-dark: #8a6a2c;
  --ink: #2b2324;
  --muted: #5e5456;
  --cream: #faf6f0;
  --sand: #f2ebe0;
  --line: #e4d9c8;
  --white: #fff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1140px;
  --radius: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--maroon); text-underline-offset: 3px; }
a:hover { color: var(--maroon-soft); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.25; color: var(--maroon-dark); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1.2em; }
li { margin-bottom: .35em; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 0; background: var(--white); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Top bar */
.topbar { background: var(--maroon-dark); color: #f3e7d3; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; flex-wrap: wrap; padding-block: .3rem; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar .tb-links { display: flex; gap: 1.2rem; align-items: center; }
.topbar .tb-note { display: none; }
@media (min-width: 720px) { .topbar .tb-note { display: inline; } }

/* Header */
.site-header { background: var(--maroon); border-bottom: 4px solid var(--gold); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; }
.brand { display: block; flex: 0 1 auto; }
.brand img { width: 230px; height: auto; }
@media (min-width: 1000px) { .brand img { width: 290px; } }
.nav-toggle { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); border-radius: var(--radius); font: inherit; font-size: .95rem; padding: .55rem .9rem; display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; min-height: 44px; }
.nav-toggle .bars { width: 18px; height: 2px; background: #fff; position: relative; display: inline-block; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.main-nav { display: none; }
.main-nav.open { display: block; position: absolute; left: 0; right: 0; top: 100%; background: var(--maroon-dark); border-bottom: 4px solid var(--gold); max-height: calc(100vh - 120px); overflow-y: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav li { margin: 0; }
.main-nav > ul { padding: .5rem 1.25rem 1rem; }
.main-nav a, .main-nav .sub-toggle { display: flex; justify-content: space-between; align-items: center; width: 100%; color: #fff; text-decoration: none; font-family: var(--serif); font-size: 1.1rem; padding: .7rem 0; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.12); cursor: pointer; text-align: left; letter-spacing: .02em; }
.main-nav .sub-toggle::after { content: "+"; font-family: var(--sans); color: var(--gold); font-size: 1.3rem; }
.main-nav .sub-toggle[aria-expanded="true"]::after { content: "–"; }
.main-nav .sub { display: none; padding-left: 1rem; }
.main-nav .sub.open { display: block; }
.main-nav .sub a { font-family: var(--sans); font-size: 1rem; color: #f1e4cf; }
.main-nav a.guide { color: var(--gold); }
.main-nav a[aria-current="page"] { color: var(--gold); }
@media (min-width: 1100px) {
  .site-header .wrap { flex-direction: column; gap: .6rem; padding-block: 1rem .2rem; }
  .nav-toggle { display: none; }
  .main-nav, .main-nav.open { display: block; position: static; background: none; border: 0; max-height: none; overflow: visible; }
  .main-nav > ul { display: flex; gap: .2rem; padding: 0; justify-content: center; flex-wrap: wrap; }
  .main-nav > ul > li { position: relative; }
  .main-nav > ul > li > a, .main-nav .sub-toggle { font-size: .98rem; text-transform: uppercase; letter-spacing: .1em; border: 0; border-bottom: 3px solid transparent; padding: .6rem .8rem; width: auto; }
  .main-nav > ul > li > a:hover, .main-nav .sub-toggle:hover, .main-nav li:focus-within > .sub-toggle { border-bottom-color: var(--gold); }
  .main-nav .sub-toggle::after { content: "▾"; font-size: .8rem; margin-left: .4rem; }
  .main-nav .sub-toggle[aria-expanded="true"]::after { content: "▾"; }
  .main-nav .sub { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); box-shadow: 0 10px 30px rgba(0,0,0,.18); border-top: 3px solid var(--gold); padding: .4rem 0; border-radius: 0 0 var(--radius) var(--radius); }
  .main-nav li:hover > .sub, .main-nav .sub.open { display: block; }
  .main-nav .sub a { color: var(--ink); padding: .5rem 1.1rem; border: 0; font-size: .97rem; }
  .main-nav .sub a:hover { background: var(--sand); color: var(--maroon); }
  .main-nav > ul > li:last-child .sub { left: auto; right: 0; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--radius); font-weight: 600; font-size: 1rem; text-decoration: none; letter-spacing: .03em; border: 2px solid transparent; cursor: pointer; font-family: var(--sans); transition: background .2s, color .2s; }
.btn-primary { background: var(--maroon); color: #fff; }
.btn-primary:hover { background: var(--maroon-dark); color: #fff; }
.btn-gold { background: var(--gold); color: #2a1a00; }
.btn-gold:hover { background: #d8b575; color: #2a1a00; }
.btn-outline { border-color: var(--maroon); color: var(--maroon); background: transparent; }
.btn-outline:hover { background: var(--maroon); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--maroon); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.center .btn-row { justify-content: center; }

/* Hero slider */
.hero { position: relative; background: var(--maroon-dark); color: #fff; overflow: hidden; min-height: 460px; display: grid; }
@media (min-width: 900px) { .hero { min-height: 600px; } }
.hero .slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.hero .slides li { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero .slides li.active { opacity: 1; }
.hero .slides img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40,0,6,.35) 0%, rgba(40,0,6,.55) 60%, rgba(40,0,6,.75) 100%); }
.hero-inner { position: relative; z-index: 2; align-self: center; text-align: center; padding: 3.5rem 0 4.5rem; }
.hero-inner .rule { border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 1.6rem 0 1.4rem; max-width: 900px; margin: 0 auto; }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .04em; font-weight: 500; margin: 0 0 .2em; text-shadow: 0 2px 8px rgba(0,0,0,.5); font-size: clamp(1.7rem, 5vw, 3.1rem); }
.hero .sub { font-family: var(--serif); font-size: clamp(1.3rem, 3.5vw, 2.2rem); margin: 0; text-shadow: 0 2px 6px rgba(0,0,0,.5); }
.hero .homes { margin: 1.2rem 0 0; font-size: .98rem; letter-spacing: .08em; text-transform: uppercase; color: #f3e2c2; }
.hero .btn-row { justify-content: center; }
.slider-ctrl { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; display: flex; gap: .4rem; align-items: center; }
.slider-ctrl button { background: rgba(0,0,0,.45); color: #fff; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; font-size: .9rem; display: grid; place-items: center; }
.slider-ctrl button:hover { background: rgba(0,0,0,.7); }

/* Page banner */
.page-hero { position: relative; background: var(--maroon) center/cover no-repeat; color: #fff; padding: 3.5rem 0 3rem; text-align: center; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: rgba(58,0,8,.72); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; margin: 0; letter-spacing: .03em; }
.page-hero p { margin: .7rem auto 0; max-width: 700px; color: #f5e9d6; font-size: 1.1rem; }
.page-hero .crumb { font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin: 0 0 .5rem; }
.page-hero .crumb a { color: var(--gold); }

/* Sections */
.section { padding: 3.5rem 0; }
@media (min-width: 900px) { .section { padding: 5rem 0; } }
.section.tint { background: var(--cream); }
.section.sand { background: var(--sand); }
.section.dark { background: var(--maroon); color: #f6ecdc; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a:not(.btn) { color: var(--gold); }
.eyebrow { display: block; font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .5rem; }
.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.2rem; color: var(--muted); }
.dark .lead { color: #f0e2cb; }
.divider { width: 70px; height: 3px; background: var(--gold); border: 0; margin: 0 0 1.4rem; }
.center .divider { margin-inline: auto; }

.grid { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } }
.split img { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(60,20,20,.15); width: 100%; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.card .card-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.card .card-body p { color: var(--muted); }
.card .card-body .btn { margin-top: auto; align-self: flex-start; }
.card h3 { margin-bottom: .4em; }

.link-tiles { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 600px) { .link-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 950px) { .link-tiles { grid-template-columns: repeat(3, 1fr); } }
.link-tiles a { display: block; padding: 1.2rem 1.3rem; background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.link-tiles a strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--maroon); margin-bottom: .2rem; }
.link-tiles a span { color: var(--muted); font-size: .97rem; }
.link-tiles a:hover { border-color: var(--maroon); box-shadow: 0 6px 18px rgba(60,20,20,.1); }

.quote { font-family: var(--serif); font-size: clamp(1.35rem, 3vw, 1.8rem); font-style: italic; color: var(--maroon); margin: 0 0 .4rem; line-height: 1.4; }
.quote-cite { color: var(--muted); margin-bottom: 1.4rem; display: block; }
blockquote { margin: 0 0 1.4rem; padding: 1.2rem 1.4rem; background: var(--cream); border-left: 4px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-size: 1.12rem; }
blockquote cite { display: block; font-style: normal; font-family: var(--sans); font-size: .95rem; color: var(--muted); margin-top: .5rem; }

/* Prose pages */
.prose h2 { margin-top: 2rem; font-size: 1.7rem; }
.prose h3 { margin-top: 1.6rem; }
.prose > :first-child { margin-top: 0; }
.prose ul li::marker { color: var(--gold-dark); }
.with-aside { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .with-aside { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; } }
.aside-box { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; position: sticky; top: 1rem; }
.aside-box h2 { font-size: 1.3rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.aside-box li a { display: block; padding: .35rem 0; text-decoration: none; }
.aside-box li a[aria-current="page"] { font-weight: 700; }
.aside-box .btn { width: 100%; margin-top: .5rem; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .7rem; background: var(--white); }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--maroon-dark); list-style: none; display: flex; justify-content: space-between; gap: 1rem; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold-dark); font-size: 1.4rem; line-height: 1; font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 1.2rem 1rem; }

/* Staff */
.staff-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .staff-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .staff-grid { grid-template-columns: repeat(5, 1fr); } }
.staff-grid figure { margin: 0; text-align: center; }
.staff-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: 0 6px 18px rgba(60,20,20,.12); margin-bottom: .8rem; }
.staff-grid figcaption strong { display: block; font-family: var(--serif); font-size: 1.12rem; color: var(--maroon-dark); }
.staff-grid figcaption span { font-size: .95rem; color: var(--muted); }
.staff-lead { display: grid; gap: 1.6rem; grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto 3rem; }
@media (min-width: 700px) { .staff-lead { grid-template-columns: repeat(3, 1fr); } }

/* Gallery */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a, .gallery figure { display: block; margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.surveys img { aspect-ratio: 17/22; object-fit: cover; object-position: top; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(60,20,20,.1); }
.surveys a { position: relative; }
.surveys a:hover img { border-color: var(--gold); }
.packages img { aspect-ratio: 17/22; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.packages figcaption { font-family: var(--serif); font-weight: 600; color: var(--maroon-dark); padding: .5rem 0 0; }

/* Obituaries strip */
.obits { --hp-ob-accent: #58000c; margin-top: 1.5rem; }

/* Event notice */
.event { display: grid; gap: 2rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 850px) { .event { grid-template-columns: 1.1fr 1fr; padding: 2rem; } }
.event img { border-radius: var(--radius); border: 1px solid var(--line); }
.event dl { margin: 0 0 1rem; }
.event dt { font-weight: 700; color: var(--maroon); }
.event dd { margin: 0 0 .6rem; }

/* Guide CTA */
.guide-cta { background: linear-gradient(135deg, var(--maroon) 0%, var(--maroon-dark) 100%); color: #f6ecdc; border-radius: var(--radius); padding: 2.4rem 1.6rem; text-align: center; border: 1px solid var(--gold); }
.guide-cta h2 { color: #fff; }
.guide-cta p { max-width: 640px; margin-inline: auto; }

/* Forms */
.form { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
@media (min-width: 600px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; color: var(--ink); }
.form input, .form textarea, .form select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #c9bba6; border-radius: var(--radius); background: #fffdf9; color: var(--ink); min-height: 48px; }
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: 3px solid rgba(200,160,91,.5); border-color: var(--gold-dark); }
.form .btn { justify-self: start; }
.form .req { color: var(--maroon); }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }

/* Locations */
.locations { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .locations { grid-template-columns: repeat(3, 1fr); } }
.location { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.location img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.location .loc-body { padding: 1.3rem 1.4rem 1.5rem; }
.location h3 { font-size: 1.2rem; }
.location address { font-style: normal; margin-bottom: .8rem; }
.location iframe { width: 100%; height: 220px; border: 0; display: block; }

/* Verse list */
.verse-list { columns: 1; column-gap: 2rem; list-style: none; padding: 0; }
@media (min-width: 640px) { .verse-list { columns: 2; } }
@media (min-width: 950px) { .verse-list { columns: 3; } }
.verse-list li { break-inside: avoid; padding: .35rem 0 .35rem 1.2rem; position: relative; }
.verse-list li::before { content: "✦"; color: var(--gold); position: absolute; left: 0; font-size: .8rem; top: .55rem; }
.names { columns: 2; column-gap: 1.5rem; list-style: none; padding: 0; font-size: .97rem; }
@media (min-width: 700px) { .names { columns: 3; } }
@media (min-width: 1000px) { .names { columns: 4; } }
.names li { break-inside: avoid; margin: 0; padding: .15rem 0; }
.letter-nav { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 2rem; padding: 0; list-style: none; }
.letter-nav a { display: grid; place-items: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.letter-nav a:hover { background: var(--maroon); color: #fff; }
.names-group h2 { font-size: 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: .3rem; margin-top: 2rem; }

.video { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.notice { background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--maroon); padding: 1.1rem 1.3rem; border-radius: var(--radius); margin: 0 0 1.5rem; }
.call-big { font-family: var(--serif); font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 600; text-decoration: none; display: inline-block; margin: .3rem 0 .8rem; }

/* Footer */
.site-footer { background: #24060a; color: #e9dccb; padding: 3.5rem 0 1.5rem; font-size: .98rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--gold); }
.footer-top { display: grid; gap: 2rem; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.1fr 1fr 1fr 1fr; } }
.site-footer h2 { color: var(--gold); font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; font-family: var(--sans); margin-bottom: .8rem; }
.site-footer address { font-style: normal; line-height: 1.6; }
.site-footer address strong { color: #fff; font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.site-footer .f-logo img { width: 230px; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .2rem; }
.site-footer li a { display: inline-block; padding: .2rem 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.4rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .92rem; color: #cdbca5; }
.footer-bottom a { color: #e9dccb; }
.ifpa { color: #e9dccb; font-style: italic; margin-top: 1rem; }

/* Sticky call button (phones) */
.call-fab { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; background: var(--gold); color: #2a1a00; text-decoration: none; font-weight: 700; padding: .8rem 1.1rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,.3); min-height: 48px; display: inline-flex; align-items: center; gap: .4rem; }
@media (min-width: 900px) { .call-fab { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 5rem; } }
