/* ═══════════════════════════════════════════
   WV First5 — homepage "Start Smart with the First5" section
   ───────────────────────────────────────────
   Extracted 2026-06-08 from wv-components.css (formerly frozen; promoted
   to a standalone, editable component). Rendered by parts/first5.php on
   the homepage. The shared .wv-arrow-btn carousel button stays in
   wv-components.css — it is NOT part of this component.

   Mobile-first; cascade preserved verbatim from the original:
   base → mobile re-statement → @768 → @1280. (#dddec7 tokenized to
   --wv-color-surface — same value.)
   ═══════════════════════════════════════════ */

.wv-first5 {
  position: relative; /* anchor for the bg video (currently dropped) */
  overflow: hidden;
  /* Solid green while the video is dropped — also the video's fallback.
     Cream section text reads on this olive (same pairing as the buzzword bar). */
  background: var(--wv-color-accent);
  padding: 60px 0 80px;
}

/* Full-section background video — sits behind the content. Surface bg
   shows as the fallback (and when prefers-reduced-motion hides it). */
.wv-first5__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .wv-first5__bg-video {
    display: none;
  }
}

.wv-first5__inner {
  position: relative; /* keep content above the bg video */
  z-index: 1;
  max-width: var(--wv-container-max);
  margin: 0 auto;
  padding: 0 80px;
}

/* ── First5 Header ── */
.wv-first5__header {
  text-align: center;
  margin-bottom: 40px;
}

.wv-first5__heading {
  font-family: var(--wv-font-primary);
  font-weight: 400;
  font-size: 40px;
  line-height: 40px;
  letter-spacing: -1.2px;
  color: var(--wv-color-text-inverse); /* cream — reads on the video bg */
  margin: 0 0 16px;
}

.wv-first5__body {
  font-family: var(--wv-font-primary);
  font-weight: 400;
  font-size: 18px;
  line-height: 27.3px;
  letter-spacing: -0.54px;
  color: var(--wv-color-text-inverse); /* cream — reads on the video bg */
  margin: 0 auto 24px;
  max-width: 640px;
}

.wv-first5__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.wv-first5__btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  background: var(--wv-color-text-primary);
  color: var(--wv-color-text-inverse);
  font-family: var(--wv-font-primary);
  font-weight: 400;
  font-size: 15.6px;
  line-height: 19.8px;
  letter-spacing: -0.47px;
  text-transform: uppercase;
  border: 0;
  transition: background var(--wv-transition-base);
}

.wv-first5__btn-primary:hover {
  background: var(--wv-color-accent);
}

.wv-first5__btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 28px;
  background: transparent;
  color: var(--wv-color-text-inverse);
  font-family: var(--wv-font-primary);
  font-weight: 400;
  font-size: 15.6px;
  line-height: 19.8px;
  letter-spacing: -0.47px;
  border: 1px solid var(--wv-color-text-inverse); /* white border on the video bg */
  transition: var(--wv-transition-color);
}

.wv-first5__btn-outline:hover {
  background: var(--wv-color-text-inverse);
  color: var(--wv-color-text-primary);
}

/* ── Carousel ── */
.wv-first5__carousel {
  position: relative;
}

.wv-first5__nav {
  display: flex;
  justify-content: center;
  gap: 42px;
  margin-bottom: 24px;
}

/* Carousel arrows over the video bg — cream stroke + arrow, fill-on-hover.
   Scoped override of the shared .wv-arrow-btn (frozen) for this section. */
.wv-first5 .wv-arrow-btn {
  border-color: var(--wv-color-text-inverse);
  color: var(--wv-color-text-inverse);
}
.wv-first5 .wv-arrow-btn:hover,
.wv-first5 .wv-arrow-btn:focus-visible {
  background: var(--wv-color-text-inverse);
  color: var(--wv-color-text-primary);
}

.wv-first5__track {
  display: flex;
  gap: 50px;
  align-items: flex-end;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wv-first5__track::-webkit-scrollbar {
  display: none;
}

/* ── Mobile base overrides (restated after base, as in the original) ── */
.wv-first5 {
  padding: 40px 0 60px;
}

.wv-first5__inner {
  padding: 0 16px;
}

.wv-first5__heading {
  font-size: 28px;
  line-height: 32px;
}

.wv-first5__actions {
  flex-direction: column;
  gap: 12px;
}

.wv-first5__track {
  gap: 16px;
  justify-content: flex-start;
}

/* ── Tablet ── */
@media (min-width: 768px) {
  .wv-first5 {
    padding: 60px 0 80px;
  }

  .wv-first5__inner {
    padding: 0 40px;
  }

  .wv-first5__heading {
    font-size: 40px;
    line-height: 40px;
  }

  .wv-first5__actions {
    flex-direction: row;
    gap: 20px;
  }

  .wv-first5__track {
    gap: 24px;
    justify-content: flex-start;
  }
}

/* ── Desktop ── */
@media (min-width: 1280px) {
  .wv-first5__inner {
    padding: 0 80px;
  }

  .wv-first5__track {
    gap: 50px;
    justify-content: center;
  }
}
