/* ============================================================================
 * SKIN CLASSIC — clássica / institucional (navy + Roboto, densidade alta).
 * Views próprias (skins/classic/*) + layouts/guest-classic. Classes .cl-*.
 * Navy institucional é FIXO; o ACENTO herda a cor de marca do cliente
 * (--main-primary-color) + botões (--button-color / --button-hover-color).
 * Não hardcodar a cor de marca — consumir as vars (regra de ouro das skins).
 * ==========================================================================*/
.cl {
  --navy: #14375f;                                   /* institucional (fixo) */
  --navy-d: #0f2947;                                 /* faixa utilitária + footer (fixo) */
  --acc: var(--main-primary-color, #1b5fa8);         /* acento = cor de marca */
  --acc-h: var(--button-hover-color, #164e8a);
  --btn: var(--button-color, var(--acc));
  --bg: #f3f4f6;
  --surface: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --label: #8a94a0;
  --border: #e2e6ea;
  --divider: #eef1f4;
  --radius: 3px;
  --wa: #25d366;
  --f: 'Roboto', system-ui, -apple-system, Arial, sans-serif;

  background: var(--bg);
  color: var(--text);
  font-family: var(--f);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.cl *, .cl *::before, .cl *::after { box-sizing: border-box; }
.cl img { max-width: 100%; display: block; }
.cl a { color: inherit; }

.cl-wrap { width: 92%; max-width: 1600px; margin: 0 auto; }

/* ---- HEADER (3 faixas) ---- */
.cl-header { position: relative; z-index: 20; }
.cl-util { background: var(--navy-d); color: #cdd8e6; font-size: 12px; }
.cl-util__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; min-height: 30px; }
.cl-util__hours { color: #aebfd4; }
.cl-util__contact { display: flex; gap: 16px; flex-wrap: wrap; }
.cl-util__contact a { text-decoration: none; color: #cdd8e6; }
.cl-util__contact a:hover { color: #fff; }

.cl-main { background: var(--surface); border-bottom: 1px solid var(--border); }
.cl-main__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.cl-brand { text-decoration: none; display: inline-flex; align-items: center; }
.cl-brand__logo { max-height: 52px; width: auto; }
.cl-brand__name { font-weight: 900; font-size: 24px; letter-spacing: -.02em; color: var(--navy); text-transform: uppercase; }
.cl-main__right { display: flex; align-items: center; gap: 14px; }
.cl-sales { text-align: right; line-height: 1.2; }
.cl-sales__label { font-size: 10px; color: var(--label); }
.cl-sales__phone { font-weight: 700; font-size: 16px; color: var(--navy); text-decoration: none; white-space: nowrap; }

.cl-btn { display: inline-block; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; text-decoration: none; border-radius: var(--radius); padding: 11px 18px; cursor: pointer; border: 0; }
.cl-btn--accent { background: var(--btn); color: #fff; }
.cl-btn--accent:hover { background: var(--acc-h); }
.cl-btn--navy { background: var(--navy); color: #fff; }
.cl-btn--navy:hover { background: var(--navy-d); }
.cl-btn--outline { background: transparent; color: var(--acc); border: 1px solid var(--acc); }
.cl-btn--outline:hover { background: var(--acc); color: #fff; }
/* ⚠️ `.cl a { color: inherit }` (0-1-1: classe + tipo) VENCE `.cl-btn--*` (0-1-0). Sem estas três
   linhas, TODO botão que é <a> perde a cor do texto e sai quase-preto (`--text`) sobre navy/acento
   — "Anuncie seu veículo" e "Ver o estoque completo" estavam ilegíveis. Achado no navegador: a
   medição por marcador não vê contraste, e o CSS "diz" #fff na linha de cima. */
.cl a.cl-btn--accent, .cl a.cl-btn--navy { color: #ffffff; }
.cl a.cl-btn--outline { color: var(--acc); }
.cl a.cl-btn--outline:hover { color: #fff; }

.cl-menu { background: var(--navy); }
.cl-menu__inner { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.cl-menu__links { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
/* Busca no cabeçalho — a metade "header" do search_position (a outra vive no filtro lateral). */
.cl-menu__search { margin-left: auto; display: flex; align-items: center; gap: 0; padding: 5px 0; }
.cl-menu__search input { font-size: 12px; font-family: var(--f); color: var(--text); border: 0; border-radius: var(--radius) 0 0 var(--radius); padding: 7px 10px; width: 210px; max-width: 40vw; }
.cl-menu__search button { border: 0; cursor: pointer; background: var(--acc); color: #fff; font-size: 15px; line-height: 1; padding: 7px 11px; border-radius: 0 var(--radius) var(--radius) 0; }
.cl-menu__search button:hover { background: var(--acc-h); }
.cl-side__search { width: 100%; font-size: 12.5px; font-family: var(--f); color: var(--text); border: 1px solid #d5dbe2; border-radius: var(--radius); padding: 8px 9px; }
.cl-menu a { font-weight: 500; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: #dbe4f0; text-decoration: none; padding: 13px 15px; display: inline-block; }
.cl-menu a:hover { background: var(--acc); color: #fff; }
.cl-nav-toggle { display: none; background: none; border: 0; color: var(--navy); font-size: 22px; cursor: pointer; line-height: 1; }

/* ---- Título de seção ---- */
.cl-section { padding: 30px 0; }
.cl-section__head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cl-section__head::before { content: ""; width: 4px; height: 20px; background: var(--acc); flex: 0 0 auto; }
.cl-section__head h2 { font-weight: 700; font-size: 19px; color: var(--navy); margin: 0; text-transform: uppercase; letter-spacing: .01em; }

/* ---- HOME · HERO ---- */
.cl-hero { position: relative; min-height: 260px; display: flex; align-items: center; background: #d5dbe2 center/cover no-repeat; }
/* Banner do classic é FUNDO atrás do texto: reduz brilho/contraste (além do gradiente
   ::after) p/ o texto ficar legível sobre qualquer imagem. */
/* Topo em "carrossel de destaques": o hero fica só com o texto (o H1 da home não pode sumir
   junto com a imagem) e o carrossel entra logo abaixo. */
.cl-hero--flat { min-height: 0; background: var(--navy-d); }
.cl-hero--flat::after { background: none; }
.cl-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.7) contrast(.92); }
.cl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,41,71,.78), rgba(15,41,71,.2)); }
.cl-hero__inner { position: relative; z-index: 2; color: #fff; padding: 24px 0; }
.cl-hero__title { font-weight: 900; font-size: clamp(24px, 4vw, 40px); line-height: 1.08; text-shadow: 0 1px 4px rgba(0,0,0,.35); margin: 0; }
.cl-hero__sub { font-size: 15px; margin-top: 8px; color: #dbe4f0; }

/* Busca rápida (sobreposta ao hero) */
.cl-quicksearch { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 2px 12px rgba(20,55,95,.12); padding: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: -28px; position: relative; z-index: 5; }
.cl-quicksearch select, .cl-quicksearch input { flex: 1; min-width: 130px; font-size: 13px; color: var(--text); border: 1px solid #d5dbe2; border-radius: var(--radius); padding: 10px 11px; background: #fff; font-family: var(--f); }
.cl-quicksearch .cl-btn { flex: 0 0 auto; }

/* ---- Grid de cards ---- */
.cl-grid { display: grid; gap: 16px; }
.cl-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cl-grid--2 { grid-template-columns: repeat(2, 1fr); }

.cl-card { text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.cl-card:hover { box-shadow: 0 6px 18px rgba(20,55,95,.14); border-color: #c3d0e0; }
/* Proporção/encaixe/enquadramento da foto: config do cliente (card_photo_format +
   card_focus_x/y), entregues como vars no <body> pelo guest-classic. */
.cl-card__media { position: relative; aspect-ratio: var(--card-photo-aspect, 4/3); background: #e7ebf0; overflow: hidden; }
.cl-card__media img { width: 100%; height: 100%; object-fit: var(--card-photo-fit, cover); object-position: var(--cardphoto-pos, 50% 50%); }
.card-photo--conter_branco .cl-card__media { background: #fff; }
.cl-card__tag { position: absolute; top: 0; left: 0; font-weight: 700; font-size: 9px; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--navy); padding: 4px 8px; }
.cl-card__body { padding: 11px 12px 13px; flex: 1; display: flex; flex-direction: column; }
.cl-card__name { font-weight: 700; font-size: 13px; color: var(--navy); line-height: 1.2; }
.cl-card__ver { font-size: 10.5px; color: var(--label); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-card__meta { font-size: 10px; color: var(--muted); margin-top: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; gap: 8px; }
.cl-card__meta > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card__brand { height: 15px; width: auto; margin-left: auto; flex: 0 0 auto; opacity: .85; }
.cl-card__price { font-weight: 900; font-size: 16px; color: var(--navy); margin-top: 9px; }
/* Preenchido é o PADRÃO (o toggle `card_button_outline` do cliente vem desmarcado); a versão
   vazada — que era a única que a skin desenhava — passa a ser o estado ligado. */
.cl-card__cta { text-align: center; font-weight: 700; font-size: 10.5px; text-transform: uppercase; color: #fff; background: var(--btn); border: 1px solid var(--btn); border-radius: var(--radius); padding: 7px 0; margin-top: 10px; }
.cl-card:hover .cl-card__cta { background: var(--acc-h); border-color: var(--acc-h); }
.card-btn-outline .cl-card__cta { color: var(--acc); background: transparent; border-color: var(--acc); }
.card-btn-outline .cl-card:hover .cl-card__cta { background: var(--acc); color: #fff; }

/* ---- ESTOQUE (filtro lateral) ---- */
.cl-stock { padding: 26px 0 40px; display: flex; gap: 20px; align-items: flex-start; }
.cl-side { flex: 0 0 220px; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; background: var(--surface); position: sticky; top: 12px; }
.cl-side__head { background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding: 11px 14px; }
.cl-side__body { padding: 14px; }
.cl-side__label { font-weight: 700; font-size: 11px; text-transform: uppercase; color: var(--navy); letter-spacing: .03em; margin: 0 0 9px; }
.cl-side__sep { height: 1px; background: var(--divider); margin: 14px 0; }
.cl-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #4b5563; margin-bottom: 7px; cursor: pointer; }
.cl-check input { accent-color: var(--acc); width: 14px; height: 14px; flex: 0 0 auto; }
.cl-check__count { color: var(--label); margin-left: auto; font-size: 11px; }
.cl-range { display: flex; gap: 8px; align-items: center; }
.cl-range input { width: 100%; min-width: 0; font-size: 12px; border: 1px solid #d5dbe2; border-radius: var(--radius); padding: 7px 8px; font-family: var(--f); }
.cl-range span { color: var(--label); font-size: 12px; }
.cl-side .cl-btn { display: block; width: 100%; text-align: center; margin-top: 14px; }
.cl-side__clear { display: block; text-align: center; font-size: 11px; color: var(--label); text-decoration: none; margin-top: 9px; }
.cl-side__clear:hover { color: var(--acc); }

.cl-results { flex: 1; min-width: 0; }
.cl-results__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 4px; background: #f8f9fb; padding: 10px 14px; margin-bottom: 16px; flex-wrap: wrap; }
.cl-results__count { font-size: 12.5px; color: #4b5563; }
.cl-results__count b { color: var(--navy); }
.cl-results__sort select { font-size: 12px; color: var(--muted); border: 1px solid #d5dbe2; background: #fff; border-radius: var(--radius); padding: 7px 11px; font-family: var(--f); }
.cl-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Paginação */
.cl-pager { display: flex; justify-content: center; gap: 6px; margin-top: 20px; flex-wrap: wrap; }
.cl-pager a, .cl-pager span { font-weight: 700; font-size: 12px; min-width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius); padding: 0 6px; text-decoration: none; }
.cl-pager a { color: #4b5563; border: 1px solid #d5dbe2; background: #fff; font-weight: 400; }
.cl-pager a:hover { border-color: var(--acc); color: var(--acc); }
.cl-pager .is-current { background: var(--acc); color: #fff; }
.cl-pager .cl-pager__dots { border: 0; background: none; color: var(--label); }

/* ---- Breadcrumb ---- */
.cl-crumb { font-size: 12px; color: var(--label); padding: 16px 0 4px; }
.cl-crumb a { text-decoration: none; color: var(--label); }
.cl-crumb a:hover { color: var(--acc); }
.cl-crumb__cur { color: var(--acc); }

/* ---- PÁGINA DO VEÍCULO ---- */
.cl-veh { padding: 6px 0 40px; }
.cl-veh__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 24px; align-items: start; }
.cl-gallery__main { aspect-ratio: 4/3; background: #e7ebf0; border-radius: 4px; overflow: hidden; }
.cl-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.cl-gallery__thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.cl-gallery__thumbs button { flex: 1 1 0; min-width: 60px; max-width: 90px; aspect-ratio: 4/3; padding: 0; background: #eef1f4; border: 2px solid transparent; border-radius: var(--radius); overflow: hidden; cursor: pointer; }
.cl-gallery__thumbs button.is-active { border-color: var(--acc); }
.cl-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cl-veh__name { font-weight: 700; font-size: 22px; color: var(--navy); }
.cl-veh__ver { font-size: 13px; color: var(--label); margin-top: 2px; }
.cl-veh__price { font-weight: 900; font-size: 28px; color: var(--navy); margin: 12px 0 16px; }
.cl-spec { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.cl-spec td { padding: 8px 0; border-bottom: 1px solid var(--divider); font-size: 12.5px; }
.cl-spec td:first-child { color: var(--label); }
.cl-spec td:last-child { text-align: right; font-weight: 700; color: #374151; }
.cl-cta-wa { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 13px; color: #fff; background: var(--wa); padding: 13px; text-decoration: none; border-radius: var(--radius); margin-bottom: 9px; }
.cl-cta-wa:hover { filter: brightness(1.05); }
.cl-cta-wa i { display: inline-block; animation: cl-swing 2.2s ease-in-out infinite; font-style: normal; }
@keyframes cl-swing { 0%,100% { transform: rotate(0); } 25% { transform: rotate(12deg); } 75% { transform: rotate(-12deg); } }

/* ---- Conteúdo genérico (sobre/contato/forms/faq) ---- */
.cl-page { padding: 26px 0 40px; }
.cl-prose { font-size: 14px; line-height: 1.7; color: #374151; max-width: 760px; }
.cl-prose h3 { color: var(--navy); }
.cl-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; padding: 20px; }
.cl-field { margin-bottom: 14px; }
.cl-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--navy); margin-bottom: 5px; }
.cl-input, .cl-field input, .cl-field select, .cl-field textarea { width: 100%; font-size: 13px; border: 1px solid #d5dbe2; border-radius: var(--radius); padding: 10px 11px; font-family: var(--f); color: var(--text); background: #fff; }
.cl-field textarea { min-height: 110px; resize: vertical; }
.cl-faq { border: 1px solid var(--border); border-radius: 4px; background: var(--surface); margin-bottom: 8px; }
.cl-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; font-size: 13.5px; color: var(--navy); }
.cl-faq p { padding: 0 16px 14px; margin: 0; font-size: 13px; line-height: 1.6; color: #374151; }
/* Título da seção (tema) — só existe quando o cliente agrupa as perguntas. */
.cl-faq__cat { font-size: 14.5px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .03em; margin: 20px 0 8px; padding-bottom: 5px; border-bottom: 2px solid var(--border); }
.cl-faq__cat:first-child { margin-top: 0; }
.cl-flash { background: #fdecec; border: 1px solid #f5c2c2; color: #a12a2a; padding: 11px 14px; border-radius: var(--radius); margin: 14px 0; font-size: 13px; }

/* ---- FOOTER ---- */
.cl-footer { background: var(--navy-d); color: #c5d1e0; margin-top: 20px; }
.cl-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 26px; padding: 30px 0 20px; }
.cl-footer__brand { font-weight: 900; font-size: 18px; color: #fff; text-transform: uppercase; }
.cl-footer__desc { font-size: 12px; line-height: 1.7; color: #93a4bb; margin: 10px 0 0; }
.cl-footer__label { font-weight: 700; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #fff; margin-bottom: 10px; }
.cl-footer__lines { font-size: 12px; line-height: 1.9; color: #93a4bb; }
.cl-footer__lines a { color: #93a4bb; text-decoration: none; }
.cl-footer__lines a:hover { color: #fff; }
.cl-footer__social { display: flex; gap: 10px; margin-top: 12px; }
/* ⚠️ `.icon__<rede>` mora no index.css, que esta skin NÃO carrega: sem estas regras os links
   sociais do rodapé apareciam como as palavras "Instagram", "Facebook"… */
.cl-footer__social a { width: 30px; height: 30px; display: block; background: center/20px 20px no-repeat; border-radius: 50%; text-indent: -9999px; overflow: hidden; }
.cl-footer__social .icon__instagram { background-image: url(../img/icons/instagram-color.svg); background-color: #fff; }
.cl-footer__social .icon__facebook  { background-image: url(../img/icons/facebook-color.svg); background-color: #fff; }
.cl-footer__social .icon__youtube   { background-image: url(../img/icons/youtube-color.svg); background-color: #fff; }
.cl-footer__social .icon__tiktok    { background-image: url(../img/icons/tiktok-white.svg); background-color: #111; }
.cl-footer__fb { margin-top: 12px; max-width: 260px; }
.cl-fb-card { margin-top: 14px; }
.cl-fb-card .fb-page { max-width: 100%; }
/* Componentes compartilhados vestidos com o navy da skin. */
.cl .flt {
    --float-accent: var(--wa);
    /* ⚠️ Quem troca o FUNDO tem de trocar a TINTA junto. Sem esta linha o botão herdava a
       tinta derivada da cor de MARCA, que descreve outro fundo — branco sobre o verde do
       WhatsApp dá 1,98:1. Aqui o par é fixo porque `--wa` é fixo. */
    --float-ink: #12100B;
}
.cl .sell-cta { --sell-cta-bg: var(--navy); }
.cl-footer__bar { border-top: 1px solid rgba(255,255,255,.12); }
.cl-footer__bar .cl-wrap { padding: 13px 0; font-size: 11px; color: #6f829c; text-align: center; }

/* ---- Responsivo ---- */
@media (max-width: 900px) {
  .cl-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cl-veh__grid { grid-template-columns: 1fr; }
  .cl-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cl-nav-toggle { display: inline-block; }
  .cl-menu { display: none; }
  .cl-menu.is-open { display: block; }
  .cl-menu__inner { flex-direction: column; align-items: stretch; }
  .cl-menu__links { flex-direction: column; align-items: stretch; }
  .cl-menu__search { margin-left: 0; }
  .cl-menu__search input { width: 100%; max-width: none; }
  .cl-menu a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .cl-main__right .cl-sales { display: none; }
  /* Estoque: filtro vira bloco no topo (drawer simples) */
  .cl-stock { flex-direction: column; }
  .cl-side { flex: none; width: 100%; position: static; }
  .cl-grid--2 { grid-template-columns: 1fr; }
  .cl-util__inner { flex-direction: column; gap: 2px; align-items: flex-start; }
}
@media (max-width: 460px) {
  .cl-grid--3 { grid-template-columns: 1fr; }
  .cl-footer__grid { grid-template-columns: 1fr; }
}

/* ============================================================================
 * ⚠️ BOTÃO QUE É <a> PERDE A COR DO TEXTO — o reset `.cl a { color: inherit }` (0-1-1:
 * classe + tipo) VENCE as regras de botão (0-1-0). O sintoma é contraste ~1,7:1 no CTA
 * (texto do canvas sobre o fundo do botão) e o CSS "diz" a cor certa algumas linhas acima —
 * marcador de HTML não vê contraste; só a cor COMPUTADA no navegador denuncia.
 * Achado ao auditar a classic (27/08); vale para as quatro skins de layout próprio.
 * ==========================================================================*/
.cl a.cl-cta-wa { color: #ffffff; }
