/* ============================================================
   BUSINESS-STAT.CSS — Stat figure card pattern

   Provides a clean container for the large-figure + caption blocks
   used on the new employer/compliance pages (compliance-platform,
   right-to-work, audit-readiness).

   Variants signal that these are risk/enforcement numbers from
   gov.uk via the icon container only (gradient fill + hover halo).
   Card itself stays white — no left-stripe, no full-card tint.
     • .business-stat--risk     → penalty / revocation stats (red)
     • .business-stat--deadline → reporting-window stats   (amber)

   Loaded in addition to businesses.css, after it. Additive — does
   not override any existing businesses.css rules.
   ============================================================ */

.business-stat {
  background: #fff;
  border: 1px solid var(--im-bg-280, var(--im-bg-300));
  border-radius: 18px;
  padding: 2rem 1.5rem;
  text-align: center;
  height: 100%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.business-stat:hover {
  transform: translateY(-2px);
  border-color: var(--im-accent-200);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Icon container — the single visual cue carrying the risk semantic.
   Variants change only its fill + glow, not the card itself. */
.business-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg,
              rgba(0, 102, 140, 0.14) 0%,
              rgba(0, 102, 140, 0.05) 100%);
  color: var(--im-accent-200);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.business-stat:hover .business-stat-icon {
  box-shadow: 0 8px 24px -8px rgba(0, 102, 140, 0.3);
  transform: translateY(-1px);
}

.business-stat-figure {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--im-accent-200);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.business-stat-caption {
  font-size: 0.875rem;
  color: var(--im-text-200);
  line-height: 1.5;
  margin-bottom: 0;
}

/* -----------------------------------------
   Variant: Risk (penalty / revocation)
   ----------------------------------------- */
.business-stat--risk .business-stat-icon {
  background: linear-gradient(135deg,
              rgba(220, 53, 69, 0.18) 0%,
              rgba(220, 53, 69, 0.06) 100%);
  color: #dc3545;
}

.business-stat--risk:hover {
  border-color: rgba(220, 53, 69, 0.35);
}

.business-stat--risk:hover .business-stat-icon {
  box-shadow: 0 8px 24px -8px rgba(220, 53, 69, 0.4);
}

/* -----------------------------------------
   Variant: Deadline (time-sensitive duty)
   ----------------------------------------- */
.business-stat--deadline .business-stat-icon {
  background: linear-gradient(135deg,
              rgba(245, 158, 11, 0.22) 0%,
              rgba(245, 158, 11, 0.08) 100%);
  color: #b45309; /* deeper amber for AA contrast on white */
}

.business-stat--deadline:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.business-stat--deadline:hover .business-stat-icon {
  box-shadow: 0 8px 24px -8px rgba(245, 158, 11, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .business-stat,
  .business-stat-icon {
    transition: none;
  }
  .business-stat:hover,
  .business-stat:hover .business-stat-icon {
    transform: none;
  }
}
