/* site-noncritical.css
   Combined from:
   - stats-counters.css
   - portfolio.css
   - estimate-form.css
   Intentionally excludes navbar.css (keep navbar critical to avoid FOUC in header). */

/* ===== stats-counters.css ===== */

/* stats-counters.css */

/* Dark, high-contrast, neon-accent style that still reads cleanly. */

:root {
  --stats-bg: #0d1b2a;
  --stats-panel: rgba(255,255,255,0.06);
  --stats-panel-2: rgba(255,255,255,0.085);
  --stats-border: rgba(255,255,255,0.12);
  --stats-text: rgba(255,255,255,0.92);
  --stats-muted: rgba(255,255,255,0.70);
  --stats-accent: #9dca5a;
  --stats-accent-2: rgba(157,202,90,0.22);
  --stats-radius: 1rem;
  --stats-shadow: 0 0.6rem 1.6rem rgba(0,0,0,0.28);
}

/* Optional light variant if you ever want it */

.stats-band--light {
  --stats-bg: rgba(0,0,0,0.03);
  --stats-panel: #ffffff;
  --stats-panel-2: #ffffff;
  --stats-border: rgba(0,0,0,0.08);
  --stats-text: rgba(0,0,0,0.88);
  --stats-muted: rgba(0,0,0,0.62);
  --stats-shadow: 0 0.6rem 1.3rem rgba(0,0,0,0.10);
}

.stats-band {
  background: var(--stats-bg);
  color: var(--stats-text);
  position: relative;
  overflow: hidden;
}

/* Subtle texture so it doesn't look flat */

.stats-band::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 20% 20%, var(--stats-accent-2), transparent 55%), radial-gradient(circle at 80% 35%, rgba(255,255,255,0.06), transparent 50%), linear-gradient(135deg, rgba(255,255,255,0.03), transparent 40%);
  transform: rotate(8deg);
  pointer-events: none;
}

.stat-card {
  background: var(--stats-panel);
  border: 1px solid var(--stats-border);
  border-radius: var(--stats-radius);
  box-shadow: var(--stats-shadow);
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

/* Accent bar */

.stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--stats-accent);
  opacity: 0.95;
}

.stat-card:hover {
  transform: translateY(-3px);
  background: var(--stats-panel-2);
  border-color: rgba(255,255,255,0.18);
  box-shadow: 0 1.0rem 2.2rem rgba(0,0,0,0.34);
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--stats-accent);
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.12);
  flex: 0 0 auto;
}

.stat-number {
  font-weight: 850;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
}

.stat-number .count {
  color: var(--stats-accent);
  text-shadow: 0 0 0.8rem rgba(157,202,90,0.10);
}

.stat-affix {
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0.78;
  margin: 0 0.25rem;
}

.stat-label {
  margin-top: 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.80rem;
  color: var(--stats-text);
  opacity: 0.88;
}

.stat-sub {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  color: var(--stats-muted);
}

.stat-stars {
  margin-top: 0.35rem;
  font-size: 1.05rem;
  letter-spacing: 0.10em;
  color: var(--stats-accent);
  line-height: 1;
}

/* Mobile: prevent awkward wrapping */

@media (max-width: 575.98px) {
  .stat-number {
    font-size: 2.1rem;
  }
}

@media (max-width: 575.98px) {
  .stat-sub {
    font-size: 0.9rem;
  }
}

/* Respect reduced motion */

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

/* ===== portfolio.css ===== */

/* Slightly nicer feel without fighting Bootstrap */

#portfolio .btn.is-active {
  background: #212529;
  color: #fff;
  border-color: #212529;
}

.portfolio-item {
  transition: opacity 160ms ease, transform 160ms ease;
}

.portfolio-item.is-hidden {
  display: none !important;
}

/* ===== estimate-form.css ===== */

/* Keeps the form area from collapsing when you hide the form */

.estimate-slot {
  min-height: 520px;
  position: relative;
}

/* Messages overlay in the same “slot” instead of reflowing the layout */

.estimate-msg {
  position: absolute;
  inset: 0;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* When we show it, we want flex centering */

.estimate-msg.is-visible {
  display: flex !important;
}

/* Optional: keep padding so the alert looks decent */

.estimate-msg {
  padding: 1.25rem;
}

