/* UX audit (Nov 30, 2026) — Dec 7 bundle only.
   Safe nav/form/tap-target fixes. Does not change titles, meta, or H1 text.
   Does not alter honeypot, lead_quality, or GA event names. */

/* Fixed nav was covering #contact, focused fields, and in-page anchors. */
html {
  scroll-padding-top: 88px;
}
#contact,
#snapshot,
#missed-lead-check,
#offers,
#cost-review,
#tools,
#pillars,
#main,
#pilot-process {
  scroll-margin-top: 88px;
}
input, select, textarea {
  scroll-margin-top: 88px;
}

/* Tap targets: hamburger was 32×24, logo 40px, some nav/hero buttons under 44px. */
#hamburger.hamburger,
button.hamburger {
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  align-items: center;
  justify-content: center;
  margin-right: -6px;
}
nav .logo {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-cta {
  min-height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.btn-primary,
.btn-secondary,
.ap-btn,
.ap-btn-ghost,
.hc-btn,
.form-submit,
.mobile-cta,
.mobile-menu .mobile-tel {
  min-height: 44px;
  box-sizing: border-box;
}
.mobile-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Homepage: a primary action in the first mobile screen; tighter hero spacing. */
.hero-actions-first {
  display: none;
}
@media (max-width: 1180px) {
  .hero-actions-first {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 20px;
  }
  .hero-actions-first .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    padding: 14px 24px;
  }
  #hero {
    padding-top: 92px !important;
  }
  .hero-badge,
  h1.hero-badge {
    margin-bottom: 18px !important;
  }
  .hero-title {
    margin-bottom: 16px !important;
  }
  .hero-sub {
    margin-bottom: 20px !important;
  }
}

/* Service/city ap-hero: keep the first intro paragraph, then show the existing
   button or door CTAs before the remaining body copy, so a next step is visible
   on a phone without changing copy. */
@media (max-width: 1180px) {
  .ap-hero .ap-wrap {
    display: flex;
    flex-direction: column;
  }
  .ap-hero .ap-wrap > .ap-crumb { order: 0; }
  .ap-hero .ap-wrap > h1 { order: 1; }
  .ap-hero .ap-wrap > h1 + p { order: 2; }
  .ap-hero .ap-wrap > .ap-btn,
  .ap-hero .ap-wrap > .ap-btn-ghost,
  .ap-hero .ap-wrap > .ap-doors,
  .ap-hero .ap-wrap > .ap-actions,
  .ap-hero .ap-wrap > .ap-hero-actions {
    order: 3;
  }
  .ap-hero .ap-wrap > * { order: 4; }
  .ap-hero {
    padding-top: 108px;
  }
}

/* Sticky request-a-call bar (injected by site.js on small screens). */
.tl-sticky-cta {
  display: none;
}
@media (max-width: 1180px) {
  .tl-sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(10, 22, 40, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(30, 127, 232, 0.25);
    box-shadow: 0 -8px 24px rgba(10, 22, 40, 0.25);
  }
  .tl-sticky-cta[hidden] {
    display: none !important;
  }
  .tl-sticky-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    width: 100%;
    background: var(--electric, #1E7FE8);
    color: #fff;
    font-family: var(--font-display), "Space Grotesk", sans-serif;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
  }
  .tl-sticky-cta a:hover,
  .tl-sticky-cta a:focus-visible {
    background: var(--electric-dim, #0D5BAF);
    color: #fff;
  }
  body.tl-has-sticky-cta {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }
}
