/* ============================================================
   A's Mobile Auto Services
   Palette: desaturated 70s photo — faded print, grainy, warm.
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e6dabd;
  --paper:   #f6efdd;
  --ink:     #3a2f1a;
  --ink-soft:#6a5c3c;
  --a:       #a67c00;   /* mustard */
  --b:       #6b7a3a;   /* avocado */
  --c:       #c04e1a;   /* burnt sienna */
  --rule:    rgba(58, 47, 26, 0.22);
  --rule-soft: rgba(58, 47, 26, 0.12);
  --shadow:  0 1px 0 rgba(58,47,26,.08), 0 12px 28px -18px rgba(58,47,26,.45);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans:  "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --gutter: clamp(1.25rem, 5vw, 5rem);
  --spine-w: 4.5rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:      #1c1810;
    --bg-2:    #241f14;
    --paper:   #262019;
    --ink:     #ece0c4;
    --ink-soft:#b3a483;
    --a:       #d9a92c;
    --b:       #9aab5c;
    --c:       #e2703a;
    --rule:    rgba(236, 224, 196, 0.24);
    --rule-soft: rgba(236, 224, 196, 0.12);
    --shadow:  0 1px 0 rgba(0,0,0,.4), 0 14px 30px -18px rgba(0,0,0,.8);
  }
}

*, *::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.96rem + 0.2vw, 1.075rem);
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay — the whole page sits under a low-opacity film. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
@media (prefers-color-scheme: dark) {
  body::before { opacity: 0.075; }
}

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

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

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

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

/* ── Scroll progress strip ─────────────────────────────────── */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 900;
  background: var(--rule-soft);
}
.progress__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--b), var(--a) 55%, var(--c));
  transform-origin: 0 50%;
  transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress__fill {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
  @keyframes fill { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) {
  .progress__fill { transform: scaleX(1); opacity: 0.5; }
}

/* ── Top bar ───────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--gutter);
  padding-left: calc(var(--gutter) + var(--spine-w));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(9px);
  border-bottom: 1px solid var(--rule-soft);
}
.topbar__brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.topbar__mark {
  font-family: var(--serif);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--c);
}
.topbar__name {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.topbar__nav {
  display: none;
  gap: 1.4rem;
  font-size: 0.86rem;
}
.topbar__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}
.topbar__nav a:hover { color: var(--ink); border-bottom-color: var(--a); }

.topbar__call {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--bg);
  min-height: 44px;
  justify-content: center;
}
.topbar__call:hover { background: var(--c); border-color: var(--c); color: #fff; }
.topbar__call-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.75;
}
.topbar__call-num { font-weight: 700; font-size: 0.95rem; }

/* ── Vertical spine headline ───────────────────────────────── */
.spine {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--spine-w);
  margin: 0;
  padding: 5.5rem 0 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-right: 1px solid var(--rule);
  background: var(--bg-2);
  z-index: 700;
}
.spine__text {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.15rem, 0.9rem + 1.1vw, 1.85rem);
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
}
.spine__meta {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--a);
  white-space: nowrap;
}

main, .site-footer { margin-left: var(--spine-w); }

/* ── Shared bits ───────────────────────────────────────────── */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--b);
  margin: 0 0 1.1rem;
}
@media (prefers-color-scheme: dark) { .eyebrow { color: var(--b); } }

h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.9rem;
  text-wrap: balance;
}
h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.12rem;
  margin: 0 0 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.5rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn--primary { background: var(--c); border-color: var(--c); color: #fff; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); }
.btn--wide { width: 100%; max-width: 22rem; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--rule);
}
.hero__inner { max-width: 46rem; }
.hero__lede {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.35rem, 1rem + 2.1vw, 2.35rem);
  line-height: 1.24;
  letter-spacing: -0.01em;
  margin: 0 0 1.6rem;
  text-wrap: pretty;
}

/* Signature: frequency-bar visualizer under the hero name */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin: 0 0 1.8rem;
  max-width: 30rem;
}
.viz span {
  flex: 1 1 0;
  height: 100%;
  background: var(--a);
  transform-origin: 50% 100%;
  transform: scaleY(0.18);
  border-radius: 1px;
  animation: pulse 1.9s ease-in-out infinite;
}
.viz span:nth-child(3n)  { background: var(--b); }
.viz span:nth-child(4n)  { background: var(--c); }
.viz span:nth-child(1)  { animation-delay: -0.05s; }
.viz span:nth-child(2)  { animation-delay: -0.42s; }
.viz span:nth-child(3)  { animation-delay: -0.91s; }
.viz span:nth-child(4)  { animation-delay: -0.23s; }
.viz span:nth-child(5)  { animation-delay: -1.34s; }
.viz span:nth-child(6)  { animation-delay: -0.67s; }
.viz span:nth-child(7)  { animation-delay: -1.11s; }
.viz span:nth-child(8)  { animation-delay: -0.31s; }
.viz span:nth-child(9)  { animation-delay: -0.84s; }
.viz span:nth-child(10) { animation-delay: -1.52s; }
.viz span:nth-child(11) { animation-delay: -0.14s; }
.viz span:nth-child(12) { animation-delay: -0.99s; }
.viz span:nth-child(13) { animation-delay: -0.55s; }
.viz span:nth-child(14) { animation-delay: -1.21s; }
.viz span:nth-child(15) { animation-delay: -0.08s; }
.viz span:nth-child(16) { animation-delay: -0.73s; }
.viz span:nth-child(17) { animation-delay: -1.44s; }
.viz span:nth-child(18) { animation-delay: -0.36s; }
.viz span:nth-child(19) { animation-delay: -1.06s; }
.viz span:nth-child(20) { animation-delay: -0.19s; }
.viz span:nth-child(21) { animation-delay: -0.88s; }
.viz span:nth-child(22) { animation-delay: -1.29s; }
.viz span:nth-child(23) { animation-delay: -0.48s; }
.viz span:nth-child(24) { animation-delay: -1.15s; }
.viz span:nth-child(25) { animation-delay: -0.27s; }

@keyframes pulse {
  0%   { transform: scaleY(0.16); }
  22%  { transform: scaleY(0.92); }
  46%  { transform: scaleY(0.38); }
  68%  { transform: scaleY(0.74); }
  100% { transform: scaleY(0.16); }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
}

.hero__facts {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.hero__facts > div { display: flex; flex-direction: column; gap: 0.15rem; }
.hero__facts dt {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero__facts dd { margin: 0; font-weight: 600; font-size: 0.98rem; }

.hero__figure { margin: 0; }
.hero__figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.82) contrast(1.04) sepia(0.08);
}
.hero__figure figcaption {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ── Service sheet ─────────────────────────────────────────── */
.sheet {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
}
.sheet__head { max-width: 48rem; margin-bottom: 2.5rem; }
.sheet__head p { color: var(--ink-soft); margin: 0; }

.menu {
  display: grid;
  gap: 2.5rem;
}
.menu__group { min-width: 0; }
.menu__group h3 {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.55rem;
  margin-bottom: 0.9rem;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem 1.25rem;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--rule);
}
.item__name { font-size: 0.97rem; }
.item__name em {
  display: block;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.item__price {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--a);
  white-space: nowrap;
}
@media (prefers-color-scheme: dark) { .item__price { color: var(--a); } }

.sheet__note {
  max-width: 46rem;
  margin: 2.5rem 0 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

/* ── How it works ──────────────────────────────────────────── */
.how {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.how__head { max-width: 44rem; margin-bottom: 2.5rem; }
.how__head p { color: var(--ink-soft); margin: 0; }

.steps {
  list-style: none;
  margin: 0 0 3rem;
  padding: 0;
  display: grid;
  gap: 2rem;
  counter-reset: step;
}
.steps li {
  padding-top: 1.1rem;
  border-top: 2px solid var(--ink);
}
.steps__num {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--c);
  margin-bottom: 0.6rem;
}
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.how__gallery {
  display: grid;
  gap: 1.25rem;
}
.how__gallery figure { margin: 0; }
.how__gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.8) contrast(1.05) sepia(0.1);
}
.how__gallery figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}

/* ── About ─────────────────────────────────────────────────── */
.about {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  background: var(--bg-2);
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: 2.5rem;
}
.about__text { max-width: 44rem; }
.about__text p { color: var(--ink-soft); }
.about__text p:first-of-type::first-letter {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 3.4rem;
  line-height: 0.82;
  float: left;
  padding: 0.1em 0.12em 0 0;
  color: var(--c);
}
.about__side { display: grid; gap: 1.5rem; align-content: start; }
.about__side figure { margin: 0; }
.about__side img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--rule);
  filter: saturate(0.8) contrast(1.05) sepia(0.1);
}
.about__side figcaption {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
}
.quote {
  margin: 0;
  padding: 1.4rem 1.5rem;
  background: var(--paper);
  border-left: 4px solid var(--a);
  box-shadow: var(--shadow);
}
.quote p {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.4;
  margin: 0 0 0.7rem;
}
.quote cite {
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── Visit / footer cards ──────────────────────────────────── */
.visit {
  padding: clamp(2.5rem, 6vw, 5rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.visit__head { max-width: 44rem; margin-bottom: 2.5rem; }
.visit__head p { color: var(--ink-soft); margin: 0; }

.footer-cards {
  display: grid;
  gap: 1.5rem;
}
.card {
  padding: 1.6rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card h3 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1rem;
}
.card__note { font-size: 0.88rem; color: var(--ink-soft); margin: 1rem 0 0; }
.card__note--hint {
  font-size: 0.82rem;
  padding-top: 0.9rem;
  border-top: 1px dotted var(--rule);
}
.card__link {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.card address {
  font-style: normal;
  font-size: 1rem;
  line-height: 1.55;
}
.card__phone {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--ink);
  margin: 0.2rem 0 0;
}
.card__phone:hover { color: var(--c); }

.hours {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.hours th, .hours td {
  text-align: left;
  padding: 0.4rem 0;
  border-bottom: 1px dotted var(--rule);
  font-weight: 400;
}
.hours th { color: var(--ink-soft); font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.06em; }
.hours td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hours tr:last-child th, .hours tr:last-child td { border-bottom: none; }

.pay {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin: 1.1rem 0 0;
}
.pay li {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}

/* ── Closing ───────────────────────────────────────────────── */
.closing {
  padding: clamp(3rem, 8vw, 6rem) var(--gutter);
  text-align: center;
  background: var(--bg-2);
}
.closing__line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 1rem + 1.9vw, 2.2rem);
  line-height: 1.22;
  max-width: 34rem;
  margin: 0 auto 1.8rem;
  text-wrap: balance;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem var(--gutter) 4rem;
  border-top: 1px solid var(--rule);
}
.site-footer__inner { max-width: 52rem; }
.site-footer__line { margin: 0 0 0.5rem; font-size: 0.9rem; }
.site-footer__line a { text-decoration: none; border-bottom: 1px solid currentColor; }
.site-footer__line--small { font-size: 0.82rem; color: var(--ink-soft); }

.claim-banner {
  display: inline-block;
  margin-top: 1.4rem;
  padding: 0.5rem 0.85rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  background: var(--rule-soft);
  border: 1px solid var(--rule);
  border-radius: 2px;
}
.claim-banner:hover { color: var(--ink); background: var(--rule); }

.attribution {
  margin: 0;
  padding: 0 0 1.5rem;
  padding-left: calc(var(--gutter) + var(--spine-w));
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  opacity: 0.55;
}
.attribution a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; }

/* ── Wider screens ─────────────────────────────────────────── */
@media (min-width: 640px) {
  .hero__facts { grid-template-columns: repeat(3, 1fr); }
  .how__gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-cards { grid-template-columns: repeat(2, 1fr); }
  .card--call { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .topbar__nav { display: flex; }
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
  }
  .hero__figure img { aspect-ratio: 3 / 4; }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3.5rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
  .how__gallery { grid-template-columns: repeat(4, 1fr); }
  .about { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(2rem, 5vw, 4rem); }
  .footer-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card--call { grid-column: auto; }
}

@media (min-width: 1200px) {
  .hero__figure img { aspect-ratio: 4 / 5; }
}

/* ── Reduced motion ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz span { animation: none; transform: scaleY(0.42); }
  .viz span:nth-child(2n) { transform: scaleY(0.7); }
  .viz span:nth-child(3n) { transform: scaleY(0.28); }
  .progress__fill { animation: none; transform: scaleX(1); opacity: 0.45; }
  .btn { transition: none; }
}

/* ── Narrow phones: spine becomes a top strip ──────────────── */
@media (max-width: 560px) {
  :root { --spine-w: 0rem; }
  .spine {
    position: static;
    width: auto;
    height: auto;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.6rem var(--gutter);
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }
  .spine__text, .spine__meta { writing-mode: horizontal-tb; transform: none; }
  .spine__text { font-size: 1.15rem; }
  .spine__meta { font-size: 0.58rem; }
  .topbar { padding-left: var(--gutter); }
  .attribution { padding-left: var(--gutter); }
  .topbar__name { display: none; }
}
