/* =============================================================
   Carlão Veículos — site público
   Design: Work Sans + Barlow Condensed, accent vermelho #e63946
   ============================================================= */

:root {
  --dark: #1c1a1b;
  --dark-2: #2b2728;
  --accent: #e63946;
  --neon-a: #ff2d40;
  --neon-b: #ff6b73;
  --ink: #16202c;
  --muted: #6b7280;
  --muted-2: #9aa3ae;
  --line: #e4e6ea;
  --line-soft: #eef0f2;
  --page: #f5f6f8;
  --card: #ffffff;
  --wpp: #25d366;
  --ok-bg: #e6f4ea;  --ok-fg: #1e7b34;
  --wait-bg: #fef3e0; --wait-fg: #b9750a;
  --sold-bg: #f1f1f3; --sold-fg: #6b7280;
  --radius: 6px;
  --shadow: 0 1px 3px rgba(20,26,34,.06), 0 12px 32px -18px rgba(20,26,34,.22);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
}
input, select, textarea, button { min-width: 0; }
h1, h2, h3, h4 {
  font-family: 'Barlow Condensed', Arial, sans-serif;
  font-weight: 700;
  margin: 0;
  letter-spacing: .3px;
  line-height: 1.15;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }

/* ---- botões ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 4px; font-weight: 600; font-size: 14px;
  cursor: pointer; border: none; white-space: nowrap;
  font-family: 'Work Sans', Arial, sans-serif; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.06); }
.btn-accent   { background: var(--accent); color: #fff; box-shadow: 0 2px 14px -3px rgba(230,57,70,.55); }
.btn-outline  { background: transparent; border: 1.5px solid #55504f; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; filter: none; }
.btn-whatsapp { background: var(--wpp); color: #fff; }
.btn-block    { width: 100%; }
.btn-sm       { padding: 8px 14px; font-size: 13px; }

/* ---- badges ---- */
.badge {
  display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 3px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
}
.badge-disponivel { background: var(--ok-bg);   color: var(--ok-fg); }
.badge-reservado  { background: var(--wait-bg); color: var(--wait-fg); }
.badge-vendido    { background: var(--sold-bg); color: var(--sold-fg); }

/* ---- cartão ---- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }

.neon-line {
  height: 3px; border-radius: 2px; width: 46px; margin-bottom: 14px;
  background: linear-gradient(90deg, var(--neon-a), var(--neon-b));
  box-shadow: 0 0 10px rgba(255,45,64,.65), 0 0 22px rgba(255,45,64,.25);
}
.neon-line.center { margin-left: auto; margin-right: auto; }
.neon-bar {
  width: 4px; height: 28px; border-radius: 2px; flex-shrink: 0;
  background: linear-gradient(180deg, var(--neon-a), var(--neon-b));
  box-shadow: 0 0 10px rgba(255,45,64,.65);
}

/* ---- formulários ---- */
.label { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.input {
  border: 1px solid #d7dae0; border-radius: 4px; padding: 10px 12px; font-size: 14px;
  color: var(--ink); width: 100%; font-family: 'Work Sans', Arial, sans-serif; background: #fff;
}
.input:focus { outline: 2px solid rgba(230,57,70,.35); outline-offset: 0; border-color: var(--accent); }
select { cursor: pointer; }
.field { display: flex; flex-direction: column; gap: 6px; }

/* =============================================================
   Header — faixa da marca + barra de navegação (como no mockup)
   ============================================================= */
.site-header { position: relative; z-index: 20; }

.brand-strip {
  display: flex; align-items: center; justify-content: center;
  padding: 18px 16px;
  background: linear-gradient(90deg, #0f0e0e 0%, #0f0e0e 8%, #2b2728 26%, #2b2728 74%, #0f0e0e 92%, #0f0e0e 100%);
  border-bottom: 2px solid var(--neon-a);
  box-shadow: 0 2px 16px rgba(255,45,64,.35);
  overflow: hidden;
}
.brand-strip img {
  height: clamp(74px, 12vw, 128px); width: auto; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.navbar { background: var(--dark); }
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a {
  color: #ddd8da; font-size: 14px; font-weight: 500; padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: #fff; }
.site-nav a.active {
  color: #fff; font-weight: 600; border-bottom-color: var(--neon-a);
}
.navbar-contact { display: flex; align-items: center; gap: 18px; }
.navbar-phone {
  display: inline-flex; align-items: center; gap: 8px;
  color: #ddd8da; font-size: 14px; white-space: nowrap;
}
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; margin-left: -6px; }
.nav-toggle svg { stroke: #fff; }

/* =============================================================
   Hero + busca rápida
   ============================================================= */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 78% 15%, rgba(230,57,70,.16), transparent 65%),
    linear-gradient(135deg, #1c1a1b, #2b2728);
}
.hero .container { padding-top: 76px; padding-bottom: 108px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); color: #fff; max-width: 640px; }
.hero p { font-size: 17px; color: #c7cdd6; margin-top: 18px; max-width: 600px; }

.quick-search {
  margin-top: -46px; position: relative; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 22px 24px;
  box-shadow: 0 12px 32px rgba(10,20,32,.18);
}
.quick-search .field { flex: 1 1 180px; min-width: 0; }
.quick-search .btn { height: 44px; flex: 0 0 auto; }

/* =============================================================
   Catálogo
   ============================================================= */
.catalog { display: flex; gap: 32px; align-items: flex-start; padding: 56px 0 80px; }
.filters { width: 320px; flex-shrink: 0; padding: 24px; position: sticky; top: 24px; }
.filters .group { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.filters .group:last-of-type { border-bottom: 0; }
.filters .row2 { display: flex; gap: 8px; margin-top: 10px; }
.filters .row2 .input { flex: 1 1 0; min-width: 0; width: auto; padding-left: 8px; padding-right: 8px; font-size: 13px; }
.chk { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #374151; padding: 6px 0; cursor: pointer; }
.chk .count { margin-left: auto; color: var(--muted-2); }

.catalog-main { flex: 1; min-width: 0; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.catalog-toolbar .count { font-size: 15px; color: #374151; }

.car-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.car-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-card .accent { height: 3px; background: linear-gradient(90deg, #0f0e0e 0%, #3a3536 40%, var(--accent) 100%); }
.car-thumb {
  position: relative; aspect-ratio: 4 / 3; background: #e7eaee;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.car-thumb img { width: 100%; height: 100%; object-fit: cover; }
.car-thumb .badge { position: absolute; top: 12px; left: 12px; }
.car-card .body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.car-card h3 { font-size: 18px; margin-bottom: 6px; }
.car-card .specs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.car-card .price {
  font-size: 22px; font-weight: 700; color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif; margin-bottom: 14px;
}
.car-card .btn { margin-top: auto; }

.empty { padding: 60px 24px; text-align: center; color: var(--muted); }

/* paginação */
.pagination { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 36px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 14px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600; border: 1.5px solid #55504f; color: var(--ink);
}
.pagination a:hover { background: var(--ink); color: #fff; }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .gap { border: 0; color: var(--muted-2); }

/* =============================================================
   Página do carro
   ============================================================= */
.crumbs { padding: 24px 0 0; font-size: 13px; color: var(--muted-2); }
.crumbs a { color: var(--muted-2); }
.crumbs .now { color: var(--ink); font-weight: 600; }

.detail { display: flex; gap: 32px; align-items: flex-start; padding: 20px 0 0; }
.detail .gallery { flex: 1.5; min-width: 0; }
.detail .aside { flex: 1; min-width: 0; }

.gallery .main {
  aspect-ratio: 16 / 10; background: #e7eaee; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden;
}
.gallery .main .car-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.gallery .main .car-track::-webkit-scrollbar { display: none; }
.gallery .main .car-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.car-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px;
  border-radius: 50%; border: 0; background: rgba(17,17,17,.6); color: #fff; font-size: 26px; line-height: 1;
  cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 3px;
}
.car-nav:hover { background: var(--accent); }
.car-nav.prev { left: 12px; } .car-nav.next { right: 12px; }
.car-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(17,17,17,.65); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 12px; }
.gallery .main .badge { position: absolute; top: 16px; left: 16px; }
.gallery .thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.gallery .thumbs button {
  flex: 0 0 auto; width: 96px; height: 72px; background: #e7eaee; border-radius: 4px; border: 2px solid var(--line);
  padding: 0; cursor: pointer; overflow: hidden;
}
.gallery .thumbs button.active { border-color: var(--accent); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }

.detail-price {
  font-size: 38px; font-weight: 700; color: var(--accent);
  font-family: 'Barlow Condensed', sans-serif; margin: 10px 0 18px;
}
.spec-table { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.spec-table .k, .spec-table .v { padding: 12px 0; font-size: 14px; }
.spec-table .k { color: var(--muted-2); text-transform: uppercase; font-size: 12px; letter-spacing: .5px; align-self: center; }
.spec-table .v { text-align: right; font-weight: 600; color: var(--ink); }

.opts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2px 16px; }
.opt { display: flex; align-items: center; gap: 9px; font-size: 14px; color: #374151; padding: 7px 0; }
.desc { font-size: 14px; line-height: 1.8; color: #4b5563; white-space: pre-line; }

.similars { padding: 48px 0 80px; }
.similars .grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--dark); color: #a39d9f; margin-top: 56px;
  border-top: 2px solid var(--neon-a); box-shadow: 0 -2px 20px rgba(255,45,64,.28);
}
.site-footer .container { padding-top: 44px; padding-bottom: 0; }

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand img { height: 52px; width: auto; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; max-width: 360px; }

.footer-cols {
  display: grid; grid-template-columns: 1.2fr .8fr 1.7fr 1fr; gap: 32px;
  padding: 28px 0; border-bottom: 1px solid #3a3536;
}
.footer-cols h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-cols a, .footer-cols span { color: #a39d9f; font-size: 14px; display: block; padding: 5px 0; }
.footer-cols a:hover { color: #fff; }

.footer-bottom {
  display: flex; justify-content: center; text-align: center; align-items: center;
  padding: 18px 0; color: #948e90; font-size: 13px; gap: 12px; flex-wrap: wrap;
}
.footer-bottom a { color: #948e90; }
.footer-bottom a:hover { color: #fff; }

/* botão flutuante do WhatsApp */
.wpp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; background: var(--wpp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
}

/* alertas / flash */
.flash { padding: 12px 16px; border-radius: 4px; font-size: 14px; margin-bottom: 12px; }
.flash-ok   { background: var(--ok-bg);   color: var(--ok-fg); }
.flash-erro { background: #fdecec; color: #c42836; }
.flash-info { background: #eef2f7; color: #334155; }

/* =============================================================
   Responsivo
   ============================================================= */
@media (max-width: 1024px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .car-grid, .similars .grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .catalog { flex-direction: column; }
  .filters { width: 100%; position: static; }
  .detail { flex-direction: column; align-items: stretch; }
  .detail .gallery, .detail .aside { flex: none; width: 100%; }
}
@media (max-width: 860px) {
  .navbar-phone { display: none; }
}
@media (max-width: 720px) {
  .navbar { position: relative; }
  .navbar-inner { justify-content: space-between; }
  .nav-toggle { display: block; order: -1; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 60px; z-index: 30;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--dark-2); padding: 6px 18px 14px;
    border-bottom: 2px solid var(--neon-a);
  }
  .site-nav.open { display: flex; }
  .gallery .thumbs { justify-content: center; }
  .site-nav a { padding: 13px 0; border-bottom: 1px solid #3a3536; }
  .site-nav a:last-child { border-bottom: 0; }
  .site-nav a.active {
    border-bottom: 1px solid #3a3536; box-shadow: none;
    border-left: 3px solid var(--neon-a); padding-left: 15px; margin-left: -18px; padding-right: 18px; margin-right: -18px;
    background: linear-gradient(90deg, rgba(255,45,64,.16), rgba(255,45,64,0));
  }
  .hero h1 { font-size: 34px; }
  .hero .container { padding-top: 56px; padding-bottom: 90px; }
  .quick-search { flex-direction: column; align-items: stretch; gap: 14px; }
  .quick-search .field { flex: 0 0 auto; }
  .quick-search .btn { width: 100%; }
  .car-grid, .similars .grid { grid-template-columns: 1fr; }
  .opts { grid-template-columns: 1fr 1fr; }
  .footer-cols { grid-template-columns: 1fr; gap: 8px; }
  .footer-brand { align-items: center; text-align: center; padding-bottom: 12px; }
  .footer-bottom { padding-bottom: 88px; }
}

/* ---- contato dentro do rodapé (âncora #contato) ---- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.footer-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding: 8px 0 36px; margin-bottom: 8px; border-bottom: 1px solid #3a3536; scroll-margin-top: 20px; }
.footer-contact-intro h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.footer-contact-intro p { font-size: 14px; line-height: 1.6; color: #a39d9f; margin-bottom: 18px; }
.footer-form-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 14px; }
.footer-form .field { margin-bottom: 14px; }
.footer-form .label { color: #cfc9cb; }
.footer-form textarea.input { resize: vertical; min-height: 96px; font-family: inherit; }
.footer-form .check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #a39d9f; cursor: pointer; margin-bottom: 4px; }
.footer-form .check input { margin-top: 3px; flex-shrink: 0; }
.footer-form .err { color: #ff8a93; font-size: 12.5px; display: block; padding: 0; }
.footer-form .err:empty { display: none; }
.footer-form .btn { margin-top: 14px; }
.footer-ok { margin-top: 14px; padding: 12px 16px; border-radius: 4px; background: var(--ok-bg); color: var(--ok-fg); font-size: 14px; font-weight: 600; }
@media (max-width: 860px) {
  .footer-contact { grid-template-columns: 1fr; gap: 20px; }
  .footer-form-row { grid-template-columns: 1fr; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.footer-form .contador { font-size: 11.5px; color: #948e90; text-align: right; }
.footer-form .input.invalido { border-color: #ff5c69; }

/* ---- localização (mapa) acima do rodapé ---- */
.location { padding: 24px 0 56px; scroll-margin-top: 16px; }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; align-items: stretch; }
.location-info h2 { font-size: 28px; margin-bottom: 12px; }
.location-info address { font-style: normal; font-size: 16px; line-height: 1.6; color: var(--ink); margin-bottom: 12px; }
.location-hours { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.location-info .btn { display: inline-flex; align-items: center; gap: 8px; }
.location-note { color: var(--muted-2); font-size: 12.5px; margin-top: 10px; }
.location-map { min-height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #e7eaee; }
.location-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (max-width: 860px) {
  .location { padding: 8px 0 40px; }
  .location-grid { grid-template-columns: 1fr; gap: 20px; }
  .location-map, .location-map iframe { min-height: 280px; }
}
