/* Glover Funeral Home — site styles */
:root {
  --gold: #b8a100;
  --gold-soft: #e9e1a8;
  --gold-text: #6f6000;
  --ink: #1d1c19;
  --body: #3b3933;
  --muted: #625f56;
  --cream: #f8f6ef;
  --line: #e4dfcf;
  --white: #fff;
  --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;
  --radius: 6px;
  --wrap: 1180px;
  --shadow: 0 10px 30px rgba(29, 28, 25, .08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--body); background: var(--white); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.2; font-weight: 600; margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); letter-spacing: .02em; }
h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.eyebrow { display: block; font-family: var(--sans); font-size: .82rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .7rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--gold); background: var(--gold); color: var(--ink); font-weight: 700; font-size: .95rem; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; text-decoration: none; display: inline-block; padding: .4rem 0; }
.link-arrow::after { content: " \2192"; }

/* Phone bar */
.phonebar { background: var(--ink); color: #fff; font-size: .9rem; }
.phonebar ul { list-style: none; margin: 0; padding: .45rem 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .2rem 1.6rem; }
.phonebar a { color: #fff; text-decoration: none; display: inline-block; padding: .25rem 0; }
.phonebar a:hover { color: var(--gold-soft); }
.phonebar strong { color: var(--gold-soft); letter-spacing: .1em; font-size: .8rem; margin-right: .35rem; }
.phonebar .always { color: #d8d4c6; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 118px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); box-shadow: 0 6px 0 var(--ink), 0 -6px 0 var(--ink); }
.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav a { display: block; padding: .8rem .2rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.site-nav a[aria-current="page"] { color: var(--gold-text); }
.site-nav .nav-call { margin-top: 1rem; border: 0; }
.site-nav .nav-call a { border: 0; }

@media (min-width: 1000px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; background: none; }
  .site-nav ul { display: flex; align-items: center; gap: .3rem; padding: 0; }
  .site-nav a { border: 0; font-size: .98rem; padding: .6rem .7rem; }
  .site-nav a:hover { color: var(--gold-text); }
  .site-nav .nav-call { margin: 0 0 0 .6rem; }
  .site-nav .nav-call a { font-family: var(--sans); font-size: .85rem; padding: .7rem 1.1rem; color: var(--ink); }
  .site-nav .nav-call a:hover { color: #fff; }
}

/* Planning strip */
.plan-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.plan-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.5rem; padding: .7rem 0; text-align: center; }
.plan-strip p { margin: 0; font-weight: 600; color: var(--ink); }
.plan-strip .btn { min-height: 40px; padding: .45rem 1.1rem; font-size: .82rem; }

/* Hero */
.hero { position: relative; color: #fff; background: #2a2823; overflow: hidden; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; transition: opacity .8s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-controls { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; display: flex; gap: .5rem; }
.hero-controls[hidden] { display: none; }
.hero-sound { height: 44px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; font: inherit; font-size: .95rem; }
.hero-sound:hover { background: rgba(0, 0, 0, .6); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 18, 14, .35) 0%, rgba(20, 18, 14, .55) 55%, rgba(20, 18, 14, .85) 100%); }
.hero-in { position: relative; z-index: 2; min-height: min(78vh, 680px); display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem 0 2.5rem; }
.hero .eyebrow { color: var(--gold-soft); font-family: var(--serif); font-size: 1.15rem; letter-spacing: .04em; text-transform: none; font-weight: 600; }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .12em; max-width: 14ch; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.hero-points li { border-left: 3px solid var(--gold); padding: .1rem 0 .1rem .9rem; font-family: var(--serif); font-size: 1.08rem; line-height: 1.35; }
@media (max-width: 799px) {
  .hero h1 { letter-spacing: .05em; }
  .hero-in { padding-bottom: 4.5rem; }
}
.hero-pause { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); background: rgba(0, 0, 0, .35); color: #fff; cursor: pointer; font-size: .9rem; display: grid; place-items: center; }
.hero-pause:hover { background: rgba(0, 0, 0, .6); }
@media (min-width: 800px) {
  .hero-in { justify-content: center; padding: 6rem 0; }
  .hero-points { position: absolute; right: 0; bottom: 4rem; text-align: right; }
  .hero-points li { border-left: 0; border-right: 3px solid var(--gold); padding: .1rem .9rem .1rem 0; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .wrap { position: relative; padding: 4.5rem 0 3.5rem; }
.page-hero h1 { color: #fff; }
.page-hero .eyebrow { color: var(--gold-soft); }
.page-hero p { max-width: 42rem; font-size: 1.15rem; color: #efece3; margin: 0; }

/* Sections */
.section { padding: 4.5rem 0; }
.section-cream { background: var(--cream); }
.section-dark { background: var(--ink); color: #e9e6dc; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .eyebrow { color: var(--gold-soft); }
.section-head { margin-bottom: 2.4rem; }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { flex: 1; }
.card h3 { margin-bottom: .4rem; }
.card .eyebrow { margin-bottom: .3rem; }

/* Locations */
.loc-card img { aspect-ratio: 16 / 10; }
.loc-card .phone { font-size: 1.3rem; font-family: var(--serif); font-weight: 600; text-decoration: none; color: var(--ink); display: inline-block; padding: .2rem 0; }
.loc-card .phone:hover { color: var(--gold-text); }

/* Split rows */
.split { display: grid; gap: 2rem; align-items: center; }
.split + .split { margin-top: 3.5rem; }
.split img.square { aspect-ratio: 1; max-width: 420px; justify-self: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow); }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.reverse > :first-child { order: 2; }
}

/* Testimonials */
.quote { margin: 0; background: #fff; border-radius: var(--radius); border-top: 4px solid var(--gold); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--ink); flex: 1; }
.quote blockquote::before { content: "\201C"; display: block; font-size: 3rem; line-height: .8; color: var(--gold); }
.quote figcaption { font-weight: 700; color: var(--muted); letter-spacing: .05em; }

/* Video */
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* Obituaries widget wrapper */
.obits { min-height: 120px; }

/* Lists */
.checklist { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 1.8rem; }
.checklist li::before { content: ""; position: absolute; left: .2rem; top: .55em; width: .7rem; height: .4rem; border-left: 2px solid var(--gold-text); border-bottom: 2px solid var(--gold-text); transform: rotate(-45deg); }
@media (min-width: 760px) { .checklist.cols { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2rem 1.1rem 0; font-family: var(--serif); font-size: 1.2rem; color: var(--ink); font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.5rem; color: var(--gold-text); }
.faq details[open] summary::after { content: "\2013"; }
.faq details > div { padding: 0 0 1.1rem; }

.subnav { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.subnav a { color: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .45rem 1rem; text-decoration: none; font-size: .9rem; min-height: 40px; display: inline-flex; align-items: center; }
.subnav a:hover { background: #fff; color: var(--ink); }

.note { background: var(--cream); border-left: 4px solid var(--gold); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; }

/* Forms */
.form-card { background: #fff; color: var(--body); border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); }
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label { display: block; font-weight: 600; font-size: .95rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #cfc9b6; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--gold); border-color: var(--gold); }
.form-card .btn { margin-top: .4rem; }
.form-note { font-size: .9rem; color: var(--muted); margin-top: .8rem; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.1rem; }
.contact-list strong { display: block; letter-spacing: .12em; text-transform: uppercase; font-size: .82rem; color: var(--gold-soft); }
.section:not(.section-dark) .contact-list strong { color: var(--gold-text); }
.contact-list a { font-family: var(--serif); font-size: 1.45rem; color: inherit; text-decoration: none; }
.section-dark .contact-list a { color: #fff; }
.contact-list a:hover { text-decoration: underline; }

/* CTA band */
.cta-band { background: var(--gold); color: var(--ink); padding: 3rem 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 1.2rem 2rem; align-items: center; justify-content: space-between; }
.cta-band h2 { margin: 0 0 .3rem; font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--ink); border-color: var(--ink); color: #fff; }
.cta-band .btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.cta-band .btn-outline { background: transparent; color: var(--ink); }

/* Footer */
.site-footer { background: #151410; color: #cfcabb; padding: 3.5rem 0 1.5rem; font-size: .97rem; }
.site-footer a { color: #ece8da; text-decoration: none; display: inline-block; padding: .2rem 0; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; } }
.footer-logo { background: #fff; display: inline-block; padding: .6rem .8rem; border-radius: var(--radius); margin-bottom: 1rem; }
.footer-logo img { width: 120px; }
.site-footer h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .25rem; }
.footer-bottom { border-top: 1px solid #2f2d27; margin-top: 2.5rem; padding-top: 1.3rem; padding-bottom: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .9rem; color: #a9a497; }

/* Prose pages */
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2rem; font-size: 1.6rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}
