/* RJ Automotive: warm neighborhood shop */

:root {
  --cream: #f6ecd9;
  --paper: #fbf5ea;
  --kraft: #e7d3ad;
  --board: #2f3324;
  --board-line: #4a5038;
  --ink: #33251a;
  --ink-soft: #5a4636;
  --rust: #a8462a;
  --rust-dark: #8c3920;
  --olive: #586428;
  --mustard: #e2ad3f;
  --chalk: #f3ead6;

  --display: "Bricolage Grotesque", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }

h1, h2, h3 {
  font-family: var(--display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.015em;
}

p { margin: 0; }

a { color: var(--rust-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

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

.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: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 12px; }

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

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 2.5px solid var(--ink);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  line-height: 1.1;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

.btn-call {
  background: var(--rust);
  color: var(--paper);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn-call:hover { background: var(--rust-dark); color: var(--paper); }

.btn-outline {
  background: var(--paper);
  color: var(--ink);
}
.btn-outline:hover { background: var(--kraft); color: var(--ink); }

.btn-cream {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 1.15rem;
  padding: 14px 28px;
}
.btn-cream:hover { background: var(--mustard); color: var(--ink); }

.btn-small { min-height: 46px; padding: 8px 16px; font-size: 1rem; box-shadow: 2px 2px 0 var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}
.logo-rj {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  border: 2px solid var(--ink);
  transform: rotate(-6deg);
}
.logo-word {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.nav { display: none; }

.call-long { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 40px 0 48px;
  background:
    radial-gradient(circle at 1px 1px, rgba(51, 37, 26, .07) 1px, transparent 1.5px) 0 0 / 22px 22px,
    var(--cream);
}

.hero-grid { display: grid; gap: 40px; }

.kicker {
  display: inline-block;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(2.5rem, 10.5vw, 4.9rem);
  font-weight: 800;
  margin-bottom: 18px;
}

.underlined { position: relative; display: inline-block; color: var(--rust-dark); }
.underlined svg {
  position: absolute;
  left: -2%;
  bottom: -0.16em;
  width: 104%;
  height: 0.28em;
  fill: none;
  stroke: var(--mustard);
  stroke-width: 6;
  stroke-linecap: round;
}

.lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 26px;
}

.hero .btn-row .btn { flex: 1 1 220px; }

.rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 22px;
  font-size: 1.05rem;
}
.stars { display: inline-flex; gap: 2px; }
.stars svg { width: 20px; height: 20px; fill: var(--mustard); stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }

/* Shop ticket */

.tag {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 18px;
  padding: 44px 24px 24px;
  box-shadow: 6px 6px 0 var(--kraft);
  transform: rotate(1.2deg);
  max-width: 440px;
}
.tag::before {
  /* dashed inner stitch, like a paper shop tag */
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed rgba(51, 37, 26, .35);
  border-radius: 12px;
  pointer-events: none;
}
.tag-hole {
  position: absolute;
  top: 16px; left: 50%;
  width: 18px; height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  background: var(--cream);
  border: 2.5px solid var(--ink);
}
.tag-string {
  position: absolute;
  top: -78px; left: 50%;
  width: 50px; height: 100px;
  margin-left: -22px;
  fill: none;
  stroke: var(--olive);
  stroke-width: 3;
  stroke-linecap: round;
  display: none;
}
.tag-title {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--rust-dark);
  text-align: center;
  margin-bottom: 14px;
}
.tag-list { margin: 0; }
.tag-list > div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 2px dotted rgba(51, 37, 26, .3);
}
.tag-list dt {
  font-family: var(--display);
  font-weight: 700;
  color: var(--olive);
}
.tag-list dd { margin: 0; font-weight: 600; }
.tag-list .muted { font-weight: 400; color: var(--ink-soft); }
.tag-list a { color: var(--ink); }

/* ---------- Wavy dividers ---------- */

.wave { display: block; width: 100%; height: 28px; margin: -1px 0; }
.wave-into-board { background: var(--cream); fill: var(--board); }
.wave-out-board { background: var(--kraft); fill: var(--board); }

/* ---------- Services: chalkboard menu ---------- */

.board {
  position: relative;
  background: var(--board);
  color: var(--chalk);
  padding: 48px 0 56px;
}

.board-head { max-width: 640px; margin-bottom: 32px; }
.board h2 {
  font-size: clamp(2.2rem, 8vw, 3.6rem);
  color: var(--chalk);
  margin-bottom: 14px;
}
.board-head p { color: #d9cfb8; font-size: 1.1rem; }

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 2px dashed var(--board-line);
}
.menu li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 2px dashed var(--board-line);
}
.num {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--mustard);
  transform: rotate(-4deg);
  padding-top: 2px;
}
.menu h3 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--chalk);
  margin-bottom: 6px;
}
.menu p { color: #d9cfb8; }

.doodle {
  fill: none;
  stroke: var(--mustard);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.doodle-wrench {
  display: none;
  position: absolute;
  right: 40px;
  top: 40px;
  width: 110px;
  height: 110px;
  transform: rotate(12deg);
  opacity: .9;
}

/* ---------- Why RJ ---------- */

.why {
  background: var(--kraft);
  padding: 52px 0 64px;
}

.why-grid { display: grid; gap: 36px; }

.why h2 {
  font-size: clamp(2.1rem, 7.5vw, 3.3rem);
  max-width: 12ch;
}

.why-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.stamp {
  flex: none;
  width: 128px;
  transform: rotate(-10deg);
  color: var(--rust-dark);
}
.stamp svg { display: block; width: 100%; height: auto; }
.stamp-ring { fill: none; stroke: currentColor; stroke-width: 4; }
.stamp-ring.thin { stroke-width: 2; stroke-dasharray: 5 5; }
.stamp-arc { font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: 2.1px; fill: currentColor; }
.stamp-big { font-family: var(--display); font-weight: 800; font-size: 50px; fill: currentColor; }
.stamp-small { font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 4px; fill: currentColor; }

.reasons {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: reason;
}
.reasons li {
  position: relative;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 14px 4px 14px 4px;
  padding: 22px 22px 22px 66px;
  counter-increment: reason;
}
.reasons li::before {
  content: counter(reason);
  position: absolute;
  left: 18px; top: 20px;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--mustard);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
}
.reasons li:nth-child(1) { transform: rotate(-0.8deg); }
.reasons li:nth-child(2) { transform: rotate(0.6deg); }
.reasons li:nth-child(3) { transform: rotate(-0.4deg); }
.reasons h3 { font-size: 1.4rem; margin-bottom: 6px; }
.reasons p { color: var(--ink-soft); }

/* ---------- Visit ---------- */

.visit {
  background: var(--cream);
  padding: 56px 0;
  border-top: 2px solid var(--ink);
}

.visit-grid { display: grid; gap: 32px; }

.visit h2 {
  font-size: clamp(2.1rem, 7.5vw, 3.3rem);
  margin-bottom: 24px;
}

.hours {
  width: 100%;
  max-width: 460px;
  border-collapse: collapse;
  font-size: 1.1rem;
  margin-bottom: 24px;
}
.hours th, .hours td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 2px dotted rgba(51, 37, 26, .35);
}
.hours th { font-family: var(--display); font-weight: 700; width: 45%; }
.hours td { font-weight: 600; }
.hours tr:last-child td { color: var(--ink-soft); font-weight: 400; }

.contact-lines { display: grid; gap: 10px; margin-bottom: 26px; }
.contact-lines p { overflow-wrap: anywhere; }
.contact-lines .label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--olive);
}

.visit .btn-row .btn { flex: 1 1 200px; }

.map { margin: 0; }
.map-frame {
  border: 2.5px solid var(--ink);
  border-radius: 16px 6px 16px 6px;
  overflow: hidden;
  background: var(--kraft);
  box-shadow: 6px 6px 0 var(--olive);
}
.map iframe { display: block; width: 100%; height: 320px; border: 0; }
.map figcaption { margin-top: 14px; font-size: .98rem; color: var(--ink-soft); }
.map figcaption a { font-weight: 700; }

/* ---------- CTA ---------- */

.cta {
  background: var(--rust);
  color: var(--paper);
  padding: 52px 0;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.cta h2 { font-size: clamp(2rem, 7.5vw, 3.2rem); color: var(--paper); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: #e9dcc4;
  padding: 36px 0 40px;
  font-size: .98rem;
}
.footer-grid { display: grid; gap: 14px; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--paper); }
.site-footer a { color: var(--mustard); }
.site-footer a:hover { color: var(--paper); }
.copy { color: #c7b89f; }

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .call-short { display: none; }
  .call-long { display: inline; }
  .menu { grid-template-columns: 1fr 1fr; column-gap: 48px; border-top: 0; }
  .menu li:nth-child(-n+2) { border-top: 2px dashed var(--board-line); }
  .stamp { width: 150px; }
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.6fr; align-items: start; }
  .copy { grid-column: 1 / -1; }
}

/* ---------- Desktop ---------- */

@media (min-width: 960px) {
  .wrap { padding: 0 40px; }

  .nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
    margin-right: 12px;
  }
  .nav a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover { border-bottom-color: var(--rust); color: var(--ink); }

  .header-row { min-height: 76px; }

  .hero { padding: 84px 0 96px; }
  .hero-grid {
    grid-template-columns: 1.45fr 1fr;
    align-items: center;
    gap: 64px;
  }
  .hero .btn-row .btn { flex: 0 0 auto; }
  .tag { justify-self: end; width: 100%; padding: 52px 30px 30px; transform: rotate(2.5deg); margin-top: 40px; }
  .tag-string { display: block; }

  .board { padding: 72px 0 88px; }
  .board-head { margin-bottom: 44px; }
  .menu { grid-template-columns: repeat(3, 1fr); column-gap: 44px; }
  .menu li:nth-child(-n+3) { border-top: 2px dashed var(--board-line); }
  .menu li { grid-template-columns: 1fr; gap: 10px; padding: 28px 0 30px; }
  .doodle-wrench { display: block; }

  .why { padding: 80px 0 96px; }
  .why-grid { grid-template-columns: 0.9fr 1.5fr; gap: 64px; align-items: start; }
  .why-intro { flex-direction: column; align-items: flex-start; gap: 36px; position: sticky; top: 120px; }
  .stamp { width: 190px; margin-left: 20px; }
  .reasons { gap: 26px; }
  .reasons li { padding: 28px 30px 28px 84px; }
  .reasons li::before { left: 24px; top: 26px; width: 40px; height: 40px; font-size: 1.2rem; }
  .reasons li:nth-child(2) { margin-left: 48px; margin-right: -12px; }
  .reasons li:nth-child(3) { margin-left: 16px; }
  .reasons h3 { font-size: 1.6rem; }

  .visit { padding: 88px 0; }
  .visit-grid { grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
  .visit .btn-row .btn { flex: 0 0 auto; }
  .map iframe { height: 440px; }

  .cta { padding: 64px 0; }
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
