/* Pro Automotive Services — shared styles (all pages).
   The 3D showroom on the home page adds showroom.css. */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url('fonts/archivo-latin-var.woff2') format('woff2-variations'), url('fonts/archivo-latin-var.woff2') format('woff2');
}

:root {
  --bg: #f3f2ee;
  --bg-alt: #eae8e2;
  --bg-panel: #faf9f6;
  --ink: #121212;
  --ink-2: #57564f; /* 6.6:1 on --bg */
  --ink-3: #6c6b65; /* 5.0:1 on --bg */
  --line: #d8d6cf;
  --line-strong: #121212;
  --danger: #a3261b;
  --wa: #1f7a4d;
  --gutter: 48px;
  --header-h: 84px;
  --wrap: 1344px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --kb: 0px;
  --vvh: 100dvh;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
address { font-style: normal; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.ico { width: 18px; height: 18px; flex: none; }

.skip-link {
  position: fixed; z-index: 100; left: 12px; top: -60px; padding: 12px 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 20; left: 0; right: 0; top: 0;
  height: var(--header-h);
  padding: env(safe-area-inset-top) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(243, 242, 238, 0.94);
  border-bottom: 1px solid var(--line);
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease);
}
@supports (backdrop-filter: blur(1px)) {
  .site-header { background: rgba(243, 242, 238, 0.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
}
/* Home page: clear over the showroom, solid once the page scrolls. */
.site-header--home:not(.is-solid) {
  background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none;
  pointer-events: none;
}
.site-header--home:not(.is-solid) > * { pointer-events: auto; }
.brand {
  white-space: nowrap;
  font-stretch: 125%; font-weight: 720; font-size: 15px; letter-spacing: 0.17em;
  text-decoration: none; text-transform: uppercase; line-height: 1; padding: 10px 0;
}
.nav { display: flex; gap: 4px; transition: transform 480ms var(--ease); }
.nav-link, .menu-btn {
  appearance: none; background: none; border: 0; cursor: pointer; text-decoration: none;
  font-size: 12.5px; font-weight: 560; letter-spacing: 0.15em; text-transform: uppercase;
  padding: 12px 14px; line-height: 1; position: relative;
}
.nav-link::after {
  content: ''; position: absolute; left: 14px; right: calc(14px + 0.15em); bottom: 5px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 260ms var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:last-child { margin-right: -14px; }
.menu-btn, .m-links { display: none; }
.m-link {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 10px; text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---------- Buttons and links ---------- */
.btn {
  appearance: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 22px;
  font-size: 12.5px; font-weight: 620; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1;
  border: 1px solid var(--line-strong); border-radius: 2px;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease);
}
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:hover { background: #2a2a28; }
.btn--secondary { background: transparent; color: var(--ink); }
.btn--secondary:hover { background: rgba(18, 18, 18, 0.05); }
.btn--block { width: 100%; }
.btn .arrow { width: 14px; height: 10px; flex: none; }
.text-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 560; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
}
.text-link:hover { text-decoration-thickness: 2px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; align-items: center; }
.cta-row .btn + .btn { margin-left: -12px; }

/* ---------- Sections ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 112px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow {
  margin: 0 0 16px; font-size: 11.5px; font-weight: 620; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3);
}
.section-title {
  margin: 0; max-width: 18ch;
  font-stretch: 118%; font-weight: 680; font-size: clamp(30px, 3.6vw, 52px);
  line-height: 1; letter-spacing: -0.012em; text-transform: uppercase;
}
.section-title--sm { font-size: clamp(24px, 2.4vw, 32px); }
.section-lede { margin: 22px 0 0; max-width: 52ch; color: var(--ink-2); font-size: 17px; }
.section-note { margin: 30px 0 0; max-width: 60ch; color: var(--ink-2); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; align-items: start; }
.prose p { margin: 0 0 18px; font-size: 17.5px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.prose p:first-child { color: var(--ink); }

/* Service cards */
.svc-grid { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.svc-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }
.svc-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 26px 30px 0; border-bottom: 1px solid var(--line);
}
.svc-card + .svc-card { padding-left: 26px; border-left: 1px solid var(--line); }
.svc-num { font-size: 11.5px; font-weight: 620; letter-spacing: 0.12em; color: var(--ink-3); }
.svc-name { margin: 18px 0 12px; font-stretch: 112%; font-weight: 640; font-size: 21px; line-height: 1.15; }
.svc-name a { text-decoration: none; }
.svc-name a::after { content: ''; position: absolute; inset: 0; } /* whole card is the link */
.svc-card p { margin: 0 0 22px; color: var(--ink-2); font-size: 15.5px; }
.svc-more {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 620; letter-spacing: 0.14em; text-transform: uppercase;
}
.svc-more .arrow { width: 14px; height: 10px; transition: transform 220ms var(--ease); }
.menu-links .arrow { width: 16px; height: 12px; }
.svc-card:hover .svc-more .arrow { transform: translateX(4px); }
.svc-card:hover .svc-name a { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.svc-card:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
.svc-card a:focus-visible { outline: none; }

/* How we work */
.steps-list { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 32px; }
.steps-list li { border-top: 1px solid var(--ink); padding-top: 22px; }
.step-num { font-size: 11.5px; font-weight: 620; letter-spacing: 0.12em; color: var(--ink-3); }
.steps-list h3 { margin: 14px 0 10px; font-stretch: 110%; font-size: 19px; font-weight: 640; line-height: 1.2; }
.steps-list p { margin: 0; color: var(--ink-2); font-size: 15.5px; }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-stretch: 108%; font-size: 18px; font-weight: 580; line-height: 1.3;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq-item summary i::before, .faq-item summary i::after {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1.4px; background: currentColor; transition: transform 240ms var(--ease);
}
.faq-item summary i::after { transform: rotate(90deg); }
.faq-item[open] summary i::after { transform: rotate(0deg); }
.faq-item p { margin: -6px 0 24px; max-width: 62ch; color: var(--ink-2); }

/* Contact details */
.details { margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.details > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.details dt { font-size: 11px; font-weight: 620; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.details dd { margin: 0; font-size: 16px; line-height: 1.5; }
.details a { text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9e7e1; padding: 72px 0 40px; }
.site-footer a { color: #fff; text-underline-offset: 3px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.foot-brand { margin: 0 0 14px; font-stretch: 125%; font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; }
.site-footer p, .site-footer address { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: #c9c7c0; }
.foot-h { margin: 0 0 14px; font-size: 11px; font-weight: 620; letter-spacing: 0.18em; text-transform: uppercase; color: #9a988f; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin: 0 0 8px; }
.site-footer .fineprint { margin: 48px auto 0 !important; padding-top: 24px; border-top: 1px solid #333; font-size: 12.5px !important; color: #9a988f !important; }
.fineprint a { color: #c9c7c0; }

/* ---------- Quick contact bar (phones) ---------- */
.action-bar { display: none; }

/* ---------- Service pages ---------- */
.page main { padding-top: var(--header-h); }
.crumbs ol { list-style: none; margin: 0; padding: 26px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--ink-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; color: var(--line); }
.crumbs a { color: var(--ink-2); text-underline-offset: 3px; }
.page-hero { padding: 48px 0 72px; }
.page main.page-hero { padding-top: calc(var(--header-h) + 72px); min-height: 70vh; }
.page-title {
  margin: 0; max-width: 16ch;
  font-stretch: 118%; font-weight: 680; font-size: clamp(34px, 4.6vw, 64px);
  line-height: 0.98; letter-spacing: -0.014em; text-transform: uppercase;
}
.page-lede { margin: 26px 0 0; max-width: 56ch; font-size: 19px; line-height: 1.55; color: var(--ink-2); }
.page-hero .muted { margin: 18px 0 0; }
.page-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 80px; padding-bottom: 104px; padding-top: 56px; }
.page-body::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--ink); }
.page-body .prose h2 {
  margin: 48px 0 18px; font-stretch: 116%; font-weight: 660; font-size: 24px; line-height: 1.1; text-transform: uppercase; letter-spacing: -0.005em;
}
.page-body .prose h2:first-child { margin-top: 0; }
.page-body .prose p:first-child { color: var(--ink-2); }
.tick-list { list-style: none; margin: 0 0 18px; padding: 0; max-width: 62ch; }
.tick-list li { position: relative; padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); font-size: 16.5px; }
.tick-list li::before { content: ''; position: absolute; left: 2px; top: 21px; width: 12px; height: 1.4px; background: var(--ink); }
.page-aside { position: relative; }
.aside-card { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-panel); border: 1px solid var(--line); padding: 30px; }
.aside-title { margin: 0 0 10px; font-stretch: 116%; font-size: 20px; font-weight: 660; text-transform: uppercase; line-height: 1.1; }
.aside-card > p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; }
.aside-card .btn + .btn { margin-top: 8px; }
.aside-card .details { margin: 24px 0 8px; }
.aside-card .details > div { grid-template-columns: 96px 1fr; }
.aside-card .details dd { font-size: 14.5px; }

/* ---------- Tablets ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 36px; }
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .svc-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .svc-card:nth-child(even) { padding-left: 26px; }
  .svc-grid--3 { grid-template-columns: 1fr; }
  .svc-grid--3 .svc-card { padding-left: 0 !important; border-left: 0 !important; }
  .steps-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .page-body { grid-template-columns: 1fr; gap: 48px; }
  .aside-card { position: static; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  :root { --gutter: 20px; --header-h: calc(58px + env(safe-area-inset-top)); }
  body { font-size: 15.5px; }
  .site-header { padding-left: var(--gutter); padding-right: 8px; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .m-links { display: flex; }
  .brand { font-size: 13px; letter-spacing: 0.16em; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(28px, 8.4vw, 38px); }
  .section-lede { font-size: 16px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .prose p { font-size: 16.5px; }
  .svc-grid { grid-template-columns: 1fr; margin-top: 36px; }
  .svc-card, .svc-card + .svc-card, .svc-card:nth-child(even) { padding: 22px 0 24px; border-left: 0; }
  .svc-name { margin: 10px 0 8px; font-size: 20px; }
  .steps-list { grid-template-columns: 1fr; gap: 26px; margin-top: 36px; }
  .faq-item summary { font-size: 16.5px; padding: 18px 0; }
  .details > div { grid-template-columns: 96px 1fr; }
  .btn { border-radius: 12px; min-height: 52px; padding: 0 16px; font-size: 12px; letter-spacing: 0.1em; }
  .btn:active { transform: scale(0.98); }
  .cta-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .cta-row .btn + .btn { margin-left: 0; }
  .cta-row .text-link { justify-self: start; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .page-hero { padding: 28px 0 48px; }
  .page-title { font-size: clamp(32px, 9.6vw, 44px); }
  .page-lede { font-size: 17px; }
  .page-body { padding-top: 40px; padding-bottom: 72px; }
  .page-body .prose h2 { font-size: 21px; margin-top: 40px; }
  .aside-card { padding: 22px; border-radius: 16px; }

  /* Quick contact bar: appears once the main buttons have scrolled away */
  .action-bar {
    position: fixed; z-index: 15; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.3fr 1fr; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 249, 246, 0.94); border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform 360ms var(--ease);
  }
  @supports (backdrop-filter: blur(1px)) {
    .action-bar { background: rgba(250, 249, 246, 0.8); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
  }
  .action-bar.is-visible { transform: none; }
  .action-bar .btn { min-height: 48px; }
}
@media (max-width: 380px) {
  .m-link span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; transition-delay: 0s !important; }
}
@media (forced-colors: active) {
  .btn { border: 1px solid CanvasText; }
}
@media print {
  .site-header, .action-bar, .app { display: none !important; }
  .page main { padding-top: 0; }
}
