/* ==========================================================================
   Home page — hero (cinematic zoom slideshow) + "what do you want to insure"
   ========================================================================== */

/* ---- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  min-height: 640px;
  display: flex;
  align-items: center;
}

.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Anchor the crop to the top of the frame so the speaker's head is never
     cut off when the hero is wider/shorter than the 16:9 video. */
  object-position: center top;
  background: var(--navy-900, #14133c);
}

.hero-sound {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: rgba(20, 19, 60, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}

.hero-sound:hover,
.hero-sound:focus-visible {
  background: rgba(20, 19, 60, 0.85);
  border-color: var(--gold-500);
}

.hero-sound i {
  color: var(--gold-500);
  width: 1.1em;
  text-align: center;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s var(--ease-out);
  will-change: transform, opacity;
}

.hero-slide.is-active {
  opacity: 1;
  animation: hero-kenburns 7s ease-out forwards;
}

.hero-slide:nth-child(odd) {
  transform-origin: left center;
}

.hero-slide:nth-child(even) {
  transform-origin: right center;
}

@keyframes hero-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(20, 19, 60, 0.92) 0%,
    rgba(20, 19, 60, 0.72) 38%,
    rgba(20, 19, 60, 0.28) 68%,
    rgba(20, 19, 60, 0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 32px;
}

.hero-content .eyebrow {
  color: var(--gold-500);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  letter-spacing: 0.08em;
}

.hero-content h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
  max-width: 40ch;
  margin-bottom: 18px;
}

.hero-content > p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;
  margin-bottom: 36px;
  font-size: 1rem;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.4);
  transition: background-color var(--dur-fast) var(--ease-out), width var(--dur-fast) var(--ease-out);
}

.hero-dots button.is-active {
  background: var(--gold-500);
  width: 22px;
}

/* ---- Insure selector (home page inline section wrapper — the shared card
   row, swap panel and form-grid it contains live in components.css) ------- */

.insure-select {
  padding: 40px 0 96px;
}

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

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

  .hero-overlay {
    background: linear-gradient(180deg, rgba(20, 19, 60, 0.72), rgba(20, 19, 60, 0.88));
  }

  .hero-content {
    text-align: center;
  }

  .hero-content .eyebrow {
    font-size: 0.9rem;
  }

  .hero-content h1 {
    margin-inline: auto;
    font-size: 2.2rem;
    max-width: 40ch;
    line-height: 1.15;
  }

  .hero-break-desktop {
    display: none;
  }

  .hero-content > p,
  .feature-badges {
    display: none;
  }
}
