/* ============================================================
   LASHIBI — Components & layout (header, hero, cards, footer)
   ============================================================ */

/* ---- Sticky header ------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,244,238,.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--s3);
}
/* Brand lockup */
.brand { display: flex; align-items: center; gap: 13px; flex: none; }
.brand-logo { height: 60px; width: auto; display: block; }
.footer-logo { height: 56px; }
@media (max-width: 880px) { .brand-logo { height: 46px; } }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  font-size: 15px; font-weight: 600; color: var(--ink);
  padding: 9px 13px; border-radius: var(--r-btn);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after {
  content: ""; display: block; height: 2px; background: var(--brand);
  border-radius: 2px; margin-top: 4px;
}
.header-actions { display: flex; align-items: center; gap: var(--s1); flex: none; }
.header-actions .btn { padding: 11px 18px; min-height: 46px; font-size: 15px; }

/* Hamburger */
.nav-toggle {
  display: none; width: 48px; height: 48px; border: 1.5px solid var(--line-strong);
  background: var(--surface); border-radius: var(--r-btn); margin-left: auto;
  align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60;
  background: var(--bg); padding: var(--s3);
  display: none; flex-direction: column;
  animation: fade .2s ease;
}
.mobile-nav.open { display: flex; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.mobile-nav .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.m-close { width: 48px; height: 48px; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-btn); font-size: 26px; line-height: 1; color: var(--ink); }
.mobile-nav a.m-link {
  font-family: var(--font-display); font-size: 30px; font-weight: 500;
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-nav .m-actions { margin-top: auto; display: flex; flex-direction: column; gap: var(--s2); padding-top: var(--s3); }

/* ---- Floating WhatsApp ------------------------------------------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 55;
  display: inline-flex; align-items: center; gap: 11px;
  background: var(--whatsapp); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 19px 13px 15px; border-radius: var(--r-pill);
  box-shadow: 0 10px 30px rgba(31,168,85,.4), 0 3px 10px rgba(0,0,0,.15);
  transition: transform .18s ease, box-shadow .18s ease;
}
.wa-float svg { width: 25px; height: 25px; flex: none; }
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(31,168,85,.48); }
.wa-float .wa-label { white-space: nowrap; }

/* ---- HERO --------------------------------------------------------- */
.hero { position: relative; }
/* hidden attribute must always win over component display rules */
[hidden] { display: none !important; }

/* variant A — split: text left, single image right */
.hero-split { padding: var(--s6) 0; }
.hero-split .grid {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: var(--s6); align-items: center;
}
.hero-split .ph { aspect-ratio: 4/5; min-height: 360px; max-height: 540px; box-shadow: var(--sh-3); }
.hero h1 { margin-bottom: var(--s3); }
/* Playfair is more condensed than Cormorant — give hero headlines more room */
[data-serif="playfair"] .hero .measure { max-width: 900px; }
/* keep the description comfortably readable even when the headline is wide */
.hero .lead { max-width: 60ch; }
.hero-center .lead, .hero-dome .lead { margin-left: auto; margin-right: auto; }
.hero-bleed .lead { max-width: 52ch; }
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.hero .hero-meta { margin-top: var(--s4); display: flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: 15px; }
.hero .hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* variant B — full-bleed image with overlay */
.hero-bleed { position: relative; min-height: clamp(720px, 92vh, 1000px); display: flex; align-items: flex-end; }
.hero-bleed .ph { position: absolute; inset: 0; border-radius: 0; }
.hero-bleed .ph::after { display: none; }
.hero-bleed .scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24,20,21,.8) 0%, rgba(24,20,21,.64) 44%, rgba(24,20,21,.4) 74%, rgba(24,20,21,.22) 100%),
    linear-gradient(to top, rgba(24,20,21,.42) 0%, transparent 48%);
}
.hero-bleed .wrap { position: relative; z-index: 2; padding-top: clamp(84px, 9.5vh, 124px); padding-bottom: clamp(140px, 16vh, 196px); }
.hero-bleed h1, .hero-bleed p { color: #FBF4F2; }
.hero-bleed .lead { color: #EAD9D6; }
.hero-bleed .hero-actions { margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: var(--s2); }

/* variant C — centered, image band below */
.hero-center {
  padding: clamp(72px, 11vh, 150px) 0 0;
  text-align: center;
  background:
    radial-gradient(135% 90% at 0% -8%, rgba(176,138,74,.16), transparent 46%),
    radial-gradient(135% 90% at 100% -8%, rgba(176,138,74,.16), transparent 46%),
    radial-gradient(90% 60% at 50% -12%, rgba(176,138,74,.10), transparent 60%);
}
.hero-center .measure { margin: 0 auto; }
.hero-center .hero-actions { justify-content: center; }
.hero-center .ph { aspect-ratio: 21/9; margin-top: var(--s6); box-shadow: var(--sh-3); }

/* variant D — Arc: centered text over a domed, masked full-bleed image */
.hero-dome {
  position: relative;
  text-align: center;
  background: var(--bg);
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(720px, 92vh, 1040px);
  display: flex; align-items: flex-start;
}
.hero-dome > img.ph {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image:
    radial-gradient(128% 96% at 50% -10%, #000 40%, rgba(0,0,0,0) 73%),
    linear-gradient(to bottom, #000 52%, rgba(0,0,0,0) 96%);
  -webkit-mask-composite: source-in;
          mask-image:
    radial-gradient(128% 96% at 50% -10%, #000 40%, rgba(0,0,0,0) 73%),
    linear-gradient(to bottom, #000 52%, rgba(0,0,0,0) 96%);
          mask-composite: intersect;
}
/* dark overlay, strongest behind the text, dissolving outward + downward */
.hero-dome .dome-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(95% 76% at 50% 26%, rgba(20,17,18,.82), rgba(20,17,18,.5) 50%, rgba(20,17,18,0) 80%),
    linear-gradient(to bottom, rgba(20,17,18,.4) 0%, rgba(20,17,18,0) 70%);
}
/* fine grain that fades with the dome edge for a soft, sandy dissolve */
.hero-dome .dome-grain {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-mask-image: radial-gradient(128% 96% at 50% -10%, #000 38%, rgba(0,0,0,0) 72%);
          mask-image: radial-gradient(128% 96% at 50% -10%, #000 38%, rgba(0,0,0,0) 72%);
}
.hero-dome .wrap {
  position: relative; z-index: 2; width: 100%;
  padding-top: clamp(96px, 15vh, 210px);
  padding-bottom: clamp(300px, 46vh, 600px);
}
.hero-dome h1, .hero-dome p { color: #FBF4F2; }
.hero-dome .lead { color: #ECDCD9; }
.hero-dome .hero-actions { justify-content: center; }

/* ---- At-need block ------------------------------------------------ */
/* In centered-hero mode, give the at-need section more breathing room */
section[data-hero-variant="center"]:not([hidden]) + .section.tight {
  padding-top: clamp(88px, 10vh, 132px);
  padding-bottom: clamp(88px, 10vh, 132px);
}
.atneed {
  background: var(--brand-deep); color: #F4E7E5;
  border-radius: var(--r-card);
  padding: clamp(40px, 5vw, 72px);
  box-shadow: var(--sh-2);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center;
  position: relative; overflow: hidden;
}
.atneed::before {
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06), transparent 70%);
}
.atneed .eyebrow { color: #F0C9C2; }
.atneed .eyebrow::before { background: #F0C9C2; }
.atneed h2 { color: #FFF; font-size: clamp(26px, 3vw, 36px); margin-bottom: var(--s3); }
.atneed p { color: #E7CFCC; margin-bottom: 0; }
.atneed .actions { display: flex; flex-direction: column; gap: var(--s2); }
.atneed .actions .btn { width: 100%; }
.atneed .phone-line {
  display: flex; align-items: center; gap: 12px; margin-top: var(--s3); margin-bottom: 12px;
  font-family: var(--font-display); font-size: 25px; color: #fff;
}
.atneed .phone-line svg { width: 22px; height: 22px; }
.atneed .availability { font-size: 14px; color: #E2BFBA; display: inline-flex; align-items: center; gap: 8px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #7ED99B; box-shadow: 0 0 0 0 rgba(126,217,155,.7); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(126,217,155,0); } 100% { box-shadow: 0 0 0 0 rgba(126,217,155,0); } }

/* ---- Service cards ------------------------------------------------ */
.grid-cards { display: grid; gap: var(--s3); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.svc-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: var(--s4) var(--s3) var(--s3);
  box-shadow: var(--sh-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex; flex-direction: column; gap: 12px; height: 100%;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--brand-line); }
.svc-ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 4px;
}
.svc-ico svg { width: 27px; height: 27px; stroke-width: 1.5; }
.svc-card h3 { font-size: 22px; }
.svc-card p { color: var(--muted); font-size: 15.5px; margin: 0; flex: 1; }
.svc-card.urgent { border-color: var(--brand-line); background: var(--surface-2); }
.svc-card .tag {
  align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-tint);
  padding: 4px 10px; border-radius: var(--r-pill);
}

/* ---- Facility tiles (image-led, caption overlay) ------------------ */
.fac-grid { display: grid; gap: var(--s3); grid-template-columns: 1.9fr 1fr; grid-template-rows: 1fr 1fr; }
.fac-grid .fac-tile { aspect-ratio: auto; min-height: 200px; }
.fac-grid .fac-tile.feature .cap h3 { font-size: clamp(26px, 2.6vw, 32px); }
.fac-tile {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 4/3; box-shadow: var(--sh-1); display: block;
}
.fac-tile .ph { position: absolute; inset: 0; border-radius: 0; transition: transform .5s ease; }
.fac-tile .ph::after { display: none; }
.fac-tile:hover .ph { transform: scale(1.05); }
.fac-tile .cap {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end;
  padding: var(--s3);
  background: linear-gradient(to top, rgba(26,22,23,.94) 0%, rgba(26,22,23,.72) 30%, rgba(26,22,23,.34) 56%, rgba(26,22,23,.08) 76%, transparent 90%);
  color: #fff;
}
.fac-tile .cap h3 { color: #fff; font-size: 24px; }
.fac-tile .cap .fc-sub { font-size: 14px; color: #EAD9D6; margin-top: 4px; display: inline-flex; align-items: center; gap: 7px; }
.fac-tile.feature { grid-row: span 2; aspect-ratio: auto; }
.fac-tile .badge {
  position: absolute; top: var(--s2); left: var(--s2); z-index: 3;
  background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: var(--r-pill);
}

/* ---- Trust strip -------------------------------------------------- */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s3); }
.trust-item { text-align: center; padding: var(--s2); }
.trust-num { font-family: var(--font-display); font-size: clamp(40px, 5vw, 60px); font-weight: 500; color: #fff; line-height: 1; }
.trust-label { margin-top: 10px; font-size: 14.5px; color: #E7CFCC; letter-spacing: .02em; text-wrap: balance; }
.section.deep .trust-num { color: #fff; }

/* ---- Pre-need teaser --------------------------------------------- */
.preneed { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: stretch; }
.preneed > div { padding-block: var(--s4); align-self: center; }
.preneed .ph { aspect-ratio: 5/4; box-shadow: var(--sh-2); height: 100%; min-height: 360px; }
.preneed img.ph { height: 100%; }

/* ---- Contact close ------------------------------------------------ */
.contact-close { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: stretch; }
.contact-close .ph { order: 2; }
.contact-close .ph { min-height: 100%; border-radius: var(--r-card); }
.qform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); box-shadow: var(--sh-2); }

/* ---- Footer ------------------------------------------------------- */
.site-footer { background: var(--brand-deep); color: #E7D6D3; padding: var(--s7) 0 var(--s4); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: var(--s5); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: var(--s2); }
.site-footer a { color: #E7D6D3; font-size: 15px; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; flex-direction: column; gap: 11px; }
.footer-brand p { color: #C9C2C2; font-size: 15px; margin-top: var(--s2); max-width: 30ch; }
.nap { font-style: normal; line-height: 1.7; color: #E7D6D3; font-size: 15px; }
.footer-bottom {
  margin-top: var(--s6); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: space-between; align-items: center;
  font-size: 13.5px; color: #C9AFAC;
}
.social-row { display: flex; gap: 10px; }
.social-row a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; }
.social-row a:hover { background: rgba(255,255,255,.1); }
.social-row svg { width: 18px; height: 18px; }

/* ---- Skip link ---------------------------------------------------- */
.skip-link{position:absolute;left:-9999px;top:0;z-index:100;background:var(--brand);color:#fff;font-weight:700;padding:12px 20px;border-radius:0 0 var(--r-btn) 0}
.skip-link:focus{left:0}

/* ---- Page hero (interior pages) ----------------------------------- */
.page-hero { padding: var(--s6) 0 var(--s5); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.page-hero .measure { max-width: 680px; }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.page-hero h1 + .lead, .page-hero h1 + p { margin-top: var(--s3); }
/* the first content section after a page-hero sits a little tighter */
.page-hero + .section { padding-top: 116px; }
@media (max-width: 880px){ .page-hero + .section { padding-top: 64px; } }

/* ---- Gallery slideshow ------------------------------------------- */
.gallery { width: 100%; }
.gstage { position: relative; aspect-ratio: 16/10; border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-2); background: var(--brand-deep); }
.gslide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; }
.gslide.is-active { opacity: 1; }
.gnav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--brand-deep); display: grid; place-items: center; cursor: pointer; box-shadow: var(--sh-2); transition: transform .18s ease, background .18s ease; z-index: 2; }
.gnav:hover { background: #fff; transform: translateY(-50%) scale(1.07); }
.gnav svg { width: 22px; height: 22px; }
.gprev { left: 16px; } .gnext { right: 16px; }
.gcount { position: absolute; bottom: 16px; right: 18px; z-index: 2; font-size: 13px; font-weight: 700; color: #fff; background: rgba(20,17,18,.62); padding: 5px 12px; border-radius: var(--r-pill); letter-spacing: .04em; }
.gcap { margin-top: var(--s2); font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--muted); text-align: center; min-height: 1.4em; text-wrap: balance; }
.gdots { display: flex; gap: 8px; justify-content: center; margin-top: var(--s2); flex-wrap: wrap; }
.gdot { width: 9px; height: 9px; border-radius: 50%; border: 0; background: var(--line-strong); cursor: pointer; padding: 0; transition: width .2s ease, background .2s ease; }
.gdot.on { background: var(--brand); width: 26px; border-radius: 5px; }
.gallery:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: var(--r-card); }
@media (max-width: 560px){ .gnav { width: 42px; height: 42px; } .gprev { left: 8px; } .gnext { right: 8px; } }

/* fullscreen button on a gallery */
.gfull { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(20,17,18,.55); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .18s ease; }
.gfull:hover { background: rgba(20,17,18,.82); }
.gfull svg { width: 19px; height: 19px; }

/* fullscreen lightbox overlay */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(18,15,16,.95); display: none; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 64px); }
.lightbox.open { display: flex; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.lb-img { max-width: 92vw; max-height: 80vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 24px 70px rgba(0,0,0,.55); }
.lb-cap { color: #EADBD8; font-family: var(--font-display); font-style: italic; font-size: 16px; text-align: center; max-width: 70ch; }
.lb-close { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; border-radius: 50%; cursor: pointer; transition: background .18s ease; }
.lb-close:hover { background: rgba(255,255,255,.22); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .18s ease; }
.lb-nav:hover { background: rgba(255,255,255,.24); }
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { left: clamp(8px, 2vw, 28px); } .lb-next { right: clamp(8px, 2vw, 28px); }
.lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #EADBD8; font-size: 13px; font-weight: 700; letter-spacing: .06em; }
@media (max-width: 560px){ .lb-nav { width: 44px; height: 44px; } }

/* ---- Facility / detail page layout ------------------------------- */
.fac-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.fac-info .section-title { margin-top: var(--s2); }
.fac-info p { color: var(--muted); }
.spec-panel { margin-top: var(--s4); border-top: 1px solid var(--line-strong); }
.spec-row { display: flex; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-size: 15px; margin: 0; }
.spec-row dd { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; text-align: right; }
.fac-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--s2); margin-top: var(--s4); }
@media (max-width: 880px){ .fac-detail { grid-template-columns: 1fr; gap: var(--s4); } }
.crumbs { font-size: 13.5px; color: var(--faint); margin-bottom: var(--s2); display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }

/* ---- Section heading helper -------------------------------------- */
.sec-head { max-width: 640px; margin-bottom: var(--s5); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: var(--s2); margin-bottom: 0; }
/* breathing room when a section title is immediately followed by body copy */
.section-title + p { margin-top: var(--s3); }

/* ---- Responsive --------------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s4); }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: flex; }
  :root { --header-h: 72px; }
  .hero-split .grid, .preneed, .contact-close, .atneed { grid-template-columns: 1fr; }
  .hero-split .grid { gap: var(--s4); }
  .hero-split .ph { aspect-ratio: 16/10; min-height: 300px; order: -1; }
  .atneed { gap: var(--s3); }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .fac-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; }
  .fac-grid .fac-tile, .fac-tile.feature { grid-row: auto; aspect-ratio: 4/3; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s4); }
  .section { padding: 112px 0; }
  .section.tight { padding: 96px 0; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .cols-3, .cols-2, .fac-grid, .trust-grid { grid-template-columns: 1fr; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 14px; right: 16px; bottom: 16px; }
  .hero-bleed { min-height: 560px; }
  .footer-grid { grid-template-columns: 1fr; }
  .preneed .order-img { order: -1; }
}

/* ---- Reveal on load / scroll ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }

  /* Hero content entrance — staggered rise on page load (no library needed) */
  .hero .eyebrow, .hero .display, .hero .lead, .hero .hero-actions, .hero .hero-meta {
    opacity: 0;
    transform: translateY(22px);
    animation: hero-rise .9s cubic-bezier(.22, .61, .36, 1) forwards;
  }
  .hero .display      { animation-delay: .12s; }
  .hero .lead         { animation-delay: .24s; }
  .hero .hero-actions { animation-delay: .36s; }
  .hero .hero-meta    { animation-delay: .48s; }
}
@keyframes hero-rise { to { opacity: 1; transform: none; } }

/* ---- Tweaks panel ------------------------------------------------- */
#tweak-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 296px; max-width: calc(100vw - 36px);
  opacity: 0; transform: translateY(12px) scale(.98); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
#tweak-panel.open { opacity: 1; transform: none; pointer-events: auto; }
#tweak-panel .tp-card {
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: var(--sh-3); overflow: hidden;
}
.tp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.tp-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.tp-close { width: 30px; height: 30px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); border-radius: 6px; }
.tp-close:hover { background: var(--brand-tint); color: var(--brand); }
.tp-body { padding: 16px; }
.tp-sec { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin: 4px 0 8px; }
.tp-sec:not(:first-child) { margin-top: 18px; }
.tp-seg { display: flex; gap: 6px; background: var(--bg-alt); padding: 4px; border-radius: 8px; }
.tp-opt { flex: 1; border: 0; background: transparent; padding: 9px 6px; border-radius: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); transition: .15s; }
.tp-opt:hover { color: var(--ink); }
.tp-opt.on { background: var(--surface); color: var(--brand); box-shadow: var(--sh-1); }
.tp-note { font-size: 12.5px; color: var(--faint); margin: 16px 0 0; line-height: 1.45; }

/* ---- Reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .pulse { animation: none; }
  .btn:hover, .wa-float:hover, .svc-card:hover, .fac-tile:hover .ph, .gnav:hover { transform: none; }
  .gslide { transition: none; }
  .mobile-nav { animation: none; }
}

/* ---- Raw-hex helpers --------------------------------------------- */
.note-on-deep { color: var(--soft-on-deep); }
.atneed .note-on-deep { font-size: 13.5px; margin: 4px 0 0; text-align: center; }
.nap .nap-strong { color: #fff; }

/* ---- Gallery album headings -------------------------------------- */
