/* =====================================================================
   PRIME MOTORS — Design System & Styles
   Estética automotiva premium · preto / grafite / branco + verde-limão
   ===================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Cores base */
  --black:      #0A0B0D;
  --graphite:   #121317;
  --graphite-2: #16181D;
  --surface:    #1B1E24;
  --surface-2:  #23272F;
  --line:       #2A2E37;
  --line-soft:  rgba(255,255,255,.08);

  --white:      #F7F8FA;
  --gray-100:   #E6E8EC;
  --gray-300:   #B9BDC6;
  --gray-400:   #8A909C;
  --gray-500:   #656B77;

  /* Destaque — verde-limão sofisticado */
  --accent:      #C8FA4B;
  --accent-600:  #B4EA2F;
  --accent-glow: rgba(200,250,75,.22);
  --accent-ink:  #0A0B0D; /* texto sobre accent */

  /* Estados semânticos */
  --success: #4ADE80;
  --error:   #F87171;
  --warn:    #FBBF24;
  --info:    #60A5FA;

  /* Tipografia */
  --font-display: 'Space Grotesk', 'Sora', system-ui, sans-serif;
  --font-body:    'Inter', 'DM Sans', system-ui, sans-serif;

  /* Espaçamento (escala 4pt) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Raios */
  --r-sm: 8px; --r-md: 12px; --r-lg: 18px; --r-xl: 26px; --r-full: 999px;

  /* Sombras */
  --sh-sm: 0 2px 8px rgba(0,0,0,.35);
  --sh-md: 0 10px 30px rgba(0,0,0,.45);
  --sh-lg: 0 24px 60px rgba(0,0,0,.55);
  --sh-accent: 0 8px 30px var(--accent-glow);

  /* Layout */
  --maxw: 1280px;
  --header-h: 76px;
  --demo-h: 0px; /* altura da barra de demonstração; ativada por .has-demo-bar */

  /* Transições */
  --t-fast: .18s cubic-bezier(.4,0,.2,1);
  --t: .25s cubic-bezier(.4,0,.2,1);

  /* Textura fibra de carbono (detalhes) */
  --carbon:
    repeating-linear-gradient(45deg,  rgba(255,255,255,.015) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(0,0,0,.25) 0 2px, transparent 2px 4px);
}

/* ---------- Reset base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-100);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; margin: 0; letter-spacing: -.02em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- Utilitários ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-5); }
.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-7); }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { max-width: 640px; margin-bottom: var(--sp-7); }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-top: var(--sp-3); }
.section-head p { color: var(--gray-400); font-size: 17px; margin-top: var(--sp-3); }
.num { font-family: var(--font-display); font-weight: 700; font-feature-settings: "tnum"; }
.mono-price { font-family: var(--font-display); font-weight: 700; letter-spacing: -.01em; }
.text-accent { color: var(--accent); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-full); border: 1px solid transparent;
  min-height: 46px; transition: transform var(--t-fast), background var(--t), border-color var(--t), color var(--t);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-600); box-shadow: var(--sh-accent); }
.btn--ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--solid { background: var(--surface-2); color: var(--white); border-color: var(--line); }
.btn--solid:hover { background: var(--surface); border-color: var(--gray-500); }
.btn--wa { background: #25D366; color: #04310F; }
.btn--wa:hover { background: #23c35d; box-shadow: 0 8px 24px rgba(37,211,102,.28); }
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 16px 30px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- Chips / Badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; padding: 7px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-full);
  color: var(--gray-100);
}
.chip button { background: none; border: none; color: var(--gray-400); display: inline-flex; padding: 0; }
.chip button:hover { color: var(--accent); }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-full);
}
.badge--accent { background: var(--accent); color: var(--accent-ink); }
.badge--dark { background: rgba(10,11,13,.72); color: var(--white); backdrop-filter: blur(6px); border: 1px solid var(--line-soft); }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--gray-300); }
.badge--success { background: rgba(74,222,128,.14); color: var(--success); border: 1px solid rgba(74,222,128,.3); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 500; color: var(--gray-300); }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--white);
  background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 13px 14px; min-height: 48px; transition: border-color var(--t), background var(--t);
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--gray-500); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--gray-500); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); background: var(--graphite-2); box-shadow: 0 0 0 3px var(--accent-glow); }
.select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A909C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field-error { color: var(--error); font-size: 12.5px; display: none; }
.field.is-error .input, .field.is-error .select, .field.is-error .textarea { border-color: var(--error); }
.field.is-error .field-error { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--gray-300); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 1px; flex-shrink: 0; }
.form-note {
  font-size: 12.5px; color: var(--gray-500); line-height: 1.5;
  padding: 12px 14px; background: var(--graphite); border: 1px dashed var(--line); border-radius: var(--r-md);
}
.form-grid { display: grid; gap: var(--sp-4); }
.form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.form-grid.cols-3 { grid-template-columns: repeat(3,1fr); }

/* =====================================================================
   HEADER
   ===================================================================== */
.header {
  position: fixed; top: var(--demo-h); left: 0; right: 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background var(--t), border-color var(--t), backdrop-filter var(--t);
  border-bottom: 1px solid transparent;
}

/* ---------- Barra de demonstração ---------- */
body.has-demo-bar { --demo-h: 46px; }
.demo-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 105; height: 46px;
  display: flex; align-items: center; gap: var(--sp-4);
  padding: 0 var(--sp-5);
  background: var(--accent); color: var(--accent-ink);
  border-bottom: 1px solid rgba(10,11,13,.15);
}
.demo-bar__inner { display: flex; align-items: center; gap: var(--sp-4); margin-inline: auto; max-width: var(--maxw); width: 100%; }
.demo-bar__tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .02em; white-space: nowrap; }
.demo-bar__tag svg { width: 16px; height: 16px; }
.demo-bar__txt { font-size: 13.5px; font-weight: 500; opacity: .85; }
.demo-bar__cta { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-family: var(--font-display); font-weight: 700; font-size: 13.5px; white-space: nowrap; padding: 6px 14px; border-radius: var(--r-full); background: var(--accent-ink); color: var(--accent); transition: transform var(--t-fast); }
.demo-bar__cta svg { width: 15px; height: 15px; }
.demo-bar__cta:hover { transform: translateX(2px); }
.demo-bar__close { flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--r-full); border: none; background: rgba(10,11,13,.12); color: var(--accent-ink); display: grid; place-items: center; }
.demo-bar__close svg { width: 16px; height: 16px; }
.demo-bar__close:hover { background: rgba(10,11,13,.22); }
.header.is-solid {
  background: rgba(10,11,13,.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-soft);
}
.header .container { display: flex; align-items: center; gap: var(--sp-6); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; color: var(--white); }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-size: 18px; box-shadow: var(--sh-accent);
}
.logo b { font-weight: 700; }
.logo span { color: var(--accent); }
.nav { display: flex; gap: 4px; margin-inline: auto; }
.nav a {
  font-size: 15px; font-weight: 500; color: var(--gray-300); padding: 9px 14px; border-radius: var(--r-full);
  transition: color var(--t), background var(--t); position: relative;
}
.nav a:hover { color: var(--white); }
.nav a.active { color: var(--white); }
.nav a.active::after {
  content:""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: var(--sp-3); }
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--white); align-items: center; justify-content: center; }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120; background: rgba(6,7,9,.6); backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
}
.mobile-nav.open { opacity: 1; visibility: visible; }
.mobile-nav__panel {
  position: absolute; inset: 0 0 0 auto; width: min(84vw, 360px); background: var(--graphite);
  border-left: 1px solid var(--line); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
  transform: translateX(100%); transition: transform var(--t);
}
.mobile-nav.open .mobile-nav__panel { transform: none; }
.mobile-nav__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); }
.mobile-nav__close { width: 44px; height: 44px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--white); display: grid; place-items: center; }
.mobile-nav a.mlink { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--gray-100); padding: 12px 6px; border-bottom: 1px solid var(--line-soft); }
.mobile-nav a.mlink.active { color: var(--accent); }
.mobile-nav__cta { margin-top: auto; display: grid; gap: var(--sp-3); }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; min-height: 85vh; display: flex; align-items: flex-end; padding-top: calc(var(--header-h) + var(--demo-h)); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content:""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,11,13,.55) 0%, rgba(10,11,13,.35) 40%, rgba(10,11,13,.92) 100%),
    linear-gradient(90deg, rgba(10,11,13,.7) 0%, transparent 55%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-bottom: var(--sp-8); }
.hero h1 { font-size: clamp(38px, 6.5vw, 76px); max-width: 14ch; }
.hero__sub { font-size: clamp(16px,2vw,20px); color: var(--gray-300); max-width: 54ch; margin-top: var(--sp-4); }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero__badges { display: flex; flex-wrap: wrap; gap: var(--sp-5); margin-top: var(--sp-7); }
.hero__badge { display: flex; align-items: center; gap: 10px; color: var(--gray-300); font-size: 14px; }
.hero__badge svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }

/* Busca rápida sobreposta */
.quicksearch {
  position: relative; z-index: 2; margin-top: calc(var(--sp-6) * -1);
  background: rgba(21,24,30,.86); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg);
  padding: var(--sp-5);
}
.quicksearch__grid { display: grid; grid-template-columns: repeat(4,1fr) auto; gap: var(--sp-3); align-items: end; }
.quicksearch .field label { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); }

/* =====================================================================
   VEHICLE CARD
   ===================================================================== */
.grid-cards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(3, 1fr); }
.grid-cards.feat { grid-template-columns: repeat(4, 1fr); }

.vcard {
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform var(--t), border-color var(--t), box-shadow var(--t);
}
.vcard:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--sh-lg); }
.vcard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface); }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.vcard:hover .vcard__media img { transform: scale(1.06); }
.vcard__tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 70%; }
.vcard__actions { position: absolute; top: 12px; right: 12px; display: flex; gap: 6px; }
.icon-btn {
  width: 36px; height: 36px; border-radius: var(--r-full); border: 1px solid var(--line-soft);
  background: rgba(10,11,13,.6); backdrop-filter: blur(6px); color: var(--white);
  display: grid; place-items: center; transition: color var(--t), background var(--t), border-color var(--t);
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.icon-btn.is-fav { color: var(--accent); }
.icon-btn svg { width: 17px; height: 17px; }
.vcard__body { padding: var(--sp-4) var(--sp-4) var(--sp-5); display: flex; flex-direction: column; flex: 1; }
.vcard__brand { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); font-weight: 600; font-family: var(--font-display); }
.vcard__title { font-size: 19px; margin-top: 4px; color: var(--white); }
.vcard__version { font-size: 13.5px; color: var(--gray-400); margin-top: 3px; }
.vcard__specs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: var(--sp-4); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); }
.vcard__spec { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-300); }
.vcard__spec svg { width: 15px; height: 15px; color: var(--gray-500); }
.vcard__price { margin-top: var(--sp-4); }
.vcard__price .price { font-size: 24px; color: var(--white); }
.vcard__price .parcel { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.vcard__foot { margin-top: var(--sp-5); display: flex; gap: 8px; }
.vcard__foot .btn { flex: 1; }
.vcard__disclaimer { font-size: 11px; color: var(--gray-500); margin-top: 10px; }

/* =====================================================================
   CATEGORIES
   ===================================================================== */
.cat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-4); }
.cat-card {
  position: relative; aspect-ratio: 16/11; border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); display: flex; align-items: flex-end; padding: var(--sp-5);
}
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s ease; }
.cat-card::after { content:""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(10,11,13,.9)); z-index: 1; }
.cat-card:hover img { transform: scale(1.07); }
.cat-card__info { position: relative; z-index: 2; }
.cat-card__info h3 { font-size: 22px; }
.cat-card__info span { color: var(--accent); font-size: 14px; font-weight: 500; }
.cat-card__arrow { position: absolute; z-index: 2; top: var(--sp-5); right: var(--sp-5); width: 40px; height: 40px; border-radius: var(--r-full); background: rgba(10,11,13,.5); border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--white); transition: background var(--t), color var(--t); }
.cat-card:hover .cat-card__arrow { background: var(--accent); color: var(--accent-ink); }

/* =====================================================================
   WHY / FEATURES
   ===================================================================== */
.feature-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.feature {
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6) var(--sp-5);
  transition: transform var(--t), border-color var(--t);
}
.feature:hover { transform: translateY(-4px); border-color: var(--line); }
.feature__icon { width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--accent); margin-bottom: var(--sp-4); }
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18px; }
.feature p { font-size: 14.5px; color: var(--gray-400); margin-top: var(--sp-3); }

/* =====================================================================
   SPLIT SECTIONS (Financiamento / Sobre)
   ===================================================================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-8); align-items: center; }
.split--form { align-items: stretch; }
.split__media { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); min-height: 420px; }
.split__media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.media-stat {
  position: absolute; z-index: 2; left: var(--sp-5); bottom: var(--sp-5);
  background: rgba(10,11,13,.72); backdrop-filter: blur(10px); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: var(--sp-4) var(--sp-5);
}
.media-stat .big { font-size: 34px; color: var(--accent); }
.media-stat .lbl { font-size: 13px; color: var(--gray-300); }

.panel { background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }

/* =====================================================================
   TRADE-IN (contrast band)
   ===================================================================== */
.band-accent { position: relative; background: var(--graphite); border-block: 1px solid var(--line); overflow: hidden; }
.band-accent::before { content:""; position: absolute; inset: 0; background: var(--carbon); opacity: .5; z-index: 0; }
.band-accent > * { position: relative; z-index: 1; }

/* =====================================================================
   STATS COUNTER (Sobre)
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.stat { text-align: center; padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--graphite-2); }
.stat .big { font-size: clamp(32px, 4vw, 48px); color: var(--white); }
.stat .big span { color: var(--accent); }
.stat .lbl { font-size: 14px; color: var(--gray-400); margin-top: 4px; }

/* =====================================================================
   TESTIMONIALS CAROUSEL
   ===================================================================== */
.carousel { position: relative; }
.carousel__track { display: flex; gap: var(--sp-4); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-3); scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.testi { scroll-snap-align: start; flex: 0 0 clamp(300px, 33%, 400px); background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-6); }
.testi__stars { color: var(--accent); display: flex; gap: 2px; margin-bottom: var(--sp-4); }
.testi__stars svg { width: 18px; height: 18px; }
.testi__text { font-size: 16px; color: var(--gray-100); line-height: 1.55; }
.testi__foot { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line-soft); }
.avatar { width: 46px; height: 46px; border-radius: var(--r-full); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; background: var(--surface-2); color: var(--accent); border: 1px solid var(--line); }
.testi__meta b { display: block; font-size: 15px; color: var(--white); }
.testi__meta span { font-size: 13px; color: var(--gray-400); }
.carousel__nav { display: flex; gap: 10px; margin-top: var(--sp-5); }
.carousel__nav button { width: 46px; height: 46px; }

/* =====================================================================
   LOCATION / CONTACT
   ===================================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
.info-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.info-row { display: flex; gap: 14px; padding: var(--sp-4) 0; border-bottom: 1px solid var(--line-soft); }
.info-row__icon { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.info-row__icon svg { width: 20px; height: 20px; }
.info-row b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.info-row span, .info-row a { font-size: 16px; color: var(--gray-100); }
.info-row a:hover { color: var(--accent); }
.map-embed { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; min-height: 260px; }
.map-embed iframe { width: 100%; height: 100%; min-height: 260px; border: 0; filter: grayscale(.4) invert(.9) hue-rotate(180deg) contrast(.9); }

/* =====================================================================
   FLOATING WHATSAPP + MOBILE BAR
   ===================================================================== */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: inline-flex; align-items: center; gap: 0; height: 58px; padding: 0;
  background: #25D366; color: #04310F; border-radius: var(--r-full); border: none;
  box-shadow: 0 10px 30px rgba(37,211,102,.4); overflow: hidden; transition: padding var(--t), gap var(--t);
}
.wa-float__icon { width: 58px; height: 58px; display: grid; place-items: center; flex-shrink: 0; }
.wa-float__icon svg { width: 30px; height: 30px; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: 15px; transition: max-width var(--t), padding var(--t); }
.wa-float:hover .wa-float__label { max-width: 220px; padding-right: 22px; }

.mobile-bar { display: none; }

/* =====================================================================
   PAGE HERO (subpáginas)
   ===================================================================== */
.page-hero { position: relative; padding-top: calc(var(--header-h) + var(--demo-h) + var(--sp-8)); padding-bottom: var(--sp-8); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content:""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 100% at 80% -10%, rgba(200,250,75,.10), transparent 55%), var(--graphite); }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 16ch; }
.page-hero p { color: var(--gray-400); font-size: 18px; max-width: 60ch; margin-top: var(--sp-4); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--gray-500); margin-bottom: var(--sp-4); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { opacity: .5; }

/* =====================================================================
   ESTOQUE (catalog + filters)
   ===================================================================== */
.catalog { display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-6); align-items: start; }
.filters {
  position: sticky; top: calc(var(--header-h) + var(--demo-h) + var(--sp-4));
  background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5);
  max-height: calc(100vh - var(--header-h) - var(--demo-h) - var(--sp-6)); overflow-y: auto;
}
.filters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--sp-4); }
.filters__head h3 { font-size: 17px; }
.filter-group { padding-block: var(--sp-4); border-top: 1px solid var(--line-soft); }
.filter-group:first-of-type { border-top: none; padding-top: 0; }
.filter-group > label.grp { display: block; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-400); margin-bottom: var(--sp-3); }
.range-row { display: flex; gap: 8px; align-items: center; }
.range-row .input { padding: 9px 10px; min-height: 42px; font-size: 14px; }
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt-list .check { font-size: 14px; color: var(--gray-200); }
.opt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-tag { cursor: pointer; }
.opt-tag input { position: absolute; opacity: 0; pointer-events: none; }
.opt-tag span { display: inline-block; font-size: 13px; padding: 7px 12px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--graphite); color: var(--gray-300); transition: all var(--t); }
.opt-tag input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.catalog__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); margin-bottom: var(--sp-5); flex-wrap: wrap; }
.catalog__count { font-size: 15px; color: var(--gray-300); }
.catalog__count b { color: var(--white); }
.catalog__tools { display: flex; align-items: center; gap: var(--sp-3); }
.search-inline { position: relative; flex: 1; min-width: 220px; }
.search-inline svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--gray-500); }
.search-inline .input { padding-left: 42px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-4); }
.filter-btn-mobile { display: none; }
.load-more { display: flex; justify-content: center; margin-top: var(--sp-7); }
.empty-state { text-align: center; padding: var(--sp-9) var(--sp-5); border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--gray-400); }
.empty-state svg { width: 48px; height: 48px; color: var(--gray-500); margin-bottom: var(--sp-4); }

/* Skeletons */
.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-card { height: 400px; }

/* =====================================================================
   VEHICLE DETAIL
   ===================================================================== */
.vd-layout { display: grid; grid-template-columns: 1fr 380px; gap: var(--sp-6); align-items: start; }
.gallery__main { position: relative; aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery__count { position: absolute; bottom: 14px; right: 14px; }
.gallery__share { position: absolute; top: 14px; right: 14px; }
.gallery__badge360 { position: absolute; top: 14px; left: 14px; }
.gallery__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; z-index: 3; }
.gallery__arrow.prev { left: 14px; } .gallery__arrow.next { right: 14px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs img { aspect-ratio: 16/11; object-fit: cover; border-radius: var(--r-sm); border: 2px solid transparent; cursor: pointer; opacity: .6; transition: opacity var(--t), border-color var(--t); }
.gallery__thumbs img.active, .gallery__thumbs img:hover { opacity: 1; border-color: var(--accent); }

.vd-header { margin-top: var(--sp-6); }
.vd-header__brand { color: var(--accent); font-family: var(--font-display); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.vd-header h1 { font-size: clamp(26px, 3.5vw, 40px); margin-top: 6px; }
.vd-header__version { color: var(--gray-400); font-size: 17px; margin-top: 6px; }
.vd-seals { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--sp-4); }

.spec-block { margin-top: var(--sp-7); }
.spec-block h3 { font-size: 20px; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: 10px; }
.spec-block h3 svg { width: 20px; height: 20px; color: var(--accent); }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; background: var(--line-soft); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.spec-item { background: var(--graphite-2); padding: var(--sp-4); }
.spec-item .k { font-size: 12.5px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .04em; }
.spec-item .v { font-size: 16px; color: var(--white); font-weight: 500; margin-top: 4px; }
.opt-features { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.opt-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--gray-200); }
.opt-features svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.vd-desc { margin-top: var(--sp-5); color: var(--gray-300); font-size: 16px; line-height: 1.7; }

/* Sticky conversion card */
.convert-card { position: sticky; top: calc(var(--header-h) + var(--demo-h) + var(--sp-4)); background: var(--graphite-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-5); box-shadow: var(--sh-md); }
.convert-card__price { font-size: 34px; color: var(--white); }
.convert-card__parcel { font-size: 14px; color: var(--gray-400); margin-top: 4px; }
.convert-card__code { font-size: 13px; color: var(--gray-500); margin-top: var(--sp-3); }
.convert-card__avail { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--success); margin-top: var(--sp-4); }
.convert-card__avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(74,222,128,.15); }
.convert-card .stack { display: grid; gap: 10px; margin-top: var(--sp-5); }
.convert-card__mini { display: grid; gap: 10px; margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--line-soft); }

/* =====================================================================
   LIGHTBOX
   ===================================================================== */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6,7,9,.94); display: none; align-items: center; justify-content: center; padding: var(--sp-6); }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--r-md); }
.lightbox__close { position: absolute; top: 22px; right: 22px; width: 50px; height: 50px; }
.lightbox__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; }
.lightbox__arrow.prev { left: 22px; } .lightbox__arrow.next { right: 22px; }
.lightbox__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); }

/* =====================================================================
   STEPPER (Financiamento)
   ===================================================================== */
.stepper { display: flex; align-items: center; gap: 0; margin-bottom: var(--sp-7); }
.step { display: flex; align-items: center; gap: 12px; flex: 1; }
.step__num { width: 40px; height: 40px; border-radius: var(--r-full); border: 1px solid var(--line); background: var(--graphite); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--gray-400); flex-shrink: 0; transition: all var(--t); }
.step__label { font-size: 14px; color: var(--gray-500); font-weight: 500; }
.step__line { flex: 1; height: 2px; background: var(--line); margin-inline: 10px; }
.step.is-active .step__num { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step.is-active .step__label { color: var(--white); }
.step.is-done .step__num { background: var(--surface-2); color: var(--accent); border-color: var(--accent); }
.step.is-done .step__line, .step.is-active .step__line { background: var(--accent); }
.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp .3s ease; }
.summary-list { display: grid; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.summary-row .k { color: var(--gray-400); } .summary-row .v { color: var(--white); font-weight: 500; }
.form-actions { display: flex; justify-content: space-between; gap: var(--sp-3); margin-top: var(--sp-6); }

.process-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.process-step { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--graphite-2); }
.process-step .n { font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--accent); opacity: .3; line-height: 1; }
.process-step h4 { font-size: 17px; margin-top: var(--sp-3); }
.process-step p { font-size: 14px; color: var(--gray-400); margin-top: 8px; }

/* Success message */
.success-msg { text-align: center; padding: var(--sp-8) var(--sp-5); }
.success-msg__icon { width: 76px; height: 76px; margin-inline: auto; border-radius: 50%; background: rgba(74,222,128,.14); border: 1px solid rgba(74,222,128,.35); color: var(--success); display: grid; place-items: center; margin-bottom: var(--sp-5); }
.success-msg__icon svg { width: 38px; height: 38px; }
.success-msg h3 { font-size: 26px; }
.success-msg p { color: var(--gray-400); margin-top: var(--sp-3); max-width: 46ch; margin-inline: auto; }

/* =====================================================================
   SOBRE (values, team)
   ===================================================================== */
.value-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: var(--sp-3); }
.value-card { text-align: center; padding: var(--sp-5) var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--graphite-2); }
.value-card svg { width: 30px; height: 30px; color: var(--accent); margin-bottom: var(--sp-3); }
.value-card b { font-size: 16px; display: block; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.mv-card { padding: var(--sp-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--graphite-2); }
.mv-card .eyebrow { margin-bottom: var(--sp-3); }
.mv-card p { color: var(--gray-300); font-size: 16px; }
.team-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); }
.team-card { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--graphite-2); }
.team-card__img { aspect-ratio: 3/4; background: var(--surface); overflow: hidden; }
.team-card__img img { width: 100%; height: 100%; object-fit: cover; }
.team-card__body { padding: var(--sp-4); }
.team-card__body b { font-size: 16px; } .team-card__body span { color: var(--accent); font-size: 13px; }

/* =====================================================================
   MODAL (contato rápido)
   ===================================================================== */
.modal { position: fixed; inset: 0; z-index: 150; background: rgba(6,7,9,.7); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: var(--sp-5); }
.modal.open { display: flex; animation: fadeIn .2s ease; }
.modal__box { background: var(--graphite); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--sp-6); width: min(480px, 100%); max-height: 90vh; overflow-y: auto; box-shadow: var(--sh-lg); animation: fadeUp .3s ease; }
.modal__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--sp-5); }
.modal__head h3 { font-size: 22px; }
.modal__head p { font-size: 14px; color: var(--gray-400); margin-top: 6px; }
.modal__close { width: 42px; height: 42px; flex-shrink: 0; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--graphite); border-top: 1px solid var(--line); padding-top: var(--sp-8); margin-top: var(--sp-9); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: var(--sp-6); padding-bottom: var(--sp-7); }
.footer__brand p { color: var(--gray-400); font-size: 14.5px; margin-top: var(--sp-4); max-width: 34ch; }
.footer__social { display: flex; gap: 10px; margin-top: var(--sp-5); }
.footer__social a { width: 42px; height: 42px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--gray-300); transition: all var(--t); }
.footer__social a:hover { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.footer__col h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); margin-bottom: var(--sp-4); }
.footer__col a, .footer__col span { display: block; color: var(--gray-300); font-size: 14.5px; padding: 6px 0; }
.footer__col a:hover { color: var(--accent); }
.footer__disclaimer { font-size: 12.5px; color: var(--gray-500); line-height: 1.6; padding-block: var(--sp-5); border-top: 1px solid var(--line-soft); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding-block: var(--sp-5); border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.footer__bottom p { font-size: 13px; color: var(--gray-500); }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 300; background: var(--surface-2); border: 1px solid var(--line); color: var(--white); padding: 13px 20px; border-radius: var(--r-full); font-size: 14px; box-shadow: var(--sh-lg); opacity: 0; transition: opacity var(--t), transform var(--t); display: flex; align-items: center; gap: 10px; }
.toast svg { color: var(--accent); width: 18px; height: 18px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1100px) {
  .grid-cards.feat { grid-template-columns: repeat(3,1fr); }
  .feature-grid { grid-template-columns: repeat(2,1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .value-grid { grid-template-columns: repeat(3,1fr); }
  .stats, .process-steps, .team-grid { grid-template-columns: repeat(2,1fr); }
  .vd-layout { grid-template-columns: 1fr; }
  .convert-card { position: static; }
}
@media (max-width: 900px) {
  .demo-bar__txt { display: none; }
  .nav { display: none; }
  .header-actions .btn:not(.wa-header) { display: none; }
  .menu-toggle { display: inline-flex; }
  .quicksearch__grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.drawer-open { display: block; position: fixed; inset: 0; z-index: 130; max-height: 100vh; border-radius: 0; top: 0; }
  .filter-btn-mobile { display: inline-flex; }
  .grid-cards { grid-template-columns: repeat(2,1fr); }
  .split, .contact-grid, .mv-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .split__media { min-height: 300px; }
  .spec-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 680px) {
  :root { --header-h: 66px; }
  .header-actions .wa-header { display: none; } /* no mobile o WhatsApp fica na barra inferior */
  .demo-bar { padding-inline: var(--sp-3); gap: var(--sp-2); }
  .demo-bar__tag { font-size: 12px; }
  .demo-bar__cta { font-size: 12px; padding: 6px 11px; }
  .demo-bar__cta svg { display: none; }
  .section { padding-block: var(--sp-7); }
  .grid-cards, .grid-cards.feat, .cat-grid, .feature-grid, .stats, .process-steps, .team-grid, .value-grid, .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .quicksearch__grid { grid-template-columns: 1fr; }
  .hero { min-height: 90vh; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .footer__top { grid-template-columns: 1fr; }
  .stepper { overflow-x: auto; }
  .step__label { display: none; }
  .step { flex: 0 0 auto; }
  .step__line { min-width: 24px; }
  .gallery__thumbs { grid-template-columns: repeat(4,1fr); }
  .spec-grid, .opt-features { grid-template-columns: 1fr; }
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: repeat(3,1fr); position: fixed; inset: auto 0 0 0; z-index: 95;
    background: rgba(10,11,13,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 4px; font-size: 11px; color: var(--gray-300); }
  .mobile-bar a svg { width: 22px; height: 22px; }
  .mobile-bar a.wa { color: #25D366; }
  body { padding-bottom: 64px; }
  .form-actions { flex-direction: column-reverse; }
  .form-actions .btn { width: 100%; }
  .modal__box { padding: var(--sp-5); }
}
