:root {
  --bg: #1d1b17;
  --bg-2: #26241f;
  --plate: #2c2a24;
  --plate-edge: #3d3a32;
  --orange: #f47b20;
  --orange-bright: #ff8c33;
  --chrome: #d6d4cc;
  --silver: #b9b6ad;
  --text: #d9d7cf;
  --muted: #97948b;
  --line: rgba(214, 212, 204, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Barlow", Helvetica, Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 {
  font-family: "Staatliches", "Oswald", sans-serif;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.6rem;
  letter-spacing: 0.05em;
  color: var(--chrome);
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; letter-spacing: 0.08em; }

p { margin: 0 0 1rem; }

a { color: var(--orange-bright); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2147483647;
  padding: 0.65rem 1rem;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Homepage opening mark — sweep, tach launch, ignition, then zoom reveal. */
html.site-intro-pending { overflow: hidden; }

.site-intro {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  place-items: center;
  overflow: hidden;
  cursor: pointer;
  background: #090806;
  animation: site-intro-curtain 1850ms linear both;
}

html.site-intro-pending .site-intro { display: grid; }

html.site-intro-pending #cw-bubble-holder,
html.site-intro-pending #cw-widget-holder {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.site-intro-mark {
  position: relative;
  width: min(72vw, 440px);
  will-change: transform, opacity;
  animation: site-intro-logo 1850ms cubic-bezier(0.72, 0, 0.2, 1) both;
}

.site-intro-mark::before {
  content: "";
  position: absolute;
  inset: 12% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 123, 32, 0.34), rgba(214, 212, 204, 0.1) 38%, transparent 72%);
  filter: blur(18px);
  animation: site-intro-glow 1850ms ease-in both;
}

.site-intro-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 30%, rgba(255, 255, 255, 0.16) 42%, rgba(255, 255, 255, 0.94) 49%, rgba(214, 212, 204, 0.2) 56%, transparent 68%);
  -webkit-mask: url("assets/adv-logo-3.png") center / contain no-repeat;
  mask: url("assets/adv-logo-3.png") center / contain no-repeat;
  background-size: 300% 100%;
  background-position: 100% 50%;
  opacity: 0;
  animation: site-intro-sweep 1850ms ease-in-out both;
}

.site-intro-mark img {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  filter: drop-shadow(0 0 12px rgba(214, 212, 204, 0.2)) drop-shadow(0 0 24px rgba(244, 123, 32, 0.16));
  animation: site-intro-ignition 1850ms ease-out both;
}

.site-intro-tach {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 500%;
  max-width: none;
  overflow: visible;
  opacity: 0;
  transform: translate(-50%, -58%) scale(0.88);
  filter: drop-shadow(0 0 14px rgba(244, 123, 32, 0.48));
  animation: site-intro-tach-show 1850ms ease-out both;
}

.site-intro-tach-track,
.site-intro-tach-ticks,
.site-intro-tach-redline,
.site-intro-tach-needle line,
.site-intro-tach-needle circle {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.site-intro-tach-track {
  stroke: rgba(214, 212, 204, 0.42);
  stroke-width: 4;
}

.site-intro-tach-ticks {
  stroke: rgba(238, 236, 228, 0.96);
  stroke-width: 11;
  stroke-linecap: butt;
  stroke-dasharray: 0.65 3.35;
}

.site-intro-tach-redline {
  stroke: #ff7a18;
  stroke-width: 12;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(244, 123, 32, 0.92));
}

.site-intro-tach-needle {
  transform-origin: 120px 124px;
  animation: site-intro-tach-needle 1850ms cubic-bezier(0.18, 0.78, 0.18, 1) both;
}

.site-intro-tach-needle line {
  stroke: #ff7a18;
  stroke-width: 5.5;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px rgba(244, 123, 32, 1));
}

.site-intro-tach-needle circle {
  fill: #f47b20;
  stroke: #d6d4cc;
  stroke-width: 2;
}

.site-intro-tach-needle .site-intro-tach-hub {
  fill: #090806;
  stroke: none;
}

@keyframes site-intro-logo {
  0% { opacity: 0; transform: scale(0.22); }
  12% { opacity: 1; transform: scale(0.25); }
  68% { opacity: 1; transform: scale(0.29); }
  76% { opacity: 1; transform: scale(0.3); }
  95% { opacity: 1; transform: scale(7.5); }
  100% { opacity: 0; transform: scale(9); }
}

@keyframes site-intro-curtain {
  0%, 82% { opacity: 1; }
  100% { opacity: 0; }
}

@keyframes site-intro-glow {
  0% { opacity: 0; transform: scale(0.7); }
  62% { opacity: 0; transform: scale(0.82); }
  69% { opacity: 1; transform: scale(1.28); }
  76% { opacity: 0.52; transform: scale(1.15); }
  100% { opacity: 0; transform: scale(1.5); }
}

@keyframes site-intro-sweep {
  0%, 7% { opacity: 0; background-position: 100% 50%; }
  12% { opacity: 0.82; }
  26% { opacity: 0.9; background-position: 0% 50%; }
  30%, 100% { opacity: 0; background-position: 0% 50%; }
}

@keyframes site-intro-tach-show {
  0%, 27% { opacity: 0; transform: translate(-50%, -58%) scale(0.88); }
  33%, 64% { opacity: 1; transform: translate(-50%, -58%) scale(1); }
  70%, 100% { opacity: 0; transform: translate(-50%, -58%) scale(1.04); }
}

@keyframes site-intro-tach-needle {
  0%, 29% { opacity: 0; transform: rotate(-112deg); }
  33% { opacity: 1; transform: rotate(-112deg); }
  60% { opacity: 1; transform: rotate(106deg); }
  65% { opacity: 1; transform: rotate(100deg); }
  70%, 100% { opacity: 0; transform: rotate(106deg); }
}

@keyframes site-intro-ignition {
  0%, 64% {
    filter: drop-shadow(0 0 12px rgba(214, 212, 204, 0.2)) drop-shadow(0 0 24px rgba(244, 123, 32, 0.16));
  }
  70% {
    filter: brightness(1.18) drop-shadow(0 0 15px rgba(255, 210, 166, 0.5)) drop-shadow(0 0 34px rgba(244, 123, 32, 0.62));
  }
  76%, 100% {
    filter: drop-shadow(0 0 12px rgba(214, 212, 204, 0.2)) drop-shadow(0 0 24px rgba(244, 123, 32, 0.16));
  }
}

@media (prefers-reduced-motion: reduce) {
  html.site-intro-pending { overflow: auto; }
  html.site-intro-pending .site-intro { display: none; }
}

.wrap {
  width: min(100% - 2.5rem, 1100px);
  margin-inline: auto;
}

/* Script accent — echoes the "Advantage" in the badge */
.eyebrow {
  display: block;
  font-family: "Yellowtail", cursive;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  color: var(--orange);
  margin-bottom: 0.2rem;
  transform: rotate(-2deg);
}

.btn {
  display: inline-block;
  font-family: "Staatliches", sans-serif;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
  padding: 0.75rem 1.7rem;
  border-radius: 4px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--orange);
  color: #1d1b17;
}
.btn-primary:hover { background: var(--orange-bright); }

.btn-ghost {
  border-color: var(--silver);
  color: var(--chrome);
}
.btn-ghost:hover { border-color: var(--chrome); background: rgba(214, 212, 204, 0.08); }

.btn-dark { border-color: var(--orange); color: var(--orange); }
.btn-dark:hover { background: var(--orange); color: #1d1b17; }

/* Top bar — orange banner like the logo's AUTOMOTIVE strip */
.topbar {
  background: var(--orange);
  color: #221d15;
  font-weight: 600;
  font-size: 0.95rem;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  flex-wrap: wrap;
}

.topbar a { color: #221d15; text-decoration: none; font-weight: 700; }
.topbar a:hover, .topbar a:focus-visible { text-decoration: underline; text-underline-offset: 0.15em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(29, 27, 23, 0.97);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand img { height: 62px; width: auto; }

.brand-name {
  font-family: "Staatliches", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  line-height: 0.95;
  color: var(--chrome);
}

.brand-name span {
  font-family: "Yellowtail", cursive;
  font-size: 1.35rem;
  letter-spacing: 0;
  color: var(--orange);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--chrome);
  cursor: pointer;
  padding: 0.3rem;
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }

.site-nav a {
  font-family: "Staatliches", sans-serif;
  letter-spacing: 0.12em;
  font-size: 1rem;
  color: var(--silver);
  text-decoration: none;
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--chrome); }
.site-nav a[aria-current="page"] { color: var(--orange); border-bottom-color: var(--orange); }
.site-nav .btn { padding: 0.45rem 1.1rem; }
.site-nav .btn-primary,
.site-nav .btn-primary:hover,
.site-nav .btn-primary:focus-visible { color: #1d1b17; }

/* Badge hero — the logo is the show */
.hero {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4.5rem);
  background: radial-gradient(ellipse 60% 70% at 50% 30%, rgba(244, 123, 32, 0.1), transparent 70%);
}

.hero .badge {
  width: min(320px, 70vw);
  filter: drop-shadow(0 18px 35px rgba(0, 0, 0, 0.55));
  margin-bottom: 1.2rem;
}

.hero .script-line {
  font-family: "Yellowtail", cursive;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  color: var(--orange);
  transform: rotate(-2deg);
  margin: 0 0 0.4rem;
}

.hero h1 { margin-bottom: 0.8rem; }

.hero p.lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 38rem;
  margin-inline: auto;
}

.hero .actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
}

.hero-financing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  flex-wrap: wrap;
  max-width: 46rem;
  margin: 1.8rem auto 0;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.financing-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.hero-financing img { height: 26px; width: auto; opacity: 0.92; }

/* Subpage hero */
.page-hero {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: radial-gradient(ellipse 55% 90% at 50% 0%, rgba(244, 123, 32, 0.09), transparent 70%);
}

.page-hero p { color: var(--text); max-width: 44rem; margin: 0 auto; }

/* Chrome divider with hex nut */
.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 auto;
  width: min(100% - 2.5rem, 1100px);
}

.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--silver), transparent);
  opacity: 0.45;
}

.divider .nut {
  width: 16px;
  height: 16px;
  background: var(--silver);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--bg-2); }

.trust .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
  padding: 0.9rem 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.trust strong { color: var(--chrome); font-weight: 600; }

.trust-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.trust-rating .stars { color: var(--orange); letter-spacing: 0.04em; }

.trust-rating:hover { color: var(--chrome); }
.trust-rating:hover .stars { color: var(--orange-bright); }

/* Sections */
.section { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.section-head { max-width: 46rem; margin-bottom: 2.2rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Plate cards — like the badge's metal plate */
.card {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-top-color: rgba(214, 212, 204, 0.28);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
}

.card .icon { width: 40px; height: 40px; color: var(--orange); margin-bottom: 0.8rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { font-size: 0.95rem; color: var(--muted); margin: 0; }

/* Split */
.split {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.split img {
  border-radius: 8px;
  width: 100%;
  object-fit: cover;
  border: 1px solid var(--plate-edge);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
}

/* Experience counters — a dark metal instrument panel */
.stats-band {
  position: relative;
  overflow: hidden;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
  background:
    radial-gradient(ellipse 55% 120% at 50% 0%, rgba(244, 123, 32, 0.12), transparent 68%),
    #15140f;
  border-block: 1px solid var(--plate-edge);
}

.stats-band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 20%, rgba(214, 212, 204, 0.035) 50%, transparent 80%);
}

.stats-band .wrap { position: relative; z-index: 1; }

.stats-head {
  max-width: 46rem;
  margin: 0 auto 2.3rem;
  text-align: center;
}

.stats-head h2 { margin-bottom: 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 60rem;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.stat {
  position: relative;
  padding: 0.8rem 1.4rem;
  text-align: center;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  top: 15%;
  bottom: 15%;
  left: 0;
  width: 1px;
  background: linear-gradient(transparent, var(--silver), transparent);
  opacity: 0.38;
}

.stat-number {
  display: block;
  font-family: "Staatliches", "Oswald", sans-serif;
  font-size: clamp(3.4rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0.035em;
  color: var(--orange-bright);
  text-shadow: 0 5px 22px rgba(244, 123, 32, 0.2);
  font-variant-numeric: tabular-nums;
}

.stat-label {
  display: block;
  margin-top: 0.6rem;
  font-family: "Staatliches", "Oswald", sans-serif;
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--chrome);
}

/* Reviews */
.review {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-top-color: rgba(214, 212, 204, 0.28);
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
}

.review .stars { color: var(--orange); letter-spacing: 0.18em; font-size: 1rem; }
.review blockquote { margin: 0.7rem 0 0.6rem; font-size: 0.98rem; color: var(--text); }
.review cite { font-style: normal; font-size: 0.85rem; color: var(--muted); }

/* Banner */
.banner {
  position: relative;
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  border-left: 5px solid var(--orange);
  border-radius: 8px;
  padding: 1.9rem 2.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.banner h2 { margin-bottom: 0.25rem; }
.banner p { margin: 0; color: var(--muted); }

/* Checklist with hex-nut bullets */
.checklist {
  columns: 2;
  column-gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist li {
  padding: 0.5rem 0 0.5rem 1.7rem;
  position: relative;
  break-inside: avoid;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.75rem;
  height: 0.75rem;
  background: var(--orange);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
}

/* Forms */
.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-family: "Staatliches", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
  color: var(--silver);
}

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--plate-edge);
  border-radius: 5px;
  background: var(--bg-2);
}

input:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }

/* Footer */
.site-footer {
  background: #15140f;
  color: var(--muted);
  font-size: 0.92rem;
  border-top: 1px solid var(--line);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 3rem 0 2rem;
}

.site-footer h3 { font-size: 1.05rem; color: var(--chrome); }
.site-footer a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(217, 215, 207, 0.6);
  text-underline-offset: 0.18em;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--orange-bright); text-decoration-color: currentColor; }
.site-footer img { height: 96px; width: auto; }

.form-note,
.form-status { color: var(--muted); font-size: 0.9rem; }
.form-status { min-height: 1.5em; margin: 0.5rem 0 0; }
.form-status[data-state="success"] { color: #8ed081; }
.form-status[data-state="error"] { color: #ffad70; }

.footer-legal {
  border-top: 1px solid var(--line);
  padding: 1rem 0 4.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.footer-legal .wrap { display: block; padding: 0; }

/* Sticky mobile action bar */
.action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  background: #15140f;
  border-top: 1px solid var(--plate-edge);
}

.action-bar a {
  flex: 1;
  text-align: center;
  padding: 0.85rem 0.4rem;
  font-family: "Staatliches", sans-serif;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
  color: var(--chrome);
  text-decoration: none;
}

.action-bar a.primary { background: var(--orange); color: #1d1b17; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--plate-edge);
    padding: 0.5rem 1.25rem 1rem;
  }

  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 0.8rem; text-align: center; }
}

@media (max-width: 860px) {
  .topbar .wrap { justify-content: center; }
  .topbar .hide-sm { display: none; }

  .hero-financing { gap: 0.9rem; }
  .hero-financing > span { width: 100%; }
  .financing-logos { gap: 1.2rem; }
  .hero-financing img { height: 22px; }

  .split { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; max-width: 32rem; }
  .stat { padding: 1.5rem 1rem; }
  .stat + .stat::before {
    top: 0;
    right: 15%;
    bottom: auto;
    left: 15%;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--silver), transparent);
  }
  .checklist { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .action-bar { display: flex; }
}
