/* Dark section text visibility + card text reset */
.bg-base-darkest, .bg-base-darker,
.bg-base-darkest > *, .bg-base-darker > *,
.bg-base-darkest p, .bg-base-darker p,
.bg-base-darkest h1, .bg-base-darker h1,
.bg-base-darkest h2, .bg-base-darker h2,
.bg-base-darkest h3, .bg-base-darker h3,
.bg-base-darkest h4, .bg-base-darker h4,
.bg-base-darkest li, .bg-base-darker li,
.bg-base-darkest span, .bg-base-darker span,
.bg-base-darkest strong, .bg-base-darker strong,
.bg-base-darkest figcaption, .bg-base-darker figcaption,
.bg-base-darkest label, .bg-base-darker label,
.bg-base-darkest address, .bg-base-darker address,
.bg-base-darkest td, .bg-base-darker td,
.bg-base-darkest th, .bg-base-darker th,
.bg-base-darkest dt, .bg-base-darker dt,
.bg-base-darkest dd, .bg-base-darker dd { color: #fff; }
.bg-base-darkest a:not(.usa-button):not(.usa-tag), .bg-base-darker a:not(.usa-button):not(.usa-tag) { color: #dfe1e2; }
.bg-base-darkest a:not(.usa-button):not(.usa-tag):hover, .bg-base-darker a:not(.usa-button):not(.usa-tag):hover { color: #f0f0f0; }

/* Reset card interiors to dark text */
.usa-card__container,
.usa-card__container p,
.usa-card__container h2,
.usa-card__container h3,
.usa-card__container h4,
.usa-card__container li,
.usa-card__container span:not(.usa-tag),
.usa-card__container strong,
.usa-card__container label,
.usa-card__container figcaption { color: #1b1b1b; }
.usa-card__container a:not(.usa-button):not(.usa-tag) { color: #005ea2; }
.usa-card__container a:not(.usa-button):not(.usa-tag):hover { color: #1a4480; }
.usa-card__container .text-base { color: #71767a; }
.usa-card__container .text-green { color: #538200; }
.usa-card__container .text-primary { color: #005ea2; }
.usa-card__container .text-white { color: #fff; }

/* Reset summary-box, alert, accordion interiors to dark text */
.usa-summary-box, .usa-summary-box p, .usa-summary-box h3, .usa-summary-box li, .usa-summary-box strong,
.usa-alert, .usa-alert p, .usa-alert h3, .usa-alert h4, .usa-alert strong, .usa-alert span,
.usa-accordion__content, .usa-accordion__content p, .usa-accordion__content li, .usa-accordion__content strong { color: #1b1b1b; }
.usa-summary-box a, .usa-alert a, .usa-accordion__content a { color: #005ea2; }

/* Homepage refresh */
.home-page {
  background:
    linear-gradient(180deg, #f8f9fb 0%, #f6f3ee 48%, #fbfbfa 100%);
}

.home-page main {
  overflow: hidden;
}

.home-page .usa-header {
  position: relative;
}

.home-page .usa-nav-container {
  border-bottom: 1px solid rgba(18, 38, 58, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.04);
}

/* DESKTOP ONLY: lift the header so the Services submenu can escape the
   .usa-nav-container backdrop-filter stacking context and render above the
   home-hero form card. Must not apply on mobile: the mobile slide-in nav
   (position: fixed, z-index 1001) needs to render above .usa-overlay (z 1000),
   which is a body-level sibling. If the header has its own z-index, the nav
   gets trapped inside the header's stacking context and renders beneath the
   overlay, which made the mobile menu look broken. */
@media (min-width: 64em) {
  .home-page .usa-header {
    z-index: 100;
  }
  .home-page .usa-nav__submenu {
    z-index: 200;
  }
}

.home-page .usa-logo a,
.home-page .usa-nav__link span {
  letter-spacing: 0.01em;
}

.home-page .usa-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.home-hero {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(circle at top right, rgba(255, 196, 92, 0.16), transparent 28rem),
    radial-gradient(circle at top left, rgba(0, 94, 162, 0.22), transparent 32rem),
    linear-gradient(145deg, #0b1f33 0%, #12263a 48%, #1f2a37 100%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: auto -8rem -8rem auto;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: rgba(255, 196, 92, 0.08);
  filter: blur(8px);
}

.home-hero-tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-fit-strip {
  max-width: 44rem;
}

.home-fit-strip .display-flex {
  gap: 0.5rem;
}

.home-hero-cta-row {
  align-items: center;
  gap: 0.75rem;
}

.home-hero-cta-row .usa-button {
  margin: 0;
}

.home-hero-cta-row .usa-button + .usa-button {
  margin-left: 0.85rem;
}

.home-fit-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dfe1e2;
  font-size: 0.86rem;
  line-height: 1.25;
}

.home-stat-row {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1rem;
}

.home-stat-card {
  height: 100%;
  padding: 1rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.home-form-card .usa-card__container,
.home-form-card .usa-card__body {
  border-radius: 1.25rem;
}

.home-form-card .usa-card__container {
  box-shadow: 0 28px 70px rgba(9, 18, 27, 0.14);
  border: 1px solid rgba(32, 54, 85, 0.08);
}

.home-form-card .usa-input,
.home-form-card .usa-select {
  border-radius: 0.8rem;
}

.home-form-card .usa-input:focus,
.home-form-card .usa-select:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 94, 162, 0.18);
}

.home-trust-rail {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.home-trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.home-trust-item {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-problem-section,
.home-process-section,
.home-seo-copy {
  position: relative;
}

.home-problem-section::before,
.home-process-section::before,
.home-seo-copy::before,
.home-city-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(0, 94, 162, 0.04), transparent 24rem);
}

.home-problem-card,
.home-service-card,
.home-proof-card {
  height: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(29, 43, 58, 0.08);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.home-problem-card:hover,
.home-service-card:hover,
.home-proof-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(16, 24, 40, 0.12);
}

.home-problem-card .usa-card__body,
.home-service-card .usa-card__body,
.home-proof-card .usa-card__body {
  padding-top: 1.5rem;
}

.home-problem-card .usa-card__footer,
.home-service-card .usa-card__footer {
  padding-top: 0;
}

.home-service-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.home-service-card--featured {
  position: relative;
  transform: translateY(-0.2rem);
  box-shadow: 0 28px 60px rgba(0, 94, 162, 0.16);
}

.home-service-card--featured::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1.25rem;
  pointer-events: none;
  border: 1px solid rgba(0, 94, 162, 0.2);
}

.home-proof-grid .usa-card__img {
  overflow: hidden;
  border-radius: 0.9rem;
  background: #eef1f6;
  aspect-ratio: 4 / 3;
}

.home-proof-grid .usa-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-proof-card {
  overflow: hidden;
}

.home-proof-card .usa-card__header {
  border-bottom: 1px solid rgba(29, 43, 58, 0.06);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafc 100%);
}

.home-process-section .usa-process-list__item {
  padding-left: 1rem;
}

.home-page .usa-summary-box,
.home-page .usa-alert,
.home-page .usa-accordion--bordered {
  border-radius: 1.25rem;
  border: 1px solid rgba(29, 43, 58, 0.08);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.06);
}

.home-page .usa-accordion__button {
  font-weight: 700;
}

.home-final-cta {
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(circle at bottom left, rgba(0, 179, 136, 0.14), transparent 24rem),
    linear-gradient(145deg, #102437 0%, #162f45 50%, #1d2733 100%);
}

.home-final-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.03));
}

.home-seo-copy .usa-prose,
.home-city-section nav {
  position: relative;
  z-index: 1;
}

.home-seo-copy .usa-prose {
  background: rgba(255, 255, 255, 0.82);
  padding: 2rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(29, 43, 58, 0.08);
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.06);
}

.home-city-section .usa-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  transition: transform 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

.home-city-section nav ul {
  gap: 0.6rem 0.7rem;
}

.home-city-section nav li {
  margin: 0;
}

.home-city-section .usa-tag:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.1);
}

@media (max-width: 63.99em) {
  .home-page .usa-section,
  .home-hero,
  .home-final-cta {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-hero .usa-button--big {
    width: 100%;
    justify-content: center;
  }

  .home-hero-cta-row {
    gap: 0.9rem;
  }

  .home-hero-cta-row .usa-button + .usa-button {
    margin-left: 0;
  }

  .home-page .usa-nav-container {
    backdrop-filter: none;
  }

  .home-page .usa-nav {
    z-index: 1001;
  }

  .home-page .usa-overlay.is-visible {
    z-index: 1000;
  }

  .home-seo-copy .usa-prose {
    padding: 1.25rem;
  }
}

@media (min-width: 64em) {
  .home-hero-cta-row {
    flex-wrap: nowrap;
    column-gap: 0.85rem;
  }

  .home-hero-cta-row .usa-button {
    white-space: nowrap;
    min-height: 2.9rem;
    padding: 0.75rem 1.15rem;
    font-size: 0.95rem;
  }
}

@media (max-width: 40em) {
  .home-page .usa-section,
  .home-hero,
  .home-final-cta {
    padding-top: 2.75rem;
    padding-bottom: 2.75rem;
  }

  .home-page .grid-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .home-hero-tag {
    font-size: 0.72rem;
    line-height: 1.2;
    padding: 0.55rem 0.75rem;
  }

  .home-hero h1,
  .home-final-cta h2 {
    font-size: 2rem;
    line-height: 1.08;
    letter-spacing: -0.02em;
  }

  .home-hero .usa-intro,
  .home-final-cta .font-sans-md {
    font-size: 1rem;
    line-height: 1.55;
  }

  .home-fit-strip {
    margin-bottom: 1.5rem;
  }

  .home-fit-chip,
  .home-trust-item {
    font-size: 0.78rem;
  }

  .home-stat-row {
    gap: 0.75rem;
  }

  .home-stat-card {
    padding: 0.9rem 0.8rem;
  }

  .home-form-card .usa-card__body {
    padding: 1.1rem;
  }

  .home-form-card .usa-button,
  .home-final-cta .usa-button {
    min-height: 3.25rem;
  }

  .home-hero-cta-row {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .home-hero-cta-row .usa-button + .usa-button {
    margin-top: 1rem;
  }

  .home-form-card .display-flex.flex-align-center,
  .home-final-cta .display-flex.flex-align-center {
    align-items: flex-start;
  }

  .home-trust-items {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .home-trust-items::-webkit-scrollbar {
    display: none;
  }

  .home-trust-item {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .home-problem-card,
  .home-service-card,
  .home-proof-card,
  .home-page .usa-summary-box,
  .home-page .usa-alert,
  .home-page .usa-accordion--bordered,
  .home-seo-copy .usa-prose {
    border-radius: 1rem;
  }

  .home-service-card--featured {
    transform: none;
  }

  .home-proof-grid .usa-card__img {
    border-radius: 0.75rem;
  }

  .home-process-section .usa-process-list__item {
    padding-left: 0.5rem;
  }

  .home-page .usa-accordion__button {
    padding-right: 3rem;
    font-size: 0.98rem;
    line-height: 1.35;
  }

  .home-final-cta .usa-icon-list {
    margin-bottom: 1.5rem;
  }

  .home-final-cta .usa-icon-list__content {
    line-height: 1.45;
  }

  .home-seo-copy .usa-prose {
    padding: 1rem;
  }

  .home-city-section nav ul {
    justify-content: flex-start;
  }
}

/* ── Sticky mobile CTA bar ──────────────────────────────────────────
   Two buttons: tap-to-call + WhatsApp. Mobile-only.
   Hidden on desktop and on /ppc-thank-you/ (post-purchase) and /contact/.
*/
.sticky-mobile-cta {
  display: none;
}
@media (max-width: 39.99em) {
  body:not(.no-sticky-cta) .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 600;
    gap: 0;
    padding: 0;
    background: #1b1b1b;
    border-top: 1px solid #2e2e2e;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.18);
    padding-bottom: env(safe-area-inset-bottom);
  }
  body:not(.no-sticky-cta) .sticky-mobile-cta a {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.95rem 0.5rem;
    color: #fff;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    min-height: 48px;
  }
  body:not(.no-sticky-cta) .sticky-mobile-cta a:first-child {
    background: #005ea2;
  }
  body:not(.no-sticky-cta) .sticky-mobile-cta a:last-child {
    background: #1a8f4a;
  }
  body:not(.no-sticky-cta) .sticky-mobile-cta a:active {
    filter: brightness(0.9);
  }
  body:not(.no-sticky-cta) .sticky-mobile-cta svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }
  /* Push body content above the bar so nothing is hidden */
  body:not(.no-sticky-cta) {
    padding-bottom: 56px;
  }
}

/* WCAG 2.5.5: 24px min target spacing on the home city-tag list. The desktop
   margin-05 packs them tight; on small viewports they wrap to two-per-row and
   need a wider gap so a thumb doesn't trigger the wrong link. */
@media (max-width: 39.99em) {
  .home-cities ul.usa-list--unstyled > li.margin-05 {
    margin: 0.4rem !important;
  }
}
