/* ============================================
   Hero Section
   Supports: background video, background image, overlay, CTA
   Used on: homepage, service hubs, city pages
   Hero always has a dark background (overlay), so text is always white.
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 480px;
  padding: var(--section-py) 0;
  overflow: hidden;
  background-color: var(--color-primary);
  color: #FFFFFF;
}

/* Taller hero for homepage */
.hero--home {
  min-height: 560px;
}

/* Shorter hero for inner pages */
.hero--inner {
  min-height: 320px;
}

/* --- Background media (video or image) --- */

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video,
.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Dark overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 74, 0.65) 0%,
    rgba(27, 42, 74, 0.8) 100%
  );
  z-index: 1;
}

/* --- Content --- */

.hero__content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-px);
  width: 100%;
}

.hero__content--centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- Typography --- */

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: var(--space-4);
  max-width: 720px;
}

.hero__subtitle {
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
  max-width: 560px;
}

/* --- Trust signals row --- */

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-xs);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

.hero__trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-accent-light);
  flex-shrink: 0;
}

/* --- CTA group --- */

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Breadcrumb bar: pinned to top of hero --- */

.hero__breadcrumb-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-top: var(--space-4);
}

/* --- Responsive --- */

@media (max-width: 768px) {
  .hero {
    min-height: 400px;
  }

  .hero--home {
    min-height: 440px;
  }

  .hero--inner {
    min-height: 260px;
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

  .hero__subtitle {
    font-size: var(--fs-base);
  }

  .hero__trust {
    gap: var(--space-4);
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__content--centered {
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 360px;
  }

  .hero--home {
    min-height: 400px;
  }
}

/* --- Hero Slider (crossfade between slides) --- */

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider__slide.is-active {
  opacity: 1;
}

.hero-slider__slide img,
.hero-slider__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Overlay sits above all slides */
.hero-slider .hero__overlay {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide {
    transition: none;
  }
}
