/* ██████████████████████████████████████████████████████████
   DESIGN UPGRADE — UI/UX Enhancement Layer
   ──────────────────────────────────────────────────────────
   Purpose: Targeted visual overrides for enterprise-grade UI
   Layer:   Loads AFTER all section CSS files
   Rules:   No structural changes — style enhancements only
   ██████████████████████████████████████████████████████████ */


/* ==========================================================
   §1  SECTION RHYTHM FIX
   ──────────────────────────────────────────────────────────
   Problem: About + Services + Capabilities all white → monotony
   Fix:     Capabilities → dark navy (visual rhythm break)
   Result:  Light → Light → Dark → Dark → Dark (CTA)
           (With Why Choose Us and CTA already dark)
========================================================== */

/* ── Services Preview: subtle warm-gray tint to separate from About ── */
.platform-modules {
  background: #f7f8fc !important;
}

/* ── Capabilities: dark navy treatment ── */
.capabilities-overview {
  background: #0d1929 !important;
  overflow: hidden;
}

/* Atmospheric glow override for dark bg */
.capabilities-overview::before {
  background: radial-gradient(
    circle,
    rgba(224, 90, 26, 0.12),
    transparent 65%
  ) !important;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
}

/* Eyebrow stays orange */
.capabilities-overview .eyebrow {
  color: #E05A1A;
}

/* Title → white */
.capabilities-title {
  color: #ffffff !important;
}

/* Title underline accent → keep orange */
.capabilities-title::after {
  background: #E05A1A !important;
  width: 56px;
  opacity: 0.9;
}

/* Subtitle → muted white */
.capabilities-subtitle {
  color: rgba(255, 255, 255, 0.60) !important;
}

/* Cards → glass style on dark */
.capability-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  border-top: 3px solid rgba(224, 90, 26, 0.25) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
}

.capability-card::before {
  background: linear-gradient(
    90deg,
    #E05A1A,
    rgba(224, 90, 26, 0.3)
  ) !important;
}

.capability-card:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  border-top-color: #E05A1A !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(224, 90, 26, 0.10) !important;
}

/* Icon → orange ring on dark */
.capability-icon {
  background: rgba(224, 90, 26, 0.14) !important;
  border: 1px solid rgba(224, 90, 26, 0.30) !important;
  color: #E05A1A !important;
}

.capability-card:hover .capability-icon {
  background: #E05A1A !important;
  border-color: #E05A1A !important;
  color: #ffffff !important;
  box-shadow: 0 0 20px rgba(224, 90, 26, 0.45);
  transform: scale(1.08);
}

/* Card title → white */
.capability-title {
  color: #ffffff !important;
}

/* Card text → muted white */
.capability-text {
  color: rgba(255, 255, 255, 0.58) !important;
}

/* Metrics border on dark */
.capabilities-metrics {
  border-top-color: rgba(255, 255, 255, 0.10) !important;
}

.metric-item {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.metric-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
}

.metric-value {
  color: #E05A1A !important;
}

.metric-label {
  color: rgba(255, 255, 255, 0.55) !important;
}


/* ==========================================================
   §2  ABOUT SECTION — STATS UPGRADE
   ──────────────────────────────────────────────────────────
   Problem: Stat numbers too small (1.45rem) for impact
   Fix:     Larger numbers, stronger visual weight
========================================================== */

.about-stats {
  gap: 40px;
  flex-wrap: nowrap;
}

.about-stats .stat-item {
  text-align: left;
  position: relative;
  padding-left: 16px;
  border-left: 3px solid var(--mt-brand-primary);
}

.about-stats .stat-item strong {
  display: block;
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--mt-brand-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.about-stats .stat-item span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--mt-text-muted);
}


/* ==========================================================
   §3  HEADER DIVIDERS — REFINEMENT
   ──────────────────────────────────────────────────────────
   Problem: 4px orange lines between sections look choppy
   Fix:     Thinner, lower opacity, more subtle transitions
========================================================== */

.header-divider {
  height: 1px !important;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(224, 90, 26, 0.25) 30%,
    rgba(224, 90, 26, 0.45) 50%,
    rgba(224, 90, 26, 0.25) 70%,
    transparent 100%
  ) !important;
}

/* No divider between consecutive dark sections */
.wcu-section + .header-divider,
.capabilities-overview + .header-divider {
  display: none;
}


/* ==========================================================
   §4  SECTION TITLES — VISUAL PUNCH
   ──────────────────────────────────────────────────────────
   Problem: Section headers look uniform and flat
   Fix:     Eyebrow gets a decorative dash / stronger presence
========================================================== */

/* Eyebrow: add a leading dash accent */
.platform-modules-header .eyebrow::before,
.about-eyebrow::before {
  background: var(--mt-brand-primary) !important;
  width: 14px !important;
  height: 3px !important;
}

/* Services section title → slightly larger */
.platform-modules-header h2,
.platform-modules-title {
  font-size: clamp(2rem, 3.2vw, 2.9rem) !important;
}


/* §5  TRUST BAR — Fully redesigned in trust-bar.css v2.0 */


/* ==========================================================
   §6  ABOUT VISUAL — REMOVE AMATEUR OVERLAY TEXT
   ──────────────────────────────────────────────────────────
   Problem: "ABOUT US" text overlay on image looks cheap
   Fix:     The overlay text is rendered via HTML — we hide it
            via the img container class and rely on the image
========================================================== */

/* If the about-visual has a text overlay element, hide it */
.about-visual > .about-overlay-text,
.about-visual > span,
.about-visual > p {
  display: none !important;
}


/* ==========================================================
   §7  MODULE CARDS — HOVER ACCENT LINE ALWAYS VISIBLE
   ──────────────────────────────────────────────────────────
   Problem: Top accent line only shows on hover (weak UX)
   Fix:     Always show a subtle version, strong on hover
========================================================== */

.module-card::before {
  opacity: 0.3 !important;
}

.module-card:hover::before {
  opacity: 1 !important;
}


/* ==========================================================
   §8  HEADER SPACER — Trust bar removed from fixed header
   ──────────────────────────────────────────────────────────
   Trust bar is now a standalone section below the hero.
   Spacer reverts to base values in 02-layout.css:
   utility(40) + navbar(74) + divider(4) + buffer = 130px
========================================================== */


/* ==========================================================
   §9  RESPONSIVE ADJUSTMENTS
========================================================== */

@media (max-width: 991px) {
  .about-stats {
    gap: 24px;
  }

  .about-stats .stat-item strong {
    font-size: 2rem;
  }
}

@media (max-width: 767px) {
  .about-stats {
    flex-wrap: wrap;
    gap: 20px;
  }

  .about-stats .stat-item {
    text-align: left;
  }
}
