/* =====================================================
   Solution Car — Design System
   Paleta: asfalto noturno + âmbar de ignição + verde-sinal
   ===================================================== */

:root {
  /* Cores base */
  --bg:            #12161C;
  --surface:       #1B212B;
  --surface-2:     #232B37;
  --border:        #2C3644;
  --text:          #EDEFF2;
  --text-muted:    #9AA3AF;

  /* Acentos */
  --amber:         #FF9F1C;
  --amber-dark:    #E08600;
  --teal:          #17C3B2;
  --platinum:      #C9CED6;
  --red-vendido:   #E6533C;

  /* Tipografia */
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1220px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--amber); color: #17120A; }
.btn-primary:hover { background: var(--amber-dark); }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--amber); }
.btn-whatsapp { background: #25D366; color: #06210F; }
.btn-whatsapp:hover { background: #1fbd59; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18,22,28,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  display: flex;
  align-items: center;
}
.logo span { color: var(--amber); }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
  mix-blend-mode: screen; /* remove o fundo preto do arquivo, deixando só o desenho branco */
}
.footer-col .logo-img { height: 38px; margin-bottom: 14px; }
.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.main-nav a {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color .2s;
}
.main-nav a:hover { color: var(--text); }
.header-whatsapp { flex-shrink: 0; padding: 10px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% -10%, rgba(255,159,28,0.16), transparent 55%),
    radial-gradient(ellipse at 90% 10%, rgba(23,195,178,0.10), transparent 50%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.hero-eyebrow::before {
  content: '';
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(23,195,178,0.2);
}
.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  max-width: 620px;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero p.lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 28px;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}
.hero-stat span { color: var(--text-muted); font-size: 0.85rem; }

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}
.hero-panel h3 { font-size: 1.05rem; margin-bottom: 18px; }

/* ---------- Barra de busca rápida ---------- */
.quick-filter { display: grid; gap: 14px; }
.quick-filter .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field select,
.field input {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 12px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  width: 100%;
}
.field select:focus, .field input:focus { border-color: var(--amber); }

/* ---------- Faixa de segmentos (Exclusivo / Premium / Oferta) ---------- */
.tier-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 56px 0 8px;
}
.tier-card {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.tier-card h4 { margin-bottom: 4px; font-size: 1.05rem; }
.tier-card p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.tier-exclusivo { background: linear-gradient(135deg, rgba(23,195,178,0.14), transparent); border-color: rgba(23,195,178,0.35); }
.tier-premium { background: linear-gradient(135deg, rgba(201,206,214,0.12), transparent); border-color: rgba(201,206,214,0.3); }
.tier-oferta { background: linear-gradient(135deg, rgba(255,159,28,0.14), transparent); border-color: rgba(255,159,28,0.35); }

/* ---------- Seções ---------- */
.section { padding: 64px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.8rem; margin: 0; }
.section-head p { color: var(--text-muted); margin: 6px 0 0; }
.section-link { color: var(--amber); font-weight: 600; font-size: 0.92rem; white-space: nowrap; }

/* ---------- Grid de carros ---------- */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Card estilo "etiqueta de vitrine" — com corte no topo lembrando a etiqueta pendurada no carro */
.car-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
.car-card:hover { transform: translateY(-4px); border-color: rgba(255,159,28,0.4); }

.car-photo { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }

.car-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  backdrop-filter: blur(4px);
}
.badge-exclusivo { background: rgba(23,195,178,0.92); color: #06231F; }
.badge-premium   { background: rgba(201,206,214,0.94); color: #1B212B; }
.badge-oferta    { background: rgba(255,159,28,0.94); color: #241701; }
.badge-disponivel{ background: rgba(154,163,175,0.85); color: #12161C; }
.badge-reservado { background: rgba(255,193,7,0.9); color: #241701; }
.badge-vendido   { background: rgba(230,83,60,0.94); color: #fff; }

.car-price-tag {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(18,22,28,0.85);
  backdrop-filter: blur(4px);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--amber);
}

.car-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-title { font-size: 1.08rem; margin: 0; font-family: var(--font-display); font-weight: 700; }
.car-version { color: var(--text-muted); font-size: 0.85rem; margin-top: -6px; }

.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
  margin-top: 4px;
}
.car-spec {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.car-spec svg { flex-shrink: 0; opacity: 0.8; }

.car-cta { margin-top: auto; padding-top: 4px; }

/* ---------- Depoimentos ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; font-size: 0.95rem; }
.testimonial-text { color: var(--text); font-size: 0.95rem; margin-bottom: 16px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: var(--amber); font-family: var(--font-display);
  overflow: hidden;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-weight: 600; font-size: 0.9rem; }
.testimonial-city { color: var(--text-muted); font-size: 0.78rem; }

/* ---------- Selos de confiança ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 8px;
}
.trust-item {
  text-align: center;
  padding: 20px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.trust-item svg { color: var(--amber); margin-bottom: 10px; }
.trust-item h5 { margin: 0 0 4px; font-size: 0.92rem; }
.trust-item p { margin: 0; color: var(--text-muted); font-size: 0.78rem; }

/* ---------- Listagem / filtros avançados ---------- */
.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.filters-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  position: sticky;
  top: 96px;
}
.filters-panel h3 { font-size: 1rem; margin-bottom: 18px; }
.filters-panel .field { margin-bottom: 16px; }
.filters-panel .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.results-count { color: var(--text-muted); font-size: 0.92rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.empty-state {
  text-align: center;
  padding: 64px 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 0.9rem;
}
.pagination a:hover { border-color: var(--amber); color: var(--text); }
.pagination .active { background: var(--amber); color: #17120A; border-color: var(--amber); font-weight: 700; }

/* ---------- Página de detalhes ---------- */
.breadcrumb { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--text); }

.detail-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: start;
}

.gallery-main {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery-thumbs button {
  border: 2px solid transparent; border-radius: 8px; overflow: hidden; padding: 0; cursor: pointer;
  aspect-ratio: 4/3; background: var(--surface-2);
}
.gallery-thumbs button.active { border-color: var(--amber); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 6px; }
.detail-title { font-size: 1.9rem; margin: 0; }
.detail-version { color: var(--text-muted); margin-bottom: 18px; }
.detail-price { font-family: var(--font-display); font-size: 2rem; color: var(--amber); font-weight: 800; }
.detail-price small { display: block; font-size: 0.8rem; color: var(--text-muted); font-weight: 500; margin-top: 2px; }

.quick-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.highlight-item { text-align: center; }
.highlight-item svg { color: var(--amber); margin-bottom: 8px; }
.highlight-item strong { display: block; font-size: 0.95rem; }
.highlight-item span { color: var(--text-muted); font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.03em; }

.detail-tabs-content h3 { font-size: 1.1rem; margin: 28px 0 12px; }
.detail-description { color: var(--text-muted); line-height: 1.7; }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.specs-table tr { border-bottom: 1px solid var(--border); }
.specs-table td { padding: 10px 4px; font-size: 0.92rem; }
.specs-table td:first-child { color: var(--text-muted); width: 45%; }

.extras-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.extras-list span {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px;
  padding: 6px 14px; font-size: 0.83rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: sticky;
  top: 96px;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p.hint { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 18px; }
.contact-card .field { margin-bottom: 14px; }
.contact-card textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 11px 12px; color: var(--text); font-family: inherit; font-size: 0.95rem; width: 100%; resize: vertical; min-height: 90px;
}
.contact-divider { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin: 16px 0; position: relative; }
.form-msg { border-radius: var(--radius); padding: 12px 14px; font-size: 0.88rem; margin-bottom: 14px; }
.form-msg.success { background: rgba(23,195,178,0.14); color: var(--teal); border: 1px solid rgba(23,195,178,0.3); }
.form-msg.error { background: rgba(230,83,60,0.14); color: #ff8b76; border: 1px solid rgba(230,83,60,0.3); }

/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}
.cta-final h2 { margin-bottom: 10px; }
.cta-final p { color: var(--text-muted); margin-bottom: 24px; }
.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding: 56px 0 32px;
}
.footer-col p { color: var(--text-muted); font-size: 0.88rem; max-width: 320px; }
.footer-col h4 { font-size: 0.95rem; margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom { border-top: 1px solid var(--border); padding: 18px 0; }
.footer-bottom p { margin: 0; color: var(--text-muted); font-size: 0.8rem; text-align: center; }

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  color: #06210F;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  z-index: 200;
  transition: transform .2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .tier-strip { grid-template-columns: 1fr; }
  .cars-grid, .listing-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .quick-highlights { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .header-whatsapp span { display: none; }
  .cars-grid, .listing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .quick-filter .row2 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .quick-highlights { grid-template-columns: repeat(2, 1fr); }
  .site-header .header-inner { height: 66px; }
}

/* Menu mobile aberto */
.main-nav.open {
  display: flex;
  position: absolute;
  top: 66px; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  padding: 16px 24px;
  gap: 16px;
}

/* ---------- Galeria de clientes (home) ---------- */
.client-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.client-gallery-item {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  padding: 0;
  cursor: pointer;
  background: var(--surface);
}
.client-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.client-gallery-item:hover img { transform: scale(1.06); }
.client-gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 8px 10px 6px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  color: #fff;
  font-size: 0.72rem;
  text-align: left;
  opacity: 0;
  transition: opacity .2s ease;
}
.client-gallery-item:hover .client-gallery-caption { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,0.94);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 20px; right: 24px;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  width: 52px; height: 52px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-caption {
  position: absolute;
  bottom: 28px;
  left: 0; right: 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .client-gallery-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .client-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
