/* Roadside Advocates - shared styles for the main site and client landing pages */
:root {
  --navy: #003049;
  --navy-700: #00263a;
  --navy-900: #001a28;
  --orange: #f5a21e;
  --orange-600: #e08e08;
  --cream: #fff8ec;
  --ink: #0f1d26;
  --muted: #536571;
  --line: #e3e8ec;
  --bg: #ffffff;
  --bg-soft: #f4f7f9;
  --ok: #1f8a4c;
  --err: #c0392b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 32, 50, 0.12);
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.eyebrow { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange-600); margin-bottom: .6em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-head); font-weight: 800; font-size: 1.05rem;
  padding: .95em 1.6em; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: var(--navy-900); box-shadow: 0 6px 0 var(--orange-600); }
.btn-primary:hover { background: #ffb23a; }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; }

/* Top bar / header */
.topbar { background: var(--navy-900); color: #cfe0ea; font-size: .82rem; text-align: center; padding: 6px 12px; }
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 50; border-bottom: 3px solid var(--orange); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 52px; height: 52px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; }
.brand-name span { color: var(--orange); display: block; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; opacity: .9; }
.nav a:hover { opacity: 1; color: var(--orange); }
.header-call { padding: .65em 1.15em; font-size: .95rem; }
.header-call small { display: block; font-size: .7rem; font-weight: 600; opacity: .8; line-height: 1; }
@media (max-width: 860px) { .nav .nav-link { display: none; } }
@media (max-width: 480px) {
  .brand img { width: 42px; height: 42px; }
  .brand-name { font-size: 1rem; }
  .header-call .call-label { display: none; }
}

/* Client firm name beside the brand (client landing pages) */
.lockup { display: flex; align-items: center; gap: 14px; min-width: 0; max-width: 100%; }
.lockup .brand { flex: none; }
.partner { min-width: 0; }
.partner { display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.partner strong { color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
.partner img { max-height: 40px; width: auto; background: #fff; border-radius: 6px; padding: 4px 6px; }
.partner-divider { width: 1px; align-self: stretch; background: rgba(255,255,255,.25); margin: 0 4px; }
@media (max-width: 640px) {
  .site-header.lp .container { flex-wrap: wrap; justify-content: center; padding-top: 10px; padding-bottom: 10px; min-height: 0; }
  .site-header.lp .header-call { display: none; }
  .partner strong { font-size: .88rem; }
  .lockup { gap: 10px; }
  .lockup .brand { gap: 8px; }
  .lockup .brand img { width: 40px; height: 40px; }
  .lockup .brand-name { font-size: .95rem; }
}

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, #0b4a6b 0%, transparent 60%), linear-gradient(180deg, var(--navy) 0%, var(--navy-700) 100%); color: #fff; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: repeating-linear-gradient(90deg, var(--orange) 0 60px, transparent 60px 100px); opacity: .9; }
.hero .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 56px; padding-bottom: 72px; }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.15rem; color: #d6e4ec; max-width: 34em; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero-points svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 2px; }
@media (max-width: 920px) {
  .hero .container { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; padding-bottom: 48px; }
  .hero-copy .hero-points { display: none; }
}

/* Quiz card */
.quiz-card { background: #fff; color: var(--ink); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; scroll-margin-top: 90px; }
.quiz-head { background: var(--cream); padding: 16px 22px; border-bottom: 1px solid #f1e3c8; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz-head strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.quiz-head span { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.progress { height: 6px; background: #f1e3c8; }
.progress > i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .3s ease; }
.quiz-body { padding: 24px 22px 22px; min-height: 360px; }
.q-title { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: var(--navy); margin: 0 0 4px; }
.q-help { color: var(--muted); font-size: .92rem; margin: 0 0 16px; }
.options { display: grid; gap: 10px; }
.options.cols-2 { grid-template-columns: 1fr 1fr; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  font: inherit; font-weight: 600; color: var(--navy); background: #fff;
  border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
  transition: border-color .12s ease, background .12s ease, transform .08s ease;
}
.opt:hover { border-color: var(--orange); background: #fffaf1; }
.opt:focus-visible { outline: 3px solid rgba(245,162,30,.5); outline-offset: 2px; }
.opt.selected { border-color: var(--orange); background: #fff3dc; }
.opt .ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; color: var(--navy); }
.opt .ico svg { width: 20px; height: 20px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.back { background: none; border: 0; color: var(--muted); font: inherit; font-size: .92rem; cursor: pointer; padding: 6px 0; }
.back:hover { color: var(--navy); }
.step-count { font-size: .82rem; color: var(--muted); }

.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--navy); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); }
.field.invalid input, .field.invalid select { border-color: var(--err); }
.field .err { color: var(--err); font-size: .8rem; margin-top: 3px; display: none; }
.field.invalid .err { display: block; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row-2 { grid-template-columns: 1fr; gap: 0; } .options.cols-2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .74rem; line-height: 1.45; color: var(--muted); margin: 6px 0 14px; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.consent.invalid { color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #fdecea; color: var(--err); border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; display: none; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.secure-note svg { width: 14px; height: 14px; }

.done { text-align: center; padding: 18px 4px; }
.done .check { width: 72px; height: 72px; border-radius: 50%; background: #e6f5ec; color: var(--ok); display: grid; place-items: center; margin: 0 auto 14px; }
.done .check svg { width: 38px; height: 38px; }
.done h3 { font-size: 1.5rem; }
.done .call-box { background: var(--bg-soft); border-radius: 12px; padding: 14px; margin: 16px 0; }
.done .call-box a { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; text-decoration: none; color: var(--navy); }

/* Sections */
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.section.navy { background: var(--navy); color: #dbe7ee; }
.section.navy h2, .section.navy h3 { color: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section.navy .section-head p { color: #b9cdd9; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--navy); font-size: .95rem; }
.trust-item svg { width: 26px; height: 26px; color: var(--orange-600); flex: none; }
@media (max-width: 860px) { .trust-strip .container { grid-template-columns: 1fr 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -18px; left: 24px; width: 40px; height: 40px; border-radius: 50%; background: var(--orange); color: var(--navy-900); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 0 0 5px var(--bg-soft); }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; gap: 32px; } }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; background: #fff3dc; color: var(--orange-600); display: grid; place-items: center; margin-bottom: 14px; }
.card .ico svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .num { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--orange); color: var(--navy-900); font-family: var(--font-head); font-weight: 800; display: grid; place-items: center; font-size: .9rem; }
.checklist strong { color: #fff; display: block; }
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 28px; } }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-family: var(--font-head); font-weight: 700; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--orange-600); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 18px; color: var(--muted); }

.cta-band { background: var(--orange); color: var(--navy-900); text-align: center; padding: 56px 0; }
.cta-band h2 { color: var(--navy-900); }
.cta-band .btn-primary { background: var(--navy); color: #fff; box-shadow: 0 6px 0 var(--navy-900); }
.cta-band .btn-primary:hover { background: #0b4a6b; }

.firm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; gap: 22px; align-items: center; box-shadow: var(--shadow); }
.firm-card img { max-width: 140px; max-height: 70px; width: auto; }
.firm-card .firm-initial { flex: none; width: 70px; height: 70px; border-radius: 14px; background: var(--navy); color: var(--orange); font-family: var(--font-head); font-weight: 800; font-size: 1.8rem; display: grid; place-items: center; }
.firm-card p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .firm-card { flex-direction: column; text-align: center; } }

/* Footer */
.site-footer { background: var(--navy-900); color: #9fb6c3; font-size: .85rem; padding: 48px 0 28px; }
.site-footer a { color: #cfe0ea; }
.footer-top { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 20px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.disclosure { font-size: .84rem; line-height: 1.6; color: #b4c6d1; }
.disclosure strong { color: #fff; }
.disclosure p { margin-bottom: .8em; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.3rem; margin-top: 1.8em; }
.legal p, .legal li { color: #2b3d48; }
.legal .updated { color: var(--muted); font-size: .9rem; }

/* Sticky mobile call bar */
.mobile-call { display: none; }
@media (max-width: 640px) {
  .mobile-call { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--navy); border-top: 3px solid var(--orange); padding: 10px 14px; gap: 10px; }
  .mobile-call .btn { flex: 1; padding: .8em 1em; font-size: .98rem; }
  body.has-mobile-call { padding-bottom: 72px; }
}

/* Compact (quiz-first) landing variant */
.hero.compact .container { grid-template-columns: 1fr; max-width: 680px; gap: 20px; text-align: center; padding-top: 36px; padding-bottom: 56px; }
.hero.compact h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hero.compact .lead { margin-left: auto; margin-right: auto; }
.hero.compact .quiz-card { text-align: left; }
.hero-note { color: #b9cdd9; font-size: .85rem; margin: 0; }
@media (max-width: 640px) {
  .hero.compact .container { padding-top: 20px; gap: 14px; }
  .hero.compact .lead { display: none; }
}
