/* ============================================================
   Vistoria Cautelar PMAX360 — vistoriacautelarbh.com.br
   Estilos da landing page (mobile first).
   Tokens e fontes vêm do design system PMAX (Formula Condensed + Archivo Expanded).
   ============================================================ */

/* ---------- Fontes (subset latin, woff2) ---------- */
@font-face { font-family: "Formula Condensed"; src: url("../fonts/formula-condensed-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Formula Condensed"; src: url("../fonts/formula-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Formula Condensed"; src: url("../fonts/formula-condensed-900.woff2") format("woff2"); font-weight: 800 900; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("../fonts/archivo-expanded-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #243139;
  --ink-700: #2E3D47;
  --ink-600: #3A4A55;
  --ink-400: #6B7A85;
  --ink-200: #A9B6BF;
  --ink-900: #1B252B;
  --paper: #FFFFFF;
  --surface: #DCE4E7;
  --surface-2: #EEF2F4;
  --line: #C9D3D8;
  --fg-2: #4B5862;
  --fg-3: #71808A;
  --blue: #5B6BFF;
  --blue-600: #4D5BFA;
  --green: #5BB04C;
  --yellow: #FDD300;
  --perf-gradient: linear-gradient(90deg, #E8412E 0%, #F3911A 28%, #FDD300 52%, #B9C628 76%, #5BB04C 100%);

  --font-display: "Formula Condensed", "Arial Narrow", sans-serif;
  --font-ui: "Archivo Expanded", Arial, system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;

  --gutter: 20px;
  --section-y: 56px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; --section-y: 80px; --header-h: 68px; }
}
@media (min-width: 1024px) {
  :root { --section-y: 96px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--font-ui);
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-600); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.container { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tipografia ---------- */
.eyebrow { font: 700 12px/1.4 var(--font-ui); letter-spacing: .18em; text-transform: uppercase; color: var(--fg-3); }
.display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .96;
  letter-spacing: .04em;
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.display--xl { font-weight: 900; font-size: clamp(44px, 12vw, 70px); line-height: .92; }
.display--lg { font-size: clamp(38px, 9.5vw, 76px); line-height: .94; }
.display--md { font-size: clamp(32px, 8vw, 56px); line-height: .98; }
.lead { font-size: 17px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.muted { color: var(--fg-2); text-wrap: pretty; }
.callout {
  font: 700 clamp(21px, 5.6vw, 30px)/1.1 var(--font-display);
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 18px 20px;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-md);
  text-wrap: pretty;
}
@media (min-width: 768px) {
  .lead { font-size: 18px; }
  .callout { padding: 20px 24px; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 13px/1.25 var(--font-ui);
  letter-spacing: .06em;
  text-transform: uppercase;
  text-align: center;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-sm);
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, filter .15s ease, box-shadow .2s ease, background-color .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn--sm { font-size: 11px; padding: 10px 15px; }
.btn--lg { font-size: 14px; padding: 17px 28px; }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { color: #fff; box-shadow: 0 0 0 1px rgba(91,107,255,.5), 0 8px 30px rgba(91,107,255,.35); }
.btn--ink { background: var(--ink); color: var(--surface); }
.btn--ink:hover { color: var(--surface); filter: brightness(1.14); }
.btn--ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost-dark:hover { color: var(--ink); background: var(--surface); }
@media (max-width: 599px) {
  /* No celular os CTAs principais ocupam a largura toda: mais fácil de tocar */
  .btn--block-mobile { display: flex; width: 100%; }
}
@media (min-width: 768px) {
  .btn--lg { font-size: 15px; padding: 18px 32px; }
}

/* ---------- Cabeçalho ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(36,49,57,.94);
  border-bottom: 1px solid var(--ink-600);
}
@supports (backdrop-filter: blur(12px)) {
  .header { background: rgba(36,49,57,.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
}
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo img { width: 132px; height: auto; }
.header__nav { display: none; gap: 28px; font: 600 12px/1 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; }
.header__nav a { color: var(--surface); }
.header__nav a:hover { color: #fff; }
@media (min-width: 900px) {
  .header__logo img { width: 168px; }
  .header__nav { display: flex; }
}

/* ---------- Seções escuras com fundo em gradiente ---------- */
.bg-gradient {
  background: var(--ink) url("../img/fundo-gradiente-960.webp") center/cover no-repeat;
  color: var(--surface);
}
@media (min-width: 961px) {
  .bg-gradient { background-image: url("../img/fundo-gradiente.webp"); }
}

/* ---------- Grade de duas colunas (empilha no celular) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; }
  .split--top { align-items: start; }
}
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.stack--sm { gap: 16px; }

/* ---------- Mídia com recorte (substitui o posicionamento absoluto do original) ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 01 Hero ---------- */
.hero .container { padding-top: 48px; padding-bottom: 56px; }
.hero h1 { color: #fff; }
.hero__lead { font-size: 17px; line-height: 1.6; color: var(--surface); max-width: 560px; text-wrap: pretty; }
.hero__sub { color: var(--ink-200); max-width: 560px; text-wrap: pretty; }
.hero .eyebrow { color: var(--ink-200); }
.hero__proof {
  display: flex; flex-wrap: wrap; gap: 8px 28px;
  font: 600 11px/1.5 var(--font-ui); letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-200);
  border-top: 1px solid var(--ink-600);
  padding-top: 18px;
}
.hero__media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--ink-600);
  box-shadow: 0 20px 50px rgba(0,0,0,.45);
}
.hero__media img { object-position: center 45%; }
@media (min-width: 900px) {
  .hero .container { padding-top: 96px; padding-bottom: 80px; }
  .hero .stack { gap: 28px; }
  .hero__lead { font-size: 18px; }
  .hero__proof { font-size: 12px; padding-top: 20px; }
  .hero__media { aspect-ratio: 4 / 5; max-height: 640px; }
}

/* ---------- 02 Impacto ---------- */
.impacto { background: var(--surface); }
.impacto__media {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(36,49,57,.16);
}
.impacto__media img { object-position: center 25%; }
.impacto__list { display: flex; flex-direction: column; gap: 4px; font: 500 16px/1.5 var(--font-ui); }
.impacto__text { color: var(--ink-400); text-wrap: pretty; }
@media (min-width: 900px) {
  .impacto__media { aspect-ratio: 525 / 668; }
  .impacto__media img { object-position: center top; }
  .impacto__list { font-size: 17px; }
}

/* ---------- 03 O que verificamos ---------- */
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 36px; padding: 0; list-style: none; }
.check {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 16px 20px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .15s cubic-bezier(.2,.7,.3,1), border-color .15s;
}
.check:hover { transform: translateY(-2px); border-color: var(--ink); }
.check__num { font: 900 40px/1 var(--font-display); letter-spacing: .02em; color: var(--blue); }
.check__title { font: 700 19px/1 var(--font-display); letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; }
.checks + .cta-row { margin-top: 28px; }
@media (min-width: 768px) {
  .checks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
  .check { padding: 24px 20px 28px; gap: 14px; }
  .check__num { font-size: 48px; }
  .check__title { font-size: 22px; letter-spacing: .06em; }
  .checks + .cta-row { margin-top: 32px; }
}

/* ---------- 04 Valor ---------- */
.valor { background: var(--ink); color: var(--surface); }
.valor h2 { color: #fff; font-weight: 900; font-size: clamp(40px, 10.5vw, 84px); line-height: .92; }
.valor h2 span { color: var(--blue); }
.valor__intro { font: 500 17px/1.6 var(--font-ui); }
.valor__text { color: var(--ink-200); text-wrap: pretty; }
.valor .callout { color: var(--surface); background: var(--ink-700); border: 1px solid var(--ink-600); }

/* ---------- 05 Como funciona ---------- */
.steps-head .display--lg + p { font: 700 clamp(21px, 5.6vw, 32px)/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.perf-bar { height: 6px; border-radius: 999px; background: var(--perf-gradient); }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 1.5px solid var(--ink); padding-top: 18px; }
.step__num { font: 900 52px/.9 var(--font-display); letter-spacing: .02em; }
.step__title { font: 700 22px/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.step p { font-size: 14px; color: var(--fg-2); text-wrap: pretty; }
.como .stack { gap: 36px; }
@media (min-width: 600px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .step__num { font-size: 64px; }
  .como .stack { gap: 48px; }
}

/* ---------- 06 Autoridade ---------- */
.autoridade { background: var(--surface); }
.autoridade__media { aspect-ratio: 16 / 9; border: 1px solid var(--line); }
.autoridade__media img { object-position: center 35%; }
.stats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.stat {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  min-width: 0;
}
.stat--hero {
  background: var(--ink) url("../img/fundo-gradiente-960.webp") center/cover no-repeat;
  color: var(--surface);
  padding: 28px 24px 24px;
  gap: 20px;
  box-shadow: 0 18px 40px rgba(36,49,57,.22);
}
.stat--hero p { font-size: 14px; line-height: 1.5; text-wrap: pretty; }
.stat__years { display: flex; align-items: flex-end; gap: 14px; }
.stat__years-num { flex: none; font: 900 clamp(84px, 24vw, 168px)/.78 var(--font-display); letter-spacing: -.01em; color: #fff; }
.stat__years-label { display: flex; flex-direction: column; gap: 8px; padding-bottom: 6px; min-width: 0; }
.stat__years-label strong { font: 800 clamp(28px, 8vw, 48px)/.9 var(--font-display); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.stat__years-label span { font: 600 11px/1.3 var(--font-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-200); }
.stat__bar { height: 8px; border-radius: 999px; background: var(--perf-gradient); }
.stat__num { font: 900 clamp(48px, 12vw, 64px)/.9 var(--font-display); letter-spacing: .02em; }
.stat__num small { font-size: .5em; letter-spacing: .04em; }
.stat__label { font: 700 14px/1.15 var(--font-display); letter-spacing: .1em; text-transform: uppercase; }
.stat__figure { display: flex; flex-direction: column; gap: 6px; }
/* 200 pontos = 20 x 10, desenhados em CSS (no original eram 200 elementos gerados por JS) */
.stat__dots {
  aspect-ratio: 2 / 1;
  background-image: radial-gradient(circle, var(--blue) 0 42%, transparent 46%);
  background-size: 5% 10%;
  max-width: 280px;
}
@media (min-width: 480px) { .stat__dots { max-width: none; } }
.stat__gauge { width: 100%; max-width: 200px; }
.stat--wide { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
.stat__bars { flex: 1; min-width: 180px; display: flex; align-items: flex-end; gap: 3px; height: 56px; }
.stat__bars span { flex: 1; background: var(--ink); border-radius: 2px; }
.autoridade__closing { font: 700 clamp(20px, 5.4vw, 26px)/1.1 var(--font-display); letter-spacing: .06em; text-transform: uppercase; text-wrap: pretty; }
@media (min-width: 480px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .stat--hero, .stat--wide { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .stat { padding: 24px; }
  .stat--hero { padding: 32px 32px 28px; }
  .stat__years { gap: 16px; }
  .stat__years-label span { font-size: 12px; }
}
@media (min-width: 961px) {
  .stat--hero { background-image: url("../img/fundo-gradiente.webp"); }
}

/* ---------- 07 Prova social ---------- */
.depoimentos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.depoimento {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 18px;
}
.depoimento__stars { font-size: 18px; letter-spacing: 3px; color: var(--yellow); }
.depoimento blockquote { font-size: 16px; line-height: 1.6; flex: 1; text-wrap: pretty; }
.depoimento figcaption { font: 700 13px/1.2 var(--font-ui); border-top: 1px solid var(--line); padding-top: 18px; }
@media (min-width: 768px) {
  .depoimentos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .depoimento { padding: 32px 28px; gap: 20px; }
}
.prova .stack { gap: 36px; }
@media (min-width: 768px) { .prova .stack { gap: 48px; } }

/* ---------- 09 FAQ (details/summary: funciona sem JavaScript) ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.faq-head { display: flex; flex-direction: column; gap: 16px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font: 600 15px/1.4 var(--font-ui);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none; width: 24px; text-align: center;
  font: 300 28px/1 var(--font-display);
  color: var(--blue);
}
.faq details[open] summary::after { content: "\2013"; }
.faq__answer { padding: 0 0 22px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.faq__answer p { color: var(--fg-2); max-width: 620px; text-wrap: pretty; }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 28px); }
  .faq summary { padding: 22px 0; }
}

/* ---------- 10 CTA final ---------- */
.cta-final .container { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.cta-final h2 { color: #fff; font-weight: 900; font-size: clamp(42px, 11vw, 108px); line-height: .92; max-width: 1000px; }
.cta-final__text { font-size: 16px; line-height: 1.6; max-width: 620px; text-wrap: pretty; }
.cta-final__proof { font: 600 11px/1.7 var(--font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-200); }
@media (min-width: 768px) {
  .cta-final .container { padding-top: 120px; padding-bottom: 120px; gap: 28px; }
  .cta-final__text { font-size: 17px; }
  .cta-final__proof { font-size: 12px; }
}

/* ---------- Rodapé ---------- */
.footer { background: var(--ink-900); color: var(--ink-200); }
.footer .container {
  padding-top: 40px;
  padding-bottom: 104px; /* espaço para o botão flutuante do WhatsApp não cobrir o texto */
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.footer__brand { display: flex; align-items: center; gap: 20px; }
.footer__brand img { width: 130px; height: auto; }
.footer__brand span { border-left: 1px solid var(--ink-600); padding-left: 20px; font: 700 14px/1.2 var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--surface); }
.footer small { font-size: 12px; color: var(--ink-400); }
@media (min-width: 768px) {
  .footer .container { padding-top: 48px; padding-bottom: 48px; }
  .footer__brand img { width: 150px; }
}

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 58px; height: 58px;
  background: var(--green);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(36,49,57,.28);
  font: 700 12px/1 var(--font-ui);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .15s cubic-bezier(.2,.7,.3,1), box-shadow .15s;
}
.wa-float:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(36,49,57,.34); }
.wa-float:active { transform: scale(.98); }
.wa-float svg { width: 28px; height: 28px; flex: none; }
.wa-float span { display: none; }
@media (min-width: 768px) {
  .wa-float { right: 24px; bottom: 24px; width: auto; height: auto; padding: 14px 20px 14px 16px; }
  .wa-float svg { width: 24px; height: 24px; }
  .wa-float span { display: inline; }
}
