:root {
  --bg: #f7f9f6;
  --surface: #ffffff;
  --surface-soft: #e8eee8;
  --text: #1d211d;
  --muted: #687167;
  --line: #d6ded4;
  --accent: #496b56;
  --accent-dark: #2f4f3c;
  --accent-soft: #dfe7df;
  --shadow: 0 20px 60px rgba(36, 40, 34, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
h1,
h2,
h3 {
  margin: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #ffffff;
  transition:
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.site-header.scrolled,
.site-header.menu-open {
  background: rgba(246, 244, 239, 0.96);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: currentColor;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 600;
}

.nav-phone {
  padding: 10px 14px;
  border: 1px solid currentColor;
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  color: inherit;
}

.nav-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  min-height: 760px;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #ffffff;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("assets/hero-memorial-care.png");
  background-position: center;
  background-size: cover;
  transform: scale(1.01);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(20, 27, 20, 0.74) 0%, rgba(20, 27, 20, 0.38) 45%, rgba(20, 27, 20, 0.08) 100%),
    linear-gradient(0deg, rgba(20, 27, 20, 0.42) 0%, rgba(20, 27, 20, 0) 48%);
}

.hero-content {
  position: relative;
  width: min(760px, calc(100% - 40px));
  margin: 0 0 clamp(48px, 9vw, 96px) clamp(20px, 6vw, 84px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #dce8dc;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 700px;
  font-size: clamp(46px, 7vw, 82px);
}

h2 {
  font-size: clamp(34px, 4.5vw, 56px);
}

h3 {
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  max-width: 590px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 19px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.78);
  color: #ffffff;
}

.button-outline {
  border: 1px solid var(--line);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.section-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: -54px;
  position: relative;
  z-index: 2;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.intro div {
  min-height: 150px;
  padding: 26px;
  background: var(--surface);
}

.stat {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(32px, 7vw, 96px);
  padding: 110px 0 92px;
}

.text-stack {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 18px;
}

.services {
  padding: 88px 0 104px;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 690px;
  margin-bottom: 42px;
}

.section-heading > p:last-child {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.badge {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.card-top {
  padding-right: 56px;
}

.card-kicker {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.card-top h3 {
  margin-bottom: 12px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
}

.card-top p:last-child {
  color: var(--muted);
}

.service-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 24px;
  color: #3d453d;
}

.service-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.service-card .button {
  width: 100%;
  margin-top: auto;
}

.process {
  padding: 94px 0;
  border-top: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0;
  padding: 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  list-style: none;
}

.steps li {
  min-height: 230px;
  padding: 26px;
  background: var(--surface);
}

.steps span {
  display: block;
  margin-bottom: 40px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.steps h3 {
  margin-bottom: 12px;
}

.steps p {
  color: var(--muted);
}

.cta {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 96px;
  padding: 42px;
  background: var(--text);
  color: #ffffff;
  border-radius: var(--radius);
}

.cta .eyebrow {
  color: #bfd2c3;
}

.cta p {
  max-width: 700px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.72);
}

.cta-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
}

.cta-panel span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-panel a {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 800;
}

.cta-panel p {
  margin-top: 0;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p:first-child {
  color: var(--text);
  font-weight: 800;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 70px 16px auto;
    display: grid;
    gap: 4px;
    padding: 16px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-phone {
    text-align: center;
  }

  .hero {
    min-height: 700px;
  }

  .intro,
  .pricing-grid,
  .steps,
  .cta,
  .split {
    grid-template-columns: 1fr;
  }

  .split,
  .services,
  .process {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    min-height: 660px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(20, 27, 20, 0.76) 0%, rgba(20, 27, 20, 0.42) 100%),
      linear-gradient(0deg, rgba(20, 27, 20, 0.44) 0%, rgba(20, 27, 20, 0) 48%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 42px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .hero-copy,
  .section-heading > p:last-child,
  .text-stack {
    font-size: 16px;
  }

  .intro {
    width: calc(100% - 24px);
  }

  .service-card,
  .cta {
    padding: 24px;
  }

  .card-top {
    padding-right: 0;
  }

  .badge {
    position: static;
    justify-self: start;
    width: max-content;
  }

  .site-footer {
    display: grid;
  }
}
