/**
 * WTMS – Hero v2
 * Full-screen background video (muted loop), left-aligned content,
 * feature cards, and a white stats bar overlapping the bottom.
 */

.hero-v2 {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #14171b;
  min-height: 660px;
  min-height: clamp(640px, calc(100svh - 118px), 940px);
  padding: 70px 0 150px; /* bottom room for the overlapping stats bar */
  font-family: var(--font-secondary, 'Poppins', sans-serif);
}

.hero-v2 .hero-video,
.hero-v2-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-v2 .hero-video {
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}
.hero-v2-overlay {
  z-index: 1;
  /* darker on the left where the text sits */
  background:
    linear-gradient(90deg, rgba(10, 12, 15, 0.90) 0%, rgba(10, 12, 15, 0.72) 34%, rgba(10, 12, 15, 0.42) 62%, rgba(10, 12, 15, 0.30) 100%),
    linear-gradient(180deg, rgba(10, 12, 15, 0.30) 0%, rgba(10, 12, 15, 0.15) 40%, rgba(10, 12, 15, 0.55) 100%);
}

.hero-v2-inner { position: relative; z-index: 2; width: 100%; }
.hero-v2-content { max-width: 760px; text-align: left; }

/* Eyebrow */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-light, #e4606d);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero-eyebrow i { font-size: 0.95rem; }

/* Headline */
.hero-v2-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(2.3rem, 4.8vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 22px;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.4);
}
.hero-v2-title .text-primary { color: var(--color-primary, #dc3545) !important; }

/* Lead */
.hero-v2-lead {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.2vw, 1.13rem);
  line-height: 1.65;
  max-width: 620px;
  margin: 0 0 30px;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.3);
}

/* CTAs */
.hero-v2-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 15px 28px;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 14px 32px -12px rgba(220, 53, 69, 0.6);
}
.hero-btn-glass {
  display: inline-flex;
  align-items: center;
  padding: 15px 26px;
  font-weight: 700;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.22);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: background .2s, border-color .2s, transform .2s;
}
.hero-btn-glass:hover,
.hero-btn-glass:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

/* Feature cards */
.hero-v2-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 760px;
}
.hero-fcard {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-fcard-ic {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(220, 53, 69, 0.16);
  color: var(--color-primary-light, #e4606d);
  font-size: 1rem;
}
.hero-fcard-txt { min-width: 0; }
.hero-fcard-txt b {
  display: block;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
}
.hero-fcard-txt small {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  line-height: 1.35;
}

/* ---------- Stats bar (overlaps hero bottom) ---------- */
.hero-stats-wrap {
  position: relative;
  z-index: 5;
  margin-top: -78px;
  margin-bottom: 30px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: #ffffff;
  border-radius: 20px;
  padding: 26px 20px;
  box-shadow: 0 24px 60px -24px rgba(16, 19, 24, 0.35);
}
.hero-stat {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 6px 10px;
  position: relative;
}
.hero-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 46px;
  background: #eceef1;
}
.hero-stat-ic {
  flex: none;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(220, 53, 69, 0.10);
  color: var(--color-primary, #dc3545);
  font-size: 1.3rem;
}
.hero-stat > div { line-height: 1.2; }
.hero-stat b {
  display: block;
  color: #16191d;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--font-secondary, 'Poppins', sans-serif);
}
.hero-stat small {
  display: block;
  color: #6a7480;
  font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .hero-v2-features { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 6px 10px; }
  .hero-stat:nth-child(2)::after { display: none; } /* no divider before the 2x2 wrap */
}
@media (max-width: 767px) {
  .hero-v2 {
    min-height: clamp(600px, calc(100svh - 104px), 860px);
    padding: 54px 0 130px;
  }
  .hero-v2-cta { gap: 10px; }
  .hero-btn-primary, .hero-btn-glass { width: 100%; justify-content: center; }
}
@media (max-width: 560px) {
  .hero-v2-features { grid-template-columns: 1fr; }
  .hero-stats-wrap { margin-top: -64px; }
  .hero-stat { justify-content: flex-start; }
  .hero-stat::after { display: none !important; }
  .hero-stat b { font-size: 1.35rem; }
}

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