/* ==========================================================================
   Home — "Webase Highlights" (partnership copy + stat cards)
   Markup: resources/views/frontend/partials/home-highlights.blade.php
   Design: "Webase — Services Section Redesign" canvas, Highlights.dc.html
   Width:  Bootstrap .container
   ========================================================================== */

.wb-highlights {
  --wb-highlights-bg: #F4F1EA;
  --wb-highlights-navy: #202547;
  --wb-highlights-muted: #474C6E;
  --wb-highlights-accent: #ED194E;
  --wb-highlights-eyebrow: #C8163F;

  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: var(--wb-highlights-bg);
  color: var(--wb-highlights-navy);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Background glows ---------- */

.wb-highlights__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wb-highlights__glow span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
}

.wb-highlights__glow-red {
  right: 4%;
  top: 18%;
  width: 420px;
  height: 420px;
  background: var(--wb-highlights-accent);
  opacity: .16;
}

.wb-highlights__glow-blue {
  right: 28%;
  bottom: 4%;
  width: 420px;
  height: 360px;
  background: #3D5AFE;
  opacity: .14;
}

/* ---------- Layout ---------- */

.wb-highlights__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

/* ---------- Copy ---------- */

.wb-highlights__copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.wb-highlights__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wb-highlights-eyebrow);
}

.wb-highlights__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--wb-highlights-accent);
}

.wb-highlights__title {
  margin: 0;
  font-family: 'Kanit', sans-serif;
  font-size: clamp(36px, 4.4vw, 58px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--wb-highlights-navy);
}

.wb-highlights__title span {
  color: var(--wb-highlights-accent);
}

/* Admin rich text: body paragraphs, the last one is the closing statement */
.wb-highlights__content {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 6px;
}

.wb-highlights__content p {
  margin: 0;
  /* the admin editor adds Bootstrap's .pb-2 (which is !important) — spacing comes from the gap instead */
  padding-bottom: 0 !important;
  font-size: 17px;
  line-height: 1.7;
  color: var(--wb-highlights-muted);
}

.wb-highlights__content p:last-child {
  font-family: 'Kanit', sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--wb-highlights-navy);
}

.wb-highlights .wb-highlights__button {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--wb-highlights-navy);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}

.wb-highlights .wb-highlights__button:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -14px rgba(32, 37, 71, .55);
}

/* ---------- Stat cards ---------- */

.wb-highlights__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wb-highlights__stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 210px;
  box-sizing: border-box;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  background-color: rgba(255, 255, 255, .55);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
          backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .95), 0 10px 30px -14px rgba(32, 37, 71, .22);
  color: var(--wb-highlights-navy);
  transition: transform .3s ease, box-shadow .3s ease;
}

.wb-highlights__stat--dark {
  border-color: var(--wb-highlights-navy);
  background-color: var(--wb-highlights-navy);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: 0 20px 40px -20px rgba(32, 37, 71, .6);
  color: #FFFFFF;
}

.wb-highlights__stat:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 44px -22px rgba(32, 37, 71, .45);
}

.wb-highlights__value {
  font-family: 'Kanit', sans-serif;
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.wb-highlights__plus {
  color: var(--wb-highlights-accent);
}

.wb-highlights__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--wb-highlights-muted);
}

.wb-highlights__stat--dark .wb-highlights__label {
  color: #C9CCE3;
}

/* ---------- Responsive (Bootstrap steps) ---------- */

@media (max-width: 991.98px) {
  .wb-highlights__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Phones: keep two columns, with compact cards */
@media (max-width: 575.98px) {
  .wb-highlights__stats {
    gap: 12px;
  }

  .wb-highlights__stat {
    gap: 12px;
    min-height: 150px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .wb-highlights__value {
    font-size: 40px;
  }

  .wb-highlights__label {
    font-size: 14px;
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wb-highlights__stat,
  .wb-highlights .wb-highlights__button {
    transition: none;
  }
}

/* Mobile: 50px section spacing */
@media (max-width: 767.98px) {
  .wb-highlights {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}
