/* hero-slider.css
   Hero slider. Overrides the static .hero from styles.css.
   Extracted from page-mind-miles-home.php - edit here, not in the template. */

/* ==========================================================================
   Hero slider — only loaded by index2.html.
   Overrides the static .hero from styles.css; everything else is shared.
   ========================================================================== */

.hero-slider {
  height: 100vh;
  min-height: 680px;
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* ---------- slides ---------- */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.4s var(--ease), visibility 1.4s var(--ease);
  z-index: 1;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transform: scale(1.04);
  transition: transform 9s linear;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1.12);
}

/* one flat wash across the whole frame, so type stays readable */
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: rgba(20, 17, 15, 0.65);
}

/* ---------- caption: centred, sitting low in the frame ---------- */
.hero-slide-inner {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  width: 100%;
  max-width: 880px;
  padding: 0 40px 108px;
  text-align: center;
  color: var(--ivory);
}

.hero-slide .eyebrow {
  color: var(--sand);
  margin-bottom: 22px;
  letter-spacing: 0.32em;
  font-size: 0.7rem;
}

.hero-slide h1 {
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.1;
}

.hero-slide h1 em {
  font-style: italic;
  color: var(--sand);
  font-weight: 400;
}

.hero-slide .hero-sub {
  margin: 22px auto 0;
  max-width: 520px;
  font-size: 1.02rem;
  font-weight: 300;
  color: rgba(245, 240, 232, 0.88);
}

.hero-slide .hero-cta {
  margin-top: 34px;
}

/* frosted CTA — the solid terracotta .btn is too heavy over photography */
.btn.glass {
  background: rgba(245, 240, 232, 0.14);
  border-color: rgba(245, 240, 232, 0.5);
  color: var(--ivory);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.btn.glass:hover {
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--charcoal);
}

/* ---------- per-slide reveal, staggered ---------- */
.hero-slide .eyebrow,
.hero-slide h1,
.hero-slide .hero-sub,
.hero-slide .hero-cta {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}

.hero-slide.is-active .eyebrow,
.hero-slide.is-active h1,
.hero-slide.is-active .hero-sub,
.hero-slide.is-active .hero-cta {
  opacity: 1;
  transform: translateY(0);
}

.hero-slide.is-active .eyebrow {
  transition-delay: .35s;
}

.hero-slide.is-active h1 {
  transition-delay: .5s;
}

.hero-slide.is-active .hero-sub {
  transition-delay: .65s;
}

.hero-slide.is-active .hero-cta {
  transition-delay: .8s;
}

/* ---------- dots: right edge, vertical ---------- */
.hero-dots {
  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hero-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(245, 240, 232, 0.42);
  cursor: pointer;
  /* keeps the dots readable over busy photography */
  box-shadow: 0 0 0 1px rgba(20, 17, 15, 0.18), 0 1px 6px rgba(20, 17, 15, 0.45);
  transition: background-color .45s var(--ease), transform .45s var(--ease);
}

/* 24x24 hit area centred on the 8px dot — the dot stays visually small */
.hero-dot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
}

.hero-dot:hover {
  background: rgba(245, 240, 232, 0.75);
}

.hero-dot.is-active {
  background: var(--ivory);
  transform: scale(1.5);
}

.hero-dot:focus-visible {
  outline: 1px solid var(--ivory);
  outline-offset: 4px;
}

/* Responsive rules for this slider live in responsive.css */
