@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{--black:#151515;--red:#c51d2e;--paper:#f5f4f1;--muted:#595956;--line:#deddd7;--heading:"Barlow Condensed","Arial Narrow",Impact,sans-serif}
:root[data-theme="dark"]{
    color-scheme:dark;
    --black:#f4f2ef;
    --paper:#151515;
    --muted:#bcbab7;
    --line:#484644;
    --surface:#212121;
    --field:#191919;
    --accent-text:#ff818c;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--black);font-family:Inter,Arial,sans-serif;line-height:1.5}
a{color:inherit;text-decoration:none}
img{display:block;width:100%}
p,h1,h2,h3{margin:0}
h1,h2{font-family:var(--heading);font-weight:800;letter-spacing:-.018em;line-height:.96;text-transform:uppercase}
:focus-visible{outline:3px solid #e54452;outline-offset:4px}
.wrap{width:min(1240px,calc(100% - 96px));margin-inline:auto}
.header{background:#212121;color:#fff;border-bottom:1px solid #ffffff19}
.header-inner{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{width:171px;height:51px;overflow:hidden;position:relative;flex-shrink:0}
.brand img{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:198px;max-width:none}
.header nav{display:flex;align-items:center;gap:32px;font-weight:600;font-size:13px}
.header nav a:hover,.footer a:hover{color:#ff7783}
.nav-contact{border:1px solid #666;padding:9px 15px;border-radius:4px}
.arrow-icon{width:1em;height:1em;display:inline-block;vertical-align:-.15em;flex:none}
.nav-contact .arrow-icon{margin-left:7px}
.theme-toggle{width:42px;height:42px;padding:0;border:1px solid #777;border-radius:4px;background:transparent;color:inherit;font:24px/1 Arial,sans-serif;cursor:pointer}
.theme-toggle:hover{background:#383838}
.theme-toggle:not([hidden]){display:grid;place-items:center}
.theme-toggle svg{width:22px;height:22px}
.theme-toggle .theme-sun,.theme-toggle[aria-pressed="true"] .theme-moon{display:none}
.theme-toggle[aria-pressed="true"] .theme-sun{display:block}
.hero{min-height:530px;display:flex;align-items:center;color:#fff;background:#181618 linear-gradient(90deg,#121113 0%,#121113ed 24%,#12111359 52%,#12111300 83%);position:relative;isolation:isolate}
.hero::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#141315 0%,#141315e6 19%,#14131542 55%,#14131500 80%),url('images/showroom.webp') center 55% / cover no-repeat}
.hero-inner{padding-block:64px 74px}
.eyebrow{display:flex;align-items:center;gap:9px;font-size:11px;letter-spacing:.17em;font-weight:800;text-transform:uppercase}
.eyebrow span{width:19px;height:2px;background:#e42e40;display:inline-block}
.eyebrow b{width:3px;height:3px;border-radius:50%;background:#999}
.hero h1{font-size:clamp(76px,9vw,139px);line-height:.81;letter-spacing:-.026em;margin:24px 0}
.hero h1 em{color:#f04a56;font-style:normal}
.hero-copy{max-width:340px;font-size:15px;color:#e2dedf;margin-bottom:27px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:18px;min-height:45px;padding:10px 18px;border:1px solid transparent;background:var(--red);color:#fff;font:700 13px Inter,Arial,sans-serif;cursor:pointer;border-radius:4px;white-space:nowrap}
.button:hover{background:#a31322}
.button-dark{background:#242424}
.button-dark:hover{background:#444}
.button span{font-size:16px}
.inventory{padding-block:55px 75px}
.section-heading{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-bottom:23px}
.section-heading h2{font-size:clamp(44px,5vw,69px);margin-top:7px}
.results{font-size:13px;color:var(--muted);white-space:nowrap;padding-bottom:4px}
.filters{display:grid;grid-template-columns:1.55fr 1fr 1fr auto;gap:14px;align-items:end;background:#fff;border:1px solid var(--line);padding:15px;border-radius:6px;margin-bottom:23px}
label{display:grid;gap:6px;color:#3d3d3b;font-size:13px;font-weight:700}
input,select,textarea{font:400 14px Inter,Arial,sans-serif;color:var(--black);width:100%;min-height:44px;padding:9px 11px;border:1px solid #d3d2cd;border-radius:4px;background:#fff}
textarea{resize:vertical}
.clear-filters,.back{display:inline-block;color:#9d1422;font-size:14px;font-weight:700;margin-bottom:18px}
.cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.body-group+.body-group{margin-top:32px}
.body-group>h3{font-family:var(--heading);font-size:32px;line-height:1.1;margin-bottom:12px}
.card{background:#fff;border:1px solid var(--line);border-radius:6px;overflow:hidden}
.card-image,.detail-photo{display:block;position:relative;background:#e5e4df;overflow:hidden;aspect-ratio:1.76}
.card-image img,.detail-photo img{height:100%;object-fit:cover}
.card-image img{transition:transform .25s}
.card-image:hover img{transform:scale(1.045)}
.car-gallery .gallery-track{display:flex;width:100%;height:100%;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none}
.car-gallery .gallery-track>*{flex:0 0 100%;min-width:0;scroll-snap-align:start}
.car-gallery .gallery-track img{transform:none}
.car-gallery :is([data-gallery-step],.gallery-close){position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border:1px solid #ffffff80;border-radius:4px;background:#151515d9;color:#fff;font-size:24px;cursor:pointer}
.gallery-open{padding:0;border:0;background:transparent;cursor:zoom-in}
.gallery-open:focus-visible{outline-offset:-4px}
.photo-viewer{width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;overflow:hidden;background:#101010;color:#fff}
.photo-viewer .gallery-track img{width:100%;height:100%;object-fit:contain;padding:48px}
.photo-viewer .gallery-close{top:max(12px,env(safe-area-inset-top));right:12px;transform:none;z-index:1}
html:has(.photo-viewer[open]){overflow:hidden}
@media(max-width:700px){.photo-viewer .gallery-track img{padding:56px 0}}
.gallery-prev{left:8px}
.gallery-next{right:8px}
.upload-previews{display:flex;flex-wrap:wrap;gap:8px}
.upload-previews:empty{display:none}
.saved-photo input{width:auto;min-height:0;accent-color:var(--red)}
.saved-photo{cursor:grab}
.saved-photo button{min-width:34px;min-height:32px;margin-block:4px;color:inherit;background:transparent;border:1px solid var(--line);border-radius:4px;cursor:pointer}
.saved-photo:has(input:checked) img{opacity:.4}
.badge{position:absolute;left:12px;top:12px;background:#161616e8;color:#fff;padding:5px 8px;font-size:9px;font-weight:800;letter-spacing:.1em;border-radius:3px}
.photo-empty{display:grid;place-items:center;height:100%;font-size:14px;color:#555}
.card-content{padding:16px}
.card-meta,.card-specs{font-size:12px;color:var(--muted)}
.card-meta{font-weight:700;text-transform:uppercase;letter-spacing:.07em}
.listing-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
.listing-status{display:inline-block;border-radius:4px;padding:3px 8px;font-size:12px;font-weight:700;white-space:nowrap}
.listing-status-available{background:#d8f4df;color:#175c2e}
.listing-status-on_hold{background:#fff0b8;color:#624600}
.listing-status-sold{background:#ffdadb;color:#931e2a}
.card-meta span,.card-specs span{padding-inline:3px;color:#ad1928}
.card .card-title{font-size:clamp(16px,1.8vw,23px);line-height:1.2;letter-spacing:-.035em;margin:5px 0 10px}
.card .card-title a:hover,.card-bottom a:hover{text-decoration:underline}
.card-bottom{border-top:1px solid var(--line);margin-top:13px;padding-top:12px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.card-bottom strong{font-size:19px}
.card-bottom a{font-size:12px;font-weight:800;color:#a21524}
.empty{grid-column:1/-1;padding:24px;border:1px solid var(--line);border-radius:5px}
.pagination{display:flex;justify-content:center;gap:16px;margin-top:26px;font-size:14px}
.pagination a{text-decoration:underline}
.footer{background:#1d1d1d;color:#fff}
.footer-main{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-block:40px}
.footer h2{font-size:clamp(42px,5vw,65px);margin:7px 0}
.footer p:not(.eyebrow){color:#bbb;font-size:13px}
.channels{display:flex;flex-wrap:wrap;gap:8px}
.channels a{border:1px solid #777;border-radius:4px;padding:8px 12px;font-size:13px;font-weight:600;display:inline-flex;align-items:center;gap:7px}
.channels svg{width:20px;height:20px;flex:none}
.contact-whatsapp svg{color:#157647}
.contact-instagram svg{color:#af285f}
.contact-call svg{color:#2463a9}
.footer .contact-whatsapp svg,[data-theme="dark"] .contact-whatsapp svg{color:#55da91}
.footer .contact-instagram svg,[data-theme="dark"] .contact-instagram svg{color:#ff83b1}
.footer .contact-call svg,[data-theme="dark"] .contact-call svg{color:#8abfff}
.channels a:hover{border-color:currentColor}
.footer-bottom{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #444;padding-block:15px;font-size:12px;color:#bcbcbc}
.detail,.form-page{padding-block:42px 66px;min-height:55vh}
.detail-grid{display:grid;grid-template-columns:1.38fr 1fr;gap:36px;align-items:start}
.detail-photo{border-radius:6px}
.detail h1,.form-page h1{font-size:clamp(42px,6vw,76px);margin:8px 0 14px}
.price{font-size:27px;font-weight:800;color:#a31726}
.price small{font-size:12px;color:var(--muted)}
.description{margin-top:10px;color:var(--muted);white-space:pre-line;overflow-wrap:anywhere}
.enquire{margin-top:22px}
.enquire h2{font-size:27px;margin-bottom:10px}
.spec-title{font-size:38px;margin-top:42px;margin-bottom:13px}
.spec-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0;border:1px solid var(--line);background:white;border-radius:5px}
.spec-grid div{padding:13px;border:1px solid #f1f0ed;overflow-wrap:anywhere}
.spec-grid dt{font-size:12px;color:var(--muted)}
.spec-grid dd{margin:4px 0 0;font-size:15px;font-weight:700}
.login-page{max-width:460px}
.panel{padding:22px;border:1px solid var(--line);border-radius:5px;background:white;display:grid;gap:18px}
.panel .button{justify-self:start}
.listing-option-picker{display:grid;gap:6px;position:relative}
.listing-option-suggestions{position:absolute;top:100%;left:0;right:0;z-index:2;max-height:200px;overflow:auto;list-style:none;margin:3px 0 0;padding:4px;background:var(--surface,#fff);border:1px solid var(--line);border-radius:4px}
.listing-option-suggestions li{padding:8px;cursor:pointer}
.listing-option-suggestions li:hover,.listing-option-suggestions [aria-selected="true"]{background:var(--paper)}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:end}
.panel small{font-weight:400;color:var(--muted)}
.error{color:#a21826;font-size:14px;margin:0}
.flash{margin-top:15px;padding:10px 14px;background:#e3efdf;border:1px solid #bfd3b8;border-radius:4px}
.dealer-actions{display:flex;gap:8px;flex-wrap:wrap}
.dealer-list{list-style:none;padding:0;background:white;border:1px solid var(--line);border-radius:5px}
.dealer-list li{display:flex;justify-content:space-between;gap:12px;padding:12px 15px}
.dealer-list li+li{border-top:1px solid var(--line)}
.dealer-list a:hover{text-decoration:underline}
.dealer-list .dealer-listing{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:start}
.dealer-thumb{width:100px;aspect-ratio:4/3;object-fit:cover;border-radius:4px}
.dealer-thumb-empty{display:grid;place-items:center;border:1px solid var(--line);color:var(--muted);font-size:12px}
.dealer-listing-details{overflow-wrap:anywhere}
.dealer-listing-details h2{font:700 16px/1.3 Inter,Arial,sans-serif;text-transform:none;margin-bottom:4px}
.dealer-listing-details p{color:var(--muted);font-size:13px;margin-top:4px}
@media(max-width:560px){
    .dealer-list .dealer-listing{grid-template-columns:auto minmax(0,1fr)}
    .dealer-listing .dealer-actions{grid-column:2}
    .dealer-listing .dealer-thumb{width:76px}
}
[data-theme="dark"] :is(.filters,.card,.spec-grid,.panel,.dealer-list){background:var(--surface)}
[data-theme="dark"] :is(input,select,textarea){background:var(--field);border-color:#716e6b}
[data-theme="dark"] label{color:var(--black)}
[data-theme="dark"] :is(.clear-filters,.back,.card-meta span,.card-specs span,.card-bottom a,.price,.error){color:var(--accent-text)}
[data-theme="dark"] :is(.card-image,.detail-photo){background:#2b2928}
[data-theme="dark"] .photo-empty{color:var(--muted)}
[data-theme="dark"] .spec-grid div{border-color:var(--line)}
[data-theme="dark"] .button-dark{border-color:#777}
[data-theme="dark"] .flash{background:#213328;border-color:#507658}
@media(max-width:950px){
    .wrap{width:calc(100% - 52px)}
    .cards{gap:12px}
    .card-content{padding:12px}
    .hero{min-height:480px}
    .detail-grid{gap:20px}
}
@media(max-width:700px){
    .wrap{width:calc(100% - 32px)}
    .header-inner{height:65px;gap:10px}
    .brand{width:112px;flex-shrink:0}
    .brand img{width:132px}
    .header nav{gap:8px;font-size:12px}
    .nav-contact{padding:7px}
    .hero{min-height:550px;align-items:end}
    .hero::before{background:linear-gradient(0deg,#141315 5%,#141315b3 39%,#14131512 78%),url('images/showroom.webp') 62% top / auto 77% no-repeat}
    .hero-inner{padding-block:115px 33px}
    .hero h1{font-size:clamp(65px,15vw,100px);margin:19px 0}
    .hero-copy{margin-bottom:20px}
    .inventory{padding-block:40px 50px}
    .filters,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .filters label:first-child,.filters .button{grid-column:1/-1}
    .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
    .footer-main,.dealer-heading{align-items:start;flex-direction:column}
    .detail-grid{grid-template-columns:1fr}
    .spec-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:470px){.cards,.form-grid{grid-template-columns:1fr}.card .card-title{font-size:22px}.hero::before{background-size:auto,auto 67%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.card-image img{transition:none}}

.inventory-group-toggle{grid-column:1/-1;display:flex;align-items:center;gap:8px;cursor:pointer}
.inventory-group-toggle input[type=checkbox]{appearance:auto;width:18px;height:18px;min-height:0;margin:0;padding:0;accent-color:var(--red)}

@media(prefers-reduced-motion:no-preference){
    .hero-inner > :not(.hero-title),
    .showroom-enter{
        animation:showroom-rise 680ms cubic-bezier(.25,.55,.35,1) both;
    }
    .hero-title-line > *{animation:hero-title-reveal 820ms cubic-bezier(.22,.75,.3,1) both}
    .hero-title-line:first-child > *{animation-delay:90ms}
    .hero-title-line + .hero-title-line > *{animation-delay:230ms}
    .hero-copy{animation-delay:350ms}
    .hero-inner > .button{animation-delay:440ms}
    .cards > .card.showroom-enter:nth-child(3n+2){animation-delay:75ms}
    .cards > .card.showroom-enter:nth-child(3n){animation-delay:150ms}
    .showroom-enter:focus-within{animation:none}
}

.hero-title-line,.hero-title-line > *{display:block}

@keyframes hero-title-reveal{
    from{clip-path:inset(100% -10% -10%);opacity:0;transform:translateY(.28em)}
    to{clip-path:inset(-20% -10%);opacity:1;transform:translateY(0)}
}

@keyframes showroom-rise{
    from{opacity:.3;transform:translateY(18px)}
    to{opacity:1;transform:translateY(0)}
}
