/*
 * Promisedland Casket -- final site
 * fullPage.js-style discrete snap engine (fp-scroll/fp-section, from
 * demo-combined/index-snap-all.html) combined with the light/glass brand
 * system established in promisedland-casket-test. Every section is one
 * full-viewport panel; nothing rests mid-transition. Dense sections get
 * their own internal scroll rather than shrinking below readable size.
 */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; }

:root {
  --pc-white: #ffffff;
  --pc-baby-blue: #27d3f5;
  --pc-baby-blue-deep: #40b7ff;
  /* Darker than --pc-baby-blue-deep on purpose -- the brand blue is too
     light to hit 4.5:1 contrast for small text on the badge's near-white
     background, this shade does. */
  --pc-badge-text: #0d6b96;
  --pc-pale-cyan: #eaf9fd;
  --pc-soft-grey: #f4f7f9;
  --pc-ink: #223142;
  --pc-ink-soft: #5c7080;

  --pc-font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  --pc-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: var(--pc-font);
  color: var(--pc-ink);
  background: var(--pc-white);
  -webkit-font-smoothing: antialiased;
}

/* --- Shared overall background -- fixed behind every section. Sections
   with their own uploaded photo cover this entirely; sections without one
   yet let it show straight through, since .fp-section__media has no
   background of its own (see below). --- */
.bg-fixed {
  position: fixed; inset: 0; z-index: -2;
  background-image: url('../images/背景竖版.webp');
  background-size: cover;
  background-position: center 0%;
  background-repeat: no-repeat;
  background-color: var(--pc-white);
}

/* --- Ambient dove flock -- 8 doves (2 each of 4 licensed direction-specific
   vector illustrations) drifting across the whole page above every section.
   Each dove is split into a static .dove__body layer and a rotating
   .dove__wing layer, both the same full-frame image cropped to a different
   subset of the source artwork's paths -- verified by rasterizing each
   subset in isolation (see project notes) so the wing rotates from its true
   shoulder attachment point without visibly tearing away from the body.
   "up-right" reuses the up-left wing/body split mirrored via .dove__art--
   mirror, since that specific source file fuses body+wing into one
   compound path with no separable wing. Fixed + pointer-events:none so it
   never blocks input. */
.dove-flock {
  position: fixed; inset: 0; z-index: 3; overflow: hidden; pointer-events: none;
}
.dove {
  position: absolute; top: 0; left: 0; will-change: transform;
}
.dove__art {
  position: relative; width: 100%;
  filter: drop-shadow(0 2px 8px rgba(34, 49, 66, 0.18));
}
.dove__art--mirror { transform: scaleX(-1); }
.dove__body, .dove__wing {
  position: absolute; top: 0; left: 0; display: block; width: 100%; height: auto;
}
.dove__wing { animation: dove-wing-flap ease-in-out infinite; }

.dove__wing--left      { transform-origin: 33.8% 40.5%; }
.dove__wing--right     { transform-origin: 66.2% 40.5%; }
.dove__wing--up-left   { transform-origin: 48.5% 42.1%; }

@keyframes dove-wing-flap {
  0%, 100% { transform: rotate(6deg); }
  50%      { transform: rotate(-20deg); }
}
.dove__wing--right {
  animation-name: dove-wing-flap-mirrored;
}
@keyframes dove-wing-flap-mirrored {
  0%, 100% { transform: rotate(-6deg); }
  50%      { transform: rotate(20deg); }
}

.dove--1 { top: 62%; width: 46px; opacity: 0.88; animation: dove-fly-up-left 36s linear infinite; }
.dove--2 { top: 20%; width: 38px; opacity: 0.7;  animation: dove-fly-right 30s linear infinite; animation-delay: -6s; }
.dove--3 { top: 40%; width: 52px; opacity: 0.9;  animation: dove-fly-left 40s linear infinite; animation-delay: -12s; }
.dove--4 { top: 70%; width: 34px; opacity: 0.65; animation: dove-fly-up-right 33s linear infinite; animation-delay: -18s; }
.dove--5 { top: 8%;  width: 42px; opacity: 0.8;  animation: dove-fly-up-left 45s linear infinite; animation-delay: -24s; }
.dove--6 { top: 55%; width: 30px; opacity: 0.6;  animation: dove-fly-right 38s linear infinite; animation-delay: -9s; }
.dove--7 { top: 84%; width: 48px; opacity: 0.85; animation: dove-fly-left 32s linear infinite; animation-delay: -21s; }
.dove--8 { top: 30%; width: 40px; opacity: 0.72; animation: dove-fly-up-right 48s linear infinite; animation-delay: -30s; }

.dove--1 .dove__wing { animation-duration: 0.78s; }
.dove--2 .dove__wing { animation-duration: 0.66s; animation-delay: -0.2s; }
.dove--3 .dove__wing { animation-duration: 0.9s;  animation-delay: -0.4s; }
.dove--4 .dove__wing { animation-duration: 0.7s;  animation-delay: -0.1s; }
.dove--5 .dove__wing { animation-duration: 0.85s; animation-delay: -0.55s; }
.dove--6 .dove__wing { animation-duration: 0.62s; animation-delay: -0.3s; }
.dove--7 .dove__wing { animation-duration: 0.95s; animation-delay: -0.15s; }
.dove--8 .dove__wing { animation-duration: 0.73s; animation-delay: -0.45s; }

@keyframes dove-fly-left {
  0%   { transform: translate(112vw, 0) rotate(-4deg); }
  50%  { transform: translate(48vw, -6vh) rotate(3deg); }
  100% { transform: translate(-16vw, 4vh) rotate(-4deg); }
}
@keyframes dove-fly-right {
  0%   { transform: translate(-16vw, 0) rotate(4deg); }
  50%  { transform: translate(52vw, 6vh) rotate(-3deg); }
  100% { transform: translate(112vw, -4vh) rotate(4deg); }
}
@keyframes dove-fly-up-left {
  0%   { transform: translate(112vw, 22vh) rotate(-11deg); }
  50%  { transform: translate(46vw, -12vh) rotate(-15deg); }
  100% { transform: translate(-16vw, -48vh) rotate(-11deg); }
}
@keyframes dove-fly-up-right {
  0%   { transform: translate(-16vw, 22vh) rotate(11deg); }
  50%  { transform: translate(54vw, -12vh) rotate(15deg); }
  100% { transform: translate(112vw, -48vh) rotate(11deg); }
}
@media (prefers-reduced-motion: reduce) {
  .dove-flock { display: none; }
}

/* --- Sticky top nav -- transparent glass, fixed since the real scroll
   happens inside .fp-scroll, not the document. --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 6vw;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: none; border-left: none; border-right: none;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px -10px rgba(28, 63, 110, 0.4);
}
.nav__brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; color: var(--pc-ink); text-decoration: none; }
.nav__brand-logo { height: 2.1rem; width: auto; border-radius: 7px; display: block; }
.nav__links { display: flex; align-items: center; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.nav__links li { display: flex; align-items: center; }
.nav__links a { font-size: 0.85rem; font-weight: 600; line-height: 1; color: var(--pc-ink-soft); text-decoration: none; }
.nav__links a:hover { color: var(--pc-baby-blue-deep); }
.nav__cta { padding: 0.5rem 1.1rem; font-size: 0.82rem; }
@media (max-width: 980px) {
  .nav__links { display: none; }
  .btn.nav__cta { display: none; }
}

/* --- Mobile hamburger toggle + slide-in panel --- */
.nav__toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.25rem; height: 2.25rem; padding: 0; border: none; background: none; cursor: pointer;
}
@media (max-width: 980px) { .nav__toggle { display: flex; } }
.nav__toggle span {
  display: block; width: 100%; height: 2px; border-radius: 2px;
  background: var(--pc-ink); transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 199;
  width: min(85vw, 22rem);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 6rem 2rem 2rem;
  display: flex; flex-direction: column; gap: 0.3rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.45s var(--pc-ease);
}
/* Shadow only while open -- cast from an off-screen (but still fixed,
   still painting) element, its leftward blur can bleed back into the
   viewport as a thin sliver on browsers that don't clip a fixed
   descendant's box-shadow via an ancestor's overflow:hidden. */
.nav__mobile.is-open { transform: translateX(0); box-shadow: -20px 0 50px -20px rgba(28, 63, 110, 0.4); }
.nav__mobile-brand {
  display: flex; align-items: center; gap: 0.6rem;
  margin-bottom: 1.5rem; font-weight: 700; font-size: 1rem; color: var(--pc-ink);
}
.nav__mobile-brand-logo { height: 2.4rem; width: auto; border-radius: 8px; display: block; }
.nav__mobile-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem;
}
.nav__mobile-hide {
  background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--pc-ink-soft);
}
.nav__mobile-hide:hover { color: var(--pc-baby-blue-deep); }
.nav__mobile a.nav__mobile-lang {
  margin-left: auto;
  padding: 0.4rem 0.9rem; border: 1px solid rgba(34, 49, 66, 0.18); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--pc-ink-soft);
}
.nav__mobile a.nav__mobile-lang:hover { color: var(--pc-baby-blue-deep); border-color: var(--pc-baby-blue-deep); }
.nav__mobile a, .nav__mobile-label {
  padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(34, 49, 66, 0.08);
  font-size: 1rem; font-weight: 600; color: var(--pc-ink); text-decoration: none;
}
.nav__mobile a:hover { color: var(--pc-baby-blue-deep); }

/* "Services" reads as a plain row like its siblings; the four service
   links beneath it are indented with a connecting rule to show they
   belong to it, without needing an expand/collapse toggle. */
.nav__mobile-label { display: block; }
.nav__mobile a.nav__mobile-sub {
  padding-left: 1.5rem; position: relative;
  font-size: 0.95rem;
}
.nav__mobile-sub::before {
  content: ''; position: absolute; left: 0.25rem; top: 0; bottom: 0;
  width: 1px; background: rgba(34, 49, 66, 0.15);
}

.nav__scrim {
  position: fixed; inset: 0; z-index: 198;
  background: rgba(20, 44, 77, 0.4);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  .nav__mobile, .nav__scrim { transition: none; }
}

/* --- Services dropdown -- click to toggle, matching the sibling site's
   proven pattern (click-outside and Escape both close it). --- */
.nav__dropdown { position: relative; }
/* Trigger is now a real link (to the Funeral Services overview page) plus a
   separate small caret button that only toggles the panel, so clicking the
   label navigates instead of being swallowed by the dropdown toggle. */
.nav__dropdown-trigger {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-size: 0.85rem; font-weight: 600;
}
.nav__dropdown-trigger a { color: var(--pc-ink-soft); text-decoration: none; font: inherit; }
.nav__dropdown-trigger a:hover { color: var(--pc-baby-blue-deep); }
.nav__dropdown-caret {
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; padding: 0.25rem; margin: -0.25rem; cursor: pointer; color: var(--pc-ink-soft);
}
.nav__dropdown-caret:hover { color: var(--pc-baby-blue-deep); }
.nav__dropdown-caret svg { display: block; transition: transform 0.25s ease; }
.nav__dropdown.is-open .nav__dropdown-caret svg { transform: rotate(180deg); }
.nav__dropdown.is-open .nav__dropdown-trigger a,
.nav__dropdown.is-open .nav__dropdown-caret { color: var(--pc-baby-blue-deep); }
.nav__dropdown-panel {
  position: absolute; top: calc(100% + 0.9rem); left: 50%; transform: translateX(-50%);
  display: none; grid-template-columns: repeat(2, auto); gap: 0.15rem; width: max-content; max-width: 30rem;
  padding: 0.5rem; border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 12px 32px -12px rgba(28, 63, 110, 0.4);
}
.nav__dropdown.is-open .nav__dropdown-panel { display: grid; }
.nav__dropdown-panel a {
  padding: 0.55rem 0.75rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; color: var(--pc-ink); text-decoration: none;
  white-space: nowrap;
}
.nav__dropdown-panel a:hover { background: rgba(39, 211, 245, 0.14); color: var(--pc-baby-blue-deep); }

/* --- Sticky 24/7 hotline, bottom right, fixed above everything -- same
   glass-pill recipe and pulsing "ping" ring as the real site's
   .plc-emergency button. --- */
.hotline {
  position: fixed; right: 1rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.625rem 1.25rem 0.625rem 0.75rem; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 24px -10px rgba(28, 63, 110, 0.4);
  text-decoration: none; color: var(--pc-ink);
  transition: background-color 0.5s var(--pc-ease), transform 0.4s var(--pc-ease);
}
.hotline:hover { background: rgba(255, 255, 255, 0.35); }
.hotline:active { transform: scale(0.98); }
@media (min-width: 640px) { .hotline { right: 1.5rem; bottom: 1.5rem; } }

.hotline__icon {
  position: relative;
  width: 2rem; height: 2rem; border-radius: 50%; flex-shrink: 0;
  background: var(--pc-baby-blue-deep); display: flex; align-items: center; justify-content: center; color: #fff;
}
.hotline__ping {
  position: absolute; inset: 0; border-radius: 999px;
  background: rgba(39, 211, 245, 0.55); opacity: 0.6;
  animation: hotline-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes hotline-ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.hotline__text { display: flex; flex-direction: column; line-height: 1.2; }
.hotline__label { font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--pc-ink-soft); }
.hotline__number { font-size: 0.85rem; font-weight: 600; color: var(--pc-baby-blue-deep); }
@media (max-width: 520px) {
  .hotline { padding: 0.55rem 0.9rem 0.55rem 0.55rem; gap: 0.6rem; }
  .hotline__label { font-size: 0.6rem; }
  .hotline__number { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hotline__ping { animation: none; }
}

/* --- Sticky Google review badge, bottom left, mirrors .hotline's fixed
   corner placement on the opposite side. Collapses to just the arrow tab
   via .gr-wrap.gr-hidden, toggled by assets/js/google-review-badge.js. --- */
.gr-wrap {
  position: fixed; left: 1rem; bottom: 1.25rem; z-index: 60;
  display: inline-flex; align-items: center;
  transition: 0.35s ease;
}
@media (min-width: 640px) { .gr-wrap { left: 1.5rem; bottom: 1.5rem; } }

.google-review-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  text-decoration: none;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px 0 0 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
  transition: 0.35s ease;
}

.gr-top { display: flex; align-items: center; gap: 8px; line-height: 1; }
.gr-score { font-size: 36px; font-weight: 800; color: #222; }
.gr-stars { color: #F4B400; font-size: 22px; letter-spacing: 2px; }
.gr-bottom { margin-top: 4px; font-size: 18px; font-weight: 700; color: #555; }

.gr-toggle {
  width: 28px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: #fff; color: #777;
  border: 1px solid rgba(0, 0, 0, 0.08); border-left: none;
  border-radius: 0 12px 12px 0;
  box-shadow: 6px 0 18px rgba(0, 0, 0, 0.08);
  font-size: 22px; font-weight: 700;
  cursor: pointer; user-select: none;
  transition: 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.gr-toggle:hover { background: #40b7ff; color: #fff; }

.gr-wrap.gr-hidden .google-review-badge {
  width: 0; padding-left: 0; padding-right: 0; border: none; opacity: 0;
}
.gr-wrap.gr-hidden .gr-toggle {
  border-radius: 12px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  background: #40b7ff; color: #fff;
}

@media (max-width: 768px) {
  .gr-score { font-size: 28px; }
  .gr-stars { font-size: 18px; }
  .gr-bottom { font-size: 15px; }
  .google-review-badge { padding: 8px 12px; }
  .gr-toggle { width: 24px; height: 46px; font-size: 20px; }
}

/* --- Dot navigation, right edge --- */
.fp-dots {
  position: fixed; top: 50%; right: 1.5rem; transform: translateY(-50%); z-index: 55;
  display: flex; flex-direction: column; gap: 0.4rem;
}
/* Button is sized to the 24px touch-target minimum; the small dot itself is
   a ::before so the visual size doesn't change, just the tappable area. */
.fp-dots__dot {
  width: 24px; height: 24px; border-radius: 50%;
  border: none; background: transparent; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.fp-dots__dot::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  border: 1.5px solid rgba(34, 49, 66, 0.35);
  transition: background 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}
.fp-dots__dot:hover::before { transform: scale(1.2); }
.fp-dots__dot.is-active::before { background: var(--pc-baby-blue-deep); border-color: var(--pc-baby-blue-deep); transform: scale(1.3); }
@media (max-width: 720px) { .fp-dots { right: 0.6rem; } }

/* --- Snap engine --- */
.fp-scroll {
  height: 100vh; height: 100svh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  /* The dot nav already shows scroll position, so the native scrollbar is
     just visual noise -- and on some devices/emulators it renders as an
     opaque bar that eats into the viewport width instead of overlaying. */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.fp-scroll::-webkit-scrollbar { display: none; }
.fp-section {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 5.25rem 6vw 1.5rem;
}
/* No background of its own -- until a section's photo is uploaded, the
   <img>'s onerror hides it on a 404, and the shared .bg-fixed layer shows
   straight through this transparent gap instead of a broken-image icon. */
.fp-section__media {
  position: absolute; inset: 0; z-index: 0;
  /* Fade each section's own photo out at its top/bottom edge so a mid-
     scroll transition blends into the shared .bg-fixed panning backdrop
     instead of hard-cutting into the next section's unrelated photo. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8rem, #000 calc(100% - 8rem), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8rem, #000 calc(100% - 8rem), transparent 100%);
}
.fp-section__media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform-origin: center center;
  animation: fp-kenburns 10s ease-in-out infinite alternate;
}
@keyframes fp-kenburns { from { transform: scale(1); } to { transform: scale(1.1); } }
.fp-section__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: rgba(255, 255, 255, 0.32);
}
.fp-section__content {
  position: relative; z-index: 2; max-width: 46rem; opacity: 0;
  max-height: 100%; overflow-y: auto; padding: 0.5rem;
}
.fp-section__content--wide { max-width: 64rem; }

.eyebrow {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--pc-baby-blue-deep);
}
.heading {
  margin: 0.65rem 0 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  color: var(--pc-ink);
}
.heading--xl { font-size: clamp(2.1rem, 5vw, 3.6rem); }
.heading--lg { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.heading--md { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.copy { margin: 0.85rem auto 0; font-size: 1rem; line-height: 1.6; color: var(--pc-ink-soft); max-width: 32rem; }

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 999px;
  font-size: 0.92rem; font-weight: 600; text-decoration: none;
  transition: transform 0.4s var(--pc-ease), background 0.3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--pc-baby-blue); color: #06323d; }
.btn--primary:hover { background: var(--pc-baby-blue-deep); color: #fff; }
.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--pc-ink);
  border: 1px solid rgba(34, 49, 66, 0.14);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.8); }
.cta-row { margin-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px);
  border: 1px solid rgba(39, 211, 245, 0.35);
  font-size: 0.76rem; font-weight: 600; color: var(--pc-badge-text);
}
.hero__badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--pc-baby-blue); }
@media (max-width: 480px) {
  .hero__badge { font-size: 0.62rem; padding: 0.35rem 0.75rem; white-space: nowrap; }
}
.trust-row { margin-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 1.1rem; font-size: 0.8rem; color: var(--pc-ink-soft); }

/* --- Trust metrics --- */
.stats-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 2rem; margin-top: 1.5rem; }
.stat { text-align: center; }
.stat__num { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--pc-ink); letter-spacing: -0.02em; }
.stat__label { margin-top: 0.25rem; font-size: 0.74rem; color: var(--pc-ink-soft); text-transform: uppercase; letter-spacing: 0.07em; }

/* --- "As featured in" media logo marquee -- infinite CSS scroll, three
   copies of the logo set in the DOM (see index.html) so translateX(-33.33%)
   wraps seamlessly with no visible reset. --- */
.sf-media-label {
  margin-top: 2rem; font-size: 0.68rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--pc-ink-soft); text-align: center;
}
.sf-media-marquee {
  margin-top: 0.85rem; width: 100%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.sf-media-track {
  display: flex; align-items: center; gap: 2.75rem; width: max-content;
  animation: sf-media-scroll 26s linear infinite;
}
.sf-media-logo {
  height: 26px; width: auto; object-fit: contain;
  opacity: 0.6; filter: grayscale(1);
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.sf-media-logo:hover { opacity: 1; filter: grayscale(0); }
@keyframes sf-media-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-33.3333%); }
}
@media (max-width: 620px) {
  .sf-media-logo { height: 18px; }
  .sf-media-track { gap: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sf-media-track { animation: none; }
}

/* --- Card grids (why choose us) --- */
.card-grid { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: left; }
@media (max-width: 780px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
/* Below this, even 2 columns of full cards can't fit one fp-section's
   height along with the heading above them -- swipe horizontally through
   one card at a time instead of stacking and needing an internal scroll. */
@media (max-width: 640px) {
  .card-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0.85rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .card-grid::-webkit-scrollbar { display: none; }
  .card-grid .card { flex: 0 0 82%; scroll-snap-align: start; }
}
.card {
  padding: 1.3rem 1.2rem; border-radius: 18px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
}
.card__title { font-size: 1rem; font-weight: 700; color: var(--pc-ink); }
.card__text { margin: 0.4rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--pc-ink-soft); }

/* --- Funeral journey timeline --- */
.timeline { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 1.5rem; text-align: left; max-width: 40rem; margin-inline: auto; }
@media (max-width: 620px) { .timeline { grid-template-columns: 1fr; } }
.timeline__step { display: flex; gap: 0.9rem; }
.timeline__num {
  flex-shrink: 0; width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: rgba(39, 211, 245, 0.18); border: 1px solid rgba(39, 211, 245, 0.4);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: var(--pc-baby-blue-deep);
}
.timeline__title { font-size: 0.98rem; font-weight: 700; color: var(--pc-ink); }
.timeline__text { margin-top: 0.2rem; font-size: 0.85rem; line-height: 1.5; color: var(--pc-ink-soft); }

/* --- Pricing / packages --- */
.pricing-grid { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; text-align: left; }
@media (max-width: 780px) {
  .pricing-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0.85rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    /* overflow-x: auto implicitly makes overflow-y compute to auto too (per
       spec, when only one axis is set to non-visible), which was clipping
       the "Most Requested" badge poking above the card via negative top. */
    padding-top: 0.85rem;
  }
  .pricing-grid::-webkit-scrollbar { display: none; }
  .pricing-grid .pricing-card { flex: 0 0 82%; scroll-snap-align: start; }
}
.pricing-card {
  padding: 1.5rem 1.3rem; border-radius: 20px; position: relative;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); backdrop-filter: blur(14px);
}
.pricing-card--featured { background: rgba(255, 255, 255, 0.78); border-color: rgba(39, 211, 245, 0.5); }
.pricing-card__badge {
  position: absolute; top: -0.65rem; left: 1.3rem; padding: 0.25rem 0.7rem; border-radius: 999px;
  background: var(--pc-baby-blue); color: #06323d; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
}
.pricing-card__title { font-size: 1.1rem; font-weight: 700; color: var(--pc-ink); }
.pricing-card__text { margin-top: 0.4rem; font-size: 0.85rem; line-height: 1.5; color: var(--pc-ink-soft); }
.pricing-card__cta { margin-top: 0.9rem; display: inline-flex; font-size: 0.82rem; font-weight: 700; color: var(--pc-baby-blue-deep); text-decoration: none; }
.pricing-card__cta:hover { text-decoration: underline; }

/* --- Checklist --- */
.checklist { margin: 1.75rem auto 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem 1.75rem; max-width: 34rem; text-align: left; }
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }
.checklist__item { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.9rem; color: var(--pc-ink); }
.checklist__item svg { flex-shrink: 0; margin-top: 0.2rem; color: var(--pc-baby-blue-deep); }

/* --- Placeholder tile grids --- */
.tile-grid { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; width: 100%; }
@media (max-width: 620px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
/* Directors-in-action has 4 tiles specifically -- one row on desktop
   instead of the shared 3-column default wrapping it to 3+1. */
.tile-grid--4col { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .tile-grid--4col { grid-template-columns: repeat(2, 1fr); } }
.tile {
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; position: relative;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.8), rgba(39, 211, 245, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: flex; align-items: flex-end; padding: 0.75rem;
}
.tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Soft white wash over the photo so it reads as part of the page's pastel
   palette instead of a full-contrast photo dropped into it. */
.tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: rgba(255, 255, 255, 0.35); }
.tile__label { position: relative; z-index: 2; font-size: 0.76rem; font-weight: 600; color: var(--pc-ink); background: rgba(255, 255, 255, 0.65); padding: 0.3rem 0.6rem; border-radius: 999px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* --- Video block --- */
.video-block {
  margin: 1.75rem auto 0; width: 100%; max-width: 36rem; aspect-ratio: 16 / 9; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.75), rgba(39, 211, 245, 0.24));
  border: 1px solid rgba(255, 255, 255, 0.75);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.video-block__play {
  width: 3.75rem; height: 3.75rem; border-radius: 50%; background: rgba(255, 255, 255, 0.9);
  display: flex; align-items: center; justify-content: center; color: var(--pc-baby-blue-deep);
  box-shadow: 0 10px 30px -10px rgba(34, 49, 66, 0.3);
}
.video-block__caption { position: absolute; bottom: 1rem; font-size: 0.78rem; color: var(--pc-ink-soft); }

/* --- FAQ accordion --- */
.faq-list { margin: 1.5rem auto 0; width: 100%; max-width: 38rem; display: flex; flex-direction: column; gap: 0.6rem; text-align: left; }
.faq-item {
  border-radius: 14px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px); padding: 0.2rem 1.2rem;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 0.85rem 0; font-weight: 600; font-size: 0.92rem; color: var(--pc-ink);
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--pc-baby-blue-deep); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 0.9rem; font-size: 0.86rem; line-height: 1.55; color: var(--pc-ink-soft); }

/* --- Articles --- */
.article-grid { margin-top: 1.1rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.85rem; }
@media (max-width: 640px) {
  .article-grid {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 0.85rem;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
  }
  .article-grid::-webkit-scrollbar { display: none; }
  .article-grid .article-card { flex: 0 0 82%; scroll-snap-align: start; }
}
.article-card { padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75); backdrop-filter: blur(14px); text-align: left; }
.article-card__tag { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--pc-baby-blue-deep); }
.article-card__title { margin-top: 0.3rem; font-size: 0.9rem; font-weight: 700; color: var(--pc-ink); line-height: 1.25; }
.article-card__text { margin-top: 0.3rem; font-size: 0.78rem; line-height: 1.4; color: var(--pc-ink-soft); }
.article-card__link { margin-top: 0.5rem; display: inline-flex; font-size: 0.76rem; font-weight: 700; color: var(--pc-baby-blue-deep); text-decoration: none; }
.article-card__link:hover { text-decoration: underline; }

/* --- Team --- */
.team-grid { margin-top: 1.75rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
.team-card { text-align: center; }
.team-card__avatar {
  width: 4.25rem; height: 4.25rem; border-radius: 50%; margin: 0 auto;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.85), rgba(39, 211, 245, 0.28));
  border: 1px solid rgba(255, 255, 255, 0.85);
  overflow: hidden;
}
.team-card__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-card__avatar--placeholder { display: flex; align-items: center; justify-content: center; color: var(--pc-baby-blue-deep); }
.team-card__name { margin-top: 0.6rem; font-weight: 700; font-size: 0.88rem; color: var(--pc-ink); }
.team-card__role { margin-top: 0.15rem; font-weight: 600; font-size: 0.76rem; color: var(--pc-ink-soft); }
.team-card__dept { margin-top: 0.1rem; font-size: 0.7rem; color: var(--pc-ink-soft); opacity: 0.8; }

/* --- Service coverage --- */
.coverage-grid { margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; }
.coverage-chip {
  padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.84rem; font-weight: 600; color: var(--pc-ink);
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px);
}

/* --- Testimonials --- */
.quote-grid { margin-top: 1.5rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 42rem; margin-inline: auto; }
@media (max-width: 620px) { .quote-grid { grid-template-columns: 1fr; } }
.quote-card {
  padding: 1.4rem; border-radius: 18px;
  background: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.8); backdrop-filter: blur(14px);
  text-align: left;
}
.quote-card__text { font-size: 0.9rem; line-height: 1.55; color: var(--pc-ink); }
.quote-card__name { margin-top: 0.7rem; font-size: 0.78rem; font-weight: 600; color: var(--pc-ink-soft); }

/* --- Footer section, final panel -- own inner scroll, stays light --- */
.fp-section--footer { display: block; padding: 0; }
.fp-footer-scroll { height: 100%; overflow-y: auto; overflow-x: hidden; display: flex; align-items: center; }
.fp-footer-inner { width: 100%; max-width: 64rem; margin: 0 auto; padding: 6rem 2rem 3rem; position: relative; z-index: 2; }
.fp-footer-top {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr) minmax(0, 1.8fr) minmax(0, 0.9fr) minmax(0, 1.9fr);
  align-items: start; gap: 1.75rem;
}
.fp-footer-panel {
  padding: 0.9rem 1rem; border-radius: 14px; text-align: center;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(14px);
}
@media (max-width: 780px) {
  .fp-footer-inner { padding: 3.5rem 1.5rem 1.5rem; }
  .fp-footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.5rem; }
  /* Brand goes full-width first, then Explore and Support (both short
     lists) pair up in the next row, then the two full-width panels
     (Funeral Services, Reach Us) each get their own row -- otherwise one
     short list ends up stranded alone in a half-empty row. */
  .fp-footer-panel--brand { grid-column: 1 / -1; order: -1; }
  /* Funeral Services' 9 links need more than half a mobile row to lay out
     two readable columns, so give it the full row like Reach Us gets. */
  .fp-footer-panel--services { grid-column: 1 / -1; order: 10; }
  .fp-footer-panel--wide { grid-column: 1 / -1; order: 11; }
  /* Tighten spacing across the board so all five panels comfortably fit
     within the footer's fixed-height section on shorter phone screens too. */
  .fp-footer-panel { padding: 0.5rem 0.65rem; }
}
.fp-footer-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; color: var(--pc-ink); }
.fp-footer-logo { height: 2.6rem; width: auto; border-radius: 8px; display: block; }
.fp-footer-tagline { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.6; color: var(--pc-ink-soft); }
.fp-footer-heading { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--pc-ink); margin: 0 0 0.65rem; }
.fp-footer-links { list-style: none; margin: 0; padding: 0; }
.fp-footer-links li { margin-bottom: 0.1rem; }
.fp-footer-links a {
  display: inline-block; padding: 0.4rem 0;
  color: var(--pc-ink-soft); text-decoration: none; font-size: 0.85rem;
}
.fp-footer-links a:hover { color: var(--pc-baby-blue-deep); }
/* Only the Reach Us panel needs its links held to one line (the email
   address breaking mid-word looks broken); other columns' shorter,
   multi-word labels should wrap normally rather than overflow the column. */
.fp-footer-panel--wide .fp-footer-links a { white-space: nowrap; }
/* Funeral Services now lists all 9 pages -- split into two columns so the
   list stays short enough to fit within the footer's fixed-height section
   instead of pushing it into an internal scroll. Below 780px the panel
   itself is too narrow for two columns of text, so it drops back to one. */
.fp-footer-links--cols { column-count: 2; column-gap: 1rem; }
.fp-footer-links--cols li { break-inside: avoid; }
.fp-footer-bottom {
  margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(34, 49, 66, 0.12);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.65rem;
  font-size: 0.76rem; color: var(--pc-ink-soft);
}
.fp-footer-bottom a { color: var(--pc-ink); }

/* These come after the base declarations above on purpose -- same
   specificity, so an earlier media block would just lose the cascade to
   the unconditional rules further down the file. */
@media (max-width: 780px) {
  .fp-footer-heading { margin-bottom: 0.3rem; font-size: 0.72rem; }
  .fp-footer-links li { margin-bottom: 0.2rem; }
  .fp-footer-links a { font-size: 0.78rem; }
  .fp-footer-brand { font-size: 1rem; }
  .fp-footer-tagline { margin-top: 0.25rem; line-height: 1.35; font-size: 0.78rem; }
  .fp-footer-bottom { margin-top: 0.9rem; padding-top: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-section__media img { animation: none; }
}

/* --- 3D curved gallery -- rotating cylinder of photos, drag or auto-rotate,
   click a slide to open a lightbox. Visibility is handled by the page's own
   [data-reveal] system, not baked into this rule. --- */
.plc-curved-gallery { position: relative; padding: 1rem 0 0.5rem; }

.plc-curved-gallery__stage {
  position: relative;
  width: 100%;
  margin-inline: auto;
  height: 260px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, white 14%, white 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, white 14%, white 86%, transparent);
}
@media (min-width: 640px) { .plc-curved-gallery__stage { height: 340px; } }
@media (min-width: 1024px) { .plc-curved-gallery__stage { height: 420px; } }
.plc-curved-gallery__stage:active { cursor: grabbing; }

.plc-curved-gallery__track {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-style: preserve-3d;
  will-change: transform;
}

.plc-curved-gallery__item {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px -22px rgba(28, 63, 110, 0.4);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  cursor: pointer;
}

.plc-curved-gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
  -webkit-user-drag: none;
  transition: opacity 0.3s ease;
}

.plc-curved-gallery__item.is-active {
  box-shadow: 0 0 0 3px var(--pc-baby-blue-deep), 0 30px 60px -22px rgba(28, 63, 110, 0.4);
}

/* --- Curved gallery lightbox (click a slide to bring it to front) --- */
.plc-curved-gallery__lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(10, 20, 38, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background-color 0.4s ease, opacity 0.4s ease, visibility 0s linear 0.4s;
}
.plc-curved-gallery__lightbox.is-open {
  background: rgba(10, 20, 38, 0.78);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: background-color 0.4s ease, opacity 0.4s ease;
}
.plc-curved-gallery__lightbox-frame {
  position: relative;
  max-width: min(90vw, 760px);
  max-height: 85vh;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  transform: scale(0.86);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.plc-curved-gallery__lightbox.is-open .plc-curved-gallery__lightbox-frame { transform: scale(1); }
.plc-curved-gallery__lightbox-img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 85vh;
  object-fit: contain;
  background: #0a1426;
}
.plc-curved-gallery__lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background: rgba(10, 20, 38, 0.55);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background-color 0.25s ease;
}
.plc-curved-gallery__lightbox-close:hover { background: rgba(10, 20, 38, 0.8); }
