:root {
  --bg: #0e1012;
  --bg-elevated: #14171b;
  --card: #15181c;
  --input: #1c2026;
  --border: #2c3238;
  --text: #eef0f2;
  --muted: #9aa3ab;
  --green: #31b147;
  --green-hover: #3bc455;
  --green-dim: rgba(49, 177, 71, 0.16);
  --ink: #061308;
  --danger: #ff6b6b;
  --radius: 16px;
  --header-h: 68px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--green); }

.skip-link {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 100;
  background: var(--green);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: rgba(14, 16, 18, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  flex: 0 0 44px;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 0.92rem;
  line-height: 1.15;
  white-space: nowrap;
}

.nav-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  position: relative;
  content: "";
}

.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  background: #121518;
  border-bottom: 1px solid var(--border);
  padding: 12px 16px 18px;
  flex-direction: column;
  gap: 6px;
}

.site-nav.is-open { display: flex; }

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 10px;
  border-radius: 10px;
}

.site-nav a:hover { background: var(--green-dim); color: #fff; }

.site-nav .btn { text-align: center; }

.header-actions { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.btn:focus-visible,
.nav-toggle:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--green);
  color: var(--ink);
}

.btn-primary:hover { background: var(--green-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: #3a424a;
}

.btn-ghost:hover {
  border-color: var(--green);
  color: #fff;
}

.btn-block { width: 100%; }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(14,16,18,0.28) 0%, rgba(14,16,18,0.18) 32%, rgba(14,16,18,0.78) 72%, #0e1012 100%),
    linear-gradient(90deg, rgba(14,16,18,0.55) 0%, rgba(14,16,18,0.15) 55%, rgba(14,16,18,0.2) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 36px 0 48px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 7vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero .lede {
  margin: 0 0 22px;
  color: #d5dbe0;
  font-size: 1.05rem;
  max-width: 32ch;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  margin-bottom: 28px;
  max-width: 640px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lead {
  margin: 0;
  color: var(--muted);
}

.steps {
  display: grid;
  gap: 16px;
}

.step,
.vehicle-card,
.hours-card,
.faq-list details,
.apply-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step { padding: 22px 20px; }

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--green-dim);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Inventory */
.inventory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}

.filter-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  min-height: 44px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.filter-btn:hover { border-color: var(--green); }

.filter-btn.is-active {
  background: var(--green);
  color: var(--ink);
  border-color: var(--green);
}

.vehicle-grid {
  display: grid;
  gap: 18px;
}

.vehicle-card { overflow: hidden; display: flex; flex-direction: column; }
.vehicle-card[hidden] { display: none; }

.vehicle-media { position: relative; }

.badge-arrived {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  background: var(--green);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
}

.vehicle-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 2.15 / 1;
  object-fit: cover;
  object-position: center;
  background: #111;
}

.vehicle-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.vehicle-body h3 {
  margin: 0 0 6px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.vehicle-km {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}

.tags span {
  border: 1px solid var(--border);
  background: var(--input);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #d5dbe0;
}

.vehicle-body .btn { margin-top: auto; }

/* Winter promo */
.promo {
  padding: 24px 0 8px;
}

.promo-banner {
  background:
    linear-gradient(135deg, rgba(49, 177, 71, 0.16), rgba(14, 16, 18, 0.2) 46%, #15181c),
    var(--card);
  border: 1px solid #2f6a3c;
  border-radius: 20px;
  padding: 28px 22px;
}

.promo-banner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.promo-price {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 700;
  color: #d8f5dd;
}

.promo-copy {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 46ch;
}

/* FAQ */
.faq-list { display: grid; gap: 10px; }

.faq-list details { padding: 0 18px; }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--green);
  font-weight: 700;
}

.faq-list details[open] summary::after { content: "–"; }

.faq-list details p {
  margin: 0 0 18px;
  color: var(--muted);
}

/* Hours */
.hours-card {
  padding: 8px 4px;
  overflow: hidden;
}

.hours-card table {
  width: 100%;
  border-collapse: collapse;
}

.hours-card th,
.hours-card td {
  text-align: left;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.hours-card tr:last-child th,
.hours-card tr:last-child td { border-bottom: 0; }

.hours-card th { color: #dce1e6; font-weight: 600; }
.hours-card td { color: var(--muted); font-weight: 500; }

.hours-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  background: #0b0d0f;
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-brand {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
}

.footer-brand p,
.site-footer p {
  color: var(--muted);
  margin: 0 0 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links a {
  color: #d5dbe0;
  text-decoration: none;
  font-weight: 600;
}

.footer-links a:hover { color: var(--green); }

.footnote {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.86rem;
}

/* Apply / inner pages */
.page-hero {
  padding: 36px 0 8px;
}

.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-hero .lede { margin: 0 0 8px; font-size: 1.05rem; color: #d5dbe0; }
.page-hero .sub,
.page-hero .intro { margin: 0 0 8px; color: var(--muted); }
.page-hero .intro { margin-top: 12px; max-width: 62ch; }

.apply-layout {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 72px;
}

form.apply-form,
.thanks-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 18px 22px;
}

.form-section { padding: 20px 0; }
.form-section + .form-section { border-top: 1px solid var(--border); }

.form-section h2 {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
}

.section-help {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr; gap: 14px; }

label, .label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #dce1e6;
}

.req { color: var(--green); }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239aa3ab' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-dim);
}

.radios { display: flex; flex-wrap: wrap; gap: 10px; }

.radios label {
  flex: 1 1 120px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  background: var(--input);
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.radios input { accent-color: var(--green); }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px 0 16px;
  font-size: 0.92rem;
  color: #cfd5da;
  font-weight: 400;
}

.consent input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  accent-color: var(--green);
}

.consent a { color: var(--green); }

.fine { margin: 4px 0 14px; color: var(--muted); font-size: 0.86rem; }

.notice {
  background: var(--green-dim);
  border-radius: 12px;
  padding: 12px 14px;
  color: #d5e8d8;
  font-size: 0.9rem;
  margin: 0 0 8px;
}

button[type="submit"] {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 15px 18px;
  min-height: 52px;
  cursor: pointer;
}

button[type="submit"]:hover { background: var(--green-hover); }
button[disabled] { opacity: .7; cursor: wait; }

.error {
  display: none;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,107,107,.12);
  color: #ffd2d2;
  font-size: 0.92rem;
}

.error.show { display: block; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.thanks-wrap {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
}

.thanks-card {
  width: min(520px, calc(100% - 32px));
  margin: 36px auto 64px;
  padding: 32px 24px;
  text-align: center;
}

.thanks-card img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fff;
  margin: 0 auto 16px;
}

.thanks-card h1 {
  color: var(--green);
  font-size: 1.7rem;
  margin: 0 0 12px;
}

.thanks-card p { color: #d5dbe0; margin: 0 0 12px; }
.thanks-card .btn { margin-top: 8px; }

@media (min-width: 520px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 1fr 1fr 1fr; }
}

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  form.apply-form { padding: 8px 24px 26px; }
}

@media (min-width: 980px) {
  :root { --header-h: 76px; }

  .brand-text { font-size: 1rem; }
  .brand img { width: 48px; height: 48px; flex-basis: 48px; }

  .nav-toggle { display: none; }

  .site-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 0;
    background: transparent;
    border: 0;
  }

  .site-nav a { padding: 8px 12px; font-size: 0.9rem; }

  .site-nav .btn {
    display: none;
  }

  .header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .header-actions .btn { min-height: 44px; padding: 10px 16px; }

  .vehicle-grid { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { max-width: 16ch; }
}

@media (max-width: 979px) {
  body.nav-open { overflow: hidden; }
}
