/* =====================================================================
   GTA WHOLESALE AUTO SOURCING — Design System
   Institutional / FinTech-logistics aesthetic. Navy + Champagne Gold.
   ===================================================================== */

:root {
  /* Palette */
  --navy: #0A192F;
  --navy-2: #0B1B3D;
  --gold: #D4AF37;
  --gold-2: #C5A059;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --bg-light: #F8FAFC;
  --white: #FFFFFF;
  --text: #0F172A;
  --success: #10B981;
  --danger: #DC2626;
  --border: #E2E8F0;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(10, 25, 47, 0.06);
  --shadow-md: 0 8px 24px -8px rgba(10, 25, 47, 0.18);
  --shadow-lg: 0 20px 48px -12px rgba(10, 25, 47, 0.28);
  --shadow-gold: 0 8px 24px -6px rgba(212, 175, 55, 0.45);

  /* Shape */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Type */
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif-fallback: Georgia, serif;

  /* Layout */
  --container: 1200px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd { margin: 0; }
button { font-family: inherit; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
input, select { font-family: inherit; }

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 20px;
  z-index: 1000;
  font-weight: 700;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.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;
}

/* ---------- Layout Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-light); }
.section-navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--white); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

h1, .h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
h2, .h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
h3, .h3 { font-size: clamp(20px, 2.2vw, 24px); line-height: 1.3; font-weight: 700; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--slate); max-width: 640px; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head .lede { margin: 14px auto 0; }

.text-navy { color: var(--navy); }
.text-gold { color: var(--gold-2); }
.text-slate { color: var(--slate); }
.text-success { color: var(--success); }
.text-center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-2) 100%);
  color: var(--navy);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(212,175,55,0.55); }
.btn-secondary {
  background: transparent;
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); border-color: var(--white); }
.btn-outline-navy {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 14px; }

.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
}
.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15px; font-weight: 800; color: var(--navy); }
.brand-text span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; color: var(--slate); text-transform: uppercase; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  border-radius: var(--radius-sm);
  position: relative;
}
.main-nav a:hover { color: var(--navy); background: var(--bg-light); }
.main-nav .dropdown { position: relative; }
.main-nav .dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all 0.15s ease;
}
.main-nav .dropdown:hover .dropdown-menu,
.main-nav .dropdown:focus-within .dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown-menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.dropdown-menu a:hover { background: var(--bg-light); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  background: none; border: none;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
}
.nav-toggle:hover { background: var(--bg-light); }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--navy);
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

/* ---------- Trust Badge Strip ---------- */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 14px 28px;
  align-items: center; justify-content: flex-start;
  padding-top: 28px;
}
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.88);
}
.trust-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.18);
}
.section-navy .trust-badge { color: rgba(255,255,255,0.85); }
.trust-strip.light .trust-badge { color: var(--navy); }
.trust-strip.light .dot { background: var(--gold-2); box-shadow: 0 0 0 4px rgba(197,160,89,0.15); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 96px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 88% 0%, rgba(212,175,55,0.16), transparent 60%),
    radial-gradient(500px 400px at 10% 100%, rgba(148,163,184,0.10), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 .accent { color: var(--gold); }
.hero .lede { color: rgba(255,255,255,0.78); max-width: 560px; margin-top: 18px; }
.hero-panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.hero-panel-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 14.5px; }
.hero-panel-row:last-child { border-bottom: none; }
.hero-panel-row strong { color: var(--navy); }
.hero-panel .savings-figure { font-size: 34px; font-weight: 800; color: var(--success); }

/* ---------- Calculator ---------- */
.calc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.calc-header {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  padding: 28px 32px;
}
.calc-body { padding: 32px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .calc-body { grid-template-columns: 1fr; } }

.calc-field { margin-bottom: 20px; }
.calc-field label { display: block; font-size: 13.5px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.calc-field .hint { font-size: 12.5px; color: var(--slate); margin-top: 6px; }
.calc-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.calc-input:focus { border-color: var(--gold-2); }

.calc-slider-value { font-weight: 800; color: var(--gold-2); }
input[type="range"] {
  width: 100%; accent-color: var(--gold-2); height: 6px;
}

.toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--border); }
.toggle-row:first-of-type { border-top: none; }
.toggle-row .toggle-label { font-size: 14.5px; font-weight: 700; color: var(--text); }
.toggle-row .toggle-sub { font-size: 12.5px; color: var(--slate); margin-top: 2px; }

.switch { position: relative; width: 50px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; margin: 0; cursor: pointer; z-index: 2; }
.switch .track {
  position: absolute; inset: 0; background: #CBD5E1; border-radius: var(--radius-pill); transition: background 0.2s ease;
}
.switch .thumb {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  background: var(--white); border-radius: 50%; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease;
}
.switch input:checked ~ .track { background: var(--success); }
.switch input:checked ~ .thumb { transform: translateX(22px); }

.calc-results {
  background: var(--bg-light);
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) { .calc-results { grid-template-columns: 1fr; } }
.result-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--border);
}
.result-card.highlight {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  border: none;
}
.result-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--slate); }
.result-card.highlight .result-label { color: rgba(255,255,255,0.7); }
.result-value { font-size: 28px; font-weight: 800; margin-top: 8px; }
.result-card.highlight .result-value { color: var(--gold); }
.result-sub { font-size: 12.5px; color: var(--slate); margin-top: 4px; }
.result-card.highlight .result-sub { color: rgba(255,255,255,0.65); }

/* ---------- Tier Cards ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .tier-grid { grid-template-columns: 1fr; } }
.tier-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--white);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}
.tier-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier-card.featured { border-color: var(--gold-2); box-shadow: var(--shadow-gold); }
.tier-badge {
  position: absolute; top: -14px; right: 28px;
  background: var(--gold); color: var(--navy);
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.04em;
  padding: 6px 14px; border-radius: var(--radius-pill);
  text-transform: uppercase;
}
.tier-name { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-2); }
.tier-price { font-size: 38px; font-weight: 800; color: var(--navy); margin: 10px 0 4px; }
.tier-price span { font-size: 15px; font-weight: 600; color: var(--slate); }
.tier-range { font-size: 14px; color: var(--slate); margin-bottom: 18px; }
.tier-list { display: flex; flex-direction: column; gap: 12px; margin: 6px 0 26px; flex: 1; }
.tier-list li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.tier-list li::before {
  content: "✓"; color: var(--success); font-weight: 800; flex: none;
  width: 20px; height: 20px; border-radius: 50%; background: rgba(16,185,129,0.12);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}

/* ---------- Workflow Steps ---------- */
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 960px) { .workflow-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .workflow-grid { grid-template-columns: 1fr; } }
.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
.step-num {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--slate); }

/* ---------- Comparison Table ---------- */
.compare-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
.compare-table { min-width: 640px; }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.compare-table thead th {
  background: var(--navy); color: var(--white);
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em;
  position: sticky; top: 0;
}
.compare-table thead th:first-child { border-top-left-radius: var(--radius-lg); }
.compare-table thead th:last-child { border-top-right-radius: var(--radius-lg); }
.compare-table tbody tr:nth-child(even) { background: var(--bg-light); }
.compare-table td.neg { color: var(--danger); font-weight: 700; }
.compare-table td.pos { color: var(--success); font-weight: 700; }
.compare-table tfoot td { font-weight: 800; font-size: 16px; background: #FFFBEB; border-top: 2px solid var(--gold); }

/* ---------- FAQ Accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; background: var(--white); }
.faq-question {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px; text-align: left;
  font-size: 16px; font-weight: 700; color: var(--navy);
}
.faq-question .icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-light); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: transform 0.2s ease;
}
.faq-item[data-open="true"] .faq-question .icon { transform: rotate(45deg); background: var(--gold); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-answer-inner { padding: 0 24px 22px; color: var(--slate); font-size: 15px; line-height: 1.7; }
.faq-item[data-open="true"] .faq-answer { max-height: 600px; }

/* ---------- Definition list (dealer fee breakdown) ---------- */
.fee-dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 20px; font-size: 14.5px; }
.fee-dl dt { color: var(--slate); }
.fee-dl dd { margin: 0; font-weight: 700; color: var(--navy); text-align: right; }

/* ---------- Cards / Generic ---------- */
.info-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* ---------- CTA Band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
}
@media (max-width: 640px) { .cta-band { padding: 36px 24px; } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: rgba(255,255,255,0.75); margin: 14px auto 28px; max-width: 560px; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--slate); padding: 18px 0; }
.breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 38px; margin-bottom: 14px; }
.footer-brand p { font-size: 13.5px; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: var(--white); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ---------- Mobile Nav ---------- */
@media (max-width: 940px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-primary.desktop-only { display: none; }
  body.nav-open .mobile-nav { transform: translateX(0); }
  .mobile-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--white);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 190;
    overflow-y: auto;
    padding: 24px;
  }
  .mobile-nav a {
    display: block; padding: 16px 4px; font-size: 17px; font-weight: 700; color: var(--navy);
    border-bottom: 1px solid var(--border);
  }
  .mobile-nav .btn { margin-top: 20px; }
}
@media (min-width: 941px) { .mobile-nav { display: none; } }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: flex-start; }
}

/* ---------- Print-safe / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
