/* probate-inherited multi-photo hero slider — bounded height, contained, crossfade.
   Palette: Aubergine (--bs-primary #5A3A52) + Gold (--pi-amber / --bs-warning #B08B3E). */
/* min-height floor guarantees the slider never collapses even if the anchor slide is missing or a
   plugin (e.g. the flare-kit motion accents) injects its own element as the real :first-child. */
/* Top corners square (the slider butts up under the header); only the bottom two are rounded. */
.pi-hero-slider { position: relative; overflow: hidden; border-radius: 0 0 var(--radius-card, 14px) var(--radius-card, 14px); min-height: 540px; }
.pi-hero-slider .pi-slide {
  position: absolute; inset: 0; min-height: 540px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 84px 22px; background-size: cover; background-position: center;
  opacity: 0; z-index: 1; transition: opacity .5s ease;
}
/* The anchor slide stays in-flow as a permanent height anchor (opacity toggles but it never leaves the
   flow), so the container sizes to content and slides cross-fade in place — no jump, no collapse. We target
   an explicit .pi-slide--anchor class, NOT :first-child, because flare-kit prepends a decorative
   <div class="cf-accent"> that would otherwise steal the :first-child match and collapse the slider to 0. */
.pi-hero-slider .pi-slide--anchor { position: relative; }
.pi-hero-slider .pi-slide.is-active { opacity: 1; z-index: 2; }
.pi-hero-slider .pi-slide:not(.is-active) { pointer-events: none; }
/* Aubergine→gold gradient wash so the theme gradient comes through and the photo reads as a soft
   texture beneath it (matches the closing gradient slide — the whole slider now feels unified). */
.pi-hero-slider .pi-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  /* Radial dark scrim behind the centred text (contrast) LAYERED over the aubergine→gold wash, which
     stays colourful/lighter at the edges. Fixes real gold-kicker-over-photo contrast without darkening
     the whole slide (axe can't measure text over a photo, so this is verified by real pixel sampling). */
  background:
    radial-gradient(ellipse 94% 82% at 50% 48%, rgba(var(--bs-dark-rgb), 0.46) 0%, rgba(var(--bs-dark-rgb), 0.14) 55%, rgba(var(--bs-dark-rgb), 0) 100%),
    linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.66), rgba(var(--bs-warning-rgb), 0.52));
}
/* gradient closing slide — aubergine → gold, no photo */
.pi-slide--closing { background: linear-gradient(135deg, var(--bs-primary), var(--pi-amber, #B08B3E)); }
.pi-slide--closing::before { background: linear-gradient(rgba(var(--bs-dark-rgb), 0.24), rgba(var(--bs-dark-rgb), 0.40)); }

.pi-slide__inner { position: relative; z-index: 1; max-width: 860px; color: #fff; }
/* Gold-on-photo can't reach WCAG AA on its own (too light) — sit the eyebrow on a small dark chip so the
   gold stays the theme colour AND the real contrast passes, darkening only the label, not the image. */
.pi-slide__kicker { display: inline-block; text-transform: uppercase; letter-spacing: .16em; font-size: .7rem; font-weight: 600; color: #fff; margin-bottom: 1.1rem; background: rgba(var(--bs-dark-rgb), 0.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); padding: 4px 15px; border-radius: 999px; }
.pi-slide h1, .pi-slide h2 { color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.14; margin-bottom: 1rem; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.pi-slide p { color: rgba(255,255,255,0.95); font-size: 1.12rem; line-height: 1.62; max-width: 660px; margin: 0 auto 1.75rem; }
.pi-slide__cta { display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-items: center; }
.pi-slide__cta .btn-cta { background: var(--pi-amber, #B08B3E); color: #241a10; border: 2px solid transparent; padding: 14px 32px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; border-radius: 6px; text-decoration: none; display: inline-block; transition: background .25s, transform .25s; }
.pi-slide__cta .btn-cta:hover { background: var(--pi-amber-hover, #8C6B2A); transform: translateY(-2px); }
.pi-slide__cta .btn-ghost { background: rgba(var(--bs-dark-rgb), 0.4); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); border: 2px solid rgba(255,255,255,.85); color: #fff; padding: 14px 30px; font-family: var(--font-heading); font-weight: 700; font-size: 1rem; border-radius: 6px; text-decoration: none; display: inline-block; transition: background .25s, color .25s; }
.pi-slide__cta .btn-ghost:hover { background: #fff; color: var(--bs-primary); }

/* dots */
.pi-hero-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; gap: 11px; z-index: 3; }
.pi-hero-dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); background: transparent; cursor: pointer; transition: background .25s, border-color .25s; }
.pi-hero-dot:hover { border-color: #fff; }
.pi-hero-dot.is-active { background: var(--pi-amber, #B08B3E); border-color: var(--pi-amber, #B08B3E); }

/* arrows */
.pi-hero-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.pi-hero-arrow:hover { background: rgba(255,255,255,.32); }
.pi-hero-arrow--prev { left: 16px; }
.pi-hero-arrow--next { right: 16px; }

@media (max-width: 575px) {
  .pi-hero-slider { min-height: 520px; }
  .pi-hero-slider .pi-slide { min-height: 520px; padding: 64px 18px; }
  .pi-hero-arrow { width: 38px; height: 38px; font-size: 1.2rem; }
  .pi-hero-arrow--prev { left: 8px; } .pi-hero-arrow--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pi-hero-slider .pi-slide { transition: none; }
}
