:root {
  --blue: #008eff;
  --deep: #0939ca;
  --green: #96cb10;
  --ink: #30343b;
  --muted: #70757c;
  --max: 1180px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font:
    15px/1.7 "Open Sans",
    Arial,
    sans-serif;
  background: #fff;
}
h1,
h2,
h3 {
  font-family: Raleway, Arial, sans-serif;
  line-height: 1.25;
  margin-top: 0;
}
h1 {
  font-size: 48px;
}
h2 {
  font-size: 32px;
}
h3 {
  font-size: 19px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: auto;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.topbar {
  height: 38px;
  background: #073acb;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}
.topbar .wrap {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.facebook {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  font: bold 19px Arial;
  background: currentColor;
  color: #fff;
}
.facebook::first-letter {
  color: #073acb;
}
.site-header {
  position: relative;
  z-index: 20;
  background: #fff;
  box-shadow: 0 1px 6px #0001;
}
.nav-wrap {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand img {
  width: 122px;
  height: 77px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  font: 600 13px Raleway;
  text-transform: uppercase;
}
.site-nav > a:not(.button) {
  padding: 35px 0 31px;
  border-bottom: 3px solid transparent;
}
.site-nav > a.active,
.site-nav > a:not(.button):hover {
  color: var(--blue);
  border-color: var(--blue);
}
.button {
  display: inline-block;
  padding: 11px 21px;
  border: 2px solid transparent;
  color: #fff !important;
  font: 700 12px Raleway;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.green {
  background: var(--green);
}
.blue {
  background: var(--blue);
}
.outline {
  border-color: #fff;
}
.big {
  padding: 15px 26px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  padding: 8px;
}
.menu-toggle span:not(.sr-only) {
  display: block;
  width: 27px;
  height: 3px;
  background: var(--deep);
  margin: 5px;
}
.hero {
  display: grid;
  place-items: center;
}
.home-hero {
  height: 590px;
  background:
    linear-gradient(#00163f22, #00163f22),
    url(../assets/homepage-pool.jpg) center/cover;
  margin-bottom: 10px;
}
.home-hero img {
  width: 300px;
  filter: drop-shadow(0 4px 8px #0007);
}
.request-banner {
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: url(../assets/pool-water.png) center/cover;
}
.request-image {
  background: url(../assets/service-request.jpg) center/cover;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
}
.request-copy {
  align-self: center;
  max-width: 570px;
  padding: 55px 60px;
  color: #fff;
}
.request-copy h1 {
  text-transform: uppercase;
  margin-bottom: 12px;
}
.eyebrow {
  text-transform: uppercase;
  font: 700 13px Raleway;
  letter-spacing: 0.11em;
}
.section {
  padding: 75px 0;
}
.section-title {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 50px;
}
.section-title h2 {
  text-transform: uppercase;
  color: var(--deep);
  margin-bottom: 5px;
}
.section-title .callout {
  text-transform: uppercase;
  font: 700 20px Raleway;
  margin: 0 0 18px;
}
.section-title .callout a {
  color: var(--green);
}
.service-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.service-cards article {
  padding: 25px;
  border-right: 1px solid #ddd;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service-cards article:last-child {
  border: 0;
}
.service-cards h3 {
  text-transform: uppercase;
}
.service-cards strong,
.service-cards small {
  display: block;
}
.service-cards small {
  margin: 7px 0;
}
.service-cards article > a {
  color: var(--blue);
  font-weight: 700;
  margin-top: auto;
}
.service-icon {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  font-size: 32px;
  color: var(--blue);
}
.pricing {
  background:
    linear-gradient(#02319fdc, #02319fdc),
    url(../assets/pool-water.png) center/cover;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 25px;
}
.pricing article {
  position: relative;
  text-align: center;
  color: #fff;
  border: 1px solid #ffffff88;
  padding: 38px 25px;
}
.pricing .featured {
  background: #fff;
  color: var(--ink);
  padding: 55px 25px;
}
.price {
  font: 300 50px Raleway;
  margin: 10px;
}
.price sup {
  font-size: 20px;
}
.price.word {
  font-size: 38px;
}
.pricing ul {
  padding: 0;
  list-style: none;
  margin: 25px 0;
}
.pricing li {
  border-bottom: 1px solid #ffffff33;
  padding: 5px;
}
.featured li {
  border-color: #ddd;
}
.ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 7px;
  background: var(--green);
  color: #fff;
  text-transform: uppercase;
  font: 700 11px Raleway;
}
.premiere {
  min-height: 530px;
  display: grid;
  place-items: center;
  padding: 40px;
  text-align: center;
  background:
    linear-gradient(#0010254c, #0010254c),
    url(../assets/pool-and-spa.jpg) center/cover fixed;
  color: #fff;
}
.premiere h2 {
  font-size: 50px;
  text-shadow: 0 2px 4px #0008;
}
.estimate-strip {
  padding: 50px 0;
}
.estimate-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.estimate-strip h2 {
  margin: 0;
  font-size: 26px;
}
.estimate-strip span {
  color: var(--blue);
}
.benefits {
  background:
    linear-gradient(#004699b8, #004699b8),
    url(../assets/family-pool-fun.png) center/cover;
  color: #fff;
  text-align: center;
}
.benefits h2 {
  max-width: 900px;
  margin: 0 auto 50px;
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.percent {
  width: 145px;
  height: 145px;
  border: 10px solid #ffffff35;
  border-top-color: #fff;
  border-right-color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  font: 600 31px Raleway;
}
.benefit-grid h3 {
  font-size: 16px;
}
.brands {
  padding: 40px 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: center;
  gap: 35px;
}
.brands img {
  max-height: 70px;
  margin: auto;
}
.site-footer {
  background: #191b1e;
  color: #84caff;
  border-top: 2px solid var(--blue);
}
.footer-grid {
  padding: 55px 0;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 60px;
}
.footer-logo {
  width: 200px;
}
.site-footer h3 {
  color: var(--blue);
  text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--blue);
}
.site-footer section > a {
  display: block;
  font-weight: 700;
}
.site-footer .large {
  display: grid;
  width: 43px;
  height: 43px;
  font-size: 29px;
}
.cards {
  width: 185px;
}
.copyright {
  text-align: center;
  padding: 20px;
  background: #111;
  color: #aaa;
  font-size: 12px;
}
.page-hero {
  height: 330px;
  background:
    linear-gradient(#001a4b99, #001a4b99),
    url(../assets/pool-and-spa.jpg) center 55% / cover;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
}
.page-hero p {
  text-transform: uppercase;
  letter-spacing: 0.17em;
  font-weight: 700;
  margin-bottom: 5px;
}
.page-hero h1 {
  text-transform: uppercase;
  margin: 0;
}
.section-title.compact {
  margin-bottom: 60px;
}
.section-title.compact p {
  font-size: 18px;
}
.service-list {
  display: grid;
  gap: 65px;
}
.service-list article {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 55px;
  align-items: center;
}
.service-list article.reverse img {
  order: 2;
}
.service-list img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}
.service-list h2 {
  color: var(--blue);
  font-size: 29px;
}
.service-list h3 {
  font-size: 16px;
}
.service-list ul {
  padding-left: 20px;
}
.contact-hero {
  background-image:
    linear-gradient(#001a4b99, #001a4b99), url(../assets/homepage-pool.jpg);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 90px;
  align-items: start;
}
.contact-grid > div h2 {
  font-size: 38px;
}
.contact-grid > div p:not(.eyebrow) {
  font-size: 17px;
  max-width: 650px;
}
.contact-grid aside {
  padding: 35px;
  background: #f5f7f9;
  border-top: 4px solid var(--blue);
}
.contact-grid aside h3 {
  color: var(--blue);
  font-size: 23px;
}
.contact-grid aside a {
  color: var(--deep);
  font-weight: 700;
}
.contact-grid hr {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 25px 0;
}
@media (max-width: 900px) {
  .nav-wrap {
    height: 78px;
  }
  .brand img {
    width: 98px;
    height: 65px;
  }
  .menu-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 116px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 15px 24px;
    box-shadow: 0 8px 15px #0002;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .site-nav.open {
    display: flex;
  }
  .site-nav > a:not(.button) {
    padding: 13px 0;
  }
  .site-nav .button {
    text-align: center;
    margin-top: 10px;
  }
  .home-hero {
    height: 500px;
  }
  .request-banner {
    grid-template-columns: 1fr;
  }
  .request-image {
    height: 260px;
    clip-path: none;
  }
  .request-copy {
    padding: 45px 30px;
  }
  .service-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-cards article:nth-child(2) {
    border-right: 0;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }
  .estimate-strip .wrap {
    flex-direction: column;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-list article,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .service-list article.reverse img {
    order: 0;
  }
  .contact-grid {
    gap: 40px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 36px;
  }
  h2 {
    font-size: 27px;
  }
  .wrap {
    width: min(var(--max), calc(100% - 30px));
  }
  .home-hero {
    height: 430px;
  }
  .home-hero img {
    width: 240px;
  }
  .service-cards {
    grid-template-columns: 1fr;
  }
  .service-cards article {
    border: 0;
    border-bottom: 1px solid #ddd !important;
  }
  .premiere {
    min-height: 400px;
    background-attachment: scroll;
  }
  .premiere h2 {
    font-size: 36px;
  }
  .benefit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .percent {
    width: 115px;
    height: 115px;
  }
  .brands {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .footer-logo {
    width: 150px;
  }
  .service-list img {
    height: 260px;
  }
  .page-hero {
    height: 270px;
  }
  .contact-grid > div h2 {
    font-size: 32px;
  }
}

/* Facebook mark colors in the blue top bar and dark footer. */
.topbar .facebook {
  background: #fff;
  color: #073acb;
}
.site-footer .facebook {
  background: var(--blue);
  color: #fff;
}
