/* =========================
   Full-width Hero Carousel
   (Nav overlays hero)
   ========================= */

.hero {
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
}

body.home .hero {
  margin-top: -24px;
}

.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #000;
}

/* Track defines hero height */
.hero-track {
  position: relative;
  height: 70vh;
  min-height: 520px;
  max-height: 820px;
}

/* Slides fade */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption aligned to SAME left edge as nav-wrap (1100px centered) */
.hero-caption {
  position: absolute;
  bottom: 86px;

  left: max(12px, calc((100vw - 1100px) / 2));
  width: min(720px, calc(100vw - (max(12px, calc((100vw - 1100px) / 2)) + 12px)));

  padding: 24px 28px;   /* more internal breathing room */
  border-radius: 18px;

  background: rgba(255,255,255,0.76);
  border: 1px solid rgba(0,0,0,0.10);

  display: flex;
  flex-direction: column;
  gap: 18px;   /* 👈 equal vertical spacing between ALL children */
  align-items: flex-start; /* prevents stretch globally */

  z-index: 10;
}



.hero-caption h1,
.hero-caption h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}


.hero-caption p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
}


.hero-caption .btn {
  padding: 9px 14px;
  font-size: 14px;
}

.hero-caption .btn + .btn {
  margin-left: 10px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}


/* Prev/Next buttons */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.40);
  background: rgba(0,0,0,0.35);
  color: #fff;

  cursor: pointer;
  user-select: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  z-index: 30;
  pointer-events: auto;
}

.hero-btn--prev { left: 14px; }
.hero-btn--next { right: 14px; }

.hero-btn:hover { background: rgba(0,0,0,0.55); }
.hero-btn:active { transform: translateY(-50%) scale(0.98); }

/* Dots */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;

  display: flex;
  justify-content: center;
  gap: 10px;

  z-index: 30;
  pointer-events: auto;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(255,255,255,0.55);
  cursor: pointer;
}

.hero-dot.is-active {
  background: rgba(255,255,255,0.95);
}

/* Desktop refinements */
@media (min-width: 900px) {
  .hero-track {
    height: 78vh;
    min-height: 620px;
  }

  .hero-caption {
    bottom: 86px;
    padding: 14px 16px;
  }

  .hero-btn--prev { left: 18px; }
  .hero-btn--next { right: 18px; }
}

/* Ultra-wide cap */
@media (min-width: 1400px) {
  .hero-track {
    max-height: 760px;
  }
}

@media (max-width: 768px) {
  .hero-track {
    height: 86vh;
    min-height: 680px;
    max-height: none;
  }

  .hero-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 110px 14px 60px;
  }

  .hero-caption {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    padding: 18px 18px 16px;
    gap: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,0.78);
    justify-content: flex-start;
  }

  .hero-caption h1,
  .hero-caption h2 {
    font-size: 28px;
    line-height: 1.05;
  }

  .hero-caption p {
    font-size: 16px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }

  .hero-caption .btn {
    width: 100%;
    justify-content: center;
    margin-left: 0 !important;
    padding: 12px 16px;
    font-size: 15px;
  }

  .hero-btn {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,0.22);
    border-color: rgba(255,255,255,0.28);
    font-size: 18px;
  }

  .hero-btn--prev { left: 8px; }
  .hero-btn--next { right: 8px; }

  .hero-btn:active {
    transform: translateY(-50%) scale(0.98);
  }

  .hero-dots {
    bottom: 6px;
    gap: 8px;
  }

  .hero-dot {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 420px) {
  .hero-track {
    height: 82vh;
    min-height: 620px;
  }

  .hero-inner {
    padding: 104px 12px 52px;
  }

  .hero-caption {
    padding: 16px 16px 14px;
  }

  .hero-caption h1,
  .hero-caption h2 {
    font-size: 20px;
  }

  .hero-caption p {
    font-size: 14px;
    line-height: 1.55;
  }

  .hero-btn {
    width: 34px;
    height: 34px;
  }
}
