/* ==========================================================================
   Jon's Service Center  |  styles.css
   Everything tunable lives in :root. Change a value there and it updates
   every page.
   ========================================================================== */

:root {
  /* Brand */
  --red: #CE2026;
  --red-dark: #A3181D;
  --black: #000000;
  --asphalt: #161616;     /* dark section backgrounds */
  --ink: #1C1C1C;         /* body text */
  --steel: #6A6A6A;       /* secondary text */
  --concrete: #F1F0ED;    /* light section backgrounds */
  --line: #DDDBD6;        /* hairline borders on light */
  --white: #FFFFFF;

  /* Type */
  --font-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-md: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.625rem;
  --text-2xl: 2.25rem;
  --text-3xl: 3.25rem;
  --text-hero: clamp(2.75rem, 7vw, 5.5rem);

  /* Layout */
  --max: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --radius: 4px;
  --stripe: 6px;          /* the red rule used across the site */

  --shadow: 0 10px 30px rgba(0,0,0,.18);
}

/* --------------------------------------------------------------------------
   Reset-ish
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); line-height: 1; letter-spacing: -.005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Headings */
.h-display { font-size: var(--text-hero); font-weight: 800; text-transform: uppercase; }
.h-section { font-size: clamp(2.25rem, 4.5vw, var(--text-3xl)); font-weight: 700; text-transform: uppercase; }
.h-card { font-size: var(--text-xl); font-weight: 700; text-transform: uppercase; }
.lead { font-size: var(--text-lg); line-height: 1.5; max-width: 60ch; }
.muted { color: var(--steel); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.5rem;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-red { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn svg { width: 1.1em; height: 1.1em; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--black); color: var(--white);
  font-size: var(--text-sm);
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 2.25rem; gap: 1rem; }
.topbar span { white-space: nowrap; }
.topbar a { text-decoration: none; color: var(--white); }
.topbar a:hover { text-decoration: underline; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: var(--stripe) solid var(--red);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 5.25rem; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: var(--ink); }
.brand img { width: 72px; height: 72px; object-fit: contain; }
.brand span { white-space: nowrap; font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; line-height: .95; }
.brand span small { display: block; font-size: .85rem; font-weight: 600; color: var(--steel); letter-spacing: .06em; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  padding: .55rem .7rem; text-decoration: none; white-space: nowrap;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .02em;
  border-bottom: 3px solid transparent;
}
.nav a:hover { border-bottom-color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); color: var(--red); }
.nav .btn { margin-left: .75rem; padding: .7rem 1.1rem; font-size: 1.1rem; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: var(--radius);
  padding: .45rem .6rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }

@media (max-width: 1180px) { .brand span { display: none; } .brand img { width: 80px; height: 80px; } }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: var(--stripe) solid var(--red); box-shadow: var(--shadow);
    padding: .5rem var(--gutter) 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .9rem .25rem; border-bottom: 1px solid var(--line); font-size: 1.35rem; }
  .nav a[aria-current="page"], .nav a:hover { border-bottom-color: var(--line); }
  .nav .btn { margin: 1rem 0 0; border-bottom: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .hide-sm, .topbar .hide-xs { display: none; }
  .topbar .wrap > span:last-child { white-space: normal; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero (home): full-bleed black and white shop photo, text at the bottom left
   -------------------------------------------------------------------------- */
.hero {
  position: relative; color: var(--white); background: var(--asphalt);
  min-height: min(82vh, 760px); display: flex; align-items: flex-end; overflow: hidden;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.45) 45%, rgba(0,0,0,.86) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: clamp(7rem, 16vw, 11rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { max-width: 12ch; }
@media (max-width: 700px) {
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,.45) 0%, rgba(0,0,0,.62) 40%, rgba(0,0,0,.9) 100%); }
  .hero-img { object-position: 62% 45%; }
}
.hero .lead { color: rgba(255,255,255,.88); margin: 1.25rem 0 1.75rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 2.5rem; font-size: var(--text-sm); color: rgba(255,255,255,.75); }
.hero-meta strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; font-weight: 700; }

/* --------------------------------------------------------------------------
   Booking bar: three tiles
   -------------------------------------------------------------------------- */
.booking { background: var(--red); color: var(--white); }
.booking .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.booking a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem;
  padding: 1.6rem 1.5rem; text-decoration: none; color: inherit;
  border-left: 1px solid rgba(255,255,255,.25);
  transition: background-color .15s ease;
}
.booking a:first-child { border-left: none; }
.booking a:hover { background: var(--red-dark); }
.booking h3 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.booking p { margin: .25rem 0 0; font-size: var(--text-sm); opacity: .92; }
.booking svg { width: 28px; height: 28px; flex: none; }
@media (max-width: 760px) {
  .booking .wrap { grid-template-columns: 1fr; width: 100%; }
  .booking a { border-left: none; border-top: 1px solid rgba(255,255,255,.25); padding-inline: var(--gutter); }
  .booking a:first-child { border-top: none; }
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { padding: var(--section) 0; }
.section-dark { background: var(--asphalt); color: var(--white); }
.section-concrete { background: var(--concrete); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.25rem; flex-wrap: wrap; }
.section-head p { margin: .5rem 0 0; max-width: 56ch; }
.section-dark .section-head p { color: rgba(255,255,255,.75); }

/* Service tiles (home) */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tile {
  position: relative; display: block; text-decoration: none; color: var(--white);
  aspect-ratio: 3 / 4; overflow: hidden; background: var(--asphalt); border-radius: var(--radius);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.85) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.25rem; border-left: var(--stripe) solid var(--red); margin: 1.25rem; }
.tile h3 { font-size: 1.75rem; font-weight: 700; text-transform: uppercase; }
.tile p { margin: .35rem 0 0; font-size: var(--text-sm); color: rgba(255,255,255,.85); }
.tile:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .tile img { transition: none; } .tile:hover img { transform: none; } }
@media (max-width: 900px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } .tile { aspect-ratio: 16 / 10; } }

/* Facts row */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.fact { border-top: var(--stripe) solid var(--red); padding-top: 1.25rem; }
.fact h3 { font-size: var(--text-2xl); font-weight: 800; text-transform: uppercase; }
.fact p { margin: .5rem 0 0; color: var(--steel); max-width: 34ch; }
.section-dark .fact p { color: rgba(255,255,255,.72); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 1.5rem; } }

/* Quote */
.quote { max-width: 48ch; }
.quote blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1.15; }
.quote cite { display: block; margin-top: 1.25rem; font-style: normal; color: var(--steel); }
.quote cite strong { color: var(--ink); }
.section-dark .quote cite { color: rgba(255,255,255,.7); }
.section-dark .quote cite strong { color: var(--white); }
.quote-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.quote-row img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   Interior pages
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; background: var(--asphalt); color: var(--white); overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.page-hero h1 { font-size: clamp(2.75rem, 6vw, 4.75rem); font-weight: 800; text-transform: uppercase; max-width: 14ch; }
.page-hero .lead { color: rgba(255,255,255,.85); margin: 1.25rem 0 1.5rem; }
.page-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.page-hero .hero-actions { gap: .75rem; }
@media (max-width: 860px) { .page-hero .wrap { grid-template-columns: 1fr; } .page-hero img { aspect-ratio: 16 / 9; order: -1; } }

.crumbs { font-size: var(--text-sm); color: rgba(255,255,255,.65); margin-bottom: 1rem; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--white); }
.crumbs span { margin: 0 .5rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 4rem; align-items: start; }
.two-col.wide-left { grid-template-columns: 1.3fr 1fr; }
@media (max-width: 860px) { .two-col, .two-col.wide-left { grid-template-columns: 1fr; gap: 2rem; } }

.prose { max-width: 62ch; }
.prose h2 { font-size: var(--text-2xl); text-transform: uppercase; margin-bottom: .75rem; }
.prose h3 { font-size: var(--text-xl); text-transform: uppercase; margin: 1.75rem 0 .5rem; }
.prose p + h2 { margin-top: 2rem; }

/* Checklists */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem; }
.checklist li { position: relative; padding-left: 1.6rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem;
  background: var(--red); border-radius: 1px; transform: rotate(45deg);
}
@media (max-width: 560px) { .checklist { grid-template-columns: 1fr; } }

/* Steps (only used where the content is a real sequence) */
.steps { counter-reset: step; display: grid; gap: 1.5rem; }
.steps li { display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem; align-items: start; }
.steps li::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 800; font-size: 2.25rem; line-height: 1; color: var(--red);
  border-top: var(--stripe) solid var(--red); padding-top: .5rem;
}
.steps h3 { font-size: var(--text-xl); text-transform: uppercase; margin-bottom: .35rem; }
.steps p { margin: 0; color: var(--steel); }
.section-dark .steps p { color: rgba(255,255,255,.72); }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: .25rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; color: var(--red); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.1rem; max-width: 62ch; color: var(--steel); }

/* Info cards (contact) */
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.info { background: var(--white); border: 1px solid var(--line); border-top: var(--stripe) solid var(--red); padding: 1.5rem; border-radius: var(--radius); }
.info h3 { font-size: 1.1rem; text-transform: uppercase; color: var(--steel); letter-spacing: .04em; margin-bottom: .5rem; }
.info p, .info a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; text-decoration: none; margin: 0; line-height: 1.15; }
.info a:hover { color: var(--red); }
.info small { display: block; margin-top: .5rem; font-family: var(--font-body); font-size: var(--text-sm); color: var(--steel); font-weight: 400; }
@media (max-width: 860px) { .info-grid { grid-template-columns: 1fr; } }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: .35rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink);
  border: 1px solid #BDBBB5; border-radius: var(--radius); background: var(--white);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(206,32,38,.18); }
.form textarea { min-height: 140px; resize: vertical; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.map { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); filter: grayscale(.2); }

/* CTA band */
.cta { background: var(--red); color: var(--white); }
.cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem; padding: 2.5rem 0; }
.cta h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); text-transform: uppercase; }
.cta p { margin: .35rem 0 0; opacity: .9; }
.cta .btn-dark { background: var(--black); border-color: var(--black); }
.cta .btn-ghost { border-color: rgba(255,255,255,.6); }

/* Photo strip */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photos img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); width: 100%; }
@media (max-width: 760px) { .photos { grid-template-columns: 1fr; } }

/* Legal pages (privacy, terms) */
.page-hero-compact .wrap { grid-template-columns: 1fr; padding: clamp(2.5rem, 5vw, 4rem) 0; }
.page-hero-compact h1 { font-size: clamp(2.5rem, 5vw, 4rem); max-width: none; }
.page-hero-compact .lead { max-width: 70ch; margin-bottom: 1rem; }
.updated { font-size: var(--text-sm); color: rgba(255,255,255,.6); margin: 0; }
.legal-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 3rem 4rem; align-items: start; }
.legal-body .prose { max-width: 68ch; }
.legal-body .prose h2 { font-size: var(--text-xl); margin: 2rem 0 .6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.legal-body .prose h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-body .prose p, .legal-body .prose li { color: #3A3A3A; }
.legal-body .prose a { color: var(--red); }
.legal-body .checklist { grid-template-columns: 1fr; margin: .5rem 0 1rem; }
.legal-aside { position: sticky; top: 7rem; display: grid; gap: 1rem; }
.legal-aside .info a { font-size: 1.4rem; }
.legal-aside .info small a { color: var(--steel); font-family: var(--font-body); font-size: inherit; font-weight: 400; }
.legal-nav { display: grid; }
.legal-nav a { padding: .7rem 0; border-top: 1px solid var(--line); text-decoration: none; font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; }
.legal-nav a:last-child { border-bottom: 1px solid var(--line); }
.legal-nav a[aria-current="page"] { color: var(--red); }
.legal-nav a:hover { color: var(--red); }
@media (max-width: 860px) { .legal-body { grid-template-columns: 1fr; } .legal-aside { position: static; } }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.78); border-top: var(--stripe) solid var(--red); font-size: var(--text-sm); }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding: 3.5rem 0 2.5rem; }
.site-footer h3 { font-size: 1.1rem; text-transform: uppercase; color: var(--white); letter-spacing: .04em; margin-bottom: .85rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.site-footer li { margin-bottom: .45rem; }
.site-footer p { margin: 0 0 .5rem; }
.site-footer .brand { color: var(--white); margin-bottom: 1rem; }
.site-footer .brand img { background: var(--white); border-radius: 50%; padding: 4px; }
.site-footer .brand span small { color: rgba(255,255,255,.6); }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.14); }
.site-footer .legal .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 1.25rem 0; font-size: var(--text-xs); color: rgba(255,255,255,.5); }
.site-footer .legal-links a { color: rgba(255,255,255,.7); }
@media (max-width: 860px) { .site-footer .wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .wrap { grid-template-columns: 1fr; } }
