/* Fix: grid/flex items must be allowed to shrink below min-content.
   Default min-width:auto on grid items forces columns to the widest
   child, and .svc-selector-tabs (nowrap, 4 × 120px tabs) was pushing
   the whole intro section past the viewport on mobile. */
@media (max-width: 1100px) {
  .intro-grid,
  .network-grid,
  .faq-layout,
  .services-header,
  .svc-grid,
  .strengths-grid,
  #contact,
  .footer-inner {
    min-width: 0;
  }

  .intro-grid > *,
  .network-grid > *,
  .faq-layout > *,
  .services-header > *,
  .svc-grid > *,
  .strengths-grid > *,
  #contact > *,
  .footer-inner > * {
    min-width: 0;
  }
}

@media (max-width: 900px) {
  nav,
  section,
  #cta,
  footer {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }

  .divider {
    margin-left: 1.25rem !important;
    margin-right: 1.25rem !important;
  }

  .intro-visual {
    height: auto;
  }

  .map-vis {
    height: 280px;
  }

  .hero-sub,
  .contact-info > p,
  .network-text p,
  .faq-aside p {
    font-size: 0.92rem;
    line-height: 1.7;
  }
}

@media (max-width: 768px) {
  nav {
    min-height: 64px;
  }

  .logo-name {
    font-size: 0.82rem;
  }

  .logo-sub {
    font-size: 0.52rem;
  }

  .ham {
    font-size: 0.84rem;
    border: 1px solid var(--border);
    padding: 0.35rem 0.6rem;
  }

  .nav-links.open {
    top: 64px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }

  #hero {
    min-height: auto;
    padding-top: 2.2rem !important;
    padding-bottom: 2.6rem !important;
  }

  .hero-btns {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
  }

  .btn-p,
  .btn-s,
  .btn-w {
    width: 100%;
    justify-content: center;
  }

  .services-header,
  .faq-layout,
  .network-grid,
  .intro-grid,
  #contact {
    gap: 1.8rem !important;
  }

  .svc-panel,
  .c-form {
    padding: 1.2rem;
  }

  .fg input,
  .fg select,
  .fg textarea {
    font-size: 16px;
  }

  #cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-text p {
    max-width: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  h1.hero-title {
    font-size: clamp(1.8rem, 10vw, 2.3rem);
    line-height: 1.08;
  }

  .hero-sup {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  section {
    padding-top: 2.6rem !important;
    padding-bottom: 2.6rem !important;
  }

  .svc-selector-tabs {
    gap: 0;
    white-space: nowrap;
  }

  .sst {
    min-width: 148px;
  }

  .faq-q {
    padding: 1rem 1rem;
    font-size: 0.82rem;
  }

  .faq-a.open {
    padding: 0 1rem 1rem;
  }
}
