/*
 * Alf Theme — Products Hero Section
 * Figma node: 658:2302
 *
 * Loaded only on the Products page template (page-products.php).
 * Header floats over this section — body padding-top is removed here.
 *
 * Figma structure:
 *   section  flex-col gap-80  pt-144 pb-80 px-120  full-viewport
 *   └── .alf-container
 *       └── .products-hero__wrap  flex-col gap-80
 *           ├── .products-hero__content   flex-col gap-32  (badge → H1 → sub → CTA)
 *           └── .products-hero__stats     flex-row gap-32  (3 stats + dividers)
 */

/* ── Remove body top-offset — header overlays this section ────────── */
body {
  padding-top: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   SECTION CONTAINER
   ═══════════════════════════════════════════════════════════════════ */
.products-hero {
  position: relative;
  padding: 144px 0 80px;
  min-height: 100svh;
  background-color: var(--color-dark, #252525);
  /* fallback while image loads */
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ── Double overlay (::before) ────────────────────────────────────── */
.products-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 37, 37, 0.95) 0%, rgba(37, 37, 37, 0.8) 50%, rgba(0, 0, 0, 0) 100%),
    linear-gradient(180deg, rgba(12, 12, 12, 0.3) 0%, rgba(12, 12, 12, 0.3) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Inner wrap (stacks content above overlay) ────────────────────── */
.products-hero__wrap {
  display: flex;
  flex-direction: column;
  gap: 80px;
  align-items: flex-start;
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════════════════════════
   UPPER CONTENT BLOCK  (gap-32: badge → H1 → sub → CTA)
   ═══════════════════════════════════════════════════════════════════ */
.products-hero__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
  max-width: 800px;
}

/* ── Badge pill ───────────────────────────────────────────────────── */
.products-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: #f8faf0;
  background-color: rgba(205, 38, 29, 0.2);
  border: 1px solid rgba(205, 38, 29, 0.3);
  border-radius: 1000px;
  margin: 0;
  white-space: nowrap;
}

/* ── Headline ─────────────────────────────────────────────────────── */
.products-hero__heading {
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 400;
  line-height: 1.1;
  color: #f8faf0;
  margin: 0;
}

.products-hero__heading-accent {
  color: var(--color-primary, #cd261d);
}

/* ── Sub-heading ──────────────────────────────────────────────────── */
.products-hero__sub {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #f8faf0;
  margin: 0;
  /* max-width: 600px; */
}

/* ── CTA button (modular with text wave + arrow animations) ───────── */
.products-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 343px;
  max-width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  color: var(--color-dark, #252525);
  background-color: #f8faf0;
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.products-hero__cta:hover,
.products-hero__cta:focus-visible {
  background-color: #e5e8d4;
  transform: translateY(-1px);
}

.products-hero__cta:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

.products-hero__cta .alf-btn-text-clip {
  max-width: 281px;
}

.products-hero__cta .alf-arrow-clip {
  flex-shrink: 0;
}

.products-hero__cta img {
  flex-shrink: 0;
  filter: brightness(0);
}

/* ═══════════════════════════════════════════════════════════════════
   STATS BAR  (flex-row, gap-32, 3 stats + vertical dividers)
   ═══════════════════════════════════════════════════════════════════ */
.products-hero__stats {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  margin: 0;
  padding: 0;
  max-width: 700px;
}

/* ── Individual stat block ────────────────────────────────────────── */
.products-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.products-hero__stat-value {
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary, #cd261d);
  margin: 0;
}

.products-hero__stat-label {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.4;
  color: #f8faf0;
  margin: 0;
  max-width: 160px;
}

/* ── Vertical divider ─────────────────────────────────────────────── */
.products-hero__stat-divider {
  width: 1px;
  height: 79px;
  background-color: rgba(248, 250, 240, 0.3);
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .products-hero {
    padding: 112px 0 120px;
    background-position: 70% center;
    min-height: auto;
  }

  /* Mobile: H1 drops to 48px, font-weight 300 / Light (Figma 699:1986) */
  .products-hero__heading {
    font-size: 48px;
    font-weight: 300;
  }

  .products-hero__content {
    max-width: 100%;
  }

  /* Stats: 2-col flex-wrap grid — row-gap 64px (Figma 699:1986) */
  .products-hero__stats {
    flex-wrap: wrap;
    gap: 64px 8px;
    max-width: 100%;
  }

  /* Each stat: flexible half-column, centered, 21px internal gap */
  .products-hero__stat {
    flex: 1 0 0;
    min-width: 130px;
    align-items: center;
    text-align: center;
    gap: 21px;
  }

  .products-hero__stat-label {
    max-width: 100%;
  }

  /* Divider visible between col pairs; second divider orphans to row 2 — hide it */
  .products-hero__stat-divider {
    display: block;
  }

  .products-hero__stat-divider:nth-child(4) {
    display: none;
  }
}

@media (max-width: 480px) {
  .products-hero {
    padding: 100px 0 80px;
  }

  .products-hero__heading {
    font-size: 32px;
  }

  .products-hero__badge {
    font-size: 14px;
    padding: 6px 12px;
  }
}