/* The Moore Family Funeral Homes — site styles */
:root {
  --maroon: #5c0a14;
  --maroon-dark: #3d060c;
  --maroon-soft: #7a1f2a;
  --gold: #c9a656;
  --gold-dark: #8a6a24;
  --cream: #faf6ef;
  --sand: #f1e9dc;
  --ink: #2a2224;
  --muted: #5d5254;
  --line: #e4d9c8;
  --white: #fff;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --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; } }
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(--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, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.1em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: .35em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.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: 12px; top: -60px; background: var(--white); color: var(--maroon); padding: 10px 16px; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.5em; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 1rem; letter-spacing: .02em; text-decoration: none; border: 2px solid var(--maroon); background: var(--maroon); color: var(--white); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--maroon-dark); border-color: var(--maroon-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--maroon); }
.btn-outline:hover { background: var(--maroon); color: var(--white); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--maroon-dark); }
.btn-gold:hover { background: #dcbd72; border-color: #dcbd72; color: var(--maroon-dark); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.85); color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--maroon-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.center .btn-row, .btn-row.center { justify-content: center; }
.ext::after { content: "\2197"; font-size: .85em; }

/* Top bar */
.topbar { background: var(--maroon-dark); color: #f3e6d0; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; display: inline-block; padding: 6px 0; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar-area { display: none; }
@media (min-width: 720px) { .topbar-area { display: block; } }

/* Header */
.site-header { background: var(--maroon); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.brand { display: block; padding: 8px 0; }
.brand img { width: 230px; }
@media (min-width: 480px) { .brand img { width: 270px; } }
.nav-toggle { display: inline-flex; align-items: center; gap: 8px; background: transparent; border: 2px solid rgba(255,255,255,.6); color: var(--white); border-radius: var(--radius); min-height: 44px; padding: 6px 14px; font: 600 .95rem var(--sans); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--maroon-dark); max-height: calc(100vh - 110px); overflow-y: auto; border-bottom: 3px solid var(--gold); }
.site-nav.open { display: block; }
.site-nav > ul { list-style: none; margin: 0; padding: 8px 20px 20px; }
.site-nav li { margin: 0; position: relative; }
.site-nav a { color: var(--white); text-decoration: none; display: block; padding: 12px 4px; font-size: 1.02rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; align-items: center; }
.site-nav > ul > li > a { flex: 1; font-family: var(--serif); letter-spacing: .04em; }
.sub-toggle { background: transparent; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.sub-toggle[aria-expanded="true"]::before { transform: rotate(-135deg) translateY(-1px); }
.sub { list-style: none; margin: 0 0 10px; padding: 0 0 0 14px; width: 100%; display: none; }
.sub.open { display: block; }
.sub a { padding: 9px 4px; font-size: .97rem; color: #f0e2cb; }
.nav-cta { margin-top: 14px; border: 0 !important; }
.nav-cta a.btn { color: var(--maroon-dark); }

.site-header .wrap { max-width: 1300px; }
@media (min-width: 1200px) {
  .nav-toggle { display: none; }
  .brand img { width: 240px; }
  .site-nav { display: block; position: static; background: transparent; border: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: 2px; padding: 0; }
  .site-nav > ul > li { border: 0; flex-wrap: nowrap; }
  .site-nav > ul > li > a { padding: 26px 9px; font-size: .84rem; text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; }
  .sub-toggle { width: 22px; height: 30px; margin-left: -8px; }
  .sub-toggle::before { width: 7px; height: 7px; }
  .sub { position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--white); padding: 10px 0; box-shadow: 0 12px 30px rgba(40,10,15,.18); border-top: 3px solid var(--gold); border-radius: 0 0 var(--radius) var(--radius); }
  .sub a { color: var(--ink); padding: 9px 20px; font-size: .95rem; }
  .sub a:hover, .sub a[aria-current="page"] { color: var(--maroon); background: var(--cream); }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .sub.open { display: block; }
  .nav-cta { display: none !important; }
}

/* Hero slider */
.hero { position: relative; color: var(--white); background: var(--maroon-dark); min-height: 520px; display: flex; align-items: center; overflow: hidden; }
@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(30,4,8,.45), rgba(30,4,8,.62)); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 70px 20px 90px; width: 100%; }
.hero-frame { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); padding: 26px 10px; }
.hero h1 { color: var(--white); text-transform: uppercase; letter-spacing: .04em; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); font-weight: 400; }
.hero .hero-sub { font-family: var(--serif); font-size: clamp(1.4rem, 3.5vw, 2.3rem); margin: .2em 0 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.hero .btn-row { justify-content: center; }
.hero-pause { position: absolute; z-index: 3; right: 16px; bottom: 16px; background: rgba(0,0,0,.45); color: var(--white); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; min-height: 40px; padding: 6px 16px; font: 600 .85rem var(--sans); cursor: pointer; }
.hero-pause:hover { background: rgba(0,0,0,.7); }

/* Page banner (inner pages) */
.page-hero { position: relative; color: var(--white); background: var(--maroon-dark); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40,5,10,.82), rgba(40,5,10,.5)); }
.page-hero .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 60px; }
.page-hero h1 { color: var(--white); margin: 0; }
.page-hero p { margin: .7em 0 0; max-width: 680px; font-size: 1.12rem; color: #f6ecdc; }
.crumbs { font-size: .9rem; margin-bottom: 10px; color: #ecd9b8; }
.crumbs a { color: #f6ecdc; display: inline-block; padding: 4px 0; }

/* Sections */
.section { padding: 64px 0; }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.section.tint { background: var(--cream); }
.section.sand { background: var(--sand); }
.section.dark { background: var(--maroon); color: #f8eedf; }
.section.dark h2, .section.dark h3 { color: var(--white); }
.section.dark a:not(.btn) { color: var(--gold); }
.eyebrow { display: block; font-family: var(--sans); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); font-weight: 700; margin-bottom: .6em; }
.section.dark .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); }
.rule { width: 70px; height: 2px; background: var(--gold); border: 0; margin: 0 0 1.4em; }
.center .rule { margin-left: auto; margin-right: auto; }
.split { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } .split.wide-left { grid-template-columns: 3fr 2fr; } }
.split img { border-radius: var(--radius); box-shadow: 0 14px 34px rgba(40,10,15,.14); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; color: var(--maroon); }
.prose > *:last-child { margin-bottom: 0; }

/* Cards */
.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; display: flex; flex-direction: column; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); font-size: 1rem; }
.card .card-link { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-block; padding: 6px 0; }
.card .card-link:hover { text-decoration: underline; }
.card.photo { padding: 0; overflow: hidden; }
.card.photo img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.card.photo .card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }

/* Callout */
.callout { background: var(--cream); border-left: 4px solid var(--gold); padding: 22px 24px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 1.6em; }
.callout p:last-child { margin: 0; }
.callout.maroon { background: var(--maroon); color: #f8eedf; border-color: var(--gold); }
.callout.maroon a { color: var(--white); font-weight: 700; }
.callout.maroon h2, .callout.maroon h3 { color: var(--white); }
.big-phone { font-family: var(--serif); font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 600; text-decoration: none; display: inline-block; }

/* Quote */
.quote { font-family: var(--serif); font-size: clamp(1.4rem, 3vw, 1.9rem); font-style: italic; color: var(--maroon-dark); margin: 0 0 .3em; line-height: 1.4; }
.quote-by { color: var(--gold-dark); font-weight: 600; margin-bottom: 1.4em; }
.section.dark .quote { color: var(--white); }
.section.dark .quote-by { color: var(--gold); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-family: var(--serif); font-size: 1.15rem; color: var(--maroon-dark); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; color: var(--gold-dark); font-family: var(--sans); font-weight: 400; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 0 18px; }

/* Lists */
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 28px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.cols-2 { columns: 1; column-gap: 40px; }
@media (min-width: 700px) { .cols-2 { columns: 2; } }
.link-list { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.link-list a { display: block; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; }
.link-list a:hover { border-color: var(--gold); background: var(--cream); }

/* Staff */
.staff-grid { display: grid; gap: 26px; 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(4, 1fr); } }
.staff { text-align: center; margin: 0; }
.staff img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; border-radius: var(--radius); margin-bottom: 12px; background: var(--sand); }
.staff h3 { font-size: 1.1rem; margin: 0 0 .2em; }
.staff p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.staff-featured { display: grid; gap: 40px; }
@media (min-width: 760px) { .staff-featured { grid-template-columns: repeat(2, 1fr); } }
.profile { display: grid; gap: 22px; align-items: start; }
@media (min-width: 560px) { .profile { grid-template-columns: 180px 1fr; } }
.profile img { border-radius: var(--radius); }

/* Galleries */
.gallery { display: grid; gap: 12px; 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 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.survey-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .survey-grid { grid-template-columns: repeat(4, 1fr); } }
.survey-grid a { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: 0 6px 18px rgba(40,10,15,.08); transition: transform .2s; }
.survey-grid a:hover { transform: translateY(-3px); }
.survey-grid img { width: 100%; aspect-ratio: 17 / 22; object-fit: cover; object-position: top; }
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-grid figure { margin: 0; }
.price-grid a { display: block; text-decoration: none; }
.price-grid img { border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 17 / 22; object-fit: cover; object-position: top; width: 100%; }
.price-grid figcaption { font-weight: 600; margin-top: 8px; line-height: 1.4; }
.price-grid figcaption span { display: block; font-weight: 400; font-size: .92rem; color: var(--muted); }

/* Veterans wall */
.vet-letters { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 30px; }
.vet-letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 700; background: var(--white); }
.vet-letters a:hover { background: var(--maroon); color: var(--white); }
.vet-group h2 { font-size: 1.5rem; border-bottom: 2px solid var(--gold); padding-bottom: 6px; margin-top: 1.4em; }
.vet-names { list-style: none; padding: 0; columns: 2; column-gap: 24px; font-size: 1rem; }
@media (min-width: 700px) { .vet-names { columns: 3; } }
@media (min-width: 1000px) { .vet-names { columns: 4; } }
.vet-names li { break-inside: avoid; margin: 0 0 4px; }
.vet-search { max-width: 420px; margin-bottom: 20px; }

/* Video */
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: 0 14px 34px rgba(40,10,15,.16); }
.video-frame video, .video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Forms */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: 0 10px 30px rgba(40,10,15,.06); }
@media (min-width: 700px) { .form-card { padding: 36px 34px; } }
.form-grid { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; border: 1px solid #cdbfab; border-radius: var(--radius); background: #fffdf9; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--maroon); outline: 2px solid rgba(201,166,86,.6); outline-offset: 1px; }
.form-note { font-size: .92rem; color: var(--muted); margin-top: 12px; }

/* Locations */
.loc-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.loc { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 24px; }
.loc h3 { font-size: 1.15rem; margin-bottom: .5em; }
.loc p { margin: 0 0 .6em; }
.loc a { font-weight: 600; display: inline-block; padding: 4px 0; }

/* Obituaries */
.obits-section { --hp-ob-accent: #5c0a14; }

/* Footer */
.site-footer { background: var(--maroon-dark); color: #eadcc6; padding: 60px 0 36px; font-size: .98rem; }
.site-footer a { color: var(--white); text-decoration: none; display: inline-block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-top { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.1fr 2.4fr; gap: 56px; } }
.footer-brand img { width: 250px; margin-bottom: 16px; }
.footer-brand p { margin-bottom: .6em; }
.footer-locs { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.footer-locs h3 { color: var(--gold); font-size: 1.05rem; margin-bottom: .5em; line-height: 1.35; }
.footer-locs p { margin: 0 0 .4em; line-height: 1.55; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; padding: 22px 0 0; margin: 34px 0 0; border-top: 1px solid rgba(255,255,255,.15); }
.footer-links li { margin: 0; }
.footer-bottom { margin-top: 22px; font-size: .9rem; color: #cdb9a0; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-bottom: 20px; }
.footer-bottom p { margin: 0; }

/* Misc */
.notfound { padding: 100px 0; text-align: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.tag-row li { margin: 0; }
.tag-row a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: var(--white); font-size: .95rem; }
.tag-row a:hover { border-color: var(--gold); }
.template-box { background: var(--cream); border: 1px dashed var(--gold); padding: 22px 24px; border-radius: var(--radius); font-size: 1rem; }
.template-box p:last-child { margin-bottom: 0; }
.event-flyer { border: 1px solid var(--line); }
