/* Streamline Plumbing LLC, Grimes IA */
:root {
  --ink: #15171A;        /* matte black fixtures */
  --white: #FFFFFF;
  --water: #D9EEFB;      /* logo background */
  --mist: #EFF7FD;
  --royal: #1034A6;      /* logo stroke, dark end */
  --cyan: #19B8E6;       /* logo stroke, light end */
  --copper: #B5652F;     /* copper lines in the job photos */
  --sub: #47525E;
  --rule: #C6D8E6;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
  --wrap: 1200px;
  --wave: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cg fill='none' stroke='%23000' stroke-width='4.5'%3E%3Cpath d='M-30 9q15-8 30 0t30 0 30 0 30 0 30 0 30 0'/%3E%3Cpath d='M-30 22q15-8 30 0t30 0 30 0 30 0 30 0 30 0'/%3E%3C/g%3E%3C/svg%3E");
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 18px; line-height: 1.6;
  color: var(--ink); background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; border-radius: 2px; }
.foot :focus-visible, .sticky-book :focus-visible, .lightbox :focus-visible { outline-color: var(--cyan); }
section[id], main { scroll-margin-top: 16px; }

.defs { position: absolute; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; background: var(--ink); color: var(--white); padding: 12px 16px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

h2 { font-size: clamp(32px, 3.6vw, 48px); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
h3 { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.section-lead { margin-top: 14px; max-width: 34em; color: var(--sub); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px; border: 0; border-radius: 10px;
  font-weight: 700; font-size: 18px; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--royal); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--blue { background: var(--cyan); color: var(--ink); }
.btn--full { width: 100%; }
.link { color: var(--royal); font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.link:hover { color: var(--ink); }

.stars { display: inline-flex; gap: 2px; color: var(--copper); }
.stars svg { width: 20px; height: 20px; fill: currentColor; }

/* The stream line: the two waves from the logo */
.streamline {
  height: 30px;
  background: linear-gradient(90deg, var(--royal), var(--cyan));
  -webkit-mask: var(--wave) repeat-x left center / 120px 30px;
  mask: var(--wave) repeat-x left center / 120px 30px;
}

/* Top bar */
.top { background: var(--water); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 80px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-weight: 800; font-size: 21px; letter-spacing: -.02em; }
.nav { display: none; gap: 28px; }
.nav a { font-weight: 500; font-size: 17px; text-decoration: none; padding: 12px 0; }
.nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top__call { display: none; min-height: 48px; padding: 10px 20px; font-size: 17px; }
.menu-btn { width: 48px; height: 48px; display: grid; place-content: center; gap: 6px; background: none; border: 0; cursor: pointer; margin-right: -10px; }
.menu-btn span { display: block; width: 26px; height: 3px; background: var(--ink); border-radius: 2px; }
@media (min-width: 960px) {
  .nav { display: flex; }
  .top__call { display: inline-flex; }
  .menu-btn { display: none; }
}

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(21, 23, 26, .5); }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(320px, 86vw);
  background: var(--white); padding: 88px 24px 24px; display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu a:not(.btn) { font-size: 22px; font-weight: 700; text-decoration: none; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mobile-menu .btn { margin-top: 20px; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-btn { position: fixed; right: 16px; top: 16px; z-index: 80; margin: 0; }

/* Hero */
.hero__field { background: var(--water); padding-top: clamp(20px, 3.5vw, 48px); }
.hero h1 { font-size: clamp(27px, 3.3vw, 46px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.hero__num {
  display: block; width: fit-content; margin-top: clamp(2px, .6vw, 8px);
  font-size: clamp(44px, 12vw, 174px); font-weight: 800; line-height: 1.02; letter-spacing: -.045em;
  white-space: nowrap; text-decoration: none; color: var(--ink);
  margin-left: -.04em;
}
.hero__num:hover { color: var(--royal); }
.hero__field .streamline { margin-top: clamp(18px, 2.6vw, 36px); transform: translateY(50%); }
.hero__row { display: grid; gap: 28px 32px; padding-top: 44px; padding-bottom: 56px; }
.hero__lead { font-size: clamp(19px, 1.5vw, 21px); line-height: 1.5; max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.hero__hours { color: var(--sub); font-size: 17px; }
.rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 22px; text-decoration: none; font-size: 17px; }
.rating:hover span:last-child { text-decoration: underline; text-underline-offset: 4px; }
.hero__photo { overflow: hidden; border-radius: 6px; background: var(--mist); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__photo--wide { aspect-ratio: 4 / 3; }
.hero__photo--tall { display: none; }
.hero__cap { font-size: 16px; color: var(--sub); margin-top: -12px; }
@media (min-width: 720px) {
  .hero__row { grid-template-columns: 5fr 3fr; }
  .hero__text { grid-column: 1 / -1; }
  .hero__photo--tall { display: block; }
  .hero__photo--wide, .hero__photo--tall { aspect-ratio: auto; height: clamp(300px, 42vw, 440px); }
  .hero__cap { grid-column: 1 / -1; }
}
@media (min-width: 1040px) {
  .hero__row { grid-template-columns: 4fr 5fr 3fr; padding-top: 60px; padding-bottom: 84px; }
  .hero__text { grid-column: auto; padding-right: 12px; }
  .hero__photo--wide, .hero__photo--tall { height: 440px; }
  .hero__cap { grid-column: 2 / -1; }
}

/* How soon */
.soon { padding: clamp(56px, 7vw, 96px) 0; border-top: 1px solid var(--rule); }
.soon__head { display: grid; gap: 14px 48px; }
.soon__head p { color: var(--sub); max-width: 32em; }
@media (min-width: 900px) { .soon__head { grid-template-columns: 1fr 1fr; align-items: end; } }
.soon__line { margin-top: 44px; position: relative; display: grid; gap: 36px; padding-left: 34px; }
.soon__line::before {
  content: ""; position: absolute; left: 7px; top: 12px; bottom: 0; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--royal), var(--cyan));
}
.soon__line li { position: relative; }
.soon__line li::before {
  content: ""; position: absolute; left: -34px; top: 8px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); border: 4px solid var(--copper);
}
.soon__when { font-size: clamp(25px, 2.1vw, 29px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.soon blockquote { margin-top: 10px; font-size: 17px; line-height: 1.55; }
.soon__who { margin-top: 10px; font-size: 16px; color: var(--sub); }
@media (min-width: 1040px) {
  .soon__line { grid-template-columns: repeat(5, 1fr); gap: 28px; padding-left: 0; padding-top: 40px; margin-top: 56px; }
  .soon__line::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 4px; background: linear-gradient(90deg, var(--royal), var(--cyan)); }
  .soon__line li::before { left: 0; top: -40px; }
}

/* Services */
.services { padding: clamp(56px, 7vw, 96px) 0; background: var(--mist); }
.group { display: grid; gap: 32px 56px; margin-top: 48px; }
.group + .group { margin-top: clamp(56px, 7vw, 96px); }
.jobs { margin-top: 12px; }
.jobs > div { padding: 18px 0; border-bottom: 1px solid var(--rule); }
.jobs dt { font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.jobs dd { margin-top: 2px; }
.jobs q { display: block; margin-top: 8px; padding-left: 14px; border-left: 3px solid var(--cyan); font-size: 17px; color: var(--sub); quotes: "\201C" "\201D"; }
.jobs cite { display: block; padding-left: 17px; font-style: normal; font-size: 16px; color: var(--sub); font-weight: 700; }
.group__photos { display: grid; gap: 12px; align-content: start; }
.ph { overflow: hidden; border-radius: 6px; background: var(--water); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.group__photos--a { grid-template-columns: 1fr 1fr; }
.group__photos--a .ph--1 { grid-row: span 2; }
.group__photos--a .ph--2, .group__photos--a .ph--3 { aspect-ratio: 1 / 1; }
.group__photos--b { grid-template-columns: 5fr 6fr; }
.group__photos--b .ph--1 { grid-row: span 2; }
.group__photos--b .ph--2 { aspect-ratio: 1 / 1; }
.group__photos--b .ph--3 { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .group { grid-template-columns: 6fr 5fr; align-items: start; }
  .group__photos { position: sticky; top: 24px; }
  .group--flip .group__photos { order: -1; }
  .group--flip { grid-template-columns: 5fr 6fr; }
}

.tip { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: center; background: var(--white); border-radius: 6px; padding: 16px; }
.tip__photo { border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; }
.tip__photo img { width: 100%; height: 100%; object-fit: cover; }
.tip__label { font-weight: 800; font-size: 17px; color: var(--royal); }
.tip blockquote { margin-top: 6px; font-size: clamp(19px, 1.9vw, 25px); font-weight: 500; line-height: 1.4; letter-spacing: -.01em; }
.tip__src { margin-top: 10px; font-size: 16px; color: var(--sub); }
@media (min-width: 720px) { .tip { grid-template-columns: 200px 1fr; gap: 40px; padding: 24px 40px 24px 24px; } }

/* Recent work */
.work { padding: clamp(56px, 7vw, 96px) 0; }
.gallery { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g { display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 3 / 4; background: var(--mist); }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.g:hover img { transform: scale(1.03); }
.g--big { grid-column: span 2; aspect-ratio: 4 / 4.2; }
@media (min-width: 720px) {
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .g--big { grid-row: span 2; aspect-ratio: auto; }
}

/* Reviews */
.reviews { padding: clamp(56px, 7vw, 96px) 0; background: var(--water); }
.reviews__in { display: grid; gap: 40px 64px; }
.score { margin-top: 28px; display: flex; align-items: center; gap: 14px; }
.score__n { font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.score .stars svg { width: 24px; height: 24px; }
.score__sub { margin: 6px 0 14px; }
.lead-quote blockquote { font-size: clamp(25px, 2.9vw, 38px); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
.lead-quote figcaption, .quotes figcaption { margin-top: 12px; font-size: 16px; font-weight: 700; }
.quotes { margin-top: 40px; display: grid; gap: 28px 40px; }
.quotes figure { padding-top: 24px; border-top: 2px solid var(--ink); }
.quotes blockquote { font-size: 17px; }
@media (min-width: 720px) { .quotes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .reviews__in { grid-template-columns: 280px 1fr; } .reviews__side { position: sticky; top: 32px; align-self: start; } }

/* About */
.about { padding: clamp(56px, 7vw, 96px) 0; }
.about__in { display: grid; gap: 32px 64px; align-items: center; }
.about__photo { border-radius: 6px; overflow: hidden; aspect-ratio: 5 / 4; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; }
.about__quote { margin-top: 20px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1.3; letter-spacing: -.015em; padding-left: 18px; border-left: 4px solid var(--copper); }
.about__text > p { margin-top: 20px; max-width: 34em; }
.facts { margin-top: 20px; }
.facts li { padding: 12px 0; border-top: 1px solid var(--rule); }
@media (min-width: 900px) { .about__in { grid-template-columns: 5fr 6fr; } }

/* Contact */
.contact { background: var(--water); padding-bottom: clamp(56px, 7vw, 96px); }
.contact .streamline { transform: translateY(-50%); }
.contact__in { display: grid; gap: 40px 72px; padding-top: clamp(36px, 5vw, 64px); }
.contact__info > p { margin-top: 14px; max-width: 28em; }
.contact__num { display: block; width: fit-content; margin: 22px 0 6px; font-size: clamp(36px, 4.4vw, 54px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; text-decoration: none; white-space: nowrap; }
.contact__num:hover { color: var(--royal); }
.hours { margin-top: 28px; border-collapse: collapse; width: 100%; max-width: 380px; font-size: 17px; }
.hours caption { text-align: left; font-weight: 800; font-size: 20px; padding-bottom: 8px; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; border-top: 1px solid var(--rule); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 800; }
.form { background: var(--white); border-radius: 10px; padding: clamp(20px, 3vw, 36px); align-self: start; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; font-size: 18px;
  background: var(--white); border: 2px solid #8A99A8; border-radius: 8px;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: 3px solid rgba(16, 52, 166, .25); outline-offset: 0; }
.form__hint { margin-top: 12px; font-size: 16px; color: var(--sub); }
@media (min-width: 900px) { .contact__in { grid-template-columns: 5fr 6fr; } }

/* Footer */
.foot { background: var(--ink); color: var(--white); padding: 36px 0; font-size: 17px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 36px; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; margin-right: auto; }
.foot a { text-underline-offset: 4px; display: inline-block; padding: 10px 0; }

/* Mobile bottom bar */
.sticky-book { display: none; }
@media (max-width: 719px) {
  .sticky-book {
    display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--ink);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 50px; }
  .foot { padding-bottom: 110px; }
}

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(21, 23, 26, .97); color: var(--white); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 78vh; width: auto; height: auto; object-fit: contain; border-radius: 4px; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 20px; text-align: center; font-size: 17px; }
.lightbox__btn { position: absolute; width: 52px; height: 52px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 0; border-radius: 10px; color: var(--white); cursor: pointer; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .25); }
.lightbox__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 16px; right: 16px; }
.lightbox__prev { left: 16px; top: 50%; margin-top: -26px; }
.lightbox__next { right: 16px; top: 50%; margin-top: -26px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
