/* Barnard Plumbing LLC
   Colors come from the logo (charcoal wrenches, blue drop) and the job sites
   (red Arkansas clay, gray foundation block). */
:root {
  --ink: #22262a;
  --muted: #555b61;
  --white: #ffffff;
  --block: #d9dad6;
  --block-edge: #bfc1bc;
  --mortar: #f1f1ee;
  --clay: #9c4320;
  --clay-deep: #7e3417;
  --blue: #0d6ea6;
  --blue-deep: #0a5886;
  --drop: #4cbcf0;
  --line: #d5d7d3;
  --wrap: 1200px;
  --pad: 32px;
  --head: "Bitter", Georgia, serif;
  --body: "Golos Text", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 18px; line-height: 1.6; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--drop); outline-offset: 3px; }
.wrap { max-width: calc(var(--wrap) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 12px 26px; border-radius: 6px; border: 2px solid transparent; font: 600 1.0625rem/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-deep); }
.btn--line { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--mortar); }
.btn--full { width: 100%; }

/* Top bar */
.top { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 56px; height: 56px; }
.brand__name { font: 700 1.375rem/1.1 var(--head); white-space: nowrap; }
.brand__name small { font: 500 .8125rem var(--body); color: var(--muted); margin-left: 2px; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1rem; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--blue); }
.top__phone { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.top__phone:hover { background: #000; }
.top__phone svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.menu-btn { display: none; width: 48px; height: 48px; padding: 12px 10px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 3px; background: var(--ink); border-radius: 2px; }
.mobile-menu { display: none; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch; }
.hero__text { padding: clamp(48px, 7vw, 104px) clamp(32px, 4vw, 64px) clamp(48px, 6vw, 88px) max(var(--pad), calc((100vw - var(--wrap)) / 2)); align-self: center; }
.hero h1 { font-size: clamp(2.375rem, 3.7vw, 3.75rem); max-width: 13em; }
.hero__lede { font-size: 1.25rem; line-height: 1.5; color: var(--muted); max-width: 30em; margin: 24px 0 32px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__photo { display: block; min-height: 520px; position: relative; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 42% 40%; }

@media (min-width: 1500px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero__photo { min-height: 640px; }
}

/* Block course: the foundation row under the hero */
.course { background: var(--mortar); padding-top: 8px; }
.course__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: none; padding: 0 8px; }
.course__row li { background: var(--block); border-bottom: 3px solid var(--block-edge); padding: 20px 24px 18px; display: flex; flex-direction: column; min-height: 96px; justify-content: center; }
.course__row strong { font: 700 1.3125rem/1.2 var(--head); }
.course__row span { color: #3f454a; font-size: 1rem; }
.course__under { height: 22px; margin-top: 8px; background:
  repeating-linear-gradient(90deg, var(--block) 0 calc(12.5% - 8px), var(--mortar) calc(12.5% - 8px) 12.5%);
  background-position: 6.25% 0; background-size: 100% 100%; }

/* What people call us for */
.calls { background: var(--clay); color: #fff; padding: clamp(64px, 8vw, 112px) 0 clamp(56px, 7vw, 96px); }
.calls__head { margin-bottom: 40px; }
.calls__head h2 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.calls__head p { margin: 16px 0 0; font-size: 1.1875rem; color: #f6e2d8; max-width: 34em; }
.calls__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
.calls__list li { padding: 28px 0 30px; border-top: 1px solid rgba(255, 255, 255, .34); }
.calls__list h3 { font-size: clamp(1.625rem, 2.4vw, 2.125rem); margin-bottom: 12px; }
.calls__list blockquote { margin: 0 0 10px; font-size: 1.0625rem; line-height: 1.6; color: #fdf1ea; max-width: 34em; }
.calls__list cite { font-style: normal; font-weight: 600; font-size: 1rem; }
.calls__list cite::after { content: ", Google review"; font-weight: 400; color: #f6e2d8; }
.calls__foot { margin: 0; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .34); font-size: 1.25rem; font-family: var(--head); font-weight: 600; }
.calls__foot a { color: #fff; white-space: nowrap; text-underline-offset: 4px; }

/* Services */
.services { padding: clamp(64px, 8vw, 112px) 0; }
.services__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: start; }
.lead { font-size: 1.25rem; line-height: 1.5; color: var(--muted); margin: 18px 0 28px; max-width: 30em; }
.svc { margin: 0; }
.svc > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 6px 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.svc > div:last-child { border-bottom: 1px solid var(--line); }
.svc dt { font: 700 1.25rem/1.3 var(--head); }
.svc dd { margin: 0; color: #3b4146; }
.services__photo { margin: 0; }
.services__photo figcaption { font-size: 1rem; color: var(--muted); padding-top: 12px; }

/* Photo buttons */
.pic { display: block; width: 100%; padding: 0; border: 0; background: var(--block); cursor: zoom-in; overflow: hidden; border-radius: 4px; }
.pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.pic:hover img { transform: scale(1.03); }

/* Recent work */
.work { background: var(--mortar); padding: clamp(64px, 8vw, 112px) 0; }
.work__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 40px; margin-bottom: 36px; }
.work__head p { margin: 0; color: var(--muted); font-size: 1.125rem; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; counter-reset: stage; }
.stages li { counter-increment: stage; }
.stages .pic { aspect-ratio: 4 / 3; }
.stages h3 { font-size: 1.375rem; margin: 16px 0 6px; display: flex; align-items: baseline; gap: 12px; }
.stages h3::before { content: counter(stage); flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 1rem/34px var(--body); text-align: center; position: relative; top: -2px; }
.stages p { margin: 0; color: #3b4146; font-size: 1.0625rem; }
.work__sub { font-size: 1.625rem; margin: 64px 0 20px; }
.rooms { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.rooms .pic { aspect-ratio: 3 / 4; }
.rooms .pic.rooms__wide { grid-column: span 2; aspect-ratio: auto; position: relative; }
.rooms .pic.rooms__wide img { position: absolute; inset: 0; }

/* Reviews */
.reviews { padding: clamp(64px, 8vw, 112px) 0; }
.reviews__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 64px; align-items: start; }
.reviews__score { position: sticky; top: 108px; }
.score { margin: 28px 0 4px; display: flex; flex-direction: column; }
.score__num { font: 700 6.5rem/1 var(--head); letter-spacing: -0.03em; }
.score__stars { color: var(--clay); font-size: 1.75rem; letter-spacing: 4px; margin-top: 6px; }
.score__src { color: var(--muted); margin: 0; }
.quote { margin: 0; }
.quote blockquote { margin: 0 0 12px; }
.quote figcaption { font-weight: 600; }
.quote figcaption span { font-weight: 400; color: var(--muted); margin-left: 8px; }
.quote--big { padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.quote--big blockquote { font: 600 clamp(1.375rem, 2vw, 1.6875rem)/1.42 var(--head); }
.quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 48px; }

/* About and service area */
.about { background: var(--block); padding: clamp(64px, 8vw, 104px) 0; }
.about__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.about__who { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: start; }
.about__photo { width: 220px; height: 220px; border-radius: 50%; border: 6px solid #fff; object-fit: cover; }
.about h2 { margin-bottom: 18px; }
.about p { max-width: 32em; }
.about__area > p { font-size: 1.125rem; }
.towns { columns: 2; column-gap: 32px; border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 20px; }
.towns li { font: 600 1.1875rem/1.3 var(--head); padding: 7px 0; break-inside: avoid; }

/* Quote section */
.quote-sec { background: var(--ink); color: #fff; padding: clamp(64px, 8vw, 112px) 0; }
.quote-sec__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.quote-sec__info > p { color: #d7dadd; max-width: 26em; margin-top: 18px; }
.bigphone { display: inline-block; font: 700 clamp(2.25rem, 4vw, 3.25rem)/1.1 var(--head); color: #fff; text-decoration: none; margin: 8px 0 6px; white-space: nowrap; }
.bigphone:hover { color: var(--drop); }
.mail { color: var(--drop); word-break: break-all; }
.hours { width: 100%; max-width: 380px; border-collapse: collapse; margin-top: 28px; font-size: 1.0625rem; }
.hours caption { text-align: left; font: 700 1.25rem var(--head); padding-bottom: 10px; }
.hours th, .hours td { padding: 9px 0; border-top: 1px solid #454b51; text-align: left; font-weight: 400; color: #d7dadd; }
.hours td { text-align: right; }
.hours .is-today th, .hours .is-today td { color: #fff; font-weight: 600; }
.hours .is-today th::after { content: " (today)"; color: var(--drop); font-weight: 400; }
.form { background: #fff; color: var(--ink); padding: 36px; border-radius: 6px; border-top: 8px solid var(--drop); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 12px 14px; font: inherit; color: var(--ink); background: #fff; border: 2px solid #8b9197; border-radius: 6px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(76, 188, 240, .45); outline-offset: 0; }
.form__err { color: #b3261e; font-weight: 600; margin: 0 0 14px; }
.form__hint { margin: 14px 0 0; font-size: .9375rem; color: var(--muted); }

/* Footer */
.foot { background: var(--mortar); }
.course__under--foot { margin-top: 0; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding-top: 36px; padding-bottom: 44px; }
.foot__brand { display: flex; align-items: center; gap: 20px; }
.foot__brand img { width: 96px; height: 96px; mix-blend-mode: multiply; }
.foot__brand p { margin: 0; font-size: 1rem; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 0; }
.foot__links a { color: var(--ink); font-weight: 500; padding: 12px 0; }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(20, 22, 24, .93); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox figure { margin: 0; max-width: min(1100px, 86vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; border-radius: 4px; }
.lightbox figcaption { color: #fff; padding-top: 14px; font-size: 1.0625rem; }
.lightbox button { position: absolute; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox 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__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

.sticky-book { display: none; }

/* Tablet */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .mobile-menu:not([hidden]) { display: flex; flex-direction: column; padding: 8px var(--pad) 20px; border-top: 1px solid var(--line); background: #fff; }
  .mobile-menu a { padding: 14px 0; min-height: 52px; font-weight: 600; font-size: 1.125rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
  .mobile-menu .mobile-menu__call { border-bottom: 0; color: var(--blue); }
  .course__row { grid-template-columns: 1fr 1fr; }
  .services__grid, .reviews__grid, .about__grid, .quote-sec__grid { grid-template-columns: 1fr; gap: 44px; }
  .reviews__score { position: static; display: flex; flex-wrap: wrap; align-items: end; gap: 8px 32px; }
  .reviews__score h2 { width: 100%; }
  .score { margin: 12px 0 0; flex-direction: row; align-items: baseline; gap: 16px; }
  .score__num { font-size: 4.5rem; }
  .rooms { grid-template-columns: repeat(4, 1fr); }
  .rooms .pic.rooms__wide { aspect-ratio: 3 / 2; grid-column: span 4; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --pad: 16px; }
  html { scroll-padding-top: 76px; }
  body { padding-bottom: 0; }
  .top__in { min-height: 64px; gap: 8px; }
  .brand img { width: 44px; height: 44px; }
  .brand__name { font-size: 1.125rem; }
  .brand__name small { display: none; }
  .top__phone { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__photo { order: -1; min-height: 0; aspect-ratio: 5 / 4; }
  .hero__text { padding: 28px var(--pad) 36px; }
  .hero h1 { font-size: 2.125rem; }
  .hero__lede { font-size: 1.125rem; margin: 16px 0 24px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .course__row { gap: 6px; padding: 0 6px; }
  .course__row li { padding: 14px 14px 12px; min-height: 84px; }
  .course__row strong { font-size: 1.0625rem; }
  .course__row span { font-size: .9375rem; line-height: 1.35; }
  .course__under { height: 16px; margin-top: 6px; background: repeating-linear-gradient(90deg, var(--block) 0 calc(25% - 6px), var(--mortar) calc(25% - 6px) 25%); background-position: 12.5% 0; }
  .calls__head { margin-bottom: 28px; }
  .calls__list { grid-template-columns: 1fr; }
  .calls__list li { padding: 22px 0 24px; }
  .svc > div { grid-template-columns: 1fr; }
  .stages { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .stages h3 { font-size: 1.125rem; gap: 8px; margin-top: 12px; min-height: 2.6em; align-items: flex-start; }
  .stages h3::before { top: 0; }
  .stages h3::before { width: 28px; height: 28px; line-height: 28px; font-size: .9375rem; }
  .stages p { font-size: 1rem; line-height: 1.45; }
  .work__sub { margin-top: 48px; }
  .rooms { grid-template-columns: 1fr 1fr; gap: 8px; }
  .rooms .pic.rooms__wide { aspect-ratio: 3 / 2; grid-column: span 2; }
  .quotes { grid-template-columns: 1fr; gap: 28px; }
  .about__who { grid-template-columns: 1fr; gap: 24px; }
  .about__photo { width: 168px; height: 168px; }
  .form { padding: 24px 18px; }
  .foot__in { padding-bottom: 104px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .lightbox figure { max-width: 100vw; }
  .lightbox img { border-radius: 0; }

  .sticky-book { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(34, 38, 42, .16); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { min-height: 52px; padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .pic img, .sticky-book { transition: none; }
  .pic:hover img { transform: none; }
}
