/*
 * InspireSphere Theme — Hero Section
 *
 * ONE h1 per page — never add h1 to any other section.
 *
 * Desktop layout:
 *   1. Heading row (inside .container, 60 px padding each side):
 *      h1 left (~44% width) | description + CTAs right (~37% width)
 *   2. Image carousel: max-width 1320 px, 608 px tall, no extra side padding
 *      — arrows at vertical centre, gradient caption overlay at bottom
 *   3. Dot indicators: centred below carousel
 *
 * Mobile layout:
 *   Single column — heading → description → buttons → carousel → dots
 */

/* ── Section wrapper ─────────────────────────────────────────────── */
.section--hero {
  padding-top: 56px;
  /* 56px gap between fixed header bottom and first hero content */
  padding-bottom: 0;
  overflow: visible;
}

/* ── Heading row ─────────────────────────────────────────────────── */
/* .container provides the 1320 px max-width + 60 px side padding    */
.hero__heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  padding-block: 0 56px;
}

/* h1 — left column */
.hero__title {
  flex: 0 0 44%;
  font-size: var(--font-size-h1);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-navy);
  line-height: 1.2;
}

.hero__title .accent {
  color: var(--color-blue);
}

/* Right column */
.hero__intro {
  flex: 0 0 37%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero__description {
  font-size: var(--font-size-body-lg);
  color: var(--color-dark-navy);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ── Image carousel ──────────────────────────────────────────────── */
/* Full 1320 px — centred with margin-inline auto, no extra side padding. */
/* No max-width/margin-inline needed — .container wrapper handles alignment */
.hero__carousel {
  position: relative;
  width: 100%;
  height: 608px;
  overflow: hidden;
  /* border-radius: var(--radius-lg); */
}

/* Track: relative container for absolutely-positioned slides */
.hero__carousel-track {
  position: relative;
  height: 100%;
}

/* Each slide: full size, hidden by default */
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Active slide — visible, stacked on top */
.hero__slide--active {
  opacity: 1;
  z-index: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient overlay + caption */
.hero__carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 275px;
  padding: 48px 56px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, var(--color-dark-navy) 0%, transparent 100%);
}

.hero__carousel-caption h2 {
  font-size: var(--font-size-h2);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  line-height: 1.2;
}

/* Arrow buttons — positioned at carousel vertical centre */
.hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 59px;
  height: 59px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__arrow--prev {
  left: 0;
}

.hero__arrow--next {
  right: 0;
}

.hero__arrow img {
  width: 59px;
  height: 59px;
}

/* ── Dot indicators (below carousel) ────────────────────────────── */
.hero__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-block: 16px 0;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-dark-navy);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
}

/* Active dot: wider pill shape */
.hero__dot--active {
  background: var(--color-green, #B3D634);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


/* ── Mobile (≤ 768px) ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .section--hero {
    padding-top: 33px;
    padding-bottom: 0;
  }

  /* Single column */
  .hero__heading-row {
    flex-direction: column;
    gap: 24px;
    padding-block: 0 24px;
  }

  .hero__title {
    flex: none;
    width: 100%;
    font-size: var(--font-size-h1-mobile);
  }

  .hero__intro {
    flex: none;
    width: 100%;
    gap: 32px;
  }

  .hero__description {
    font-size: var(--font-size-body-md);
  }

  /* Buttons wrap naturally (side by side then stack) */
  .hero__actions {
    flex-wrap: wrap;
  }

  /* Carousel: .container handles side padding, just adjust height + radius */
  .hero__carousel {
    height: 419px;
    /* border-radius: var(--radius-md); */
  }

  .hero__carousel-caption {
    height: 208px;
    padding: 20px 24px;
  }

  .hero__carousel-caption p {
    font-size: var(--font-size-body-lg);
  }

  .hero__dots {
    padding-block: 12px 0;
  }

  .hero__carousel-caption h2 {
    font-size: var(--font-size-h3);
  }
}