/* Site A.R Motors */
:root {
  --red: #c4161c;
  --red-dark: #a10f14;
  --ink: #121316;
  --ink-2: #464b55;
  --muted: #7d828c;
  --line: #e7e8eb;
  --bg: #ffffff;
  --soft: #f4f5f7;
  --green: #1fae55;
  --green-dark: #178a43;
  --radius: 16px;
  --head: Barlow, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.1; margin: 0; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 12px; font: 600 15px/1 Inter, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .18s; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }
.btn-whats-lg { background: var(--green); color: #fff; }
.btn-whats-lg:hover { background: var(--green-dark); }
.btn-outline-dark { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline-dark:hover { border-color: var(--ink); }

/* ---------- Topo ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); -webkit-backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand img { height: 52px; width: auto; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-link { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.top-link:hover { color: var(--red); }
.top-link svg { width: 18px; height: 18px; }
.btn-whats { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px; background: var(--green); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; transition: .18s; }
.btn-whats:hover { background: var(--green-dark); }
.btn-whats svg { width: 20px; height: 20px; }

/* ---------- Banner ---------- */
.hero { position: relative; overflow: hidden; background: #0c0c0d; color: #fff; }
.hero-default { padding: 92px 0 100px; background:
  linear-gradient(115deg, transparent 0 58%, rgba(196, 22, 28, .9) 58% 61%, transparent 61% 63%, rgba(196, 22, 28, .45) 63% 64%, transparent 64%),
  radial-gradient(ellipse at 85% 40%, #2a2b30 0, #0c0c0d 60%); }
.hero-in { max-width: 1240px; }
.hero-kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 600; color: #ff6b70; margin: 0 0 14px; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: -.01em; max-width: 720px; }
.hero-sub { font-size: 18px; color: #c9cbd0; max-width: 560px; margin: 18px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-slides { height: clamp(260px, 42vw, 560px); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; display: block; color: #fff; text-decoration: none; }
.slide.on { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-txt { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 54px; }
.slide:has(.slide-txt)::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 60%); z-index: 0; }
.slide-txt { z-index: 1; }
.slide-txt h1 { font-size: clamp(30px, 4.6vw, 56px); }
.slide-txt p { font-size: 18px; margin: 10px 0 0; color: #e4e5e8; max-width: 620px; }
.dots { position: absolute; z-index: 2; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .5); cursor: pointer; padding: 0; transition: .2s; }
.dots button.on { width: 28px; background: #fff; }

/* ---------- Estoque ---------- */
.stock { padding: 56px 0 72px; }
.stock-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 28px; }
.stock-head h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; text-transform: uppercase; font-style: italic; }
.stock-head h2::after { content: ""; display: block; width: 56px; height: 4px; background: var(--red); margin-top: 10px; border-radius: 2px; }
.stock-head p { margin: 8px 0 0; }
.stock-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.tabs { display: inline-flex; background: var(--soft); border-radius: 12px; padding: 4px; }
.tabs button { border: 0; background: transparent; height: 38px; padding: 0 16px; border-radius: 9px; font: 600 14px Inter, sans-serif; color: var(--ink-2); cursor: pointer; }
.tabs button small { color: var(--muted); font-weight: 500; margin-left: 2px; }
.tabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.stock-tools input, .stock-tools select { height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; font: 15px Inter, sans-serif; background: #fff; color: var(--ink); }
.stock-tools input { width: 240px; }
.stock-tools input:focus, .stock-tools select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196, 22, 28, .12); }

.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.vcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.vcard:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16, 24, 40, .1); border-color: transparent; }
.vcard-img { position: relative; aspect-ratio: 4/3; background: var(--soft); overflow: hidden; }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: center 65%; transition: transform .4s; }
.vcard:hover .vcard-img img { transform: scale(1.04); }
.vcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.vcard h3 { font-size: 21px; font-weight: 700; text-transform: uppercase; }
.vcard-ver { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 12px 0 14px; color: var(--muted); font-size: 14px; }
.vcard-meta i { width: 4px; height: 4px; border-radius: 50%; background: #c5c8ce; }
.vcard-prices { margin-top: auto; display: flex; flex-direction: column; }
.vcard-old { font-size: 14px; color: var(--muted); line-height: 1.2; }
.vcard-price { font-family: var(--head); font-size: 26px; font-weight: 800; color: var(--red); line-height: 1.15; }
.vcard.is-sold { opacity: .6; }
.vcard.is-sold .vcard-price { color: var(--muted); }

.tag { position: absolute; left: 12px; top: 12px; z-index: 2; font: 700 12px/1 Inter, sans-serif; text-transform: uppercase; letter-spacing: .05em; padding: 7px 10px; border-radius: 8px; color: #fff; }
.tag-hot { background: var(--red); }
.tag-sold { background: var(--ink); }
.tag-res { background: #e39a00; }
.tag-lg { font-size: 15px; padding: 10px 14px; }
.no-results, .no-stock { text-align: center; color: var(--muted); padding: 50px 20px; background: var(--soft); border-radius: var(--radius); }
.no-results button { border: 0; background: none; color: var(--red); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }

/* ---------- Página do veículo ---------- */
.detail { padding-top: 22px; padding-bottom: 30px; }
.back-link { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.back-link:hover { color: var(--red); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); gap: 36px; align-items: start; }

.g-main { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.g-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; cursor: zoom-in; }
.g-main img.on { opacity: 1; }
.g-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); color: var(--ink); padding-bottom: 4px; }
.g-nav:hover { background: #fff; }
.g-prev { left: 14px; } .g-next { right: 14px; }
.g-count { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; padding: 4px 10px; border-radius: 99px; }
.g-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.g-thumbs button { flex: 0 0 96px; aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--soft); opacity: .65; transition: .15s; }
.g-thumbs button.on { border-color: var(--red); opacity: 1; }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.info { position: sticky; top: 96px; }
.info-type { display: inline-block; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--red); }
.info h1 { font-size: clamp(32px, 3.4vw, 44px); font-weight: 800; text-transform: uppercase; margin-top: 6px; }
.info-ver { margin: 6px 0 0; color: var(--ink-2); font-size: 17px; }
.info-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.info-selo { background: var(--red); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 5px 10px; border-radius: 7px; }
.info-prices { margin: 18px 0 22px; }
.info-old { display: block; font-size: 17px; color: var(--muted); }
.info-price { font-family: var(--head); font-size: 42px; font-weight: 800; line-height: 1.1; }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 24px; }
.specs div { background: #fff; padding: 12px 16px; }
.specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; }
.specs div:last-child:nth-child(odd) { grid-column: span 2; }
.detail-extra > :only-child { grid-column: 1 / -1; }
.info-cta { display: grid; gap: 10px; }
.info-cta .btn { height: 56px; font-size: 16px; }

.detail-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.box { background: var(--soft); border-radius: var(--radius); padding: 26px; }
.box h2 { font-size: 22px; font-weight: 700; text-transform: uppercase; margin-bottom: 16px; }
.opc-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.opc-list li { position: relative; padding-left: 26px; font-size: 15px; }
.opc-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.desc { margin: 0; color: var(--ink-2); }
.stock-related { background: var(--soft); margin-top: 30px; }
.notfound { padding: 90px 20px; text-align: center; }
.notfound h1 { font-size: 36px; margin-bottom: 10px; }
.notfound .btn { margin-top: 20px; }

/* Tela cheia */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .94); display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; line-height: 1; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .12); border: 0; color: #fff; width: 54px; height: 54px; border-radius: 50%; font-size: 34px; cursor: pointer; padding-bottom: 4px; }
.lb-nav:hover { background: rgba(255, 255, 255, .25); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }

/* ---------- Rodapé ---------- */
.foot { background: var(--soft); border-top: 1px solid var(--line); padding: 46px 0 20px; }
.foot-in { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.foot-brand img { height: 64px; width: auto; }
.foot-brand p { color: var(--muted); margin: 14px 0 0; max-width: 340px; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.foot-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.foot-list svg { width: 20px; height: 20px; flex: none; color: var(--red); margin-top: 2px; }
.foot-list a { text-decoration: none; }
.foot-list a:hover { color: var(--red); }
.foot-copy { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

.whats-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(31, 174, 85, .4); transition: transform .2s; }
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; }
.mobile-bar { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .info { position: static; }
  .detail-extra { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .top-in { height: 62px; }
  .brand img { height: 40px; }
  .top-nav { gap: 10px; }
  .top-link:not(.top-phone), .top-phone span, .btn-whats span { display: none; }
  .top-phone { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
  .btn-whats { width: 42px; padding: 0; justify-content: center; }
  .hero-default { padding: 34px 0 36px; background: radial-gradient(ellipse at 85% 20%, #2a2b30 0, #0c0c0d 70%); }
  .hero-kicker { font-size: 11px; margin-bottom: 10px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 15px; margin: 12px 0 20px; }
  .hero-cta .btn { flex: 1; height: 46px; padding: 0 14px; font-size: 14px; }
  .hero-cta .btn-outline svg { display: none; }
  .slide-txt { padding-bottom: 40px; }
  .slide-txt p { font-size: 15px; }
  .stock { padding: 36px 0 56px; }
  .stock-tools { width: 100%; }
  .tabs { width: 100%; }
  .tabs button { flex: 1; }
  .stock-tools input { flex: 1 1 0; min-width: 0; width: auto; }
  .stock-tools select { flex: 0 0 132px; width: 132px; }
  .stock-head { margin-bottom: 20px; }
  .vgrid { grid-template-columns: 1fr; gap: 16px; }
  .g-main { margin: 0 -16px; border-radius: 0; }
  .g-nav { display: none; }
  .g-thumbs button { flex-basis: 76px; }
  .info-price { font-size: 36px; }
  .opc-list { grid-template-columns: 1fr; }
  .box { padding: 20px; }
  .foot-in { grid-template-columns: 1fr; gap: 26px; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .06); }
  .mobile-bar small { display: block; color: var(--muted); font-size: 12px; max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobile-bar strong { font-family: var(--head); font-size: 22px; }
  .mobile-bar .btn { height: 48px; padding: 0 18px; }
  .detail ~ .foot, body:has(.mobile-bar) .foot { padding-bottom: 90px; }
}
@media (min-width: 560px) and (max-width: 720px) {
  .vgrid { grid-template-columns: 1fr 1fr; }
}
