/* Sheahans Funeral Home (part of Staffords Funeral Homes) - one stylesheet for every page.
   Charcoal and silver, matching the Stafford crest. */

@font-face {
  font-family: "Marcellus"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/marcellus-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #1f2124;
  --charcoal: #2e3135;
  --text: #33363b;
  --muted: #676c73;
  --silver: #c3c7cd;
  --mist: #f3f4f6;
  --white: #ffffff;
  --accent: #5b6b7b;
  --line: #e1e3e7;
  --wordmark: "Marcellus", "Trajan Pro", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--white); color: var(--text); font: 17px/1.7 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(32px, 5vw, 50px); }
h2 { font-size: clamp(26px, 3.4vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Top bar */
.topbar { background: var(--ink); color: var(--silver); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 18px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--white); font-weight: 600; text-decoration: none; }
.topbar .short { display: none; }

/* Header: Sheahans wordmark, Staffords crest, menu */
header.site { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; gap: 20px; min-height: 82px; }
.wordmark { display: inline-flex; flex-direction: column; align-items: stretch; text-align: center; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark .name { font-family: var(--wordmark); font-weight: 400; font-size: 30px; letter-spacing: 0.14em; padding-left: 0.14em; }
.wordmark .sub { font-family: var(--wordmark); font-size: 11.5px; letter-spacing: 0.42em; padding-left: 0.42em; color: #55595f; margin-top: 9px; padding-top: 8px; border-top: 1px solid var(--silver); }
.operated { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--muted); font-size: 13px; line-height: 1.25; padding-left: 20px; border-left: 1px solid var(--silver); }
.operated img { width: 30px; height: auto; }
.operated strong { display: block; color: var(--ink); font-family: var(--wordmark); font-weight: 400; font-size: 14px; letter-spacing: 0.06em; }
nav.main { display: flex; gap: 2px; }
nav.main a { padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 16px; }
nav.main a:hover { background: var(--mist); }
nav.main a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--charcoal); border-radius: 0; }
.menu-toggle { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; background: var(--charcoal); color: var(--white); font-weight: 600; text-decoration: none; transition: background 0.15s ease; }
.btn:hover { background: var(--ink); }
.btn.light { background: transparent; color: var(--charcoal); box-shadow: inset 0 0 0 2px var(--charcoal); }
.btn.light:hover { background: var(--charcoal); color: var(--white); }
.btn.white { background: var(--white); color: var(--ink); }
.btn.white:hover { background: var(--mist); }

/* Sections */
.hero { position: relative; background: var(--ink); color: var(--white); }
.hero img { width: 100%; height: clamp(380px, 60vh, 540px); object-fit: cover; opacity: 0.35; filter: grayscale(0.6); }
.hero .text { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; }
.hero h1 { color: var(--white); font-family: var(--wordmark); font-weight: 400; letter-spacing: 0.08em; }
.hero p { font-size: 19px; color: #e4e6ea; max-width: 34em; margin: 0 auto 24px; }
.kicker { text-transform: uppercase; letter-spacing: 0.18em; font-size: 13px; font-weight: 600; color: var(--silver); margin-bottom: 12px; }
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: 56px 0 44px; text-align: center; }
.page-head h1 { font-family: var(--wordmark); font-weight: 400; letter-spacing: 0.06em; }
.page-head p { color: var(--muted); font-size: 19px; max-width: 36em; margin: 0 auto; }
section { padding: 64px 0; }
section.alt { background: var(--mist); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: 14px; filter: grayscale(0.35); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; margin-top: 28px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px 36px; margin-top: 28px; }
.services div { border-top: 1px solid var(--line); padding-top: 18px; }
.services h3 { margin-bottom: 6px; }

/* Staffords section */
.staffords { display: flex; align-items: center; gap: 32px; background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; }
.staffords img { width: 92px; flex: none; }
.staffords h2 { font-size: 24px; margin-bottom: 6px; }
.staffords p { margin: 0; color: var(--muted); }
.staffords strong { color: var(--ink); }

/* FAQs */
details { border-bottom: 1px solid var(--line); padding: 4px 0; }
details summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; font-size: 18px; color: var(--ink); position: relative; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 26px; font-weight: 400; color: var(--accent); }
details[open] summary::after { content: "–"; }
details p { padding-bottom: 8px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.contact-grid .card { text-align: center; }
.big { display: inline-block; min-height: 44px; padding: 4px 0; font-size: 26px; font-weight: 600; color: var(--ink); text-decoration: none; }
.phones { list-style: none; padding: 0; margin: 0; }
.phones li { margin: 4px 0; }
.phones a { color: var(--ink); font-weight: 600; text-decoration: none; }
.map { width: 100%; height: 380px; border: 0; border-radius: 14px; margin-top: 28px; filter: grayscale(0.3); }
.cta { background: var(--charcoal); color: #dfe2e6; text-align: center; }
.cta h2 { color: var(--white); }

/* Footer */
footer.site { background: var(--ink); color: #b9bec5; font-size: 15px; padding: 46px 0 26px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 26px; }
footer.site h3 { color: var(--white); font-size: 16px; letter-spacing: 0.04em; }
footer.site a { color: var(--white); }
footer.site .crest { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
footer.site .crest img { width: 44px; background: var(--white); border-radius: 8px; padding: 5px; }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 28px; padding-top: 18px; font-size: 13px; }

/* Phones and small tablets */
@media (max-width: 920px) {
  .operated { display: none; }
  .wordmark { margin-right: auto; }
}
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  section { padding: 48px 0; }
  .topbar { font-size: 13px; }
  .topbar .long { display: none; }
  .topbar .short { display: inline; }
  .topbar .wrap { justify-content: center; text-align: center; gap: 0 14px; padding-top: 5px; padding-bottom: 5px; }
  header.site .wrap { position: relative; min-height: 72px; }
  .wordmark .name { font-size: 24px; }
  .wordmark .sub { font-size: 10px; margin-top: 7px; padding-top: 6px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); }
  nav.main { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--white); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  nav.main.open { display: flex; }
  nav.main a { padding: 11px 12px; }
  nav.main a[aria-current="page"] { box-shadow: none; background: var(--mist); border-radius: 8px; }
  .staffords { flex-direction: column; text-align: center; gap: 16px; padding: 24px; }
  .staffords img { width: 72px; }
}
