/* Shared mobile reading styles. Loaded after each page's own stylesheet. */
@media screen and (max-width: 768px) {
  :root {
    --color-text-light: #56667A;
  }

  .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  body main :is(p, li, dd, .faq-answer__inner) {
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: break-word;
  }

  body main p + p {
    margin-top: 1rem;
  }

  main :is(.legal-content, .svc-content__prose, .content-section) li + li {
    margin-top: 0.5rem;
  }

  body main h1 {
    font-size: clamp(1.875rem, 8.5vw, 2.125rem);
    line-height: 1.25;
  }

  body main h2,
  #process .section-header h2,
  #property-types .section-header h2,
  #repair-vs-replace .section-header h2 {
    font-size: clamp(1.5rem, 5.5vw, 1.75rem);
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
  }

  body main :is(h3, .feature-card h3, .symptom-card h3,
    .component-item h3, .rr-factor h3, .timeline-step h3,
    .value-card h3, .why-card h3, .blog-card h3) {
    font-size: 1.125rem;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  main :is(.section-header, .contact-preparation__heading) {
    margin-bottom: 2rem;
  }

  main :is(.services-grid, .features-grid, .problems-grid, .compare-grid,
    .svc-symptoms__grid, .component-list, .rr-factors, .process-timeline,
    .values-grid, .why-grid, .blog-grid) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  main :is(.service-card, .feature-card, .problem-card, .compare-card,
    .symptom-card, .component-item, .rr-factor, .value-card, .why-card,
    .blog-card__body, .safety-banner) {
    min-width: 0;
    padding: 1.25rem;
  }

  #process .process-step,
  #property-types .property-card {
    padding: 1.25rem;
  }

  main .feature-card {
    flex-direction: column;
    gap: 1rem;
  }

  main :is(.feature-card, .component-item, .rr-factor) > div {
    min-width: 0;
  }

  main :is(.service-card, .process-step) h3 {
    min-height: 0;
  }

  main :is(.hero, .svc-hero, .page-hero) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    min-height: 0;
  }

  main :is(.hero, .svc-hero, .page-hero) > .container {
    width: 100%;
    order: 1;
  }

  main :is(.hero__content, .svc-hero .container, .page-hero .container) {
    padding: 1.5rem 1rem;
  }

  main :is(.hero__bg, .svc-hero__bg, .page-hero__bg) {
    position: relative;
    inset: auto;
    order: 2;
    width: calc(100% - 2rem);
    max-width: 720px;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 0 auto 1.5rem;
    border-radius: 1rem;
    overflow: hidden;
  }

  main :is(.hero__bg, .svc-hero__bg, .page-hero__bg) img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
  }

  main :is(.hero__overlay, .svc-hero__overlay, .page-hero__overlay) {
    display: none;
  }

  body main :is(.hero, .svc-hero, .page-hero, .contact-hero) h1 {
    margin-bottom: 0.75rem;
    font-size: clamp(1.875rem, 8.5vw, 2.125rem);
    line-height: 1.25;
  }

  body main :is(.hero__text, .svc-hero__text, .page-hero__text, .contact-hero__intro) {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.65;
  }

  main .contact-hero {
    padding: 1.5rem 0;
  }

  main :is(.hero__badge, .svc-hero__badge) {
    margin-bottom: 0.75rem;
  }

  main .hero__trust {
    flex-direction: row;
    justify-content: center;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
  }

  main :is(.hero__actions, .svc-hero__actions) {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0;
  }

  main :is(.hero__actions, .svc-hero__actions) .btn {
    width: 100%;
    max-width: 360px;
  }

  body main :is(.hero__actions, .svc-hero__actions) .btn--primary {
    min-height: 50px;
    padding: 0.75rem 1rem;
  }

  body main :is(.hero__actions, .svc-hero__actions) .btn--outline {
    min-height: 44px;
    padding: 0.5rem 0.75rem;
    border-color: transparent;
    background: transparent;
    color: var(--color-white);
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }

  body main :is(.btn, .service-card__cta, .related-link, .error-action, .error-route) {
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.5;
    white-space: normal;
  }

  body main :is(.hero__badge, .svc-hero__badge, .hero__trust-item,
    .contact-eyebrow, .contact-hero__area, .service-area__badge) {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  body main :is(.brand-tag, .brand-pill, .zip-tag, .area-tag, .type-tag,
    .blog-card__link, .contact-nap__map) {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  body main .faq-question,
  body main .faq-item summary {
    padding: 1.25rem;
    min-height: 48px;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
  }

  main .faq-answer__inner {
    padding: 0 1.25rem 1.25rem;
  }

  main .faq-item.active .faq-answer,
  main .faq-item[open] .faq-answer {
    max-height: none;
  }

  main .faq-item[open] .faq-answer {
    padding: 1.25rem;
  }

  main .faq-cat-card__title {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  main .faq-cat-card__link {
    min-height: 44px;
  }

  main .faq-cat-list > li,
  main .area-tags > li {
    margin-top: 0;
  }

  main .legal-content :is(p, li) {
    max-width: 65ch;
  }

  .breadcrumb__list {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .header__inner {
    min-height: 68px;
    padding: 0.5rem 0;
  }

  .header__logo img {
    width: clamp(130px, 40vw, 150px);
  }

  .header__nav {
    gap: 0.5rem;
  }

  .header__cta-phone {
    min-height: 44px;
    padding: 0.5rem 0.625rem;
    font-size: 0.875rem;
  }

  .nav-toggle {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .breadcrumb {
    top: 68px;
  }

  .nav__list.active .nav__link {
    font-size: 1rem;
  }

  .mobile-nav__cta-label {
    font-size: 0.875rem;
  }

  .footer :is(p, li, .footer__contact-item),
  .footer .footer__links a,
  .footer .footer__links--2col a {
    font-size: 1rem;
    line-height: 1.65;
    overflow-wrap: anywhere;
  }

  .footer .footer__links a,
  .footer .footer__contact-item a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    max-width: 100%;
  }

  .footer__legal a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 0.875rem;
  }

  .footer__bottom {
    font-size: 0.875rem;
  }
}
