/* Lumber Street Auto Repair preview
   Ground: white, with a pale tint of the sign green. Ink: near-black with a green cast.
   Accent: the deep green of their road sign and building trim.
   Headings: Barlow Condensed. Reading: Barlow. */

@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("assets/fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("assets/fonts/barlow-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #101a14;         /* shop-floor black with the sign's green in it */
  --paper: #ffffff;
  --tint: #edf2ed;        /* sign green, thinned to a wash */
  --green: #1d4a30;       /* road sign and door trim */
  --green-dark: #143524;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --read: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --pad: clamp(20px, 5vw, 76px);
  --top-h: 74px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--top-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--read);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--head);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0 0 1em; }
.wrap { padding-inline: var(--pad); max-width: 1680px; margin-inline: auto; }

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

:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
.hero :focus-visible, .top:not(.is-solid) :focus-visible, .foot :focus-visible { outline-color: #fff; }

/* ---------- Top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--top-h);
  display: flex; align-items: center; gap: 24px;
  padding-inline: var(--pad);
  color: #fff;
  background: transparent;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.top.is-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(16, 26, 20, .16); }
.brand { display: block; flex: none; }
.brand img { height: 54px; width: auto; filter: invert(1); transition: filter .25s ease; }
.top.is-solid .brand img { filter: none; }
.menu { display: none; margin-left: auto; gap: clamp(18px, 2.4vw, 40px); }
.menu a { text-decoration: none; font-weight: 600; font-size: 19px; padding: 10px 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.top-call {
  margin-left: auto;
  display: inline-flex; align-items: center; min-height: 48px;
  padding: 0 18px;
  font-weight: 700; font-size: 19px; text-decoration: none; white-space: nowrap;
  color: var(--ink); background: #fff;
  transition: background-color .2s ease, color .2s ease;
}
.top.is-solid .top-call { background: var(--green); color: #fff; }
.top-call:hover { background: var(--tint); }
.top.is-solid .top-call:hover { background: var(--green-dark); }
@media (min-width: 900px) {
  .menu { display: flex; }
  .top-call { margin-left: 0; }
}
@media (max-width: 599px) { .top { gap: 12px; } .brand img { height: 46px; } .top-call { padding: 0 14px; font-size: 18px; } }
@media (max-width: 359px) { .top-call-word { display: none; } .top-call { padding: 0 12px; } .brand img { height: 42px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 30px;
  font-family: var(--read); font-weight: 700; font-size: 20px; line-height: 1.1;
  text-decoration: none; text-align: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-main { background: var(--green); color: #fff; }
.btn-main:hover { background: var(--green-dark); }
.btn-line { border: 2px solid var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-ghost { border: 2px solid #fff; color: #fff; background: rgba(8, 14, 10, .28); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.text-link { font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.text-link:hover { text-decoration-thickness: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 540px;
  overflow: clip;
  background: var(--ink);
  color: #fff;
  display: flex; align-items: flex-end;
}
.hero-film { position: absolute; inset: 0; will-change: transform; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; background: var(--ink) center / cover no-repeat; }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 14, 10, .62) 0, rgba(8, 14, 10, 0) 170px),
    linear-gradient(to top, rgba(8, 14, 10, .9) 0, rgba(8, 14, 10, .72) 34%, rgba(8, 14, 10, .34) 58%, rgba(8, 14, 10, 0) 82%);
}
.hero-text {
  position: relative; width: 100%;
  padding: 0 var(--pad) clamp(20px, 5vh, 64px);
  will-change: transform;
}
.hero h1 { font-size: clamp(2.5rem, 6.6vw, 6.6rem); max-width: 15ch; line-height: .96; }
.hero-towns { font-size: clamp(1.05rem, 1.55vw, 1.45rem); font-weight: 500; max-width: 42ch; margin: clamp(10px, 1.6vh, 20px) 0 clamp(14px, 2.4vh, 30px); }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-facts { margin: clamp(12px, 2vh, 22px) 0 0; display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 18px; font-weight: 600; }
.open-line::before, .open-big::before {
  content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%;
  margin-right: 9px; background: currentColor; vertical-align: 1px;
}
[data-open-state="open"]::before { background: #45d483; }
[data-open-state="closed"]::before { background: #ff9272; }
.hero-dir { text-underline-offset: 5px; }
@media (max-width: 599px) {
  .hero-act { gap: 10px; }
  .hero .btn { width: 100%; min-height: 54px; }
  .hero h1 { max-width: none; }
  .hero-facts { font-size: 17px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 2.2rem; }
  .hero-towns { font-size: 1rem; }
}
@media (max-height: 620px) and (max-width: 599px) {
  .hero h1 { font-size: 2.1rem; }
  .hero-towns { font-size: 1rem; margin: 8px 0 12px; }
  .hero .btn { min-height: 50px; }
}

/* ---------- Section titles ---------- */
.sec-title { font-size: clamp(2.8rem, 6.4vw, 6rem); }
.sec-lead { font-size: clamp(1.2rem, 1.6vw, 1.45rem); margin: 16px 0 0; max-width: 40em; }

/* ---------- What Happens Next ---------- */
.next { padding-block: clamp(64px, 10vw, 150px); background: var(--paper); }
.steps {
  list-style: none; margin: clamp(28px, 4vw, 60px) 0 0; padding: 0;
  display: grid; gap: clamp(28px, 3vw, 48px);
}
.steps li { border-top: 4px solid var(--green); padding-top: 14px; }
.step-num { display: block; font-family: var(--head); font-weight: 700; font-size: clamp(4rem, 6.4vw, 6.4rem); line-height: .9; color: var(--green); }
.steps h3 { font-size: clamp(1.9rem, 2.5vw, 2.5rem); margin: 10px 0 10px; }
.steps p { margin: 0; max-width: 26em; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Services ---------- */
.services { background: var(--tint); padding-block: clamp(64px, 10vw, 150px) clamp(48px, 8vw, 120px); }
.svc {
  display: grid; gap: clamp(22px, 4vw, 72px);
  padding: clamp(40px, 6vw, 96px) var(--pad) 0;
  max-width: 1680px; margin-inline: auto;
  align-items: center;
}
.svc-pic { position: relative; }
.svc-frame { position: relative; z-index: 1; overflow: clip; aspect-ratio: 5 / 4; background: var(--ink); }
.svc-frame img { width: 100%; height: 116%; object-fit: cover; position: absolute; left: 0; top: -8%; will-change: transform; }
/* The building picture keeps its full frame so the inspection placard at the bottom edge stays in view */
.svc-frame-still img { height: 100%; top: 0; }
.svc-slab {
  position: absolute; z-index: 0;
  width: 46%; height: 62%;
  right: calc(-1 * clamp(12px, 2.4vw, 40px)); bottom: calc(-1 * clamp(12px, 2.4vw, 40px));
  background: var(--green);
  will-change: transform;
}
.svc-flip .svc-slab { right: auto; left: calc(-1 * clamp(12px, 2.4vw, 40px)); }
.svc-text h3 { font-size: clamp(2.3rem, 4.4vw, 4.4rem); }
.svc-text p { font-size: clamp(1.2rem, 1.5vw, 1.45rem); margin: clamp(12px, 1.5vw, 22px) 0 clamp(20px, 2.2vw, 34px); max-width: 26em; }
@media (min-width: 900px) {
  .svc { grid-template-columns: 1fr 1fr; }
  .svc-flip .svc-pic { order: 2; }
}
@media (max-width: 599px) { .svc-text .btn { width: 100%; } }

/* ---------- Reviews ---------- */
.reviews { padding-block: clamp(72px, 11vw, 170px); }
.rev-grid { display: grid; gap: clamp(28px, 3.4vw, 56px); margin: clamp(30px, 4vw, 64px) 0 clamp(30px, 4vw, 56px); align-items: start; }
.reviews blockquote { margin: 0; padding-top: 22px; border-top: 4px solid var(--green); }
.reviews blockquote p { font-size: clamp(1.2rem, 1.45vw, 1.4rem); line-height: 1.5; }
.reviews blockquote footer { display: flex; flex-direction: column; font-size: 18px; }
.reviews blockquote strong { font-weight: 700; font-size: 20px; }
.rev-more { margin: 0; }
@media (min-width: 900px) { .rev-grid { grid-template-columns: 1fr 1fr 1.5fr; } }

/* ---------- Hours, directions, towns ---------- */
.visit { background: var(--tint); }
/* The sign picture is a little taller than its band, so the band can drift over it without cutting the sign's sides */
.visit-pic { position: relative; overflow: clip; aspect-ratio: 21 / 9; background: var(--green-dark); }
.visit-pic img { position: absolute; left: 0; top: 0; width: 100%; height: auto; will-change: transform; }
.visit-body { display: grid; gap: clamp(36px, 4vw, 72px); padding: clamp(48px, 7vw, 110px) var(--pad); align-content: start; max-width: 1680px; margin-inline: auto; }
.visit h2 { font-size: clamp(2.3rem, 3.4vw, 3.4rem); margin-bottom: 16px; }
.open-big { font-weight: 700; margin-bottom: 12px; }
.hours { border-collapse: collapse; width: 100%; max-width: 440px; font-size: 20px; }
.hours th, .hours td { text-align: left; padding: 9px 0; font-weight: 500; border-bottom: 1px solid rgba(16, 26, 20, .3); }
.hours td { text-align: right; white-space: nowrap; }
.hours tr.is-today th, .hours tr.is-today td { font-weight: 700; }
.visit .btn { width: 100%; max-width: 440px; margin-top: 12px; }
.visit .btn-main { margin-top: 4px; }
.towns { margin: 0; max-width: 34em; }
@media (max-width: 699px) { .visit-pic { aspect-ratio: 4 / 3; } }
@media (min-width: 700px) { .visit-body { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .visit-body { grid-template-columns: 1fr 1fr 1.15fr; } }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: #fff; padding-block: clamp(44px, 6vw, 84px); font-size: 19px; }
.foot-grid { display: grid; gap: 26px; }
.foot-logo { height: 96px; width: auto; filter: invert(1); }
.foot address { font-style: normal; }
.foot a { text-underline-offset: 5px; }
.foot-contact { display: flex; flex-direction: column; gap: 8px; margin: 0; overflow-wrap: anywhere; }
.foot-legal { margin: 0; max-width: 46em; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: auto 1fr 1fr; column-gap: clamp(40px, 6vw, 110px); align-items: start; }
  .foot-legal { grid-column: 1 / -1; }
}

/* ---------- Depth on scroll: transforms only, tied to the scroll position ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero-film { animation: film-drift linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
    .hero-text { animation: text-lift linear both; animation-timeline: scroll(root block); animation-range: 0 100vh; }
    .svc-frame img { animation: pic-drift linear both; animation-timeline: view(block); animation-range: entry 0% exit 100%; }
    .svc-slab { animation: slab-drift linear both; animation-timeline: view(block); animation-range: entry 0% exit 100%; }
    .svc-frame-still img { animation: none; }
    .visit-pic img { animation: sign-drift linear both; animation-timeline: view(block); animation-range: entry 0% exit 100%; }
  }
}
@keyframes film-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 22vh, 0); } }
@keyframes text-lift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, -9vh, 0); } }
@keyframes pic-drift { from { transform: translate3d(0, -6.5%, 0); } to { transform: translate3d(0, 6.5%, 0); } }
@keyframes slab-drift { from { transform: translate3d(0, 44px, 0); } to { transform: translate3d(0, -44px, 0); } }
@keyframes sign-drift { from { transform: translate3d(0, -1%, 0); } to { transform: translate3d(0, -9%, 0); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
