/* ============================================================
   FastAutoLeasing — styles.css
   Mobile-first, no external dependencies.
   ============================================================ */

:root {
  /* Graphite / charcoal base */
  --dark: #14181f;          /* primary charcoal base */
  --dark-2: #1f2733;        /* raised panel */
  --dark-3: #0e1218;        /* deepest */
  /* Confident electric blue accent for CTAs */
  --accent: #2f6bff;
  --accent-2: #1e54d6;      /* deeper blue (gradients / hover) */
  --accent-dark: #1e54d6;   /* readable blue on light surfaces */
  --accent-cyan: #25c2e6;   /* bright cyan — used very sparingly */
  /* Content */
  --text: #111827;
  --text-muted: #5b6675;
  --text-on-dark: #f9fafb;
  --text-on-dark-muted: #c4ccd8;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --border: #e5e9f0;
  --error: #ef4444;
  --success: #10b981;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 46px rgba(16, 22, 34, 0.16);
  --shadow-sm: 0 2px 10px rgba(16, 22, 34, 0.07);
  --shadow-blue: 0 10px 26px rgba(47, 107, 255, 0.32);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --header-h: 66px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

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

img, svg { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}
.container-narrow { max-width: 800px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 18, 24, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  text-decoration: none;
}
.logo span { color: var(--accent); }
.logo-mark { color: var(--accent); flex-shrink: 0; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-on-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-links {
  list-style: none;
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0 16px;
}
.nav-links.open { display: block; }
.nav-links li a {
  display: block;
  padding: 12px 24px;
  color: var(--text-on-dark-muted);
  text-decoration: none;
  font-weight: 600;
}
.nav-links li a:hover,
.nav-links li a:focus-visible { color: var(--accent); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    gap: 4px;
  }
  .nav-links li a { padding: 8px 14px; border-radius: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--text-on-dark);
  padding: 52px 0 64px;
  background: var(--dark-3);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/hero-car.jpg");
  background-size: cover;
  background-position: 68% center;
}
/* Dark charcoal gradient overlay — darker on the left & bottom for text legibility */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 12, 17, 0.94) 0%, rgba(11, 15, 21, 0.82) 42%, rgba(13, 17, 24, 0.42) 100%),
    linear-gradient(0deg, rgba(9, 12, 17, 0.92) 0%, rgba(9, 12, 17, 0) 55%),
    radial-gradient(1100px 620px at 88% -10%, rgba(47, 107, 255, 0.20), transparent 62%);
}

.hero-grid {
  display: grid;
  gap: 34px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
  padding: 7px 15px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}

.hero-sub {
  font-size: 1.14rem;
  color: #dfe5ee;
  margin-bottom: 26px;
  max-width: 33em;
}

.hero-points {
  list-style: none;
  display: grid;
  gap: 11px;
  font-weight: 600;
}
.hero-points li { display: flex; align-items: center; }
.hero-points .check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 11px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(47, 107, 255, 0.45);
}

@media (min-width: 960px) {
  .hero { padding: 80px 0 92px; }
  .hero-grid {
    grid-template-columns: 1fr 468px;
    align-items: center;
    gap: 56px;
  }
}

/* ---------- Quote form card ---------- */
.form-card {
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius);
  padding: 28px 24px 22px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 4px solid var(--accent);
}

.form-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.form-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 4px 0 18px;
}

fieldset {
  border: 0;
  margin-bottom: 14px;
}
legend {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-dark);
  margin-bottom: 8px;
  padding-bottom: 4px;
}

.field-row {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.field-row:last-child { margin-bottom: 0; }

@media (min-width: 480px) {
  .field-row { grid-template-columns: 1fr 1fr; }
}

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.field input,
.field select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.22);
}
.field input.invalid,
.field select.invalid {
  border-color: var(--error);
}

.field-error-msg {
  color: var(--error);
  font-size: 0.78rem;
  margin-top: 4px;
}

/* Consent */
.consent { margin: 16px 0 14px; }
.consent-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--text-muted);
  cursor: pointer;
}
.consent-label input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.consent.invalid .consent-label { color: var(--error); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-align: center;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(47, 107, 255, 0.42);
}
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; }

/* Light/outline button for use on dark photo bands */
.btn-ghost {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.form-fineprint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.form-success {
  text-align: center;
  padding: 24px 8px;
}
.form-success h3 { font-size: 1.3rem; margin-bottom: 8px; }
.form-success p { color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 12px auto 44px;
  max-width: 40em;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d3dae6;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  padding-top: 26px;
  padding-bottom: 26px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
}
.trust-item svg {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--accent);
}
@media (min-width: 720px) {
  .trust-inner { grid-template-columns: repeat(4, 1fr); }
}

/* Steps */
.steps {
  display: grid;
  gap: 22px;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}
.step { position: relative; }
.step-num {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--accent-dark);
  background: rgba(47, 107, 255, 0.10);
  border-radius: 50%;
}
.step-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: var(--shadow-blue);
  margin-bottom: 18px;
}
.step-icon svg { width: 28px; height: 28px; }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.step p { color: var(--text-muted); font-size: 0.96rem; }

/* Benefits */
.benefits {
  display: grid;
  gap: 22px;
}
@media (min-width: 640px) {
  .benefits { grid-template-columns: 1fr 1fr; }
}
.benefit-icon {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(47, 107, 255, 0.10);
  color: var(--accent);
  margin-bottom: 16px;
}
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; letter-spacing: -0.01em; }
.benefit p { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Image + text feature ---------- */
.feature {
  display: grid;
  gap: 28px;
  align-items: center;
}
.feature-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature-eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.feature h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 14px;
}
.feature p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--text);
}
.feature-list svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--accent);
}
@media (min-width: 860px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 52px; }
  .feature-media { aspect-ratio: 5 / 4; }
}

/* CTA band */
.cta-band {
  margin-top: 44px;
  background:
    linear-gradient(120deg, rgba(14, 18, 24, 0.94), rgba(20, 26, 36, 0.78)),
    radial-gradient(700px 300px at 90% 10%, rgba(47, 107, 255, 0.28), transparent 60%),
    var(--dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  padding: 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.cta-band p { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 640px) {
  .cta-band { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Closing CTA (handshake photo band) ---------- */
.closing-cta {
  position: relative;
  isolation: isolate;
  color: var(--text-on-dark);
  padding: 76px 0;
  overflow: hidden;
  background: var(--dark-3);
}
.closing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/handshake.jpg");
  background-size: cover;
  background-position: center;
}
.closing-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 12, 17, 0.93) 0%, rgba(11, 15, 21, 0.80) 50%, rgba(13, 17, 24, 0.62) 100%);
}
.closing-cta .container { text-align: center; }
.closing-cta h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}
.closing-cta p {
  color: #dfe5ee;
  font-size: 1.1rem;
  max-width: 40em;
  margin: 0 auto 26px;
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  overflow: hidden;
}
.faq-item h3 { font-size: 1rem; }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  background: none;
  border: 0;
  padding: 16px 18px;
  cursor: pointer;
  color: var(--text);
}
.faq-question:hover { background: var(--bg-alt); }
.faq-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(47, 107, 255, 0.12);
  color: var(--accent);
  font-weight: 800;
  transition: transform 0.2s ease;
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 18px 16px; }
.faq-answer p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Disclaimer ---------- */
.section-disclaimer { padding: 40px 0 56px; }
.disclaimer {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.disclaimer h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.disclaimer p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--text-on-dark-muted);
  padding: 28px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.site-footer a {
  color: var(--text-on-dark-muted);
  text-decoration: none;
  margin: 0 10px;
  font-weight: 600;
}
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--accent); }
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---------- Legal pages (privacy / terms) ---------- */
.legal-hero {
  background: var(--dark);
  color: var(--text-on-dark);
  padding: 48px 0;
}
.legal-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.legal-hero .legal-meta { color: var(--text-on-dark-muted); margin-top: 8px; }

.legal-body { padding: 48px 0 64px; }
.legal-body h2 {
  font-size: 1.3rem;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--text-muted); margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin-bottom: 12px; }
.legal-body li { margin-bottom: 6px; }
.legal-body a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Accessibility / misc ---------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
