/* ═══════════════════════════════════════════════════════════
   HERO SLIDESHOW
════════════════════════════════════════════════════════════ */

.hero-slider {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  max-height: 860px;
  overflow: hidden;
  background: var(--color-midnight);
}

/* ── Slides ── */
.hero-slides {
  position: relative;
  width: 100%;
  height: calc(100% - 80px); /* leave room for bottom bar */
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: all;
}

/* Dark overlay on image */
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(8, 15, 30, 0.72) 0%,
    rgba(8, 15, 30, 0.45) 55%,
    rgba(8, 15, 30, 0.25) 100%
  );
}

/* Slide content */
.hero-slide__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
}

.hero-slide__content {
  max-width: 680px;
}

/* Eyebrow */
.slide-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-teal);
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(0,194,168,.35);
  border-radius: var(--radius-pill);
  background: rgba(0,194,168,.08);
}

/* Title */
.slide-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.slide-title--accent {
  color: var(--color-teal);
}

/* Sub */
.slide-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  margin-bottom: 36px;
  max-width: 540px;
}

/* Actions */
.slide-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Slide in animation for content */
.hero-slide.is-active .hero-slide__content {
  animation: slideContentIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideContentIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Bottom Bar ── */
.hero-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(0,0,0,.08);
  z-index: 10;
}

.hero-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Caption chips */
.hero-bar__captions {
  display: flex;
  gap: 0;
  border-right: 1px solid rgba(0,0,0,.08);
  flex: 1;
  overflow: hidden;
}

.hero-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px 14px 16px;
  border-radius: 0;
  border-left: 3px solid transparent;
  border-top: none;
  border-right: 1px solid rgba(0,0,0,.08);
  border-bottom: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  user-select: none;
  flex: 1;
  min-width: 0;
  background: transparent;
}

/* Icon box */
.hero-caption i {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,.06);
  color: rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Text block */
.hero-caption span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(0,0,0,.35);
  transition: color 0.3s ease;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Active state */
.hero-caption.is-active {
  background: rgba(0,194,168,.12);
  border-left-color: var(--color-teal);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.hero-caption.is-active i {
  background: var(--color-teal);
  color: var(--color-white);
}

.hero-caption.is-active span {
  color: var(--color-navy);
}

/* Hover */
.hero-caption:hover:not(.is-active) {
  background: rgba(0,0,0,.05);
  border-left-color: rgba(0,0,0,.15);
  border-top: none;
  border-right: none;
  border-bottom: none;
}

.hero-caption:hover:not(.is-active) i {
  background: rgba(0,0,0,.08);
  color: rgba(0,0,0,.5);
}

.hero-caption:hover:not(.is-active) span {
  color: rgba(0,0,0,.6);
}

/* Dot nav + arrows */
.hero-bar__nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.15);
  background: rgba(0,0,0,.05);
  color: rgba(0,0,0,.6);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.hero-arrow:hover {
  background: var(--color-teal);
  border-color: var(--color-teal);
  color: var(--color-midnight);
}

.hero-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.2);
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.hero-dot.is-active {
  background: var(--color-teal);
  width: 24px;
  border-radius: 4px;
}

/* Progress bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(0,0,0,.08);
}

.hero-progress__bar {
  height: 100%;
  background: var(--color-teal);
  width: 0%;
  transition: width linear;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-slider { max-height: 100svh; }
  .hero-bar { height: auto; padding: 14px 0; }
  .hero-bar__captions { display: none; }
  .slide-title { font-size: 2rem; }
  .slide-sub { font-size: 0.9rem; }
}



/* ── Hero slider — small mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .hero-slide__inner  { padding-inline: 16px; }
  .slide-eyebrow      { font-size: .68rem; }
  .slide-title        { font-size: 1.75rem; line-height: 1.15; }
  .slide-title--accent { display: block; }
  .slide-sub          { font-size: .84rem; max-width: 100%; }
  .slide-actions      { flex-direction: column; gap: 10px; width: 100%; }
  .slide-actions .btn { width: 100%; justify-content: center; }
  .hero-dots          { bottom: 16px; }
  .hero-arrows        { display: none; }
}

