html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: clip;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  max-width: 100%;
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

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

.brand-shadow {
  box-shadow: 0 18px 48px rgba(0, 69, 87, 0.11);
}

.hero-image {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 34, 0.88), rgba(12, 24, 34, 0.62), rgba(12, 24, 34, 0.1)),
    url("../images/pure-water-window-cleaning.jpg");
  background-position: center;
  background-size: cover;
}

.sub-hero-domestic {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 34, 0.88), rgba(12, 24, 34, 0.55)),
    url("../images/residential-windows.jpg");
  background-position: center;
  background-size: cover;
}

.sub-hero-commercial {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 34, 0.88), rgba(12, 24, 34, 0.55)),
    url("../images/window-cleaning-detail.jpg");
  background-position: center;
  background-size: cover;
}

.commercial-page .sub-hero-commercial {
  background-image:
    linear-gradient(90deg, rgba(13, 44, 42, 0.9), rgba(13, 44, 42, 0.58), rgba(13, 44, 42, 0.2)),
    url("../images/window-cleaning-detail.jpg");
}

.commercial-page .text-water {
  color: #1d7668;
}

.commercial-page .bg-water {
  background-color: #1d7668;
}

.commercial-page .hover\:bg-water:hover {
  background-color: #235a52;
}

.commercial-page .bg-mist {
  background-color: #eff8f4;
}

.commercial-page .border-slate-200 {
  border-color: #d7e8e2;
}

.commercial-page .brand-shadow {
  box-shadow: 0 18px 48px rgba(13, 44, 42, 0.13);
}

.sub-hero-exterior {
  background-image:
    linear-gradient(90deg, rgba(12, 24, 34, 0.88), rgba(12, 24, 34, 0.55)),
    url("../images/gutter-cleaning.jpg");
  background-position: center;
  background-size: cover;
}

.section-pad {
  padding-block: clamp(3rem, 7vw, 6.5rem);
}

.field {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0.9rem 0.95rem;
  color: #172033;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus {
  border-color: #299ab8;
  box-shadow: 0 0 0 4px rgba(41, 154, 184, 0.14);
}

.check-item {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  padding: 0.8rem;
  background: #fff;
}

.check-item input {
  margin-top: 0.2rem;
  accent-color: #299ab8;
}

.photo-input-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.photo-upload-control {
  display: grid;
  gap: 0.75rem;
}

.photo-upload-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.photo-add-button,
.photo-remove-button {
  border-radius: 8px;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.photo-add-button {
  border: 1px solid #004557;
  background: #004557;
  color: #fff;
  padding: 0.8rem 1rem;
}

.photo-add-button:hover,
.photo-add-button:focus {
  background: #299ab8;
  border-color: #299ab8;
}

.photo-count {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 600;
}

.photo-list {
  display: grid;
  gap: 0.5rem;
}

.photo-list-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  background: #fff;
  padding: 0.65rem 0.75rem;
}

.photo-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-size {
  color: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.photo-remove-button {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #004557;
  padding: 0.45rem 0.65rem;
}

.photo-remove-button:hover,
.photo-remove-button:focus {
  border-color: #299ab8;
  color: #299ab8;
}

[data-mobile-nav] a {
  display: block;
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
}

[data-mobile-nav] a:focus,
[data-mobile-nav] a:hover {
  background: #eef7fa;
}

.review-slide {
  min-width: min(88vw, 48rem);
  scroll-snap-align: start;
}

.review-track {
  max-width: 100%;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.review-track::-webkit-scrollbar {
  display: none;
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  main h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
    line-height: 1.08;
  }

  main h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
    line-height: 1.15;
  }

  .section-pad {
    padding-block: 2.75rem;
  }

  .hero-image,
  .hero-image > div {
    min-height: 590px;
  }

  .sub-hero-domestic,
  .sub-hero-commercial,
  .sub-hero-exterior,
  .sub-hero-domestic > div,
  .sub-hero-commercial > div,
  .sub-hero-exterior > div {
    min-height: 460px;
  }

  main > section.bg-ink:first-child > div {
    min-height: 460px;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .field {
    min-height: 48px;
  }

  .check-item {
    padding: 0.75rem;
  }

  .photo-list-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .photo-size {
    display: none;
  }

  .review-slide {
    min-width: calc(100vw - 2rem);
  }

  .hero-image {
    background-image:
      linear-gradient(180deg, rgba(12, 24, 34, 0.9), rgba(12, 24, 34, 0.72)),
      url("../images/pure-water-window-cleaning.jpg");
  }

  .sub-hero-domestic {
    background-image:
      linear-gradient(180deg, rgba(12, 24, 34, 0.9), rgba(12, 24, 34, 0.72)),
      url("../images/residential-windows.jpg");
  }

  .sub-hero-commercial {
    background-image:
      linear-gradient(180deg, rgba(12, 24, 34, 0.9), rgba(12, 24, 34, 0.72)),
      url("../images/window-cleaning-detail.jpg");
  }

  .commercial-page .sub-hero-commercial {
    background-image:
      linear-gradient(180deg, rgba(13, 44, 42, 0.92), rgba(13, 44, 42, 0.76)),
      url("../images/window-cleaning-detail.jpg");
  }

  .sub-hero-exterior {
    background-image:
      linear-gradient(180deg, rgba(12, 24, 34, 0.9), rgba(12, 24, 34, 0.72)),
      url("../images/gutter-cleaning.jpg");
  }
}
