/* Superior Detail, Sioux Falls SD
   Identity: the shop's own sign (black board, white lettering, red address bar)
   and the white steel walls of the bay. One accent: sign red. */

:root {
  --ink: #141516;
  --paper: #ffffff;
  --wall: #eef0ec;
  --wall-2: #e2e5df;
  --red: #c81e2b;
  --red-dark: #a11420;
  --mute: #53575a;
  --line: #d3d6d0;
  --on-ink: #f3f4f1;
  --on-ink-mute: #b4b8b3;
  --display: "Red Hat Display", "Segoe UI", Arial, sans-serif;
  --body: "Onest", "Segoe UI", Arial, sans-serif;
  --wrap: 1240px;
  --gutter: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 18px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, figure, blockquote, address { margin: 0; padding: 0; }
ul { list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(34px, 3.6vw, 52px); }
h3 { font-size: 24px; letter-spacing: -0.01em; line-height: 1.2; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.contact :focus-visible, .site-footer :focus-visible, .sticky-book :focus-visible,
.lightbox :focus-visible, .signbar :focus-visible { outline-color: #fff; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 16px; top: -80px; z-index: 200; background: var(--ink); color: #fff; padding: 12px 16px; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 12px 26px; border: 2px solid transparent; border-radius: 4px;
  font-family: var(--body); font-weight: 600; font-size: 18px; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--ink); color: #fff; }
.btn--line-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--full { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; }
.brand__name { font-family: var(--display); font-weight: 900; font-size: 25px; letter-spacing: -0.03em; }
.brand__place { margin-top: 5px; padding-top: 4px; border-top: 3px solid var(--red); font-size: 13.5px; font-weight: 500; color: var(--mute); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 16.5px; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.header-phone {
  font-family: var(--display); font-weight: 800; font-size: 20px; text-decoration: none;
  padding: 10px 18px; border-radius: 4px; background: var(--ink); color: #fff;
}
.header-phone:hover { background: var(--red); }
.menu-btn { display: none; width: 48px; height: 48px; border: 0; background: none; padding: 12px 10px; cursor: pointer; }
.menu-btn span { display: block; height: 3px; background: var(--ink); margin: 5px 0; }

.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(20, 21, 22, .55); }
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 80; width: min(86vw, 340px);
  background: var(--paper); padding: 84px 24px 24px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.mobile-menu[hidden], .scrim[hidden] { display: none; }
.mobile-menu__close { position: absolute; top: 12px; right: 14px; width: 52px; height: 52px; border: 0; border-radius: 4px; background: var(--wall); font-size: 34px; line-height: 1; cursor: pointer; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 20px; font-weight: 600; text-decoration: none; }

/* Hero */
.hero { padding-top: 56px; }
.hero__head { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 56px; align-items: end; padding-bottom: 44px; }
.hero h1 { font-size: clamp(42px, 5.9vw, 88px); font-weight: 900; letter-spacing: -0.035em; line-height: .96; text-wrap: balance; }
.hero__lead { font-size: 19px; color: var(--mute); max-width: 44ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero__stage { margin-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); position: relative; }
.hero__img { width: 100%; height: clamp(340px, 66vh, 720px); object-fit: cover; object-position: 50% 88%; }
.signbar {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0;
  background: var(--red); color: #fff; font-size: 16.5px; line-height: 1.35;
}
.signbar li { padding: 16px 36px 17px 0; margin-left: 28px; }
.signbar li + li { border-left: 1px solid rgba(255, 255, 255, .35); padding-left: 28px; margin-left: 0; }
.signbar strong { display: block; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }

/* Section heads */
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-bottom: 44px; }
.sec-head p { color: var(--mute); max-width: 52ch; }

/* Before and after: the signature. The red gap is the detailer's tape line. */
.ba { background: var(--wall); padding: 104px 0 96px; margin-top: 0; }
.ba__row { display: grid; gap: 40px 32px; }
.ba__row--two { grid-template-columns: 1fr 1fr; }
.ba__row--mix { grid-template-columns: 4fr 3fr; }
.ba__item--wide { margin: 40px 0; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--red); }
.half { position: relative; overflow: hidden; background: var(--wall-2); }
.half img { width: 100%; height: 100%; object-fit: cover; }
.pair--tall .half { aspect-ratio: 3 / 4; }
.pair--wide .half { aspect-ratio: 4 / 3; }
.pair--square .half { aspect-ratio: 1 / 1; }
.tag {
  position: absolute; left: 0; top: 0; padding: 6px 12px 7px; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2;
}
.tag--after { background: var(--red); }
.ba__item figcaption { margin-top: 12px; font-weight: 600; font-size: 18px; }
.ba__say { margin-top: 64px; max-width: 880px; padding-left: 24px; border-left: 6px solid var(--red); }
.ba__say p { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.22; letter-spacing: -0.015em; }
.ba__say cite { display: block; margin-top: 12px; font-style: normal; color: var(--mute); font-size: 16.5px; }

/* Services */
.services { padding: 104px 0; }
.services__in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 72px; align-items: start; }
.services__intro { position: sticky; top: 112px; }
.services__intro p { margin: 20px 0 28px; color: var(--mute); }
.svc__row { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: center; padding: 22px 0; border-top: 1px solid var(--line); }
.svc__row:first-child { border-top: 3px solid var(--ink); }
.svc__row:last-child { border-bottom: 1px solid var(--line); }
.svc__row img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc__row p { margin-top: 8px; color: var(--mute); max-width: 56ch; }

/* Recent work */
.work { padding: 0 0 104px; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 10px; }
.gallery__item { position: relative; padding: 0; border: 0; background: var(--wall-2); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery__item--tall { grid-row: span 2; aspect-ratio: auto; }

/* Reviews */
.reviews { padding: 96px 0 104px; background: var(--wall); }
.reviews__top { display: flex; justify-content: space-between; align-items: end; gap: 40px; flex-wrap: wrap; margin-bottom: 48px; }
.score { display: flex; align-items: center; gap: 18px; }
.score__num { font-family: var(--display); font-weight: 900; font-size: 76px; line-height: .9; letter-spacing: -0.04em; color: var(--red); }
.score__txt { font-size: 16.5px; line-height: 1.45; color: var(--mute); }
.quote p { font-size: 18px; }
.quote cite { display: block; margin-top: 12px; font-style: normal; font-weight: 600; font-size: 17px; }
.quote cite span { display: block; font-weight: 400; color: var(--mute); font-size: 15.5px; }
.quote--lead { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 3px solid var(--ink); }
.quote--lead p { max-width: 26em; }
.quote--lead p { font-family: var(--display); font-weight: 700; font-size: clamp(25px, 2.7vw, 38px); line-height: 1.18; letter-spacing: -0.02em; }
.quote--lead cite { margin-top: 20px; }
.quotes { columns: 3; column-gap: 48px; }
.quotes .quote { break-inside: avoid; padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }

/* About and area */
.about { padding: 104px 0; }
.about__in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; }
.about__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.about__text > p { margin-top: 20px; font-size: 19px; }
.facts { margin-top: 28px; }
.facts > div { padding: 16px 0; border-top: 1px solid var(--line); }
.facts dt { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.01em; }
.facts dd { color: var(--mute); margin-top: 2px; }
.area { margin-top: 96px; padding-top: 48px; border-top: 3px solid var(--ink); }
.area h2 { font-size: 26px; letter-spacing: -0.01em; }
.area__big { margin-top: 16px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 3.7vw, 54px); line-height: 1.1; letter-spacing: -0.025em; max-width: 22em; }
.area__note { margin-top: 18px; color: var(--mute); }

/* Contact: the black sign */
.contact { background: var(--ink); color: var(--on-ink); padding: 96px 0 104px; border-top: 10px solid var(--red); }
.contact__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.contact__lead { margin-top: 18px; color: var(--on-ink-mute); max-width: 36ch; }
.contact__phone { display: inline-block; margin: 22px 0 28px; font-family: var(--display); font-weight: 900; font-size: clamp(38px, 4.2vw, 58px); letter-spacing: -0.03em; line-height: 1; text-decoration: none; color: #fff; border-bottom: 5px solid var(--red); padding-bottom: 6px; }
.contact address { color: var(--on-ink); line-height: 1.55; }
.contact address a { color: #fff; text-underline-offset: 4px; }
.hours { margin-top: 32px; width: 100%; max-width: 400px; border-collapse: collapse; font-size: 17px; }
.hours caption { text-align: left; font-family: var(--display); font-weight: 800; font-size: 20px; padding-bottom: 8px; color: #fff; }
.hours th, .hours td { text-align: left; font-weight: 400; padding: 7px 0; border-top: 1px solid rgba(255, 255, 255, .16); color: var(--on-ink-mute); }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: #fff; font-weight: 600; }

.form { background: var(--paper); color: var(--ink); padding: 36px; border-radius: 4px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 16.5px; margin-bottom: 6px; }
.field label span { font-weight: 400; color: var(--mute); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid #9a9e99; border-radius: 4px;
  background: #fff; color: var(--ink); font: inherit; font-size: 18px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--red); outline-offset: 1px; border-color: var(--ink); }
.form__err { color: var(--red-dark); font-weight: 600; margin-bottom: 14px; }
.form__hint { margin-top: 12px; font-size: 15.5px; color: var(--mute); }

/* Footer */
.site-footer { background: #0c0d0e; color: var(--on-ink-mute); padding: 36px 0; font-size: 16px; }
.site-footer__in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.site-footer strong { color: #fff; font-family: var(--display); font-weight: 800; font-size: 18px; }
.site-footer a { color: var(--on-ink); text-underline-offset: 3px; }

.sticky-book { display: none; }

/* Lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 13, 14, .96); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox img { max-width: min(92vw, 1280px); max-height: 80vh; width: auto; height: auto; object-fit: contain; }
.lightbox__cap { position: absolute; left: 16px; right: 16px; bottom: 22px; text-align: center; font-size: 16.5px; color: var(--on-ink); }
.lightbox__close, .lightbox__nav { position: absolute; width: 56px; height: 56px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--red); }
.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%); }

/* Tablet */
@media (max-width: 1100px) {
  :root { --gutter: 28px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .hero__head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .services__in { grid-template-columns: 1fr; gap: 36px; }
  .services__intro { position: static; max-width: 640px; }
  .quotes { columns: 2; }
  .about__in { grid-template-columns: 1fr; gap: 36px; }
  .contact__in { grid-template-columns: 1fr; gap: 48px; }
  .sec-head { grid-template-columns: 1fr; gap: 14px; }
}

/* Phone */
@media (max-width: 700px) {
  :root { --gutter: 16px; }
  html { scroll-padding-top: 72px; }
  .site-header__in { min-height: 64px; gap: 8px; }
  .brand__name { font-size: 22px; }
  .header-phone { display: none; }
  .hero { padding-top: 32px; }
  .hero__head { padding-bottom: 28px; }
  .hero h1 { font-size: clamp(40px, 11.6vw, 56px); }
  .hero__lead { font-size: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__stage { margin-left: 0; }
  .hero__img { height: 62vw; min-height: 240px; object-position: 55% 70%; }
  .signbar { grid-template-columns: 1fr; padding: 4px 16px; }
  .signbar li, .signbar li + li { margin: 0; padding: 12px 0; border-left: 0; }
  .signbar li + li { border-top: 1px solid rgba(255, 255, 255, .35); }

  .ba, .reviews { padding: 64px 0; }
  .services, .about { padding: 64px 0; }
  .work { padding-bottom: 64px; }
  .sec-head { margin-bottom: 28px; }
  .ba__row { gap: 28px; }
  .ba__row--two, .ba__row--mix { grid-template-columns: 1fr; }
  .ba__item--wide { margin: 28px 0; }
  .pair { gap: 4px; }
  .pair--wide .half, .pair--square .half { aspect-ratio: 1 / 1; }
  .tag { font-size: 14px; padding: 5px 9px 6px; }
  .ba__say { margin-top: 44px; padding-left: 16px; }

  .svc__row { grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px 0; }
  .svc__row img { aspect-ratio: 1 / 1; }
  h3 { font-size: 21px; }

  .gallery { grid-template-columns: 1fr 1fr; gap: 6px; }
  .quotes { columns: 1; }
  .reviews__top { margin-bottom: 32px; gap: 20px; }
  .score__num { font-size: 64px; }
  .quote--lead { padding-bottom: 32px; margin-bottom: 32px; }
  .area { margin-top: 56px; padding-top: 32px; }

  .contact { padding: 64px 0 72px; }
  .form { padding: 22px 18px; }
  .site-footer { padding-bottom: 112px; }
  .site-footer__in { flex-direction: column; gap: 16px; }

  .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: rgba(20, 21, 22, .97); border-top: 3px solid var(--red);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .sticky-book.is-visible { transform: none; }
  .sticky-book .btn { flex: 1; min-height: 50px; padding: 10px 12px; }
  .lightbox__nav { top: auto; bottom: 104px; transform: none; }
}

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