@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Manrope:wght@500;600&display=swap');

:root {
  --ink: #111b21;
  --navy: #0b2d3f;
  --blue: #0876a2;
  --blue-light: #48b7d8;
  --paper: #f4f6f5;
  --white: #fff;
  --muted: #66757c;
  --line: rgba(17, 27, 33, .15);
  --shell: min(1280px, calc(100% - 80px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 14%, rgba(72, 183, 216, .16), transparent 26%),
    var(--paper);
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: absolute;
  z-index: 10;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--blue) 0 68%, var(--blue-light));
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: relative;
  width: var(--shell);
  min-height: 118px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-bottom: 1px solid var(--line);
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 112px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
}

.brand img { width: clamp(230px, 25vw, 350px); }

.header-contact {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #596970;
  font-size: 13px;
  font-weight: 500;
}

.header-contact span {
  padding-right: 24px;
  border-right: 1px solid var(--line);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.header-contact a {
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}

.header-contact a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

.header-contact .manufacturer-nav {
  padding: 10px 13px;
  background: var(--blue);
  color: #fff;
  border-bottom: 0;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.header-contact .manufacturer-nav:hover,
.header-contact .manufacturer-nav:focus-visible {
  background: var(--navy);
  color: #fff;
  border-color: transparent;
}

.introduction {
  position: relative;
  isolation: isolate;
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(68px, 9vw, 120px) 0;
  display: grid;
  grid-template-columns: minmax(340px, .82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
}

.intro-copy,
.project-image { z-index: 1; }

.intro-copy { position: relative; }

.section-label {
  margin: 0 0 28px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.section-label::before {
  content: "";
  display: inline-block;
  width: 30px;
  height: 2px;
  margin: 0 12px 3px 0;
  background: currentColor;
}

.lead {
  margin: 0;
  max-width: 570px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(24px, 2.5vw, 37px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.35;
}

.support-copy {
  max-width: 550px;
  margin: 30px 0 0;
  color: #56666d;
  font-size: 15px;
  line-height: 1.75;
}

.network-copy {
  max-width: 550px;
  margin: 25px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--blue);
  color: #324851;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.service-area {
  max-width: 530px;
  margin: 30px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: #79858a;
  font-size: 11px;
  line-height: 1.65;
}

.service-area::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 9px 1px 0;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 4px rgba(72, 183, 216, .14);
}

.project-image {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--navy);
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-top: 4px solid var(--blue-light);
  box-shadow:
    12px 12px 0 var(--navy),
    0 30px 75px rgba(17, 43, 57, .22);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 25, 36, .65));
}

.project-image img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
  object-position: right center;
}

.project-image figcaption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: 24px 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.expertise {
  padding: clamp(78px, 9vw, 120px) max(40px, calc((100vw - 1280px) / 2));
  color: white;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    var(--navy);
  background-size: 72px 72px;
}

.section-label.light { color: var(--blue-light); }

.expertise-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 58px;
}

.expertise-heading .section-label { margin: 0 0 7px; }

.expertise-heading h2 {
  margin: 0;
  max-width: 500px;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(29px, 3.2vw, 45px);
  font-weight: 500;
  letter-spacing: -.04em;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.17);
  border-bottom: 1px solid rgba(255,255,255,.17);
}

.expertise-grid article {
  min-height: 190px;
  padding: 28px 30px 32px;
  border-right: 1px solid rgba(255,255,255,.17);
}

.expertise-grid article:last-child { border-right: 0; }
.expertise-grid article > span { color: var(--blue-light); font-size: 9px; }

.expertise-grid h3 {
  margin: 58px 0 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.contact {
  position: relative;
  isolation: isolate;
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(74px, 9vw, 110px) 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(60px, 10vw, 150px);
  color: var(--white);
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    var(--navy);
  background-size: 72px 72px;
  box-shadow: 0 0 0 100vmax var(--navy);
  clip-path: inset(0 -100vmax);
}

.contact .section-label { color: var(--blue-light); }

.contact h2 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -.04em;
}

address {
  padding-left: clamp(30px, 4vw, 60px);
  border-left: 1px solid rgba(255, 255, 255, .2);
  font-style: normal;
}

address p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, .7);
  font-size: 14px;
  line-height: 1.75;
}

address a {
  display: block;
  width: max-content;
  margin-top: 17px;
  font-size: 17px;
  font-weight: 500;
}

address small {
  display: block;
  margin-bottom: 5px;
  color: var(--blue-light);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.affiliations {
  grid-column: 1 / -1;
  margin-top: 12px;
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.affiliations > span {
  color: var(--blue-light);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.affiliations ul {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
}

.affiliations li {
  width: clamp(132px, 15vw, 178px);
  height: 76px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 2px;
  box-shadow: 0 8px 24px rgba(3, 24, 37, .16);
}

.affiliations a {
  width: 100%;
  height: 100%;
  padding: 13px 17px;
  display: grid;
  place-items: center;
  transition: box-shadow .2s ease, transform .2s ease;
}

.affiliations a:hover,
.affiliations a:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 2px var(--blue-light);
}

.affiliations a:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 2px;
}

.affiliations img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.affiliations .association-logo-mca {
  width: auto;
  height: 48px;
  max-height: 100%;
}

footer {
  width: var(--shell);
  margin: 0 auto;
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
  color: #7c888e;
  font-size: 9px;
}

.manufacturers-page {
  min-height: 70vh;
}

.manufacturers-intro {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(64px, 8vw, 104px) 0 clamp(46px, 6vw, 76px);
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  gap: clamp(42px, 8vw, 120px);
  align-items: end;
}

.manufacturers-intro h1 {
  margin: 0;
  font-family: "Manrope", "Inter", sans-serif;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: 1;
}

.manufacturers-intro p:last-child {
  max-width: 650px;
  margin: 0;
  color: #56666d;
  font-size: 16px;
  line-height: 1.8;
}

.manufacturer-gallery {
  padding: clamp(56px, 7vw, 88px) max(40px, calc((100vw - 1280px) / 2));
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px),
    var(--navy);
  background-size: 72px 72px;
}

.manufacturer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.brand-card {
  min-height: 190px;
  padding: 24px 22px 20px;
  display: grid;
  grid-template-rows: 104px 24px;
  align-content: center;
  justify-items: stretch;
  gap: 16px;
  overflow: hidden;
  background: #fff;
  border-top: 3px solid transparent;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 35px rgba(1, 18, 27, .14);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.brand-card:hover,
.brand-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--blue-light);
  box-shadow: 0 20px 42px rgba(1, 18, 27, .22);
}

.brand-card:focus-visible {
  outline: 3px solid var(--blue-light);
  outline-offset: 3px;
}

.brand-card img {
  width: 100%;
  max-width: 185px;
  height: 100px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
  align-self: center;
  justify-self: center;
}

.brand-card.compact img,
.brand-card.full-logo img,
.brand-card .kern-supply-logo { max-width: 185px; }
.brand-card .kohler-bold-logo { max-width: 175px; }
.brand-card .eemax-logo { max-width: 210px; transform: translateX(-7.4%) scale(1.1); }
.brand-card .mcguire-logo { max-width: 170px; }
.brand-card img[alt="Lawler Manufacturing full logo"],
.brand-card img[alt="Aalberts integrated piping systems logo for Shurjoint"],
.brand-card .kern-supply-logo { max-width: 175px; }
.brand-card.icon img { width: 104px; height: 104px; }
.brand-card > :first-child {
  grid-row: 1;
  align-self: center;
  justify-self: center;
  transform-origin: center;
}

.brand-card img[alt="Sterling logo"] { transform: scale(1.8); }
.brand-card img[alt="Lochinvar logo"] { transform: scale(1.9); }
.brand-card img[alt="Apollo Valves logo"] { transform: scale(1.6); }
.brand-card img[alt="Hytec logo"] { transform: scale(1.2); }
.brand-card img[alt="REHAU logo"] { transform: scale(1.4); }
.brand-card img[alt="Chicago Faucets logo"] { transform: scale(1.5); }
.brand-card img[alt="Sloan logo"] { transform: scale(1.1); }
.brand-card img[alt="Symmons logo"] { transform: scale(1.05); }

.brand-card img.manufacturer-logo {
  width: 100%;
  max-width: 220px;
  height: 100px;
  margin: 0 auto;
  padding: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  transform: none;
}

.brand-card img.manufacturer-logo.logo-lochinvar { transform: scale(1.12); }
.brand-card img.manufacturer-logo.logo-symmons { transform: scale(1.85); }
.brand-card img.manufacturer-logo.logo-guardian { transform: scale(1.15); }
.brand-card img.manufacturer-logo.logo-acudor { transform: scale(1.45); }
.brand-card img.manufacturer-logo.logo-eemax { transform: scale(1.35); }
.brand-card img.manufacturer-logo.logo-kern-supply { transform: scale(1.5); }

.mcguire-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #177c3d;
}

.mcguire-lockup > i {
  display: grid;
  grid-template-columns: repeat(2, 25px);
  gap: 2px;
  width: 58px;
  height: 58px;
  place-content: center;
  transform: rotate(45deg);
}

.mcguire-lockup > i b {
  width: 25px;
  height: 25px;
  background: #19934c;
  border-radius: 70% 18% 70% 18%;
}

.mcguire-lockup strong,
.mcguire-lockup small { display: block; }

.mcguire-lockup strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.mcguire-lockup small {
  margin-top: 5px;
  color: #48585f;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.guardian-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #777a7c;
  transform: translateX(8px);
}

.guardian-lockup > i {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border: 9px dotted #f2a322;
  border-radius: 50%;
}

.guardian-lockup strong,
.guardian-lockup small { display: block; }

.guardian-lockup strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.55rem;
  line-height: 1;
}

.guardian-lockup small {
  max-width: 145px;
  margin-top: 5px;
  color: #e88a17;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.3;
  text-transform: uppercase;
}

.brand-wordmark {
  color: var(--navy);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -.06em;
}

.brand-wordmark em {
  color: var(--cyan);
  font-style: normal;
  font-weight: 500;
}

.brand-card .logo-on-dark {
  max-width: 170px;
  margin: -8px 0;
  padding: 18px 20px;
  background: var(--navy);
}

.brand-card span {
  position: relative;
  z-index: 2;
  grid-row: 2;
  width: 100%;
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: end;
  color: #738087;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.25;
  text-align: center;
  text-transform: uppercase;
}

.brand-card:nth-last-child(2):nth-child(4n + 1) { grid-column: 2; }

.brand-card:last-child:nth-child(4n + 1) {
  grid-column: 2 / span 2;
  justify-self: center;
  width: calc(50% - 8px);
}

.manufacturers-note {
  width: var(--shell);
  margin: 0 auto;
  padding: 32px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  color: #728087;
  font-size: 10px;
}

.manufacturers-note a {
  color: var(--blue);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  :root { --shell: min(100% - 48px, 760px); }
  .header-contact span { display: none; }
  .introduction { grid-template-columns: 1fr; }
  .intro-copy { max-width: 650px; }
  .project-image img { aspect-ratio: 16 / 10; }
  .project-image { margin-right: 18px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid article:nth-child(2) { border-right: 0; }
  .expertise-grid article:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.17); }
  .manufacturers-intro { grid-template-columns: 1fr; align-items: start; }
  .manufacturer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-card:nth-last-child(2):nth-child(4n + 1) { grid-column: auto; }
  .brand-card:last-child:nth-child(odd) {
    grid-column: 1 / span 2;
    justify-self: center;
    width: calc(50% - 8px);
  }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 32px); }
  .site-header {
    min-height: 0;
    padding: 20px 0 16px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 15px;
  }
  .site-header::after { width: 76px; }
  .brand { justify-self: center; }
  .brand img { width: min(190px, 68vw); }
  .header-contact {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    font-size: 11px;
  }
  .header-contact a,
  .header-contact a:first-of-type,
  .header-contact .manufacturer-nav,
  .header-contact a[href^="tel:"] {
    min-width: 0;
    min-height: 42px;
    padding: 10px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-wrap: anywhere;
    border: 1px solid var(--line);
    border-radius: 2px;
    text-align: center;
  }
  .header-contact .manufacturer-nav {
    grid-column: 1 / -1;
    order: -1;
    border-color: var(--blue);
  }
  .introduction {
    padding: 46px 0 58px;
    gap: 38px;
  }
  .section-label { margin-bottom: 20px; }
  .lead { font-size: clamp(22px, 6.5vw, 27px); line-height: 1.32; }
  .support-copy { margin-top: 22px; font-size: 14px; line-height: 1.65; }
  .service-area { margin-top: 24px; padding-top: 18px; }
  .project-image {
    margin-right: 4px;
    box-shadow: 5px 5px 0 var(--navy), 0 18px 42px rgba(17, 43, 57, .18);
  }
  .project-image::after { display: none; }
  .project-image img { aspect-ratio: 4 / 3; }
  .project-image figcaption {
    position: relative;
    inset: auto;
    padding: 14px 16px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    background: var(--navy);
    font-size: 8px;
  }
  .expertise { padding: 72px 18px; }
  .expertise-heading { align-items: flex-start; flex-direction: column; gap: 24px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid article { min-height: 170px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .expertise-grid article:last-child { border-bottom: 0; }
  .expertise-grid h3 { margin-top: 42px; }
  .contact { padding: 62px 0; grid-template-columns: 1fr; gap: 36px; }
  .contact h2 { font-size: 30px; }
  address { padding: 34px 0 0; border-top: 1px solid rgba(255,255,255,.2); border-left: 0; }
  address a { width: 100%; font-size: 16px; overflow-wrap: anywhere; }
  .affiliations {
    margin-top: 6px;
    padding-top: 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 14px;
  }
  .affiliations > span { text-align: center; }
  .affiliations ul {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .affiliations li {
    width: auto;
    height: 66px;
    padding: 0;
  }
  .affiliations a { padding: 9px 7px; }
  .affiliations .association-logo-mca { height: 40px; }
  footer { padding: 20px 0 24px; align-items: center; flex-direction: column; gap: 7px; text-align: center; }
  .manufacturers-intro { padding: 46px 0 38px; gap: 24px; }
  .manufacturers-intro h1 { font-size: clamp(34px, 11vw, 44px); line-height: 1.04; }
  .manufacturers-intro p:last-child { font-size: 14px; line-height: 1.65; }
  .manufacturer-gallery { padding: 40px 16px; }
  .manufacturer-grid { grid-template-columns: 1fr; }
  .brand-card {
    min-height: 158px;
    padding: 18px 18px 16px;
    grid-template-rows: 88px 22px;
    gap: 10px;
  }
  .brand-card img.manufacturer-logo { height: 86px; max-width: 210px; }
  .brand-card:last-child:nth-child(odd) {
    grid-column: auto;
    width: 100%;
  }
  .manufacturers-note { padding: 25px 0 28px; flex-direction: column; gap: 14px; line-height: 1.5; }
}

@media (max-width: 360px) {
  :root { --shell: calc(100% - 24px); }
  .brand img { width: 172px; }
  .header-contact { grid-template-columns: 1fr; }
  .header-contact .manufacturer-nav { grid-column: auto; }
  .lead { font-size: 22px; }
  .manufacturer-gallery { padding-right: 12px; padding-left: 12px; }
  .affiliations ul { gap: 6px; }
  .affiliations li { height: 60px; padding: 0; }
  .affiliations a { padding: 8px 5px; }
  .affiliations .association-logo-mca { height: 36px; }
}
