/* ============================================================
   Bennett Funeral Home — Anchor template
   Mainstay archetype B · SaaS-Default-displacement
   Chrome-grey base + restrained slate-teal accent + Inter only
   ============================================================ */

:root {
  --bg: #fafafa;
  --bg-alt: #f4f4f4;
  --bg-card: #ffffff;
  --text: #1a1a1a;
  --text-secondary: #555555;
  --text-muted: #7a7a7a;
  --rule: #e3e3e3;
  --rule-strong: #d1d1d1;
  --accent: #2c5e6e;
  --accent-hover: #244c5a;
  --accent-soft: #eef3f5;
  --max: 1200px;
  --max-narrow: 880px;
  --pad-section: 96px;
  --pad-section-sm: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--accent-hover); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.01em;
}

h1 { font-size: 2.75rem; font-weight: 600; }
h2 { font-size: 2rem; font-weight: 600; margin-bottom: 16px; }
h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin-bottom: 16px; color: var(--text-secondary); }
p.lead { font-size: 1.125rem; color: var(--text); line-height: 1.6; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-narrow); margin: 0 auto; padding: 0 24px; }

section { padding: var(--pad-section) 0; }
section.tight { padding: var(--pad-section-sm) 0; }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { max-width: 620px; margin: 0 auto; }

hr.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.brand-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-top: 2px;
}
.brand a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.nav a:hover, .nav a.active { color: var(--accent); }

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}
.header-phone svg { width: 18px; height: 18px; stroke: var(--accent); }

.mobile-toggle { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border-radius: 2px;
  transition: all 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #ffffff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--rule-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 88px 0 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero h1 {
  font-size: 2.85rem;
  font-weight: 600;
  line-height: 1.18;
  margin-bottom: 22px;
  color: var(--text);
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 2px;
}

/* ============================================================
   OBITUARIES SECTION
   ============================================================ */
.obit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.obit-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.18s ease, transform 0.18s ease;
}
.obit-card:hover {
  border-color: var(--rule-strong);
}
.obit-photo {
  aspect-ratio: 1/1;
  background: var(--bg-alt);
  overflow: hidden;
}
.obit-photo img { width: 100%; height: 100%; object-fit: cover; }
.obit-info { padding: 20px 22px 24px; }
.obit-info h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text);
}
.obit-dates {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.01em;
}
.obit-preview {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.obit-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
}
.obit-link:after { content: ' \2192'; }

.section-cta { text-align: center; margin-top: 48px; }

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 36px 28px;
  border-radius: 2px;
  transition: border-color 0.18s ease;
}
.service-card:hover { border-color: var(--accent); }
.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-icon svg { width: 100%; height: 100%; stroke: var(--accent); }
.service-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.service-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}
.service-card a {
  font-size: 0.85rem;
  font-weight: 500;
}
.service-card a:after { content: ' \2192'; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--bg-alt); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 72px;
  align-items: center;
}
.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.about-meta {
  display: flex;
  gap: 36px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}
.about-meta .stat-num {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
}
.about-meta .stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   CONTACT / MAP SECTION
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: stretch;
}
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 40px 36px;
}
.contact-info-card h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.contact-info-card p,
.contact-info-card address {
  font-style: normal;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 28px;
}
.contact-info-card .group { margin-bottom: 24px; }
.contact-info-card .group:last-child { margin-bottom: 0; }

.map-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--rule);
  overflow: hidden;
  min-height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #1a1a1a;
  color: #d1d1d1;
  padding: 64px 0 32px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  font-weight: 600;
}
.footer-brand-name { color: #ffffff; font-weight: 600; font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand-tag { color: #7a7a7a; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; margin-bottom: 18px; }
.footer-col p { color: #b0b0b0; font-size: 0.9rem; margin-bottom: 8px; }
.footer-col a { color: #b0b0b0; display: block; padding: 4px 0; font-size: 0.9rem; }
.footer-col a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #7a7a7a;
  font-size: 0.82rem;
}

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  padding: 64px 0 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 {
  font-size: 2.25rem;
  margin-bottom: 12px;
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; }

/* ============================================================
   PROSE (article body)
   ============================================================ */
.prose { max-width: 720px; }
.prose p { font-size: 1.02rem; color: var(--text); margin-bottom: 18px; line-height: 1.7; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.prose ul { margin: 16px 0 24px 24px; }
.prose li { margin-bottom: 8px; color: var(--text); line-height: 1.6; }

/* ============================================================
   OBIT FULL PAGE
   ============================================================ */
.obit-detail-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 56px;
  margin-bottom: 56px;
}
.obit-detail-photo {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 2px;
}
.obit-detail-name {
  font-size: 1.85rem;
  margin-bottom: 8px;
}
.obit-detail-dates {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  letter-spacing: 0.01em;
}
.obit-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.9rem;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 32px;
}
.obit-meta-row .label {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  display: block;
  margin-bottom: 2px;
}

/* ============================================================
   SERVICE DETAIL
   ============================================================ */
.service-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  margin-bottom: 40px;
  border-radius: 2px;
}
.service-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  margin: 24px 0 32px;
  list-style: none;
  padding-left: 0;
}
.service-features li {
  position: relative;
  padding-left: 22px;
  font-size: 0.95rem;
  color: var(--text);
}
.service-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.price-card {
  background: var(--bg-card);
  border: 1px solid var(--rule);
  padding: 36px 32px;
  text-align: left;
}
.price-card.featured { border-color: var(--accent); }
.price-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.price-amount {
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--text);
  margin: 12px 0 4px;
  line-height: 1;
}
.price-suffix {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.price-features {
  list-style: none;
  margin: 20px 0 28px;
  padding: 0;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
}
.price-features li {
  padding: 7px 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.price-note {
  background: var(--accent-soft);
  border: 1px solid #d6e1e4;
  padding: 22px 26px;
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
.contact-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 0.95rem;
  background: var(--bg-card);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
  color: var(--text);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form .field { margin-bottom: 18px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  :root {
    --pad-section: 64px;
    --pad-section-sm: 48px;
  }
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.6rem; }
  .hero h1 { font-size: 2rem; }
  .hero-grid, .about-grid, .contact-grid, .obit-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .obit-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .service-features { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }

  .nav { display: none; }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: transparent;
    border: 1px solid var(--rule-strong);
    cursor: pointer;
  }
  .mobile-toggle svg { width: 22px; height: 22px; stroke: var(--text); }
  .site-header .header-phone { display: none; }

  .nav.open {
    display: flex;
    position: absolute;
    top: 80px;
    left: 0; right: 0;
    flex-direction: column;
    background: #ffffff;
    border-bottom: 1px solid var(--rule);
    padding: 16px 24px 24px;
    gap: 18px;
  }
}

@media (max-width: 540px) {
  .obit-grid, .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 48px; }
  .hero-cta .btn { width: 100%; text-align: center; }
}
