/* Shared styles for the service pages and generated car pages
   (/auto-repair/, /detailing/, /cars/<slug>/). Same tokens as index.html. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0c0c0d;
  --surface:   #141416;
  --border:    rgba(255,255,255,.07);
  --muted:     #3a3a3f;
  --text-lo:   #6b6b72;
  --text-mid:  #a8a8b3;
  --text-hi:   #e8e8ec;
  --white:     #f2f2f4;
  --accent:    #c41c1c;
  --accent-lo: rgba(196,28,28,.12);

  --font-body: 'Outfit', system-ui, sans-serif;
  --font-cond: 'Barlow Condensed', system-ui, sans-serif;
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --ease-out:    cubic-bezier(.22,1,.36,1);
  --nav-h: 88px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
[hidden] { display: none !important; }
img { max-width: 100%; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }

/* ─── Nav ─────────────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  padding: 0 2.5rem;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(12,12,13,.85);
  border-bottom: 1px solid var(--border);
}
.nav-logo { height: 70px; width: auto; display: block; filter: drop-shadow(0 0 12px rgba(196,28,28,.5)); }
.nav-links { display: flex; align-items: center; gap: 2.25rem; margin-left: auto; list-style: none; }
.nav-links a {
  font-size: .8125rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.nav-cta {
  padding: .5rem 1.25rem; background: var(--accent); color: var(--white);
  border-radius: 4px; font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #e02020; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; margin-left: auto; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--text-mid); border-radius: 2px; }
.mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(12,12,13,.97);
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-cond); font-size: 2rem; font-weight: 700; text-transform: uppercase;
  color: var(--text-mid); text-decoration: none; letter-spacing: .05em;
}
.mobile-nav-close { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--text-mid); cursor: pointer; }

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 1.75rem;
  font-family: var(--font-body); font-size: .875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border-radius: 4px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .25s var(--ease-spring);
}
.btn-primary { background: var(--accent); color: var(--white); border: none; }
.btn-primary:hover { background: #e02020; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-mid); border: 1px solid rgba(255,255,255,.14); font-weight: 500; }
.btn-ghost:hover { color: var(--white); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ─── Page header ─────────────────────────────────────────────────── */
.page-hero { padding: calc(var(--nav-h) + 3.5rem) 0 4rem; border-bottom: 1px solid var(--border); }
.page-hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.breadcrumb { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-lo); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--text-lo); text-decoration: none; }
.breadcrumb a:hover { color: var(--text-mid); }
.breadcrumb span { color: var(--accent); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
h1.page-title {
  font-family: var(--font-cond); font-size: clamp(2.5rem, 5.5vw, 4.25rem); font-weight: 900;
  line-height: .95; text-transform: uppercase; color: var(--white); margin-bottom: 1.25rem;
}
.lead { font-size: 1.0625rem; color: var(--text-mid); line-height: 1.75; max-width: 52ch; margin-bottom: 2rem; }

/* ─── Sections ────────────────────────────────────────────────────── */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading {
  font-family: var(--font-cond); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 1rem;
}
.section-intro { color: var(--text-mid); max-width: 60ch; margin-bottom: 2.75rem; }
.note { font-size: .8125rem; color: var(--text-lo); margin-top: 1.25rem; }

/* Price / service cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px;
  background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.card { background: var(--bg); padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.section.alt .card { background: #101012; }
.card.featured { box-shadow: inset 0 2px 0 var(--accent); }
.card-tag {
  align-self: flex-start; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--white); padding: .2rem .55rem; border-radius: 2px; margin-bottom: .875rem;
}
.card h3 {
  font-family: var(--font-cond); font-size: 1.375rem; font-weight: 700; text-transform: uppercase;
  color: var(--white); letter-spacing: .02em; margin-bottom: .375rem;
}
.price { font-family: var(--font-cond); font-size: 1.875rem; font-weight: 700; color: var(--white); line-height: 1.1; }
.price small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--text-lo); letter-spacing: .04em; }
.card p { font-size: .875rem; color: var(--text-lo); line-height: 1.7; margin-top: .75rem; }
.card ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .45rem; }
.card li { font-size: .875rem; color: var(--text-mid); padding-left: 1.25rem; position: relative; }
.card li::before { content: ''; position: absolute; left: 0; top: .6em; width: .5rem; height: 2px; background: var(--accent); }

/* Add-on price list */
.price-list { list-style: none; border-top: 1px solid var(--border); max-width: 720px; }
.price-list li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border); color: var(--text-mid);
}
.price-list strong { font-family: var(--font-cond); font-size: 1.25rem; color: var(--white); white-space: nowrap; }

/* Photo placeholders — swap each .photo-slot for an <img> once pictures are ready */
.photo-slot {
  aspect-ratio: 4 / 3; border: 2px dashed rgba(255,255,255,.14); border-radius: 8px;
  background: rgba(255,255,255,.02);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem;
  color: var(--text-lo); font-size: .8125rem; text-align: center; padding: 1rem;
}
.photo-slot svg { opacity: .5; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.photo-grid .photo-slot { aspect-ratio: 1 / 1; }

/* Real photo in a page hero (replaces a .photo-slot) */
.hero-photo { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); display: block; }

/* Before / after pairs */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.ba-pair { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .75rem; }
.ba-images { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.ba-img { position: relative; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 4; }
.ba-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-label {
  position: absolute; top: .5rem; left: .5rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(12,12,13,.8); color: var(--text-mid); padding: .2rem .5rem; border-radius: 2px;
}
.ba-label.after { background: var(--accent); color: var(--white); }
.ba-pair figcaption { font-size: .875rem; color: var(--text-mid); padding: .75rem .25rem .25rem; }
@media (max-width: 768px) { .ba-grid { grid-template-columns: 1fr; } }

/* Why-us list */
.checks { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 3rem; }
.checks li { display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; }
.checks .tick {
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent-lo); border: 1px solid rgba(196,28,28,.3);
  display: flex; align-items: center; justify-content: center;
}
.checks strong { display: block; color: var(--text-hi); font-weight: 600; margin-bottom: .2rem; }
.checks span { font-size: .875rem; color: var(--text-lo); }

/* FAQ */
.faq { max-width: 820px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--text-hi); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 1.25rem; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--text-mid); margin-top: .75rem; font-size: .9375rem; }

/* Call-to-action band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: 2.5rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.cta-band h2 { font-family: var(--font-cond); font-size: 2rem; font-weight: 800; text-transform: uppercase; color: var(--white); line-height: 1; }
.cta-band p { color: var(--text-mid); margin-top: .5rem; }

/* ─── Car detail page ─────────────────────────────────────────────── */
.car-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: start; }
.gallery-main {
  aspect-ratio: 4 / 3; background: #0f0f11; border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; margin-top: .75rem; }
.thumbs button { border: 2px solid transparent; border-radius: 4px; overflow: hidden; padding: 0; background: none; cursor: pointer; aspect-ratio: 4 / 3; }
.thumbs button.active { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.car-panel { position: sticky; top: calc(var(--nav-h) + 1.5rem); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 2rem; }
.status-badge { display: inline-block; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--white); padding: .25rem .625rem; border-radius: 2px; background: #1a6b3c; margin-bottom: 1rem; }
.status-badge.pending { background: #92400e; }
.status-badge.sold { background: var(--muted); }
.car-panel h1 { font-family: var(--font-cond); font-size: 2.25rem; font-weight: 800; text-transform: uppercase; color: var(--white); line-height: 1; margin-bottom: 1rem; }
.car-panel .price { font-size: 2.5rem; margin-bottom: 1.5rem; }
.spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .9rem; }
.spec-table th, .spec-table td { text-align: left; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.spec-table th { color: var(--text-lo); font-weight: 500; width: 45%; }
.spec-table td { color: var(--text-hi); }
.car-panel .actions > * { flex: 1; }
.perk { font-size: .8125rem; color: var(--text-lo); margin-top: 1.25rem; line-height: 1.6; }

/* ─── Footer ──────────────────────────────────────────────────────── */
footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; padding-bottom: 2.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.footer-logo { height: 32px; width: auto; margin-bottom: 1rem; }
.footer-nap { font-size: .875rem; color: var(--text-lo); line-height: 1.8; font-style: normal; }
.footer-nap a { color: var(--text-mid); text-decoration: none; }
.footer-col-title { font-size: .6875rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 1rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .875rem; color: var(--text-lo); text-decoration: none; }
.footer-links a:hover { color: var(--text-mid); }
.footer-bottom { font-size: .75rem; color: var(--text-lo); }

/* ─── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .page-hero-grid, .car-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .car-panel { position: static; }
}
@media (max-width: 768px) {
  :root { --nav-h: 70px; }
  nav { padding: 0 1.25rem; }
  .nav-logo { height: 52px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 1.25rem; }
  .page-hero { padding: calc(var(--nav-h) + 2rem) 0 3rem; }
  .section { padding: 3.5rem 0; }
  .checks { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 1.75rem 1.25rem; }
  .car-panel { padding: 1.5rem 1.25rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 400px) {
  .container { padding: 0 1rem; }
  .actions > * { width: 100%; }
}
