/* Sistema visual v2 da ATTIK (14 Direcao de arte/05 Prototipos/assets/attik-v2.css):
   Oxford #002147, Hunter #355E3B, fundo quente #F7F4F2, Jost. Página pública: sempre clara. */
@font-face { font-family: 'Jost'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fontes/jost-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(fontes/jost-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --oxford-950: #001634; --oxford: #002147; --oxford-800: #0B2D57; --oxford-100: #E8EEF5; --oxford-50: #F2F5F9;
  --hunter-800: #2A4B2F; --hunter: #355E3B; --hunter-200: #A9D1AF; --hunter-50: #EEF3EE;
  --bg: #F7F4F2; --surface: #FFFFFF; --surface-2: #F1EDE9;
  --line: #E5E1DD; --line-2: #D3CDC6; --line-field: #948C84;
  --ink: #1A1A1A; --muted: #525C6A;
  --danger: #9B1C1C; --danger-bg: #FBEAEA;
  --note-bg: #FBF1E3; --note-line: #EED6B5;
  --focus: 0 0 0 3px rgba(0,33,71,.28);
  --font: 'Jost', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(0,33,71,.05), 0 1px 1px rgba(0,33,71,.03);
  --sh-2: 0 6px 16px rgba(0,33,71,.08), 0 2px 4px rgba(0,33,71,.05);
  --sh-3: 0 18px 48px rgba(0,33,71,.16), 0 4px 12px rgba(0,33,71,.06);
  --ease: cubic-bezier(.2,.7,.2,1);
  --max: 1080px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }

body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }

::selection { background: var(--hunter-200); color: var(--oxford); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.012em; font-weight: 600; }
h2 { font-size: 1.6rem; color: var(--oxford); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

section { padding: 44px 0; }
section + section { border-top: 1px solid var(--line); }

/* Selo em frase normal, nunca em caixa alta (regra do v2) */
.eyebrow {
  display: inline-block;
  font-size: .85rem;
  font-weight: 500;
  color: var(--hunter);
  margin-bottom: .5em;
}

/* ---------- Topo ---------- */
/* Barra sólida acima da foto: nada de texto ou logo por cima da imagem (pedido do Bruno, 27/10). */
.topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 16px;
  background: var(--oxford-950); color: #fff;
}
.topbar .logo img { height: 20px; width: auto; }
.topbar .btn-cta { display: none; }

/* ---------- Hero ---------- */
/* Foto limpa em cima e texto embaixo, sobre fundo liso. */
.hero { background: var(--bg); color: var(--ink); }
.hero picture { display: block; }
.hero picture img { display: block; width: 100%; aspect-ratio: 4 / 3; max-height: 62svh; object-fit: cover; }
.hero-content { padding: 20px 16px 28px; width: 100%; max-width: var(--max); margin: 0 auto; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--oxford-50); color: var(--oxford); border: 1px solid var(--oxford-100);
  font-size: .85rem; font-weight: 500;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(1.9rem, 7.2vw, 3rem); line-height: 1.08; letter-spacing: -.02em; margin-bottom: .35em; color: var(--oxford); }
.hero .lead { font-size: 1.08rem; max-width: 38em; color: var(--muted); margin-bottom: 18px; }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 6px; }
.price { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; color: var(--oxford); }
.price-sub { font-size: 1rem; color: var(--muted); }
.hero .parcela-chip {
  display: inline-block; margin-top: 10px;
  background: var(--hunter-50); border: 1px solid var(--hunter-200);
  border-radius: var(--r-md); padding: 10px 14px; font-size: 1rem; color: var(--ink);
}
.hero .parcela-chip strong { font-size: 1.15rem; font-weight: 600; color: var(--hunter-800); }
.hero .cta-row { margin-top: 18px; }

/* ---------- Botões ---------- */
/* Todo botão abre o formulário; o WhatsApp vem depois do envio (cor Hunter, a do WhatsApp no v2). */
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--hunter); color: #fff;
  border: 0; border-radius: var(--r-md);
  font-weight: 500; font-size: 1.05rem; line-height: 1;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 6px 18px rgba(53,94,59,.28);
  transition: background .12s ease, transform .12s ease;
}
.btn-cta:hover { background: var(--hunter-800); }
.btn-cta:active { transform: translateY(1px); }
.btn-cta svg { width: 22px; height: 22px; flex: none; }
.btn-cta.block { width: 100%; }
.btn-cta[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Aviso obrigatório da simulação ---------- */
.aviso { display: block; font-size: .82rem; line-height: 1.4; color: var(--muted); margin-top: 6px; }

/* ---------- Destaques ---------- */
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 4px; }
.badge {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--oxford);
  box-shadow: var(--sh-1);
}
.badge small { display: block; font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 3px; }

/* ---------- Galeria ---------- */
.room { margin-top: 26px; }
.room h3, .video-slot h3 { display: flex; align-items: baseline; gap: 8px; }
.room h3 span, .video-slot h3 span { font-weight: 400; color: var(--muted); font-size: .9rem; }
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
  gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -16px; padding: 0 16px 6px;
  scrollbar-width: thin;
}
.strip.one { grid-auto-columns: 100%; }
.strip button {
  all: unset; cursor: zoom-in; scroll-snap-align: start;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 5;
}
.strip button:focus-visible { outline: 3px solid var(--oxford); outline-offset: 2px; }
.strip img { width: 100%; height: 100%; object-fit: cover; }

.video-slot { margin-top: 26px; }
.video-slot video { width: 100%; border-radius: var(--r-md); background: #000; max-height: 80vh; }
.video-placeholder {
  border: 2px dashed var(--note-line); background: var(--note-bg); border-radius: var(--r-md);
  padding: 28px 18px; text-align: center; color: #8A4B00; font-size: .95rem;
}

dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh;
  width: 100vw; height: 100vh;
}
dialog.lightbox::backdrop { background: rgba(0,22,52,.94); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox button {
  position: absolute; border: 0; background: rgba(255,255,255,.14); color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer;
}
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #fff; font-size: .95rem; }

/* ---------- Ficha ---------- */
.ficha { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.ficha div { background: var(--surface); padding: 14px; }
.ficha dt { font-size: .82rem; color: var(--muted); }
.ficha dd { margin: 2px 0 0; font-weight: 600; font-size: 1.08rem; color: var(--oxford); }
.ficha .full { grid-column: 1 / -1; }

/* ---------- Conta ---------- */
.conta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); overflow: hidden; }
.conta-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.conta-linha span { color: var(--muted); }
.conta-linha strong { font-size: 1.1rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.conta-destaque { background: var(--oxford-50); padding: 18px 16px; }
.conta-destaque .rotulo { color: var(--hunter); font-weight: 500; font-size: .9rem; }
.conta-destaque .valor { font-size: 2.2rem; font-weight: 600; color: var(--oxford); letter-spacing: -.02em; line-height: 1.1; margin: 4px 0; font-variant-numeric: tabular-nums; }

/* ---------- Veículo ---------- */
.veiculo { display: grid; gap: 18px; }
.veiculo ol { margin: 0 0 18px; padding-left: 1.2em; }
.veiculo li { margin-bottom: .5em; }

/* ---------- FAQ ---------- */
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 10px; }
summary { cursor: pointer; list-style: none; padding: 16px 44px 16px 16px; font-weight: 500; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--hunter); }
details[open] summary::after { content: "–"; }
details .resp { padding: 0 16px 16px; color: #333B44; }

/* ---------- CTA final + rodapé ---------- */
.final { text-align: center; background: var(--oxford); color: #fff; border-top: 0; }
.final h2 { color: #fff; }
.final p { color: rgba(255,255,255,.8); }
footer { padding: 28px 0 110px; font-size: .85rem; color: var(--muted); }
footer p { margin-bottom: .6em; }
footer .logo-rodape { height: 18px; width: auto; margin-bottom: 14px; }
footer h3 { font-size: .9rem; color: var(--ink); margin: 18px 0 .4em; }

/* ---------- Barra fixa (celular) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(247,244,242,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 12px;
}
.sticky-cta .mini { font-size: .8rem; line-height: 1.25; color: var(--muted); flex: none; }
.sticky-cta .mini strong { display: block; color: var(--oxford); font-size: 1rem; font-weight: 600; }
.sticky-cta .btn-cta { flex: 1; min-height: 50px; padding: 0 14px; }

/* ---------- Formulário de captura ---------- */
dialog.form-dlg {
  border: 0; padding: 0; width: min(440px, calc(100vw - 24px)); max-height: calc(100svh - 24px);
  border-radius: var(--r-lg); background: var(--surface); color: var(--ink); box-shadow: var(--sh-3);
  overflow: auto;
}
dialog.form-dlg::backdrop { background: rgba(0,22,52,.6); backdrop-filter: blur(2px); }
.form-dlg form { padding: 24px 20px 20px; position: relative; }
.form-dlg h2 { font-size: 1.4rem; margin-bottom: .3em; padding-right: 36px; }
.form-dlg .intro { color: var(--muted); font-size: .98rem; }
.form-dlg .fechar {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: var(--r-md);
  border: 0; background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.form-dlg .fechar:hover { background: var(--surface-2); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: .92rem; font-weight: 500; }
.field input {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-field); border-radius: var(--r-md);
  background: var(--surface); font-size: 1rem;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder { color: #8C949F; }
.field input:focus { outline: none; border-color: var(--oxford); box-shadow: var(--focus); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.aceite { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; color: #333B44; margin: 4px 0 14px; cursor: pointer; }
.aceite input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--oxford); }
.form-erro { display: none; background: var(--danger-bg); color: var(--danger); border-radius: var(--r-sm); padding: 10px 12px; font-size: .9rem; margin-bottom: 12px; }
.form-erro.on { display: block; }
.form-nota { font-size: .8rem; color: var(--muted); margin: 12px 0 0; line-height: 1.45; }
.form-nota a { color: var(--oxford); }
.form-depois { display: none; font-size: .9rem; margin: 12px 0 0; text-align: center; }
.form-depois.on { display: block; }
.form-depois a { color: var(--hunter); font-weight: 500; }
/* honeypot: fora da tela, invisível para quem usa leitor de tela */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Página inicial (fase 2) ---------- */
.home-hero { padding: 40px 0 8px; }
.home-hero h1 { font-size: clamp(1.9rem, 6.5vw, 2.8rem); }
.cards { display: grid; gap: 18px; padding-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); text-decoration: none; display: block; }
.card img { aspect-ratio: 4 / 3; width: 100%; height: auto; object-fit: cover; object-position: center 60%; }
.card-body { padding: 16px; }
.card-body .price { font-size: 1.5rem; }
.card-body p { color: var(--muted); margin: .3em 0 .9em; }
.card-body .ver { font-weight: 600; color: var(--hunter); }

/* ---------- Aviso de cookies (LGPD) ---------- */
/* No celular fica acima da barra fixa do WhatsApp; "Recusar" e "Aceitar" têm o mesmo peso. */
.aviso-cookies {
  position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 30;
  margin: 0 auto; max-width: 620px;
  display: flex; flex-direction: column; gap: 12px; padding: 14px 16px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); font-size: .9rem; line-height: 1.45;
}
.aviso-cookies p { margin: 0; }
.aviso-cookies a { color: var(--oxford); text-decoration: underline; }
.aviso-cookies-botoes { display: flex; gap: 8px; }
.aviso-cookies-botao {
  flex: 1; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--r-sm); cursor: pointer;
  background: var(--oxford); color: #fff; font: inherit; font-weight: 600;
}
.aviso-cookies-botao:hover { background: var(--oxford-800); }
.aviso-cookies-botao:focus-visible { outline: none; box-shadow: var(--focus); }
.link-rodape { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  .aviso-cookies { bottom: 16px; flex-direction: row; align-items: center; gap: 16px; padding: 16px 20px; }
  .aviso-cookies p { flex: 1; }
  .aviso-cookies-botoes { flex: none; }
  body { font-size: 18px; }
  .topbar { padding: 20px 28px; }
  .topbar .logo img { height: 24px; }
  .topbar .btn-cta { display: inline-flex; min-height: 44px; font-size: .95rem; padding: 0 18px; }
  .hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; max-width: var(--max); margin: 0 auto; padding: 32px 28px 40px; }
  .hero picture img { max-height: none; border-radius: var(--r-lg); }
  .hero-content { padding: 0; }
  .badges { grid-template-columns: repeat(4, 1fr); }
  .strip, .strip.one { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; }
  .ficha { grid-template-columns: repeat(4, 1fr); }
  .ficha .full { grid-column: span 2; }
  .ficha .full.row { grid-column: 1 / -1; }
  .duas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
  .veiculo { grid-template-columns: 1fr 1fr; gap: 40px; }
  .sticky-cta { display: none; }
  footer { padding-bottom: 40px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .video-slot video { max-height: 70vh; }
  .form-dlg form { padding: 28px 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
