/* Barnes-Friederich & Pope Funeral Home */
:root {
  --ink: #2b3437;
  --muted: #56636a;
  --blue: #3d5d9f;
  --blue-mid: #4061a8;
  --blue-dark: #2d4a7c;
  --blue-deep: #1f3459;
  --gold: #b08d45;
  --sand: #f5f3ef;
  --mist: #eef2f8;
  --stone: #e2ddd4;
  --white: #fff;
  --radius: 10px;
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, 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); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.2; color: var(--blue-dark); margin: 0 0 .6em; letter-spacing: .01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue-dark); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.center { text-align: center; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.rounded { border-radius: var(--radius); }
.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; }

/* Top bar */
.topbar { background: var(--blue-dark); color: #e6ecf6; font-size: .9rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: .2rem 1.5rem; justify-content: center; padding-top: .45rem; padding-bottom: .45rem; text-align: center; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-locs { display: none; }
@media (min-width: 900px) { .topbar .wrap { justify-content: space-between; } .topbar-locs { display: inline; } .topbar-locs a { font-weight: 400; } }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--stone); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: .8rem; min-height: 78px; }
.brand { margin-right: auto; display: block; }
.brand img { width: 190px; height: auto; }
.header-call { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; text-decoration: none; color: var(--blue-dark); font-size: .95rem; }
.header-call span { display: none; }
@media (min-width: 480px) { .header-call span { display: inline; } }
.nav-toggle { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1px solid var(--stone); border-radius: 999px; padding: .5rem .9rem; font: inherit; font-size: .95rem; color: var(--blue-dark); cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; 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(--white); border-bottom: 1px solid var(--stone); box-shadow: 0 14px 28px rgba(31, 52, 89, .1); max-height: calc(100vh - 110px); overflow-y: auto; }
.site-nav.open { display: block; }
.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu { padding: .5rem 1.25rem 1.2rem; }
.menu > li { position: relative; border-bottom: 1px solid var(--sand); }
.menu a { display: block; padding: .75rem 0; text-decoration: none; color: var(--ink); }
.menu a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > a { flex: 1; }
.sub-toggle { background: none; border: 0; padding: .7rem; color: var(--blue-dark); cursor: pointer; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sub { display: none; flex-basis: 100%; padding: 0 0 .5rem 1rem; }
.has-sub.open > .sub { display: block; }
.sub a { padding: .45rem 0; font-size: .95rem; color: var(--muted); }
.nav-guide { color: var(--blue) !important; font-weight: 700; }

@media (min-width: 1200px) {
  .nav-toggle, .header-call { display: none; }
  .site-nav { display: block; position: static; box-shadow: none; border: 0; overflow: visible; max-height: none; }
  .menu { display: flex; align-items: center; gap: 1.1rem; padding: 0; }
  .menu > li { border: 0; }
  .menu > li > a { padding: .5rem 0; font-size: .96rem; letter-spacing: .02em; }
  .menu > li > a:hover, .menu > li.active > a { color: var(--blue); }
  .has-sub { flex-wrap: nowrap; }
  .sub-toggle { padding: .3rem .2rem; }
  .sub { position: absolute; top: 100%; left: -1rem; min-width: 250px; background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); box-shadow: 0 16px 32px rgba(31, 52, 89, .12); padding: .5rem 0; z-index: 60; }
  .has-sub:hover > .sub, .has-sub:focus-within > .sub, .has-sub.open > .sub { display: block; }
  .sub a { padding: .45rem 1.1rem; color: var(--ink); }
  .sub a:hover { background: var(--mist); color: var(--blue-dark); }
  .nav-guide { background: var(--blue); color: #fff !important; padding: .55rem 1.1rem !important; border-radius: 999px; }
  .nav-guide:hover { background: var(--blue-dark); }
  .brand img { width: 210px; }
}

/* Buttons */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 4px; background: var(--blue); color: #fff; text-decoration: none; border: 2px solid var(--blue); font: inherit; font-weight: 600; letter-spacing: .04em; cursor: pointer; line-height: 1.3; text-align: center; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-light { background: #fff; color: var(--blue-dark); border-color: #fff; }
.btn-light:hover { background: var(--sand); border-color: var(--sand); color: var(--blue-deep); }
.btn-outline { background: transparent; color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-block { display: block; width: 100%; margin-top: .6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.center-actions { justify-content: center; }

/* Video hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, var(--blue-deep), var(--blue-dark) 55%, var(--blue)); }
.hero-video { min-height: clamp(440px, 72vh, 680px); display: grid; place-items: center; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero.no-video { background: var(--blue-dark) url(/assets/img/facilities/del-exterior.webp) center / cover no-repeat; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 34, 62, .45), rgba(20, 34, 62, .35) 50%, rgba(20, 34, 62, .6)); }
.hero-inner { position: relative; text-align: center; padding-top: 4rem; padding-bottom: 6rem; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 7vw, 4.4rem); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); margin-bottom: 1.4rem; }
.hero h1 span { display: block; font-family: var(--sans); font-size: clamp(.95rem, 2.2vw, 1.3rem); letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-top: .9rem; }
.btn-hero { text-transform: uppercase; background: var(--blue-mid); border-color: var(--blue-mid); }
.btn-hero:hover { background: #fff; color: var(--blue-dark); border-color: #fff; }
.hero-pause { position: absolute; right: 1rem; bottom: 5.5rem; display: inline-flex; align-items: center; gap: .5rem; background: rgba(20, 34, 62, .6); color: #fff; border: 1px solid rgba(255, 255, 255, .6); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .85rem; cursor: pointer; }
.hero-pause:hover { background: rgba(20, 34, 62, .85); }
.pause-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero-pause[aria-pressed="true"] .pause-icon { border: 0; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff; }

/* Hero CTA cards */
.hero-ctas { position: relative; z-index: 2; margin-top: -4.5rem; }
.cta-card { display: flex; gap: 1.2rem; align-items: center; background: #fff; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(31, 52, 89, .16); padding: 1.4rem 1.5rem; text-decoration: none; color: var(--ink); border-top: 4px solid var(--blue); }
.cta-card:hover { box-shadow: 0 18px 40px rgba(31, 52, 89, .24); color: var(--ink); }
.cta-icon { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--mist); color: var(--blue); display: grid; place-items: center; }
.cta-title { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--blue-dark); line-height: 1.2; margin-bottom: .2rem; }
.cta-text { display: block; color: var(--muted); }
.cta-more { display: block; margin-top: .35rem; font-weight: 600; color: var(--blue); font-size: .95rem; }
.cta-more::after { content: " \2192"; }

/* Inner page hero */
.page-hero { background: var(--mist); padding: 3.5rem 0 3rem; border-bottom: 1px solid var(--stone); }
.page-hero p { max-width: 46rem; color: var(--muted); font-size: 1.12rem; margin: 0; }
.page-hero.has-img { background: linear-gradient(rgba(20, 34, 62, .62), rgba(20, 34, 62, .62)), var(--bg) center / cover no-repeat; color: #fff; padding: 4.5rem 0 4rem; border: 0; text-align: center; }
.page-hero.has-img h1 { color: #fff; }
.page-hero.has-img p { color: #eef2f8; margin: 0 auto; }
.page-hero.has-img .eyebrow { color: #e9d7ae; }
.eyebrow { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--gold); margin-bottom: .7rem; }

/* Sections */
.section { padding: 4.5rem 0; }
.hero-ctas + .section { padding-top: 3.5rem; }
.section-alt { background: var(--sand); }
.section-blue { background: var(--blue-dark); color: #e6ecf6; }
.section-blue h2, .section-blue h3, .section-blue h4 { color: #fff; }
.section-blue .eyebrow { color: #e9d7ae; }
.section-head { max-width: 46rem; margin: 0 auto 2.5rem; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 700px) { .grid-2, .grid-3, .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); } }
.card { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.6rem; }
.card p:last-child { margin-bottom: 0; }
.more { font-weight: 600; color: var(--blue); }
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* Service tiles */
.tile { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); border: 1px solid var(--stone); }
.tile img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.tile-body { display: flex; flex-direction: column; gap: .4rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.tile-title { font-family: var(--serif); font-size: 1.3rem; color: var(--blue-dark); }
.tile .more { margin-top: auto; padding-top: .4rem; font-size: .95rem; }
.tile:hover { box-shadow: 0 12px 28px rgba(31, 52, 89, .14); color: var(--ink); }
.tile:hover .more { text-decoration: underline; }

/* Planning */
.chip-row { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.chip { display: inline-block; padding: .55rem 1.1rem; border: 1px solid rgba(255, 255, 255, .55); border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: .92rem; letter-spacing: .03em; }
.chip:hover { background: #fff; color: var(--blue-dark); }
.benefits-title { margin-top: 3.5rem; }
.benefits > div { border-top: 2px solid var(--gold); padding-top: 1rem; }

/* Family guide CTA */
.guide-cta { background: var(--blue); color: #eef2f8; border-radius: 14px; padding: 2.4rem 2rem; display: grid; gap: 1.5rem; align-items: center; }
.guide-cta h2 { color: #fff; margin-bottom: .4em; }
.guide-cta p { margin: 0; max-width: 40rem; }
@media (min-width: 860px) { .guide-cta { grid-template-columns: 1fr auto; padding: 3rem 3.2rem; } }
.guide-inline { margin-bottom: 2.5rem; padding: 1.8rem; }
.guide-inline h2 { font-size: 1.4rem; }
@media (min-width: 860px) { .guide-inline { grid-template-columns: 1fr; padding: 2rem; } }

/* Testimonials */
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 1.8rem; border: 1px solid var(--stone); display: flex; flex-direction: column; }
.quote blockquote { margin: 0 0 1rem; position: relative; padding-top: 1.6rem; }
.quote blockquote::before { content: "\201C"; position: absolute; top: -.6rem; left: 0; font-family: var(--serif); font-size: 3.4rem; color: var(--gold); line-height: 1; }
.quote figcaption { margin-top: auto; }
.quote-name { display: block; font-weight: 700; color: var(--blue-dark); }
.quote-date { display: block; font-size: .88rem; color: var(--muted); }
.quote-grid { columns: 1; column-gap: 1.5rem; margin-top: 2rem; }
.quote-grid .quote { break-inside: avoid; margin-bottom: 1.5rem; }
@media (min-width: 760px) { .quote-grid { columns: 2; } }
@media (min-width: 1100px) { .quote-grid { columns: 3; } }
.center-prose { margin: 0 auto; text-align: center; }

/* Locations */
.loc-card { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; }
.loc-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.loc-body { padding: 1.4rem 1.5rem 1.6rem; }
.loc-card h2, .loc-card h3 { font-size: 1.25rem; }
.loc-card small, .site-footer h2 small { display: block; font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-top: .3rem; }
.info { list-style: none; padding: 0; margin: 0 0 1rem; }
.info li { padding: .7rem 0; border-bottom: 1px solid var(--stone); }
.info li:first-child { padding-top: 0; }
.info strong { display: block; font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.big-phone { font-family: var(--serif); font-size: 1.45rem; text-decoration: none; color: var(--blue-dark); }

/* Content pages */
.content-grid { display: grid; gap: 3rem; }
@media (min-width: 980px) { .content-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 4rem; } }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.2rem; }
.prose h3 { margin-top: 1.6rem; color: var(--blue); }
.prose > :first-child { margin-top: 0; }
.prose ul { padding-left: 1.3rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: .35rem; }
.prose li::marker { color: var(--gold); }
.prose .label { font-weight: 700; color: var(--blue-dark); margin-bottom: .5em; }
.prose-img { margin: 0 0 2rem; width: 100%; }
.prose .form-card { margin-top: 2.5rem; }
.figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 2rem; }
.figs figure { margin: 0; }
.figs img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); width: 100%; }
.feature { display: grid; gap: 1.2rem; margin: 2rem 0; align-items: start; }
.feature img { border-radius: var(--radius); }
@media (min-width: 640px) { .feature { grid-template-columns: 220px 1fr; gap: 1.8rem; } .feature h2 { margin-top: 0; } }
.side { display: grid; gap: 1.5rem; align-content: start; }
.side h2 { font-size: 1.2rem; }
.side-nav { border: 1px solid var(--stone); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.side-nav ul { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: block; padding: .38rem 0; text-decoration: none; color: var(--ink); font-size: .96rem; }
.side-nav a:hover { color: var(--blue); }
.side-nav a[aria-current="page"] { color: var(--blue); font-weight: 700; }
.side-call { background: var(--mist); border-radius: var(--radius); padding: 1.4rem; }
.side-call p, .side-guide p { font-size: .95rem; }
.side-guide { background: var(--blue-dark); color: #e6ecf6; border-radius: var(--radius); padding: 1.4rem; }
.side-guide h2 { color: #fff; }
.note { background: var(--mist); border-left: 4px solid var(--blue); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; margin: 1.5rem 0; }
.listings { display: grid; gap: 1rem; margin-bottom: 1.6rem; }
@media (min-width: 640px) { .listings { grid-template-columns: 1fr 1fr; } }
.listing { border: 1px solid var(--stone); border-radius: var(--radius); padding: 1rem 1.2rem; font-size: .96rem; }
.listing h4 { font-family: var(--sans); font-weight: 700; font-size: 1rem; margin-bottom: .3rem; }
.listing p { margin: 0; }

/* Staff */
.staff-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.staff-card { background: #fff; border: 1px solid var(--stone); border-radius: var(--radius); overflow: hidden; }
.staff-card img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; background: var(--mist); }
.staff-body { padding: 1.1rem 1.2rem 1.3rem; }
.staff-body h2 { font-size: 1.2rem; margin-bottom: .2rem; }
.role { color: var(--muted); font-size: .92rem; margin: 0; }
.bio { margin-top: .8rem; font-size: .95rem; }
.bio summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.bio[open] summary { margin-bottom: .6rem; }

/* Facilities */
.gallery { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 1.8rem; }
.gallery figure { margin: 0; }
.gallery img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); width: 100%; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--stone); border-radius: 14px; padding: 1.8rem; }
.form-card h2 { margin-top: 0; font-size: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
@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: .92rem; margin-bottom: .35rem; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .9rem; border: 1px solid #b9b3a8; border-radius: 6px; background: #fff; color: var(--ink); }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); outline: 2px solid rgba(61, 93, 159, .3); outline-offset: 0; }
.form-card .btn { margin-top: 1.2rem; }
.form-small { font-size: .88rem; color: var(--muted); margin-top: 1rem; }

/* Footer */
.site-footer { background: var(--blue-deep); color: #c9d4e6; padding: 3.5rem 0 2.5rem; font-size: .95rem; }
.site-footer a { color: #fff; }
.site-footer h2 { color: #fff; font-size: 1.08rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; justify-content: space-between; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-logo { background: #fff; border-radius: 8px; padding: .6rem .9rem; width: 240px; }
.footer-top p { margin: 0; }
.footer-phone { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; }
.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: repeat(4, 1fr); } }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .3rem; }
.footer-links a { text-decoration: none; color: #c9d4e6; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.5rem; padding-bottom: 1rem; font-size: .85rem; color: #a5b3cb; }
