.local-hero { background: var(--plum); color: var(--paper); }
.local-hero > img { display: block; width: min(1440px, 100%); height: clamp(245px, 42vw, 560px); object-fit: cover; object-position: center 58%; margin-inline: auto; }
.local-heading { padding-block: clamp(35px, 6vw, 70px); }
.local-heading h1 { max-width: 20ch; margin: 10px 0 17px; font-size: clamp(42px, 6vw, 76px); }
.local-heading > p:not(.local-breadcrumb) { max-width: 66ch; font-size: 18px; }
.local-heading .button { margin-top: 23px; }
.local-breadcrumb { font-size: 14px; color: var(--gold); }
.local-breadcrumb a, .local-reading a, .local-link, .local-feature a { text-decoration: underline; text-underline-offset: 4px; }
.area-discovery { background: #f3ede1; }
.area-discovery .section-intro { align-items: baseline; }
.local-card-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.local-card { display: flex; flex-direction: column; grid-column: span 2; background: #fffdf7; border: 1px solid var(--line); }
.local-card img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.local-card div { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.local-card h3 { margin: 0 0 6px; font-size: 22px; }
.local-card p { color: var(--muted); font-size: 15px; }
.local-card div > span { margin-top: auto; padding-top: 13px; color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
.local-card:hover { border-color: var(--gold-dark); }
.local-reading { max-width: 850px; display: grid; gap: 30px; }
.local-reading h2 { margin: 0 0 10px; font-size: clamp(27px, 4vw, 40px); }
.local-service-links ul { display: flex; flex-wrap: wrap; gap: 8px 25px; padding-left: 20px; }
.local-feature { background: #f3ede1; border-left: 3px solid var(--gold-dark); padding: 18px 22px; }
.local-feature a { display: inline-block; margin: 8px 16px 0 0; }
.testimonial-list { display: grid; gap: 36px; max-width: 1050px; }
.video-testimonial { display: grid; grid-template-columns: minmax(0, 320px) minmax(0,1fr); gap: clamp(22px, 5vw, 64px); align-items: center; }
.video-testimonial video { width: 100%; height: auto; aspect-ratio: 9/16; display: block; background: var(--plum); }
.video-testimonial h2 { font-size: clamp(31px, 4.5vw, 51px); }
.video-testimonial li + li { margin-top: 11px; }
@media (max-width: 900px) { .local-card { grid-column: span 3; } }
@media (max-width: 620px) {
  .video-testimonial { grid-template-columns: 1fr; }
  .video-testimonial video { max-width: 340px; }
  .local-card-grid { gap: 11px; }
}
@media (max-width: 480px) { .local-card { grid-column: 1 / -1; } }

.local-service-grid a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; background: #fffdf7; border: 1px solid var(--line); }
.action-section { background: #f3ede1; }
.action-section h2 { margin: 0 0 24px; }
.action-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.action-card { display: flex; flex-direction: column; background: #fffdf7; border: 1px solid var(--line); }
.action-card video { display: block; width: 100%; height: clamp(260px, 42vw, 485px); object-fit: contain; background: var(--plum); }
.action-card > div { padding: clamp(14px, 2.5vw, 25px); }
.action-card :is(h2,h3) { margin: 0 0 8px; font-size: clamp(20px, 3vw, 28px); }
.action-card p { color: var(--muted); }
.action-card a { display: inline-block; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .action-grid { grid-template-columns: 1fr; }
  .action-card video { height: clamp(280px, 86vw, 450px); }
}

.action-card { border: 0; background: transparent; }
.action-card video, .action-card > div { width: 100%; max-width: 100%; margin-inline: auto; }
.action-card video { height: auto; background: transparent; object-fit: initial; }
.action-card > div { padding-inline: 0; }
.action-grid { row-gap: 32px; }
.local-service-links .local-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; gap: 18px; padding: 0; }
.local-service-grid a { display: flex; flex-direction: column; align-items: stretch; padding: 0; text-decoration: none; height: 100%; }
.local-service-grid img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.local-service-grid a > span { padding: 10px 12px; font-weight: 700; }
.local-service-grid a:hover > span { text-decoration: underline; }
.results-service { margin-top: 32px; }
.results-service h3 { font-size: 23px; margin-bottom: 10px; }
.results-service h3 a { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 620px) {
  .action-card video { max-width: 100%; }
}

.service-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; max-width: 900px; margin-inline: auto; }
.service-grid .service-card { padding: 0; }
.service-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card-content { padding: clamp(11px, 1.7vw, 18px); }

.home-discovery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 0; }
.home-discovery h2 { margin: 0; font-size: clamp(23px, 3vw, 32px); }
.home-discovery a { display: grid; place-items: center; min-height: 62px; height: 100%; padding: 12px; text-align: center; border: 1px solid var(--line); background: #fffdf7; }
.home-discovery a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: 4px; }

.results-examples { width: min(1200px, calc(100% - 20px)); }
.results-carousel .carousel-track { max-height: clamp(530px, 88svh, 900px); }
.results-carousel img { max-height: clamp(530px, 88svh, 900px); object-fit: contain; }

@media (max-width: 620px) {
  .local-service-links .local-service-grid, .home-discovery { grid-template-columns: minmax(0, 1fr); }
}

.home-hero h1 { max-width: 21ch; margin-inline: auto; font-size: clamp(36px, 5.7vw, 70px); font-weight: 750; }
.home-hero .hero-copy > p:not(.eyebrow) { max-width: 44ch; }
.google-word { white-space: nowrap; }
.google-word span:nth-child(1), .google-word span:nth-child(4) { color: #4285f4; }
.google-word span:nth-child(2), .google-word span:nth-child(6) { color: #ea4335; }
.google-word span:nth-child(3) { color: #fbbc05; }
.google-word span:nth-child(5) { color: #34a853; }
.service-card img[src$="/pool-deck-feature.webp"],
.local-service-grid img[src$="/pool-deck-feature.webp"] { aspect-ratio: 1291 / 1536; }

.home-hero .hero-copy > .hero-review-proof { margin-top: 15px; font-size: clamp(19px, 3vw, 27px); font-weight: 750; color: var(--gold); }
.hero-review-proof a { text-decoration: underline; text-underline-offset: 5px; }
.service-card img[src$="/homepage-window-cleaning.webp"] { object-position: center 42%; }

.seekable-video { min-width: 0; }
.video-timeline {
  display: block;
  width: 100%;
  min-height: 36px;
  margin: 4px 0 0;
  accent-color: var(--plum);
  touch-action: pan-y;
}
.video-timeline:enabled { cursor: pointer; }
@media (max-width: 700px) {
  .video-testimonial .seekable-video { max-width: 340px; }
}

/* Desktop spacing and media sizing. The existing tablet and phone rules continue below 1024px. */
@media (min-width: 1024px) {
  :root { --header-height: 65px; }
  .header-inner { min-height: 64px; }
  .header-inner .brand img { height: 43px; }
  .wrap, .home-comparison .wrap, .service-examples .wrap, .service-hero .wrap {
    width: min(1080px, calc(100% - 72px));
  }
  .section { padding-block: 48px; }
  .section-intro { margin-bottom: 22px; }
  .quote { padding-block: 42px; }
  .hero.home-hero .hero-grid { padding-block: 30px; }
  .hero-copy .actions { margin-top: 20px; }
  .home-hero .hero-photo { width: min(1120px, 100%); }
  .home-hero .hero-photo img { max-height: min(48svh, 430px); }
  .home-hero h1, .service-hero h1, .local-heading h1, .home-comparison h1 { font-size: clamp(42px, 4.2vw, 57px); }
  .local-heading { padding-block: 40px; }
  .local-hero > img { width: min(1120px, 100%); height: clamp(240px, 34svh, 380px); }
  .service-heading { max-width: 760px; }
  .service-hero :is(.service-feature, .window-hero-photo) img {
    width: auto;
    height: auto;
    max-height: min(47svh, 440px);
    aspect-ratio: auto;
    object-fit: contain;
    margin-inline: auto;
  }
  .section h2, .quote h2, .window-scope h2, .window-gallery h2 {
    font-size: clamp(32px, 3.3vw, 44px);
  }
  .value-card { padding: 28px; }
  .service-grid { max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-card > img, .local-service-grid img,
  .service-card img[src$="/pool-deck-feature.webp"],
  .local-service-grid img[src$="/pool-deck-feature.webp"] { aspect-ratio: 4 / 3; }
  .local-service-links .local-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-discovery { padding-top: 0; }
  .home-discovery h2 { font-size: 26px; }

  /* Give each comparison the proportions of its source photos so the divider
     runs across the picture and the entire image stays in view. */
  .home-comparison .comparison {
    --photo-ratio: calc(558 / 750);
    --photo-height: min(54svh, 480px);
    width: min(100%, calc(var(--photo-height) * var(--photo-ratio)));
    margin-inline: auto;
  }
  .home-comparison .comparison[data-photo="roof"] { --photo-ratio: calc(920 / 304); }
  .home-comparison .comparison[data-photo="house"] { --photo-ratio: calc(656 / 878); }
  .home-comparison .comparison[data-photo="paver-sealing"] { --photo-ratio: calc(656 / 880); }
  .home-comparison .comparison[data-photo="deck"] { --photo-ratio: calc(920 / 610); }
  .home-comparison .comparison[data-photo="driveway"] { --photo-ratio: calc(920 / 611); }
  .home-comparison .comparison[data-photo="gutter"] { --photo-ratio: calc(495 / 750); }
  .home-comparison .comparison-images {
    height: auto;
    aspect-ratio: var(--photo-ratio);
  }
  .home-comparison .comparison-images img { object-fit: contain; object-position: center; }
  .results-examples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .results-examples > h2 { grid-column: 1 / -1; }
  .results-service { margin: 0; }
  .photo-carousel .carousel-track { aspect-ratio: auto; max-height: none; }
  .photo-carousel img {
    height: min(48svh, 440px);
    max-height: none;
    object-fit: contain;
    background: var(--plum);
  }
  .window-process img { height: min(42svh, 380px); aspect-ratio: auto; object-fit: contain; }
  .window-gallery-grid { margin-top: 16px; }
  .owner-carousel img { max-height: 400px; object-fit: contain; }
  .area-grid img { max-width: 380px; }
  .action-card video { max-height: min(47svh, 440px); object-fit: contain; }
  .video-testimonial { grid-template-columns: minmax(0, 235px) minmax(0, 1fr); }
}
