/* ═══════════════════════════════════════════════════════════
   MODELO CONCESSIONÁRIA — Tema Dark Neon Automotivo
   Template base para revenda de veículos
   Rebranding: trocar apenas as variáveis de :root
   ═══════════════════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Superfícies */
  --bg:        #05070d;
  --bg-2:      #080b13;
  --bg-card:   #0b1020;
  --bg-elev:   #111830;
  --glass:     rgba(11, 16, 32, 0.72);

  /* Acento neon */
  --neon:        #00e5ff;
  --neon-2:      #7c5cff;
  --neon-dark:   #0091ab;
  --neon-soft:   rgba(0, 229, 255, 0.12);
  --neon-glow:   rgba(0, 229, 255, 0.28);
  --neon-glow-2: rgba(124, 92, 255, 0.22);

  /* Semânticas */
  --ok:      #22d39a;
  --warn:    #ffb020;
  --danger:  #ff4d6d;
  --whats:   #25d366;

  /* Texto */
  --text:        #e8eef7;
  --text-muted:  #8b9bb0;
  --text-dim:    #4a5666;

  /* Bordas */
  --border:       #16202f;
  --border-light: #1e2c40;

  /* Métricas */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --max-width: 1320px;

  /* Tipografia */
  --font:         'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  /* Movimento */
  --transition:      0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-fast: 0.15s ease;

  /* Sombras */
  --shadow-sm:   0 2px 12px rgba(0, 0, 0, 0.4);
  --shadow:      0 8px 32px rgba(0, 0, 0, 0.55);
  --shadow-lg:   0 16px 64px rgba(0, 0, 0, 0.7);
  --shadow-neon: 0 0 32px rgba(0, 229, 255, 0.18);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Grade técnica de fundo — dá o "futurista" sem custo de GPU */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 70% at 50% 0%, #000 20%, transparent 75%);
}

a { color: var(--neon); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }

/* ── Botões ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 28px; border: 1px solid transparent; border-radius: 50px;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; line-height: 1.2; letter-spacing: 0.01em;
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-neon {
  background: linear-gradient(135deg, var(--neon) 0%, #00b8d4 100%);
  color: #04121a;
  box-shadow: 0 4px 24px var(--neon-glow);
}
.btn-neon:hover { transform: translateY(-2px); box-shadow: 0 8px 36px var(--neon-glow); color: #04121a; }

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border-light);
}
.btn-outline:hover { background: var(--neon-soft); border-color: var(--neon); color: var(--neon); }

.btn-whats { background: var(--whats); color: #04140a; box-shadow: 0 4px 24px rgba(37, 211, 102, 0.28); }
.btn-whats:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(37, 211, 102, 0.42); color: #04140a; }

.btn-danger { background: rgba(255, 77, 109, 0.12); color: var(--danger); border-color: rgba(255, 77, 109, 0.35); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-sm { padding: 9px 18px; font-size: 0.8rem; }
.btn-full { width: 100%; }
.btn-icon { padding: 9px 12px; }

/* ═══════════════ HEADER ═══════════════ */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--max-width); margin: 0 auto; padding: 14px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.header-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.header-logo { height: 40px; width: auto; object-fit: contain; }
.header-name {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--text);
}
.header-nav { display: flex; align-items: center; gap: 6px; }

.nav-link {
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  padding: 8px 14px; border-radius: 50px; transition: all var(--transition);
}
.nav-link:hover { color: var(--neon); background: var(--neon-soft); }

.btn-share-nav {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-light);
  color: var(--text-muted); width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; font-size: 1rem; transition: all var(--transition);
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-share-nav:hover { border-color: var(--neon); color: var(--neon); background: var(--neon-soft); }

.btn-mobile-menu {
  display: none; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-light);
  color: var(--text); width: 40px; height: 40px; border-radius: var(--radius-sm);
  cursor: pointer; font-size: 1.15rem;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  overflow: hidden; border-bottom: 1px solid var(--border);
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease;
  background-size: cover; background-position: center;
}
.hero-slide.ativo { opacity: 1; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(5,7,13,0.96) 0%, rgba(5,7,13,0.78) 42%, rgba(5,7,13,0.35) 100%),
    radial-gradient(ellipse 60% 80% at 85% 30%, rgba(0, 229, 255, 0.14), transparent 70%);
}
/* Sem fotos no showroom: gradiente animado assume o lugar */
.hero-vazio {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 70% 60% at 78% 22%, var(--neon-glow-2), transparent 65%),
    radial-gradient(ellipse 60% 70% at 18% 78%, rgba(0, 229, 255, 0.16), transparent 68%),
    linear-gradient(160deg, #05070d 0%, #0a1120 55%, #060a14 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 0 72px; max-width: 760px; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--neon); background: var(--neon-soft);
  border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 7px 16px; border-radius: 50px; margin-bottom: 26px;
}
.hero-title {
  font-size: clamp(2.4rem, 6.2vw, 4.6rem); font-weight: 700;
  letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 22px;
}
.hero-title .destaque-neon {
  background: linear-gradient(120deg, var(--neon) 0%, var(--neon-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-rule {
  width: 88px; height: 3px; border-radius: 3px; margin-bottom: 22px;
  background: linear-gradient(90deg, var(--neon), var(--neon-2));
  box-shadow: 0 0 18px var(--neon-glow);
}
.hero-sub { font-size: 1.06rem; color: var(--text-muted); max-width: 520px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 44px; }

.hero-stats { display: flex; flex-wrap: wrap; gap: 40px; }
.stat-num {
  font-family: var(--font-display); font-size: 1.9rem; font-weight: 700;
  color: var(--neon); line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 6px; }

.hero-nav { position: absolute; bottom: 28px; right: 32px; z-index: 3; display: flex; gap: 8px; }
.hero-dot {
  width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 255, 255, 0.22); transition: all var(--transition);
}
.hero-dot.ativo { background: var(--neon); box-shadow: 0 0 12px var(--neon-glow); width: 26px; border-radius: 6px; }

/* ═══════════════ SEÇÕES ═══════════════ */
.section { padding: 92px 0; position: relative; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { margin-bottom: 46px; max-width: 720px; }
.section-kicker {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--neon); margin-bottom: 14px; display: block;
}
.section-title { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-muted); font-size: 1rem; }

/* ═══════════════ CARD DE VEÍCULO ═══════════════ */
.veiculo-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
}

.vcard {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); position: relative;
  display: flex; flex-direction: column;
}
.vcard:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: var(--shadow), var(--shadow-neon);
}

.vcard-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-elev); }
.vcard-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.vcard:hover .vcard-img { transform: scale(1.06); }

/* Placeholder quando o veículo ainda não tem foto */
.vcard-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 40%, rgba(0, 229, 255, 0.08), transparent 70%),
    linear-gradient(150deg, #0d1424, #080d18);
  color: var(--text-dim); font-family: var(--font-display); font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase;
}

.vcard-badges { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); }
.badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 50px; backdrop-filter: blur(8px);
}
.badge-oferta    { background: var(--danger); color: #fff; box-shadow: 0 2px 14px rgba(255, 77, 109, 0.45); }
.badge-destaque  { background: var(--neon); color: #04121a; box-shadow: 0 2px 14px var(--neon-glow); }
.badge-vendido   { background: rgba(10, 12, 18, 0.88); color: var(--text-muted); border: 1px solid var(--border-light); }
.badge-reservado { background: var(--warn); color: #241800; }

.vcard-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.vcard-title { font-size: 1.06rem; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.015em; }
.vcard-version { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; min-height: 1.2em; }

.vcard-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.vcard-meta-item {
  font-size: 0.74rem; color: var(--text-muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border); padding: 4px 10px; border-radius: 6px;
}

.vcard-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.vcard-price-old { font-size: 0.78rem; color: var(--text-dim); text-decoration: line-through; display: block; }
.vcard-price-now {
  font-family: var(--font-display); font-size: 1.32rem; font-weight: 700;
  color: var(--neon); letter-spacing: -0.02em; line-height: 1.1;
}
.vcard-price-now.consulta { font-size: 1rem; color: var(--text-muted); }

.vcard-link {
  position: absolute; inset: 0; z-index: 3;
}
.vcard-cta {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  display: inline-flex; align-items: center; gap: 5px; position: relative; z-index: 4;
}
.vcard:hover .vcard-cta { color: var(--neon); }

/* Faixa de destaques: rolagem horizontal */
.destaque-rail {
  display: flex; gap: 22px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.destaque-rail > * { flex: 0 0 330px; scroll-snap-align: start; }
.destaque-rail::-webkit-scrollbar { height: 6px; }
.destaque-rail::-webkit-scrollbar-track { background: var(--bg-elev); border-radius: 6px; }
.destaque-rail::-webkit-scrollbar-thumb { background: var(--neon-dark); border-radius: 6px; }

/* ═══════════════ FILTROS ═══════════════ */
.filtros {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 32px;
}
.filtros-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.filtros-grid .campo-largo { grid-column: span 2; }

.campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.campo-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--text-dim);
}
.input, .select, .textarea {
  width: 100%; padding: 11px 14px;
  background: var(--bg-2); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); color: var(--text);
  font-family: var(--font); font-size: 0.9rem;
  transition: border-color var(--transition); min-width: 0;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px var(--neon-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 34px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%238b9bb0' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 9px;
}
.select option { background: var(--bg-card); color: var(--text); }
.textarea { resize: vertical; min-height: 92px; line-height: 1.6; }

.filtros-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-top: 20px;
  padding-top: 18px; border-top: 1px solid var(--border);
}
.filtros-count { font-size: 0.88rem; color: var(--text-muted); }
.filtros-count strong { color: var(--neon); font-family: var(--font-display); font-size: 1.05rem; }

.range-par { display: flex; align-items: center; gap: 8px; }
.range-par .input { flex: 1; }
.range-par span { color: var(--text-dim); font-size: 0.8rem; }

/* Estado vazio */
.vazio {
  grid-column: 1 / -1; text-align: center; padding: 72px 24px;
  border: 1px dashed var(--border-light); border-radius: var(--radius);
}
.vazio-text { color: var(--text-muted); margin-bottom: 18px; font-size: 0.98rem; }

/* ═══════════════ SOBRE / INFO CARDS ═══════════════ */
.sobre-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 52px; align-items: start; }
.sobre-texto p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }

.info-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  transition: all var(--transition);
}
.info-card:hover { border-color: rgba(0, 229, 255, 0.35); }
.info-icon { font-size: 1.35rem; margin-bottom: 10px; }
.info-label {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-dim); margin-bottom: 5px; font-weight: 600;
}
.info-valor { color: var(--text); font-size: 0.92rem; word-break: break-word; }

/* ═══════════════ SHOWROOM ═══════════════ */
.showroom-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.showroom-item {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-elev);
}
.showroom-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.showroom-item:hover img { transform: scale(1.07); }
.showroom-legenda {
  position: absolute; inset: auto 0 0 0; padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(5, 7, 13, 0.92));
  font-size: 0.82rem; color: var(--text);
}

/* ═══════════════ CONTATO ═══════════════ */
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contato-bloco {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
}
.contato-bloco h3 { font-size: 1.15rem; margin-bottom: 16px; }
.contato-linhas { display: flex; flex-direction: column; gap: 14px; }
.contato-linha { display: flex; gap: 12px; align-items: flex-start; }
.contato-linha .icone { color: var(--neon); flex-shrink: 0; font-size: 1rem; line-height: 1.6; }
.contato-linha .valor { color: var(--text-muted); font-size: 0.92rem; word-break: break-word; }
.contato-acoes { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

/* ═══════════════ FOOTER ═══════════════ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 62px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 38px; width: auto; }
.footer-nome { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.footer-desc { color: var(--text-dim); font-size: 0.9rem; max-width: 340px; }
.footer-col h4 {
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-dim); margin-bottom: 16px; font-weight: 700;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.9rem; }
.footer-col a:hover { color: var(--neon); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: var(--text-dim);
}

/* ═══════════════ FLOATS & TOAST ═══════════════ */
.float-whats, .float-share {
  position: fixed; bottom: 26px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; transition: all var(--transition);
}
.float-whats { right: 26px; background: var(--whats); color: #04140a; box-shadow: 0 6px 26px rgba(37, 211, 102, 0.42); }
.float-share { left: 26px; background: var(--bg-elev); color: var(--neon); border: 1px solid var(--border-light); box-shadow: var(--shadow); }
.float-whats:hover, .float-share:hover { transform: scale(1.08); }

.toast {
  position: fixed; bottom: 96px; left: 50%; transform: translate(-50%, 22px);
  background: var(--bg-elev); border: 1px solid var(--neon);
  color: var(--text); padding: 13px 26px; border-radius: 50px;
  font-size: 0.88rem; font-weight: 500; z-index: 200;
  opacity: 0; pointer-events: none; transition: all var(--transition);
  box-shadow: var(--shadow), var(--shadow-neon); white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ═══════════════ PÁGINA DO VEÍCULO ═══════════════ */
.vd-wrap { padding: 34px 0 92px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 0.86rem; color: var(--text-dim); margin-bottom: 28px; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--neon); }

.vd-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 42px; align-items: start; }

/* Galeria */
.galeria { min-width: 0; }
.galeria-stage {
  position: relative; aspect-ratio: 16 / 10; background: var(--bg-elev);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.galeria-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.35s ease; display: flex; align-items: center; justify-content: center; }
.galeria-slide.ativo { opacity: 1; z-index: 2; }
.galeria-slide img, .galeria-slide video { width: 100%; height: 100%; object-fit: cover; }
.galeria-slide iframe { width: 100%; height: 100%; border: 0; }
.galeria-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  background: radial-gradient(ellipse 70% 70% at 50% 40%, rgba(0, 229, 255, 0.09), transparent 70%), linear-gradient(150deg, #0d1424, #080d18);
  color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem;
  font-family: var(--font-display);
}
.galeria-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(5, 7, 13, 0.78); border: 1px solid var(--border-light);
  color: var(--text); font-size: 1.1rem; display: none;
  align-items: center; justify-content: center; transition: all var(--transition);
  backdrop-filter: blur(8px);
}
.galeria-nav:hover { border-color: var(--neon); color: var(--neon); }
.galeria-nav.prev { left: 14px; }
.galeria-nav.next { right: 14px; }
.galeria-tem-mais .galeria-nav { display: flex; }

.galeria-count {
  position: absolute; bottom: 14px; right: 14px; z-index: 5;
  background: rgba(5, 7, 13, 0.8); border: 1px solid var(--border-light);
  color: var(--text-muted); font-size: 0.76rem; padding: 5px 12px; border-radius: 50px;
  backdrop-filter: blur(8px);
}

.galeria-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; }
.galeria-thumb {
  flex: 0 0 92px; height: 66px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; cursor: pointer; background: var(--bg-elev);
  position: relative; transition: all var(--transition); padding: 0;
}
.galeria-thumb img { width: 100%; height: 100%; object-fit: cover; }
.galeria-thumb.ativo { border-color: var(--neon); box-shadow: 0 0 14px var(--neon-glow); }
.galeria-thumb-tipo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(5, 7, 13, 0.62); color: var(--neon); font-size: 1.05rem;
}

/* Info lateral */
.vd-side { position: sticky; top: 96px; min-width: 0; }
.vd-title { font-size: clamp(1.5rem, 2.6vw, 2.05rem); margin-bottom: 6px; }
.vd-version { color: var(--text-muted); font-size: 1rem; margin-bottom: 20px; }

.vd-preco {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px; margin-bottom: 18px;
}
.vd-preco-old { font-size: 0.88rem; color: var(--text-dim); text-decoration: line-through; display: block; margin-bottom: 3px; }
.vd-preco-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.vd-preco-now {
  font-family: var(--font-display); font-size: 2.1rem; font-weight: 700;
  color: var(--neon); letter-spacing: -0.03em; line-height: 1.05;
}
.vd-preco-now.consulta { font-size: 1.25rem; color: var(--text-muted); }
.vd-desconto {
  background: var(--danger); color: #fff; font-size: 0.74rem; font-weight: 700;
  padding: 4px 11px; border-radius: 50px; letter-spacing: 0.05em;
}
.vd-parcelas { font-size: 0.84rem; color: var(--text-dim); margin-top: 10px; }

.vd-selos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.selo {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.78rem; color: var(--text-muted);
  background: rgba(0, 229, 255, 0.05); border: 1px solid rgba(0, 229, 255, 0.2);
  padding: 6px 13px; border-radius: 50px;
}

.vd-acoes { display: flex; flex-direction: column; gap: 10px; }
.vd-acoes .btn { width: 100%; }
.vd-acoes-linha { display: flex; gap: 10px; }
.vd-acoes-linha .btn { flex: 1; width: auto; }

.vd-desc { margin-top: 34px; }
.vd-desc h3 { font-size: 1.1rem; margin-bottom: 12px; }
.vd-desc p { color: var(--text-muted); font-size: 0.95rem; white-space: pre-line; }

/* Chips de opcionais */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  font-size: 0.79rem; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-light);
  padding: 6px 13px; border-radius: 6px;
}

/* Ficha técnica */
.ficha { margin-top: 40px; }
.ficha h3 { font-size: 1.1rem; margin-bottom: 18px; }
.ficha-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ficha-bloco {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.ficha-bloco-titulo {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--neon); font-weight: 700; margin-bottom: 14px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.ficha-linha {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 8px 0; border-bottom: 1px solid rgba(22, 32, 47, 0.6);
  font-size: 0.87rem;
}
.ficha-linha:last-child { border-bottom: none; }
.ficha-rotulo { color: var(--text-dim); flex-shrink: 0; }
.ficha-valor { color: var(--text); text-align: right; font-weight: 500; }

/* ═══════════════ PAINEL ADMIN ═══════════════ */
.admin-topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5, 7, 13, 0.9); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.admin-topbar-inner {
  max-width: 1440px; margin: 0 auto; padding: 13px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.admin-marca { display: flex; align-items: center; gap: 12px; min-width: 0; }
.admin-marca img { height: 34px; width: auto; }
.admin-marca strong { font-family: var(--font-display); font-size: 1rem; }
.admin-tag {
  font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--neon); background: var(--neon-soft); border: 1px solid rgba(0, 229, 255, 0.28);
  padding: 4px 10px; border-radius: 50px; font-weight: 700;
}
.admin-acoes { display: flex; align-items: center; gap: 10px; }

.admin-tabs {
  max-width: 1440px; margin: 0 auto; padding: 0 28px;
  display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto;
}
.admin-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--text-muted); padding: 15px 20px; cursor: pointer;
  font-family: var(--font); font-size: 0.9rem; font-weight: 600;
  transition: all var(--transition); white-space: nowrap;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.ativo { color: var(--neon); border-bottom-color: var(--neon); }

.admin-panel { max-width: 1440px; margin: 0 auto; padding: 30px 28px 90px; display: none; }
.admin-panel.ativo { display: block; }

.painel-cabecalho {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 24px;
}
.painel-cabecalho h2 { font-size: 1.35rem; }
.painel-cabecalho .sub { color: var(--text-dim); font-size: 0.86rem; margin-top: 4px; }
.painel-cabecalho-acoes { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.card-painel {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 24px;
}
.card-painel > h3 { font-size: 1.05rem; margin-bottom: 20px; }

/* Lista de veículos no admin */
.lista-admin { display: flex; flex-direction: column; gap: 12px; }
.linha-admin {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
  transition: border-color var(--transition);
}
.linha-admin:hover { border-color: var(--border-light); }
.linha-admin.inativo { opacity: 0.5; }
.linha-thumb {
  width: 92px; height: 66px; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-elev); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: 0.68rem; text-align: center;
}
.linha-thumb img { width: 100%; height: 100%; object-fit: cover; }
.linha-info { flex: 1; min-width: 0; }
.linha-titulo { font-weight: 600; font-size: 0.96rem; margin-bottom: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linha-meta { font-size: 0.79rem; color: var(--text-dim); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.linha-preco { font-family: var(--font-display); color: var(--neon); font-weight: 700; }
.linha-preco.old { color: var(--text-dim); text-decoration: line-through; font-size: 0.82rem; }
.linha-acoes { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }

.marca-status {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: 50px;
}
.marca-status.disponivel { background: rgba(34, 211, 154, 0.14); color: var(--ok); }
.marca-status.reservado  { background: rgba(255, 176, 32, 0.14); color: var(--warn); }
.marca-status.vendido    { background: rgba(139, 155, 176, 0.14); color: var(--text-muted); }
.marca-status.oculto     { background: rgba(255, 77, 109, 0.14); color: var(--danger); }
.marca-status.destaque   { background: var(--neon-soft); color: var(--neon); }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(2, 4, 9, 0.86); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 34px 18px; overflow-y: auto;
}
.modal-overlay.aberto { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); width: 100%; max-width: 900px;
  box-shadow: var(--shadow-lg); margin: auto;
}
.modal-sm { max-width: 420px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 26px; border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--bg-2); z-index: 2;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h3 { font-size: 1.15rem; }
.modal-close {
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-light);
  color: var(--text-muted); width: 36px; height: 36px; border-radius: 50%;
  cursor: pointer; font-size: 1.1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--danger); border-color: var(--danger); }
.modal-body { padding: 26px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 18px 26px; border-top: 1px solid var(--border);
  position: sticky; bottom: 0; background: var(--bg-2);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* Formulário */
.form-secao { margin-bottom: 28px; }
.form-secao > h4 {
  font-size: 0.71rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--neon); font-weight: 700; margin-bottom: 16px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.form-grid { display: grid; gap: 15px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-full { grid-column: 1 / -1; }

.check-linha { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.check {
  display: inline-flex; align-items: center; gap: 9px;
  cursor: pointer; font-size: 0.88rem; color: var(--text-muted);
}
.check input { width: 17px; height: 17px; accent-color: var(--neon); cursor: pointer; }

.checkbox-grid {
  display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  max-height: 340px; overflow-y: auto; padding: 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.checkbox-item {
  display: flex; align-items: center; gap: 9px; cursor: pointer;
  font-size: 0.85rem; color: var(--text-muted); padding: 5px 7px; border-radius: 6px;
  transition: background var(--transition-fast);
}
.checkbox-item:hover { background: var(--neon-soft); color: var(--text); }
.checkbox-item input { width: 16px; height: 16px; accent-color: var(--neon); cursor: pointer; }

/* Upload */
.upload-area {
  border: 1px dashed var(--border-light); border-radius: var(--radius);
  padding: 22px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: rgba(255, 255, 255, 0.015);
}
.upload-area:hover { border-color: var(--neon); background: var(--neon-soft); }
.upload-area input[type="file"] { display: none; }
.upload-texto { color: var(--text-muted); font-size: 0.88rem; }
.upload-texto strong { color: var(--neon); }
.upload-dica { color: var(--text-dim); font-size: 0.76rem; margin-top: 6px; }

.preview-capa {
  width: 100%; max-width: 300px; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-sm); border: 1px solid var(--border-light); margin-top: 14px;
}

/* Grid de mídia no modal */
.midia-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.midia-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-elev);
}
.midia-item img, .midia-item video { width: 100%; height: 100%; object-fit: cover; }
.midia-item-embed {
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  height: 100%; color: var(--neon); font-size: 0.72rem; text-align: center; padding: 10px;
  background: linear-gradient(150deg, #0d1424, #080d18);
}
.midia-item-del {
  position: absolute; top: 6px; right: 6px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(255, 77, 109, 0.92); color: #fff; font-size: 0.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.midia-item-tipo {
  position: absolute; bottom: 6px; left: 6px; z-index: 2;
  background: rgba(5, 7, 13, 0.85); color: var(--text-muted);
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 3px 8px; border-radius: 4px;
}

/* Galeria do showroom no admin */
.showroom-admin { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.showroom-admin-item {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border); background: var(--bg-elev);
}
.showroom-admin-item img { width: 100%; height: 100%; object-fit: cover; }

/* Login */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; z-index: 1;
}
.login-box {
  width: 100%; max-width: 400px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-lg);
}
.login-box h1 { font-size: 1.4rem; margin-bottom: 8px; }
.login-box p.sub { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 26px; }
.login-erro {
  background: rgba(255, 77, 109, 0.1); border: 1px solid rgba(255, 77, 109, 0.32);
  color: var(--danger); padding: 11px 15px; border-radius: var(--radius-sm);
  font-size: 0.85rem; margin-bottom: 16px; display: none;
}
.login-erro.visivel { display: block; }

/* Estados utilitários */
.carregando { text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 0.9rem; }
.oculto { display: none !important; }
.aviso-vazio {
  color: var(--text-dim); font-size: 0.86rem; padding: 18px;
  border: 1px dashed var(--border-light); border-radius: var(--radius-sm); text-align: center;
}

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visivel { opacity: 1; transform: none; }

/* ═══════════════ RESPONSIVO ═══════════════ */
@media (max-width: 1080px) {
  .sobre-grid, .contato-grid { grid-template-columns: 1fr; gap: 34px; }
  .vd-grid { grid-template-columns: 1fr; gap: 34px; }
  .vd-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 860px) {
  .header-nav {
    position: fixed; inset: 0 0 auto 0; top: 69px;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(5, 7, 13, 0.98); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border); padding: 18px 22px 24px;
    transform: translateY(-14px); opacity: 0; pointer-events: none;
    transition: all var(--transition);
  }
  .header-nav.aberto { transform: none; opacity: 1; pointer-events: auto; }
  .header-nav .nav-link { padding: 13px 14px; font-size: 0.95rem; }
  .header-nav .btn { margin-top: 8px; }
  .btn-mobile-menu { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { padding: 12px 20px; }

  .container { padding: 0 20px; }
  .hero-content { padding: 66px 0 56px; }
  .hero-stats { gap: 26px; }
  .section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .admin-topbar-inner, .admin-tabs, .admin-panel { padding-left: 18px; padding-right: 18px; }
}

@media (max-width: 620px) {
  .hero { min-height: 78vh; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-nav { right: 20px; bottom: 18px; }
  .veiculo-grid { grid-template-columns: 1fr; }
  .destaque-rail > * { flex: 0 0 84%; }
  .filtros-grid { grid-template-columns: 1fr; }
  .filtros-grid .campo-largo { grid-column: span 1; }
  .filtros-foot { flex-direction: column; align-items: stretch; }
  .filtros-foot .btn { width: 100%; }
  .linha-admin { flex-wrap: wrap; }
  .linha-thumb { width: 100%; height: 150px; }
  .linha-acoes { width: 100%; }
  .linha-acoes .btn { flex: 1; }
  .modal { border-radius: var(--radius); }
  .modal-head, .modal-body, .modal-foot { padding-left: 18px; padding-right: 18px; }
  .form-grid .span-2 { grid-column: span 1; }
  .float-whats, .float-share { width: 48px; height: 48px; font-size: 1.25rem; bottom: 18px; }
  .float-whats { right: 18px; }
  .float-share { left: 18px; }
  .vd-preco-now { font-size: 1.75rem; }
  .galeria-thumb { flex: 0 0 74px; height: 54px; }
}

/* Acessibilidade: respeita quem pediu menos movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
