/* Barão Repasse: site público. Mobile-first, sem build.
   Cores: azul da marca (#1C4B82) no topo, hero e faixas; fundo escuro só onde as fotos precisam de contraste
   (estoque, cards e galeria); vermelho para ação e preço. */
@font-face { font-family: "Big Shoulders"; src: url(fonts/bigshoulders.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url(fonts/barlow-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --azul: #1C4B82;          /* azul oficial da marca */
  --azul-2: #173F6E;        /* faixa de contato */
  --azul-3: #102D50;        /* rodapé */
  --azul-claro: #C9DAF0;    /* texto secundário sobre azul */
  --fundo: #070D2B;         /* fundo escuro: estoque e galeria */
  --painel: #111A45;        /* card */
  --linha: rgba(255, 255, 255, .10);
  --linha-forte: rgba(255, 255, 255, .22);
  --vermelho: #ED3237;      /* títulos grandes e preço */
  --vermelho-acao: #DC2B30; /* fundo de botão e faixa (texto branco com contraste AA) */
  --vermelho-acao-2: #BF2328;
  --vermelho-texto: #F45A5E;/* texto vermelho pequeno sobre fundo escuro */
  --branco: #FEFEFE;
  --texto-2: #C3C9E0;
  --texto-3: #959DC0;
  --wa: #25D366;
  --raio: 14px;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --corpo: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fundo); color: var(--branco); font: 400 16px/1.5 var(--corpo); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1; letter-spacing: .01em; margin: 0; text-transform: uppercase; }
button, input, select { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { display: none; }
.ico { width: 22px; height: 22px; flex: none; }
.pular { position: absolute; left: 12px; top: -60px; background: var(--vermelho-acao); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.pular:focus { top: 12px; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn--red { background: var(--vermelho-acao); color: #fff; }
.btn--red:hover { background: var(--vermelho-acao-2); }
.btn--wa { background: var(--wa); color: #06281A; }
.btn--wa:hover { background: #1FBE5A; }
.btn--ghost { background: transparent; border: 1px solid var(--linha-forte); color: var(--branco); }
.btn--ghost:hover { border-color: #fff; }
.btn--grande { min-height: 54px; font-size: 17px; width: 100%; }
.link { color: var(--branco); font-weight: 600; text-decoration-color: currentColor; text-underline-offset: 4px; text-decoration-thickness: 2px; }

/* faixa demo */
.faixa-demo { background: repeating-linear-gradient(-45deg, #F5C518 0 14px, #E0B210 14px 28px); color: #1A1400; font-weight: 700; font-size: 14px;
  text-align: center; padding: 8px 16px; }

/* topo (azul da marca) */
.topo { position: sticky; top: 0; z-index: 30; background: rgba(28, 75, 130, .94); backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .14); }
.topo__in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; }
.topo__logo img { height: 40px; width: auto; }
.topo__menu { display: none; gap: 24px; margin-left: auto; }
.topo__menu a { text-decoration: none; font-weight: 600; font-size: 15px; color: #E4ECF7; letter-spacing: .02em; }
.topo__menu a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.topo__wa { margin-left: auto; min-height: 40px; padding: 0 14px; font-size: 14px; }
.topo__wa span { display: none; }

/* hero (azul da marca) */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(90% 80% at 100% 0%, rgba(255, 255, 255, .10), transparent 60%),
  linear-gradient(180deg, var(--azul) 0%, #18426F 100%); }
.hero__marca { position: absolute; right: -60px; top: 10px; width: 260px; height: auto; opacity: .10; pointer-events: none; }
.hero__in { position: relative; max-width: 1200px; margin: 0 auto; padding: 28px 16px 28px; }
.hero__kicker { margin: 0 0 10px; color: var(--azul-claro); font-weight: 700; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { font-size: clamp(42px, 11.5vw, 80px); max-width: 14ch; }
.busca { margin-top: 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px; background: rgba(7, 13, 43, .28); border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 18px; padding: 10px; }
.busca input, .busca select, .estoque__ctl select { min-height: 48px; border-radius: 12px; border: 1px solid var(--linha); background: var(--fundo); padding: 0 14px; width: 100%; }
.busca input { grid-column: 1 / -1; }
.busca input::placeholder { color: var(--texto-3); }
.busca select, .estoque__ctl select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23F45A5E' stroke-width='2.4' stroke-linecap='round' d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.busca .btn { border-radius: 12px; min-height: 48px; }
.selos { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.selos li { display: flex; align-items: center; gap: 12px; font-size: 14.5px; font-weight: 500; color: #EEF3FA; line-height: 1.35; }
.selos__ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--vermelho-acao); display: grid; place-items: center; }
.selos__ico .ico { width: 19px; height: 19px; color: #fff; }

/* estoque (fundo escuro: contraste das fotos) */
.sec__in { max-width: 1200px; margin: 0 auto; padding: 40px 16px; }
.estoque__cab { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.estoque__cab h2, .contato h2 { font-size: clamp(36px, 8vw, 56px); }
.estoque__cab h2::after, .contato h2::after { content: ""; display: block; width: 44px; height: 4px; background: var(--vermelho); margin-top: 10px; }
.estoque__ctl { display: flex; align-items: center; gap: 12px; }
.estoque__ctl select { width: auto; min-height: 42px; font-size: 14px; }
.estoque__qtd { margin: 0; color: var(--texto-3); font-size: 14px; white-space: nowrap; }
.estoque__nota { margin: 22px 0 0; color: var(--texto-3); font-size: 13.5px; max-width: 80ch; }

.aviso-carro { margin: 0 0 18px; padding: 16px; border-radius: var(--raio); border: 1px solid rgba(244, 90, 94, .55); background: rgba(220, 43, 48, .12); }
.aviso-carro p { margin: 0 0 12px; color: var(--texto-2); }
.aviso-carro strong { color: #fff; }
.aviso-carro__acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.aviso-carro:focus { outline: none; }

.grade { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--painel); border: 1px solid var(--linha); border-radius: var(--raio); overflow: hidden;
  text-decoration: none; transition: border-color .2s, transform .2s; cursor: pointer; }
.card:hover { border-color: rgba(244, 90, 94, .7); transform: translateY(-2px); }
.card__foto { position: relative; aspect-ratio: 4 / 3; background: #0A1033; overflow: hidden; }
.card__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__foto img { transform: scale(1.03); }
.card__nfotos { position: absolute; right: 10px; top: 10px; background: rgba(7, 13, 43, .8); font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.card__demo { position: absolute; left: 10px; top: 10px; background: #F5C518; color: #1A1400; font-size: 11px; font-weight: 700; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; }
.card__corpo { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card__marca { margin: 0; color: var(--vermelho-texto); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.card__modelo { font-size: 30px; margin-top: 4px; }
.card__versao { margin: 4px 0 0; color: var(--texto-2); font-size: 14.5px; line-height: 1.35; min-height: 1.35em; }
.card__dados { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.card__dados li { font-size: 13px; font-weight: 600; color: var(--texto-2); border: 1px solid var(--linha-forte); border-radius: 999px; padding: 3px 10px; }
.card__pe { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; }
.card__preco { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--vermelho); white-space: nowrap; }
.card__preco small { font-size: .55em; margin-right: 3px; }
.card__preco em, .det__preco em { font-style: normal; font-family: var(--corpo); font-weight: 600; font-size: 13px; letter-spacing: .02em; color: var(--texto-2); text-transform: none; margin-left: 4px; }
.card__ver { font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; color: var(--branco); }
.card__ver .ico { width: 16px; height: 16px; color: var(--vermelho-texto); }
.card--sk { min-height: 380px; cursor: default; background: linear-gradient(100deg, var(--painel) 30%, #18225A 50%, var(--painel) 70%); background-size: 300% 100%; animation: sk 1.4s infinite linear; }
.card--sk:hover { transform: none; border-color: var(--linha); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }

.vazio { text-align: center; max-width: 540px; margin: 10px auto 0; padding: 42px 22px; border: 1px dashed var(--linha-forte); border-radius: 20px;
  background: radial-gradient(80% 70% at 50% 0%, rgba(28, 75, 130, .45), transparent 70%); }
.vazio img { margin: 0 auto 16px; width: 66px; height: auto; }
.vazio h3 { font-size: 34px; }
.vazio p { color: var(--texto-2); margin: 12px 0 22px; }
.vazio__acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* venda (faixa azul, ação em vermelho) */
.venda { background: var(--azul); color: #fff; border-top: 4px solid var(--vermelho-acao); }
.venda__in { display: grid; gap: 18px; padding-top: 34px; padding-bottom: 34px; }
.venda h2 { font-size: clamp(36px, 9vw, 60px); }
.venda p { margin: 10px 0 0; font-size: 17px; font-weight: 500; max-width: 46ch; color: #EEF3FA; }
.venda .btn--red { justify-self: start; }

/* contato (azul mais fechado) */
.contato { background: var(--azul-2); }
.contato__grade { display: grid; gap: 14px; margin-top: 22px; }
.contato__item { display: flex; gap: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--raio); padding: 18px; }
.contato__item > .ico { color: #fff; width: 28px; height: 28px; }
.contato__item h3 { font-size: 22px; }
.contato__item p { margin: 6px 0 8px; color: #E4ECF7; overflow-wrap: anywhere; }

/* rodapé */
.rodape { background: var(--azul-3); padding-bottom: 84px; }
.rodape__in { display: grid; gap: 20px; }
.rodape img { width: 110px; height: auto; }
.rodape__txt p { margin: 0 0 8px; color: #DCE5F2; font-size: 14px; }
.rodape__txt a { color: #fff; }
.rodape__aviso { color: #B9C8DD !important; font-size: 13px !important; max-width: 90ch; }

/* WhatsApp flutuante (mobile) */
.wa-flutua { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  transition: opacity .2s, transform .2s; }
.wa-flutua.oculto { opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; }
.wa-flutua .ico { width: 30px; height: 30px; }

/* detalhe (fundo escuro) */
.det { padding: 0; border: 0; background: var(--fundo); color: var(--branco); width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; }
.det::backdrop { background: rgba(2, 4, 16, .8); }
.det__in { position: relative; min-height: 100%; }
.det__x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(7, 13, 43, .82); display: grid; place-items: center; cursor: pointer; }
.gal { position: relative; background: #000; }
.gal__trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gal__trilho::-webkit-scrollbar { display: none; }
.gal__trilho img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(7, 13, 43, .78); display: none; place-items: center; cursor: pointer; }
.gal__nav--ant { left: 12px; } .gal__nav--ant .ico { transform: scaleX(-1); }
.gal__nav--prox { right: 12px; }
.gal__cont { position: absolute; left: 12px; top: 12px; margin: 0; background: rgba(7, 13, 43, .78); font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.gal__cont:empty { display: none; }
.gal__mini { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 0; scrollbar-width: thin; }
.gal__mini button { flex: 0 0 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; opacity: .6; }
.gal__mini button[aria-current="true"] { border-color: var(--vermelho-texto); opacity: 1; }
.gal__mini img { width: 100%; height: 100%; object-fit: cover; }
.det__info { padding: 18px 16px 28px; }
.det__marca { margin: 0; color: var(--vermelho-texto); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.det__info h2 { font-size: 46px; margin-top: 4px; }
.det__versao { margin: 6px 0 0; color: var(--texto-2); font-size: 17px; }
.det__preco { font-family: var(--display); font-weight: 800; font-size: 50px; color: var(--vermelho); margin: 14px 0 0; line-height: 1; }
.det__preco small { font-size: .5em; margin-right: 4px; }
.det__preco em { font-size: 15px; }
.det__ficha { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--linha); border: 1px solid var(--linha); border-radius: 12px; overflow: hidden; margin: 20px 0; }
.det__ficha div { background: var(--painel); padding: 10px 14px; }
.det__ficha dt { color: var(--texto-3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.det__ficha dd { margin: 2px 0 0; font-weight: 600; font-size: 16px; }
.det__laudo { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(28, 75, 130, .45); border: 1px solid rgba(201, 218, 240, .25); font-size: 14.5px; font-weight: 500; }
.det__laudo .ico { color: #fff; width: 22px; height: 22px; margin-top: 1px; }
.det__cond { color: var(--texto-3); font-size: 13px; margin: 12px 0 0; line-height: 1.45; }
.det__cod { color: var(--texto-3); font-size: 12px; margin: 12px 0 0; letter-spacing: .04em; }
body.travado { overflow: hidden; }

/* página de texto (privacidade) */
.texto-legal { max-width: 760px; }
.texto-legal h1 { font-size: clamp(40px, 9vw, 64px); margin-bottom: 8px; }
.texto-legal h2 { font-size: 26px; margin: 28px 0 8px; }
.texto-legal p, .texto-legal li { color: var(--texto-2); margin: 0 0 10px; }
.texto-legal ul { padding-left: 20px; margin: 0 0 12px; }
.texto-legal a { color: #fff; }
.texto-legal .data { color: var(--texto-3); font-size: 14px; margin-bottom: 20px; }

/* ---------- telas maiores ---------- */
@media (min-width: 600px) {
  .grade { grid-template-columns: repeat(2, 1fr); }
  .busca { grid-template-columns: 1fr 200px auto; }
  .busca input { grid-column: auto; }
  .selos { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .contato__grade { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 700px) {
  .topo__menu { display: flex; }
  .topo__wa { margin-left: 8px; }
}
@media (min-width: 900px) {
  .topo__in { padding: 12px 24px; }
  .topo__logo img { height: 46px; }
  .topo__menu { gap: 28px; }
  .topo__wa span { display: inline; }
  .hero__in { padding: 60px 24px 52px; }
  .hero__marca { width: 440px; right: 4%; top: 50%; transform: translateY(-50%); opacity: .12; }
  .busca { max-width: 760px; }
  .selos { max-width: 960px; margin-top: 30px; }
  .sec__in { padding: 64px 24px; }
  .grade { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .venda__in { grid-template-columns: 1fr auto; align-items: center; padding-top: 48px; padding-bottom: 48px; }
  .venda .btn--red { justify-self: end; min-height: 54px; padding: 0 28px; }
  .contato__grade { grid-template-columns: repeat(4, 1fr); }
  .rodape { padding-bottom: 0; }
  .rodape__in { grid-template-columns: auto 1fr; align-items: center; gap: 40px; }
  .wa-flutua { display: none; }
  .det { width: min(1080px, 94vw); height: fit-content; max-height: 92vh; margin: auto; border-radius: 18px; border: 1px solid var(--linha-forte); }
  .det__in { display: grid; grid-template-columns: 1.45fr 1fr; grid-template-rows: auto 1fr; min-height: 0; max-height: 92vh; }
  .gal { grid-column: 1; grid-row: 1; }
  .gal__mini { grid-column: 1; grid-row: 2; padding: 10px 14px 16px; align-self: start; }
  .det__info { grid-column: 2; grid-row: 1 / span 2; padding: 28px 26px; overflow-y: auto; }
  .gal__nav { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
