/**
 * Homepage MSP / RPO dual offers — after hero.
 * Adapted from WITC section design; uses theme tokens where available.
 */

.witc-nh-msp {
	padding: clamp(1.25rem, 3vw, 2.25rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.witc-nh-msp .witc-msp {
	--witc-page: #fff;
	--witc-value: #05436c;
	--witc-poc: #2f76bd;
	--witc-magenta: #de5174;
	--witc-shadow: 0 14px 40px -20px rgba(0, 31, 61, 0.35);
}

.witc-msp {
  width: 100%;
  margin: 0;
  background: var(--witc-page);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--witc-shadow);
  border: 1px solid #e3ebf3;
}

/* ---------- Dual complete panels ---------- */
.witc-msp__dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.witc-panel {
  min-width: 0;
  border-right: 1px solid #e3ebf3;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.witc-panel:last-child {
  border-right: 0;
}

.witc-panel__hero {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(180px, 1.15fr);
  gap: 0.75rem;
  align-items: end;
  padding: 1.25rem 1rem 10px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 15%, #d9ecfb 0%, transparent 58%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f8fc 100%);
  overflow: hidden;
}

.witc-panel__copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

/* ---------- Hero (shared type styles) ---------- */
.witc-msp__hero {
  position: relative;
  background:
    radial-gradient(ellipse 55% 80% at 100% 20%, #d9ecfb 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 85% 90%, #eaf4fc 0%, transparent 55%),
    linear-gradient(180deg, #fbfcfe 0%, #f3f8fc 100%);
  overflow: hidden;
}

.witc-msp__hero::before,
.witc-msp__hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.witc-msp__hero::before {
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  background: radial-gradient(circle, rgba(47, 118, 189, 0.14), transparent 68%);
}

.witc-msp__hero::after {
  width: 360px;
  height: 220px;
  right: 40px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(0, 180, 216, 0.12), transparent 70%);
}

.witc-msp__hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 1.5rem;
  align-items: center;
  padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 3vw, 2.5rem) 1.5rem;
}

.witc-msp__title {
  margin: 0 0 0.75rem;
  display: grid;
  gap: 0.4rem;
}

.witc-msp__title-line {
  font-family: var(--witc-font-display);
  font-weight: 800;
  font-size: clamp(1.25rem, 1.8vw, 1.85rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--witc-navy);
}

.witc-msp__title-poc {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--witc-font-display);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 1rem);
  line-height: 1.25;
  color: #fff;
  background: var(--witc-poc);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
}

.witc-msp__stack {
  margin: 0 0 0.55rem;
  font-family: var(--witc-font-display);
  font-size: clamp(0.58rem, 0.85vw, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d4f61;
}

.witc-msp__source {
  margin: 0;
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  font-family: var(--witc-font-display);
  font-size: clamp(0.5rem, 0.7vw, 0.6rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: var(--witc-magenta);
  padding: 0.3rem 0.55rem;
  border-radius: 4px;
  line-height: 1.25;
}

/* Product visual */
.witc-msp__visual {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.witc-msp__circuit {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(90deg, transparent 0 48%, rgba(47, 118, 189, 0.25) 48% 52%, transparent 52%),
    linear-gradient(0deg, transparent 0 48%, rgba(47, 118, 189, 0.18) 48% 52%, transparent 52%);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at 70% 50%, #000 20%, transparent 75%);
  pointer-events: none;
}

.witc-msp__static {
  position: relative;
  z-index: 1;
  margin: 0;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.witc-msp__static img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  object-position: center;
}

/* ---------- Categories ---------- */
.witc-msp__cats-wrap {
  position: relative;
  min-width: 0;
  padding: 0 0.75rem 0.75rem;
  margin-top: 0;
}

.witc-msp__tab {
  display: inline-flex;
  align-items: center;
  margin-left: 0.55rem;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
  font-family: var(--witc-font-display);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: var(--witc-poc);
  padding: 0.28rem 0.7rem 0.35rem;
  border-radius: 10px 10px 0 0;
}

.witc-msp__cats {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.2rem 0.15rem;
  padding: 0.5rem 0.3rem 0.45rem;
  border: 1.5px solid var(--witc-border);
  border-radius: var(--witc-radius);
  background: linear-gradient(180deg, #f7fbff, #ffffff);
  align-items: start;
}

.witc-cat {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  min-width: 0;
  text-decoration: none;
  color: var(--witc-ink);
  padding: 0.2rem 0.1rem;
  border-radius: 8px;
  transition: background 160ms ease, transform 160ms ease;
}

.witc-cat:hover {
  background: var(--witc-surface-2);
  transform: translateY(-1px);
}

.witc-cat__icon {
  width: 28px;
  height: 28px;
  color: #1f2937;
}

.witc-cat__icon svg {
  width: 100%;
  height: 100%;
}

.witc-cat__label {
  font-family: var(--witc-font-display);
  font-size: 0.55rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  color: #334155;
  overflow-wrap: anywhere;
  hyphens: auto;
}

/* ---------- Values ---------- */
.witc-msp__values {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: 70%;
  margin: 1rem auto;
  background: linear-gradient(180deg, var(--witc-value), var(--witc-navy-deep));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--witc-radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(5, 67, 108, 0.22);
}

.witc-value {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.05rem 1rem;
  position: relative;
}

.witc-value:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.witc-value__icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
}

.witc-value__icon svg {
  width: 100%;
  height: 100%;
}

.witc-value__text {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}

.witc-value__text strong {
  font-family: var(--witc-font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.witc-value__text span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- Brands ---------- */
.witc-msp__brands {
  padding: 1.15rem 1rem 1.35rem;
  border-top: 1px solid #e8eef4;
  background: #fff;
  text-align: center;
}

.witc-msp__brands-title {
  margin: 0 0 0.9rem;
  font-family: var(--witc-font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
}

.witc-msp__brand-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 80%;
  margin-inline: auto;
  gap: 0.65rem 1rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--witc-border);
  border-radius: var(--witc-radius);
  background: linear-gradient(180deg, #f7fbff, #ffffff);
}

.witc-brand {
  font-family: var(--witc-font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  opacity: 0.92;
}

.witc-brand--ms { color: #737373; }
.witc-brand--bz { color: #ea580c; }
.witc-brand--avast { color: #ff7800; }
.witc-brand--mcafee { color: #c01818; }
.witc-brand--eset { color: #00843d; }
.witc-brand--dell { color: #0076ce; }
.witc-brand--hp { color: #0096d6; }
.witc-brand--lenovo { color: #e2231a; }
.witc-brand--samsung { color: #1428a0; }
.witc-brand--cisco { color: #049fd9; }
.witc-brand--apc { color: #ff6600; }

/* Side-by-side panels: keep 1 row; hide last if space is tight */
@media (min-width: 1101px) and (max-width: 1500px) {
  .witc-msp__cats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .witc-msp__cats .witc-cat:nth-child(7) {
    display: none;
  }

  .witc-cat__label {
    font-size: 0.52rem;
  }
}

@media (min-width: 1501px) {
  .witc-msp__cats {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .witc-msp__cats .witc-cat:nth-child(7) {
    display: grid;
  }
}

@media (max-width: 1100px) {
  .witc-msp__dual {
    grid-template-columns: 1fr;
  }

  .witc-panel {
    border-right: 0;
    border-bottom: 1px solid #e3ebf3;
  }

  .witc-panel:last-child {
    border-bottom: 0;
  }

  .witc-panel__hero {
    grid-template-columns: minmax(0, 1.1fr) minmax(180px, 0.9fr);
  }

  .witc-msp__title-line {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .witc-msp__title-poc {
    font-size: 1rem;
  }

  .witc-msp__stack {
    font-size: 0.78rem;
  }

  .witc-msp__source {
    font-size: 0.58rem;
    padding: 0.28rem 0.5rem;
  }

  .witc-msp__static img {
    max-height: 300px;
  }

  .witc-msp__cats {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .witc-msp__cats .witc-cat:nth-child(7) {
    display: grid;
  }

  .witc-msp__values {
    grid-template-columns: 1fr 1fr;
  }

  .witc-cat__label {
    font-size: 0.55rem;
  }

  .witc-value:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 820px) {
  .witc-msp__cats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .witc-msp__cats .witc-cat:nth-child(7) {
    display: none;
  }
}

@media (max-width: 640px) {
  .witc-panel__hero {
    grid-template-columns: 1fr;
  }

  .witc-msp__visual {
    order: -1;
  }

  .witc-msp__source {
    font-size: 0.52rem;
  }

  .witc-msp__cats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .witc-msp__cats .witc-cat:nth-child(7) {
    display: none;
  }

  .witc-cat__icon {
    width: 24px;
    height: 24px;
  }

  .witc-cat__label {
    font-size: 0.48rem;
  }

  .witc-msp__values {
    grid-template-columns: 1fr;
  }

  .witc-value:not(:last-child)::after {
    display: none;
  }

  .witc-value {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .witc-value:last-child {
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .witc-cat {
    transition: none;
  }
}
