/* ============================================================
   KEN 24/7 MOBILE DIESEL & AUTO REPAIRS
   Faded 70s print palette · hand-marked type · hard color blocks
   ============================================================ */

:root {
  --bg:      #efe6d0;
  --bg-2:    #e4d8bd;
  --ink:     #3a2f1a;
  --ink-soft:#5c4d2e;
  --a:       #a67c00;   /* mustard */
  --b:       #6b7a3a;   /* avocado */
  --c:       #c04e1a;   /* burnt sienna */
  --paper:   #f6efdd;

  --rule:    rgba(58, 47, 26, 0.28);
  --rule-2:  rgba(58, 47, 26, 0.14);

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

  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 3rem);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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-variation-settings: "opsz" 14;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.06; margin: 0; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.35rem, 1.4rem + 4.6vw, 4.6rem); font-variation-settings: "opsz" 120, "SOFT" 40; }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.6vw, 3.1rem); font-variation-settings: "opsz" 90; }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-variation-settings: "opsz" 40; }
p  { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }

/* --- grain over everything, very subtle ------------------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 60;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='0.32'/%3E%3C/svg%3E");
}

/* --- focus ------------------------------------------------- */
: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(--paper);
  padding: 0.6rem 1rem; z-index: 99;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* ============================================================
   SCROLL PROGRESS — a printed rule that fills as you read
   ============================================================ */
.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--rule-2);
  z-index: 70;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--a), var(--c) 55%, var(--b));
  transform: scaleX(0);
  transform-origin: 0 50%;
}
@supports (animation-timeline: scroll()) {
  .progress span {
    animation: fill linear both;
    animation-timeline: scroll(root block);
  }
}
@keyframes fill { to { transform: scaleX(1); } }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(7px);
  border-bottom: 1px solid var(--rule);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 68px;
  flex-wrap: wrap;
  padding-block: 0.5rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; margin-right: auto;
}
.brand-mark {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--bg);
  padding: 0.42rem 0.5rem;
  border-radius: 3px;
  line-height: 1;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-text strong { font-family: var(--serif); font-size: 1.02rem; font-weight: 700; }
.brand-text em { font-style: normal; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }

.topnav { display: flex; gap: 1.35rem; }
.topnav a {
  text-decoration: none;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.topnav a:hover { border-bottom-color: var(--c); }

.call-btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--c);
  color: #fff6e8;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  min-height: 44px;
  border-radius: 3px;
  border: 1px solid rgba(58,47,26,0.35);
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.call-btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.call-btn .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ffe9a8;
  box-shadow: 0 0 0 0 rgba(255,233,168,0.8);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,233,168,0.75); }
  70%  { box-shadow: 0 0 0 9px rgba(255,233,168,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,233,168,0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: clamp(2.5rem, 6vw, 5.5rem) 0 clamp(3rem, 7vw, 6rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c);
  margin: 0 0 0.9rem;
}
.hero h1 { margin-bottom: 1.1rem; }

/* hand-drawn scribble underline */
.scribble {
  background: none;
  color: inherit;
  position: relative;
  white-space: nowrap;
  padding-bottom: 0.12em;
}
.scribble::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: -0.06em;
  height: 0.42em;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 22' preserveAspectRatio='none'%3E%3Cpath d='M3 15 C 40 4, 72 19, 108 10 S 168 3, 197 13' fill='none' stroke='%23c04e1a' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M8 19 C 52 11, 96 21, 140 14 S 180 9, 195 17' fill='none' stroke='%23a67c00' stroke-width='2.6' stroke-linecap='round' opacity='0.75'/%3E%3C/svg%3E");
}

/* --- audio-visualizer bars under the hero name ------------ */
.viz {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
  margin: 0 0 1.5rem;
  max-width: 420px;
}
.viz span {
  flex: 1 1 auto;
  min-width: 3px;
  background: var(--b);
  height: 22%;
  border-radius: 1px;
  transform-origin: 50% 100%;
  animation: bar 1.5s ease-in-out infinite alternate;
}
.viz span:nth-child(3n)   { background: var(--a); }
.viz span:nth-child(4n+1) { background: var(--c); }
.viz span:nth-child(1)  { animation-duration: 1.15s; animation-delay: -0.10s; }
.viz span:nth-child(2)  { animation-duration: 1.62s; animation-delay: -0.55s; }
.viz span:nth-child(3)  { animation-duration: 1.28s; animation-delay: -0.90s; }
.viz span:nth-child(4)  { animation-duration: 1.85s; animation-delay: -0.25s; }
.viz span:nth-child(5)  { animation-duration: 1.40s; animation-delay: -1.20s; }
.viz span:nth-child(6)  { animation-duration: 1.70s; animation-delay: -0.70s; }
.viz span:nth-child(7)  { animation-duration: 1.22s; animation-delay: -0.35s; }
.viz span:nth-child(8)  { animation-duration: 1.95s; animation-delay: -1.05s; }
.viz span:nth-child(9)  { animation-duration: 1.33s; animation-delay: -0.15s; }
.viz span:nth-child(10) { animation-duration: 1.58s; animation-delay: -0.80s; }
.viz span:nth-child(11) { animation-duration: 1.18s; animation-delay: -1.35s; }
.viz span:nth-child(12) { animation-duration: 1.78s; animation-delay: -0.45s; }
.viz span:nth-child(13) { animation-duration: 1.45s; animation-delay: -0.95s; }
.viz span:nth-child(14) { animation-duration: 1.26s; animation-delay: -0.05s; }
.viz span:nth-child(15) { animation-duration: 1.88s; animation-delay: -0.60s; }
.viz span:nth-child(16) { animation-duration: 1.36s; animation-delay: -1.15s; }
.viz span:nth-child(17) { animation-duration: 1.66s; animation-delay: -0.30s; }
.viz span:nth-child(18) { animation-duration: 1.20s; animation-delay: -0.85s; }
.viz span:nth-child(19) { animation-duration: 1.92s; animation-delay: -1.40s; }
.viz span:nth-child(20) { animation-duration: 1.42s; animation-delay: -0.20s; }
.viz span:nth-child(21) { animation-duration: 1.55s; animation-delay: -0.75s; }
.viz span:nth-child(22) { animation-duration: 1.24s; animation-delay: -1.25s; }
.viz span:nth-child(23) { animation-duration: 1.80s; animation-delay: -0.40s; }
.viz span:nth-child(24) { animation-duration: 1.38s; animation-delay: -1.00s; }
.viz span:nth-child(25) { animation-duration: 1.72s; animation-delay: -0.12s; }
.viz span:nth-child(26) { animation-duration: 1.30s; animation-delay: -0.65s; }
.viz span:nth-child(27) { animation-duration: 1.90s; animation-delay: -1.30s; }
.viz span:nth-child(28) { animation-duration: 1.48s; animation-delay: -0.50s; }
.viz span:nth-child(29) { animation-duration: 1.16s; animation-delay: -0.88s; }
.viz span:nth-child(30) { animation-duration: 1.60s; animation-delay: -0.28s; }
@keyframes bar {
  from { height: 14%; opacity: 0.72; }
  to   { height: 100%; opacity: 1; }
}

.lede { font-size: 1.06rem; max-width: 46ch; color: var(--ink-soft); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 1.6rem 0 2rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.35rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 3px;
  border: 1px solid var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn-primary { background: var(--ink); color: var(--bg); box-shadow: 3px 3px 0 var(--a); }
.btn-primary:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--a); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: 3px 3px 0 var(--rule); }
.btn-ghost:hover { background: var(--paper); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--rule); }

.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 0.9rem;
  border-top: 1px solid var(--rule);
  padding-top: 1.3rem;
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-family: var(--serif); font-size: 1.12rem; }
.hero-facts span { font-size: 0.85rem; color: var(--ink-soft); }

.hero-photo { margin: 0; }
.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 var(--a);
  filter: saturate(0.82) contrast(1.04) sepia(0.14);
}
.hero-photo figcaption,
.about-photos figcaption,
.visit-photo figcaption {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-top: 0.6rem;
}

/* ============================================================
   SERVICES — the job list
   ============================================================ */
.services {
  background: var(--b);
  color: #f7f2e2;
  padding: clamp(3.2rem, 8vw, 7rem) 0;
}
.services .eyebrow { color: #ffe9a8; }
.services .scribble::after { filter: brightness(1.5) saturate(0.7); }
.sec-head { max-width: 62ch; margin-bottom: clamp(2rem, 5vw, 3.2rem); }
.sec-sub { color: rgba(247,242,226,0.86); margin-top: 1rem; }

.menu {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}
.menu-col h3 {
  border-bottom: 2px solid rgba(247,242,226,0.55);
  padding-bottom: 0.55rem;
  margin-bottom: 1.1rem;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}
.item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1.25rem;
  padding: 0.85rem 0;
  border-bottom: 1px dotted rgba(247,242,226,0.32);
  align-items: baseline;
}
.item:last-child { border-bottom: 0; }
.item .name { display: flex; flex-direction: column; gap: 0.2rem; font-weight: 600; font-size: 0.98rem; }
.item .name em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.83rem;
  line-height: 1.45;
  color: rgba(247,242,226,0.78);
}
.item .price {
  font-family: var(--mono);
  font-size: 0.86rem;
  white-space: nowrap;
  color: #ffe9a8;
}
.menu-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(247,242,226,0.4);
  max-width: 68ch;
  font-size: 0.92rem;
  color: rgba(247,242,226,0.9);
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  background: var(--bg-2);
  padding: clamp(3.2rem, 8vw, 7rem) 0;
}
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: step;
}
.steps li {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: clamp(1.3rem, 3vw, 2rem);
  box-shadow: 5px 5px 0 var(--rule);
}
.step-n {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--c);
  margin-bottom: 0.7rem;
}
.steps h3 { margin-bottom: 0.6rem; }
.steps p { font-size: 0.94rem; color: var(--ink-soft); }

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  background: var(--bg);
  padding: clamp(3.2rem, 8vw, 7rem) 0;
}
.about-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 3.5rem); }
.about-copy h2 { margin-bottom: 1.2rem; }
.about-copy p { color: var(--ink-soft); }
.house-line {
  margin: 1.8rem 0 0;
  padding: 1.2rem 0 0 1.2rem;
  border-left: 4px solid var(--a);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem);
  line-height: 1.35;
  color: var(--ink);
}
.house-line cite {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c);
}
.about-photos { display: grid; gap: 1.6rem; }
.about-photos figure { margin: 0; }
.about-photos img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--ink);
  filter: saturate(0.82) contrast(1.04) sepia(0.14);
}
.about-photos figure:first-child img { box-shadow: 7px 7px 0 var(--b); }
.about-photos figure:last-child img  { box-shadow: 7px 7px 0 var(--c); }

/* ============================================================
   VISIT — hours / address / call
   ============================================================ */
.visit {
  background: var(--a);
  color: #2c2410;
  padding: clamp(3.2rem, 8vw, 7rem) 0;
}
.visit .eyebrow { color: #4a2a06; }
.visit .scribble::after { filter: brightness(0.72) saturate(1.3); }

.footer-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.4rem, 3vw, 2rem);
}
.card {
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: clamp(1.3rem, 3vw, 1.9rem);
  box-shadow: 6px 6px 0 rgba(58,47,26,0.35);
}
.card h3 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--mono);
  font-weight: 600;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}
.hours { list-style: none; margin: 0; padding: 0; }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.42rem 0;
  border-bottom: 1px dotted var(--rule);
  font-size: 0.9rem;
}
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { font-family: var(--mono); font-size: 0.82rem; color: #4a3a12; }
.card-note { font-size: 0.86rem; color: var(--ink-soft); margin-top: 1rem; }
.card-place address {
  font-style: normal;
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.4;
  margin-bottom: 0.4rem;
}
.text-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--c);
  padding-bottom: 2px;
}
.text-link:hover { background: rgba(192,78,26,0.12); }

.big-phone {
  display: block;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + 1.4vw, 1.9rem);
  text-decoration: none;
  color: var(--c);
  letter-spacing: -0.01em;
  padding: 0.35rem 0;
  min-height: 44px;
}
.big-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.area {
  list-style: none; margin: 1.2rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.4rem;
}
.area li {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  background: rgba(107,122,58,0.16);
  border: 1px solid rgba(107,122,58,0.4);
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}

.visit-photo { margin: clamp(2rem, 5vw, 3.2rem) 0 0; }
.visit-photo img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 8px 8px 0 rgba(58,47,26,0.4);
  filter: saturate(0.82) contrast(1.04) sepia(0.14);
}
.visit-photo figcaption { color: #4a3a12; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-foot {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(2.2rem, 5vw, 3.4rem) 0 5.5rem;
}
.foot-in { display: grid; gap: 1rem; }
.foot-brand { display: flex; flex-direction: column; gap: 0.3rem; }
.foot-brand strong { font-family: var(--serif); font-size: 1.1rem; letter-spacing: 0.01em; }
.foot-brand span { font-size: 0.86rem; color: rgba(239,230,208,0.72); }
.foot-brand a {
  font-family: var(--mono);
  font-size: 1.05rem;
  color: #ffe9a8;
  text-decoration: none;
  margin-top: 0.35rem;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.foot-brand a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-line {
  font-size: 0.84rem;
  color: rgba(239,230,208,0.62);
  border-top: 1px solid rgba(239,230,208,0.2);
  padding-top: 1rem;
  margin: 0;
}

.claim-wrap { margin-top: 1.4rem; }
.claim-banner {
  display: inline-block;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(239,230,208,0.78);
  background: rgba(239,230,208,0.08);
  border: 1px solid rgba(239,230,208,0.22);
  border-radius: 2px;
  padding: 0.45rem 0.7rem;
  text-decoration: none;
}
.claim-banner:hover { color: var(--bg); background: rgba(239,230,208,0.16); }

.attribution {
  position: fixed;
  bottom: 0.5rem;
  right: 0.75rem;
  font-size: 0.7rem;
  opacity: 0.55;
  font-family: var(--sans);
  z-index: 65;
}
.attribution a { color: var(--ink); text-decoration: none; }
.attribution a:hover { text-decoration: underline; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 620px) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
  .about-photos { grid-template-columns: 1fr 1fr; align-items: start; }
  .about-photos figure:last-child { margin-top: 2.5rem; }
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .menu { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1.1fr 0.9fr; }
  .footer-cards { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: 1fr auto; align-items: end; }
  .foot-line { border-top: 0; padding-top: 0; text-align: right; max-width: 30ch; }
}

@media (max-width: 859px) {
  .topnav { display: none; }
  .topbar-in { min-height: 62px; }
}

@media (max-width: 420px) {
  .brand-text em { display: none; }
  .call-btn { font-size: 0.8rem; padding: 0.6rem 0.75rem; }
}

/* ============================================================
   REDUCED MOTION — everything static, nothing hidden
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .viz span { animation: none; height: 46%; opacity: 0.9; }
  .call-btn .dot { animation: none; }
  .progress span { transform: scaleX(1); animation: none; }
  .btn, .call-btn { transition: none; }
}
