/* Concept A — "Elevated apexx": engineering-catalog world in apexx's own blue + orange.
   Machined rules, spec-plate surfaces, tabular numerals. Light, precise, dealer-confident. */

:root {
  --bg: #f7f8fa;
  --ink: #14151a;
  --muted: #565a63;
  --line: #d9dde3;
  --accent: #075bb2;
  --accent-ink: #ffffff;
  --orange: #dd6800;
  --focus: #dd6800;
  --head-bg: #14151a;
  --card-bg: #ffffff;
  --panel-bg: #ffffff;
  --field-bg: #ffffff;
  --chip-bg: #ffffff;
  --ok: #1c7c46;
  --danger: #b3261e;
  --card-radius: 10px;
  --chip-radius: 8px;
  --body-font: "Inter", system-ui, sans-serif;
  --display: "Archivo", "Inter", sans-serif;
}

body { background: var(--bg); }

h1, h2, h3 { font-family: var(--display); font-stretch: 112%; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; margin-bottom: 6px; }
.section-sub { color: var(--muted); margin-bottom: 20px; max-width: 60ch; }

/* header on dark plate */
.site-head { border-bottom: 3px solid var(--orange); }
.site-head, .site-head a, .site-head button { color: #fff; }
.head-logo img { filter: brightness(1.6); }
.head-nav { display: flex; gap: 18px; font-weight: 600; font-size: 14.5px; }
.head-nav a { text-decoration: none; padding: 8px 2px; border-bottom: 2px solid transparent; }
.head-nav a:hover { border-bottom-color: var(--orange); }
.head-phone { background: rgba(255,255,255,0.08); }
.head-phone .ph-label { font-weight: 400; font-size: 12.5px; opacity: 0.8; }
.head-phone:hover { background: rgba(255,255,255,0.16); }
.open-quote { background: var(--orange); color: #14151a; }
.open-quote:hover { background: #f07a10; }
.quote-count { background: #14151a; color: #fff; }
@media (max-width: 900px) { .head-nav { font-size: 13px; gap: 12px; flex-wrap: wrap; } }
@media (max-width: 560px) { .head-phone .ph-label { display: none; } .head-nav a { padding: 8px 4px; } }

/* the page's one authored moment: hero settles in like a spec sheet being laid on the desk */
@keyframes settle { from { opacity: 0.01; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: settle 0.55s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }
.hero-plate { animation: settle 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards; }

/* hero: paper sheet over graph-paper ground */
.hero {
  background:
    linear-gradient(180deg, rgba(7,91,178,0.045), rgba(7,91,178,0) 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 850; line-height: 1.04; margin-bottom: 16px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 56ch; margin-bottom: 22px; }
.hero-search { display: flex; gap: 10px; max-width: 540px; margin-bottom: 26px; }
.hero-search input { flex: 1; padding: 13px 16px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-size: 16px; }
.hero-stats { display: flex; gap: 0; border-top: 1px solid var(--line); max-width: 540px; }
.hero-stats > div { flex: 1; padding: 12px 16px 0 0; border-right: 1px solid var(--line); margin-right: 16px; }
.hero-stats > div:last-child { border-right: none; margin-right: 0; }
.hero-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.6px; color: var(--muted); }
.hero-stats dd { font-family: var(--display); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ink); }

/* spec plate */
.hero-plate {
  background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--accent);
  border-radius: 12px; padding: 24px 24px 20px;
  box-shadow: 0 14px 34px -18px rgba(20, 21, 26, 0.28);
}
.plate-title { font-size: 20px; margin-bottom: 14px; }
.plate-steps { list-style: none; counter-reset: st; }
.plate-steps li { counter-increment: st; position: relative; padding: 0 0 14px 44px; font-size: 14.5px; color: var(--muted); }
.plate-steps li strong { color: var(--ink); display: block; font-size: 15px; }
.plate-steps li::before {
  content: counter(st); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-family: var(--display); font-weight: 800;
}
.plate-steps li:nth-child(3)::before { background: var(--orange); }
.plate-foot { font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }

/* areas */
.areas { padding: 44px 0 8px; }
.area-chip { background: #fff; font-weight: 600; font-size: 14.5px; }
.area-chip:hover { border-color: var(--accent); }
.area-chip .area-count { color: var(--accent); font-weight: 700; opacity: 1; }
.area-chip.active .area-count { color: #fff; }

/* catalog */
.catalog { padding: 40px 0 56px; }
.badge-new { background: var(--accent); color: #fff; }
.badge-preowned { background: var(--orange); color: #14151a; }
.card { box-shadow: 0 6px 18px -12px rgba(20,21,26,0.25); }
.card:hover { border-color: #c3cad3; }
.card-name { font-weight: 600; }
.card-price .price-val { color: var(--accent); }
.btn-quote { background: var(--accent); border-color: var(--accent); }
.btn-quote:hover { background: #0a4c92; }
.btn-compare:hover { border-color: var(--ink); }

/* trade-in: orange instrument band */
.tradein { background: var(--head-bg); color: #eef1f5; padding: 56px 0; }
.tradein h2 { color: #fff; }
.tradein p { color: #c3c9d4; max-width: 58ch; margin-bottom: 12px; }
.tradein p strong { color: #fff; }
.tradein-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.hero-sell-link { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero-sell-link a { color: var(--accent); font-weight: 700; text-decoration-color: var(--orange); }
.cpo-strip { background: #fff; font-size: 13.5px; }
.cpo-strip span::before { color: var(--orange); }
.trade-form { background: #fff; color: var(--ink); border-radius: 12px; padding: 24px; box-shadow: 0 24px 50px -30px rgba(0,0,0,0.7); }
.trade-steps li { color: #c3c9d4; }
.trade-steps b { color: #fff; }
.trade-steps li::before { background: var(--orange); color: #14151a; }
@media (max-width: 800px) { .tradein-grid { grid-template-columns: 1fr; } }
.tradein-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.tradein .btn { border-color: rgba(255,255,255,0.35); color: #fff; }
.tradein .btn-primary { background: var(--orange); border-color: var(--orange); color: #14151a; }
.tradein .btn-primary:hover { background: #f07a10; }
.tradein-points { list-style: none; display: grid; gap: 14px; }
.tradein-points li { padding: 14px 16px; background: rgba(255,255,255,0.06); border-radius: 10px; font-size: 14.5px; color: #c3c9d4; }
.tradein-points strong { color: #f0913c; display: block; }

/* apexx360 */
.apexx360 { padding: 54px 0 64px; }
.a360-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 20px 0 24px; }
@media (max-width: 760px) { .a360-row { grid-template-columns: 1fr; } }
.a360-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.a360-step h3 { font-size: 17px; color: var(--accent); margin-bottom: 4px; }
.a360-step p { font-size: 14.5px; color: var(--muted); }

/* footer */
.site-foot { background: var(--head-bg); color: #c3c9d4; }
.site-foot a { color: #fff; }

/* drawer polish */
.drawer-alt { font-size: 13.5px; color: var(--muted); }
.drawer-alt a { color: var(--accent); font-weight: 700; }

/* orange controls carry dark ink; must outrank .site-head button / .tradein .btn color rules */
.site-head .open-quote, .tradein .open-quote { color: #14151a; }

/* focus on dark surfaces: orange ring reads on both, boost with white halo on dark */
.site-head :focus-visible, .tradein :focus-visible, .site-foot :focus-visible {
  outline: 3px solid #fff; outline-offset: 2px;
}
