/* Shared layout corrections for desktop, tablet and narrow mobile screens. */
:root {
  --page-gutter: clamp(16px, 4vw, 48px);
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
}

.wrap {
  width: calc(100% - var(--page-gutter) * 2);
  max-width: 1280px;
}

main, section, article, figure, nav, footer, form,
.hero-grid > *, .intro-grid > *, .grid > *, .complete-services > *,
.benefit-grid > *, .eight-steps > *, .pricing-grid > *,
.testimonial-grid > *, .booking-grid > *, .contact-grid > *,
.footer-grid > *, .city-grid > *, .area-links > *, .link-grid > * {
  min-width: 0;
}

h1, h2, h3, p, a, summary, label, address, blockquote {
  overflow-wrap: anywhere;
}

img, svg, video {
  max-width: 100%;
}

.hero-grid, .intro-grid, .booking-grid, .contact-grid, .photo-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid, .three, .complete-services, .pricing-grid, .testimonial-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four, .process, .eight-steps, .city-grid, .area-links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.benefit-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.link-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 28px;
}

.footer-address {
  text-align: left;
}

.footer-address address {
  font-style: normal;
  font-size: 13px;
  line-height: 1.85;
  margin: 0 0 15px;
}

.footer-address p {
  font-size: 12px;
  color: var(--muted);
}

input, select, textarea {
  min-width: 0;
  max-width: 100%;
}

textarea {
  resize: vertical;
}

.field-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.button {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.actions {
  max-width: 100%;
}

.quote-inner {
  flex-wrap: wrap;
}

.quote-panel .button {
  white-space: normal;
}

.hero-image img {
  object-fit: contain;
  aspect-ratio: 1.5;
  width: 100%;
  background: #dfeaec;
}

.service-icon, .avatar, .benefit-grid svg {
  flex-shrink: 0;
}

.dropdown a, .nav-dropdown summary {
  white-space: normal;
}

.prose .grid {
  grid-template-columns: minmax(0, 1fr);
}

/* Use the compact menu before desktop links crowd the logo. */
@media (max-width: 1200px) {
  .nav-wrap {
    min-height: 80px;
    gap: 16px;
  }

  .brand {
    width: min(250px, 65%);
    flex-shrink: 1;
  }

  .brand img {
    height: auto;
    max-height: 58px;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    flex-shrink: 0;
    padding: 10px 13px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--navy);
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: white;
    padding: 12px var(--page-gutter) 24px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .site-header nav.open {
    display: block;
  }

  .site-header nav > a,
  .site-header nav > details {
    display: block;
    margin: 0;
    padding: 12px 0;
  }

  .site-header nav .nav-cta {
    display: inline-flex;
    padding: 12px 22px;
    margin-top: 10px;
  }

  .nav-dropdown .dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    max-height: none;
    margin-top: 10px;
    padding: 8px;
    background: var(--pale);
    border: 0;
    box-shadow: none;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-address {
    grid-column: 3;
  }

  .benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1201px) {
  .site-header nav {
    gap: clamp(13px, 1.5vw, 23px);
  }

  .brand {
    width: 240px;
  }

  .dropdown {
    width: 300px;
    max-width: calc(100vw - 40px);
  }
}

@media (max-width: 900px) {
  .hero-grid, .intro-grid, .booking-grid, .contact-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  .hero h1, .compact h1 {
    font-size: clamp(34px, 6vw, 54px);
  }

  .hero-copy .lead {
    max-width: 650px;
  }

  .hero-image {
    max-width: 720px;
    width: 100%;
    margin-inline: auto;
  }

  .complete-services, .service-grid, .three, .pricing-grid,
  .testimonial-grid, .link-grid, .city-grid, .area-links, .four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .eight-steps, .process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .price-card {
    padding: 30px 22px;
  }

  .form-card {
    width: 100%;
  }

  .booking-grid > div:first-child img {
    max-width: 650px;
  }

  .prose .grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .nav-wrap {
    min-height: 72px;
  }

  .brand {
    width: min(215px, 67%);
  }

  .menu-toggle {
    gap: 8px;
    font-size: 13px;
    padding: 9px 10px;
  }

  .hero, .hero.compact {
    padding: 30px 0;
  }

  .hero h1, .compact h1, .contact-grid h1 {
    font-size: clamp(31px, 8.4vw, 43px);
    line-height: 1.1;
  }

  h2, .block-heading h2 {
    font-size: clamp(27px, 7.3vw, 34px);
  }

  .hero h1 br {
    display: none;
  }

  .hero h1 em::before {
    content: ' ';
  }

  .section {
    padding: 42px 0;
  }

  .complete-services, .service-grid, .three, .pricing-grid,
  .testimonial-grid, .link-grid, .photo-pair, .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .benefit-grid, .eight-steps, .process, .four, .city-grid, .area-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .mini-service, .info-card, .price-card, .testimonial {
    padding: 23px;
  }

  .benefit-grid article {
    padding: 20px 12px;
  }

  .benefit-grid h3, .four h3 {
    font-size: 18px;
  }

  .eight-steps h3 {
    font-size: 20px;
  }

  .form-card {
    padding: 22px 18px;
  }

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

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

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:nth-child(2),
  .footer-address {
    grid-column: 1 / -1;
  }

  .footer-address {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }

  .footer-grid > div:nth-child(2) a {
    width: 100%;
    display: block;
  }

  .footer-bottom {
    display: block;
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 5px;
    font-size: 13px;
  }

  .phone-large {
    font-size: clamp(22px, 6vw, 28px);
  }

  .comparison {
    aspect-ratio: 1.97;
  }

  .quote-inner .actions {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .benefit-grid, .eight-steps, .process, .four, .city-grid, .area-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .actions .button {
    width: 100%;
  }

  .brand {
    width: 180px;
  }

  .menu-toggle span {
    display: none;
  }
}
