.primary-nav {
  align-self: flex-start;
  height: 63px;
  gap: 16px;
}

.primary-nav a {
  align-items: flex-end;
  padding: 0 0 9px;
}

.pill-button {
  white-space: nowrap;
}

.callout .pill-button {
  padding-inline: 12px;
}

img.service-icon {
  display: block;
  object-fit: contain;
  margin-inline: auto;
}

.callout {
  padding-inline: 60px 286px;
}

.callout .pill-button {
  position: absolute;
  right: 286px;
}

.site-footer {
  grid-template-columns: 1.7fr .62fr .7fr 1.25fr;
}

@media (min-width: 901px) {
  .header-phone {
    margin-left: 20px;
  }
}

.brand-wordmark {
  display: block;
  width: auto;
  height: 49px;
  object-fit: contain;
}

.footer-brand .brand-wordmark {
  height: 42px;
}

@media (max-width: 760px) {
  .brand-wordmark {
    height: 40px;
  }

  .footer-brand .brand-wordmark {
    height: 41px;
  }
}

.footer-contact p {
  margin-block: 4px;
}

@media (max-width: 900px) {
  .site-header {
    height: 74px;
    padding-inline: 24px;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 74px;
    z-index: 20;
    height: auto;
    padding: 8px 24px 16px;
    background: #fff;
    box-shadow: 0 10px 20px #1a43701c;
    flex-direction: column;
    gap: 0;
  }

  .primary-nav.open {
    display: flex;
  }

  .primary-nav a {
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
  }

  .header-phone {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin-left: 10px;
  }

  .header-phone span {
    display: none;
  }

  .callout {
    padding-right: 200px;
  }

  .callout .pill-button {
    right: 28px;
  }
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pill-button--gallery {
  padding-inline: 15px;
  border: 1px solid #c8def4;
  background: #fff;
  color: #245b98;
  font-size: 15px;
}

.pill-button--gallery:hover {
  background: #eef6ff;
}

@media (max-width: 760px) {
  .home-hero-actions {
    flex-wrap: wrap;
  }
}

.hero .hero-photo--video {
  overflow: hidden;
  background: #fff;
  object-fit: initial;
  -webkit-mask: url('assets/hero-shape-soft-mask.svg') center / 100% 100% no-repeat;
  mask: url('assets/hero-shape-soft-mask.svg') center / 100% 100% no-repeat;
}

.hero .hero-photo--video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .hero-photo--video::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .98) 8%, rgba(255, 255, 255, .8) 18%, rgba(255, 255, 255, .43) 29%, rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, 0) 49%);
}

@media (min-width: 600px) and (max-width: 760px) {
  .hero {
    height: 430px;
    padding: 0;
  }

  .hero-copy {
    position: absolute;
    left: 7vw;
    top: 30px;
    width: 38vw;
    max-width: 286px;
    margin: 0;
  }

  .hero h1 {
    font-size: clamp(32px, 5.3vw, 38px);
    line-height: 1.04;
  }

  .hero-copy p {
    width: auto;
    margin: 14px 0 18px;
    font-size: 15px;
    line-height: 1.48;
  }

  .hero .hero-photo--video {
    position: absolute;
    left: 45.5vw;
    top: 0;
    width: 54.5vw;
    height: 430px;
    margin: 0;
  }

}

@media (max-width: 599px) {
  .hero .hero-photo--video {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: min(73vw, 350px);
    margin-top: 24px;
  }

  .hero-copy p {
    font-size: 15px;
  }

  .hero .hero-photo--video::after {
    background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 48%);
  }

}

@media (max-width: 760px) {
  .primary-nav {
    height: auto;
  }

  .primary-nav a {
    align-items: center;
    padding: 12px 0;
  }

  .callout {
    padding: 24px 22px;
  }

  .callout .pill-button {
    position: static;
    right: auto;
  }
}

/* Separate page navigation: the Home visual layout remains unchanged. */
.nav-services {
  position: relative;
  display: flex;
  align-items: stretch;
}

.nav-services > a {
  height: 63px;
}

.service-menu-toggle {
  align-self: stretch;
  display: grid;
  place-items: end center;
  padding: 0 0 12px 5px;
  border: 0;
  background: transparent;
  color: #252c3a;
  cursor: pointer;
}

.service-menu-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .2s ease;
}

.nav-services:hover .service-menu-toggle svg,
.nav-services:focus-within .service-menu-toggle svg,
.nav-services.menu-open .service-menu-toggle svg {
  transform: rotate(180deg);
}

.service-menu {
  position: absolute;
  top: 58px;
  left: -17px;
  z-index: 30;
  display: none;
  width: 220px;
  padding: 8px;
  border: 1px solid #d8e5f4;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 14px 28px #143d6a1f;
}

.nav-services:hover .service-menu,
.nav-services:focus-within .service-menu,
.nav-services.menu-open .service-menu {
  display: block;
}

.service-menu a {
  display: flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 10px !important;
  border: 0 !important;
  border-radius: 7px;
  font-size: 13px !important;
}

.service-menu a:hover,
.service-menu a:focus-visible {
  background: #eef6ff;
}

@media (max-width: 900px) {
  .nav-services {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid #edf2f7;
  }

  .nav-services > a {
    height: auto;
    border-bottom: 0 !important;
  }

  .service-menu-toggle {
    height: 43px;
    align-self: center;
    padding: 0 8px;
    place-items: center;
  }

  .service-menu {
    position: static;
    grid-column: 1 / -1;
    width: auto;
    margin: 0 0 7px;
    padding: 3px 0 6px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-services:hover .service-menu,
  .nav-services:focus-within .service-menu {
    display: none;
  }

  .nav-services.menu-open .service-menu {
    display: block;
  }

  .service-menu a {
    padding: 9px 12px 9px 25px !important;
  }
}

/* Home-only visual enrichment: original residential plumbing imagery. */
.home-showcase {
  position: relative;
  min-height: 458px;
  margin: 28px 32px 34px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px 88px 30px 88px;
  background: #dbe7ee;
  box-shadow: 0 24px 52px rgba(15, 53, 93, .16);
}

.home-showcase__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 52%;
  transform: scale(1.005);
}

.home-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7, 38, 71, 0) 42%, rgba(7, 38, 71, .4) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, .12), transparent 38%);
}

.home-showcase__details {
  position: absolute;
  right: 24px;
  bottom: 23px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 184px);
  gap: 15px;
}

.home-showcase__details figure {
  margin: 0;
  padding: 5px;
  overflow: hidden;
  border-radius: 19px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 14px 30px rgba(5, 34, 66, .24);
}

.home-showcase__details figure:first-child {
  transform: translateY(-22px);
}

.home-showcase__details img {
  display: block;
  width: 174px;
  height: 124px;
  object-fit: cover;
  border-radius: 14px;
}

@media (min-width: 761px) and (max-width: 976px) {
  .home-showcase {
    margin-right: 3.28vw;
    margin-left: 3.28vw;
  }
}

@media (max-width: 760px) {
  .home-showcase {
    min-height: 500px;
    margin: 30px 20px 38px;
    border-radius: 25px 58px 25px 58px;
  }

  .home-showcase__background {
    object-position: 55% center;
  }

  .home-showcase__details {
    right: 15px;
    bottom: 16px;
    left: 15px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .home-showcase__details figure {
    min-width: 0;
    padding: 4px;
    border-radius: 15px;
  }

  .home-showcase__details figure:first-child {
    transform: translateY(-15px);
  }

  .home-showcase__details img {
    width: 100%;
    height: 116px;
    border-radius: 11px;
  }
}

@media (max-width: 430px) {
  .home-showcase {
    min-height: 456px;
  }

  .home-showcase__details img {
    height: 103px;
  }
}

@media (min-width: 1280px) {
  .page {
    width: min(977px, calc(76.34vw - 11.45px));
    zoom: 1.31;
  }
}
