:root {
  /* Lower site: opacity + body tint only (no clip-path “curtain”). */
  --site-fade-duration: 1.05s;
  --site-fade-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Hero copy/ribbon: long ease — no snap/flash. */
  --hero-reveal-duration: 1.55s;
  --hero-reveal-ease: cubic-bezier(0.18, 0.88, 0.22, 1);
  --hero-content-delay: 0s;
  /* Full-res crossfade over LQIP; keep in sync with main.js HERO_BG_FADE_MS */
  --hero-bg-img-fade-duration: 0.95s;
  --hero-bg-img-fade-ease: cubic-bezier(0.2, 0.92, 0.28, 1);
  --nav-wordmark-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --navy: #071422;
  --navy-mid: #122a45;
  --navy-deep: #040b12;
  --gold: #c6a028;
  --gold-light: #e4c45c;
  --gold-pale: #f5ecd8;
  --burgundy: #5c1f2e;
  --burgundy-soft: rgba(92, 31, 46, 0.12);
  --forest: #1a3d34;
  --forest-soft: rgba(26, 61, 52, 0.14);
  --cream: #f8f6f1;
  --white: #ffffff;
  --gray-soft: #ede8e0;
  --gray-text: #5a5550;
  --dark-text: #12100c;
  /* Shared with #giving + footer — warm tan band */
  --tan-section: linear-gradient(180deg, #f3efe6 0%, #e4dcd0 100%);
  /* Spacing scale (8px base) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --section-y: clamp(4.5rem, 9.5vw, 8rem);
  /* Wider canvas on desktop; phones stay padded */
  --section-x: clamp(1.125rem, 2.25vw + 0.5rem, 3.25rem);
  --content-max: 1440px;
  /* Wider cap for dense card rows (services, generations) on large screens */
  --content-max-wide: min(1720px, 96vw);
  /* Services: nearly full-bleed on large desktops */
  --content-max-services: min(1920px, 98vw);
  /* Hero: use horizontal space on large monitors; copy measure stays readable */
  --hero-text-max: min(1920px, 98vw);
  --hero-copy-max: 88rem;
  --intro-text-max: 52rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Matches hero/body at top so no white strip before CSS loads */
  background-color: var(--navy-deep);
}

body {
  font-family: "Plus Jakarta Sans", "Montserrat", system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark-text);
  overflow-x: hidden;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Same timing as #siteBelowHero so navy→cream matches the main fade (all viewports). */
  transition: background-color var(--site-fade-duration) var(--site-fade-ease);
}

/* At top of page: match hero navy so iOS “peek” strips don’t flash cream; fades with .site-below-hero */
body.site-at-hero-top {
  background-color: var(--navy-deep);
}

/* ───── NAV ───── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--section-x);
  height: 84px;
  /* Solid bar — avoids backdrop-filter repaints during scroll (smoother on mid devices) */
  background: rgba(6, 16, 24, 0.98);
  border-bottom: 1px solid rgba(201, 162, 39, 0.22);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  /* No height transition — animating bar height while the wordmark reflows reads as “glitchy”. */
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

nav.scrolled {
  height: 68px;
  background: rgba(6, 16, 24, 0.995);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  /* Prevent flex shrink from clipping to zero width on mobile (FOUT / layout bugs) */
  min-width: 0;
}

/* Logo PNG is transparent — no faux “card” behind it */
.nav-logo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.nav-logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 132px;
  flex-shrink: 0;
  object-fit: contain;
  /* Slight lift so mid-grey artwork reads on dark nav */
  filter: brightness(1.14) contrast(1.06);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
  /* Reserve two lines so layout doesn’t jump when fonts resolve (editor preview + mobile). */
  min-height: 2.65rem;
  /* Hidden until Cormorant 600 is ready — avoids visible swap (bold/size jump). JS adds .js-nav-wordmark-ready */
  opacity: 0;
  transition: opacity 0.85s var(--nav-wordmark-ease);
}

html.js-nav-wordmark-ready .nav-logo-text {
  opacity: 1;
}

.nav-logo-text span:first-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.03em;
}

.nav-logo-text span:last-child {
  display: block;
  margin-top: 0.12em;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .nav-logo-text {
    opacity: 1;
    transition: none;
  }
}

/*
 * Below hero: body.site-at-hero-top + opacity transition — same path on tablet, mobile, and desktop.
 * (Scroll-linked vars on desktop were janky; this matches the smooth mobile behavior.)
 */
.site-below-hero,
#siteBelowHero {
  transition: opacity var(--site-fade-duration) var(--site-fade-ease);
}

body.site-at-hero-top .site-below-hero,
body.site-at-hero-top #siteBelowHero {
  opacity: 0;
  pointer-events: none;
}

body:not(.site-at-hero-top) .site-below-hero,
body:not(.site-at-hero-top) #siteBelowHero {
  opacity: 1;
  pointer-events: auto;
}

/*
 * Desktop: animating #siteBelowHero opacity 0→1 composites a translucent white spotlight grid
 * over the hero and reads as a “gray / milky” band (partial opacity blends layers). Keep the main
 * landmark fully opaque here. ≤900px: unchanged so cream content doesn’t flash under the hero on phones.
 */
@media (min-width: 901px) {
  body.site-at-hero-top .site-below-hero,
  body.site-at-hero-top #siteBelowHero {
    opacity: 1;
    pointer-events: auto;
  }

  .site-below-hero,
  #siteBelowHero {
    transition: none;
  }

  /* Avoid a long navy→cream blend beside the hero while scrolling (reads as a pale “band”). */
  body {
    transition: background-color 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-at-hero-top {
    background-color: var(--cream);
  }

  .site-below-hero,
  #siteBelowHero {
    transition: none;
  }

  body.site-at-hero-top .site-below-hero,
  body.site-at-hero-top #siteBelowHero {
    opacity: 1;
    pointer-events: auto;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2.5rem);
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: clamp(0.72rem, 0.66rem + 0.2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.25s;
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--gold-light);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  background: linear-gradient(135deg, var(--gold) 0%, #a88620 100%) !important;
  color: var(--navy-deep) !important;
  padding: 11px clamp(1.1rem, 1vw + 0.5rem, 1.5rem);
  border-radius: 3px;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  font-size: clamp(0.68rem, 0.62rem + 0.15vw, 0.76rem) !important;
  transition: transform 0.2s, box-shadow 0.25s !important;
  box-shadow: 0 4px 24px rgba(201, 162, 39, 0.35);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(201, 162, 39, 0.45);
}

.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.06);
}

.hamburger:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ───── HERO ───── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* Softer than flat navy while layers load */
  background:
    radial-gradient(ellipse 120% 85% at 50% 42%, rgba(26, 48, 72, 0.45) 0%, transparent 58%),
    linear-gradient(180deg, #0a1624 0%, var(--navy-deep) 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: var(--navy-deep);
}

/* Tiny JPEG scaled up + blur — reads as photographic while full-res loads */
.hero-bg-lqip {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.1);
  filter: blur(10px) saturate(1.08);
  pointer-events: none;
  opacity: 1;
}

/*
 * Full-res: fades in over LQIP when .hero-bg-img--loaded (slow networks).
 * .hero-bg-img--instant skips transition (cached / error / reduced motion).
 */
.hero-bg-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  /* Subtle scale on large screens only — on phones it reads as “too zoomed” with cover */
  transform: scale(1.02);
  opacity: 0;
  transition: opacity var(--hero-bg-img-fade-duration) var(--hero-bg-img-fade-ease);
}

.hero-bg-img.hero-bg-img--loaded {
  opacity: 1;
}

.hero-bg-img.hero-bg-img--instant {
  transition: none !important;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(
    115deg,
    rgba(6, 16, 24, 0.92) 0%,
    rgba(10, 22, 40, 0.78) 38%,
    rgba(18, 42, 74, 0.65) 100%
  );
}

/* Never tie background stack to .hero-ready — only .hero-content / .ribbon fade (not the photo fade) */
.hero .hero-bg,
.hero .hero-bg::after,
.hero .hero-bg-shine,
.hero .hero-glow,
.hero .hero-glow2,
.hero .hero-vignette {
  opacity: 1;
  transition: none;
}

.hero-bg-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(201, 162, 39, 0.06) 35%,
    transparent 55%,
    rgba(228, 196, 92, 0.09) 100%
  );
  pointer-events: none;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: repeating-linear-gradient(
    45deg,
    var(--gold) 0,
    var(--gold) 1px,
    transparent 0,
    transparent 48px
  );
  background-size: 36px 36px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -25%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(
    circle,
    rgba(201, 162, 39, 0.18) 0%,
    transparent 62%
  );
  pointer-events: none;
}

.hero-glow2 {
  position: absolute;
  bottom: -15%;
  left: -15%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(
    circle,
    rgba(19, 42, 74, 0.55) 0%,
    transparent 65%
  );
  pointer-events: none;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 85% 70% at 50% 45%,
    transparent 0%,
    rgba(6, 16, 24, 0.55) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(6.5rem, 18vh, 9.5rem) var(--section-x) clamp(4.5rem, 12vh, 7rem);
  width: 100%;
  /* Isolates hero copy reflow while webfonts resolve */
  contain: layout;
  /* Transition must live here (not only on .hero-ready) or opacity won’t animate */
  transition:
    opacity var(--hero-reveal-duration) var(--hero-reveal-ease),
    transform var(--hero-reveal-duration) var(--hero-reveal-ease);
}

.hero .ribbon {
  transition:
    opacity var(--hero-reveal-duration) var(--hero-reveal-ease),
    transform var(--hero-reveal-duration) var(--hero-reveal-ease);
}

/* Tablet landscape + desktop: anchor from top (no vertical “float” in 100vh), centered copy, wider measure */
@media (min-width: 901px) {
  .hero {
    align-items: flex-start;
    /* Largest viewport height — avoids a short 100dvh band above the fold on some desktops. */
    min-height: 100lvh;
  }

  .hero-bg-img {
    object-position: center 30%;
  }

  .hero-bg-lqip {
    object-position: center 30%;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: var(--hero-text-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(0.75rem, 2vw, 1.75rem);
    padding-right: clamp(0.75rem, 2vw, 1.75rem);
    /* Tighter vertical rhythm — bottom space clears the lifted service-time row */
    padding-top: clamp(5.25rem, 7.5vh, 8rem);
    padding-bottom: clamp(8rem, 16vh, 12.5rem);
  }

  .hero-eyebrow {
    margin-bottom: 1.35rem;
    max-width: 100%;
  }

  .hero-title {
    margin-bottom: 0.45rem;
    line-height: 1.04;
    max-width: 100%;
  }

  .hero-title em {
    margin-top: 0.12em;
    line-height: 1.05;
  }

  .hero-subtitle {
    max-width: min(var(--hero-copy-max), 100%);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
    line-height: 1.75;
  }

  .hero-verse {
    max-width: min(var(--hero-copy-max), 100%);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.75rem;
    padding-left: 18px;
    text-align: left;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
    margin-top: 1.5rem;
    max-width: min(var(--hero-copy-max), 100%);
  }

  /* Ribbon: sits above the fold line — not glued to the viewport bottom */
  .hero .ribbon {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(4.25rem, 11vh, 7.5rem);
    z-index: 4;
  }

}

/* Large desktop: balanced band under nav */
@media (min-width: 1200px) and (min-height: 760px) {
  .hero-content {
    padding-top: clamp(5.75rem, 8vh, 8.5rem);
    padding-bottom: clamp(8rem, 16vh, 12.5rem);
  }
}

/* Very tall viewports: don’t balloon padding — keep hero feeling intentional */
@media (min-width: 901px) and (min-height: 1000px) {
  .hero-content {
    padding-top: clamp(6rem, 9vh, 9rem);
    padding-bottom: clamp(8rem, 15vh, 12rem);
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1rem);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: min(52rem, 100%);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  display: block;
  height: 1px;
  flex: 1 1 0;
  min-width: 1.5rem;
  max-width: min(200px, 22vw);
  background: linear-gradient(90deg, var(--gold), transparent);
}

.hero-eyebrow::after {
  background: linear-gradient(270deg, var(--gold), transparent);
}

/* Ultra-wide: eyebrow lines reach further toward the edges (must follow base .hero-eyebrow) */
@media (min-width: 1400px) {
  .hero-eyebrow {
    max-width: min(72rem, 100%);
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    max-width: min(280px, 18vw);
  }
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3.4rem, 5vw + 2rem, 7.75rem);
  font-weight: 300;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 14px;
  animation: fadeUp 0.8s 0.15s ease both;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 60px rgba(0, 0, 0, 0.45);
  font-synthesis: none;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-light);
  display: block;
  font-synthesis: none;
}

.hero-subtitle {
  font-size: clamp(0.92rem, 1.1vw + 0.75rem, 1.12rem);
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.85;
  max-width: min(var(--hero-copy-max), 100%);
  margin-bottom: 40px;
  font-weight: 400;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-verse {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.12rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 44px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  animation: fadeUp 0.8s 0.4s ease both;
  max-width: min(var(--hero-copy-max), 100%);
  font-synthesis: none;
}

.hero-verse cite {
  display: block;
  font-style: normal;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--gold-light);
  margin-top: 10px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.5s ease both;
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  margin-top: clamp(1.75rem, 4vh, 3rem);
  padding: 0;
  animation: fadeUp 0.8s 0.58s ease both;
  justify-content: center;
}

.hero-trust li {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-trust li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.6);
}

.hero-trust strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

/*
 * Copy + ribbon: soft fade + lift (staggered with full-res crossfade in JS).
 */
.hero:not(.hero-ready) .hero-content {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
}

.hero.hero-ready .hero-content {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--hero-content-delay);
}

.hero:not(.hero-ready) .hero-eyebrow,
.hero:not(.hero-ready) .hero-title,
.hero:not(.hero-ready) .hero-subtitle,
.hero:not(.hero-ready) .hero-verse,
.hero:not(.hero-ready) .hero-actions,
.hero:not(.hero-ready) .hero-trust,
.hero.hero-ready .hero-eyebrow,
.hero.hero-ready .hero-title,
.hero.hero-ready .hero-subtitle,
.hero.hero-ready .hero-verse,
.hero.hero-ready .hero-actions,
.hero.hero-ready .hero-trust {
  animation: none !important;
}

.hero:not(.hero-ready) .ribbon {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}

.hero.hero-ready .ribbon {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition-delay: var(--hero-content-delay);
}

@media (prefers-reduced-motion: reduce) {
  .hero:not(.hero-ready) .hero-content,
  .hero:not(.hero-ready) .ribbon {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero.hero-ready .hero-content,
  .hero.hero-ready .ribbon {
    transition-delay: 0s !important;
  }
}

/* Desktop / laptop: larger type — must follow base .hero-* so it wins in cascade */
@media (min-width: 1024px) {
  .hero-eyebrow {
    font-size: clamp(0.72rem, 0.48rem + 0.45vw, 0.88rem);
  }

  .hero-title {
    font-size: clamp(4.5rem, 5.5vw + 2.75rem, 10rem);
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
  }

  .hero-subtitle {
    font-size: clamp(1.08rem, 1.32vw + 0.92rem, 1.5rem);
    line-height: 1.68;
    margin-bottom: 1.35rem;
  }

  .hero-verse {
    font-size: clamp(1.26rem, 0.92vw + 1.02rem, 1.82rem);
    line-height: 1.58;
    margin-bottom: 1.5rem;
  }

  .hero-verse cite {
    font-size: clamp(0.74rem, 0.32vw + 0.65rem, 0.88rem);
  }

  .hero-trust li {
    font-size: clamp(0.76rem, 0.42vw + 0.62rem, 0.95rem);
    letter-spacing: 0.1em;
  }

  .hero .btn-primary,
  .hero .btn-outline {
    font-size: clamp(0.78rem, 0.32vw + 0.68rem, 0.92rem);
    padding: clamp(1.05rem, 0.65vw + 0.55rem, 1.4rem) clamp(2rem, 2.8vw + 1.25rem, 3.25rem);
  }
}

/* After base .hero-title / .hero-subtitle — ultra-wide bump */
@media (min-width: 1400px) {
  .hero-title {
    font-size: clamp(4.75rem, 4.8vw + 3rem, 10.75rem);
  }

  .hero-subtitle {
    font-size: clamp(1.12rem, 1.2vw + 1rem, 1.62rem);
  }
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: var(--navy-deep);
  padding: 17px 40px;
  border-radius: 3px;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  border: 2px solid rgba(224, 188, 74, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 50px rgba(201, 162, 39, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  padding: 17px 40px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* ───── SERVICE TIMES RIBBON (mobile: full-width strip; desktop in .hero: transparent strip, cards float on photo) ───── */
.ribbon {
  background: linear-gradient(
    180deg,
    var(--navy-deep) 0%,
    #0c1824 18%,
    #3d4d5c 42%,
    #9aa8b0 68%,
    #e8edf0 90%,
    var(--white) 100%
  );
  padding: 0;
  margin: 0;
  width: 100%;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 -10px 36px rgba(0, 0, 0, 0.1);
}

/* Hero ribbon only: no strip gradient (desktop + mobile) — gold cards sit on the photo */
.hero .ribbon {
  background: transparent;
  box-shadow: none;
}

.ribbon-inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: min(1680px, 100%);
  margin: 0 auto;
  padding: clamp(10px, 1.5vw, 14px) clamp(12px, 2vw, 28px);
  gap: clamp(8px, 1.2vw, 12px);
  align-items: stretch;
}

@media (min-width: 901px) {
  .hero .ribbon .ribbon-inner {
    max-width: min(var(--content-max-services), 100%);
    padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    gap: clamp(1rem, 2.2vw, 2rem);
  }

  .hero .ribbon .ribbon-label {
    font-size: clamp(0.68rem, 0.55vw + 0.52rem, 0.82rem);
    letter-spacing: 0.18em;
  }

  .hero .ribbon .ribbon-value {
    font-size: clamp(1.28rem, 1.85vw + 0.55rem, 2.05rem);
  }

  .hero .ribbon .ribbon-sub {
    font-size: clamp(0.68rem, 0.4vw + 0.55rem, 0.82rem);
  }
}

/* Hero ribbon: type-only band — no card chrome, gold on photo */
.hero .ribbon .ribbon-item {
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
  padding: clamp(0.35rem, 0.9vw, 0.65rem) clamp(0.25rem, 0.8vw, 0.5rem);
  transition: opacity 0.2s ease;
}

.hero .ribbon .ribbon-item:hover {
  background: transparent;
  box-shadow: none;
  opacity: 0.92;
}

.hero .ribbon .ribbon-label {
  color: rgba(228, 196, 92, 0.78);
  margin-bottom: 0.28rem;
}

.hero .ribbon .ribbon-value {
  color: var(--gold-light);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero .ribbon .ribbon-sub {
  color: rgba(228, 196, 92, 0.7);
}

.hero .ribbon .ribbon-sub a {
  color: var(--gold-light);
  border-bottom-color: rgba(228, 196, 92, 0.4);
}

.hero .ribbon .ribbon-sub a:hover {
  color: var(--white);
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.ribbon-item {
  padding: clamp(0.65rem, 1.1vw, 0.95rem) clamp(0.5rem, 1vw, 0.85rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  border: none;
  border-radius: 12px;
  /* Opaque gold only — section behind is navy→white; no transparency on the fill */
  background: linear-gradient(
    165deg,
    var(--gold-light) 0%,
    var(--gold) 42%,
    #a88620 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 2px 10px rgba(10, 22, 40, 0.12);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ribbon-item:hover {
  background: linear-gradient(
    165deg,
    #f0dc7a 0%,
    #d4b84a 45%,
    #b89420 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 4px 14px rgba(10, 22, 40, 0.14);
}

/* Row 2: location full width under the four cells */
.ribbon-item--location {
  grid-column: 1 / -1;
  padding: clamp(0.7rem, 1.2vw, 1rem) clamp(0.75rem, 2vw, 1.5rem);
  border-radius: 12px;
}

.ribbon-item--location .ribbon-value {
  font-size: clamp(1.1rem, 1.6vw + 0.45rem, 1.65rem);
}

.ribbon-item--location .ribbon-sub {
  max-width: min(56ch, 100%);
}

.ribbon-sub a {
  color: rgba(10, 22, 40, 0.62);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(10, 22, 40, 0.2);
}

.ribbon-sub a:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

/* Narrow screens: single column stack — calmer than a 2×2 grid */
@media (max-width: 640px) {
  .ribbon-inner {
    grid-template-columns: 1fr;
    padding: 10px 14px;
    gap: 8px;
    max-width: none;
  }

  .ribbon-item {
    padding: 0.7rem 0.9rem;
  }
}

.ribbon-label {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(0.58rem, 1vw, 0.68rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.48);
  margin-bottom: 0.35rem;
  line-height: 1.25;
  max-width: 28ch;
}

.ribbon-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1rem, 1.5vw + 0.45rem, 1.45rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  word-break: break-word;
}

.ribbon-sub {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(0.62rem, 1.05vw, 0.74rem);
  color: rgba(10, 22, 40, 0.5);
  margin-top: 0.3rem;
  font-weight: 500;
  line-height: 1.4;
  max-width: 32ch;
}

/* ───── SPOTLIGHT (photo stays clean — no white wash overlay) ───── */
.spotlight {
  display: grid;
  /* Slightly favor text column on desktop — less cramped copy vs photo */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 0;
  padding: 0;
  margin: -1px 0 0;
  background: var(--white);
  align-items: stretch;
  border-top: none;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.spotlight-visual {
  position: relative;
  min-height: 380px;
  border-right: 1px solid rgba(10, 22, 40, 0.08);
}

.spotlight-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  min-height: 380px;
}

.spotlight-copy {
  width: 100%;
  max-width: none;
  margin-left: 0;
  padding: clamp(2.75rem, 5vw, 4.25rem) clamp(1.75rem, 3.5vw, 3.5rem)
    clamp(2.75rem, 5vw, 4.25rem) clamp(2rem, 3vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.spotlight-kicker {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--sp-4);
}

.spotlight-copy h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.85rem, 2.8vw + 0.85rem, 2.95rem);
  font-weight: 300;
  line-height: 1.12;
  color: var(--navy);
  margin-bottom: var(--sp-5);
}

.spotlight-copy h2 em {
  font-style: italic;
  color: var(--burgundy);
}

.spotlight-body {
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.1rem);
  line-height: 1.78;
  color: var(--gray-text);
  margin-bottom: var(--sp-8);
  /* Readable measure without a narrow “column inside a column” */
  max-width: min(52ch, 100%);
}

.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.btn-text {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy-mid);
  text-decoration: none;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}

.btn-text:hover {
  color: var(--burgundy);
  border-color: var(--burgundy);
}

/* ───── NEW HERE / GENERATIONS ───── */
.generations {
  background: linear-gradient(180deg, var(--cream) 0%, #eee9e0 100%);
  padding: var(--section-y) var(--section-x);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.generations::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.35),
    transparent
  );
}

.generations-inner {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
}

.generations-intro {
  max-width: 100%;
  margin-bottom: 44px;
}

.generations-lead {
  max-width: min(72ch, 100%);
  margin-top: 14px;
}

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

.gen-card {
  background: var(--white);
  border-radius: 8px;
  padding: 30px 26px 32px;
  border: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: 0 18px 48px rgba(7, 20, 34, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.gen-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(7, 20, 34, 0.1);
}

.gen-icon {
  display: block;
  font-size: 1rem;
  color: var(--gold);
  margin-bottom: 14px;
  opacity: 0.9;
}

.gen-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}

.gen-card p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--gray-text);
}

/* Tablet / desktop: generous block-start so sections don’t hug the prior band (esp. tall viewports) */
@media (min-width: 1024px) {
  section.generations {
    padding-block-start: clamp(5.5rem, 8vw, 7.75rem);
    padding-block-end: var(--section-y);
    padding-inline: var(--section-x);
  }

  section.services {
    padding-block-start: clamp(5.5rem, 8vw, 7.75rem);
    padding-block-end: var(--section-y);
    /* Tighter side padding so the grid reads closer to full-bleed */
    padding-inline: clamp(0.75rem, 1.85vw, 1.75rem);
  }

  .generations-inner {
    max-width: var(--content-max-wide);
  }

  .generations-lead {
    max-width: min(96ch, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .generations-grid {
    gap: clamp(1.5rem, 2.2vw, 2.35rem);
    align-items: stretch;
  }

  .gen-card {
    padding: clamp(2rem, 2.6vw, 2.75rem) clamp(1.75rem, 2.2vw, 2.35rem);
    display: flex;
    flex-direction: column;
    min-height: 100%;
  }

  .gen-icon {
    font-size: 1.15rem;
    margin-bottom: 16px;
  }

  .gen-card h3 {
    font-size: clamp(1.38rem, 0.9vw + 1.05rem, 1.62rem);
    margin-bottom: 12px;
  }

  .gen-card p {
    font-size: clamp(0.94rem, 0.35vw + 0.85rem, 1.06rem);
    line-height: 1.72;
  }
}

/* ───── SECTIONS ───── */
section {
  padding: var(--section-y) var(--section-x);
}

section.hero {
  padding: 0;
}

section.spotlight {
  padding: 0;
}

.section-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.section-label::after {
  content: "";
  flex: none;
  display: block;
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-label-on-dark {
  color: var(--gold-light);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.15rem, 4vw + 0.75rem, 4rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--navy);
}

.section-title strong {
  font-weight: 600;
}

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

.section-body {
  font-size: clamp(0.98rem, 0.35vw + 0.9rem, 1.06rem);
  line-height: 1.82;
  color: var(--gray-text);
  font-weight: 400;
  max-width: min(600px, 100%);
}

.section-body-on-dark {
  color: rgba(255, 255, 255, 0.58);
}

.section-spacer {
  height: 28px;
}

.section-spacer-sm {
  height: 24px;
}

.section-spacer-md {
  height: 32px;
}

.section-spacer-lg {
  height: 36px;
}

.section-body-tight {
  margin-top: 16px;
}

/* ───── ABOUT ───── */
.about {
  background: var(--white);
  padding: var(--section-y) var(--section-x);
  overflow: visible;
}

.about-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: center;
  overflow: visible;
}

.about-img-wrap {
  position: relative;
  overflow: visible;
}

.about-img-frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  box-shadow: 0 40px 100px rgba(10, 22, 40, 0.18);
}

.about-img-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.about-img-wrap:hover .about-img-main {
  transform: scale(1.06);
}

.about-gold-line {
  position: absolute;
  top: -24px;
  left: -24px;
  width: 58%;
  height: 58%;
  box-sizing: border-box;
  border: 2px solid var(--gold);
  border-radius: 4px;
  background: var(--white);
  pointer-events: none;
  z-index: 0;
}

.about-text {
  padding-right: 12px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 48px;
}

/*
 * Tablet / desktop (gold corners on): bottom-right mat is a ::after so it stays beneath the photo
 * (z-index 0 vs frame 1) but still paints above .about-text (column stack order).
 */
@media (min-width: 641px) {
  .about-grid .about-img-wrap {
    z-index: 2;
  }

  .about-grid .about-text {
    position: relative;
    z-index: 1;
  }

  .about-img-wrap::after {
    content: "";
    position: absolute;
    bottom: -24px;
    right: -24px;
    width: 58%;
    height: 58%;
    box-sizing: border-box;
    border: 2px solid var(--gold);
    border-radius: 4px;
    background: var(--white);
    pointer-events: none;
    z-index: 0;
  }
}

@media (min-width: 901px) {
  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 22px 24px;
  }

  /* Sunday | Wednesday / Kids | Women's / full-width address */
  .about-stats .stat:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .about-stats .stat:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .about-stats .stat:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .about-stats .stat:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .about-stats .stat:nth-child(5) {
    grid-column: 1 / -1;
    grid-row: 3;
  }
}

.stat {
  padding: 26px;
  background: var(--gray-soft);
  border-radius: 4px;
  border-left: 3px solid var(--gold);
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat--sub {
  padding: 20px 22px;
  background: rgba(237, 232, 224, 0.85);
  border-left-width: 2px;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.08);
}

.stat-wide {
  grid-column: 1 / -1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-wide .stat-num,
.stat-wide .stat-label {
  text-align: center;
  max-width: 36rem;
}

.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.65rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}

.stat-num-sub {
  font-size: 2.05rem;
}

.stat-num-sm {
  font-size: 1.45rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-text);
  margin-top: 8px;
}

/* ───── SERVICES ───── */
.services {
  background: linear-gradient(180deg, var(--cream) 0%, #eee9e0 100%);
  padding: var(--section-y) var(--section-x);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.services::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.35),
    transparent
  );
  pointer-events: none;
}

.services-header,
.services-grid {
  position: relative;
  z-index: 1;
}

.services-header {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto clamp(2.75rem, 5vw, 4.25rem);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

/* Below desktop split: stack headline + intro (tablets / large phones) */
@media (max-width: 1023px) {
  .services-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2.25rem;
  }

  .services-header .section-body {
    max-width: 100%;
    margin: 0;
    line-height: 1.78;
  }

  .service-card {
    padding: 34px 28px 36px;
  }

  .generations-intro {
    margin-bottom: 36px;
  }

  .gen-card {
    padding: 26px 22px 28px;
  }
}

.services-grid {
  max-width: var(--content-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

@media (min-width: 1024px) {
  /* Header: single centered column — title + intro read as one unit; grid stays wider below */
  .services-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: min(46rem, 100%);
    gap: 0.65rem;
    margin: 0 auto clamp(2.25rem, 4vw, 3.25rem);
  }

  .services-header .section-label {
    justify-content: center;
  }

  .services-header .section-body {
    max-width: min(40rem, 100%);
    margin: 0;
    padding-bottom: 0;
    font-size: 1.03rem;
    line-height: 1.78;
  }

  .services-grid {
    max-width: var(--content-max-services);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.35rem, 2.2vw, 1.95rem);
  }

  .service-card {
    padding: clamp(2.35rem, 2.5vw, 2.85rem) clamp(1.2rem, 1.5vw, 1.65rem);
  }

  .service-card h3 {
    font-size: clamp(1.42rem, 0.9vw + 1.05rem, 1.72rem);
  }

  .service-card p {
    font-size: clamp(0.88rem, 0.2vw + 0.82rem, 0.96rem);
  }

  .service-icon {
    width: clamp(52px, 4vw, 58px);
    height: clamp(52px, 4vw, 58px);
  }

  .service-icon-svg {
    width: clamp(1.35rem, 1.1vw, 1.5rem);
    height: clamp(1.35rem, 1.1vw, 1.5rem);
  }
}

@media (min-width: 1400px) {
  .services-header {
    max-width: min(50rem, 100%);
    gap: 0.75rem;
    margin-bottom: clamp(2.75rem, 3.5vw, 4rem);
  }
}

/* Large desktops: five cards in one balanced row */
@media (min-width: 1400px) {
  .services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: clamp(1.5rem, 2vw, 2.25rem);
  }
}

@media (min-width: 1600px) {
  .services {
    padding-left: clamp(1rem, 3vw, 3rem);
    padding-right: clamp(1rem, 3vw, 3rem);
  }

  .services-header {
    margin-bottom: clamp(3rem, 4vw, 4.5rem);
  }
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: 8px;
  padding: 44px 38px;
  box-shadow: 0 18px 48px rgba(7, 20, 34, 0.06);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transform: scaleX(0.96);
  transform-origin: center;
  transition: opacity 0.3s ease, transform 0.35s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 64px rgba(7, 20, 34, 0.1);
  border-color: rgba(201, 162, 39, 0.35);
}

.service-card:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.service-icon {
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(10, 22, 40, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

/* Inline SVGs — same on iOS / Android / desktop (no emoji font) */
.service-icon-svg {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  flex-shrink: 0;
}

.service-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-time {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--gray-text);
}

/* ───── EVENTS (between Services + New Here) ───── */
.events {
  background: var(--white);
  padding: var(--section-y) var(--section-x);
  position: relative;
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.events-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.events-header {
  text-align: center;
  max-width: min(42rem, 100%);
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
}

.events-header .section-label {
  justify-content: center;
}

.events-header .section-label::after {
  display: none;
}

.events-lead {
  margin: 14px auto 0;
}

.events-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.35rem, 2.5vw, 2rem);
  margin-bottom: clamp(2.5rem, 4vw, 3.25rem);
}

.event-card {
  background: var(--cream);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(10, 22, 40, 0.07);
  box-shadow: 0 18px 48px rgba(7, 20, 34, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.event-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.event-card-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.event-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.event-card:hover .event-card-media img {
  transform: scale(1.04);
}

.event-card-body {
  padding: clamp(1.35rem, 2vw, 1.75rem) clamp(1.35rem, 2vw, 1.85rem)
    clamp(1.5rem, 2vw, 1.85rem);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.event-card-date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.event-card-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.45rem, 1.2vw + 1rem, 1.85rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1.2;
}

.event-card-text {
  font-size: clamp(0.92rem, 0.25vw + 0.85rem, 1.02rem);
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 18px;
  flex: 1;
}

.event-card-cta {
  align-self: flex-start;
}

/* Mini cards — no images; centered section title; title → date → short description */
.events-more {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.events-more-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 0.9vw + 1rem, 1.35rem);
  font-weight: 600;
  color: var(--navy);
  text-align: center;
  max-width: min(42rem, 100%);
  margin: 0 auto clamp(1.35rem, 2.5vw, 1.85rem);
  padding: 0 0.5rem 0.9rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
}

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 2vw, 1.35rem);
  width: 100%;
}

@media (min-width: 721px) {
  .events-list {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: stretch;
  }
}

.events-calendar-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  min-height: 100%;
  padding: clamp(1.2rem, 2vw, 1.5rem) clamp(1.25rem, 2vw, 1.65rem);
  background: var(--cream);
  border: 1px solid rgba(10, 22, 40, 0.07);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(7, 20, 34, 0.055);
}

.events-calendar-card__title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 0.9vw + 1rem, 1.45rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
  line-height: 1.22;
}

.events-calendar-card__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0;
}

.events-calendar-card__summary {
  font-size: clamp(0.88rem, 0.2vw + 0.82rem, 0.95rem);
  line-height: 1.65;
  color: var(--gray-text);
  margin: 0;
  flex: 1;
}

.events-list-sep {
  display: none;
}

@media (max-width: 720px) {
  .events-featured {
    grid-template-columns: 1fr;
  }

  .events-more {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  section.events {
    padding-block-start: clamp(5.5rem, 8vw, 7.75rem);
    padding-block-end: var(--section-y);
    padding-inline: var(--section-x);
  }
}

/* ───── LIVE STREAM ───── */
/* White band — contrasts with adjacent cream sections and #giving below */
.livestream {
  background: var(--white);
  padding: var(--section-y) var(--section-x);
  border-bottom: 1px solid rgba(10, 22, 40, 0.06);
}

.livestream-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: center;
}

.livestream-lead {
  margin-top: 22px;
}

.fb-embed {
  background: var(--navy);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 32px 80px rgba(10, 22, 40, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.fb-embed-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.55) 0%, rgba(26, 58, 92, 0.45) 100%),
    url("../assets/gallery-service.png") center / cover;
  opacity: 1;
}

.fb-play {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  color: white;
}

.fb-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  padding-left: 5px;
  box-shadow: 0 0 0 14px rgba(201, 162, 39, 0.22);
  transition: transform 0.25s;
  color: var(--navy-deep);
}

.fb-embed:hover .fb-play-btn {
  transform: scale(1.1);
}

.fb-play span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.fb-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.fb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e63d3d;
  box-shadow: 0 0 12px rgba(230, 61, 61, 0.6);
  opacity: 0.92;
}

@media (prefers-reduced-motion: no-preference) {
  .fb-dot {
    animation: pulseDot 2.5s ease-in-out infinite;
  }
}

@keyframes pulseDot {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

/* ───── GIVING ───── */
/* Warmer / slightly deeper cream than #livestream so the two read as separate bands */
.giving {
  background: var(--tan-section);
  padding: var(--section-y) var(--section-x);
  position: relative;
  overflow: hidden;
}

.giving::before {
  content: "";
  position: absolute;
  top: 0;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.35),
    transparent
  );
  pointer-events: none;
}

.giving-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 5vw, 5.5rem);
  align-items: center;
}

.giving-accent {
  color: var(--gold);
}

.giving-verse-ref {
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.12em;
  margin-top: 10px;
  font-weight: 700;
}

.giving-card {
  background: var(--white);
  border-radius: 8px;
  padding: 52px 44px;
  box-shadow: 0 18px 48px rgba(7, 20, 34, 0.06);
  border: 1px solid rgba(10, 22, 40, 0.07);
}

.giving-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  color: var(--navy);
  margin-bottom: 10px;
}

.giving-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--gray-text);
  margin-bottom: 32px;
}

.giving-options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

.giving-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1.5px solid var(--gray-soft);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  color: var(--dark-text);
}

.giving-option:hover,
.giving-option.active {
  border-color: var(--gold);
  background: var(--gold-pale);
}

.giving-option span {
  font-size: 0.82rem;
  font-weight: 600;
}

.giving-option em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--gray-text);
}

.giving-btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--navy-deep);
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  transition: transform 0.2s, box-shadow 0.25s;
}

.giving-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(201, 162, 39, 0.4);
}

/* ───── PASTOR ───── */
.pastor {
  background: var(--white);
  padding: var(--section-y) var(--section-x);
}

.pastor-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, min(44%, 520px)) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
}

.pastor-visual {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: min(520px, 100%);
  margin-inline: 0;
  gap: var(--sp-4);
}

.pastor-main-fig {
  margin: 0;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(7, 20, 34, 0.12);
  border: 1px solid rgba(10, 22, 40, 0.06);
  height: min(480px, 52vh);
  max-height: 520px;
  flex-shrink: 0;
}

.pastor-main-fig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  vertical-align: middle;
}

.pastor-subphotos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  width: 100%;
  align-items: stretch;
}

.pastor-subphotos figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1 / 1.15;
  min-height: 0;
  box-shadow: 0 8px 28px rgba(7, 20, 34, 0.1);
  border: 1px solid rgba(10, 22, 40, 0.06);
}

.pastor-subphotos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.pastor-subphotos figure:hover img {
  transform: scale(1.04);
}

.pastor-badge {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  padding: clamp(0.5rem, 1.2vw, 0.75rem) clamp(1rem, 2vw, 1.5rem);
  border-radius: 6px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
}

.pastor-badge-floating {
  margin-top: var(--sp-2);
  align-self: stretch;
  width: 100%;
}

.pastor-badge .name {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.05rem, 1vw + 0.85rem, 1.28rem);
  font-weight: 700;
  color: var(--navy);
  display: block;
  line-height: 1.2;
}

.pastor-badge .title {
  font-size: clamp(0.55rem, 0.35vw + 0.5rem, 0.65rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(10, 22, 40, 0.62);
  margin-top: 0.15rem;
}

.pastor-text {
  padding-top: 6px;
}

.pastor-text .section-title {
  margin-bottom: 28px;
}

.pastor-lead {
  margin-top: 26px;
}

.pastor-text p {
  font-size: clamp(0.92rem, 0.25vw + 0.88rem, 1.02rem);
  line-height: 1.88;
  color: var(--gray-text);
  margin-bottom: 20px;
}

.pastor-young-note {
  margin-top: 8px;
  padding: 18px 20px;
  background: linear-gradient(
    135deg,
    var(--forest-soft) 0%,
    var(--burgundy-soft) 100%
  );
  border-radius: 6px;
  border-left: 3px solid var(--gold);
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--gray-text);
}

.pastor-young-note strong {
  color: var(--navy);
}

.pastor-quote {
  margin: 36px 0;
  padding: 30px 32px;
  background: var(--gray-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 6px 6px 0;
}

.pastor-quote blockquote {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--navy);
}

/* ───── PHOTO GALLERY ───── */
.gallery {
  background: var(--cream);
  padding: var(--section-y) var(--section-x);
}

.gallery-header {
  max-width: var(--content-max);
  margin: 0 auto 56px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 1.5rem;
}

.gallery-header-copy {
  /* `1 1 16rem` made flex-basis 16rem on the main axis — on mobile (column) that reserved ~256px of empty height below the title. */
  flex: 1 1 auto;
  min-width: 0;
}

.btn-gallery-all {
  flex: none;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  background: transparent;
  border: 1px solid rgba(10, 22, 40, 0.18);
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.btn-gallery-all:hover {
  color: var(--burgundy);
  border-color: rgba(201, 162, 39, 0.55);
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 28px rgba(10, 22, 40, 0.08);
}

.btn-gallery-all:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.gallery-grid {
  max-width: var(--content-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 260px 260px;
  gap: 14px;
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--navy);
  box-shadow: 0 16px 48px rgba(10, 22, 40, 0.12);
}

.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: block;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 16, 24, 0.75) 0%,
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ───── GALLERY MODAL + LIGHTBOX ───── */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.gallery-modal[hidden] {
  display: none !important;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 11, 18, 0.72);
  backdrop-filter: blur(6px);
}

.gallery-modal-panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  margin: clamp(0.75rem, 2vh, 1.5rem);
  max-height: calc(100dvh - clamp(1.5rem, 4vh, 2.5rem));
  height: fit-content;
  background: linear-gradient(180deg, #f7f4ed 0%, var(--cream) 100%);
  border-radius: 10px;
  border: 1px solid rgba(10, 22, 40, 0.1);
  box-shadow: 0 40px 100px rgba(4, 11, 18, 0.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gallery-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1.1rem 1.25rem 0.85rem;
  border-bottom: 1px solid rgba(10, 22, 40, 0.08);
  flex: none;
}

.gallery-modal-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.35rem, 2vw + 0.75rem, 1.75rem);
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.gallery-modal-close {
  width: 44px;
  height: 44px;
  border: none;
  background: rgba(10, 22, 40, 0.06);
  border-radius: 8px;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--navy);
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-modal-close:hover {
  background: rgba(201, 162, 39, 0.22);
}

.gallery-modal-tabs {
  display: flex;
  gap: 8px;
  padding: 0.65rem 1.25rem 1rem;
  flex: none;
}

.gallery-tab {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(10, 22, 40, 0.12);
  background: rgba(255, 255, 255, 0.5);
  color: var(--gray-text);
  cursor: pointer;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.gallery-tab:hover {
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--navy);
}

.gallery-tab.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.gallery-modal-body {
  flex: none;
  padding: 0 1.25rem 1.35rem;
  -webkit-overflow-scrolling: touch;
  max-height: calc(100dvh - 11.5rem);
  overflow-y: auto;
}

.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-modal-empty {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0.75rem;
  padding: 1.25rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(10, 22, 40, 0.12);
  border-radius: 8px;
}

.gallery-modal-thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  background: var(--navy);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.12);
}

.gallery-modal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-modal-thumb:hover img {
  transform: scale(1.06);
}

.gallery-modal-thumb:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 13000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
    env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.88);
}

.gallery-lightbox-inner {
  position: relative;
  z-index: 1;
  width: min(960px, 100vw - 2rem);
  max-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gallery-lightbox-figure {
  margin: 0;
  max-width: min(860px, 100%);
  text-align: center;
}

.gallery-lightbox-figure img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox-caption {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.45;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.gallery-lightbox-close {
  position: absolute;
  top: -2.75rem;
  right: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s;
}

.gallery-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.gallery-lightbox-nav {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}

.gallery-lightbox-nav:hover {
  background: rgba(201, 162, 39, 0.35);
  transform: scale(1.05);
}

@media (max-width: 640px) {
  .gallery-lightbox-inner {
    flex-direction: column;
    width: 100%;
    max-height: none;
    padding: 0 0.75rem;
  }

  .gallery-lightbox-nav {
    display: none;
  }

  .gallery-lightbox-close {
    position: fixed;
    top: env(safe-area-inset-top, 12px);
    right: 12px;
    z-index: 2;
  }

  .gallery-lightbox-figure img {
    max-height: min(70vh, 560px);
  }
}

/* ───── CTA BANNER ───── */
.cta-banner {
  background: linear-gradient(90deg, #c9a227 0%, #e0bc4a 50%, #c9a227 100%);
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--section-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(255, 255, 255, 0.25) 0%,
    transparent 55%
  );
  pointer-events: none;
}

.cta-banner h2,
.cta-banner p,
.cta-banner .btn-primary {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 16px;
}

.cta-em {
  font-style: italic;
}

.cta-banner p {
  font-size: clamp(0.92rem, 0.35vw + 0.85rem, 1.05rem);
  color: rgba(10, 22, 40, 0.62);
  margin-bottom: 36px;
  max-width: min(580px, 92vw);
  margin-left: auto;
  margin-right: auto;
}

/* Cream panel on gold band — readable; gold-on-gold would disappear into the banner */
.cta-banner .btn-primary {
  background: var(--white);
  border: 2px solid rgba(10, 22, 40, 0.14);
  color: var(--navy);
  box-shadow: 0 10px 36px rgba(10, 22, 40, 0.16);
}

.cta-banner .btn-primary:hover {
  background: var(--cream);
  border-color: var(--navy);
  color: var(--navy-deep);
  box-shadow: 0 14px 44px rgba(10, 22, 40, 0.22);
}

/* ───── FOOTER ───── */
/* Same warm tan as #giving — light text is body palette, not white-on-dark */
footer {
  background: var(--tan-section);
  padding: clamp(4rem, 7vw, 5.5rem) var(--section-x) 2.75rem;
  border-top: 1px solid rgba(201, 162, 39, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(2.5rem, 4vw, 3.75rem);
  margin-bottom: clamp(2.5rem, 4vw, 3.75rem);
}

.footer-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.footer-logo-img {
  display: block;
  height: clamp(2rem, 1.5vw + 1.65rem, 2.5rem);
  width: auto;
  max-width: 132px;
  object-fit: contain;
  /* Logo art is light for dark nav — darken for tan footer */
  filter: brightness(0) saturate(100%) opacity(0.88);
}

.footer-brand p {
  font-size: clamp(0.88rem, 0.2vw + 0.85rem, 0.95rem);
  line-height: 1.75;
  color: var(--gray-text);
  margin: 18px 0 28px;
  max-width: 38ch;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(10, 22, 40, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.25s;
  background: rgba(255, 255, 255, 0.45);
}

.footer-social:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
}

.footer-col h4 {
  font-size: clamp(0.68rem, 0.15vw + 0.62rem, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--navy-mid);
  text-decoration: none;
  font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.92rem);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--burgundy);
}

.footer-col address {
  font-style: normal;
  color: var(--gray-text);
  font-size: clamp(0.85rem, 0.2vw + 0.8rem, 0.92rem);
  line-height: 1.85;
}

.footer-col address a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col address a:hover {
  color: var(--burgundy);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(201, 162, 39, 0.22),
    transparent
  );
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(10, 22, 40, 0.5);
}

.footer-site-link {
  color: var(--navy-mid);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-site-link:hover {
  color: var(--burgundy);
}

/* ───── MOBILE MENU ───── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: calc(88px + env(safe-area-inset-top, 0px)) 24px max(48px, env(safe-area-inset-bottom, 0px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
  display: flex;
}

.mobile-menu a {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.2rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 300;
  transition: color 0.2s;
}

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

/* ───── ANIMATIONS ───── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: opacity 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-delay-1 {
  transition-delay: 0.04s;
}

.reveal-delay-2 {
  transition-delay: 0.08s;
}

.reveal-delay-3 {
  transition-delay: 0.12s;
}

/*
 * Scroll-reveal: mobile/tablet keeps copy visible (no opacity:0 slab on narrow screens).
 * Desktop: fade-in returns for sections after the fold; only spotlight stays pre-visible so
 * the first scroll past the hero doesn’t read as an empty white band.
 */
@media (max-width: 900px) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 901px) {
  :root {
    /* Was 1.05s — felt like “lag” on first scroll when paired with hero → main fade-in. */
    --site-fade-duration: 0.32s;
  }

  section.spotlight .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Large screens: slightly roomier gallery + primary actions read at full scale */
@media (min-width: 1200px) {
  .gallery-grid {
    grid-template-rows: minmax(280px, 17vw) minmax(280px, 17vw);
    gap: 18px;
  }

  .generations-grid {
    gap: 26px;
  }

  .btn-primary,
  .btn-outline {
    font-size: 0.78rem;
    padding: 18px 42px;
  }

  .giving-card p {
    font-size: 0.92rem;
  }

  /* Wide desktop: intro + lead can breathe (2-line lead instead of a tall narrow column) */
  .generations-intro {
    max-width: min(76rem, 100%);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: clamp(2.5rem, 4vw, 3rem);
    text-align: center;
  }

  .generations-intro .section-label {
    justify-content: center;
    gap: 14px;
  }

  .generations-intro .section-label::before {
    content: "";
    flex: none;
    display: block;
    width: min(40px, 8vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold));
  }

  .generations-intro .section-label::after {
    width: min(40px, 8vw);
    background: linear-gradient(90deg, var(--gold), transparent);
  }

  .generations-lead {
    max-width: min(100ch, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  .spotlight-copy {
    max-width: min(46rem, 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(2rem, 3.5vw, 3.5rem);
    padding-right: clamp(2rem, 3.5vw, 3.5rem);
  }
}

/* ───── RESPONSIVE ───── */
@media (max-width: 640px) {
  .gallery {
    padding-top: calc(var(--section-y) * 0.72);
  }

  .gallery-header {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.65rem;
    margin-bottom: clamp(1.15rem, 3.5vw, 1.65rem);
  }

  .gallery-header-copy {
    flex: none;
  }

  .gallery-header .section-title {
    margin-bottom: 0;
  }

  .btn-gallery-all {
    align-self: flex-start;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /*
   * Logo row: reserve space for 44px tap target + horizontal padding so wordmark never
   * collides with the hamburger or clips oddly when the webfont swaps.
   */
  .nav-logo {
    flex: 1 1 auto;
    max-width: calc(100vw - var(--section-x) * 2 - 48px);
  }

  .nav-logo-text span:first-child {
    font-size: clamp(1rem, 0.92rem + 0.35vw, 1.12rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .about-grid,
  .giving-inner,
  .livestream-inner,
  .pastor-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

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

  .pastor-visual {
    position: static;
    margin-inline: auto;
    max-width: min(440px, 100%);
  }

  .about-gold-line {
    display: none;
  }

  .about-img-wrap::after {
    content: none;
  }

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

  /* Less empty white band above first visible about content on phones */
  section.about {
    position: relative;
    z-index: 0;
    padding-top: clamp(2rem, 5vw, 3.25rem);
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:first-child {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .hero-trust {
    gap: 10px 20px;
  }

  /*
   * Mobile hero height: stable CSS units only (no JS --vh). visualViewport.resize during scroll
   * used to change --vh and made min-height jump. 100lvh ≈ largest viewport; 100dvh tracks dynamic UI.
   */
  .hero {
    flex-direction: column;
    align-items: stretch;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100lvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
  }

  /* Phones: no extra scale + centered crop so the photo doesn’t look blown-up */
  .hero-bg-img {
    transform: none;
    object-position: center 42%;
  }

  .hero-bg-lqip {
    transform: scale(1.06);
    filter: blur(7px) saturate(1.06);
    object-position: center 42%;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: flex-start;
    width: 100%;
    /* Nav + safe area */
    padding: calc(84px + env(safe-area-inset-top, 0px) + 1.75rem) var(--section-x)
      calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-eyebrow {
    margin-bottom: 1.15rem;
    max-width: 100%;
  }

  .hero-title {
    margin-bottom: 0.75rem;
  }

  .hero-subtitle {
    margin-bottom: 1.15rem;
    line-height: 1.7;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.95rem, 2.8vw + 0.55rem, 1.05rem);
  }

  .hero-verse {
    margin-bottom: 1.2rem;
    padding-left: 18px;
    font-size: 1.05rem;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  /* No margin-top: auto — avoids huge gap between quote + CTAs on tall phones */
  .hero-actions {
    margin-top: clamp(1.2rem, 2.8vh, 1.75rem);
    gap: 14px;
  }

  .hero-trust {
    margin-top: 1rem;
    padding-bottom: 0.25rem;
    justify-content: center;
  }

  /* Service-time ribbon is desktop-only — times appear again in the gold strip below */
  .hero .ribbon {
    display: none !important;
  }

  /*
   * Spotlight sits between ribbon and #about — white bg + folded ribbon used to read as a slab on mobile.
   * Ribbon is always visible in markup (.ribbon-visible); keep spotlight off phones.
   */
  section.spotlight {
    display: none !important;
  }
}

@media (max-width: 600px) {
  section {
    padding: calc(var(--section-y) * 0.82) var(--section-x);
  }

  section.hero {
    padding: 0;
  }

  .hero-title {
    font-size: clamp(2.35rem, 10vw + 0.5rem, 2.95rem);
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .hero-content {
    padding-top: calc(84px + env(safe-area-inset-top, 0px) + 1.75rem);
    padding-bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-eyebrow {
    margin-bottom: 1.2rem;
  }

  .hero-eyebrow::before,
  .hero-eyebrow::after {
    flex: 1 1 0;
    min-width: 0.75rem;
    max-width: min(72px, 18vw);
  }

  .hero-title {
    margin-bottom: 0.65rem;
  }

  .hero-subtitle {
    margin-bottom: 1.25rem;
    line-height: 1.68;
  }

  .hero-verse {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-trust {
    margin-top: 0.9rem;
    gap: 10px 14px;
  }

  .hero-trust li {
    font-size: 0.66rem;
    letter-spacing: 0.09em;
    line-height: 1.35;
  }

  .hero-bg-img {
    transform: none;
    object-position: center 40%;
  }

  .hero-bg-lqip {
    object-position: center 40%;
  }

  .services-header {
    gap: 1.1rem;
    margin-bottom: 2rem;
  }

  .service-card {
    padding: 30px 22px 32px;
  }

  .generations {
    padding-top: calc(var(--section-y) * 0.92);
    padding-bottom: calc(var(--section-y) * 0.92);
  }

  .generations-intro {
    margin-bottom: 32px;
  }

  .gen-card {
    padding: 24px 20px 26px;
  }

  .gen-card h3 {
    font-size: 1.22rem;
  }

  .btn-primary,
  .btn-outline {
    justify-content: center;
    width: 100%;
  }

  .nav-logo-text span:last-child {
    font-size: 0.54rem;
    letter-spacing: 0.16em;
  }

  .pastor-main-fig {
    height: min(320px, 40vh);
    max-height: 420px;
  }

  .pastor-badge {
    padding: 8px 16px;
  }

  .about-stats {
    grid-template-columns: 1fr;
  }

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

  .gallery-item:first-child {
    grid-column: span 1;
    min-height: 220px;
  }

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg-lqip {
    filter: none;
    transform: none;
  }

  .hero-bg-img {
    animation: none;
    transform: none;
    opacity: 1;
    transition: none;
  }

  .hero-bg::after {
    opacity: 1;
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
