/* RV Buyers Agent - site styles */
:root {
  --ink: #242021;
  --ink-soft: #4d4a4b;
  --blue: #0048ff;
  --blue-dark: #0038c7;
  --blue-tint: #eef2ff;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --line: #e6e6e8;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(36, 32, 33, 0.07);
  --shadow-lg: 0 10px 30px rgba(36, 32, 33, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Instrument Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 700; margin-bottom: 0.6em; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.4em; }
p + p { margin-top: 0.9em; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--ink-soft); }
.eyebrow { font-weight: 700; letter-spacing: 0.12em; color: var(--blue); font-size: 0.85rem; margin-bottom: 0.5em; }

.icon { display: inline-flex; width: 1.2em; height: 1.2em; vertical-align: -0.22em; }
.icon svg { width: 100%; height: 100%; }

/* ---- buttons */
.btn {
  display: inline-block;
  padding: 0.65em 1.4em;
  border-radius: 8px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--blue); }
.btn-light:hover { background: var(--blue-tint); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-lg { padding: 0.85em 1.8em; font-size: 1.05rem; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* ---- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand-mark { width: 1.7em; height: 1.7em; color: var(--blue); display: inline-flex; }
.brand-mark svg { width: 100%; height: 100%; }
.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500;
}
.main-nav a:hover { color: var(--ink); background: var(--bg-alt); }
.main-nav a.active { color: var(--blue); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.phone-link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap;
}
.phone-link .icon { color: var(--blue); }
.phone-link.big { font-size: 1.3rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: 0.2s; }

/* ---- hero */
.hero-full {
  position: relative; color: #fff;
  background-size: cover; background-position: center;
}
.hero-full::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 14, 24, 0.72) 0%, rgba(15, 14, 24, 0.45) 55%, rgba(15, 14, 24, 0.2) 100%);
}
.hero-full-inner {
  position: relative; max-width: 1160px;
  padding-top: 110px; padding-bottom: 110px;
}
.hero-full h1 { max-width: 14em; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35); }
.hero-full .lead { color: rgba(255, 255, 255, 0.94); max-width: 34em; margin: 1em 0 1.2em; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.trust-bar { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; font-weight: 600; font-size: 0.95rem; }
.trust-bar .icon { color: var(--blue); }
.trust-bar-light .icon { color: #fff; }

/* ---- page hero (interior pages) */
.page-hero {
  position: relative; color: #fff;
  background-size: cover; background-position: center;
  padding: 96px 0;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 18, 30, 0.62), rgba(20, 18, 30, 0.45));
}
.page-hero .container { position: relative; max-width: 860px; text-align: center; }
.page-hero p { margin-top: 0.8em; font-size: 1.1rem; }
.page-hero a.btn { margin-top: 1.4em; }
.page-hero .eyebrow { color: #fff; opacity: 0.85; }
.hero-brand-logo { margin: 0 auto 20px; width: 180px; background: #fff; padding: 12px 20px; border-radius: 10px; }
.page-hero-plain { background: linear-gradient(180deg, var(--blue-tint), var(--bg)); color: var(--ink); padding: 64px 0 40px; }
.page-hero-plain::before { display: none; }
.page-hero-plain p { color: var(--ink-soft); }

/* ---- sections */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; margin-bottom: 1.4em; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: start; }
.split h2 { margin-top: 1.2em; }
.split h2:first-child { margin-top: 0; }
.split h3 { margin-top: 1.2em; font-size: 1.3rem; }
.split-media { display: grid; gap: 20px; position: sticky; top: 92px; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---- cards */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.benefit-card { padding: 26px; }
.benefit-card .card-icon {
  display: inline-flex; width: 46px; height: 46px; border-radius: 10px;
  background: var(--blue-tint); color: var(--blue);
  align-items: center; justify-content: center; margin-bottom: 14px;
}
.benefit-card .card-icon .icon { width: 24px; height: 24px; }
.benefit-card p { color: var(--ink-soft); font-size: 0.95rem; }

.step-card { text-align: center; padding: 26px; }
.step-num {
  display: block; font-size: 2.6rem; font-weight: 700; color: var(--blue);
  letter-spacing: -0.02em; margin-bottom: 0.2em;
}
.steps-grid .step-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }

.check-list { list-style: none; display: grid; gap: 10px; margin: 1em 0; }
.check-list .icon { color: var(--blue); margin-right: 6px; }

.brand-logos {
  display: flex; align-items: center; justify-content: center; gap: 32px;
  padding: 18px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
}
.brand-logos img { max-height: 46px; width: auto; }

/* ---- vehicle cards */
.vehicle-grid { align-items: stretch; }
.vehicle-card { display: flex; flex-direction: column; overflow: hidden; }
.vehicle-img { background: #fff; padding: 18px; display: flex; align-items: center; justify-content: center; min-height: 230px; }
.vehicle-img img { max-height: 230px; width: auto; object-fit: contain; }
.lifestyle-card .vehicle-img { padding: 0; }
.lifestyle-card .vehicle-img img { max-height: none; width: 100%; height: 100%; object-fit: cover; }
.vehicle-body { padding: 22px 26px 26px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.vehicle-body p { color: var(--ink-soft); font-size: 0.95rem; }
.vehicle-body .btn { align-self: flex-start; margin-top: auto; }
.vehicle-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vehicle-brand { height: 26px; width: auto; }
.vehicle-oem { height: 22px; width: auto; opacity: 0.85; }
.spec-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chips li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-alt); border: 1px solid var(--line); border-radius: 999px;
  padding: 4px 12px; font-size: 0.85rem; font-weight: 600;
}
.spec-chips .icon { color: var(--blue); }

/* ---- CTA banner */
.cta-banner { background: var(--blue); color: #fff; padding: 56px 0; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner p { opacity: 0.9; max-width: 560px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- forms */
.quiz-wrap { max-width: 720px; }
.quiz-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 36px; }
.quiz-title { text-align: center; font-size: 1.4rem; margin-bottom: 1.2em; }
.form-card { padding: 32px; }
.form-steps {
  list-style: none; display: flex; gap: 8px; justify-content: center; margin-bottom: 24px;
}
.form-steps li { width: 34px; height: 5px; border-radius: 99px; background: var(--line); transition: background 0.2s; }
.form-steps li.current { background: var(--blue); }
.form-steps li.done { background: var(--blue-dark); }
.form-step { border: 0; }
.form-step legend { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; }
.field-label { display: block; font-weight: 600; font-size: 0.9rem; margin: 14px 0 6px; }
input[type='text'], input[type='tel'], input[type='email'], select, textarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); }
.field-error { border-color: #d92c2c !important; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
textarea { resize: vertical; }
.form-card .btn { margin-top: 18px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 18px;
  border: 1.5px solid var(--line); border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; transition: 0.15s;
}
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.step-nav .btn:only-child { margin-left: auto; }
.form-success { text-align: center; padding: 24px 0; }
.form-success h3 { font-size: 1.4rem; color: var(--blue); }

.contact-split { grid-template-columns: 1.15fr 0.85fr; }
.contact-card { padding: 24px; }
.why-card { padding: 24px; }

/* ---- faq */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1.05rem;
  padding: 18px 36px 18px 0; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--blue);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 0 18px; color: var(--ink-soft); }
.faq-more { margin-top: 28px; text-align: center; }

/* ---- legal */
.legal h2 { font-size: 1.25rem; margin-top: 1.6em; }

/* ---- footer */
.site-footer { background: var(--ink); color: #d8d5d6; padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; }
.footer-about p { font-size: 0.92rem; margin-top: 0.8em; }
.brand-light { color: #fff; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.footer-nav a, .footer-about a { color: #d8d5d6; text-decoration: none; font-size: 0.95rem; }
.footer-nav a:hover, .footer-about a:hover { color: #fff; text-decoration: underline; }
.footer-copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.85rem; color: #a8a4a5; }

/* ---- responsive */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-full-inner { padding-top: 72px; padding-bottom: 72px; }
  .split, .contact-split { grid-template-columns: 1fr; }
  .split-media { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .phone-link span { display: none; }
  .phone-link.big span { display: inline; }
}
@media (max-width: 780px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 12px 20px 18px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .header-cta .btn { display: none; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 44px 0; }
  .quiz-card, .form-card { padding: 24px 18px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
