/* Compact homepage network snapshot — desktop hero card and final mobile hero item. */
#home .hero-inner {
  position: relative !important;
}

.home-network-stats {
  position: absolute;
  right: clamp(0px, 4.5vw, 56px);
  bottom: 34px;
  z-index: 2;
  width: min(370px, 32vw);
  padding: 12px 14px 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 0, .82);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(255, 138, 0, .08), transparent 46%),
    rgba(5, 5, 5, .92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .46), 0 0 24px rgba(255, 138, 0, .12);
  color: #ff8a00;
  backdrop-filter: blur(5px);
}

.home-network-stats::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #ff8a00, #ffb047, transparent 92%);
  content: "";
}

.home-network-stats-kicker {
  margin: 0 0 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .10em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.home-network-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.home-network-stat {
  display: flex;
  min-width: 0;
  padding: 0 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
}

.home-network-stat:first-child {
  border-left: 0;
}

.home-network-stat strong {
  display: block;
  color: #ff8a00;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .95;
  -webkit-text-stroke: 1.35px #000;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 #000, 0 3px 12px rgba(0, 0, 0, .72);
}

.home-network-stat:last-child strong {
  font-size: clamp(24px, 2.45vw, 34px);
}

.home-network-stat:nth-child(2) strong {
  font-size: clamp(24px, 2.65vw, 36px);
}

.home-network-stat span {
  display: block;
  margin-top: 6px;
  color: #e7e7e7;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .045em;
  line-height: 1.18;
  text-transform: uppercase;
}

.home-network-stats-tagline {
  margin: 11px 0 0;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .065em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

@media (max-width: 1040px) {
  #home .hero-inner {
    display: flex !important;
    min-height: auto !important;
    padding-top: 48px;
    padding-bottom: 48px;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: center;
  }

  .home-network-stats {
    position: static;
    order: 3;
    width: min(420px, 100%);
    margin-top: 22px;
  }
}

@media (max-width: 760px) {
  #home .hero-inner {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .home-network-stats {
    width: 100%;
    margin-top: 14px;
    padding: 12px 8px 13px;
    border-radius: 14px;
    backdrop-filter: none;
  }

  .home-network-stats-kicker {
    margin-bottom: 9px;
  }

  .home-network-stat {
    padding: 0 6px;
  }

  .home-network-stat strong {
    font-size: clamp(26px, 8.5vw, 36px);
  }

  .home-network-stat:last-child strong {
    font-size: clamp(22px, 7vw, 30px);
  }

  .home-network-stat:nth-child(2) strong {
    font-size: clamp(22px, 7.5vw, 32px);
  }

  .home-network-stat span {
    font-size: clamp(8px, 2.5vw, 10px);
  }

  .home-network-stats-tagline {
    margin-top: 10px;
    padding: 9px 4px 0;
    font-size: clamp(9px, 2.7vw, 11px);
    letter-spacing: .035em;
  }
}

@media (max-width: 360px) {
  .home-network-stat {
    padding-inline: 4px;
  }

  .home-network-stat span {
    letter-spacing: .015em;
  }
}

/* Shared hero placement for Find Tradesmen, Recent Work and Blogs. */
.network-stats-hero .network-stats-hero-layout {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 370px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.network-stats-hero .home-network-stats {
  position: relative;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 370px;
  margin: 0;
  justify-self: end;
}

/* Prevent individual hero paragraph rules from changing the shared card. */
.network-stats-hero .home-network-stats-kicker {
  max-width: none;
  margin: 0 0 8px;
  color: #fff !important;
  font-size: 11px;
  line-height: 1.2;
}

.network-stats-hero .home-network-stats-tagline {
  max-width: none;
  margin: 11px 0 0;
  padding-top: 9px;
  color: #fff !important;
  font-size: 10px;
  line-height: 1.25;
}

@media (max-width: 1040px) {
  .network-stats-hero .network-stats-hero-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .network-stats-hero .home-network-stats {
    width: min(420px, 100%);
    max-width: 420px;
    margin: 0;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .network-stats-hero .home-network-stats {
    width: 100%;
    max-width: none;
  }
}

/* Contractor page keeps its plan selector intact and places the shared
   snapshot directly beneath it in the same opening section. */
.contractor-network-stats-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: min(var(--max, 1240px), calc(100% - 40px));
  margin: 28px auto 0;
}

.contractor-network-stats-row .home-network-stats {
  position: relative;
  right: auto;
  bottom: auto;
  width: min(370px, 100%);
  margin: 0;
}

@media (max-width: 760px) {
  .contractor-network-stats-row {
    width: min(100% - 24px, var(--max, 1240px));
    justify-content: stretch;
    margin-top: 20px;
  }

  .contractor-network-stats-row .home-network-stats {
    width: 100%;
    max-width: none;
  }
}
