/* XccelerAIte demo theme. Brand colours come from the demo profile via --xc-primary / --xc-accent. */
:root {
  --xc-primary: #0b1f33;
  --xc-accent: #35c6f4;
  --xc-ink: #14202b;
  --xc-muted: #5b6b78;
  --xc-line: #dde4ea;
  --xc-soft: #f4f6f8;
  --xc-white: #fff;
  --xc-radius: 12px;
  --xc-shadow: 0 2px 14px rgba(11, 31, 51, .08);
  --xc-font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
body { margin: 0; font-family: var(--xc-font); color: var(--xc-ink); background: var(--xc-white); line-height: 1.55; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--xc-primary); }
.xc-wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.xc-main { min-height: 60vh; }
.xc-skip { position: absolute; left: -999px; }
.xc-skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 100; }
:focus-visible { outline: 3px solid var(--xc-accent); outline-offset: 2px; }

/* Header and footer */
.xc-header { background: var(--xc-primary); color: #fff; position: sticky; top: 0; z-index: 50; }
.xc-header__inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.xc-logo { color: #fff; text-decoration: none; display: inline-flex; align-items: center; }
.xc-logo img { max-height: 42px; width: auto; }
.xc-logo__text { font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; }
.xc-nav { margin-left: auto; }
.xc-menu, .xc-footer__menu { list-style: none; display: flex; gap: 1.4rem; margin: 0; padding: 0; flex-wrap: wrap; }
.xc-menu a { color: #fff; text-decoration: none; font-weight: 500; }
.xc-menu a:hover, .xc-menu .current-menu-item a { color: var(--xc-accent); }
.xc-header__phone { color: #fff; text-decoration: none; font-weight: 600; white-space: nowrap; }
.xc-nav-toggle { display: none; margin-left: auto; background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: .4rem .8rem; font: inherit; }
.xc-footer { background: var(--xc-soft); border-top: 1px solid var(--xc-line); margin-top: 4rem; padding: 2.5rem 0 1rem; }
.xc-footer .xc-logo, .xc-footer .xc-logo__text { color: var(--xc-primary); }
.xc-footer__grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.xc-footer__menu a { color: var(--xc-muted); text-decoration: none; }
.xc-demo-notice { color: var(--xc-muted); font-size: .85rem; border-top: 1px solid var(--xc-line); padding-top: 1rem; margin-top: 1.5rem; }
/* Five menu items plus the phone number need ~1080px; collapse below that. */
@media (max-width: 1080px) {
  .xc-nav-toggle { display: inline-block; }
  .xc-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: var(--xc-primary); padding: 1rem 1.25rem; }
  .xc-nav.is-open { display: block; }
  .xc-menu { flex-direction: column; gap: .8rem; }
  .xc-header__phone { display: none; }
}

/* Buttons, cards, notices */
.xc-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: 999px; border: 2px solid var(--xc-primary); background: #fff; color: var(--xc-primary); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.xc-btn:hover { background: var(--xc-primary); color: #fff; }
.xc-btn--accent { background: var(--xc-accent); border-color: var(--xc-accent); color: var(--xc-primary); }
.xc-btn--accent:hover { filter: brightness(.95); background: var(--xc-accent); color: var(--xc-primary); }
.xc-btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.xc-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.xc-actions--stack { flex-direction: column; }
.xc-actions--stack .xc-btn { width: 100%; }
.xc-cards { display: grid; gap: 1.2rem; }
.xc-cards--2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.xc-cards--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.xc-cards--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.xc-card { background: #fff; border: 1px solid var(--xc-line); border-radius: var(--xc-radius); padding: 1.4rem; box-shadow: var(--xc-shadow); }
.xc-card h3, .xc-h3 { margin: 0 0 .5rem; font-size: 1.1rem; color: var(--xc-primary); }
.xc-card p { margin: 0; color: var(--xc-muted); }
.xc-card--link { text-decoration: none; display: flex; flex-direction: column; gap: .4rem; transition: transform .15s, box-shadow .15s; }
.xc-card--link:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(11,31,51,.12); }
.xc-card__more { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--xc-primary); }
.xc-metric { font-size: 1.6rem; font-weight: 700; color: var(--xc-primary); }
.xc-notice { background: var(--xc-soft); border-left: 4px solid var(--xc-accent); padding: .8rem 1rem; border-radius: 0; color: var(--xc-ink); }
.xc-empty, .xc-small { color: var(--xc-muted); }
.xc-small { font-size: .85rem; }
.xc-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--xc-accent); margin: 0 0 .5rem; }
.xc-lead { font-size: 1.15rem; color: var(--xc-muted); max-width: 65ch; }
.xc-badge { position: absolute; top: .7rem; left: .7rem; background: var(--xc-accent); color: var(--xc-primary); font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; }
.xc-tag { font-style: normal; font-size: .75rem; color: var(--xc-muted); border: 1px solid var(--xc-line); border-radius: 999px; padding: 0 .5rem; white-space: nowrap; }
.xc-prose { max-width: 75ch; }
.xc-page-head { padding: 2.5rem 0 1rem; }
.xc-page-head h1 { margin: 0 0 .4rem; color: var(--xc-primary); }
.xc-crumbs { font-size: .9rem; color: var(--xc-muted); margin: 1.5rem 0 0; }

/* Hero */
.xc-hero { background: var(--xc-primary) center/cover no-repeat; color: #fff; padding: clamp(3rem, 8vw, 6.5rem) 0; }
.xc-hero__inner { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.xc-hero__title { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; margin: 0 0 1rem; max-width: 18ch; text-wrap: balance; }
.xc-hero__sub { font-size: 1.15rem; max-width: 50ch; margin: 0 0 1.8rem; opacity: .9; }

/* Stock */
.xc-vgrid { display: grid; gap: 1.3rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.xc-vcard { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--xc-line); border-radius: var(--xc-radius); overflow: hidden; box-shadow: var(--xc-shadow); transition: transform .15s; }
.xc-vcard:hover { transform: translateY(-2px); }
.xc-vcard__img { position: relative; aspect-ratio: 16 / 10; background: var(--xc-soft); }
.xc-vcard__img img { width: 100%; height: 100%; object-fit: cover; }
.xc-vcard__body { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem 1.2rem; }
.xc-vcard__title { font-weight: 700; color: var(--xc-primary); }
.xc-vcard__spec, .xc-vcard__meta { color: var(--xc-muted); font-size: .9rem; }
.xc-vcard__price { font-size: 1.3rem; font-weight: 700; margin-top: .3rem; }
.xc-filters { display: flex; gap: 1rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.xc-field { display: grid; gap: .3rem; font-size: .9rem; color: var(--xc-muted); }
.xc-field input, .xc-field select, .xc-field textarea { font: inherit; color: var(--xc-ink); padding: .6rem .7rem; border: 1px solid var(--xc-line); border-radius: 8px; background: #fff; min-width: 180px; }

/* Vehicle detail */
.xc-vdp__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 2rem; margin-top: 1rem; align-items: start; }
.xc-vdp__hero, .xc-vdp__video { border-radius: var(--xc-radius); width: 100%; }
.xc-vdp__side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--xc-line); border-radius: var(--xc-radius); padding: 1.4rem; box-shadow: var(--xc-shadow); }
.xc-vdp__title { margin: 0 0 .3rem; font-size: 1.6rem; color: var(--xc-primary); }
.xc-vdp__headline { color: var(--xc-muted); margin: 0 0 .6rem; }
.xc-vdp__price { font-size: 2rem; font-weight: 700; margin: 0 0 1rem; }
.xc-specs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1rem; margin: 0 0 1.2rem; }
.xc-specs dt { font-size: .8rem; color: var(--xc-muted); }
.xc-specs dd { margin: 0; font-weight: 600; }
.xc-vdp section { margin-top: 2.5rem; }
@media (max-width: 860px) { .xc-vdp__grid { grid-template-columns: 1fr; } .xc-vdp__side { position: static; } }
.xc-compare { position: relative; margin: 1.2rem 0 0; border-radius: var(--xc-radius); overflow: hidden; }
.xc-compare img { width: 100%; }
.xc-compare__after { position: absolute; inset: 0; width: 50%; overflow: hidden; }
.xc-compare__after img { width: auto; max-width: none; height: 100%; }
.xc-compare__range { position: absolute; inset: auto 0 2.2rem; width: 100%; }
.xc-compare figcaption { font-size: .85rem; color: var(--xc-muted); padding: .5rem 0; }
.xc-checklist { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .7rem; }
.xc-checklist li { display: flex; gap: .7rem; align-items: baseline; }
.xc-tick { flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%; display: inline-grid; place-items: center; background: var(--xc-accent); color: var(--xc-primary); font-size: .8rem; font-weight: 700; }
.xc-checklist li.is-listed .xc-tick { background: var(--xc-soft); color: var(--xc-muted); }

/* Scenario */
.xc-scenario__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 2rem; align-items: start; }
.xc-phone { border-radius: 28px; border: 10px solid var(--xc-primary); max-width: 300px; margin-inline: auto; box-shadow: var(--xc-shadow); }
.xc-phone--empty { aspect-ratio: 9 / 18; display: grid; place-items: center; background: var(--xc-soft); color: var(--xc-muted); text-align: center; padding: 1rem; }
.xc-try { margin-top: 2.5rem; background: var(--xc-soft); border-radius: var(--xc-radius); padding: 1.6rem; }
.xc-try h2 { margin-top: 0; color: var(--xc-primary); }
@media (max-width: 820px) { .xc-scenario__grid { grid-template-columns: 1fr; } }

/* Forms */
.xc-form { display: grid; gap: .8rem; max-width: 560px; background: var(--xc-soft); padding: 1.6rem; border-radius: var(--xc-radius); }
.xc-form h3 { margin: 0; color: var(--xc-primary); }
.xc-form .xc-field input, .xc-form .xc-field textarea { width: 100%; box-sizing: border-box; }
.xc-hp { position: absolute; left: -9999px; }
.xc-alert { padding: .7rem .9rem; border-radius: 8px; margin: 0; }
.xc-alert--ok { background: #e7f6ec; color: #135d2e; }
.xc-alert--err { background: #fdecea; color: #8a1c12; }
