/* ============================================================
   Bos Garage Auto Repair — client-branded demo site (v3)
   Brand system: SOURCED from real research (Google Maps photo +
   reviews, verified 2026-08-28) — see README. Warm off-white
   pole-barn siding, muted barn-red roofline, warm stone-tan,
   soft safety-bollard yellow. Personal, trustworthy, small-town
   tone — not the dark/industrial "auto shop" category default.
   Typography: Bitter (display) + Work Sans (body) + Caveat
   (one hand-lettered signature accent only).
   This page intentionally carries ZERO Lewis Digital gold.
   ============================================================ */

:root {
  --cream: #f6efe2;         /* warm off-white — page base, echoes the siding */
  --cream-panel: #fffaf0;   /* lighter warm panel background */
  --white: #fffdf9;
  --line: #e6d9c2;          /* warm hairline border */

  --barn-red: #8a3527;      /* muted, weathered brick-red roofline trim */
  --barn-red-deep: #6c281c; /* red hover/active */

  --stone: #a89173;         /* warm gray-tan stone veneer */
  --stone-deep: #7a6650;    /* darker stone / muted supporting text */

  --yellow: #d9a13b;        /* soft safety-bollard yellow, used sparingly */
  --yellow-deep: #b9832a;

  --ink: #2b2118;           /* warm near-black — body text, one dark section */
  --ink-soft: #5c4d3d;      /* muted warm brown-gray for secondary text */

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Work Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-script: "Caveat", cursive;

  --radius: 8px;
  --shadow: 0 18px 40px -26px rgba(43, 33, 24, 0.35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }
.container { width: min(1120px, 92%); margin-inline: auto; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.14;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--barn-red);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---------- shared bits ---------- */
.eyebrow {
  display: inline-block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--barn-red-deep); font-weight: 600;
  margin-bottom: 0.7rem;
}
.section { padding: 4.6rem 0; }
.section__title { font-size: clamp(1.7rem, 3.4vw, 2.35rem); max-width: 26em; color: var(--ink); }
.section__lede { margin-top: 0.9rem; color: var(--ink-soft); max-width: 46em; font-size: 1.02rem; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem;
  padding: 0.85rem 1.7rem; border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  border: 2px solid transparent; font-family: var(--font-body);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--red { background: var(--barn-red); color: var(--white); }
.btn--red:hover { background: var(--barn-red-deep); }
.btn--line { border-color: var(--stone-deep); color: var(--ink); }
.btn--line:hover { border-color: var(--barn-red); color: var(--barn-red-deep); }
.btn--outline { border-color: var(--barn-red); color: var(--barn-red-deep); background: transparent; }
.btn--outline:hover { background: var(--barn-red); color: var(--white); }
.btn--big { font-size: 1.08rem; padding: 1rem 2.2rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--cream-panel);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header__row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem; padding: 0.9rem 0;
}
.wordmark { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.wordmark__badge {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--barn-red); color: var(--white);
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem;
  display: grid; place-items: center; line-height: 1;
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 2px var(--barn-red);
}
.wordmark__text { display: flex; flex-direction: column; line-height: 1.15; }
.wordmark__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--ink); }
.wordmark__tag { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; color: var(--stone-deep); font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 1.6rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-size: 0.92rem; font-weight: 600; }
.site-nav a:hover { color: var(--barn-red); }
.site-nav__cta {
  background: var(--barn-red); color: var(--white) !important;
  padding: 0.55rem 1.15rem; border-radius: 999px; white-space: nowrap;
}
.site-nav__cta:hover { background: var(--barn-red-deep); color: var(--white) !important; }

/* ---------- hero: centered copy + full-bleed hero photo ---------- */
.hero { padding-top: 3.6rem; }
.hero__copy { text-align: center; max-width: 720px; padding-bottom: 2.6rem; }
.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4rem); color: var(--ink);
  animation: hero-rise 0.7s ease both;
}
.hero__title span { color: var(--barn-red); }
.hero__tagline {
  margin: 1.3rem auto 0; font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--ink-soft); max-width: 40em;
}
.hero__signature {
  font-family: var(--font-script); font-size: 1.6rem; color: var(--barn-red-deep);
  transform: rotate(-3deg); margin: 0.6rem 0 1.6rem; font-weight: 700;
}
.hero__actions { display: flex; gap: 0.9rem; flex-wrap: wrap; justify-content: center; }
.hero__address {
  margin-top: 1.6rem; font-size: 0.88rem; color: var(--stone-deep);
  letter-spacing: 0.04em;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__photo {
  width: 100%; line-height: 0; position: relative;
  border-top: 6px solid var(--barn-red);
  border-bottom: 2px solid var(--stone);
}
.hero__photo img {
  width: 100%; height: clamp(220px, 38vw, 460px);
  object-fit: cover; object-position: center 35%;
  display: block;
}

/* ---------- trust strip: ticket-stub band ---------- */
.trust {
  position: relative; background: var(--white); overflow: hidden;
  border-top: 2px dashed var(--stone); border-bottom: 2px dashed var(--stone);
}
.trust::before, .trust::after {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px;
  border-radius: 50%; background: var(--cream); transform: translateY(-50%);
}
.trust::before { left: -11px; }
.trust::after { right: -11px; }
.trust__row {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 1.4rem 2rem; padding: 1.5rem 0; text-align: center;
}
.trust__item { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.trust__num { font-family: var(--font-display); font-size: 1.7rem; color: var(--barn-red); line-height: 1; }
.trust__label {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--stone-deep); font-weight: 600;
}
.trust__label--big { font-size: 0.86rem; text-transform: none; letter-spacing: 0.01em; color: var(--ink-soft); }
.trust__sep { width: 1px; height: 30px; background: var(--line); }
.trust__phone {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--ink); text-decoration: none;
}
.trust__phone:hover { color: var(--barn-red); }

/* ---------- story / about ---------- */
.story { background: var(--cream); }
.story__grid { display: grid; grid-template-columns: 0.7fr 1.6fr; gap: 3rem; align-items: center; }
.story__art { display: flex; flex-direction: column; gap: 0.5rem; }
.swatch { height: 34px; border-radius: 6px; }
.swatch--stone { background: var(--stone); }
.swatch--red { background: var(--barn-red); }
.swatch--cream { background: var(--cream-panel); border: 1px solid var(--line); }
.story__art-caption { margin-top: 0.6rem; font-size: 0.76rem; color: var(--stone-deep); line-height: 1.5; }
.story__text { margin-top: 1rem; font-size: 1.05rem; color: var(--ink); max-width: 40em; }
.story__source { margin-top: 1.4rem; font-size: 0.82rem; color: var(--stone-deep); }

/* ---------- services: repair-ticket list ---------- */
.services { background: var(--cream-panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticket-list { list-style: none; margin-top: 2.4rem; display: flex; flex-direction: column; }
.ticket {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.15rem 0.4rem; border-bottom: 1px dashed var(--line);
  transition: padding-left 0.2s, background 0.2s;
}
.ticket:hover { padding-left: 0.9rem; background: var(--white); }
.ticket:last-child { border-bottom: none; }
.ticket__code {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--cream); border: 2px solid var(--stone);
  color: var(--stone-deep); font-family: var(--font-display); font-weight: 700;
  font-size: 0.9rem; display: grid; place-items: center; letter-spacing: 0.02em;
}
.ticket__title { font-size: 1.04rem; color: var(--ink); margin-bottom: 0.25rem; }
.ticket__text { font-size: 0.92rem; color: var(--ink-soft); }
.services__note {
  margin-top: 2rem; font-size: 0.88rem; color: var(--stone-deep); max-width: 54em;
  border-top: 1px solid var(--line); padding-top: 1.1rem;
}
.services__note a { color: var(--barn-red-deep); font-weight: 600; }

/* ---------- hours / find us: nameplate ---------- */
.hours { background: var(--cream); }
.nameplate {
  margin-top: 2.4rem; background: var(--white); border: 1px solid var(--line);
  border-top: 4px solid var(--barn-red); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.2rem 2.4rem;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 2.2rem;
}
.nameplate__heading {
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--barn-red-deep); margin-bottom: 0.7rem; font-family: var(--font-body); font-weight: 700;
}
.nameplate__big { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.5rem; }
.nameplate__big a { text-decoration: none; }
.nameplate__big a:hover { color: var(--barn-red); }
.nameplate__small { font-size: 0.92rem; color: var(--ink-soft); }
.nameplate__divider { width: 1px; background: var(--line); }
.hours__note { margin-top: 1.4rem; font-size: 0.84rem; color: var(--stone-deep); }

/* ---------- reviews: stamp badge ---------- */
.reviews { background: var(--cream-panel); border-top: 1px solid var(--line); }
.reviews__grid { display: grid; grid-template-columns: 0.85fr 1.6fr; gap: 3rem; align-items: center; }
.stamp {
  width: 190px; height: 190px; border-radius: 50%; margin-inline: auto;
  border: 3px solid var(--barn-red); outline: 1px solid var(--barn-red);
  outline-offset: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--barn-red-deep); transform: rotate(-6deg);
}
.stamp__num { font-family: var(--font-display); font-size: 3rem; font-weight: 700; line-height: 1; }
.stamp__of { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.1rem; }
.stamp__count { margin-top: 0.5rem; font-size: 0.8rem; font-weight: 600; }
.reviews__coming {
  margin-top: 1.2rem; font-size: 0.95rem; font-style: italic; color: var(--ink-soft);
  border-left: 4px solid var(--barn-red); padding-left: 0.9rem;
}
.reviews__source { margin-top: 1.1rem; font-size: 0.8rem; color: var(--stone-deep); }
.reviews__grid .btn { margin-top: 1.2rem; }

/* ---------- contact: single dark section ---------- */
.contact { background: var(--ink); color: var(--white); text-align: center; padding: 4.6rem 0; }
.contact__inner { max-width: 640px; margin-inline: auto; }
.contact__title { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--white); }
.contact__text { margin: 1rem auto 1.8rem; font-size: 1.05rem; color: rgba(255, 253, 249, 0.85); }
.contact__directions { margin-top: 1.6rem; font-size: 0.92rem; font-weight: 600; }
.contact__directions a { color: var(--white); text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, 0.45); }
.contact__directions a:hover { border-color: var(--white); }

/* ---------- footer ---------- */
.footer { background: var(--cream-panel); color: var(--ink-soft); font-size: 0.85rem; border-top: 1px solid var(--line); }
.footer__inner { display: flex; flex-direction: column; gap: 0.35rem; align-items: center; text-align: center; padding: 1.8rem 0; }
.footer a { color: var(--barn-red-deep); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__credit { font-size: 0.78rem; color: var(--stone-deep); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__art { flex-direction: row; }
  .swatch { flex: 1; height: 44px; }
  .reviews__grid { grid-template-columns: 1fr; text-align: center; }
  .stamp { margin-inline: auto; }
  .nameplate { grid-template-columns: 1fr; }
  .nameplate__divider { display: none; }
  .site-nav { gap: 1rem; }
  .site-nav a:not(.site-nav__cta) { font-size: 0.86rem; }
}
@media (max-width: 620px) {
  .section { padding: 3.2rem 0; }
  .hero { padding-top: 2.6rem; }
  .site-nav a:not(.site-nav__cta) { display: none; }
  .site-nav__cta { font-size: 0.82rem; padding: 0.5rem 0.95rem; }
  .trust__row { gap: 1rem 1.2rem; }
  .trust__sep { display: none; }
}
