/* =========================================================================
   LAUFEN MOTORS — Design System
   Preto / grafite / branco / prata. Sem frameworks.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root{
  --ink:        #08080A;
  --ink-2:      #0D0D10;
  --ink-3:      #121216;
  --surface:    #15151A;
  --surface-2:  #1B1B21;
  --surface-3:  #23232B;

  --line:        rgba(255,255,255,.075);
  --line-2:      rgba(255,255,255,.13);
  --line-strong: rgba(255,255,255,.24);

  --fg:        #F6F6F8;
  --fg-dim:    #C7C8CE;
  --muted:     #94959E;
  --muted-2:   #6B6C76;

  --silver-1:  #FFFFFF;
  --silver-2:  #D6D9DE;
  --silver-3:  #9AA0A8;

  --ok:      #4ADE80;
  --warn:    #FBBF24;
  --danger:  #F87171;
  --info:    #93C5FD;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 12px 30px -12px rgba(0,0,0,.75);
  --shadow-lg: 0 40px 80px -40px rgba(0,0,0,.9);

  --wrap: 1240px;
  --pad: clamp(20px, 5vw, 48px);

  --ff-display: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ff-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: .38s;

  --header-h: 76px;
}

/* ---------- 2. Reset ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; scroll-padding-top:calc(var(--header-h) + 16px); }
body{
  margin:0;
  background:var(--ink);
  color:var(--fg);
  font-family:var(--ff-body);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
}
body.no-scroll{ overflow:hidden; }
img,svg,video{ max-width:100%; display:block; }
/* Tamanho base de todo ícone. As regras específicas (.btn .ic, .stat__ic .ic…)
   sobrescrevem por especificidade. Sem isso, um ícone sem regra própria estica
   até preencher o espaço disponível. */
svg.ic{ width:16px; height:16px; flex:none; }
a{ color:inherit; text-decoration:none; }
button,input,select,textarea{ font:inherit; color:inherit; }
button{ background:none; border:0; cursor:pointer; }
h1,h2,h3,h4,h5{ font-family:var(--ff-display); font-weight:600; line-height:1.12; letter-spacing:-.02em; margin:0; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
hr{ border:0; border-top:1px solid var(--line); margin:0; }
::selection{ background:#fff; color:#000; }

/* Scrollbar */
*::-webkit-scrollbar{ width:10px; height:10px; }
*::-webkit-scrollbar-track{ background:var(--ink-2); }
*::-webkit-scrollbar-thumb{ background:#2C2C34; border-radius:8px; border:2px solid var(--ink-2); }
*::-webkit-scrollbar-thumb:hover{ background:#3A3A44; }

/* ---------- 3. Layout ---------- */
.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--pad); }
.section{ padding:clamp(64px,9vw,120px) 0; position:relative; }
.section--alt{ background:var(--ink-2); }
.section--line{ border-top:1px solid var(--line); }

.eyebrow{
  font-family:var(--ff-display);
  font-size:11px; letter-spacing:.32em; text-transform:uppercase;
  color:var(--muted); display:flex; align-items:center; gap:14px; margin-bottom:18px;
}
.eyebrow::before{ content:''; width:34px; height:1px; background:linear-gradient(90deg,var(--silver-3),transparent); }

.h-xl{ font-size:clamp(34px,5.2vw,60px); }
.h-lg{ font-size:clamp(28px,3.6vw,44px); }
.h-md{ font-size:clamp(21px,2.2vw,28px); }
.lead{ color:var(--fg-dim); font-size:clamp(15px,1.35vw,18px); line-height:1.75; max-width:64ch; }
.muted{ color:var(--muted); }
.small{ font-size:13px; }

.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; flex-wrap:wrap; margin-bottom:clamp(30px,4vw,52px); }

/* ---------- 4. Botoes ---------- */
.btn{
  --btn-bg:transparent; --btn-fg:var(--fg); --btn-bd:var(--line-2);
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:13px 26px; border-radius:var(--r-pill);
  background:var(--btn-bg); color:var(--btn-fg);
  border:1px solid var(--btn-bd);
  font-family:var(--ff-display); font-size:12.5px; font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; white-space:nowrap;
  transition:background var(--dur) var(--ease), color var(--dur) var(--ease),
             border-color var(--dur) var(--ease), transform .2s var(--ease), box-shadow var(--dur) var(--ease);
}
.btn:hover{ transform:translateY(-2px); }
.btn:active{ transform:translateY(0); }
.btn:focus-visible{ outline:2px solid var(--silver-2); outline-offset:3px; }
.btn[disabled]{ opacity:.45; pointer-events:none; }

.btn--primary{ --btn-bg:#FFFFFF; --btn-fg:#0A0A0C; --btn-bd:#FFFFFF; box-shadow:0 10px 30px -14px rgba(255,255,255,.45); }
.btn--primary:hover{ --btn-bg:#E8EAEE; --btn-bd:#E8EAEE; box-shadow:0 16px 36px -14px rgba(255,255,255,.55); }

.btn--ghost:hover{ --btn-bd:var(--line-strong); --btn-bg:rgba(255,255,255,.05); }

.btn--outline{ --btn-bd:var(--line-strong); }
.btn--outline:hover{ --btn-bg:#fff; --btn-fg:#0A0A0C; --btn-bd:#fff; }

.btn--dark{ --btn-bg:var(--surface-2); --btn-bd:var(--line); }
.btn--dark:hover{ --btn-bg:var(--surface-3); --btn-bd:var(--line-2); }

.btn--danger{ --btn-bg:rgba(248,113,113,.1); --btn-fg:#FCA5A5; --btn-bd:rgba(248,113,113,.32); }
.btn--danger:hover{ --btn-bg:#EF4444; --btn-fg:#fff; --btn-bd:#EF4444; }

.btn--wa{ --btn-bg:#25D366; --btn-fg:#05270F; --btn-bd:#25D366; }
.btn--wa:hover{ --btn-bg:#1FB856; --btn-bd:#1FB856; }

.btn--sm{ padding:9px 17px; font-size:11px; letter-spacing:.12em; }
.btn--lg{ padding:17px 38px; font-size:13px; }
.btn--block{ width:100%; }
.btn--icon{ padding:0; width:38px; height:38px; border-radius:var(--r-sm); }
.btn .ic{ width:16px; height:16px; flex:none; }

/* ---------- 5. Header ---------- */
.header{
  position:fixed; inset:0 0 auto 0; z-index:80; height:var(--header-h);
  display:flex; align-items:center;
  background:rgba(8,8,10,.55);
  backdrop-filter:blur(18px) saturate(140%);
  -webkit-backdrop-filter:blur(18px) saturate(140%);
  border-bottom:1px solid transparent;
  transition:background .35s var(--ease), border-color .35s var(--ease), height .35s var(--ease);
}
.header.is-stuck{ background:rgba(8,8,10,.9); border-bottom-color:var(--line); height:66px; }
.header__inner{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:var(--pad);
  display:flex; align-items:center; justify-content:space-between; gap:24px; }

.logo{ display:flex; align-items:center; gap:12px; flex:none; }
.logo img{ height:38px; width:auto; object-fit:contain; transition:height .35s var(--ease); }
.header.is-stuck .logo img{ height:32px; }
.logo__fallback{ display:flex; flex-direction:column; line-height:1; }
/* O display:flex acima venceria o atributo hidden do HTML, deixando o
   texto reserva sempre visível ao lado da logo. Esta regra restaura. */
.logo__fallback[hidden]{ display:none; }
.logo__fallback b{ font-family:var(--ff-display); font-size:17px; font-weight:700; letter-spacing:.22em; }
.logo__fallback span{ font-size:8.5px; letter-spacing:.42em; color:var(--muted); margin-top:5px; }

.nav{ display:flex; align-items:center; gap:2px; }
.nav a{
  position:relative; padding:10px 15px; border-radius:var(--r-sm);
  font-size:13.5px; color:var(--fg-dim); letter-spacing:.02em;
  transition:color .25s var(--ease);
}
.nav a::after{
  content:''; position:absolute; left:15px; right:15px; bottom:4px; height:1px;
  background:var(--silver-2); transform:scaleX(0); transform-origin:left;
  transition:transform .35s var(--ease);
}
.nav a:hover{ color:#fff; }
.nav a:hover::after, .nav a.is-active::after{ transform:scaleX(1); }
.nav a.is-active{ color:#fff; }

.header__actions{ display:flex; align-items:center; gap:12px; flex:none; }

.burger{ display:none; width:44px; height:44px; border-radius:var(--r-sm); border:1px solid var(--line-2); align-items:center; justify-content:center; }
.burger span{ display:block; width:18px; height:1.5px; background:var(--fg); position:relative; transition:background .2s; }
.burger span::before,.burger span::after{ content:''; position:absolute; left:0; width:18px; height:1.5px; background:var(--fg); transition:transform .3s var(--ease); }
.burger span::before{ top:-6px; } .burger span::after{ top:6px; }
.burger.is-open span{ background:transparent; }
.burger.is-open span::before{ transform:translateY(6px) rotate(45deg); }
.burger.is-open span::after{ transform:translateY(-6px) rotate(-45deg); }

.mobile-menu{
  position:fixed; inset:0; z-index:79; background:rgba(8,8,10,.98);
  backdrop-filter:blur(20px); padding:calc(var(--header-h) + 24px) var(--pad) 40px;
  display:flex; flex-direction:column; overflow-y:auto;
  opacity:0; visibility:hidden; transform:translateY(-12px);
  transition:opacity .3s var(--ease), transform .35s var(--ease), visibility .3s;
}
.mobile-menu.is-open{ opacity:1; visibility:visible; transform:none; }
.mobile-menu a{
  padding:18px 4px; border-bottom:1px solid var(--line);
  font-family:var(--ff-display); font-size:20px; letter-spacing:-.01em;
  display:flex; align-items:center; justify-content:space-between; color:var(--fg-dim);
}
.mobile-menu a:hover, .mobile-menu a.is-active{ color:#fff; }
.mobile-menu a .ic{ width:16px; height:16px; color:var(--muted-2); }
.mobile-menu .btn{ margin-top:26px; }

/* ---------- 6. Hero ---------- */
.hero{
  position:relative; min-height:min(100svh, 880px);
  display:flex; align-items:center;
  padding:calc(var(--header-h) + 60px) 0 90px;
  overflow:hidden; isolation:isolate;
}
.hero__bg{ position:absolute; inset:0; z-index:-3; }
.hero__bg img{ width:100%; height:100%; object-fit:cover; opacity:.42; filter:grayscale(.35) contrast(1.05); }
.hero__stage{
  position:absolute; inset:0; z-index:-3;
  background:
    radial-gradient(120% 85% at 78% 30%, rgba(150,158,170,.20) 0%, transparent 55%),
    radial-gradient(90% 70% at 12% 92%, rgba(90,96,108,.16) 0%, transparent 60%),
    linear-gradient(180deg,#0B0B0E 0%, #0A0A0D 45%, #08080A 100%);
}
.hero__grid{
  position:absolute; inset:0; z-index:-2; opacity:.5;
  background-image:linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
                   linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size:72px 72px;
  -webkit-mask-image:radial-gradient(120% 85% at 50% 20%, #000 10%, transparent 72%);
  mask-image:radial-gradient(120% 85% at 50% 20%, #000 10%, transparent 72%);
}
.hero__glow{
  position:absolute; z-index:-2; width:min(1100px,110vw); aspect-ratio:1/.62;
  right:-14%; top:6%; pointer-events:none;
  background:radial-gradient(closest-side, rgba(214,217,222,.16), rgba(214,217,222,.05) 45%, transparent 72%);
  filter:blur(8px);
}
.hero__vignette{ position:absolute; inset:0; z-index:-1; background:linear-gradient(180deg, rgba(8,8,10,.55) 0%, transparent 22%, rgba(8,8,10,.35) 70%, var(--ink) 100%); }

.hero__inner{ position:relative; }
.hero__title{
  font-size:clamp(46px,10.5vw,132px); font-weight:700; letter-spacing:-.035em; line-height:.92;
  background:linear-gradient(170deg,#FFFFFF 8%, #E4E7EB 42%, #8D939C 100%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
  margin:0 0 18px;
}
.hero__headline{ font-family:var(--ff-display); font-size:clamp(19px,2.7vw,32px); font-weight:400; color:var(--fg); letter-spacing:-.015em; margin-bottom:14px; }
.hero__sub{ color:var(--muted); font-size:clamp(14.5px,1.5vw,17px); max-width:52ch; }
.hero__cta{ display:flex; flex-wrap:wrap; gap:14px; margin-top:38px; }
.hero__meta{ display:flex; flex-wrap:wrap; gap:clamp(24px,5vw,64px); margin-top:clamp(48px,7vw,88px); padding-top:28px; border-top:1px solid var(--line); }
.hero__meta div b{ display:block; font-family:var(--ff-display); font-size:clamp(24px,3vw,34px); font-weight:600; letter-spacing:-.02em; }
.hero__meta div span{ font-size:11.5px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2); }
.hero__scroll{ position:absolute; left:50%; bottom:26px; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; gap:9px; font-size:9.5px; letter-spacing:.3em; color:var(--muted-2); text-transform:uppercase; }
.hero__scroll i{ width:1px; height:38px; background:linear-gradient(180deg,var(--silver-3),transparent); animation:scrollpulse 2.4s var(--ease) infinite; }
@keyframes scrollpulse{ 0%,100%{ opacity:.25; transform:scaleY(.5); transform-origin:top; } 50%{ opacity:1; transform:scaleY(1); } }

/* ---------- 7. Card de veiculo ---------- */
.cars-grid{ display:grid; gap:clamp(16px,2vw,26px); grid-template-columns:repeat(auto-fill, minmax(310px,1fr)); }

.car{
  position:relative; display:flex; flex-direction:column;
  background:linear-gradient(180deg,var(--surface) 0%, var(--ink-3) 100%);
  border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  transition:transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.car:hover{ transform:translateY(-6px); border-color:var(--line-2); box-shadow:var(--shadow-lg); }
.car__media{ position:relative; aspect-ratio:4/3; background:var(--ink-3); overflow:hidden; }
.car__media img{ width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.car:hover .car__media img{ transform:scale(1.055); }
.car__media::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, transparent 55%, rgba(8,8,10,.55) 100%); pointer-events:none; }

.car__flags{ position:absolute; top:12px; left:12px; right:12px; display:flex; gap:7px; flex-wrap:wrap; z-index:2; }
.tag{
  display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:var(--r-pill);
  font-family:var(--ff-display); font-size:9.5px; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  background:rgba(10,10,12,.72); border:1px solid var(--line-2); color:var(--fg-dim);
  backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
}
.tag--featured{ background:#fff; color:#0A0A0C; border-color:#fff; }
.tag--disponivel{ color:#86EFAC; border-color:rgba(74,222,128,.35); }
.tag--reservado{ color:#FDE68A; border-color:rgba(251,191,36,.35); }
.tag--vendido{ color:#FCA5A5; border-color:rgba(248,113,113,.35); }
.tag--oculto{ color:var(--muted); }
.tag--photos{ margin-left:auto; }

.car__body{ padding:20px 20px 22px; display:flex; flex-direction:column; flex:1; gap:14px; }
.car__brand{ font-size:10.5px; letter-spacing:.26em; text-transform:uppercase; color:var(--muted); }
.car__name{ font-family:var(--ff-display); font-size:19px; font-weight:600; letter-spacing:-.015em; }
.car__version{ color:var(--muted); font-size:13.5px; margin-top:3px; line-height:1.45;
  display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }

.car__specs{ display:flex; flex-wrap:wrap; gap:7px; }
.chip{ display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:var(--r-xs);
  background:rgba(255,255,255,.04); border:1px solid var(--line); font-size:11.5px; color:var(--fg-dim); }
.chip .ic{ width:13px; height:13px; opacity:.55; }

.car__foot{ margin-top:auto; padding-top:16px; border-top:1px solid var(--line); display:flex; align-items:flex-end; justify-content:space-between; gap:14px; }
.price{ font-family:var(--ff-display); font-size:23px; font-weight:600; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.price--old{ font-size:13px; font-weight:400; color:var(--muted-2); text-decoration:line-through; letter-spacing:0; }
.price--label{ font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2); display:block; margin-bottom:2px; }
.car__link{ font-family:var(--ff-display); font-size:11px; font-weight:600; letter-spacing:.15em; text-transform:uppercase;
  display:inline-flex; align-items:center; gap:8px; padding:10px 0; color:var(--fg); white-space:nowrap; }
.car__link .ic{ width:15px; height:15px; transition:transform .3s var(--ease); }
.car:hover .car__link .ic{ transform:translateX(4px); }
.car__stretch{ position:absolute; inset:0; z-index:3; }

/* placeholder de imagem */
.ph{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  background:
    radial-gradient(70% 70% at 50% 32%, rgba(255,255,255,.055), transparent 70%),
    repeating-linear-gradient(115deg, #141419 0 22px, #101015 22px 44px);
  color:var(--muted-2);
}
.ph svg{ width:52px; height:52px; opacity:.35; }

/* ---------- 8. Catalogo / filtros ---------- */
.page-head{ padding:calc(var(--header-h) + 54px) 0 0; }
.catalog{ display:grid; grid-template-columns:288px 1fr; gap:clamp(20px,3vw,40px); align-items:start; }
/* O painel rola por dentro quando não cabe na tela, e a coluna de resultados
   garante altura mínima — sem isso, com poucos veículos o filtro deslizava
   para debaixo do cabeçalho fixo e os campos do topo ficavam inclicáveis. */
.filters{ position:sticky; top:calc(var(--header-h) + 18px); background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:22px; display:flex; flex-direction:column; gap:18px;
  max-height:calc(100svh - var(--header-h) - 40px); overflow-y:auto; }
.catalog__results{ min-height:calc(100svh - var(--header-h) - 40px); }
.filters__head{ display:flex; align-items:center; justify-content:space-between; }
.filters__head h3{ font-size:13px; letter-spacing:.16em; text-transform:uppercase; font-weight:600; }
.filters__head button{ font-size:11.5px; color:var(--muted); text-decoration:underline; text-underline-offset:3px; }
.filters__head button:hover{ color:#fff; }
.fgroup{ display:flex; flex-direction:column; gap:8px; }
.fgroup > label{ font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted-2); }
.frow{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }

.field{
  width:100%; padding:11px 13px; background:var(--ink-3); border:1px solid var(--line);
  border-radius:var(--r-sm); font-size:14px; color:var(--fg);
  transition:border-color .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.field::placeholder{ color:var(--muted-2); }
.field:hover{ border-color:var(--line-2); }
.field:focus{ outline:none; border-color:var(--silver-3); background:var(--surface-2); box-shadow:0 0 0 3px rgba(214,217,222,.09); }
select.field{ appearance:none; -webkit-appearance:none; cursor:pointer; padding-right:34px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394959E' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat:no-repeat; background-position:right 11px center; background-size:15px; }
select.field option{ background:#15151A; color:#F6F6F8; }
textarea.field{ resize:vertical; min-height:110px; line-height:1.6; }
.field--search{ padding-left:40px;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394959E' stroke-width='2'><circle cx='11' cy='11' r='7'/><path d='M20 20l-3.2-3.2'/></svg>");
  background-repeat:no-repeat; background-position:14px center; background-size:16px; }

.catalog__bar{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:22px; }
.catalog__count{ font-size:13.5px; color:var(--muted); }
.catalog__count b{ color:#fff; font-family:var(--ff-display); }
.filters-toggle{ display:none; }

.empty{ text-align:center; padding:clamp(48px,9vw,96px) 24px; border:1px dashed var(--line-2); border-radius:var(--r-lg); background:var(--ink-2); }
.empty svg{ width:46px; height:46px; opacity:.3; margin:0 auto 18px; }
.empty h3{ font-size:20px; margin-bottom:8px; }
.empty p{ color:var(--muted); font-size:14.5px; max-width:46ch; margin:0 auto 22px; }

/* ---------- 9. Detalhe do veiculo ---------- */
.detail{ padding-top:calc(var(--header-h) + 34px); }
.crumbs{ display:flex; align-items:center; gap:9px; font-size:12.5px; color:var(--muted-2); margin-bottom:26px; flex-wrap:wrap; }
.crumbs a:hover{ color:#fff; }
.crumbs i{ opacity:.4; font-style:normal; }

.detail__grid{ display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,.95fr); gap:clamp(24px,3.4vw,52px); align-items:start; }

.gallery__main{ position:relative; aspect-ratio:16/10; border-radius:var(--r-lg); overflow:hidden; background:var(--ink-3); border:1px solid var(--line); }
.gallery__main img{ width:100%; height:100%; object-fit:cover; cursor:zoom-in; }
.gallery__nav{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; border-radius:50%;
  background:rgba(10,10,12,.65); border:1px solid var(--line-2); display:flex; align-items:center; justify-content:center;
  backdrop-filter:blur(8px); transition:background .25s var(--ease), color .25s var(--ease); z-index:2; }
.gallery__nav:hover{ background:#fff; color:#0A0A0C; }
.gallery__nav--prev{ left:14px; } .gallery__nav--next{ right:14px; }
.gallery__nav .ic{ width:19px; height:19px; }
.gallery__counter{ position:absolute; right:14px; bottom:14px; z-index:2; }
.gallery__thumbs{ display:grid; grid-template-columns:repeat(auto-fill,minmax(94px,1fr)); gap:9px; margin-top:12px; }
.gallery__thumbs button{ aspect-ratio:4/3; border-radius:var(--r-sm); overflow:hidden; border:1px solid var(--line); opacity:.55;
  transition:opacity .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); background:var(--ink-3); }
.gallery__thumbs button:hover{ opacity:.9; transform:translateY(-2px); }
.gallery__thumbs button.is-active{ opacity:1; border-color:var(--silver-2); }
.gallery__thumbs img{ width:100%; height:100%; object-fit:cover; }

.detail__aside{ position:sticky; top:calc(var(--header-h) + 18px); display:flex; flex-direction:column; gap:16px; }
.pricebox{ background:linear-gradient(180deg,var(--surface) 0%, var(--ink-3) 100%); border:1px solid var(--line-2);
  border-radius:var(--r-lg); padding:26px; box-shadow:var(--shadow-md); }
.pricebox h1{ font-size:clamp(23px,2.5vw,30px); letter-spacing:-.025em; }
.pricebox__brand{ font-size:11px; letter-spacing:.28em; text-transform:uppercase; color:var(--muted); margin-bottom:9px; }
.pricebox__version{ color:var(--muted); font-size:14px; margin-top:7px; }
.pricebox__price{ margin:22px 0 6px; padding-top:20px; border-top:1px solid var(--line); }
.pricebox__price .price{ font-size:clamp(30px,3.4vw,40px); background:linear-gradient(160deg,#fff,#B9BDC4); -webkit-background-clip:text; background-clip:text; color:transparent; }
.pricebox__actions{ display:flex; flex-direction:column; gap:10px; margin-top:22px; }
.pricebox__note{ font-size:12px; color:var(--muted-2); text-align:center; margin-top:14px; line-height:1.5; }

.speclist{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden; }
.speclist > div{ background:var(--surface); padding:18px 20px; }
.speclist dt{ font-size:10.5px; letter-spacing:.18em; text-transform:uppercase; color:var(--muted-2); margin-bottom:7px; }
.speclist dd{ margin:0; font-family:var(--ff-display); font-size:15.5px; font-weight:500; }

.panel{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:clamp(22px,3vw,32px); }
.panel h2{ font-size:19px; margin-bottom:16px; }
.panel p{ color:var(--fg-dim); line-height:1.8; white-space:pre-line; }
.optlist{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:10px 22px; }
.optlist li{ display:flex; align-items:flex-start; gap:10px; font-size:14.5px; color:var(--fg-dim); }
.optlist li .ic{ width:15px; height:15px; margin-top:4px; flex:none; color:var(--silver-2); }

/* lightbox */
.lightbox{ position:fixed; inset:0; z-index:120; background:rgba(4,4,6,.96); display:flex; align-items:center; justify-content:center;
  padding:clamp(16px,4vw,56px); opacity:0; visibility:hidden; transition:opacity .3s var(--ease), visibility .3s; }
.lightbox.is-open{ opacity:1; visibility:visible; }
.lightbox img{ max-width:100%; max-height:86vh; object-fit:contain; border-radius:var(--r-md); }
.lightbox__close{ position:absolute; top:22px; right:22px; width:46px; height:46px; border-radius:50%; border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center; }
.lightbox__close:hover{ background:#fff; color:#000; }

/* ---------- 10. Sobre / Local / Instagram ---------- */
.about{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(28px,4.5vw,72px); align-items:center; }
.about__art{ position:relative; aspect-ratio:4/3.2; border-radius:var(--r-xl); overflow:hidden; border:1px solid var(--line); background:var(--ink-3);
  display:flex; align-items:center; justify-content:center; }
.about__art::before{ content:''; position:absolute; inset:0; pointer-events:none;
  background:radial-gradient(80% 70% at 50% 25%, rgba(255,255,255,.09), transparent 68%),
             repeating-linear-gradient(118deg,#131318 0 26px,#0F0F14 26px 52px); }
.about__art img{ position:relative; width:56%; max-width:280px; opacity:.92; filter:drop-shadow(0 18px 40px rgba(0,0,0,.6)); }
.values{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:16px; margin-top:34px; }
.value{ padding:20px; border:1px solid var(--line); border-radius:var(--r-md); background:var(--surface); transition:border-color var(--dur) var(--ease), transform var(--dur) var(--ease); }
.value:hover{ border-color:var(--line-2); transform:translateY(-3px); }
.value .ic{ width:21px; height:21px; color:var(--silver-2); margin-bottom:12px; }
.value b{ display:block; font-family:var(--ff-display); font-size:14.5px; margin-bottom:5px; }
.value span{ font-size:12.5px; color:var(--muted); line-height:1.55; }

.local{ display:grid; grid-template-columns:.9fr 1.1fr; gap:clamp(24px,4vw,56px); align-items:stretch; }
.map{ border-radius:var(--r-lg); overflow:hidden; border:1px solid var(--line); min-height:380px; background:var(--ink-3); position:relative; }
.map iframe{ width:100%; height:100%; min-height:380px; border:0; filter:grayscale(1) invert(.92) contrast(.86) brightness(.94); }
.infolist li{ display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--line); }
.infolist li:first-child{ padding-top:0; }
.infolist .ic{ width:19px; height:19px; color:var(--silver-2); margin-top:3px; flex:none; }
.infolist b{ display:block; font-family:var(--ff-display); font-size:11px; letter-spacing:.2em; text-transform:uppercase; color:var(--muted-2); margin-bottom:6px; font-weight:600; }
.infolist span{ color:var(--fg-dim); font-size:15px; line-height:1.55; }
.infolist a:hover{ color:#fff; text-decoration:underline; text-underline-offset:3px; }

.ig{ position:relative; overflow:hidden; border-radius:var(--r-xl); border:1px solid var(--line);
  background:linear-gradient(135deg,#141419,#0C0C10); padding:clamp(34px,5.5vw,72px); text-align:center; }
.ig::before{ content:''; position:absolute; inset:-40% -10% auto; height:260px; pointer-events:none;
  background:radial-gradient(closest-side, rgba(255,255,255,.11), transparent 70%); }
.ig__icon{ position:relative; width:60px; height:60px; margin:0 auto 22px; border-radius:18px; border:1px solid var(--line-2);
  display:flex; align-items:center; justify-content:center; background:rgba(255,255,255,.05); }
.ig__icon .ic{ width:27px; height:27px; }
.ig h2{ position:relative; font-size:clamp(24px,3vw,34px); margin-bottom:10px; }
.ig p{ position:relative; color:var(--muted); margin-bottom:26px; }
.ig .btn{ position:relative; }

/* ---------- 11. Footer ---------- */
.footer{ background:var(--ink-2); border-top:1px solid var(--line); padding:clamp(52px,6vw,80px) 0 0; }
.footer__grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1.1fr; gap:clamp(26px,3.5vw,52px); padding-bottom:48px; }
.footer__brand .logo{ margin-bottom:18px; }
.footer__brand p{ color:var(--muted); font-size:14px; max-width:34ch; line-height:1.7; }
.footer__tag{ font-family:var(--ff-display); color:var(--fg-dim) !important; font-size:15px !important; margin-bottom:12px !important; }
.footer h4{ font-size:11px; letter-spacing:.22em; text-transform:uppercase; color:var(--muted-2); margin-bottom:18px; font-weight:600; }
.footer li + li{ margin-top:11px; }
.footer li a, .footer li span{ color:var(--fg-dim); font-size:14px; line-height:1.6; }
.footer li a:hover{ color:#fff; }
.footer__bottom{ display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
  padding:22px 0 26px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted-2); }
.footer__admin{ display:inline-flex; align-items:center; gap:7px; color:var(--muted-2); opacity:.5; font-size:11.5px; transition:opacity .25s, color .25s; }
.footer__admin:hover{ opacity:1; color:var(--fg-dim); }
.footer__admin .ic{ width:12px; height:12px; }

/* botao flutuante whatsapp */
.wa-float{ position:fixed; right:20px; bottom:20px; z-index:70; width:56px; height:56px; border-radius:50%;
  background:#25D366; color:#062A12; display:flex; align-items:center; justify-content:center;
  box-shadow:0 14px 34px -10px rgba(37,211,102,.55); transition:transform .3s var(--ease); }
.wa-float:hover{ transform:scale(1.07); }
.wa-float .ic{ width:28px; height:28px; }

/* ---------- 12. Utilidades / animacao ---------- */
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in{ opacity:1; transform:none; }
[data-delay="1"]{ transition-delay:.07s } [data-delay="2"]{ transition-delay:.14s }
[data-delay="3"]{ transition-delay:.21s } [data-delay="4"]{ transition-delay:.28s }
[data-delay="5"]{ transition-delay:.35s } [data-delay="6"]{ transition-delay:.42s }
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
  .reveal{ opacity:1; transform:none; }
}
.skeleton{ position:relative; overflow:hidden; background:var(--surface); }
.skeleton::after{ content:''; position:absolute; inset:0; pointer-events:none; transform:translateX(-100%);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.05),transparent); animation:sk 1.4s infinite; }
@keyframes sk{ to{ transform:translateX(100%); } }
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
.hidden{ display:none !important; }

/* toast */
.toasts{ position:fixed; right:18px; bottom:18px; z-index:200; display:flex; flex-direction:column; gap:10px; max-width:min(360px,calc(100vw - 36px)); }
.toast{ display:flex; align-items:flex-start; gap:12px; padding:14px 16px; border-radius:var(--r-md);
  background:var(--surface-2); border:1px solid var(--line-2); box-shadow:var(--shadow-lg); font-size:14px;
  animation:toastin .35s var(--ease); }
.toast .ic{ width:17px; height:17px; margin-top:2px; flex:none; }
.toast--ok .ic{ color:var(--ok); } .toast--err .ic{ color:var(--danger); } .toast--info .ic{ color:var(--info); }
.toast.is-out{ animation:toastout .3s var(--ease) forwards; }
@keyframes toastin{ from{ opacity:0; transform:translateY(14px) scale(.97); } }
@keyframes toastout{ to{ opacity:0; transform:translateX(20px); } }

/* modal */
.modal{ position:fixed; inset:0; z-index:150; display:flex; align-items:center; justify-content:center; padding:20px;
  background:rgba(4,4,6,.78); backdrop-filter:blur(6px); opacity:0; visibility:hidden; transition:opacity .28s var(--ease), visibility .28s; }
.modal.is-open{ opacity:1; visibility:visible; }
.modal__box{ width:min(480px,100%); background:var(--surface); border:1px solid var(--line-2); border-radius:var(--r-lg);
  padding:28px; box-shadow:var(--shadow-lg); transform:translateY(14px) scale(.98); transition:transform .3s var(--ease); }
.modal.is-open .modal__box{ transform:none; }
.modal__box h3{ font-size:20px; margin-bottom:10px; }
.modal__box p{ color:var(--muted); font-size:14.5px; line-height:1.65; }
.modal__actions{ display:flex; gap:10px; justify-content:flex-end; margin-top:26px; flex-wrap:wrap; }

/* ---------- 13. Responsivo (site publico) ---------- */
@media (max-width:1080px){
  .footer__grid{ grid-template-columns:1fr 1fr; }
  .about{ grid-template-columns:1fr; }
  .about__art{ order:-1; aspect-ratio:16/9; }
  .local{ grid-template-columns:1fr; }
  .detail__grid{ grid-template-columns:1fr; }
  .detail__aside{ position:static; }
}
@media (max-width:960px){
  .nav{ display:none; }
  .header__actions .btn{ display:none; }
  .burger{ display:flex; }
  .catalog{ grid-template-columns:1fr; }
  .filters{ position:static; display:none; max-height:none; overflow:visible; }
  .filters.is-open{ display:flex; }
  .catalog__results{ min-height:0; }
  .filters-toggle{ display:inline-flex; }
}
@media (max-width:620px){
  :root{ --header-h:64px; }
  .cars-grid{ grid-template-columns:1fr; }
  .footer__grid{ grid-template-columns:1fr; gap:34px; }
  .hero__meta{ gap:22px; }
  .hero__meta div{ min-width:calc(50% - 11px); }
  .gallery__thumbs{ grid-template-columns:repeat(auto-fill,minmax(72px,1fr)); }
  .speclist{ grid-template-columns:1fr 1fr; }
  .btn--lg{ padding:15px 26px; }
  .hero__cta .btn{ flex:1 1 100%; }
  .wa-float{ right:14px; bottom:14px; width:52px; height:52px; }
  .footer__bottom{ justify-content:center; text-align:center; }
}
