/* Main funnel audit fixes, preserving the existing typography and colour palette. */
:root { --call-bar-space: calc(102px + env(safe-area-inset-bottom)); }
html { scroll-padding-bottom: var(--call-bar-space); }
.header-phone, .brand, nav a { min-height: 44px; }
nav a { display: inline-flex; align-items: center; }
.hero-grid > *, .service-layout > *, .faq-grid > * { min-width: 0; }
.hero-copy > p:not(.eyebrow) { max-width: 490px; }
.photo-caption { gap: 0; }
.photo-caption > span { width: 100%; }
.problem { display: flex; flex-direction: column; color: inherit; text-decoration: none; border-radius: 0; }
/* Match the grid's inner corners for hover backgrounds and keyboard focus. */
.problem:first-child { border-radius: 11px 0 0 11px; }
.problem:last-child { border-radius: 0 11px 11px 0; }
.problem:focus-visible { outline-offset: -4px; }
.problem:hover { background: #f8fafd; }
.problem .tag { margin-bottom: 12px; }
.problem h3 { overflow-wrap: break-word; }
.problem .card-link { display: inline-block; margin-top: auto; padding-top: 16px; color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.service-list .detail-body { padding-left: 0; padding-right: 12px; }
.service-list summary { overflow-wrap: anywhere; }
.service-list summary:after { flex-shrink: 0; }
.detail-body a { display: inline-flex; align-items: center; min-height: 44px; }
.faq-call { margin-top: 18px; }
.footer-top > div > a, .legal-body a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; word-break: break-word; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
.legal summary { display: flex; align-items: center; min-height: 44px; }
.legal summary::before { content: '+'; margin-right: 10px; font-size: 21px; }
.legal[open] > summary::before { content: '−'; }
.legal summary::-webkit-details-marker { display: none; }
.legal-body { line-height: 1.65; }
.legal-body a { max-width: 100%; }
.call > span:not(.arrow) { min-width: 0; }
.call b { overflow-wrap: break-word; }
.under-call { max-width: 390px; }
.contact .under-call { margin-inline: auto; }

@media (max-width: 1000px) {
  .problems { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .problem:first-child { border-radius: 11px 0 0 0; }
  .problem:nth-child(2) { border-radius: 0 11px 0 0; }
  .problem:nth-child(3) { border-radius: 0 0 0 11px; }
  .problem:last-child { border-radius: 0 0 11px 0; }
  .problem { border-bottom: 1px solid var(--line); }
  .problem:nth-child(2n) { border-right: 0; }
  .problem:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 900px) {
  .hero-grid { display: flex; flex-direction: column; gap: 25px; align-items: stretch; }
  .hero-copy > p:not(.eyebrow) { max-width: 620px; }
  h1 { font-size: clamp(34px,5.7vw,48px); max-width: 720px; letter-spacing: -1.1px; }
  .hero-visual { max-width: 670px; width: 100%; margin-inline: auto; }
  .hero-visual img { height: 310px; border-radius: 14px; }
  .photo-caption { left: 18px; right: 18px; padding: 17px 21px; }
  .section-intro { align-items: start; }
  .service-layout, .faq-grid { display: block; }
  .service-aside img, .service-aside .caption { display: none; }
  .service-aside > p:not(.eyebrow) { margin-bottom: 26px; }
  .faq-list { margin-top: 24px; }
  .contact-inner { display: block; }
  .contact p { margin-bottom: 23px; }
  .contact .under-call { text-align: left; margin-inline: 0; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 62px; }
  .topbar { font-size: 11px; }
  .hero { padding: 23px 0 28px; }
  .hero-grid { gap: 23px; }
  .eyebrow { font-size: 10px; letter-spacing: .75px; margin-bottom: 11px; }
  h1 { font-size: clamp(28px,8vw,38px); line-height: 1.1; letter-spacing: -.8px; margin-bottom: 15px; }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.45; margin-bottom: 16px; }
  .hero .call { min-height: 70px; padding: 12px 17px; }
  .under-call { font-size: 12px; line-height: 1.45; margin-top: 13px; }
  .hero-visual { max-width: none; }
  .hero-visual img { height: 215px; object-position: center 44%; }
  .photo-caption { position: relative; left: auto; right: auto; bottom: auto; margin: -35px 14px 0; padding: 14px 17px; }
  .trust-inner { gap: 10px; font-size: 12px; }
  .problem { padding: 23px 17px; }
  .problem h3 { font-size: 19px; }
  .service-list .detail-body { padding-left: 0; }
  .contact h2 { font-size: 31px; }
  .contact .call { max-width: none; }
  .footer { padding-bottom: var(--call-bar-space); }
  .mobile-call .call b { font-size: 15px; }
}
@media (max-width: 360px) {
  .problems { grid-template-columns: minmax(0,1fr); }
  .problem:nth-child(n) { border-radius: 0; }
  .problem:first-child { border-radius: 11px 11px 0 0; }
  .problem:last-child { border-radius: 0 0 11px 11px; }
  .problem { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .problem:last-child { border-bottom: 0 !important; }
  .problem .card-link { padding-top: 10px; }
  .trust-inner { font-size: 11px; }
}
@media (max-width: 700px) and (max-height: 620px) {
  .hero { padding-top: 14px; }
  .header-inner { min-height: 58px; }
  h1 { font-size: 26px; line-height: 1.08; margin-bottom: 12px; }
  .hero-copy > p:not(.eyebrow) { line-height: 1.4; margin-bottom: 13px; }
  .eyebrow { margin-bottom: 9px; }
}
@media (max-height: 500px) {
  .mobile-call { display: block; position: fixed; inset: auto 0 0; padding: 8px 15px calc(8px + env(safe-area-inset-bottom)); background: white; box-shadow: 0 -3px 25px #142b5520; z-index: 30; }
  .mobile-call .call { max-width: 620px; margin-inline: auto; min-height: 58px; padding: 9px 16px; box-shadow: none; }
  .mobile-call .call b { font-size: 15px; }
  .mobile-call .call small { font-size: 15px; }
  .mobile-call .call > svg { width: 23px; }
  .footer { padding-bottom: var(--call-bar-space); }
  .hero { padding-top: 18px; }
  .hero .call { display: none; }
  .hero .under-call { margin-top: 0; }
}
