/* 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-x: clip;
}

html,
body {
  max-width: 100%;
}

main,
section,
.grid-container,
.grid-row,
[class*="grid-col"],
.usa-card,
.usa-card__container,
.usa-card__body {
  min-width: 0;
}

h1,
h2,
h3,
p,
li,
a,
button,
label,
input,
select,
textarea {
  overflow-wrap: break-word;
}

.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) {
  body {
    overflow-x: hidden;
  }

  .grid-container,
  .usa-section,
  .home-hero,
  .home-final-cta {
    max-width: 100%;
  }

  .usa-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
  }

  .usa-logo {
    min-width: 0;
    max-width: calc(100% - 5rem);
  }

  .usa-logo__text a {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .usa-menu-btn {
    flex: 0 0 auto;
    min-width: 4rem;
    min-height: 44px;
  }

  .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,
  h1.font-sans-2xl,
  h1.font-sans-3xl,
  .home-final-cta h2 {
    font-size: 1.85rem;
    line-height: 1.08;
    letter-spacing: 0;
    max-width: 100%;
  }

  .home-hero-tag,
  .home-hero .text-uppercase {
    display: block;
    max-width: 100%;
    white-space: normal;
  }

  .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;
}
/* Floating round WhatsApp button (mobile only). Replaced the full-width fixed bar
   on 2026-07-31 so it no longer covers page content. */
@media (max-width: 39.99em) {
  .sticky-mobile-cta {
    display: block;
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 600;
  }
  .sticky-mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #128C7E;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.32);
    text-decoration: none;
  }
  .sticky-mobile-cta a:active { filter: brightness(0.92); }
  .sticky-mobile-cta a:focus-visible { outline: 3px solid #ffc533; outline-offset: 3px; }
  .sticky-mobile-cta svg { width: 28px; height: 28px; fill: currentColor; }
}


/* === 2026-07-31 WCAG AA contrast fixes === */
.usa-tag.bg-mint,
.bg-mint.text-white { color: #1b1b1b !important; }
.text-accent-warm-dark { color: #a14700; }
.text-base { color: #565c65; }
@media (max-width: 39.99em) {
  body:not(.no-sticky-cta) .sticky-mobile-cta a:last-child { background: #157a3f; }
}


/* === 2026-07-31 tap-target sizing (WCAG 2.5.8) === */
a[href^="tel:"],
.usa-footer a[href^="tel:"],
.usa-identifier a[href^="tel:"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-top: 4px;
  padding-bottom: 4px;
}


/* === 2026-07-31: hero CTA that jumps to a form sitting beside it ===
   On desktop the form is the adjacent grid column, so the jump link is a no-op.
   Below the desktop breakpoint the columns stack and the link is a real affordance. */
@media (min-width: 64em) {
  .usa-button.hero-jump-to-form { display: none; }
}


/* === 2026-07-31 layout fixes (from full-site render scan) === */
/* Wide tables scroll inside their own region instead of blowing out the page. */
.oc-table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
  max-width: 100%;
}
.oc-table-scroll > .usa-table { margin: 0; }
.oc-table-scroll:focus-visible { outline: 3px solid #ffc533; outline-offset: 2px; }

/* Embeds must never exceed their column. */
.oc-embed, iframe { max-width: 100%; }

/* Keep the floating WhatsApp button from sitting on top of a field being filled in. */
@media (max-width: 39.99em) {
  body:has(input:focus, textarea:focus, select:focus) .sticky-mobile-cta {
    opacity: 0;
    pointer-events: none;
  }
  .sticky-mobile-cta { transition: opacity .15s ease; }
}


/* === 2026-07-31 visual polish (from full-site render review) === */

/* Related-service / nearby-city links were shouty uppercase underlined boxes that
   broke mid-phrase ("REPUTATION / MANAGEMENT"). Restyle as pills matching the hero. */
a.usa-tag.border-base-dark {
  text-transform: none;
  text-decoration: none;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  background-color: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #fff;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
a.usa-tag.border-base-dark:hover,
a.usa-tag.border-base-dark:focus {
  background-color: rgba(255, 197, 51, 0.14) !important;
  border-color: #ffc533 !important;
  color: #ffc533;
}

/* Footer: the 44px tap target made the phone link taller than the email,
   knocking them onto different baselines. Centre them instead. */
.usa-footer__contact-info { align-items: center; }
.usa-footer__contact-info a { text-decoration: underline; }

/* Footer nav was a wall of underlines. */
.usa-footer__primary-link { text-decoration: none; }
.usa-footer__primary-link:hover,
.usa-footer__primary-link:focus { text-decoration: underline; }

/* Inline icon + label pairs had the glyph jammed against the text. */
.font-sans-3xs.display-flex > svg:first-child { margin-right: 0.35rem; flex-shrink: 0; }


/* === 2026-07-31 a11y follow-ups === */
/* WCAG 2.5.8: the restyled pills were 4px apart, so each target was partially obscured. */
a.usa-tag.border-base-dark {
  padding: 0.55rem 1rem;
  margin: 0.25rem !important;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

/* .text-mint (#04c585) is a dark-background colour; as a link on light sections it
   only reached 2.25:1. Darken it there and keep the bright mint on dark sections. */
main a.text-mint { color: #0b6b47; }
[class*="bg-base-dark"] a.text-mint,
[class*="bg-base-darkest"] a.text-mint { color: #04c585; }

/* .text-orange / .bg-orange (#e66f0e) fail AA on light backgrounds; darken there,
   keep the bright accent on dark sections. */
main .text-orange { color: #a14700; }
[class*="bg-base-dark"] .text-orange { color: #e66f0e; }
.usa-tag.bg-orange { background-color: #a14700 !important; color: #fff; }


/* === 2026-07-31 mobile spacing pass (measured at 430px) === */

/* USWDS .grid-gap-2 is a *grid* utility: on a flex row it sets no gap at all, so the
   hero CTAs were touching edge-to-edge (button1 bottom 432 == button2 top 432). */
.display-flex.grid-gap-2,
.display-flex.flex-wrap.grid-gap-2 { gap: 0.5rem; }

/* Below the desktop breakpoint the hero form stacks straight onto the trust row
   with 0px between them. Give it room. */
@media (max-width: 63.99em) {
  #contact.desktop\:grid-col-5 { margin-top: 1.5rem; }
}

/* Stat tiles: one of them has no caption, so the row rendered ragged. */
.grid-row > [class*="grid-col"] > .bg-base-darker.radius-md { height: 100%; }

/* 4rem top+bottom on every section is a lot of dead space on a phone. */
@media (max-width: 39.99em) {
  .usa-section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* Stat tiles were 183px tall for ~68px of content on a phone. */
@media (max-width: 39.99em) {
  .grid-row > [class*="grid-col"] > .bg-base-darker.radius-md {
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .grid-row > [class*="grid-col"] > .bg-base-darker.radius-md > p:first-child { margin-bottom: 0.25rem; }
}


/* === 2026-08-01 stat block, own layout (replaces the USWDS grid patchwork) === */
.oc-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr));
  gap: 0.75rem;
}
.oc-stat {
  background: #3d4551;
  border-radius: 0.5rem;
  padding: 1.25rem 0.75rem;
  text-align: center;
}
.oc-stat__num {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}
.oc-stat__label {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  color: #dfe1e2;
}
@media (min-width: 40em) {
  .oc-stats { gap: 1rem; }
  .oc-stat { padding: 1.75rem 1rem; }
  .oc-stat__num { font-size: 2.25rem; }
}

/* Hero: with the jump button and the trust row gone, centre what is left on
   stacked (non-desktop) widths. Desktop keeps the two-column left alignment. */
@media (max-width: 63.99em) {
  main > section:first-of-type .desktop\:grid-col-7 { text-align: center; }
  main > section:first-of-type .display-flex.flex-wrap.grid-gap-2 { justify-content: center; }
}


/* === 2026-08-01 hero card fixes (found by looking at a 700px render) === */

/* The badge was pinned at top:-.65rem, so it hung above the card and landed on
   whatever sat above it (the reassure row). Keep it inside the card. */
.home-form-badge { top: 0.75rem !important; right: 0.75rem !important; }

/* USWDS .usa-form is capped at 20rem, which left the card half empty once the
   form column went full-width below the desktop breakpoint. */
.usa-card .usa-form,
#form-top .usa-form,
#contact .usa-form { max-width: 100%; }

/* This footnote is a flex row holding an icon, a sentence and a link, with no
   gap and no wrapping, so the link collided with the text. */
.usa-card p.display-flex.flex-align-center { flex-wrap: wrap; gap: 0.25rem; }
.usa-card p.display-flex.flex-align-center > svg { flex-shrink: 0; }


/* ===================================================================
   2026-08-01  FLAT PASS
   No rounded corners, no gradients, no shadows, no decorative divider
   lines. Kept on purpose: the round WhatsApp button (asked for), radio
   controls (must read as radios), and focus rings (accessibility).
   =================================================================== */

*, *::before, *::after {
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}

/* the floating WhatsApp button stays a circle */
.sticky-mobile-cta a { border-radius: 50% !important; }
/* radios must still look like radios */
input[type="radio"],
.usa-radio__input + .usa-radio__label::before { border-radius: 50% !important; }

/* focus must stay visible */
*:focus-visible { outline: 3px solid #ffc533 !important; outline-offset: 2px; }
.usa-input:focus, .usa-select:focus, .usa-textarea:focus, .usa-combo-box__input:focus {
  outline: 3px solid #005ea2 !important; outline-offset: 0;
}

/* --- gradients -> flat colour (background shorthand, so a solid must replace it) --- */
.home-page { background: #f8f9fb !important; }
.home-hero { background: #12263a !important; }
.home-final-cta { background: #162f45 !important; }
.home-service-card { background: #ffffff !important; }
.home-proof-card .usa-card__header { background: #ffffff !important; border-bottom: 0 !important; }
.home-problem-section::before,
.home-process-section::before,
.home-seo-copy::before,
.home-city-section::before { background: none !important; display: none !important; }

/* --- divider lines --- */
hr, .usa-hr { display: none !important; }
.border-top, .border-bottom { border-top-width: 0 !important; border-bottom-width: 0 !important; }
.home-trust-rail { border-top: 0 !important; border-bottom: 0 !important; }
.home-hero-reassure { border-top: 0 !important; padding-top: 0 !important; }
.usa-footer__return-to-top { border-bottom: 0 !important; }
.usa-card__header, .usa-card__footer { border-top: 0 !important; border-bottom: 0 !important; }

/* form controls still need an edge to be usable */
.usa-input, .usa-select, .usa-textarea, .usa-combo-box__input {
  border: 1px solid #565c65 !important;
}

/* no tilted sticker, and the footnote icon must stay on the same line as its text */
.home-form-badge { transform: none !important; }
.usa-card p.display-flex.flex-align-center { display: block !important; }
.usa-card p.display-flex.flex-align-center > svg {
  display: inline-block; vertical-align: -0.15em; margin-right: 0.35rem; flex-shrink: 0;
}

/* decorative glow blobs and overlay washes - remove entirely */
.home-hero::before,
.home-hero::after,
.home-final-cta::before,
.home-final-cta::after { content: none !important; display: none !important; }

/* no frosted-glass header */
* { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.usa-nav-container, .usa-header { filter: none !important; }

/* text-align does not centre flex rows: the pills and the reassure ticks stayed
   left while the rest of the hero was centred. */
@media (max-width: 63.99em) {
  .home-hero-pills .pill-row,
  .home-hero-reassure,
  .home-trust-items { justify-content: center; }
  .home-hero-pills .pills-label { text-align: center; }
}

/* white on #ffc533 is 1.58:1 - use dark ink on the gold badge */
.home-form-badge { color: #1b1b1b !important; }


/* === 2026-08-01 spacing pass (measured, not guessed) === */

/* Stacked grid columns sat flush against each other below the desktop breakpoint
   (hero text against the form card on the homepage, /seo-audit/, /contact/,
   /nonprofit-seo/, /about/). */
@media (max-width: 63.99em) {
  [class*="desktop:grid-col"] + [class*="desktop:grid-col"] { margin-top: 1.5rem; }
}

/* Two buttons side by side had no gap at all. */
a.usa-button + a.usa-button,
button.usa-button + a.usa-button,
a.usa-button + button.usa-button { margin-left: 0.5rem; }
@media (max-width: 39.99em) {
  a.usa-button.width-full + a.usa-button.width-full { margin-left: 0; margin-top: 0.5rem; }
}

/* Big number stacked directly on its caption. */
span.font-heading-md + span.font-sans-3xs,
span.font-heading-lg + span.font-sans-3xs,
span.font-heading-xl + span.font-sans-3xs { display: block; margin-top: 0.2rem; }

/* USWDS icon lists rendered with zero space between rows. */
.usa-icon-list__item + .usa-icon-list__item { margin-top: 0.4rem; }

/* remaining measured touch-points */
@media (max-width: 63.99em) {
  a.usa-button + a.usa-button,
  button.usa-button + a.usa-button { margin-top: 0.5rem; }
}
/* inline stat blocks sitting flush against each other */
.grid-col-auto + .grid-col-auto { margin-left: 1.25rem; }
@media (max-width: 39.99em) { .grid-col-auto + .grid-col-auto { margin-left: 0; margin-top: 0.75rem; } }
/* a heading must not sit directly on the block that follows it */
h2 + .usa-process-list,
h2 + .usa-accordion,
h2 + .usa-table,
h2 + .oc-table-scroll { margin-top: 1rem; }
