/* Sell Your Salvage Car — site styles */
:root {
  --navy: #0e2a47;
  --navy-dark: #091d33;
  --orange: #ff9900;
  --orange-dark: #e68a00;
  --blue: #1e6fd9;
  --ink: #1f2937;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --bg: #f5f8fb;
  --ok: #1a9e55;
  --warn: #c0392b;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(14, 42, 71, 0.08);
  --shadow-lg: 0 8px 30px rgba(14, 42, 71, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff; border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 42px; height: 42px; }
.logo-text { font-weight: 800; font-size: 1.05rem; color: var(--navy); line-height: 1.15; }
.logo-text span { color: var(--orange); }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.main-nav a:hover { color: var(--blue); }
.nav-phone {
  background: var(--orange); color: #fff !important; padding: 9px 16px;
  border-radius: 999px; font-weight: 800; white-space: nowrap;
}
.nav-phone:hover { background: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 20px; border-top: 1px solid var(--line); }
  .nav-phone { border-radius: 0; text-align: center; }
}

/* Buttons */
.button {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-weight: 800; font-size: 1rem; border-radius: 10px; padding: 14px 26px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.button-primary { background: var(--orange); color: #fff; }
.button-primary:hover { background: var(--orange-dark); }
.button-primary:active { transform: translateY(1px); }
.button-secondary { background: #fff; color: var(--navy); border: 2px solid var(--navy); padding: 12px 24px; }
.button-secondary:hover { background: var(--navy); color: #fff; }
.button[disabled] { opacity: 0.6; cursor: wait; }
.button-block { display: block; width: 100%; text-align: center; }

/* Hero */
.hero { background: linear-gradient(160deg, var(--navy) 0%, #15395f 60%, #1a4572 100%); color: #fff; padding: 48px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: start; }
.hero h1 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.7rem); margin: 0 0 18px; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero-sub { font-size: 1.08rem; color: #d7e3f0; margin: 0 0 22px; }
.hero-points { list-style: none; margin: 0 0 26px; padding: 0; }
.hero-points li { padding-left: 32px; position: relative; margin-bottom: 11px; font-weight: 600; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--ok);
  color: #fff; font-size: 0.8rem; font-weight: 900; text-align: center; line-height: 22px;
}
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: #bfd3e6; font-size: 0.9rem; }
.hero-trust strong { color: #fff; display: block; font-size: 1.25rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* Quote widget */
.quote-widget {
  background: #fff; color: var(--ink); border-radius: 16px;
  box-shadow: var(--shadow-lg); padding: 26px; max-width: 460px; width: 100%;
  justify-self: end;
}
@media (max-width: 860px) { .quote-widget { justify-self: stretch; max-width: none; } }
.quote-widget h2 { margin: 0 0 6px; font-size: 1.3rem; }
.quote-widget .quote-tagline { margin: 0 0 18px; color: var(--muted); font-size: 0.92rem; }

.qw-step { display: none; }
.qw-step.active { display: block; }

.reg-input {
  display: flex; align-items: stretch; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden;
  margin-bottom: 12px; background: #ffd60a;
}
.reg-input .reg-flag {
  background: #1d4ed8; color: #fff; font-size: 0.65rem; font-weight: 800;
  display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 0 9px;
}
.reg-input input {
  flex: 1; border: 0; background: #ffd60a; padding: 14px 12px;
  font-size: 1.45rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  font-family: "Arial Narrow", Arial, sans-serif; min-width: 0; outline: none; text-align: center;
}
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #c7d2de; border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }

.qw-error { display: none; background: #fdeaea; color: var(--warn); border: 1px solid #f5c6c6; padding: 10px 14px; border-radius: 8px; font-size: 0.9rem; margin-bottom: 12px; }
.qw-error.show { display: block; }
.qw-note { font-size: 0.82rem; color: var(--muted); margin-top: 12px; text-align: center; }
.qw-back { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 0.85rem; padding: 0; margin-bottom: 12px; text-decoration: underline; }

/* Vehicle summary card */
.vehicle-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}
.vehicle-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.vehicle-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 0.88rem; }
.vehicle-card dt { color: var(--muted); }
.vehicle-card dd { margin: 0; font-weight: 600; }
.vehicle-flag { display: inline-block; border-radius: 6px; padding: 2px 8px; font-size: 0.78rem; font-weight: 700; }
.vehicle-flag.ok { background: #e3f6ec; color: var(--ok); }
.vehicle-flag.bad { background: #fdeaea; color: var(--warn); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid #c7d2de; background: #fff; color: var(--ink);
  padding: 8px 14px; border-radius: 999px; font-size: 0.88rem; font-weight: 600; cursor: pointer;
}
.chip.selected { background: var(--navy); border-color: var(--navy); color: #fff; }

.radio-cards { display: grid; gap: 8px; }
.radio-card {
  display: flex; align-items: center; gap: 10px; border: 1.5px solid #c7d2de;
  border-radius: 10px; padding: 11px 14px; cursor: pointer; font-weight: 600; font-size: 0.93rem;
}
.radio-card input { accent-color: var(--orange); width: 18px; height: 18px; }
.radio-card.selected { border-color: var(--orange); background: #fff7eb; }

.toggle-row { display: flex; gap: 10px; }
.toggle-row .chip { flex: 1; text-align: center; }

/* Offer result */
.offer-box { text-align: center; padding: 10px 0 4px; }
.offer-box .offer-label { color: var(--muted); font-size: 0.92rem; }
.offer-amount { font-size: 3rem; font-weight: 900; color: var(--navy); margin: 6px 0; }
.offer-amount small { font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.offer-up {
  background: #e3f6ec; color: var(--ok); border-radius: 10px; padding: 12px 16px;
  font-weight: 700; font-size: 0.95rem; margin: 14px 0;
}
.offer-next { text-align: left; background: var(--bg); border-radius: 10px; padding: 16px; font-size: 0.92rem; }
.offer-next ol { margin: 8px 0 0; padding-left: 20px; }

/* Sections */
section { padding: 58px 0; }
section.alt { background: var(--bg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 38px; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; }

.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .cards-3 { grid-template-columns: 1fr; } }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.info-card .step-no {
  width: 42px; height: 42px; border-radius: 50%; background: var(--orange); color: #fff;
  font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; margin-bottom: 14px;
}
.info-card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.info-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* Comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.compare-table th { background: var(--navy); color: #fff; }
.compare-table td:first-child { font-weight: 600; }
.tick { color: var(--ok); font-weight: 900; }
.cross { color: var(--warn); font-weight: 900; }

/* Coverage */
.coverage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .coverage-grid { grid-template-columns: 1fr; } }
.coverage-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.coverage-card h3 { margin: 0 0 10px; }
.coverage-card ul { columns: 2; margin: 0; padding-left: 18px; font-size: 0.92rem; color: var(--muted); }
.coverage-card li { margin-bottom: 4px; }
.coverage-card a { color: var(--blue); text-decoration: none; }
.coverage-card a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; background: #fff; }
.faq-item summary {
  cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--navy);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--orange); font-weight: 900; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 18px 16px; color: var(--muted); font-size: 0.95rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.blog-card-image { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-card-content { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-meta { display: flex; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.blog-meta span + span { padding-left: 12px; border-left: 1px solid var(--line); }
.blog-card h3 { margin: 0; font-size: 1.05rem; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { color: var(--blue); }
.blog-card p { margin: 0; color: var(--muted); font-size: 0.9rem; flex: 1; }
.blog-card .button { align-self: flex-start; font-size: 0.85rem; padding: 9px 18px; }
.blog-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 30px; flex-wrap: wrap; }
.blog-tab {
  border: 1.5px solid var(--navy); background: #fff; color: var(--navy);
  padding: 10px 22px; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 0.95rem;
}
.blog-tab.active, .blog-tab:hover { background: var(--navy); color: #fff; }

/* Article page */
.article-wrap { max-width: 780px; margin: 0 auto; padding: 40px 20px 60px; }
.article-wrap .breadcrumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.article-wrap .breadcrumbs a { color: var(--blue); text-decoration: none; }
.article-wrap h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.article-meta { color: var(--muted); font-size: 0.88rem; margin-bottom: 22px; }
.article-hero { width: 100%; border-radius: var(--radius); margin-bottom: 26px; }
.article-body h2 { margin-top: 34px; }
.article-body img { border-radius: 10px; }
.article-cta {
  background: var(--navy); color: #fff; border-radius: var(--radius);
  padding: 28px; text-align: center; margin-top: 40px;
}
.article-cta h2 { color: #fff; margin: 0 0 8px; }
.article-cta p { color: #d7e3f0; margin: 0 0 18px; }

/* CTA band */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 54px 0; }
.cta-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(1.4rem, 3vw, 2rem); }
.cta-band p { color: #d7e3f0; margin: 0 0 22px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b8c9da; padding: 46px 0 28px; font-size: 0.92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.site-footer a { color: #b8c9da; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.85rem; }

/* Utility */
.hidden { display: none !important; }
.spinner {
  display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; vertical-align: -3px; margin-right: 8px;
}
@keyframes spin { to { transform: rotate(360deg); } }
