/* ============================================
   ILM Financial – Hero Carousel Styles
   ============================================ */

/* ── HERO WRAPPER ────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #f4f6f8;
  /* Height scales with viewport, capped */
  height: clamp(420px, 58vw, 620px);
}

/* ── SLIDES TRACK ────────────────────────── */
.hero__track {
  display: flex;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

/* ── SINGLE SLIDE ────────────────────────── */
.hero__slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background image fills right ~60% of slide */
.hero__slide-img {
  position: absolute;
  top: 0;
  right: 0;
  width: 72%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Soft gradient mask — left edge fades photo into white */
.hero__slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 28%,
    rgba(255,255,255,0.92) 36%,
    rgba(255,255,255,0.55) 48%,
    rgba(255,255,255,0.0) 62%
  );
  pointer-events: none;
}

/* ── SLIDE CONTENT (text + CTA) ──────────── */
.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 0 8%;
  max-width: 480px;
}

.hero__eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: #444444;
  margin-bottom: 12px;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease 0.1s, transform 0.55s ease 0.1s;
}

.hero__heading {
  font-family: 'Lato', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.1;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease 0.22s, transform 0.55s ease 0.22s;
}

.hero__cta {
  display: inline-block;
  padding: 13px 32px;
  background: #4a6cf7;
  color: #ffffff;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 50px;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  opacity: 0;
  transform: translateY(16px);
  /* animation delay handled by .is-active class below */
}

.hero__cta:hover {
  background: #3558e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(74, 108, 247, 0.35);
}

/* Animate content in when slide is active */
.hero__slide.is-active .hero__eyebrow,
.hero__slide.is-active .hero__heading {
  opacity: 1;
  transform: translateY(0);
}

.hero__slide.is-active .hero__cta {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.55s ease 0.38s, transform 0.55s ease 0.38s,
              background 0.2s ease, box-shadow 0.2s ease;
}

/* ── PREV / NEXT ARROWS ──────────────────── */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.85);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.hero__arrow:hover {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.hero__arrow svg {
  width: 18px;
  height: 18px;
  color: #1a1a1a;
  flex-shrink: 0;
}

.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* ── DOT INDICATORS ──────────────────────── */
.hero__dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(26,26,26,0.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero__dot.is-active {
  background: #4a6cf7;
  transform: scale(1.35);
}

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .hero {
    height: clamp(360px, 70vw, 520px);
  }

  .hero__slide-img {
    width: 65%;
  }

  .hero__content {
    padding-left: 5%;
    max-width: 380px;
  }

  .hero__heading {
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
  }
}

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

  .hero__slide {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding-bottom: 60px;
  }

  .hero__slide-img {
    width: 100%;
    height: 100%;
    object-position: center top;
  }

  /* On mobile, overlay covers full slide from bottom */
  .hero__slide::after {
    background: linear-gradient(
      to top,
      rgba(255,255,255,0.97) 0%,
      rgba(255,255,255,0.88) 30%,
      rgba(255,255,255,0.4) 60%,
      rgba(255,255,255,0.0) 100%
    );
  }

  .hero__content {
    padding: 0 24px 0;
    max-width: 100%;
  }

  .hero__heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
  }

  .hero__arrow--prev { left: 10px; }
  .hero__arrow--next { right: 10px; }
}
