/* Approved November 29, 2026. Preserve the original design and allow native zoom/reflow. */

/* Ten services form complete rows: five on desktop, two on smaller screens. */
html .service-tile-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
html .service-tile { min-width: 0; }
html .service-tile span { overflow-wrap: break-word; }
@media (max-width: 999px) {
  html .service-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 299px) {
  html .service-tile-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the action visible in the supplied photos without stretching them. */
html .subhero[style*="interior-technician"] { background-position: 60% 15%; }
html .subhero[style*="termite-inspection"] { background-position: 62% 48%; }
html .subhero[style*="property-inspection"] { background-position: 75% 72%; }
html .subhero[style*="rodent-commercial-project"] { background-position: 70% 0%; }
html .service-detail-intro[style*="closet-inspection"] .split-clean::before {
  background-position: 37% 50%;
}
html .service-detail-intro[style*="rodent-residential-bait-station"] .split-clean::before {
  background-position: 50% 50%;
}
html .service-detail-intro[style*="interior-treatment-detail"] .split-clean::before {
  background-position: 46% 58%;
}
html .service-detail-intro[style*="crawlspace-inspection"] .split-clean::before {
  background-position: 29% 50%;
}
html .about-origin-photo img[src*="technician-truck"] { object-position: 26% 48%; }

/* The commercial field photo is portrait: keep the entire trailer and worker
   visible instead of forcing it into a wide, diagonally clipped frame. */
html .commercial-editorial-grid {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 64px);
}
html .commercial-editorial-copy { min-width: 0; }
html .commercial-editorial-photo {
  width: 100%;
  max-width: 28rem;
  min-width: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: transparent;
  box-shadow: 0 16px 40px rgba(17, 17, 17, .1);
}
html .commercial-editorial-photo img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center;
  clip-path: none;
  border-radius: 0;
  box-shadow: none;
}

/* Each operation is one readable row. The original nested two-column grids
   left only a few characters of space for each description at desktop zoom. */
html .commercial-operation-rows {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
html .commercial-operation-rows > div {
  grid-template-columns: minmax(6.5rem, .28fr) minmax(0, 1fr);
  gap: 20px;
}
html .commercial-operation-rows b { margin-bottom: 0; }
html .commercial-operations-grid > div > p { color: #dedede; }

@media (max-width: 800px) {
  html .commercial-editorial-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 42rem;
    gap: 32px;
  }
}
@media (max-width: 600px) {
  html .commercial-operation-rows > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}

/* At tablet widths use a bounded film frame instead of a 750px-tall spacer.
   cover retains the film's proportions; Watch Our Commercial shows it in full. */
@media (min-width: 701px) and (max-width: 1020px) {
  html .homepage-hero { --tablet-commercial-height: min(73.4375vw, 520px); }
  html .homepage-hero .hero-heading {
    min-height: var(--tablet-commercial-height);
    justify-content: center;
    padding: clamp(44px, 6vw, 68px) 0 64px;
  }
  html .homepage-hero .hero-heading::before {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .38)),
      linear-gradient(0deg, #090909, transparent 70%);
  }
}

/* Avoid three squeezed columns before the service layout stacks on phones. */
@media (min-width: 701px) and (max-width: 1180px) {
  html .service-detail-intro .split-clean {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
  }
  html .service-detail-intro .split-clean::before {
    min-height: 360px;
    align-self: stretch;
    order: 2;
  }
  html .service-detail-intro .stacked-proof {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
  }
}

/* Focused, full-width photos remain useful when the page reflows at high zoom. */
@media (max-width: 700px) {
  html .subhero[style*="property-inspection"] { background-position: 100% 72%; }
  html .service-detail-intro .split-clean::before {
    min-height: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
  }
}

/* Short viewports (including desktop zoom) must not be covered by a sticky bar. */
@media (max-height: 540px) {
  html .topbar { position: relative; }
  html [id] { scroll-margin-top: 16px; }
}

/* Additive service information, separate from the unchanged bed bug guidance. */
.bedbug-treatment-note { background: #fff; color: #111; padding: 0 0 clamp(40px, 6vw, 80px); }
.bedbug-treatment-grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 72px);
  padding-top: clamp(28px, 4vw, 48px);
  border-top: 3px solid #ff8000;
}
.bedbug-treatment-grid > div { min-width: 0; }
.bedbug-treatment-note h2 {
  margin: 12px 0 0;
  font-size: clamp(1.875rem, 3vw, 2.75rem);
  line-height: 1.15;
  overflow-wrap: break-word;
}
.bedbug-treatment-copy p { margin: 0 0 1rem; font-size: 1.0625rem; line-height: 1.7; color: #4a4a4a; }
.bedbug-treatment-copy p:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .bedbug-treatment-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* Final presentation polish: preserve layout and brand, reduce visual noise. */
html .intro-split .shape-photo img,
html .intro-split .green-card {
  box-shadow: 0 14px 36px rgba(17, 17, 17, .12);
}
html .service-tile,
html .contact-detail-card {
  box-shadow: 0 8px 24px rgba(17, 17, 17, .09);
}
html .primary:not(:focus-visible),
html .call-btn:not(:focus-visible) {
  box-shadow: 0 5px 16px rgba(17, 17, 17, .12);
}
html .primary:hover:not(:focus-visible),
html .call-btn:hover:not(:focus-visible) {
  box-shadow: 0 0 0 2px #111, 0 7px 20px rgba(17, 17, 17, .16);
}

/* Lead forms should be as easy to read as the surrounding service content. */
html .lead-field-group > .lead-field-label { font-size: .875rem; }
html .homepage-hero #homepage-request-form > p { font-size: 1rem; line-height: 1.6; }
html .homepage-hero #homepage-request-form .mini-form-note { font-size: .875rem; }
html .homepage-hero #miniForm select { font-size: 1rem; }
html .contact-hero-grid > div > .kicker { color: #ff8a1c; }
@media (min-width: 1021px) {
  html .main-nav a, html .main-nav button { font-size: .875rem; }
  html .contact-hero-grid { align-items: start; }
  html .contact-hero-grid > div { padding-top: 18px; }
}
