html {
  scrollbar-color: #0b2e73 #e5ebf5;
  scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
  html::-webkit-scrollbar {
    width: 10px;
  }

  html::-webkit-scrollbar-track {
    background: #e5ebf5;
  }

  html::-webkit-scrollbar-thumb {
    background: #0b2e73;
    border: 2px solid #e5ebf5;
    border-radius: 999px;
  }
}

@media (pointer: coarse), (forced-colors: active) {
  html {
    scrollbar-color: auto;
    scrollbar-width: auto;
  }
}

.wrap {
  width: min(1180px, calc(100% - 2 * clamp(1rem, 4vw, 3rem)));
}

main :is(.hero-grid, .split, .section-head, .content-grid, .service-gallery) > * {
  min-width: 0;
}

main img {
  max-width: 100%;
}

main :is(input, select, textarea) {
  min-width: 0;
}

main :is(h1, h2, h3) {
  overflow-wrap: anywhere;
}

.google-score {
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(.625rem, 2vw, 1.125rem);
}

.google-reviews-link {
  min-height: 44px;
  max-width: 100%;
  line-height: 1.3;
}

footer .grid > div {
  min-width: 0;
}

footer a {
  overflow-wrap: anywhere;
}

@media (min-width: 601px) and (max-width: 1024px) {
  main .section:not(.infinite-cta-section) {
    padding-block: clamp(3rem, 7vw, 4rem);
  }

  main :is(.content-grid, .service-gallery, .service-links, .audience-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main :is(.hero-grid, .split) {
    column-gap: clamp(1.5rem, 4vw, 3rem);
  }

  main .section-head {
    gap: 1.25rem;
  }
}

@media (max-width: 800px) {
  .header .mobile-nav nav {
    max-height: min(70vh, calc(100dvh - 7rem));
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .floating-contact {
    right: max(.75rem, env(safe-area-inset-right));
    bottom: max(.75rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  main :is(.content-grid, .service-gallery, .service-links, .audience-grid) {
    grid-template-columns: minmax(0, 1fr);
  }

  main .section:not(.infinite-cta-section) {
    padding-block: 2.75rem;
  }

  main :is(.section-head, .hero-grid, .split) {
    gap: 1.5rem;
  }

  main .hero h1 {
    font-size: clamp(2rem, 8.25vw, 2.625rem);
    line-height: 1.15;
  }

  main .section h2 {
    font-size: clamp(1.625rem, 6.8vw, 2rem);
    line-height: 1.2;
  }

  main :is(input, select, textarea) {
    font-size: 1rem;
  }

  .reviews-carousel-controls {
    gap: .625rem;
    text-align: center;
  }

  .reviews-carousel-controls button {
    flex-shrink: 0;
  }

  .floating-contact .btn {
    min-height: 44px;
    padding: .5rem .75rem;
  }

  main :is(.actions, .final-actions) {
    gap: .625rem;
  }

  main :is(.actions, .final-actions) .btn {
    max-width: 100%;
    min-height: 44px;
    padding: .625rem .875rem;
    gap: .5rem;
    font-size: .875rem;
    line-height: 1.3;
  }

  main :is(.actions, .final-actions) .btn span {
    overflow-wrap: anywhere;
  }
}
