/* ============================================================
   George Scott Funeral Services — Site Stylesheet
   css/style.css
   All appearance/formatting lives here. No inline styles in HTML.
   ============================================================ */

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colours */
  --navy:         #211452;   /* primary brand navy  */
  --navy-mid:     #2d55b5;   /* accent blue         */
  --navy-light:   #203165;   /* darker blue         */
  --gold:         #c9a84c;   /* warm gold           */
  --gold-light:   #e0c97a;   /* lighter gold        */
  --cream:        #f7f5f0;   /* off-white / cream   */

  /* Text */
  --text-body:    rgb(33, 20, 82);   /* body text — brand navy per spec */
  --text-mid:     rgb(33, 20, 82);   /* secondary text — same colour, slightly lighter below */
  --text-muted:   rgba(33, 20, 82, 0.6);
  --text-light:   rgba(33, 20, 82, 0.45);

  /* Neutrals */
  --white:        #ffffff;
  --off-white:    #f9f8f6;

  /* Shadows — layered and soft for a more considered, premium depth */
  --shadow-sm:    0 1px 2px rgba(33, 20, 82, 0.05), 0 4px 14px rgba(33, 20, 82, 0.07);
  --shadow-md:    0 2px 4px rgba(33, 20, 82, 0.05), 0 12px 32px rgba(33, 20, 82, 0.12);
  --shadow-lg:    0 4px 8px rgba(33, 20, 82, 0.06), 0 24px 64px rgba(33, 20, 82, 0.16);

  /* Hairlines & tints */
  --hairline:     rgba(33, 20, 82, 0.09);
  --gold-pale:    rgba(201, 168, 76, 0.13);

  /* Misc */
  --radius:       10px;
  --transition:   0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif:   'Cormorant Garamond', 'Georgia', serif;

  /* Base font size — bump up per spec */
  --body-size:    1.0625rem;   /* 17px */
  --body-line:    1.75;
}


/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;   /* rem base */
}

body {
  font-family: var(--font-sans);
  font-size: var(--body-size);
  color: var(--text-body);
  background: var(--white);
  line-height: var(--body-line);
}

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

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

ul {
  list-style: none;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ── Accessibility: skip link & keyboard focus ── */
.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 2000;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 0 0 6px 6px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

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

/* ── Accessibility: honour reduced-motion preferences ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* Reveal-on-scroll elements must not stay hidden */
  .reveal, .coffin-card, .eco-card, .photo-strip__item {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ============================================================
   TYPOGRAPHY UTILITIES
   ============================================================ */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

.section-title.white { color: var(--white); }

.section-intro {
  font-size: 1.0625rem;
  color: var(--text-mid);
  max-width: 620px;
  line-height: 1.75;
}

/* Gold rule divider */
.gold-rule {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  margin-bottom: 1.5rem;
}
.gold-rule.center {
  margin-left: auto;
  margin-right: auto;
}

/* Petal divider — hairline · emblem · hairline.
   RULE: centred blocks only. Left-justified blocks keep the plain
   gold rule above; never add the ornament to a left-aligned head.
   Add `.light` on navy sections (white-petal emblem). */
.gold-rule.center {
  position: relative;
  width: 150px;
  height: 18px;
  background: url('../assets/images/emblem-navy.png') center / 16px auto no-repeat;
}
.gold-rule.center.light {
  background-image: url('../assets/images/emblem.png');
}
.gold-rule.center::before,
.gold-rule.center::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 1px;
}
.gold-rule.center::before {
  left: 0;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.gold-rule.center::after {
  right: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
}


/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section    { padding: 90px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 32px;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font-sans);
}
.btn i { font-size: 0.85em; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-mid);
  border-color: var(--navy-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* Alias used on several CTA bands — same treatment as btn-outline-white
   (white text + faint white border on dark/navy backgrounds). */
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.6);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
  transform: translateY(-1px);
}

/* Solid navy button — used on light/cream sections. */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  border-color: var(--navy-light);
  transform: translateY(-1px);
}

.btn-gold {
  background: linear-gradient(160deg, var(--gold-light) 0%, var(--gold) 55%);
  color: var(--navy);
  border-color: rgba(33, 20, 82, 0.12);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 10px rgba(201, 168, 76, 0.25);
}
.btn-gold:hover {
  background: linear-gradient(160deg, #e8d48c 0%, var(--gold-light) 55%);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 6px 22px rgba(201, 168, 76, 0.4);
}


/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.topbar a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar a:hover { color: var(--gold-light); }

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
}

.topbar__item {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.topbar__item i {
  font-size: 0.72rem;
  color: var(--gold);
}

.topbar__label {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}


/* ============================================================
   SITE HEADER
   ============================================================ */
/* Flat navy, no seam — the header blends into the navy hero below
   as one continuous canvas. Elevation appears only once the page
   scrolls (`.scrolled` is toggled by js/components.js). */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 6px 28px rgba(20, 10, 50, 0.45);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 24px;
}

/* Transparent logo in header — taller than the old landscape logo */
.header__logo img {
  height: 88px;
  width: auto;
}


/* ============================================================
   NAVIGATION
   ============================================================ */
.nav__list {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav__item {
  position: relative;
}

/* Parent link — display:flex so chevron sits inline */
.nav__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 13px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav__link:hover,
.nav__link.active {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.06);
}

/* Chevron indicator — shown only on items that have a dropdown */
.nav__item--has-dropdown > .nav__link::after {
  content: '\f078';                 /* fa-chevron-down */
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 0.6rem;
  opacity: 0.65;
  transition: transform var(--transition);
  display: inline-block;
}

.nav__item--has-dropdown:hover > .nav__link::after {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--gold);
}

/* Dropdown panel */
.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  min-width: 220px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  list-style: none;
  z-index: 100;
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Dropdown links — larger than before */
.nav__dropdown li a {
  display: block;
  padding: 11px 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;       /* ← slightly larger than top-level nav */
  font-weight: 400;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav__dropdown li:last-child a {
  border-bottom: none;
}

.nav__dropdown li a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.07);
  padding-left: 26px;
}

/* CTA button in nav */
.nav__cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  padding: 9px 18px !important;
  border-radius: 4px;
  font-weight: 600 !important;
}
.nav__cta:hover {
  background: var(--gold-light) !important;
  color: var(--navy) !important;
}
/* Hide chevron on CTA */
.nav__cta::after { display: none !important; }

/* Hamburger toggle (hidden on desktop) */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}


/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.mobile-nav__header img {
  height: 56px;
  width: auto;
}

.mobile-nav__close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-nav__links { list-style: none; }

.mobile-nav__links a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  transition: color 0.2s;
}
.mobile-nav__links a:hover { color: var(--gold); }

/* Mobile sub-headings */
.mobile-nav__group-label {
  display: block;
  padding: 14px 0 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mobile-nav__sub a {
  padding-left: 16px;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.7);
}


/* ============================================================
   HERO — headline + CTAs only (logo now in header)
   ============================================================ */
.hero {
  position: relative;
  min-height: 580px;
  background: var(--navy);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/procession-scaled-e1724096252564.jpeg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(33, 20, 82, 0.96) 0%,
    rgba(33, 20, 82, 0.75) 45%,
    rgba(45, 85, 181, 0.55) 100%
  );
}

.hero__texture {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255, 255, 255, 0.012) 40px,
    rgba(255, 255, 255, 0.012) 41px
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 90px 0 80px;
}

/* Single-column centred layout now the logo lives in the header */
.hero__content {
  max-width: 680px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.hero__eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.2rem;
}

.hero__title strong {
  font-weight: 500;
  color: var(--gold-light);
}

.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.8;
  margin-bottom: 2.2rem;
}

.hero__phone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.hero__phone-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.hero__phone-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__phone-number {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--white);
  transition: color 0.2s;
}

.hero__phone-number:hover { color: var(--gold-light); }

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


/* ============================================================
   TRUST STRIP
   ============================================================ */
.trust-strip {
  background: var(--cream);
  border-bottom: 1px solid #e5e0d4;
  padding: 22px 0;
}

.trust-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered entrance — js/components.js sets data-animate and adds
   .visible per item as the strip scrolls into view. Without JS the
   attribute is never set, so items stay fully visible. */
.trust-strip[data-animate] .trust-item {
  opacity: 0;
  transform: translateY(12px);
}
.trust-strip[data-animate] .trust-item.visible {
  opacity: 1;
  transform: none;
}

.trust-item i {
  font-size: 1.3rem;
  color: var(--gold);
}

.trust-item strong {
  font-size: 0.875rem;
  font-weight: 600;
  display: block;
  line-height: 1.1;
  color: var(--text-body);
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Mid widths: centred, evenly-spaced rows (3 + 2) instead of the
   ragged space-between wrap. */
@media (max-width: 1024px) {
  .trust-strip__inner {
    justify-content: center;
    column-gap: 44px;
    row-gap: 18px;
  }
}

/* Small screens: tidy two-column grid, icon above centred text,
   the fifth item spanning the full width. */
@media (max-width: 600px) {
  .trust-strip { padding: 26px 0; }
  .trust-strip__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px 12px;
  }
  .trust-item {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  .trust-item:last-child { grid-column: 1 / -1; }
  .trust-item i { font-size: 1.45rem; }
  .trust-item strong { margin-bottom: 2px; }
  .trust-item span { display: block; line-height: 1.35; }
}


/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about { background: var(--white); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__images { position: relative; }

.about__img-main {
  border-radius: var(--radius);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
}

.about__img-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 55%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--white);
  box-shadow: var(--shadow-md);
}

.about__badge {
  position: absolute;
  top: 24px;
  left: -24px;
  background: var(--navy);
  color: var(--white);
  padding: 18px 22px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.about__badge-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.about__badge-text {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-top: 2px;
}

.about__body {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1.2rem;
}


/* ============================================================
   SERVICES GRID
   ============================================================ */
.services { background: var(--cream); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 50px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.service-card--image { background-color: var(--navy); }

.service-card--image .card__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card--image:hover .card__bg { transform: scale(1.06); }

.service-card--plain {
  background: var(--white);
  border: 1px solid #e5e0d4;
  justify-content: flex-start;
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  min-height: 0;
}

.service-card--plain:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.card__body {
  position: relative;
  z-index: 2;
  padding: 36px 32px;
}

.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(224, 201, 122, 0.28), rgba(201, 168, 76, 0.14));
  box-shadow: inset 0 0 0 1px rgba(201, 168, 76, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: var(--transition);
}

.service-card--image .card__icon { background: rgba(255, 255, 255, 0.15); }
.card__icon i, .card__icon svg { font-size: 1.2rem; width: 24px; height: 24px; color: var(--gold); }
.service-card--plain .card__icon i, .service-card--plain .card__icon svg { color: var(--navy); }
.service-card:hover .card__icon { background: var(--gold); }
.service-card:hover .card__icon i, .service-card:hover .card__icon svg { color: var(--navy); }

.card__title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.25;
}

.service-card--plain .card__title { color: var(--navy); }

.card__desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.service-card--plain .card__desc { color: var(--text-body); }

.card__arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 16px;
  transition: gap var(--transition);
}

.service-card--plain .card__arrow { color: var(--navy-mid); }
.service-card:hover .card__arrow  { gap: 12px; }


/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section { background: var(--white); overflow: hidden; }

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 240px 240px;
  gap: 12px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 2.5rem;
}

.gallery__item {
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
}

.gallery__item:first-child { grid-row: 1 / 3; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item::after {
  content: '\f002';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  inset: 0;
  background: rgba(33, 20, 82, 0.45);
  color: var(--white);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.gallery__item:hover::after { opacity: 1; }


/* ============================================================
   CTA CARDS
   ============================================================ */
.cta-section { background: var(--navy); }

.cta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.cta-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.cta-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cta-card__num {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 12px;
}

.cta-card__title {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}

.cta-card__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.7;
  flex: 1;
}

.cta-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-top: 20px;
  transition: gap var(--transition);
}

.cta-card:hover .cta-card__link { gap: 12px; }


/* ============================================================
   STATEMENT / PROMISE
   ============================================================ */
.statement {
  background: var(--cream);
  position: relative;
  overflow: hidden;
}

.statement::before {
  content: '\201C';
  font-family: var(--font-serif);
  font-size: 22rem;
  font-weight: 700;
  color: var(--navy);
  opacity: 0.04;
  position: absolute;
  top: -80px;
  left: -20px;
  line-height: 1;
  pointer-events: none;
}

.statement__inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.statement__quote {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--navy);
  line-height: 1.55;
  margin-bottom: 2rem;
}

.statement__body {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.85;
  margin-bottom: 1rem;
}


/* ============================================================
   MEMBERSHIPS
   ============================================================ */
.memberships { background: var(--white); }

.memberships__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.memberships__logo {
  transition: var(--transition);
  max-height: 55px;
  width: auto;
}

.memberships__logo:hover { filter: none; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #180d3e 100%);
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(201, 168, 76, 0.35);
  position: relative;
}
/* Slim gold crown line above the footer */
.site-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, 60%);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer__main {
  padding: 70px 0 50px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer__logo { margin-bottom: 20px; }

.footer__logo img {
  height: 56px;
  width: auto;
}

.footer__tagline {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 20px;
  line-height: 1.55;
}

.footer__contact a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer__contact a:hover { color: var(--gold); }

.footer__contact i {
  color: var(--gold);
  width: 16px;
  font-size: 0.85rem;
}

.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
}

.footer__links { list-style: none; }

.footer__links li { margin-bottom: 8px; }

.footer__links a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s, padding-left 0.2s;
}

.footer__links a:hover {
  color: var(--gold);
  padding-left: 4px;
}

.footer__accreditations {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.footer__accreditations img {
  max-height: 40px;
  width: auto;
  transition: var(--transition);
}

.footer__accreditations img:hover {
  transform: scale(1.05);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__legal {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 700px;
}

.footer__copyright {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}


/* ============================================================
   IMMEDIATE-NEED BAND
   Slim, dignified pathway for recently bereaved visitors.
   ============================================================ */
.urgent-band {
  background: linear-gradient(135deg, #1a0f42 0%, var(--navy) 60%, #2a1a66 100%);
  border-top: 1px solid rgba(201, 168, 76, 0.3);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  padding: 30px 0;
}

.urgent-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.urgent-band__text {
  border-left: 3px solid var(--gold);
  padding-left: 22px;
}

.urgent-band__text h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  font-weight: 500;
  color: var(--white);
  line-height: 1.25;
  margin: 0 0 4px;
}

.urgent-band__text p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0;
  max-width: 520px;
}

.urgent-band__actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .urgent-band__inner { flex-direction: column; align-items: flex-start; }
  .urgent-band__actions { width: 100%; }
  .urgent-band__actions .btn { flex: 1; }
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .nav__list  { display: none; }
  .nav__toggle { display: flex; }

  .about__grid { grid-template-columns: 1fr; gap: 48px; }
  .about__img-accent { display: none; }
  .about__badge { top: 16px; left: 16px; }

  .footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .hero__inner { padding: 60px 0 50px; }

  .services__grid { grid-template-columns: 1fr; }

  .gallery__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 200px 200px;
  }
  .gallery__item:first-child { grid-row: 1 / 2; }

  .cta-grid { grid-template-columns: 1fr 1fr; }

  .trust-strip__inner { justify-content: center; }

  /* Compact, two-column footer on mobile/tablet:
     brand block spans the top, the three link groups tile 2-up. */
  .footer__main {
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
    row-gap: 32px;
    padding: 48px 0 36px;
  }
  .footer__main > div:first-child { grid-column: 1 / -1; }
  /* Services has the most links — let it span two rows so the shorter
     About / Information groups stack in the other column and the
     columns stay balanced (no large empty gap). */
  .footer__main > div:nth-child(3) { grid-row: span 2; }

  .footer__heading {
    font-size: 0.68rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }
  .footer__links li { margin-bottom: 6px; }
  .footer__links a { font-size: 0.85rem; }

  .memberships__grid { gap: 28px; }
}

/* ── Compact header & topbar on small screens ──
   Less chrome, no wrapping: the topbar keeps only the phone
   number (centred, one line) and the header slims right down. */
@media (max-width: 768px) {
  .topbar { padding: 6px 0; }
  .topbar__inner { justify-content: center; gap: 18px; }
  .topbar__item--email { display: none; }

  .header__inner { padding: 10px 0; }
  .header__logo img { height: 66px; }
}

/* ── Small-screen hero & buttons: calmer scale ──
   The brand (logo) leads; headline, phone and buttons step down
   so no single element dominates the first screen. */
@media (max-width: 640px) {
  .hero__inner { padding: 44px 0 40px; }

  .hero__eyebrow {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    margin-bottom: 0.85rem;
  }
  .hero__title {
    font-size: 1.9rem;
    margin-bottom: 0.9rem;
  }
  .hero__subtitle {
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 1.6rem;
  }
  /* The phone number already sits in the topbar directly above and
     in the urgent band directly below — the hero's phone row is the
     third repeat in one screen, so it goes on phones. */
  .hero__phone { display: none; }

  /* Quieter buttons everywhere on phones — still full-width tap
     targets, but visually lighter than the content they support. */
  .btn {
    padding: 12px 20px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
  }

  .urgent-band { padding: 24px 0; }
  .urgent-band__text { padding-left: 16px; }
  .urgent-band__text h2 { font-size: 1.25rem; }
  .urgent-band__text p { font-size: 0.86rem; }
}

@media (max-width: 480px) {
  .cta-grid { grid-template-columns: 1fr; }

  .gallery__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .gallery__item:first-child { grid-row: auto; }

  .hero__actions { flex-direction: column; }

  .topbar__label { display: none; }

  /* Footer: single tight column, smaller logos, less air */
  .footer__main {
    grid-template-columns: 1fr 1fr;
    column-gap: 20px;
    row-gap: 26px;
    padding: 40px 0 30px;
  }
  .footer__tagline { font-size: 0.92rem; margin-bottom: 14px; }
  .footer__contact a { font-size: 0.85rem; margin-bottom: 8px; }
  .footer__social { margin-top: 12px; }
  .footer__accreditations { gap: 10px; margin-top: 10px; }
  .footer__accreditations img { max-height: 30px; }
  .footer__links a { font-size: 0.82rem; }
  .footer__bottom { padding: 18px 0; }
  .footer__legal { font-size: 0.68rem; }
}


/* ============================================================
   HERO BG IMAGE PATH NOTE
   The .hero__bg background-image uses a relative path from css/
   which resolves to assets/images/ correctly when stylesheet is
   at css/style.css and site root contains assets/.
   ============================================================ */

/* ============================================================
   COOKIE CONSENT OVERRIDES
   ============================================================ */
.cky-btn-accept {
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
  color: #fff !important;
}
.cky-btn-accept:hover {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
}
.cky-btn-customize, .cky-btn-reject, .cky-btn-preferences {
  border-color: var(--navy) !important;
  color: var(--navy) !important;
}
.cky-btn-customize:hover, .cky-btn-reject:hover, .cky-btn-preferences:hover {
  background-color: var(--navy) !important;
  color: #fff !important;
}
.cky-notice-des a.cky-policy, .cky-notice-btn-wrapper .cky-btn-do-not-sell {
  color: var(--gold) !important;
}
.cky-btn-revisit-wrapper {
  background-color: var(--navy) !important;
}
.cky-switch input[type="checkbox"]:checked {
  background-color: var(--navy) !important;
}
.cky-preference-content-wrapper .cky-show-desc-btn {
  color: var(--gold) !important;
}
.cky-accordion-header .cky-always-active {
  color: var(--navy) !important;
}


/* ============================================================
   NOTICE PLATE — the site's single contact moment.
   An engraved plate replacing button-row CTAs on navy bands.
   ============================================================ */
.notice-plate {
  max-width: 400px;
  margin: 0 auto;
  text-align: center;
  padding: 38px 34px 32px;
  border: 1px solid rgba(201, 168, 76, 0.55);
  outline: 1px solid rgba(201, 168, 76, 0.28);
  outline-offset: 5px;
  border-radius: 2px;
  background: rgba(16, 9, 46, 0.35);
}
.notice-plate__emblem { width: 32px; height: auto; margin: 0 auto 14px; }
.notice-plate__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 10px;
}
.notice-plate__phone {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.05rem;
  font-weight: 500;
  color: var(--white);
  line-height: 1.2;
  transition: color 0.2s;
}
.notice-plate__phone:hover { color: var(--gold-light); }
.notice-plate__sub {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 6px 0 18px;
}
.notice-plate__guidance {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 16px;
  transition: color 0.2s;
}
.notice-plate__guidance i { font-size: 0.7rem; margin-left: 4px; color: var(--gold); }
.notice-plate__guidance:hover { color: var(--gold-light); }
@media (max-width: 640px) {
  .notice-plate { padding: 30px 24px 26px; }
  .notice-plate__phone { font-size: 1.8rem; }
}


/* ============================================================
   WAYFINDER — "What do you need right now?"
   One question, three doors; panels toggled by js/components.js.
   ============================================================ */
    .wayfinder { position: relative; padding: 84px 24px 30px; }
    .wayfinder__card {
      position: relative;
      max-width: 780px;
      margin: 0 auto;
      background: var(--white);
      border: 1px solid var(--hairline);
      border-radius: var(--radius);
      box-shadow: var(--shadow-md);
      padding: 44px 44px 38px;
      text-align: center;
    }
    .wayfinder__q {
      font-family: var(--font-serif);
      font-style: italic;
      font-size: clamp(1.5rem, 2.6vw, 1.9rem);
      color: var(--navy);
      margin: 0 0 6px;
    }
    .wayfinder__hint { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 26px; }
    .wayfinder__doors { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
    .wayfinder__door {
      font-family: var(--font-sans);
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--navy);
      background: none;
      border: 1px solid rgba(33, 20, 82, 0.35);
      border-radius: 4px;
      padding: 16px 12px;
      cursor: pointer;
      transition: var(--transition);
      line-height: 1.35;
    }
    .wayfinder__door:hover { border-color: var(--gold); background: var(--gold-pale); }
    .wayfinder__door[aria-expanded="true"] {
      background: var(--navy);
      border-color: var(--navy);
      color: var(--white);
    }
    .wayfinder__panel {
      overflow: hidden;
      max-height: 0;
      opacity: 0;
      transition: max-height 0.45s ease, opacity 0.4s ease 0.05s;
      text-align: left;
    }
    .wayfinder__panel.open { max-height: 460px; opacity: 1; }
    .wayfinder__panel-inner { padding-top: 28px; border-top: 1px solid var(--hairline); margin-top: 26px; }
    .wayfinder__lead {
      font-family: var(--font-serif);
      font-style: italic;
      font-size: 1.08rem;
      color: var(--navy);
      margin: 0 0 16px;
      text-align: center;
    }
    .wayfinder__links { display: grid; gap: 8px; max-width: 460px; margin: 0 auto; }
    .wayfinder__links a {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 13px 18px;
      border: 1px solid var(--hairline);
      border-radius: 4px;
      font-size: 0.92rem;
      font-weight: 500;
      color: var(--navy);
      transition: var(--transition);
    }
    .wayfinder__links a:hover { border-color: var(--gold); background: var(--gold-pale); }
    .wayfinder__links a i { color: var(--gold); font-size: 0.75rem; }
    .wayfinder__phone {
      display: flex;
      justify-content: center;
      margin-top: 16px;
    }
@media (max-width: 900px) {
  .wayfinder__doors { grid-template-columns: 1fr; }
}


/* ============================================================
   GALLERY LIGHTBOX — shared, built by js/components.js.
   Any <a> linking to a local image opens here instead of
   navigating to the raw file. Esc / backdrop / ✕ to close.
   ============================================================ */
.glb {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(20, 11, 48, 0.96);
  padding: 56px 68px;
}
.glb.open { display: flex; }
.glb__figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
.glb__img {
  max-width: 100%;
  max-height: calc(100vh - 180px);
  width: auto;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.glb__caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  margin-top: 16px;
  max-width: 640px;
}
.glb__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.glb__close:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.glb__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}
.glb__nav:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.glb__nav--prev { left: 16px; }
.glb__nav--next { right: 16px; }
.glb__nav[hidden] { display: none; }
@media (max-width: 640px) {
  .glb { padding: 64px 14px 20px; }
  .glb__img { max-height: calc(100vh - 150px); }
  .glb__nav--prev { left: 8px; }
  .glb__nav--next { right: 8px; }
}
