/* BR Autocar: oficina em Molendinar, Gold Coast. Estrutura modelada na Oficcina Brooklin. */
:root {
  --night: #13171a;
  --asphalt: #1c2328;
  --asphalt-2: #252e34;
  --line-dark: #333d44;
  --concrete: #e6e8e5;
  --paper: #f7f7f4;
  --ink: #15191c;
  --muted: #5b676e;
  --muted-dark: #a7b1b7;
  --hivis: #f2c230;
  --hivis-dark: #d9a913;
  --wa: #1fae5b;
  --line: #cfd4d1;
  --radius: 8px;
  --wrap: 1160px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; background: var(--night); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.55; color: var(--ink); background: var(--paper); }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; margin: 0 0 0.4em; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.9rem, 6.6vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.4rem; line-height: 1.1; }
p { margin: 0 0 1em; max-width: 62ch; }
.kicker { font-family: var(--display); font-weight: 600; font-size: 1.1rem; color: var(--hivis-dark); margin: 0 0 8px; }
.dark .kicker, .dark-2 .kicker { color: var(--hivis); }

.todo { background: #fff3b0; color: var(--ink); outline: 1px dashed #b38f00; padding: 0 3px; border-radius: 2px; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.1; white-space: nowrap; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-hivis { background: var(--hivis); color: var(--ink); }
.btn-hivis:hover { background: var(--hivis-dark); }
.btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; }
.btn-ink { border-color: var(--ink); color: var(--ink); }
.btn-ink:hover { background: var(--ink); color: #fff; }
.btn-sm { font-size: 1.05rem; padding: 9px 18px; }

/* seções */
.section { padding: 88px 0; }
.dark { background: var(--night); color: #fff; }
.dark p { color: var(--muted-dark); }
.dark-2 { background: var(--asphalt); color: #fff; }
.dark-2 p { color: var(--muted-dark); }
.light { background: var(--concrete); }
.head { margin-bottom: 40px; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head-row p { margin: 0; }

/* topo */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(19, 23, 26, 0.94); backdrop-filter: blur(8px); color: #fff; border-bottom: 1px solid var(--line-dark); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 1.75rem; text-decoration: none; margin-right: auto; display: flex; align-items: center; gap: 10px; }
.brand i { width: 14px; height: 28px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 5px, var(--night) 5px 10px); display: inline-block; border-radius: 2px; }
.brand span { color: var(--hivis); }
.topbar nav { display: flex; gap: 20px; font-size: 0.97rem; }
.topbar nav a { text-decoration: none; color: var(--muted-dark); }
.topbar nav a:hover { color: #fff; }
.topbar .tel { text-decoration: none; font-weight: 600; font-size: 0.97rem; }
.langs { display: flex; gap: 4px; }
.langs a { font-size: 1.35rem; line-height: 1; padding: 5px 6px; border-radius: 8px; text-decoration: none; opacity: 0.45; border: 1px solid transparent; }
.langs a[aria-current] { opacity: 1; border-color: var(--line-dark); background: var(--asphalt); }
.langs a:hover { opacity: 1; }
@media (max-width: 1020px) { .topbar nav { display: none; } }
@media (max-width: 640px) { .topbar .tel, .topbar .btn { display: none; } }

/* hero */
.hero { background: var(--night); color: #fff; padding: 64px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: end; }
.hero-copy { padding-bottom: 72px; }
.where { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted-dark); margin-bottom: 18px; font-size: 1rem; }
.where strong { color: #fff; font-weight: 600; }
.hero .lede { font-size: 1.22rem; color: var(--muted-dark); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-video { position: relative; margin: 0; justify-self: end; width: min(100%, 380px); aspect-ratio: 9 / 14; border-radius: 18px 18px 0 0; overflow: hidden; background: var(--asphalt); }
.hero-video video { width: 100%; height: 100%; object-fit: cover; }
.hero-video figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(19,23,26,0.82); padding: 6px 12px; border-radius: 999px; font-size: 0.9rem; }
.offer { background: var(--hivis); color: var(--ink); }
.offer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 16px; padding-bottom: 16px; }
.offer p { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 2.6vw, 1.75rem); line-height: 1.1; }
.offer .btn { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-copy { padding-bottom: 32px; }
  .hero-video { justify-self: center; width: 100%; aspect-ratio: 4 / 5; border-radius: 14px 14px 0 0; }
}

/* marcas */
.makes { background: var(--night); color: var(--muted-dark); border-top: 1px solid var(--line-dark); }
.makes .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding-top: 22px; padding-bottom: 22px; font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.makes small { width: 100%; text-align: center; font-family: var(--body); font-weight: 400; font-size: 0.9rem; }

/* diferenciais */
.strip3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.strip3 img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.why { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.why li { padding: 18px 18px 0 0; border-right: 1px solid var(--line); margin-right: 18px; }
.why li:last-child { border-right: 0; margin-right: 0; }
.why h3 { font-size: 1.25rem; }
.why p { font-size: 0.97rem; color: var(--muted); margin: 0; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr 1fr; gap: 0 18px; } .why li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 16px; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } .strip3 { grid-template-columns: 1fr 1fr; } .strip3 img:last-child { display: none; } }

/* dono */
.owner { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.owner img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 14px; }
.ticks { list-style: none; padding: 0; margin: 0 0 26px; }
.ticks li { padding: 10px 0 10px 34px; position: relative; border-bottom: 1px solid var(--line-dark); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 13px; height: 7px; border-left: 3px solid var(--hivis); border-bottom: 3px solid var(--hivis); transform: rotate(-45deg); }
.light .ticks li, .section:not(.dark):not(.dark-2) .ticks li { border-color: var(--line); }
.watch { display: flex; align-items: center; gap: 14px; margin-top: 22px; background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 0; text-align: left; }
.watch .play { width: 56px; height: 56px; border-radius: 50%; background: var(--hivis); display: grid; place-items: center; flex: none; }
.watch .play::after { content: ""; border-left: 16px solid var(--ink); border-top: 10px solid transparent; border-bottom: 10px solid transparent; margin-left: 4px; }
.watch small { display: block; color: var(--muted-dark); }
@media (max-width: 860px) { .owner { grid-template-columns: 1fr; gap: 28px; } .owner img { max-height: 520px; } }

/* galeria */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); aspect-ratio: 4 / 5; }
.gallery img:first-child { grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; } .gallery img:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; } }

/* serviços */
.services { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.services li { background: var(--asphalt); padding: 26px 24px; display: flex; flex-direction: column; }
.services h3 { color: #fff; }
.services p { font-size: 0.98rem; flex: 1; }
.services .price { font-family: var(--display); font-weight: 700; color: var(--hivis); font-size: 1.3rem; margin-bottom: 10px; }
.services a { color: var(--hivis); font-weight: 600; text-decoration: none; font-size: 0.97rem; }
.services a:hover { text-decoration: underline; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }

/* ficha de serviço */
.jobcard { background: var(--paper); border-radius: 14px; border-top: 8px solid var(--hivis); box-shadow: 0 20px 40px rgba(0,0,0,0.18); padding: 26px; }
.jobcard legend { font-weight: 600; margin-bottom: 8px; padding: 0; }
.jobcard fieldset { border: 0; margin: 0 0 14px; padding: 0; }
.tickgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.tick { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.tick input { appearance: none; width: 20px; height: 20px; border: 2px solid var(--ink); border-radius: 3px; margin: 0; flex: none; display: grid; place-content: center; cursor: pointer; }
.tick input::after { content: ""; width: 11px; height: 6px; border-left: 3px solid var(--wa); border-bottom: 3px solid var(--wa); transform: rotate(-45deg) translate(1px,-1px) scale(0); transition: transform 0.12s; }
.tick input:checked::after { transform: rotate(-45deg) translate(1px,-1px) scale(1); }
.fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.field { display: grid; gap: 4px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field input { font: inherit; padding: 11px 12px; border: 1px solid #9aa5a1; border-radius: 6px; background: #fff; }
.jobcard .note { color: var(--muted); font-size: 0.9rem; margin: 12px 0 0; }
@media (max-width: 860px) { .tickgrid { grid-template-columns: 1fr 1fr; } .fields { grid-template-columns: 1fr; } }

/* detail / antes e depois */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.ba { position: relative; aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; --pos: 50%; max-width: 480px; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .bar { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 4px; margin-left: -2px; background: var(--hivis); pointer-events: none; }
.ba .bar::after { content: "◀ ▶"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--hivis); color: var(--ink); font-size: 0.75rem; padding: 8px 10px; border-radius: 999px; white-space: nowrap; font-weight: 700; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba .lab { position: absolute; top: 14px; background: rgba(19,23,26,0.82); color: #fff; font-family: var(--display); font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: 1rem; }
.ba .lab-a { left: 14px; }
.ba .lab-b { right: 14px; background: var(--hivis); color: var(--ink); }

/* check-up */
.checks { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.checks li { background: var(--paper); border-radius: var(--radius); padding: 22px 20px; border-left: 6px solid var(--hivis); }
.checks h3 { margin-bottom: 6px; }
.checks p { margin: 0; color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .checks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .checks { grid-template-columns: 1fr; } }

/* avaliações */
.reviews-empty { border: 2px dashed var(--line-dark); border-radius: 14px; padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.reviews-empty p { margin: 0; }

/* vídeos */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 260px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.reel figure { margin: 0; scroll-snap-align: start; }
.reel video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--asphalt-2); }
.reel figcaption { padding: 10px 2px 0; font-size: 0.97rem; color: var(--muted-dark); }
.reel figcaption strong { display: block; color: #fff; font-family: var(--display); font-size: 1.2rem; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 1.12rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 1.7rem; line-height: 0.8; color: var(--hivis-dark); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* CTA final + rodapé */
.final { text-align: center; }
.final p { margin-left: auto; margin-right: auto; }
.final .ctas { justify-content: center; }
.foot { background: var(--night); color: var(--muted-dark); padding: 48px 0 120px; border-top: 1px solid var(--line-dark); font-size: 0.97rem; }
.foot .cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
.foot h3 { color: var(--hivis); font-size: 1.1rem; }
.foot a { color: #fff; }
.foot .map { width: 100%; height: 220px; border: 0; border-radius: var(--radius); margin-top: 28px; }
.foot small { display: block; margin-top: 28px; }
@media (max-width: 760px) { .foot .cols { grid-template-columns: 1fr; } }
@media (min-width: 761px) { .foot { padding-bottom: 48px; } }

/* WhatsApp flutuante + barra do celular */
.fab { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0,0,0,0.3); z-index: 30; }
.fab svg { width: 32px; height: 32px; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; display: none; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--night); border-top: 1px solid var(--line-dark); z-index: 30; }
.dock .btn { width: 100%; padding: 12px; }
.dock .btn-wa { background: var(--wa); color: #fff; }
@media (max-width: 760px) { .dock { display: grid; } .fab { display: none; } }

/* vídeo do dono (modal) */
dialog.player { border: 0; padding: 0; background: transparent; max-width: min(92vw, 420px); }
dialog.player::backdrop { background: rgba(0,0,0,0.8); }
dialog.player video { width: 100%; border-radius: 14px; }
dialog.player form { text-align: right; margin-bottom: 8px; }
dialog.player button { background: var(--paper); border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; cursor: pointer; }

/* 11 serviços: o último ocupa o espaço que sobra na grade de 3 */
@media (min-width: 901px) { .services li:last-child:nth-child(3n+2) { grid-column: span 2; } }

/* ---------- ajustes de celular (feedback da gravação de tela) ---------- */
.reel { grid-template-columns: repeat(4, 1fr); grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; }
@media (max-width: 860px) {
  .section { padding: 60px 0; }
  .head { margin-bottom: 26px; }
  /* topo: o vídeo do Rodrigo vira o fundo, então a página já abre com ele rodando */
  .hero { position: relative; padding: 0; min-height: min(86svh, 760px); display: flex; align-items: flex-end; }
  .hero .hero-grid { position: static; width: 100%; }
  .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .hero-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,23,26,0.35) 0%, rgba(19,23,26,0.55) 40%, rgba(19,23,26,0.94) 78%); }
  .hero-video figcaption { display: none; }
  .hero-copy { position: relative; z-index: 1; padding: 0 0 32px; }
  .hero .lede { color: #d6dde1; }
  .where { margin-bottom: 12px; font-size: 0.95rem; }
  .reel { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 62%; overflow-x: auto; }
  .gallery { grid-template-rows: none; }
  .gallery img { height: auto; }
}
@media (max-width: 640px) {
  .topbar .wrap { height: 58px; gap: 12px; }
  .brand { font-size: 1.55rem; }
  h1 { font-size: 2.6rem; }
}
