/* ============================================================
   HB Mobile Mechanic — cafe-warm palette, oversized display serif,
   museum wall labels, diagonal split, hard bg swap on section enter.
   ============================================================ */

:root {
  --bg: #f4ead8;
  --bg-alt: #efe0c8;
  --ink: #3a2415;
  --ink-soft: #6b5540;
  --accent: #6b1f1a;
  --secondary: #5a5e3a;
  --rule: rgba(58, 36, 21, 0.18);
  --paper: #fbf5e9;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Barlow Semi Condensed", "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(1.25rem, 5vw, 5rem);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.55vw + 0.9rem, 1.15rem);
  line-height: 1.6;
  transition: background-color 420ms ease;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--accent); text-underline-offset: 0.18em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1rem; z-index: 99;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 3vw, 2.5rem);
  padding: 0.7rem var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
  animation: slideDown 700ms cubic-bezier(.2,.7,.2,1) both;
}

.wordmark {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "wght" 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark span { color: var(--accent); }

.topnav {
  display: none;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.topnav a { color: var(--ink-soft); text-decoration: none; }
.topnav a:hover { color: var(--accent); }

.callbtn {
  margin-left: auto;
  background: var(--accent);
  color: #fdf6ec;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.05rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border-radius: 2px;
  white-space: nowrap;
}
.topnav + .callbtn { margin-left: 0; }
.callbtn:hover { background: #551713; }

@media (min-width: 860px) {
  .topnav { display: flex; }
}

/* ---------- section shell ---------- */

section {
  padding: clamp(3.5rem, 9vw, 8rem) var(--pad);
  max-width: var(--maxw);
  margin: 0 auto;
}

.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 4rem); }

h2 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 100, "wght" 500;
  font-size: clamp(2rem, 5.5vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}

.lede {
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 54ch;
  margin: 0;
}

.label {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--secondary);
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 0.5rem;
}

.display {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 600, "SOFT" 20;
  font-size: clamp(3.4rem, 17vw, 13rem);
  line-height: 0.85;
  letter-spacing: -0.035em;
  margin: 0 0 -0.12em;
  color: var(--ink);
  position: relative;
  z-index: 2;
}

.hero-sub {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  margin: 0 0 1.6rem;
  padding-top: 0.4em;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-call {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
}
.hero-call a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 600;
  font-size: clamp(1.5rem, 4.5vw, 2.4rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 0.06em;
}
.hero-call a:hover { color: #551713; border-color: #551713; }
.hero-note { font-size: 0.85rem; color: var(--secondary); }

.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.03);
}
.hero-figure .label { margin-top: 0.6rem; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .hero-figure {
    margin-top: 3.5rem;
    /* the diagonal: the right half is cut on the bias, so the two columns
       read as one plane sliced corner to corner */
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
    will-change: transform;
  }
  .hero-inner { will-change: transform; }
}

/* ---------- museum wall labels (services) ---------- */

.wall {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3.5rem);
}

@media (min-width: 720px) {
  .wall { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .wall { grid-template-columns: repeat(3, 1fr); }
}

.work { margin: 0; }

.work img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.04);
  border: 1px solid var(--rule);
}

.work .label {
  margin-top: 0.85rem;
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
  color: var(--ink);
}

.work h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 60, "wght" 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 0.15rem;
  color: var(--ink);
}

.work .meta {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--secondary);
}

.work .body {
  margin: 0 0 0.6rem;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: normal;
}

.work .price {
  margin: 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 30, "wght" 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-transform: none;
}

/* ---------- how it works (dark section) ---------- */

.how { color: var(--paper); }
.how h2 { color: var(--paper); }
.how .lede { color: rgba(251, 245, 233, 0.72); }

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
}
@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  border-top: 1px solid rgba(251, 245, 233, 0.28);
  padding-top: 1rem;
}
.stepnum {
  display: block;
  font-family: var(--serif);
  font-variation-settings: "opsz" 90, "wght" 400;
  font-size: 2.6rem;
  line-height: 1;
  color: #c9a27a;
  margin-bottom: 0.5rem;
}
.step h3 {
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "wght" 600;
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  color: var(--paper);
}
.step p {
  margin: 0;
  font-size: 0.94rem;
  color: rgba(251, 245, 233, 0.78);
}

.how-note {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(251, 245, 233, 0.28);
  font-size: 0.9rem;
  color: rgba(251, 245, 233, 0.72);
  max-width: 62ch;
}

/* ---------- about ---------- */

.about-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.4fr 0.85fr; }
}

.about-copy p { margin: 0 0 1.1rem; max-width: 62ch; }

.dropcap::first-letter {
  font-family: var(--serif);
  font-variation-settings: "opsz" 144, "wght" 600;
  float: left;
  font-size: 3.6rem;
  line-height: 0.78;
  padding: 0.08em 0.12em 0 0;
  color: var(--accent);
}

.about-facts {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: clamp(1.25rem, 3vw, 2rem);
  align-self: start;
}
.about-facts h3 { margin: 0 0 1rem; color: var(--secondary); }
.about-facts dl { margin: 0; }
.about-facts dl > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
}
.about-facts dl > div:first-child { border-top: 0; padding-top: 0; }
.about-facts dt {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
}
.about-facts dd { margin: 0; font-size: 0.95rem; }

/* ---------- visit ---------- */

.visit-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
}
@media (min-width: 760px) {
  .visit-grid { grid-template-columns: repeat(2, 1fr); }
}

.visit-block h3 { margin: 0 0 0.7rem; color: var(--secondary); }

.big-phone { margin: 0 0 0.6rem; }
.big-phone a {
  font-family: var(--serif);
  font-variation-settings: "opsz" 72, "wght" 600;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  color: var(--accent);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
}
.big-phone a:hover { color: #551713; border-color: #551713; }

.visit-block address {
  font-style: normal;
  font-family: var(--serif);
  font-variation-settings: "opsz" 40, "wght" 400;
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 0.6rem;
}

.small { font-size: 0.88rem; color: var(--ink-soft); margin: 0; max-width: 44ch; }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-bottom: 0.7rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--rule);
  font-weight: 400;
}
.hours th { color: var(--ink); width: 45%; }
.hours td { color: var(--ink-soft); }
.hours .closed td { color: var(--accent); }
.hours .closed th { color: var(--accent); }

.areas {
  list-style: none;
  margin: 0 0 0.7rem;
  padding: 0;
  font-size: 0.92rem;
}
.areas li {
  padding: 0.34rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
}

.closing {
  margin: clamp(3rem, 7vw, 5rem) 0 0;
  font-family: var(--serif);
  font-variation-settings: "opsz" 100, "wght" 400;
  font-style: italic;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  line-height: 1.15;
  color: var(--accent);
  max-width: 30ch;
  text-wrap: balance;
}

/* ---------- footer ---------- */

.sitefoot {
  padding: clamp(2.5rem, 6vw, 4rem) var(--pad) 5rem;
  border-top: 1px solid var(--rule);
  max-width: var(--maxw);
  margin: 0 auto;
}

.claim-banner {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(90, 94, 58, 0.1);
  border: 1px solid var(--rule);
  padding: 0.5rem 0.8rem;
  border-radius: 2px;
  text-decoration: none;
  margin-bottom: 1.4rem;
}
.claim-banner:hover { color: var(--accent); background: rgba(107, 31, 26, 0.08); }

.footline {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 0.4rem;
}

.attribution {
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0;
}
.attribution a { color: inherit; }

/* ---------- one-shot page-load orchestration ---------- */

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: none; }
}

.reveal {
  animation: riseIn 760ms cubic-bezier(.2,.7,.2,1) both;
}
.r1 { animation-delay: 0ms; }
.r2 { animation-delay: 120ms; }
.r3 { animation-delay: 240ms; }
.r4 { animation-delay: 360ms; }
.r5 { animation-delay: 480ms; }

/* ---------- reduced motion: everything static, all content visible ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar, .reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  body { transition: none; }
}
