/* ================================================================
   MIGHTY FINE — WHY CHOOSE US WIDGET
   Fully scoped to .mf-why-widget
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..700;1,9..144,300..700&family=Manrope:wght@400;500;600;700&display=swap');

/* ============== SCOPED TOKENS ============== */
.mf-why-widget {
  --mf-navy-deep: #060c2e;
  --mf-navy-bright: #2d44e8;
  --mf-cyan: #56c8f5;
  --mf-cyan-soft: #8fd7f4;
  --mf-cyan-glow: rgba(86, 200, 245, 0.4);
  --mf-pearl: #f0f9ff;
  --mf-text-muted: #a4b1d4;
  --mf-border-soft: rgba(143, 215, 244, 0.12);
  --mf-border-bright: rgba(143, 215, 244, 0.3);

  --mf-font-display: 'Fraunces', Georgia, serif;
  --mf-font-body: 'Manrope', -apple-system, sans-serif;

  --mf-radius-lg: 24px;

  /* Full-bleed breakout */
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  box-sizing: border-box;
}

.mf-why-widget,
.mf-why-widget *,
.mf-why-widget *::before,
.mf-why-widget *::after {
  box-sizing: border-box;
}

/* ============== TYPOGRAPHY ============== */
.mf-why-widget h2, .mf-why-widget h3 {
  font-family: var(--mf-font-display);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--mf-pearl);
  margin: 0;
  font-variation-settings: "opsz" 144;
}

.mf-why-widget p { margin: 0; font-family: var(--mf-font-body); }

/* ============== SECTION ============== */
.mf-why-widget .mf-why {
  position: relative;
  padding: 130px 0;
  background: var(--mf-navy-deep);
  overflow: hidden;
  font-family: var(--mf-font-body);
}

.mf-why-widget .mf-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* ============== SECTION HEAD ============== */
.mf-why-widget .mf-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 70px;
}

.mf-why-widget .mf-eyebrow {
  display: inline-flex;
  align-items: center;
  font-family: var(--mf-font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--mf-cyan);
  margin-bottom: 18px;
  position: relative;
  padding: 0 26px;
}

.mf-why-widget .mf-eyebrow::before,
.mf-why-widget .mf-eyebrow::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 18px;
  height: 1px;
  background: var(--mf-cyan);
}

.mf-why-widget .mf-eyebrow::before { left: 0; }
.mf-why-widget .mf-eyebrow::after  { right: 0; }

.mf-why-widget .mf-section-title {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
  font-variation-settings: "opsz" 144, "SOFT" 50;
}

.mf-why-widget .mf-section-title em {
  font-style: italic;
  font-weight: 300;
  color: var(--mf-cyan-soft);
  background: linear-gradient(135deg, var(--mf-cyan) 0%, var(--mf-cyan-soft) 50%, #fff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mf-why-widget .mf-section-subtitle {
  font-size: 17px;
  line-height: 1.65;
  color: var(--mf-text-muted);
  max-width: 580px;
  margin: 0 auto;
}

/* ============== GRID ============== */
.mf-why-widget .mf-why-grid {
  display: grid;
  gap: 20px;
}

.mf-why-widget.mf-cols-2 .mf-why-grid { grid-template-columns: repeat(2, 1fr); }
.mf-why-widget.mf-cols-3 .mf-why-grid { grid-template-columns: repeat(3, 1fr); }
.mf-why-widget.mf-cols-4 .mf-why-grid { grid-template-columns: repeat(4, 1fr); }

/* ============== CARD ============== */
.mf-why-widget .mf-why-card {
  padding: 38px 28px;
  background: linear-gradient(180deg, rgba(26, 45, 187, 0.12) 0%, rgba(6, 12, 46, 0.3) 100%);
  border: 1px solid var(--mf-border-soft);
  border-radius: var(--mf-radius-lg);
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mf-why-widget .mf-why-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(86, 200, 245, 0.18), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.mf-why-widget .mf-why-card:hover {
  transform: translateY(-6px);
  border-color: var(--mf-border-bright);
  box-shadow: 0 30px 60px -20px rgba(86, 200, 245, 0.25);
}

.mf-why-widget .mf-why-card:hover::before { opacity: 1; }

.mf-why-widget .mf-why-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--mf-cyan) 0%, var(--mf-navy-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 12px 30px -8px var(--mf-cyan-glow);
}

.mf-why-widget .mf-why-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.mf-why-widget .mf-why-title {
  font-family: var(--mf-font-display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--mf-pearl);
  margin-bottom: 12px;
  font-variation-settings: "opsz" 144;
}

.mf-why-widget .mf-why-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mf-text-muted);
}

/* ============== BEADS BG ============== */
.mf-why-widget .mf-beads-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 12% 28%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1px, transparent 1.5px),
    radial-gradient(circle at 78% 18%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1.5px, transparent 2px),
    radial-gradient(circle at 38% 78%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 0.8px, transparent 1.2px),
    radial-gradient(circle at 88% 62%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1.2px, transparent 1.8px),
    radial-gradient(circle at 22% 88%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1px, transparent 1.5px),
    radial-gradient(circle at 62% 42%, var(--mf-cyan-soft) 0%, var(--mf-cyan-soft) 1.5px, transparent 2px);
  background-size: 100% 100%;
  opacity: 0.2;
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .mf-why-widget.mf-cols-4 .mf-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .mf-why-widget.mf-cols-3 .mf-why-grid,
  .mf-why-widget.mf-cols-4 .mf-why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mf-why-widget .mf-wrap { padding: 0 28px; }
  .mf-why-widget .mf-section-head { margin-bottom: 44px; }
  .mf-why-widget .mf-section-title { font-size: clamp(34px, 5.8vw, 46px); line-height: 1.08; }
  .mf-why-widget .mf-section-subtitle { font-size: 15px; }
  .mf-why-widget .mf-why-grid,
  .mf-why-widget.mf-cols-2 .mf-why-grid,
  .mf-why-widget.mf-cols-3 .mf-why-grid,
  .mf-why-widget.mf-cols-4 .mf-why-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mf-why-widget .mf-why-card { padding: 28px 24px; }
  .mf-why-widget .mf-why-icon { width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px; }
  .mf-why-widget .mf-why-icon svg { width: 24px; height: 24px; }
  .mf-why-widget .mf-why-title { font-size: 20px; margin-bottom: 10px; }
}

/* ============== ELEMENTOR CONTAINER FIX ============== */
.elementor-widget-mf-why,
.elementor-widget-mf-why .elementor-widget-container {
  padding: 0 !important;
}
