:root {
  --ink: #000000;
  --paper: #ffffff;
  --volt: #0099ff;
  --volt-deep: #007acc;
  --grey: #5c5c5c;
  --line: #dedede;
  --soft: #f3f3f3;
  --wide: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1200px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--wide);
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--volt);
  outline-offset: 3px;
}
h1, h2, h3 { font-stretch: 125%; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 850; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; }
.lead { font-size: 1.2rem; max-width: 38em; color: #222; }
.muted { color: var(--grey); }
.small { font-size: .9rem; }

/* Charge line – the one signature moment */
.charge { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: var(--soft); z-index: 50; }
.charge span { display: block; height: 100%; width: 100%; background: var(--volt); transform-origin: left; animation: charge 1.4s cubic-bezier(.6,0,.2,1) both; }
@keyframes charge { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .charge span { animation: none; } }

/* Header */
.site-header {
  position: sticky; top: 4px; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(1rem, 4vw, 2.5rem);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 1rem; text-decoration: none; font-weight: 800; font-stretch: 125%; font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em; }
.brand img { width: 88px; height: 88px; object-fit: cover; }
@media (max-width: 760px) { .brand { font-size: 1.3rem; gap: .7rem; } .brand img { width: 60px; height: 60px; } }
#nav { display: flex; align-items: center; gap: 1.6rem; }
#nav a { text-decoration: none; font-weight: 600; padding: .3rem 0; border-bottom: 3px solid transparent; }
#nav a:hover { border-bottom-color: var(--ink); }
#nav a[aria-current="page"] { border-bottom-color: var(--volt); }
#nav .nav-phone { background: var(--ink); color: var(--paper); padding: .45rem .9rem; border: 0; }
#nav .nav-phone:hover { background: var(--volt); }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: none; border: 2px solid var(--ink); padding: .35rem .8rem; cursor: pointer; }

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn { display: inline-block; font: inherit; font-weight: 700; text-decoration: none; padding: .85rem 1.4rem; border: 2px solid transparent; cursor: pointer; }
.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--ink); color: var(--paper); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.text-link { font-weight: 700; color: var(--ink); text-decoration-color: var(--volt); text-decoration-thickness: 3px; text-underline-offset: 5px; }

main > section { padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
main > section > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: var(--maxw); margin: 0 auto; }
.hero > * { max-width: none; margin: 0; }
.hero-img { margin: 0; background: var(--soft); }
.hero-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.hero-img figcaption { padding: .6rem .9rem; font-size: .9rem; font-weight: 600; border-top: 3px solid var(--volt); }

/* Benefits – black band */
.benefits { background: var(--ink); color: var(--paper); }
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 2rem; border-top: 1px solid #333; }
.benefit-grid article { padding: 1.6rem 1.4rem 1.6rem 0; border-right: 1px solid #333; }
.benefit-grid article + article { padding-left: 1.4rem; }
.benefit-grid article:last-child { border-right: 0; }
.benefit-grid h3 { color: var(--paper); }
.benefit-grid p { color: #c8c8c8; margin: 0; font-size: 1rem; }

/* Models */
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.model-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem 1.5rem; margin-top: 2rem; }
.model-card { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: .4rem; }
.model-img { display: block; background: var(--paper); overflow: hidden; border: 1px solid var(--line); border-bottom: 3px solid var(--ink); }
.model-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; padding: .6rem; box-sizing: border-box; transition: transform .4s ease; }
.model-card:hover .model-img { border-bottom-color: var(--volt); }
.model-card:hover .model-img img { transform: scale(1.03); }
.model-card:focus-visible { outline: 3px solid var(--volt); outline-offset: 4px; }
.model-name { font-weight: 800; font-stretch: 112%; font-size: 1.2rem; margin-top: .5rem; }
.model-desc { color: var(--grey); font-size: .98rem; }
.model-more { color: var(--ink); font-weight: 700; font-size: .95rem; text-decoration: underline; text-decoration-color: var(--volt); text-decoration-thickness: 3px; text-underline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .model-img img { transition: none; } }

/* CTA band */
.cta-band { background: var(--volt); color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; }
.cta-band > * { margin: 0; max-width: 40em; }
.cta-band { padding-left: max(clamp(1rem, 4vw, 2.5rem), calc((100% - var(--maxw)) / 2)); padding-right: max(clamp(1rem, 4vw, 2.5rem), calc((100% - var(--maxw)) / 2)); }
.cta-band .btn-volt { background: var(--paper); color: var(--ink); }
.cta-band .btn-volt:hover { background: var(--ink); color: var(--paper); }

/* Page head */
.page-head { border-bottom: 1px solid var(--line); padding-bottom: 2.5rem !important; }

/* Dialog */
dialog { border: 0; padding: 0; width: min(880px, 94vw); max-height: 92vh; overflow: auto; }
dialog::backdrop { background: rgba(0,0,0,.75); }
dialog[open] { display: grid; grid-template-columns: 1.1fr 1fr; }
#dlg-img { width: 100%; height: 100%; object-fit: contain; background: var(--paper); min-height: 300px; padding: 1rem; box-sizing: border-box; }
.dlg-body { padding: 2rem; border-top: 4px solid var(--volt); }
.dlg-close { position: absolute; top: .5rem; right: .7rem; font-size: 2rem; line-height: 1; background: var(--paper); border: 0; cursor: pointer; width: 2.4rem; height: 2.4rem; }
.price-note { font-weight: 700; }

/* Test ride */
.split { display: grid; grid-template-columns: 1fr 1fr; max-width: var(--maxw); margin: 0 auto; gap: clamp(2rem, 5vw, 4rem); padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem); }
.split > section { padding: 0; }
.split > section > * { max-width: none; }
.steps { list-style: none; padding: 0; margin: 2rem 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; column-gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font-weight: 850; font-stretch: 125%; font-size: 1.6rem; color: var(--volt); }
.steps span { color: var(--grey); }
form { display: grid; gap: 1.1rem; background: var(--soft); padding: clamp(1.4rem, 3vw, 2.2rem); border-top: 4px solid var(--ink); }
label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; font-weight: 400; padding: .7rem .8rem; border: 1px solid #bdbdbd; background: var(--paper); border-radius: 0; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--volt); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form .btn { justify-self: start; }
.form-error { color: #b00020; font-weight: 700; margin: 0; }

/* About */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; max-width: var(--maxw); margin: 0 auto; }
.about > * { max-width: none; margin: 0; }
.about-text p { max-width: 36em; }
.about-logo { width: min(320px, 80%); justify-self: center; background: var(--ink); padding: clamp(1.5rem, 4vw, 2.5rem); box-sizing: border-box; }
.contact { background: var(--ink); color: var(--paper); }
.contact a { color: var(--paper); }
.contact .muted, .contact .muted a { color: #b8b8b8; }
.contact .text-link { color: var(--volt); text-decoration-color: var(--volt); }
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 1.5rem; }
.contact h3 { color: var(--volt); font-size: 1rem; }

/* Footer */
.site-footer { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding: 2.5rem clamp(1rem, 4vw, 2.5rem); border-top: 4px solid var(--volt); font-size: .95rem; max-width: none; }
.site-footer p { margin: .3rem 0 0; }
.site-footer .copy { grid-column: 1 / -1; color: var(--grey); margin-top: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero, .about, .split { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr 1fr; }
  .benefit-grid article, .benefit-grid article + article { padding: 1.4rem 1rem 1.4rem 0; border-right: 0; border-bottom: 1px solid #333; }
  .contact-grid { grid-template-columns: 1fr; }
  dialog[open] { grid-template-columns: 1fr; }
  #dlg-img { min-height: 220px; max-height: 45vh; }
}
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  #nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  #nav.open { display: flex; }
  #nav a { padding: .9rem clamp(1rem, 4vw, 2.5rem); border-bottom: 1px solid var(--line); }
  #nav a[aria-current="page"] { border-left: 4px solid var(--volt); }
  .benefit-grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}
/* Spec list in model detail */
.specs-title { font-size: 1rem; margin: 1.4rem 0 .6rem; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 0 0 1.2rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .95rem; }
.specs dt { color: var(--grey); }
.specs dd { margin: 0; font-weight: 600; }
@media (max-width: 480px) { .specs { grid-template-columns: 1fr; gap: 0; } .specs dd { margin-bottom: .6rem; } }

/* Notice */
.notice { margin: 1.6rem 0 0; padding: 1rem 1.2rem; border-left: 4px solid var(--volt); background: var(--soft); font-size: 1rem; }

/* Model picker with thumbnails */
.picker { position: relative; font-weight: 400; }
.picker-btn { display: flex; align-items: center; gap: .8rem; width: 100%; font: inherit; text-align: left; padding: .4rem 2.6rem .4rem .4rem; border: 1px solid #bdbdbd; background: var(--paper); color: var(--ink); cursor: pointer; position: relative; border-radius: 0; }
.picker-btn::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .55rem; height: .55rem; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); }
.picker-btn[aria-expanded="true"] { border-color: var(--volt); }
.picker-btn img, .picker-list img, .picker-q { width: 64px; height: 48px; object-fit: cover; background: var(--soft); flex: none; }
.picker-q { display: grid; place-items: center; font-weight: 800; color: var(--grey); }
.picker-name { font-weight: 600; }
.picker-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; max-height: min(360px, 60vh); overflow-y: auto; margin: 0; padding: .3rem 0; list-style: none; background: var(--paper); border: 1px solid var(--ink); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.picker-list:focus { outline: none; }
.picker-list li { display: flex; align-items: center; gap: .8rem; padding: .4rem .7rem; cursor: pointer; border-left: 4px solid transparent; }
.picker-list li.active { background: var(--soft); }
.picker-list li[aria-selected="true"] { border-left-color: var(--volt); font-weight: 700; }

/* Prices */
:root { --volt-text: #0072d6; }
.model-price { color: var(--volt-text); font-weight: 800; font-stretch: 112%; font-size: 1.25rem; line-height: 1.2; }
.dlg-price { color: var(--volt-text); font-weight: 850; font-stretch: 115%; font-size: 1.8rem; line-height: 1.1; margin: -.2rem 0 .8rem; }

/* Cost calculator section */
.calc { background: var(--ink); color: var(--paper); border-top: 1px solid #222; }
.calc h2 { color: var(--paper); }
.calc-lead { color: #c8c8c8; max-width: 36em; margin: 0 0 2rem; font-size: 1.1rem; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.calc label { display: block; color: #c8c8c8; font-size: .95rem; margin: 0 0 .4rem; }
.calc .calc-label-km { margin-top: 1.4rem; }
.calc select, .calc input[type="number"] { border: 0; color: var(--ink); background: var(--paper); }
.calc-kmrow { display: flex; align-items: center; gap: .6rem; color: #c8c8c8; }
.calc-kmrow input { max-width: 9rem; }
.calc input[type="range"] { width: 100%; accent-color: var(--volt); padding: 0; border: 0; background: transparent; margin: .9rem 0 0; }
.calc-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem 0; border-top: 1px solid #333; }
.calc-last { border-bottom: 1px solid #333; }
.calc-price { margin-top: 1.6rem; color: #c8c8c8; font-size: .95rem; }
.calc-big { color: var(--volt); font-weight: 850; font-stretch: 115%; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1; }
.calc-mid { font-weight: 700; font-size: 1.3rem; }
.calc-error { color: #ff8a8a; font-weight: 600; font-size: .9rem; margin: .5rem 0 0; }
.calc-note { color: #9a9a9a; font-size: .85rem; margin: 1.2rem 0 0; }
.calc-note + .calc-note { margin-top: .4rem; }
.calc a:not(.btn) { color: var(--paper); text-decoration-color: var(--volt); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.calc .btn { margin-top: 1.6rem; }
@media (max-width: 900px) { .calc-grid { grid-template-columns: 1fr; } }

/* Mobile fixes */
@media (max-width: 760px) {
  .brand { font-size: clamp(1.05rem, 5.2vw, 1.3rem); gap: .6rem; }
  .brand span { white-space: nowrap; }
  .brand img { width: 52px; height: 52px; }
}
@media (max-width: 900px) { .calc-grid { gap: 0; } .calc-price { margin-bottom: 0; } }
@media (max-width: 360px) { .brand { gap: .5rem; } .brand img { width: 44px; height: 44px; } .menu-toggle { padding: .3rem .6rem; } }

/* Dialog: keep close button reachable while scrolling */
.dlg-close { position: sticky; top: .5rem; right: auto; z-index: 3; grid-column: 1 / -1; grid-row: 1; justify-self: end; margin: .5rem .5rem -2.9rem 0; box-shadow: 0 0 0 1px var(--line); }
dialog[open] > #dlg-img { grid-row: 2; }
dialog[open] > .dlg-body { grid-row: 2; }
@media (max-width: 900px) { dialog[open] > .dlg-body { grid-row: 3; } }
@media (max-width: 600px) { .dlg-body { padding: 1.4rem 1.25rem; } }
a[href^="tel:"] { white-space: nowrap; }
