/* Mobile spacing and contact readability, 2026-10-03. */
.contact-mobile-title,
.contact-mobile-note,
.contact-secondary-mobile {
  display: none;
}

.contact-secondary-links {
  display: contents;
}

@media (max-width: 760px) {
  html:has(> body.home-page) {
    scroll-padding-top: 100px;
  }

  .home-page .hero-home,
  .home-page .hero-home-content {
    min-height: 0;
  }

  .home-page .hero-home-content {
    justify-content: center;
    padding: 34px 0 28px;
  }

  .home-page .hero-trust {
    margin-top: 20px;
  }

  .home-page .contact-section {
    padding: 24px 0;
  }

  .home-page .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Keep the mobile consultation flow inside one compact card. */
  .home-page .contact-grid > .contact-card {
    display: flex;
    flex-direction: column;
    padding: 20px;
  }

  .home-page .contact-card .phone {
    font-size: 1.75rem;
    margin: 8px 0 6px;
  }

  .home-page .contact-card .button {
    min-height: 46px;
    padding: 12px 10px;
    font-size: .875rem;
  }

  .home-page .contact-introduction,
  .home-page .contact-card > span,
  .home-page .contact-desktop-note {
    display: none;
  }

  .home-page .contact-card .contact-mobile-title {
    display: block;
    font-size: 1.15rem;
    line-height: 1.4;
    margin: 0;
    color: inherit;
  }

  .home-page .contact-card .contact-mobile-note {
    display: block;
    margin-top: 18px;
    line-height: 1.7;
  }

  .home-page .contact-card .contact-secondary-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
  }

  .home-page .contact-secondary-links .button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    margin: 0;
    padding: 12px 8px;
    border: 1px solid var(--line);
    background: transparent;
    font-size: .8125rem;
    font-weight: 700;
    color: inherit;
    text-decoration: none;
  }

  .home-page .contact-secondary-links .button:first-child {
    background: #fee500;
    color: #191919;
    border-color: #fee500;
  }

  .home-page .contact-secondary-links .button:last-child {
    background: var(--lime);
    color: var(--ink);
    border-color: var(--lime);
  }

  .home-page .contact-secondary-desktop {
    display: none;
  }

  .home-page .contact-secondary-mobile {
    display: inline;
  }

  .pricing-page main#main,
  .board-main {
    /* Match the shared breadcrumb offset on services, materials and details. */
    padding-top: 24px;
  }

  .pricing-page .board-heading,
  .board-main .board-heading {
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .pricing-page .board-heading > .eyebrow,
  .board-main .board-heading > .eyebrow {
    display: none;
  }

  .pricing-page .board-heading h1,
  .board-main .board-heading h1 {
    font-size: 1.7rem;
    line-height: 1.35;
  }

  .pricing-page .board-heading > p:last-child,
  .board-main .board-heading > p:last-child {
    margin-top: 12px;
    font-size: .875rem;
    line-height: 1.7;
  }

  /* The page heading already introduces the same price cards. */
  .pricing-page #prices > .section-heading:first-child {
    display: none;
  }

  .pricing-page #prices {
    padding-top: 8px;
  }

  /* Each archive has a single board tab duplicating its page title. */
  .board-main .board-switch {
    display: none;
  }

  .board-main .board-filters {
    padding-top: 12px;
    padding-bottom: 16px;
  }
}
