/* Elite KC Auto - one stylesheet, no build step. */

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

:root {
  --black: #000000;
  --white: #ffffff;
  --concrete: #eeede9;
  --ink: #141414;
  --graphite: #55575c;
  --line: #d9d8d3;
  --red: #b61c28;
  --red-dark: #8e1620;
  --wrap: 1180px;
  --gutter: 20px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "Archivo", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--red); color: var(--white); padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---- header ---------------------------------------------------------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 26px; height: 19px; fill: var(--red); }
.brand-name { font-weight: 800; font-stretch: 118%; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand-name span { font-weight: 500; font-stretch: 100%; color: var(--graphite); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:hover { color: var(--red); }
.nav-phone { font-weight: 700; font-stretch: 108%; }

.nav-toggle {
  display: none; font: inherit; font-weight: 600; background: none;
  border: 1px solid var(--ink); padding: 6px 12px; cursor: pointer;
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px var(--gutter); border-top: 1px solid var(--line); }
}

/* ---- hero ------------------------------------------------------------ */
.hero {
  position: relative; display: grid; align-items: end;
  min-height: min(86vh, 820px); background: var(--black); color: var(--white);
  overflow: hidden;
}
.hero-pic, .hero-pic img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-pic img { object-fit: cover; object-position: 62% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.35) 48%, rgba(0,0,0,0) 75%),
    linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.65) 100%);
}
.hero-copy { position: relative; z-index: 1; padding: 72px 0 64px; max-width: 760px; margin-left: max(var(--gutter), (100% - var(--wrap)) / 2); }
.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 800; font-stretch: 112%;
  line-height: 1.02; letter-spacing: -0.025em; margin-bottom: 22px; max-width: 14ch;
}
.hero p { font-size: 1.15rem; max-width: 50ch; margin-bottom: 32px; color: rgba(255,255,255,.92); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 640px) {
  .hero { min-height: 0; }
  .hero-pic { position: relative; height: 62vw; }
  .hero-pic img { position: absolute; }
  .hero::after { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.4) 62vw, var(--black) 62vw); }
  .hero-copy { padding: 28px 0 48px; }
  .hero p { font-size: 1.05rem; }
}

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-block; padding: 14px 24px; border-radius: 2px;
  font-weight: 700; font-stretch: 106%; text-decoration: none; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2;
}
.btn-red { background: var(--red); border-color: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn[disabled] { opacity: .6; cursor: default; }

/* ---- sections -------------------------------------------------------- */
.section { padding: 88px 0; }
.section-grey { background: var(--concrete); }
.section-dark { background: var(--black); color: var(--white); }
.section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; font-stretch: 112%;
  margin-bottom: 14px; max-width: 24ch;
}
.lede { font-size: 1.15rem; color: var(--graphite); max-width: 56ch; margin-bottom: 44px; }
.section-dark .lede { color: rgba(255,255,255,.78); }
@media (max-width: 640px) { .section { padding: 60px 0; } .lede { margin-bottom: 32px; } }

/* services: a hairline list, two columns */
.services { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; border-top: 1px solid var(--line); }
.services > div { padding: 26px 0 22px; border-bottom: 1px solid var(--line); }
.services dt { font-weight: 700; font-stretch: 108%; font-size: 1.2rem; margin-bottom: 8px; }
.services dd { margin: 0; color: var(--graphite); max-width: 48ch; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* route: the five steps on one red line */
.route {
  --dot: 14px;
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  position: relative;
}
.route::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(var(--dot) / 2 - 1px);
  height: 3px; background: var(--red);
}
.route li { position: relative; padding-top: 34px; }
.route li::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: var(--dot); height: var(--dot); border-radius: 50%;
  background: var(--concrete); border: 3px solid var(--red);
}
.route li:last-child::before { background: var(--red); }
.route h3 { font-size: 1.1rem; font-stretch: 108%; margin-bottom: 8px; }
.route p { margin: 0; color: var(--graphite); font-size: 0.97rem; }

@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 0; padding-left: 34px; }
  .route::before { left: calc(var(--dot) / 2 - 1px); right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .route li { padding: 0 0 28px; }
  .route li::before { left: -34px; top: 5px; }
  .route li:last-child { padding-bottom: 0; }
}

/* gallery: three photos edge to edge */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--white); }
.gallery figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption {
  position: absolute; left: 18px; bottom: 14px; color: var(--white);
  font-weight: 700; font-stretch: 112%; font-size: 1.05rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } .gallery figure { aspect-ratio: 16 / 10; } }

/* cars: four columns */
.cars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.cars h3 { font-size: 1.15rem; font-stretch: 108%; margin-bottom: 8px; padding-top: 14px; border-top: 3px solid var(--ink); }
.cars p { margin: 0; color: var(--graphite); font-size: 0.97rem; }
@media (max-width: 900px) { .cars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cars { grid-template-columns: 1fr; gap: 24px; } }

/* about */
.about { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.about-text p { max-width: 60ch; font-size: 1.1rem; color: rgba(255,255,255,.88); }
.about-text p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .about { grid-template-columns: 1fr; gap: 16px; } }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.contact .lede { margin-bottom: 32px; }
.details { font-style: normal; }
.details p { margin-bottom: 14px; }
.details a { font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; gap: 40px; } }

.form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .opt { font-weight: 400; color: var(--graphite); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1px solid #b9b8b3; border-radius: 2px; padding: 12px 14px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--red); outline-offset: 1px; }
.field input::placeholder, .field textarea::placeholder { color: #8d8e92; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0; color: var(--red-dark); font-weight: 600; }
.form-note { margin: 0; font-size: 0.9rem; color: var(--graphite); }
.form .btn { justify-self: start; }
.form-done { padding: 24px; border: 1px solid var(--line); border-left: 4px solid var(--red); }
.form-done h3 { font-size: 1.2rem; font-stretch: 108%; margin-bottom: 8px; }
.form-done p { margin: 0; color: var(--graphite); }

/* ---- footer ---------------------------------------------------------- */
.site-foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 0.92rem; color: var(--graphite); }
.foot-row { display: grid; gap: 10px; }
.foot-row p { margin: 0; }
.credits { font-size: 0.82rem; max-width: 80ch; }

/* ---- plain pages (privacy, thanks, 404) -------------------------------- */
.page { padding: 72px 0 96px; }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-stretch: 112%; font-weight: 800; margin-bottom: 18px; }
.page h2 { font-size: 1.3rem; font-stretch: 108%; margin: 36px 0 10px; }
.page p, .page li { color: var(--ink); max-width: 68ch; }
.page ul { padding-left: 20px; }
