/* Homepage Hero Slider — layout architecture (presentation only) */

/*
 * Architecture:
 *   section.lrs-hero-slider-section  → transparent; inherits body --page-bg (no fade overlays)
 *   .container                       → width constraints only
 *   .lrs-hero-slider__controls       → centred toolbar above viewport
 *   .lrs-hero-slider__viewport       → sole horizontal clip (hides neighbour slides)
 *   .lrs-hero-slider__track          → transform only
 *   .lrs-hero-slide                  → shadow clearance via internal padding (inside clip)
 *
 * Shadows live inside each slide's padding box, so overflow:hidden on the viewport
 * hides neighbours without truncating CTA/image shadows.
 */

.lrs-hero-slider-section {
  /* Internal slide padding so shadows stay inside the clipped slide box */
  --lrs-hero-shadow-clearance-y: 48px;
  --lrs-hero-shadow-clearance-x: 32px;
  position: relative;
  background: transparent;
}

/* Wider hero container — respects site architecture, not 100vw */
.lrs-hero-slider-section > .container {
  width: 100%;
  max-width: min(1320px, calc(100% - 32px));
  margin-inline: auto;
  padding-inline: 16px;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .lrs-hero-slider-section > .container {
    max-width: min(1360px, calc(100% - 48px));
  }
}

@media (min-width: 1440px) {
  .lrs-hero-slider-section > .container {
    max-width: min(1440px, calc(100% - 56px));
  }
}

@media (min-width: 1600px) {
  .lrs-hero-slider-section > .container {
    max-width: min(1520px, calc(100% - 64px));
  }
}

@media (min-width: 1920px) {
  .lrs-hero-slider-section > .container {
    max-width: min(1680px, calc(100% - 80px));
  }
}

.lrs-hero-slider {
  --lrs-hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lrs-hero-duration: 720ms;
  --lrs-hero-accent: #1967d2;
  position: relative;
}

/* ---- Top controls toolbar (centred above hero) ---- */
.lrs-hero-slider__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 0 0 16px;
  min-height: 48px;
  width: 100%;
}

/* Match Reviews carousel arrows via .reviews-nav-btn */
.lrs-hero-slider__btn.reviews-nav-btn {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border: 1px solid rgba(12, 40, 95, 0.1);
  border-radius: 50%;
  background: #fff;
  color: #11358b;
  font-size: 30px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(12, 30, 69, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.lrs-hero-slider__btn.reviews-nav-btn:hover {
  background: #fff;
  border-color: rgba(12, 40, 95, 0.16);
  box-shadow: 0 10px 28px rgba(12, 30, 69, 0.12);
  transform: translateY(-1px);
}

.lrs-hero-slider__btn.reviews-nav-btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 18px rgba(12, 30, 69, 0.1);
}

.lrs-hero-slider__btn:focus-visible,
.lrs-hero-slider__dot:focus-visible,
.lrs-hero-slider__pause:focus-visible {
  outline: 3px solid var(--lrs-hero-accent);
  outline-offset: 2px;
}

.lrs-hero-slider__indicators {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 2px;
}

.lrs-hero-slider__dot {
  position: relative;
  width: 36px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(12, 40, 96, 0.12);
  cursor: pointer;
  overflow: hidden;
}

.lrs-hero-slider__dot-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--third-color, #11358b), var(--lrs-hero-accent));
  border-radius: inherit;
}

.lrs-hero-slider__dot.is-active .lrs-hero-slider__dot-progress {
  width: 100%;
  transition: width var(--lrs-hero-autoplay, 6500ms) linear;
}

.lrs-hero-slider.is-paused .lrs-hero-slider__dot.is-active .lrs-hero-slider__dot-progress,
.lrs-hero-slider[data-reduced-motion="1"] .lrs-hero-slider__dot-progress {
  transition: none;
}

.lrs-hero-slider__pause {
  margin-left: 2px;
  padding: 8px 14px;
  min-height: 40px;
  border: 1px solid rgba(12, 40, 96, 0.12);
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted, #5c6b86);
  font-family: var(--font-ui, "Space Grotesk", sans-serif);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(12, 30, 69, 0.06);
}

.lrs-hero-slider__pause[aria-pressed="true"] {
  color: var(--third-color, #11358b);
  border-color: rgba(25, 103, 210, 0.35);
}

/* Stage: no clip — viewport owns clipping */
.lrs-hero-slider__stage {
  position: relative;
  overflow: visible;
}

/*
 * Viewport = sole carousel clip boundary.
 * No padding/negative-margin expansion (that leaked neighbour slides / hard edges).
 * No section-level gradient masks.
 */
.lrs-hero-slider__viewport {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* No-JS / pre-JS: only the active (first) slide is visible */
.lrs-hero-slider:not(.is-enhanced) .lrs-hero-slider__track {
  display: block;
}

.lrs-hero-slider:not(.is-enhanced) .lrs-hero-slide:not(.is-active) {
  display: none;
}

.lrs-hero-slider.is-enhanced .lrs-hero-slider__track {
  display: flex;
  width: 100%;
  min-width: 0;
  will-change: transform;
  transition: transform var(--lrs-hero-duration) var(--lrs-hero-ease);
}

.lrs-hero-slider--single .lrs-hero-slider__track {
  transition: none;
}

/*
 * Slide geometry: 100% of viewport; shadow clearance is INTERNAL padding
 * so box-shadows of CTAs/media/badges render inside the clipped slide box.
 */
.lrs-hero-slider .lrs-hero-slide {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding-block: var(--lrs-hero-shadow-clearance-y);
  padding-inline: var(--lrs-hero-shadow-clearance-x);
  overflow: visible;
}

/* Media/badge stack: keep overflow visible so float badges are not clipped by media */
.lrs-hero-slider .hero-slide {
  overflow: visible;
}

/*
 * picture overflow:hidden is required for border-radius + hover scale.
 * Own box-shadow is not clipped by overflow; child shadows are.
 * Info/float badges are siblings of picture — room comes from slide padding-inline.
 */

.lrs-hero-heading {
  font-family: var(--font-display, "Jakarta Sans", "Space Grotesk", sans-serif);
  color: var(--primary-color, #0c1e45);
  font-size: var(--font-h1, 42px);
  font-weight: 800;
  line-height: var(--font-h1-lh, 48px);
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}

.lrs-hero-heading span,
.lrs-hero-slide--offer .lrs-hero-heading {
  color: var(--primary-color, #0c1e45);
}

.lrs-hero-slide--offer .lrs-hero-heading {
  background: linear-gradient(90deg, var(--primary-color, #0c1e45) 0%, var(--lrs-hero-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .lrs-hero-slide--offer .lrs-hero-heading {
    color: var(--primary-color, #0c1e45);
    background: none;
  }
}

.lrs-hero-float-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--secondary-color, #c7ef66);
  color: var(--third-color, #11358b);
  font-family: var(--font-ui, "Space Grotesk", sans-serif);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(8, 20, 50, 0.18);
}

.lrs-hero-info-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  max-width: min(220px, 70%);
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(12, 40, 96, 0.16);
  color: var(--primary-color, #0c1e45);
  font-family: var(--font-ui, "Space Grotesk", sans-serif);
}

.lrs-hero-info-card__age {
  font-size: 13px;
  font-weight: 700;
  color: var(--lrs-hero-accent);
}

.lrs-hero-info-card__dates {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted, #5c6b86);
}

/* Keep hero-media overflow visible so rating badge / info card shadows are not clipped by media */
.lrs-hero-slider .hero-media {
  overflow: visible;
}

.lrs-hero-slider .hero .buttons {
  overflow: visible;
}

/* Desktop: preserve two-column hero; widen image column slightly */
@media (min-width: 1024px) {
  .lrs-hero-slider .lrs-hero-slide--offer {
    grid-template-areas:
      "title  media"
      "desc   media"
      "dtags  media"
      "offer  media"
      "btns   media"
      "trust  media";
  }

  .lrs-hero-slider .lrs-hero-heading {
    grid-area: title;
    margin-top: 0;
    font-size: var(--font-h1, 42px);
    line-height: var(--font-h1-lh, 48px);
    max-width: none;
  }

  .lrs-hero-slider .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
    column-gap: 56px;
  }
}

@media (min-width: 1280px) {
  .lrs-hero-slider .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 560px);
    column-gap: 64px;
  }
}

@media (min-width: 1600px) {
  .lrs-hero-slider .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 600px);
    column-gap: 72px;
  }
}

@media (max-width: 1023px) {
  .lrs-hero-slider__controls {
    justify-content: center;
    margin-bottom: 12px;
    gap: 8px;
  }
}

@media (max-width: 767px) {
  .lrs-hero-slider-section {
    --lrs-hero-shadow-clearance-y: 52px;
    --lrs-hero-shadow-clearance-x: 18px;
  }

  .lrs-hero-slider-section > .container {
    max-width: 100%;
    padding-inline: 16px;
  }

  .lrs-hero-slider__controls {
    gap: 6px;
    margin-bottom: 10px;
    min-height: 44px;
  }

  .lrs-hero-slider__btn.reviews-nav-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    font-size: 26px;
  }

  .lrs-hero-slider__dot {
    width: 28px;
    height: 7px;
  }

  .lrs-hero-slider__pause {
    padding: 7px 12px;
    font-size: 12px;
    min-height: 36px;
  }

  .lrs-hero-heading {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.15;
  }

  .lrs-hero-info-card {
    right: 12px;
    bottom: 12px;
    max-width: min(200px, 72%);
    padding: 10px 12px;
  }

  .lrs-hero-float-badge {
    top: 12px;
    left: 12px;
  }
}

@media (max-width: 374px) {
  .lrs-hero-slider__controls {
    gap: 4px;
  }

  .lrs-hero-slider__btn.reviews-nav-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 24px;
  }

  .lrs-hero-slider__dot {
    width: 22px;
  }

  .lrs-hero-slider__pause {
    padding: 6px 10px;
  }
}

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

  .lrs-hero-slider__dot.is-active .lrs-hero-slider__dot-progress {
    transition: none;
    width: 100%;
  }

  .lrs-hero-slider__btn.reviews-nav-btn:hover {
    transform: none;
  }
}
