/* July Redline 49: preserve visible focus and readable text across phone layouts. */
.mobile-contact { display: none; }
video:focus, video:focus-within, iframe:focus, iframe:focus-within {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px #005fcc;
}
.page-home .services-overview h2 span { color: #a94708; }
.page-home .energy-brite-credentials .proof-intro > .eyebrow {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  background: #082d47;
  color: #ffd166;
}
.page-home .solar-stage-marker { background: #fff7e8; color: #78320a; }
main > .section-dark.ready-solar-help:last-child {
  background: linear-gradient(rgba(4, 30, 48, .68), rgba(4, 30, 48, .68)),
    url('/assets/images/ready-for-solar-help-background.png') right center / cover no-repeat !important;
}
.site-footer-copyright, .site-footer-bottom p, .site-footer-legal p { color: #dce8f3; opacity: 1; }
.page-contact .site-footer-legal p { color: #fff; }
.about-gallery-image-caption { background: rgba(2, 24, 39, .94); padding-top: 16px; }
:where(a, button, summary, input, select, textarea, [tabindex]) {
  scroll-margin-block: calc(var(--header, 84px) + 24px) 100px;
}
@media (max-width: 760px) {
  /* Show the fixed call bar only after the opening section has scrolled past. */
  .mobile-contact.is-after-hero { display: block; }
  body.menu-open .mobile-contact { display: none; }
  .page-home .solar-readiness-card p,
  .page-home .proof-issuer,
  .page-home .home-gallery-intro,
  .contact-response,
  .lead-form .help,
  .lead-form .field-error,
  .contact-emergency-note { font-size: 1rem; }
  .page-home .solar-readiness-card a.solar-readiness-link-nowrap { font-size: .9375rem; }
  .page-home .eyebrow,
  .page-contact .eyebrow,
  .page-contact .contact-slogan,
  .page-home .proof-category { font-size: .875rem; }
  .page-home .home-hero-copy { background: #04243b; padding-top: 12px; border-radius: 6px; }
  .page-home .home-hero-capabilities li,
  .page-home .proof-ledger-kicker,
  main .eyebrow { font-size: .875rem !important; }
  .page-home .gallery-section-intro { font-size: 1rem; }
  .about-gallery-image-caption, .about-gallery-index { font-size: .875rem; }
  .header-estimate-cta { font-size: .875rem !important; }
}

/* Keep enlarged homepage text inside its column at narrow phone widths. */
.page-home .service-overview-card h3,
.page-home .gallery-showcase-heading h2,
.page-home .proof-history p { overflow-wrap: anywhere; min-width: 0; }

/* November 17, 2026 QA: permit desktop navigation text to wrap when enlarged. */
@media (min-width: 1100px) {
  .primary-nav { min-width: 0; }
  .primary-nav > a:not(.estimate-cta),
  .nav-dropdown > summary { white-space: normal; }
  .header-estimate-cta { flex-shrink: 0; }
}
