/* Bobcean Funeral Home */
:root {
  --brand: #5c1718;
  --brand-dark: #431011;
  --brand-soft: #f3e9e6;
  --ink: #2a2422;
  --muted: #5f5753;
  --cream: #faf7f3;
  --sand: #f1ebe3;
  --line: #e3d9cf;
  --gold: #a8844f;
  --white: #fff;
  --serif: "Libre Baskerville", Baskerville, "Baskerville Old Face", 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; }
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(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
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(var(--wrap), 100% - 2.5rem); margin-inline: auto; }
.narrow { width: min(780px, 100% - 2.5rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eyebrow { font-family: var(--sans); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; font-weight: 600; color: var(--brand); margin-bottom: .7rem; display: block; }
.lead { font-size: 1.15rem; color: var(--muted); }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7rem 1.5rem; border-radius: var(--radius); font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; border: 2px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.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; border-color: #fff; color: var(--brand); }
.btn-light:hover { background: var(--cream); border-color: var(--cream); color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }
.center .btn-row, .btn-row.center { justify-content: center; }

/* Top call bar */
.callbar { background: var(--brand); color: #fff; font-size: .9rem; }
.callbar .wrap { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.4rem; padding: .35rem 0; }
.callbar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; min-height: 32px; }
.callbar a:hover { text-decoration: underline; }
.callbar strong { font-weight: 600; letter-spacing: .02em; }
.callbar svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.callbar .fb { display: none; }
@media (min-width: 900px) { .callbar .wrap { justify-content: flex-end; } .callbar .fb { display: inline-flex; } }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: block; flex: none; }
.brand img { width: 220px; height: auto; }
.nav-toggle { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: .5rem .9rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); font: 600 .9rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); cursor: pointer; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle .bars::before { top: -6px; } .nav-toggle .bars::after { top: 6px; }
.nav-open .nav-toggle .bars { background: transparent; }
.nav-open .nav-toggle .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle .bars::after { transform: translateY(-6px) rotate(-45deg); }
.site-nav { display: none; }
.nav-open .site-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); max-height: calc(100vh - 110px); overflow-y: auto; }
.site-nav > ul { list-style: none; margin: 0; padding: .5rem 1.25rem 1.25rem; }
.site-nav li { margin: 0; }
.site-nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.site-nav > ul > li > a, .site-nav .top { font: 600 .92rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.site-nav > ul > li { border-bottom: 1px solid var(--line); }
.site-nav .sub { list-style: none; margin: 0 0 .5rem; padding: 0 0 0 1rem; }
.site-nav .sub a { font-size: 1rem; min-height: 40px; }
.site-nav a[aria-current="page"] { color: var(--brand); text-decoration: underline; }
.site-nav .nav-guide { border-bottom: 0; padding-top: 1rem; }
.site-nav .nav-guide a { justify-content: center; color: #fff; background: var(--brand); border-radius: var(--radius); }
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .header-inner { min-height: 92px; }
  .brand img { width: 250px; }
  .site-nav, .nav-open .site-nav { display: block; position: static; box-shadow: none; border: 0; max-height: none; overflow: visible; }
  .site-nav > ul { display: flex; align-items: center; gap: .1rem; padding: 0; }
  .site-nav > ul > li { border: 0; position: relative; }
  .site-nav > ul > li > a, .site-nav .top { padding: .5rem .7rem; font-size: .82rem; color: var(--brand); }
  .site-nav .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 14px 28px rgba(0,0,0,.1); padding: .5rem 0; margin: 0; }
  .site-nav .sub a { padding: .35rem 1.1rem; font-size: .95rem; }
  .site-nav .sub a:hover { background: var(--cream); color: var(--brand); }
  .site-nav li:hover > .sub, .site-nav li:focus-within > .sub { display: block; }
  .site-nav .nav-guide { padding: 0 0 0 .5rem; }
  .site-nav .nav-guide a { padding: .55rem 1rem; font-size: .8rem; }
  .site-nav .nav-guide a:hover { background: var(--brand-dark); }
}

/* Hero slider */
.hero { position: relative; min-height: min(78vh, 680px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #3d4a3c; }
.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.is-active { opacity: 1; }
.hero-slides picture { display: block; height: 100%; }
.hero-slides img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(20,10,8,.62) 100%); }
.hero-content { position: relative; z-index: 2; padding: 6rem 0 4.5rem; }
.hero h1 { color: #fff; text-transform: uppercase; letter-spacing: .04em; margin-bottom: .3em; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p { font-family: var(--serif); font-size: clamp(1.15rem, 2.6vw, 1.6rem); max-width: 34ch; margin-bottom: 1.6rem; text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero-pause { position: absolute; z-index: 3; right: 1rem; bottom: 1rem; 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; display: grid; place-items: center; }
.hero-pause svg { width: 16px; height: 16px; fill: currentColor; }
.hero-pause .play { display: none; }
.hero-pause[aria-pressed="true"] .play { display: block; }
.hero-pause[aria-pressed="true"] .pause { display: none; }

/* Page banner */
.banner { position: relative; color: #fff; background: var(--brand-dark); overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: rgba(40,14,12,.55); }
.banner .wrap { position: relative; z-index: 2; padding: 4.5rem 0 3.8rem; }
.banner h1 { color: #fff; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.banner p { margin: .6rem 0 0; font-family: var(--serif); font-size: 1.15rem; max-width: 46ch; }
.crumbs { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .6rem; }
.crumbs a { color: #fff; }

/* Sections */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-sm { padding: 2.5rem 0; }
.bg-cream { background: var(--cream); }
.bg-sand { background: var(--sand); }
.bg-brand { background: var(--brand); color: #fff; }
.bg-brand h2, .bg-brand h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 2.5rem; text-align: center; }
.section-head p { color: var(--muted); }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; color: var(--brand); }
.prose ul li::marker { color: var(--brand); }

/* Veteran band */
.vet-band { position: relative; color: #fff; text-align: center; background: #2b2730; overflow: hidden; }
.vet-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vet-band::after { content: ""; position: absolute; inset: 0; background: rgba(25,18,22,.58); }
.vet-band .wrap { position: relative; z-index: 2; padding: 3.8rem 0; }
.vet-band h2 { color: #fff; text-transform: uppercase; letter-spacing: .06em; }

/* Cards */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) and (max-width: 999px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 600px) and (max-width: 999px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.photo-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: var(--brand-dark); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(30,10,8,.75) 100%); }
.photo-card span { position: absolute; z-index: 2; left: 1.3rem; right: 1.3rem; bottom: 1.2rem; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; }
.photo-card span small { display: block; font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-top: .4rem; opacity: .95; }
.photo-card:hover img { transform: scale(1.04); }
.photo-card:hover { color: #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; }
.card h3 { color: var(--brand); }
.card > :last-child { margin-bottom: 0; }
.img-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.img-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.img-card .body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.img-card .body > :last-child { margin-bottom: 0; }
.img-card .body .btn { margin-top: auto; align-self: flex-start; }
.img-card h3 { color: var(--brand); }

/* Split */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } .split.top { align-items: start; } }
.split img { border-radius: var(--radius); width: 100%; }
.split .tall { aspect-ratio: 4 / 5; object-fit: cover; }

/* Family guide CTA */
.guide-cta { background: var(--brand); color: #fff; border-radius: 10px; padding: clamp(2rem, 5vw, 3.5rem); display: grid; gap: 1.5rem; align-items: center; }
.guide-cta h2 { color: #fff; margin-bottom: .4rem; }
.guide-cta p { margin: 0; opacity: .95; max-width: 60ch; }
@media (min-width: 860px) { .guide-cta { grid-template-columns: 1fr auto; } }

/* Testimonials */
.quote { margin: 0; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 1.6rem 1.7rem; }
.quote p { font-family: var(--serif); font-size: 1.05rem; line-height: 1.75; }
.quote footer { font-size: .95rem; color: var(--muted); }
.quote footer strong { color: var(--ink); display: block; }
.quote-feature { max-width: 820px; margin: 0 auto; text-align: center; }
.quote-feature blockquote { margin: 0 0 1.5rem; font-family: var(--serif); font-size: clamp(1.15rem, 2.4vw, 1.45rem); line-height: 1.65; }
.quote-feature cite { font-style: normal; color: var(--muted); display: block; margin-bottom: 1.5rem; }
.quote-feature .mark { font-family: var(--serif); font-size: 4rem; line-height: 1; color: var(--brand); display: block; height: 2.6rem; }

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

/* Locations */
.location h3 { margin-bottom: .3rem; }
.location address { font-style: normal; margin-bottom: .8rem; }
.location .lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.location .lines li { margin: 0; }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); background: var(--sand); }

/* Staff */
.staff-list { display: grid; gap: 1.5rem; }
.staff { display: grid; gap: 1.3rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; scroll-margin-top: 120px; }
@media (min-width: 700px) { .staff { grid-template-columns: 160px 1fr; gap: 2rem; } }
.staff .photo { width: 140px; height: 168px; border-radius: var(--radius); object-fit: cover; background: var(--sand); }
.staff .mono { width: 140px; height: 168px; border-radius: var(--radius); background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 2.6rem; letter-spacing: .04em; }
.staff h2 { font-size: 1.45rem; margin-bottom: .1rem; }
.staff .role { color: var(--brand); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; margin-bottom: 1rem; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: " +"; margin-left: .3rem; }
details.more[open] summary::after { content: " –"; }
details.more[open] summary { margin-bottom: .6rem; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 1.1rem 2.2rem 1.1rem 0; font-family: var(--serif); font-size: 1.15rem; position: relative; list-style: none; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .3rem; top: .9rem; font-size: 1.5rem; color: var(--brand); font-family: var(--sans); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.2rem; color: var(--ink); }

/* Checklist */
.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border: 2px solid var(--brand); border-radius: 3px; }

/* Icon list */
.icon-item { display: grid; grid-template-columns: 56px 1fr; gap: 1.1rem; align-items: start; }
.icon-item img { width: 56px; height: 56px; }
.icon-item h3 { margin-bottom: .3rem; }

/* Gallery */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.gallery .wide { grid-column: span 2; }
.gallery .wide img { aspect-ratio: 2 / 1; }

/* Forms */
.form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.form .two { display: grid; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.field input, .field textarea, .field select { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #c9bcb0; border-radius: var(--radius); background: #fff; color: var(--ink); min-height: 48px; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid rgba(92,23,24,.25); }
.req { color: var(--brand); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: clamp(1.4rem, 4vw, 2.2rem); }
.form-note { font-size: .92rem; color: var(--muted); margin: 0; }

/* Helpful links strip */
.partner { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.partner img { width: 100%; }

/* Footer */
.site-footer { background: #2b1414; color: #eadcd8; font-size: .98rem; padding: 3.5rem 0 2.5rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.15rem; margin-bottom: .8rem; }
.foot-grid { display: grid; gap: 2.2rem; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
@media (min-width: 1040px) { .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; } }
.foot-logo { background: #fff; display: inline-block; padding: .7rem .9rem; border-radius: var(--radius); margin-bottom: 1.1rem; }
.foot-logo img { width: 210px; }
.site-footer address { font-style: normal; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; }
.foot-loc { margin-bottom: 1.2rem; }
.foot-loc strong { color: #fff; display: block; font-family: var(--serif); font-weight: 400; font-size: 1.05rem; }
.foot-loc a { display: inline-flex; align-items: center; min-height: 32px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2.5rem; padding-top: 1.5rem; display: grid; gap: .5rem; font-size: .9rem; color: #d5c3be; }
.foot-bottom p { margin: 0; }
.affil a { display: inline-flex; align-items: center; min-height: 32px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
