/* ============================================================
   Tikvah Memorial Services — Shared Stylesheet
   ============================================================ */

:root {
  --navy: #12384d;
  --navy-2: #0c2837;
  --blue: #1f6f96;
  --blue-soft: #d9ecf2;
  --gold: #f6c400;
  --cream: #f4ecdf;
  --cream-2: #fbf8f1;
  --white: #ffffff;
  --charcoal: #222222;
  --muted: #68727a;
  --line: rgba(18, 56, 77, .16);
  --shadow: 0 18px 50px rgba(12, 40, 55, .14);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
  --script: "Allura", cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--cream-2);
  font-family: var(--sans);
  line-height: 1.6;
}

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

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

button, input, textarea { font: inherit; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: .75rem 1rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 800;
}
.skip-link:focus { top: 1rem; }

.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;
}

.site-shell { overflow: hidden; }

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

/* ---- Topbar ---- */
.topbar {
  background: var(--navy-2);
  color: rgba(255, 255, 255, .86);
  font-size: .82rem;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar strong { color: var(--white); font-weight: 700; }

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid rgba(18, 56, 77, .12);
  backdrop-filter: blur(18px);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1.5rem;
}
.brand {
  display: flex;
  align-items: center;
  min-width: 210px;
}
.brand__logo {
  display: block;
  width: 178px;
  height: 68px;
  object-fit: contain;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav a {
  position: relative;
  padding: .55rem .15rem;
}
.nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .25rem;
  height: 2px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav a:hover::after,
.nav a:focus-visible::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav__urgent {
  color: var(--navy);
  background: var(--gold);
  padding: .78rem 1rem;
}
.nav__urgent::after { display: none; }

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

/* ---- Full-viewport Hero (homepage) ---- */
.hero {
  position: relative;
  min-height: 720px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .92), rgba(12, 40, 55, .65) 48%, rgba(12, 40, 55, .22)),
    url("eden-images/hero-funeral-directors.png") center / cover;
}
.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  content: "";
  background: linear-gradient(0deg, rgba(244, 236, 223, 1), rgba(244, 236, 223, 0));
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  min-height: 610px;
  padding: 6rem 0 9rem;
}
.hero .container {
  width: calc(100% - 12px);
  max-width: none;
}
.hero__content {
  width: min(520px, 100%);
  margin-left: clamp(1.35rem, 2.4vw, 2.15rem);
}
.hero__content .eyebrow {
  margin-top: .65rem;
  font-size: .64rem;
}

/* ---- Inner page banner ---- */
.page-banner {
  position: relative;
  padding: 5rem 0 4rem;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .94), rgba(12, 40, 55, .6)),
    url("eden-images/hero-funeral-directors.png") center / cover;
}
.page-banner::after {
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  content: "";
  background: linear-gradient(0deg, var(--cream-2), transparent);
  pointer-events: none;
}
.page-banner h1 {
  margin-top: .75rem;
  color: var(--white);
  font-size: clamp(2.6rem, 5vw, 5rem);
  font-family: var(--serif);
  line-height: 1.05;
  max-width: 720px;
}
.page-banner p {
  max-width: 580px;
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 1.02rem;
}

.page-banner--obituaries {
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .95), rgba(12, 40, 55, .62)),
    url("eden-images/grief-support.png") center / cover;
}
.page-banner--services {
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .92), rgba(12, 40, 55, .58)),
    url("eden-images/chapel-interior.png") center / cover;
}
.page-banner--traditions {
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .93), rgba(12, 40, 55, .6)),
    url("eden-images/jewish-tradition.png") center / cover;
}
.page-banner--planning {
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .9), rgba(12, 40, 55, .55)),
    url("eden-images/plan-ahead.png") center / cover;
}
.page-banner--about {
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .92), rgba(12, 40, 55, .6)),
    url("eden-images/hero-funeral-directors.png") 65% center / cover;
}
.page-banner--contact {
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .96), rgba(12, 40, 55, .78)),
    url("eden-images/footer-cta-background.png") center / cover;
}

/* ---- Shared typography ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: var(--gold);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 38px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.08;
}

.hero h1 {
  margin-top: 1rem;
  color: var(--white);
  font-size: clamp(2.35rem, 4.8vw, 4.4rem);
  max-width: 560px;
}
.hero__gold-line { display: block; color: var(--gold); }
.hero__smaller-line {
  display: block;
  margin-top: .25rem;
  font-size: .4em;
  line-height: 1.12;
}

.script-line {
  display: block;
  margin-top: .55rem;
  color: var(--gold);
  font-family: var(--script);
  font-size: clamp(2.2rem, 4.5vw, 4.5rem);
  line-height: 1;
}

.hero p {
  max-width: 540px;
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: clamp(.9rem, 1.2vw, 1rem);
}

.hero__actions,
.section__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 1.45rem;
}

/* ---- Buttons ---- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: .9rem 1.25rem;
  border: 1px solid transparent;
  background: var(--blue);
  color: var(--white);
  font-size: .8rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.button:hover,
.button:focus-visible {
  background: var(--navy);
  transform: translateY(-2px);
}
.button--gold { background: var(--gold); color: var(--navy); }
.button--ghost {
  border-color: rgba(255, 255, 255, .62);
  background: transparent;
  color: var(--white);
}
.button--light {
  border-color: rgba(18, 56, 77, .18);
  background: var(--white);
  color: var(--navy);
}

/* ---- Quick action cards ---- */
.quick-actions {
  position: relative;
  z-index: 3;
  margin-top: -96px;
}
.quick-actions__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quick-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  min-height: 142px;
  padding: 1.35rem;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.quick-card::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  content: "";
  background: var(--gold);
  transform: scaleX(.32);
  transform-origin: left;
  transition: transform .2s ease;
}
.quick-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(12, 40, 55, .18); }
.quick-card:hover::after { transform: scaleX(1); }

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--navy);
  border: 1px solid rgba(18, 56, 77, .18);
  background: var(--cream-2);
}
.icon img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  opacity: .9;
  filter: contrast(1.16) grayscale(1);
  mix-blend-mode: multiply;
}

.quick-card h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.2;
}
.quick-card p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .9rem;
}
.arrow { color: var(--blue); font-size: 1.45rem; line-height: 1; }

/* ---- Section shared ---- */
section { padding: 6rem 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.4rem;
}
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 4.8rem); }
.section-head p,
.intro-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---- Path ---- */
.path { background: var(--navy); color: var(--white); }
.path h2, .path h3 { color: var(--white); }
.path .section-head p { color: rgba(255, 255, 255, .76); }
.path-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, .16);
}
.path-step {
  min-height: 260px;
  padding: 1.5rem;
  border-right: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .045);
}
.path-step:last-child { border-right: 0; }
.path-step span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1.35rem;
  color: var(--navy);
  background: var(--gold);
  font-weight: 900;
}
.path-step p { margin: .75rem 0 0; color: rgba(255, 255, 255, .78); }

/* ---- Help ---- */
.help { background: var(--cream); padding-top: 7rem; }
.help-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.help-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-left: 5px solid var(--blue);
  color: var(--navy);
  font-weight: 850;
  box-shadow: 0 10px 30px rgba(12, 40, 55, .06);
  transition: transform .2s ease, border-color .2s ease;
}
.help-link:hover { border-color: var(--gold); transform: translateX(4px); }

/* ---- Services ---- */
.services { background: var(--cream-2); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.service-card,
.tradition-card,
.obit-card,
.quote-card {
  background: var(--white);
  border: 1px solid rgba(18, 56, 77, .1);
  padding: 1.35rem;
  box-shadow: 0 12px 30px rgba(12, 40, 55, .055);
}
.service-card h3,
.tradition-card h3 {
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 850;
}
.tradition-card .icon:empty::before,
.space-item .icon:empty::before {
  width: 18px;
  height: 18px;
  content: "";
  border: 1.6px solid currentColor;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
}
.service-card p,
.tradition-card p,
.quote-card p,
.obit-card p { color: var(--muted); font-size: .94rem; }

.text-link {
  display: inline-flex;
  margin-top: .4rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---- Traditions ---- */
.traditions { background: var(--white); }
.traditions__wrap {
  display: grid;
  grid-template-columns: minmax(280px, .82fr) 1.18fr;
  gap: 3rem;
  align-items: start;
}
.traditions__note {
  position: sticky;
  top: 112px;
  padding: 2rem;
  background:
    linear-gradient(180deg, rgba(18, 56, 77, .92), rgba(18, 56, 77, .78)),
    url("eden-images/jewish-tradition.png") center / cover;
  color: var(--white);
}
.traditions__note h2 { color: var(--white); font-size: clamp(2.1rem, 4vw, 4.2rem); }
.traditions__note p { color: rgba(255, 255, 255, .8); }
.tradition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

/* ---- Spaces / Locations ---- */
.spaces { background: var(--cream); }
.space-icons {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
  margin-bottom: 1.2rem;
}
.space-item {
  min-height: 118px;
  display: grid;
  place-items: center;
  gap: .5rem;
  padding: 1rem .65rem;
  background: rgba(255, 255, 255, .7);
  color: var(--navy);
  text-align: center;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.space-photo {
  min-height: 430px;
  background:
    linear-gradient(90deg, rgba(18, 56, 77, .74), rgba(18, 56, 77, .1)),
    url("eden-images/chapel-interior.png") center / cover;
  display: flex;
  align-items: end;
  padding: 2rem;
  color: var(--white);
}
.space-photo h3 { max-width: 560px; color: var(--white); font-size: clamp(2rem, 4vw, 4.4rem); }
.image-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}
.image-tile {
  position: relative;
  min-height: 250px;
  display: flex;
  align-items: end;
  padding: 1.2rem;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}
.image-tile::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(0deg, rgba(12, 40, 55, .72), rgba(12, 40, 55, .08));
  z-index: 1;
}
.image-tile span {
  position: relative;
  z-index: 2;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.image-tile--grounds { background: url("eden-images/sacred-mausoleum-grounds.png") center / cover; }
.image-tile--garden { background: url("eden-images/memorial-garden-detail.png") center / cover; }
.image-tile--veterans { background: url("eden-images/veterans-cemetery.png") center / cover; }

/* Location address cards */
.location-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}
.location-card {
  padding: 2rem;
  background: var(--white);
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow);
}
.location-card h3 {
  font-family: var(--sans);
  font-size: 1.1rem;
  font-weight: 850;
  margin-bottom: .75rem;
}
.location-card address {
  font-style: normal;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7;
}
.location-card a { color: var(--blue); font-weight: 700; }

/* ---- Trust / About ---- */
.trust { background: var(--white); }
.trust__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3rem;
  align-items: center;
}
.trust-photo {
  min-height: 540px;
  background:
    linear-gradient(0deg, rgba(12, 40, 55, .55), rgba(12, 40, 55, .06)),
    url("eden-images/immediate-need-card.png") center / cover;
}
.trust h2, .planning h2 { font-size: clamp(2.2rem, 4.5vw, 4.9rem); }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .85rem;
  margin-top: 2rem;
}
.stat {
  padding: 1rem;
  background: var(--cream);
  color: var(--navy);
  font-size: .84rem;
  font-weight: 850;
}

/* ---- Plan ahead ---- */
.planning { background: var(--navy); color: var(--white); }
.planning h2 { color: var(--white); }
.planning__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.planning-photo {
  min-height: 500px;
  background:
    linear-gradient(0deg, rgba(12, 40, 55, .25), rgba(12, 40, 55, .05)),
    url("eden-images/plan-ahead.png") center / cover;
}
.checklist {
  display: grid;
  gap: .8rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  color: rgba(255, 255, 255, .86);
}
.checklist li::before {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  content: "";
  margin-top: .1rem;
  background: var(--gold);
  clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 22%, 84% 8%, 36% 65%);
}

/* ---- Obituaries ---- */
.obituaries {
  background:
    linear-gradient(180deg, rgba(251, 248, 241, .94), rgba(251, 248, 241, .96)),
    url("eden-images/obituary-background.png") center / cover;
}
.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .75rem;
  margin-bottom: 1rem;
}
.search-row input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
}
.obit-grid,
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.obit-card h3 {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 850;
}

/* ---- Quotes ---- */
.quotes { background: var(--white); }
.quote-card { border-top: 5px solid var(--gold); }
.quote-card strong {
  display: block;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.support-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}
.support-image { min-height: 320px; background: var(--cream); }
.support-image--grief {
  background:
    linear-gradient(0deg, rgba(12, 40, 55, .18), rgba(12, 40, 55, .02)),
    url("eden-images/grief-support.png") center / cover;
}
.support-image--family {
  background:
    linear-gradient(0deg, rgba(12, 40, 55, .24), rgba(12, 40, 55, .02)),
    url("eden-images/hero-emotional-family-support.png") center / cover;
}

/* ---- Contact ---- */
.contact {
  position: relative;
  background:
    linear-gradient(90deg, rgba(12, 40, 55, .95), rgba(12, 40, 55, .78)),
    url("eden-images/footer-cta-background.png") center / cover;
  color: var(--white);
}
.contact h2 {
  max-width: 760px;
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 5.4rem);
}
.contact p { max-width: 680px; color: rgba(255, 255, 255, .82); }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
  color: var(--gold);
  font-weight: 900;
}

/* Contact form */
.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 620px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 54px;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: var(--white);
  font-size: .95rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255, 255, 255, .5); }
.contact-form select { color: rgba(255, 255, 255, .7); }
.contact-form select option { background: var(--navy); color: var(--white); }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form label {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  margin-bottom: .3rem;
  display: block;
}
.form-note {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .62);
  font-size: .88rem;
}
.form-note a { color: var(--gold); }

/* ---- Footer ---- */
.footer {
  padding: 4rem 0 6.5rem;
  background: var(--navy-2);
  color: rgba(255, 255, 255, .78);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
.footer h3,
.footer strong {
  color: var(--white);
  font-family: var(--sans);
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer ul {
  display: grid;
  gap: .55rem;
  margin: .9rem 0 0;
  padding: 0;
  list-style: none;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: .82rem;
}

/* ---- Mobile sticky bar ---- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(12, 40, 55, .12);
}
.mobile-bar a {
  display: grid;
  place-items: center;
  min-height: 62px;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}
.mobile-bar a:last-child { background: var(--gold); border-right: 0; }

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---- 980px breakpoint ---- */
@media (max-width: 980px) {
  .topbar { display: none; }
  .menu-button { display: block; }
  .nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: .75rem 20px 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: .9rem 0;
    border-bottom: 1px solid rgba(18, 56, 77, .08);
  }
  .nav__urgent { margin-top: .6rem; padding: .9rem 1rem !important; text-align: center; }

  .hero { min-height: 620px; background-position: 62% center; }
  .hero__inner { min-height: 535px; padding: 3.8rem 0 7.5rem; }
  .hero__content { width: min(520px, 100%); }
  .hero h1 { font-size: clamp(2.15rem, 6.2vw, 3.8rem); }
  .hero p { max-width: 500px; }

  .quick-actions__grid,
  .path-grid,
  .card-grid,
  .footer__grid { grid-template-columns: 1fr 1fr; }

  .section-head,
  .traditions__wrap,
  .trust__grid,
  .planning__grid { grid-template-columns: 1fr; }

  .traditions__note { position: static; }
  .space-icons { grid-template-columns: repeat(3, 1fr); }
  .image-row { grid-template-columns: 1fr; }
  .obit-grid, .quote-grid, .support-images { grid-template-columns: 1fr; }

  .location-cards { grid-template-columns: 1fr; }
}

/* ---- 680px breakpoint ---- */
@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .header__inner { min-height: 64px; }
  .brand { min-width: 0; }
  .brand__logo { width: 148px; height: 52px; }
  .nav { top: 64px; }

  .hero {
    min-height: 560px;
    background:
      linear-gradient(90deg, rgba(12, 40, 55, .95), rgba(12, 40, 55, .76) 54%, rgba(12, 40, 55, .28)),
      url("eden-images/hero-funeral-directors.png") 66% center / cover;
  }
  .hero__inner { min-height: 500px; padding: 2.7rem 0 5.8rem; }
  .hero h1 { margin-top: 0; font-size: clamp(2.15rem, 12vw, 3.35rem); max-width: 94vw; }
  .hero p { max-width: 92vw; margin-top: .75rem; font-size: .95rem; line-height: 1.55; }
  .hero__content { width: min(94vw, 420px); margin-left: 0; }
  .hero__content .eyebrow { margin-top: .6rem; font-size: .58rem; letter-spacing: .1em; }
  .hero__smaller-line { font-size: .39em; }

  .hero__actions, .section__actions {
    align-items: stretch;
    flex-direction: column;
    gap: .65rem;
    margin-top: 1.05rem;
  }
  .button { width: 100%; }
  .quick-actions { margin-top: -54px; }

  .quick-actions__grid,
  .path-grid,
  .help-panel,
  .card-grid,
  .tradition-grid,
  .space-icons,
  .stat-grid,
  .footer__grid { grid-template-columns: 1fr; }

  .quick-card { grid-template-columns: auto 1fr auto; min-height: 104px; padding: 1rem; }
  .quick-card h3 { font-size: .96rem; }
  .quick-card p { font-size: .86rem; line-height: 1.45; }

  section { padding: 3.5rem 0; }
  .path-step { min-height: 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
  .space-photo, .image-tile, .trust-photo, .planning-photo, .support-image { min-height: 340px; }
  .search-row { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; }
  .mobile-bar { display: grid; }
}

/* ---- 420px breakpoint ---- */
@media (max-width: 420px) {
  .container { width: min(100% - 22px, 1180px); }
  .hero { min-height: 535px; }
  .hero__inner { min-height: 480px; padding: 2.2rem 0 5.35rem; }
  .hero h1 { font-size: clamp(2rem, 11.2vw, 2.9rem); }
  .hero p { font-size: .9rem; }
  .quick-card { min-height: 98px; }
}
