/* ============================================
   Car-Tender — Shared Styles (v3 — modern fintech)
   ============================================ */

/* Fonts loaded via <link rel="stylesheet"> in each page's <head>
   for non-render-blocking parallel fetch. */

:root {
  --black: #0a0e17;
  --ink: #1a2030;
  --white: #ffffff;
  --cream: #ffffff;
  --cream-deep: #f5f7fa;
  --cream-soft: #fafbfc;
  --surface: #ffffff;
  --surface-alt: #f9fafb;

  --orange: #ff6a13;
  --orange-deep: #d64e00;
  --orange-soft: #fff1e6;
  --orange-tint: #fffaf6;

  --gray: #525e6e;
  --gray-light: #e3e7eb;
  --gray-mid: #9aa3b0;

  --navy: #0a2540;
  --navy-soft: #e8eef5;

  --border: rgba(10, 14, 23, 0.1);
  --border-strong: rgba(10, 14, 23, 0.18);

  --display: 'Fraunces', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  --max-w: 1240px;

  --shadow-sm: 0 1px 3px rgba(10, 14, 23, 0.04), 0 1px 2px rgba(10, 14, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(10, 14, 23, 0.06), 0 8px 32px rgba(10, 14, 23, 0.08);
  --shadow-lg: 0 12px 32px rgba(10, 14, 23, 0.08), 0 24px 80px rgba(10, 14, 23, 0.1);
  --shadow-xl: 0 24px 60px rgba(10, 14, 23, 0.12), 0 40px 120px rgba(10, 14, 23, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}
.container-tight {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--black);
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}
h1 { font-size: clamp(2.6rem, 6.5vw, 5.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4.5vw, 3.4rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
h4 { font-size: clamp(1.05rem, 1.5vw, 1.25rem); }

.display-xl {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-variation-settings: "SOFT" 0, "WONK" 0, "opsz" 144;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange-deep);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--orange);
}
.eyebrow.eyebrow-light { color: var(--orange); }
.eyebrow.eyebrow-light::before { background: var(--orange); }

.italic-accent {
  font-style: italic;
  font-family: var(--display);
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
  color: var(--orange);
  font-weight: 500;
}

.highlight-swoop {
  display: inline-block;
  position: relative;
  z-index: 1;
}
.highlight-swoop::after {
  content: '';
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: 4%;
  height: 22%;
  background: var(--orange);
  z-index: -1;
  border-radius: 4px;
  transform: rotate(-1.2deg) skewX(-3deg);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--gray);
  line-height: 1.55;
  max-width: 56ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
  font-family: var(--sans);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 106, 19, 0.25);
}
.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 19, 0.35);
}
.btn-dark {
  background: var(--black);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}
.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-ghost-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}
.btn-arrow::after {
  content: '→';
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.btn-arrow:hover::after { transform: translateX(4px); }
.btn-lg { padding: 18px 32px; font-size: 1.02rem; }
.btn-sm { padding: 10px 18px; font-size: 0.88rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo { display: flex; align-items: center; }
.logo img { height: 44px; width: auto; display: block; }
@media (max-width: 600px) { .logo img { height: 36px; } }
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.93rem; font-weight: 500; color: var(--ink); transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--orange-deep); }
.nav-links a.active { color: var(--orange-deep); }
.nav-links a.active::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange); border-radius: 2px; }
.nav-cta { display: flex; gap: 12px; align-items: center; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* Sections */
section { position: relative; z-index: 2; }
.section-pad { padding: 100px 0; }
.section-pad-sm { padding: 64px 0; }
.section-pad-lg { padding: 130px 0; }
.section-white { background: var(--white); }
.section-cream { background: var(--cream-soft); }
.section-cream-deep { background: var(--cream-deep); }
.section-black { background: var(--black); color: rgba(255, 255, 255, 0.78); }
.section-black h1, .section-black h2, .section-black h3, .section-black h4 { color: var(--white); }
.section-black .lead { color: rgba(255, 255, 255, 0.7); }
.section-navy { background: var(--navy); color: rgba(255, 255, 255, 0.78); }
.section-navy h1, .section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-orange { background: var(--orange); color: var(--white); }
.section-orange h1, .section-orange h2, .section-orange h3 { color: var(--white); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .lead { margin: 22px auto 0; }

/* Footer */
.site-footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.7);
  padding: 84px 0 32px;
  position: relative;
  z-index: 2;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 56px;
}
.footer-brand img { height: 50px; width: auto; margin-bottom: 22px; display: block; }
.footer-brand p { color: rgba(255, 255, 255, 0.62); max-width: 320px; font-size: 0.93rem; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin-bottom: 22px;
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: rgba(255, 255, 255, 0.72); font-size: 0.93rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.5);
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--orange); }

/* Mobile */
@media (max-width: 900px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 28px;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .section-pad { padding: 64px 0; }
  .section-pad-lg { padding: 80px 0; }
  .section-head { margin-bottom: 44px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .container { padding: 0 20px; }
}

/* Forms */
.contact-form-card,
.dealer-form,
.seo-mini-form,
.offer-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}
.contact-form-card::before,
.dealer-form::before,
.seo-mini-form::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--orange), transparent 50%);
  border-radius: calc(var(--radius-lg) + 3px);
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}
.contact-form-card input,
.contact-form-card select,
.contact-form-card textarea,
.dealer-form input,
.dealer-form select,
.dealer-form textarea,
.seo-mini-form input,
.seo-mini-form select,
.seo-mini-form textarea,
.offer-card input,
.offer-card select,
.offer-card textarea {
  font-family: var(--sans);
  padding: 13px 15px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}
.contact-form-card input:focus,
.contact-form-card select:focus,
.contact-form-card textarea:focus,
.dealer-form input:focus,
.dealer-form select:focus,
.dealer-form textarea:focus,
.seo-mini-form input:focus,
.seo-mini-form select:focus,
.seo-mini-form textarea:focus,
.offer-card input:focus,
.offer-card select:focus,
.offer-card textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 106, 19, 0.12);
}

/* VIN decoder UX */
.vin-status {
  font-size: 0.85rem;
  margin-top: 8px;
  color: var(--gray);
  min-height: 20px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}
.vin-status.success { color: #047857; }
.vin-status.error { color: #b91c1c; }
.vin-status .spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--gray-light);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: vinspin 0.7s linear infinite;
}
.vin-status .check-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  background: #047857;
  color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
@keyframes vinspin { to { transform: rotate(360deg); } }

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* Footer hours line */
.footer-hours-line {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  width: 100%;
  text-align: center;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-hours-line strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.footer-bottom { flex-wrap: wrap; }

/* ============================================
   MULTI-STEP OFFER FORM — shared across all pages
   ============================================ */
.offer-card {
  padding: 32px 32px 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
}
.offer-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  background: linear-gradient(135deg, var(--orange), transparent 50%);
  border-radius: calc(var(--radius-lg) + 3px);
  z-index: -1;
  opacity: 0.3;
  pointer-events: none;
}
.offer-card h3 {
  font-size: 1.4rem;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.offer-card .sub {
  color: var(--gray);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* Progress bar */
.form-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.form-progress .step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-light);
  transition: background 0.3s var(--ease);
}
.form-progress .step.active,
.form-progress .step.complete { background: var(--orange); }
.form-step-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--orange-deep);
  margin-bottom: 8px;
}

/* Form page transitions */
.form-page { display: none; }
.form-page.active { display: block; animation: fadeInForm 0.3s var(--ease); }
@keyframes fadeInForm {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.form-row label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.form-row label .req { color: var(--orange); }
.form-row label .hint {
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.74rem;
}
.form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Radio groups */
.radio-group { display: flex; gap: 10px; }
.radio-group label,
.radio-stack label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  transition: all 0.2s var(--ease);
  flex: 1;
  background: var(--white);
}
.radio-group label:hover,
.radio-stack label:hover { border-color: var(--ink); }
.radio-group input[type="radio"],
.radio-stack input[type="radio"] {
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: var(--orange);
}
.radio-group label:has(input:checked),
.radio-stack label:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-tint);
}
.radio-stack { display: flex; flex-direction: column; gap: 8px; }
.radio-stack label { flex: none; }

/* Conditional fields */
.conditional {
  display: none;
  padding: 14px 16px 4px;
  background: var(--cream-deep);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  border-left: 3px solid var(--orange);
}
.conditional.show { display: block; animation: fadeInForm 0.25s var(--ease); }

/* Dynamic disclaimer */
.form-disclaimer {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
  display: none;
}
.form-disclaimer.show { display: block; animation: fadeInForm 0.25s var(--ease); }
.form-disclaimer.eligible {
  background: #ecfdf5;
  border-left: 3px solid #047857;
  color: #064e3b;
}
.form-disclaimer.inspection {
  background: var(--orange-tint);
  border-left: 3px solid var(--orange);
  color: var(--ink);
}
.form-disclaimer strong { display: block; margin-bottom: 4px; font-weight: 700; }

/* Form actions */
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.form-actions .btn { flex: 1; justify-content: center; }
.form-actions .btn-back { flex: 0 0 auto; padding: 14px 18px; }
.offer-card .btn-primary { width: 100%; justify-content: center; }

@media (max-width: 600px) {
  .offer-card { padding: 26px 22px; }
  .form-cols { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }
}

/* ============================================
   DEALER PARTNER ANNOUNCEMENT BAR
   (was only on homepage; now global)
   ============================================ */
.dealer-bar {
  display: block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.2s var(--ease);
  position: relative;
  z-index: 101;
}
.dealer-bar:hover { background: #0c2d4d; }
.dealer-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.dealer-bar-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.dealer-bar-text { color: rgba(255, 255, 255, 0.92); }
.dealer-bar-arrow {
  font-weight: 700;
  color: var(--orange);
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.dealer-bar:hover .dealer-bar-arrow { transform: translateX(4px); }
@media (max-width: 600px) {
  .dealer-bar-inner { padding: 8px 0; font-size: 0.78rem; gap: 8px; }
  .dealer-bar-text { font-size: 0.78rem; }
}
