/* Phone refinements, loaded last so desktop styles stay untouched. */
@media (max-width: 640px), (max-width: 900px) and (max-height: 500px) {
  body.page-home .home-image-hero { height: 100svh; min-height: 560px; }
  body.page-home .home-image-hero::after { background: linear-gradient(180deg, #15151552, transparent 28%), linear-gradient(0deg, rgba(18,18,18,.88), rgba(18,18,18,.4) 48%, transparent 78%); }
  body.page-home .home-reasons + .home-testimonials { padding-top: 32px; }
  body.page-home .home-image-copy { left: 24px; right: 24px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.page-home .home-image-bottom { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); align-items: center; }
  body.page-home .home-image-copy h1 { font-size: clamp(36px, 11.3vw, 44px); line-height: 1.06; }
  body.page-home .home-image-copy .home-hero-service-line { font-size: 18px; line-height: 1.45; margin-top: 16px; }
  body.page-home .home-hero-reviews { min-height: 44px; align-items: center; margin-bottom: 6px; }
  body.page-home .home-image-scroll { display: inline-flex; align-items: center; min-height: 44px; }

  /* Make text actions as easy to tap as the main buttons. */
  body main .text-link,
  body .home-local-copy > .phone-link,
  body .comparison-card-info h3 > a,
  body .form-privacy > a,
  body .site-footer .footer-privacy,
  body .area-map figcaption > a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 8px;
    line-height: 1.45;
  }
  body .home-local-copy > .phone-link { margin-top: 8px; font-size: 16px; }
  body .home-local-copy > .text-link { margin-right: 18px; }
  body .comparison-card-info h3 > a { display: flex; width: 100%; }

  /* Give the form more usable writing space on narrow phones. */
  body.page-contact .contact-form { padding: 24px 18px; }
  body:is(.page-home, .page-contact) .contact-experience h2 { font-size: clamp(28px, 7.8vw, 32px); line-height: 1.15; }
  body:is(.page-home, .page-contact) .contact-experience .field { margin-bottom: 18px; }
  body:is(.page-home, .page-contact) .contact-experience .field > label { font-size: 15px; }
  body:is(.page-home, .page-contact) .contact-experience .field input:not([type=file]),
  body:is(.page-home, .page-contact) .contact-experience .field textarea {
    min-height: 52px;
    font-size: 17px;
    scroll-margin-top: calc(var(--experience-header-height, 88px) + 16px);
  }
  body:is(.page-home, .page-contact) .contact-experience .field textarea { min-height: 144px; }
  body:is(.page-home, .page-contact) .form-privacy > a { font-size: 14px; }
  body:is(.page-home, .page-contact) .contact-photos > summary { min-height: 52px; font-size: 16px; }
  body:is(.page-home, .page-contact) .contact-error-summary,
  body:is(.page-home, .page-contact) .contact-result { scroll-margin-top: calc(var(--experience-header-height, 88px) + 16px); }

  /* Two contact columns and one full-width hours row shorten the footer. */
  body.page-home .site-footer, body.subpage .site-footer { padding: 32px 0 24px; }
  body .site-footer .footer-brand { width: 200px; }
  body .site-footer .footer-description { font-size: 22px; }
  body .site-footer .footer-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 18px; margin-top: 24px; padding-bottom: 24px; }
  body .site-footer .footer-info-column:last-child { grid-column: 1 / -1; }
  body .site-footer .footer-info-icon { width: 42px; height: 42px; margin-bottom: 10px; }
  body .site-footer .footer-info-icon svg { width: 21px; height: 21px; }
  body .site-footer .footer-column-heading { font-size: 21px; }
  body .site-footer .footer-phone { font-size: clamp(22px, 6.4vw, 26px); white-space: nowrap; }
  body .site-footer .footer-legal { padding-top: 16px; }
}

/* Short phones and landscape keep a scrollable menu with visible links. */
@media (max-width: 900px) and (max-height: 700px) {
  body .site-header .main-nav.open { padding-top: 12px; padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
  body .site-header .main-nav.open > a { min-height: 52px; padding-block: 10px; font-size: 27px; }
  body .site-header .mobile-menu-contact { padding-top: 20px; }
}
@media (orientation: landscape) and (max-height: 500px) and (max-width: 900px) {
  body.page-home .home-image-hero { min-height: 540px; height: 100svh; }
  body.page-home .home-image-copy { left: 28px; right: 28px; bottom: 90px; }
  body.page-home .home-image-copy h1 { font-size: clamp(38px, 5.2vw, 50px); }
  body.page-home .home-image-copy .eyebrow { margin-bottom: 8px; }
  body.page-home .home-image-bottom { bottom: 20px; }
}
