/* ============================================================
   VINPORT - styles for the static SEO pages (/vin-check/, /ar/... )
   Loaded after styles.css; reuses its nav, hero, footer and FAQ.
   ============================================================ */
.seo-page .nav-lang { padding: 8px 14px; font-size: 0.9rem; }
.seo-page .nav-cta { padding: 9px 16px; font-size: 0.9rem; }
.seo-page .nav-support span { display: inline; }
@media (max-width: 760px) {
  .seo-page .nav { gap: 14px; }
  .seo-page .nav-links { display: none; }
  .seo-page .nav-support span { display: none; }
  .seo-page .nav-cta { display: none; }
}

/* hero: shorter than the app's landing hero */
.hero-seo { padding: 44px 5vw 54px; text-align: center; color: #fff; }
.hero-seo h1 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); max-width: 900px; }
.hero-seo .sub { color: #C9D6E8; max-width: 760px; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.6; }
.hero-seo-full { padding-top: 64px; padding-bottom: 72px; }
.seo-crumb { font-size: 0.82rem; color: #9FC1F7; margin-bottom: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.seo-crumb a { color: #9FC1F7; }
.seo-crumb a:hover { color: #fff; }
.seo-crumb span { color: #5C7FB0; }
.hero-seo .vin-hint { color: #9FC1F7; }

/* article body */
.seo-article { max-width: 800px; margin: 0 auto; padding: 40px 5vw 10px; }
.seo-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 14px; }
.seo-sec { margin-bottom: 36px; }
.seo-sec h2 { font-size: 1.45rem; color: var(--navy); margin: 0 0 12px; letter-spacing: -0.3px; line-height: 1.3; }
.seo-sec h3 { font-size: 1.08rem; color: var(--navy); margin: 20px 0 8px; }
.seo-sec p { margin: 0 0 12px; color: #2B3A4B; line-height: 1.7; font-size: 1rem; }
.seo-sec ul, .seo-sec ol { margin: 0 0 14px; padding-inline-start: 24px; color: #2B3A4B; line-height: 1.7; }
.seo-sec li { margin-bottom: 6px; }
.seo-sec li b, .seo-sec p b { color: var(--navy); }
.seo-sec a { color: var(--blue); text-decoration: underline; text-decoration-color: #BFD4F6; text-underline-offset: 3px; }
.seo-sec a:hover { text-decoration-color: var(--blue); }

/* callouts */
.seo-tip, .seo-warn, .seo-example {
  border-radius: 14px; padding: 16px 18px; margin: 16px 0 18px; font-size: 0.96rem; line-height: 1.65;
  border: 1px solid var(--border); background: var(--surface);
}
.seo-tip { background: #EAF1FD; border-color: #BFD4F6; }
.seo-warn { background: #FFF4DE; border-color: #F0E0B8; }
.seo-example { background: #F4F6F9; }
.seo-tip p:last-child, .seo-warn p:last-child, .seo-example p:last-child { margin-bottom: 0; }

/* tables */
.seo-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: 0.93rem; background: var(--surface); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); }
.seo-table th, .seo-table td { padding: 11px 13px; border-bottom: 1px solid var(--border); text-align: start; vertical-align: top; }
.seo-table th { background: var(--navy); color: #fff; font-weight: 700; font-size: 0.86rem; letter-spacing: 0.3px; }
.seo-table tr:last-child td { border-bottom: 0; }
.seo-table td.yes { color: var(--risk-low); font-weight: 700; }
.seo-table td.no { color: var(--muted); }
.seo-table-wrap { overflow-x: auto; }

/* steps list (numbered cards) */
.seo-steps { counter-reset: s; list-style: none; padding: 0; margin: 10px 0 20px; display: grid; gap: 12px; }
.seo-steps li {
  counter-increment: s; position: relative; padding: 16px 18px 16px 62px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow);
}
[dir="rtl"] .seo-steps li { padding: 16px 62px 16px 18px; }
.seo-steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 16px; top: 14px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: var(--grad-blue); color: #fff; font-weight: 800;
}
.seo-steps li b { display: block; color: var(--navy); margin-bottom: 3px; }

/* level cards reuse .lvl-compare / .lvl-col from styles.css */
.seo-sec .lvl-compare { margin: 14px 0 20px; }
.seo-sec .lvl-col ul { padding: 0; margin-top: 14px; }
.seo-sec .lvl-col li { margin: 0; }
.seo-sec .lvl-col .lvl-note { margin-top: 12px; }
.lvl-fullc .lvl-note, .lvl-fullc li { color: #DCE7F5; }

/* checklist */
.seo-check { list-style: none; padding: 0; margin: 10px 0 18px; }
.seo-check li { padding: 7px 0 7px 30px; position: relative; }
[dir="rtl"] .seo-check li { padding: 7px 30px 7px 0; }
.seo-check li::before { content: "✓"; position: absolute; inset-inline-start: 4px; top: 7px; color: var(--risk-low); font-weight: 800; }
.seo-flags li::before { content: "⚠"; color: var(--risk-high); }

/* FAQ */
.seo-faq .faq { display: grid; gap: 10px; }
.seo-faq .faq-item summary { padding-inline-end: 44px; }

/* CTA band */
.seo-cta {
  margin: 40px 5vw 0; padding: 40px 5vw 46px; text-align: center; border-radius: 22px;
  background: linear-gradient(165deg, var(--navy) 45%, #0F3156 80%, #123A63 100%); color: #fff;
  max-width: 1160px; margin-left: auto; margin-right: auto;
}
.seo-cta h2 { font-size: 1.6rem; margin-bottom: 8px; }
.seo-cta p { color: #C9D6E8; max-width: 640px; margin: 0 auto 22px; }
.seo-cta .vin-hint { color: #9FC1F7; }

/* related pages */
.seo-related { max-width: 1160px; margin: 0 auto; padding: 48px 5vw 20px; }
.seo-related h2 { font-size: 1.3rem; color: var(--navy); margin-bottom: 16px; }
.seo-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.seo-related-grid a {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; box-shadow: var(--shadow); color: var(--ink); transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.seo-related-grid a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.seo-related-grid b { display: block; color: var(--navy); margin-bottom: 6px; line-height: 1.35; }
.seo-related-grid span { font-size: 0.88rem; color: var(--muted); display: block; line-height: 1.5; }

/* guides index cards */
.seo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin: 10px 0 10px; }
.seo-cards a {
  display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px;
  box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform 0.18s, box-shadow 0.18s;
}
.seo-cards a:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.seo-cards .ico { font-size: 1.7rem; margin-bottom: 10px; display: block; }
.seo-cards b { display: block; color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; line-height: 1.35; }
.seo-cards span { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }

/* support options reuse .sup-list / .sup-opt from styles.css */
.seo-sec .sup-list { margin-top: 6px; }
.seo-sec .sup-opt { text-decoration: none; }
.seo-sec .sup-opt b { display: block; }
.seo-sec .sup-opt span.sup-txt span { color: var(--muted); font-size: 0.9rem; }

/* The static home snapshot in index.html (replaced by app.js on load) */
#app .seo-links { max-width: 1160px; margin: 0 auto; padding: 0 5vw 60px; }
.seo-links-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.seo-links-grid a { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; color: var(--navy); font-weight: 700; box-shadow: var(--shadow); }
.seo-links-grid a:hover { border-color: var(--blue); color: var(--blue); }
.footer-guides { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; font-size: 0.84rem; }
.footer-guides a { color: #C9D6E8; }
.footer-guides a:hover { color: #fff; text-decoration: underline; }

/* ============ car model photo cards (/cars/) ============ */
.car-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 10px 0; }
.car-card {
  position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: var(--navy); box-shadow: var(--shadow); color: #fff; text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.car-card:hover img { transform: scale(1.04); }
.car-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 37, 64, 0) 35%, rgba(10, 37, 64, 0.55) 65%, rgba(10, 37, 64, 0.92) 100%);
}
.car-card-body { position: absolute; inset-inline: 0; bottom: 0; padding: 16px 18px; z-index: 1; }
.car-card-body b { display: block; font-size: 1.2rem; margin-bottom: 4px; letter-spacing: -0.2px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4); }
.car-card-body span { display: block; font-size: 0.86rem; color: #DCE7F5; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.car-cards-small { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.car-cards-small .car-card-body { padding: 12px 14px; }
.car-cards-small .car-card-body b { font-size: 1rem; }
.car-cards-small .car-card-body span { display: none; }
.car-figure { margin: 0 0 28px; }
.car-figure img { width: 100%; height: auto; border-radius: 18px; box-shadow: var(--shadow); display: block; }
.car-figure figcaption { font-size: 0.78rem; color: var(--muted); margin-top: 8px; }
.car-figure figcaption a { color: var(--muted); }
.seo-sec .car-card, .seo-sec .car-card b, .seo-sec .car-card:hover { color: #fff; text-decoration: none; }
.seo-sec .car-card-body b { color: #fff; }

/* ============ title-brand cards (salvage page) ============ */
.brand-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; }
.brand-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; margin: 0 0 18px; }
.brand {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  border-inline-start: 6px solid var(--muted);
}
.brand.red { border-inline-start-color: #C62828; background: linear-gradient(90deg, #FFF0F0, #fff 40%); }
.brand.orange { border-inline-start-color: #EF6C00; background: linear-gradient(90deg, #FFF3E6, #fff 40%); }
.brand.yellow { border-inline-start-color: #F9A825; background: linear-gradient(90deg, #FFFBE6, #fff 40%); }
.brand.green { border-inline-start-color: #2E7D32; background: linear-gradient(90deg, #EAF6EB, #fff 40%); }
[dir="rtl"] .brand.red, [dir="rtl"] .brand.orange, [dir="rtl"] .brand.yellow, [dir="rtl"] .brand.green { background-image: none; }
[dir="rtl"] .brand.red { background: linear-gradient(270deg, #FFF0F0, #fff 40%); }
[dir="rtl"] .brand.orange { background: linear-gradient(270deg, #FFF3E6, #fff 40%); }
[dir="rtl"] .brand.yellow { background: linear-gradient(270deg, #FFFBE6, #fff 40%); }
[dir="rtl"] .brand.green { background: linear-gradient(270deg, #EAF6EB, #fff 40%); }
.brand-ico { font-size: 1.6rem; line-height: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #F4F6F9; flex: 0 0 40px; }
.brand-txt { min-width: 0; }
.brand-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 4px; }
.brand-head b { color: var(--navy); font-size: 1.02rem; }
.seo-sec .brand-txt p { margin: 0; font-size: 0.93rem; color: #4B5563; line-height: 1.55; }
.brand-pill { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; color: #fff; }
.brand-pill.red { background: #C62828; }
.brand-pill.orange { background: #EF6C00; }
.brand-pill.yellow { background: #F9A825; color: #3b2a00; }
.brand-pill.green { background: #2E7D32; }

/* ============ VINPORT vs Carfax cards (car history page) ============ */
.vs { margin: 6px 0 18px; }
.vs-head { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.vs-brand { text-align: center; font-weight: 800; font-size: 0.84rem; letter-spacing: 0.5px; text-transform: uppercase; padding: 10px 10px; border-radius: 12px; }
.vs-brand.them { background: #EEF1F5; color: #4B5563; }
.vs-brand.us { background: var(--navy); color: #fff; }
.vs-list { display: grid; gap: 10px; }
.vs-row { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 10px; align-items: stretch; }
.vs-feat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.vs-ico { font-size: 1.3rem; line-height: 1; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #F4F6F9; flex: 0 0 38px; }
.vs-feat b { color: var(--navy); font-size: 0.96rem; line-height: 1.35; }
.vs-cell { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); font-weight: 700; font-size: 0.93rem; line-height: 1.35; }
.vs-val { display: flex; align-items: center; gap: 10px; }
.vs-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; font-weight: 900; color: #fff; flex: 0 0 26px; }
.vs-yes { background: #EAF6EB; border-color: #BFE3C3; color: #1B5E20; }
.vs-yes .vs-mark { background: #2E7D32; }
.vs-no { background: #FFF0F0; border-color: #F3C2C2; color: #8E1C1C; }
.vs-no .vs-mark { background: #C62828; }
.vs-warn { background: #FFF3E6; border-color: #F5D0A9; color: #8A4B00; }
.vs-warn .vs-mark { background: #EF6C00; }
.vs-cell.us { border-width: 2px; }
.vs-who { display: none; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.7; }
.vs-score { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.vs-score span { padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; }
.vs-score b { font-weight: 900; }
.vs-score-us { background: var(--navy); color: #fff; }
.vs-score-them { background: #EEF1F5; color: #4B5563; }
@media (max-width: 640px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vs-feat { grid-column: 1 / -1; }
  .vs-who { display: block; }
  .vs-cell { padding: 10px 12px; font-size: 0.9rem; }
}
