/* QCars — light service theme */
:root {
  --ink: #0f1b2d;
  --ink-2: #33415c;
  --muted: #5b6b83;
  --line: #e3e8ef;
  --bg: #ffffff;
  --soft: #f5f7fa;
  --soft-2: #edf3fc;
  --brand: #0b3d91;
  --brand-2: #1557c0;
  --brand-ink: #ffffff;
  --accent: #ffb703;
  --accent-2: #f4a300;
  --accent-ink: #1a1300;
  --ok: #157a4b;
  --ok-bg: #e9f7ef;
  --warn: #8a5300;
  --warn-bg: #fff5dc;
  --note-bg: #eef4ff;
  --foot-bg: #0c1a33;
  --foot-ink: #c9d3e3;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  --header-h: 64px;
  color-scheme: light;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-underline-offset: .18em; }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.015em; color: var(--ink); }
p, ul, ol { margin: 0 0 1em; }
button { font: inherit; color: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm);
}
.skip-link:focus { top: 8px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 760px) { .wrap { padding: 0 24px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 46px; padding: 10px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-cta { background: var(--accent); color: var(--accent-ink); }
.btn-cta:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn-ghost { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn-ghost:hover { background: var(--brand); color: var(--brand-ink); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
}
.header-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { flex: none; margin-right: auto; }
.logo img { width: 132px; height: 32px; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer;
}
.bars, .bars::before, .bars::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.bars { position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; }
.bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 16px 20px;
}
.menu { list-style: none; margin: 0; padding: 0; }
.menu > li > a, .sub-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 12px 4px; border: 0; background: none; cursor: pointer;
  font-weight: 650; color: var(--ink); text-decoration: none; text-align: left;
  border-bottom: 1px solid var(--line);
}
.caret { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .2s; }
.sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
.sub { list-style: none; margin: 0; padding: 4px 0 8px 12px; display: none; }
.has-sub.is-open .sub { display: block; }
.sub a { display: block; padding: 8px 4px; color: var(--ink-2); text-decoration: none; }
.sub a:hover, .menu a[aria-current="page"] { color: var(--brand-2); }
.nav-cta { margin-top: 16px; width: 100%; }

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; gap: 20px; position: static;
    padding: 0; border: 0; box-shadow: none; max-height: none; overflow: visible; background: none;
  }
  .menu { display: flex; gap: 4px; }
  .menu > li { position: relative; }
  .menu > li > a, .sub-toggle {
    width: auto; padding: 8px 12px; border: 0; border-radius: var(--radius-sm); gap: 6px;
  }
  .menu > li > a:hover, .sub-toggle:hover, .has-sub.is-current > .sub-toggle { background: var(--soft); }
  .sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 270px; padding: 8px;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  }
  .sub::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
  .has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.is-open .sub { display: block; }
  .sub a { padding: 8px 12px; border-radius: 6px; }
  .sub a:hover { background: var(--soft); }
  .nav-cta { margin: 0; width: auto; }
}

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(21, 87, 192, .12), transparent 60%),
    linear-gradient(180deg, var(--soft-2), #fff);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 36px;
}
.hero-in { display: grid; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(1.85rem, 4.6vw, 2.8rem); margin: 0 0 14px; max-width: 22ch; }
.hero-home h1 { max-width: 20ch; }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chips li {
  font-size: .85rem; font-weight: 600; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .9rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a3afc2; }
.crumbs a { color: var(--muted); }
.hero-art { display: none; }
.hero-art.has-img { display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero { padding: 48px 0 56px; }
  .hero-in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 48px; }
  .hero-art {
    display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 20px;
    background:
      repeating-linear-gradient(90deg, transparent 0 34px, rgba(255, 255, 255, .5) 34px 58px) center 78% / 100% 6px no-repeat,
      linear-gradient(160deg, var(--brand-2), var(--brand) 70%);
    box-shadow: var(--shadow); overflow: hidden;
  }
  .hero-art.has-img { display: block; background: var(--soft); }
  .hero-badge {
    display: grid; place-items: center; width: 132px; height: 132px; border-radius: 32px;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  }
  .hero-ico { width: 72px; height: 72px; }
}

/* ---------- layout ---------- */
.layout { display: grid; gap: 40px; padding-top: 36px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; }
  .layout-wide { grid-template-columns: minmax(0, 1fr); }
}
.side { display: none; }
@media (min-width: 1024px) {
  .side { display: block; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
}
.side-h { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.toc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.toc { list-style: none; margin: 0; padding: 0; counter-reset: toc; font-size: .95rem; }
.toc a {
  display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line);
  color: var(--ink-2); text-decoration: none; line-height: 1.35;
}
.toc a:hover { color: var(--brand-2); }
.toc a.is-active { border-left-color: var(--brand-2); color: var(--brand); font-weight: 650; }
.side-cta { margin-top: 16px; border-radius: var(--radius); padding: 18px; background: var(--soft-2); font-size: .95rem; }
.side-cta p:not(.side-h) { color: var(--ink-2); }

/* mobile table of contents */
.toc-m { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 28px; background: var(--soft); }
.toc-m summary { cursor: pointer; padding: 12px 16px; font-weight: 700; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m summary::after { content: "+"; float: right; color: var(--brand-2); font-weight: 700; }
.toc-m[open] summary::after { content: "−"; }
.toc-m ol { margin: 0; padding: 0 16px 14px 36px; font-size: .95rem; }
.toc-m a { color: var(--ink-2); }
@media (min-width: 1024px) { .toc-m { display: none; } }

/* ---------- prose ---------- */
.prose { min-width: 0; }
.prose > section, .prose > .faq { scroll-margin-top: calc(var(--header-h) + 16px); }
.prose > section + section, .prose > .faq { margin-top: 44px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.75rem); margin: 0 0 14px; }
.prose h3 { font-size: 1.18rem; margin: 26px 0 8px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--brand-2); }
.prose strong { color: var(--ink); }
.layout-wide .prose { max-width: 860px; }
.updated { margin-top: 40px; font-size: .9rem; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: var(--radius); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 520px; }
.table-wrap caption { text-align: left; padding: 12px 16px 0; font-size: .9rem; color: var(--muted); caption-side: bottom; padding-bottom: 12px; }
.table-wrap th, .table-wrap td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table-wrap thead th { background: var(--soft); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr:nth-child(even) td { background: #fafbfd; }
.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }

/* callouts */
.note, .warn, .tip {
  border-radius: var(--radius); padding: 16px 18px; margin: 0 0 1.4em; border-left: 4px solid;
}
.note { background: var(--note-bg); border-color: var(--brand-2); }
.warn { background: var(--warn-bg); border-color: var(--accent-2); color: #3d2a00; }
.tip { background: var(--ok-bg); border-color: var(--ok); }
.note > :last-child, .warn > :last-child, .tip > :last-child { margin-bottom: 0; }

/* numbered steps */
.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 18px 52px; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; font-weight: 700; font-size: .95rem;
}

/* inline CTA */
.cta-box {
  display: grid; gap: 4px; margin: 28px 0; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #e8efff;
}
.cta-box-t { font-size: 1.2rem; font-weight: 750; color: #fff; margin: 0; }
.cta-box .btn { justify-self: start; margin-top: 8px; }

/* ---------- FAQ ---------- */
.faq-i { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; background: #fff; }
.faq-i[open] { border-color: #c9d6ea; box-shadow: var(--shadow); }
.faq-i summary {
  list-style: none; cursor: pointer; padding: 16px 52px 16px 18px; position: relative;
  font-weight: 650; line-height: 1.4;
}
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  background:
    linear-gradient(var(--brand-2), var(--brand-2)) center / 14px 2px no-repeat,
    linear-gradient(var(--brand-2), var(--brand-2)) center / 2px 14px no-repeat;
  transition: transform .2s;
}
.faq-i[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 18px 16px; color: var(--ink-2); }
.faq-a > :last-child { margin-bottom: 0; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card {
  display: flex; flex-direction: column; gap: 6px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.card:hover { border-color: #b9c9e4; box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.card-ico {
  width: 44px; height: 44px; padding: 10px; margin-bottom: 6px; border-radius: 12px;
  background: var(--soft-2); color: var(--brand);
}
.card-t { font-weight: 750; font-size: 1.05rem; }
.card-d { color: var(--muted); font-size: .95rem; line-height: 1.5; flex: 1; }
.card-more { color: var(--brand-2); font-weight: 650; font-size: .92rem; margin-top: 4px; }
.services { margin-bottom: 8px; }
.cards-404 { padding: 40px 0 64px; }

.related { background: var(--soft); border-top: 1px solid var(--line); padding: 48px 0; }
.related h2 { font-size: 1.5rem; margin: 0 0 20px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brand); color: #dce6fa; padding: 40px 0; }
.cta-band-in { display: grid; gap: 6px; justify-items: start; }
.cta-band-t { font-size: 1.45rem; font-weight: 750; color: #fff; margin: 0; }
.cta-band .btn { margin-top: 10px; }
@media (min-width: 900px) {
  .cta-band-in { grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; }
  .cta-band-in > p:not(.cta-band-t) { grid-column: 1; margin: 0; }
  .cta-band .btn { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding: 48px 0 24px; font-size: .95rem; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.foot-brand p { max-width: 44ch; margin-top: 14px; }
.foot-h { color: #fff; font-weight: 700; margin: 0 0 10px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 6px; }
.site-footer a { color: var(--foot-ink); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; color: #93a1b8; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.is-visible { transform: none; }
@media (max-width: 1023px) { body { padding-bottom: 72px; } }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- maintenance checklist ---------- */
.checklist { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 1.6em; background: #fff; }
.checklist-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 16px; }
.checklist-progress { margin: 0; font-weight: 650; }
.bar { flex: 1 1 160px; height: 8px; border-radius: 99px; background: #e3e9f2; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--ok); transition: width .25s; }
.checklist-actions { display: flex; gap: 8px; }
.checklist-actions button {
  border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
}
.checklist-actions button:hover { border-color: var(--brand-2); color: var(--brand-2); }
.checklist fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.checklist legend { font-weight: 750; padding: 0; margin-bottom: 6px; color: var(--brand); }
.checklist label {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
.checklist label:hover { background: var(--soft); }
.checklist input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: var(--ok); }
.checklist input:checked + span { color: var(--muted); text-decoration: line-through; }

/* ---------- draft markers (removed before release) ---------- */
.draft {
  border: 2px dashed #e0b100; background: #fffbea; color: #6b5200;
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: .92rem;
}
.draft::before { content: "DRAFT · "; font-weight: 800; letter-spacing: .04em; }

/* ---------- motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  .site-header, .site-footer, .sticky-cta, .side, .related, .cta-band, .cta-box, .hero-actions, .hero-art, .checklist-actions { display: none !important; }
  body { padding: 0; font-size: 12pt; }
  .hero { background: none; padding: 0 0 12pt; border: 0; }
  .faq-i { break-inside: avoid; }
  .faq-i .faq-a { display: block; }
  a { color: inherit; text-decoration: none; }
}
