/* ============================================================
   TEMPLATE LP TRÍADE — performance + estilo shadcn/ui
   Tokens do shadcn v4 (base neutral) traduzidos para CSS puro.
   Sem framework, sem Tailwind, sem CDN.
   Personalizar por cliente: trocar as variáveis abaixo.
   ============================================================ */

@font-face {
  font-family: 'Montserrat';
  src: url('assets/montserrat-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: 'Montserrat';
  src: url('assets/montserrat-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+1E00-1E9F, U+1EF2-1EFF, U+20A0-20AB;
}

:root {
  /* --- cores (shadcn base neutral) --- */
  --background: #ffffff;
  --foreground: #0a0a0a;
  --muted-foreground: #737373;   /* texto de apoio */
  --border: #e5e5e5;             /* borda de 1px, discreta */
  --muted: #f7f7f7;              /* fundo das dobras alternadas */
  --primary: #0a4fa3;            /* azul institucional ATcllor */
  --primary-foreground: #ffffff;
  --accent: #f5f5f5;             /* fundo sutil de hover */
  --whats: #25d366;

  /* --- raio: discreto. Knob único; 0 deixa tudo reto --- */
  --radius: 4px;
  --radius-md: var(--radius);                 /* botões, inputs */
  --radius-xl: calc(var(--radius) + 2px);     /* cards */

  --max: 1200px;
  --pad: 96px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Montserrat', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* tipografia shadcn: peso alto + tracking negativo, sem caixa alta */
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
h1 { font-size: clamp(28px, 3.2vw, 40px); }   /* idêntico ao h2 */
h2 { font-size: clamp(28px, 3.2vw, 40px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; width: 100%; }
.center { text-align: center; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { text-wrap: balance; }
.section-head.center { max-width: 900px; }
.section-head p { color: var(--muted-foreground); margin-top: 12px; font-size: 17px; }

/* --- BOTÕES --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  padding: 0 34px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: #08417f; }
.btn-lg { height: 60px; padding: 0 44px; font-size: 18px; }
.btn-block { width: 100%; }
.btn-whats { background: var(--whats); color: #fff; }

/* Pulso dos CTAs principais: o botão cresce e volta lentamente.
   É transform, então não desloca nada em volta. */
.btn-lg { animation: pulso 3.4s ease-in-out infinite; }
@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.045); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-lg { animation: none; }
}

/* --- HERO — o banner aparece INTEIRO (sem corte) e dita a altura da dobra;
   o texto fica sobreposto na metade esquerda, sobre o fade. --- */
.hero {
  position: relative;
  background: var(--background);
}
.hero-media { display: block; }
.hero-media picture { display: block; }
.hero-media img { width: 100%; height: auto; display: block; }
.hero-texto {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 48px clamp(32px, 6vw, 96px);
  z-index: 1;
}
.hero-texto p { color: var(--muted-foreground); margin: 16px 0 32px; font-size: 18px; max-width: 520px; }

/* --- BLOCOS: cada seção ocupa uma dobra inteira, conteúdo centralizado --- */
.block {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: var(--pad) 0;
  background: var(--background);
}
.block > .container { width: 100%; }
/* alterna branco / cinza claro pra marcar a divisão entre as dobras */
.block-muted { background: var(--muted); }

/* --- DOBRA AZUL: alternância azul/branco entre as dobras.
   Texto vira branco e o CTA inverte (branco com texto azul). --- */
.dobra-azul { background: var(--primary); }
.sobre.dobra-azul { background: var(--primary); }
/* na hero o banner cobre a dobra; azul fica de fundo enquanto a foto carrega */
.hero.dobra-azul {
  position: relative;
  background: linear-gradient(115deg, #06336b 0%, var(--primary) 62%, #1163bf 100%);
}
/* fade azul escuro por cima do banner, assentando o texto branco à esquerda */
.hero.dobra-azul::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 24, 51, 0.88) 0%, rgba(3, 24, 51, 0.45) 40%, rgba(3, 24, 51, 0) 68%);
  pointer-events: none;
}
.dobra-azul h1, .dobra-azul h2, .dobra-azul h3 { color: #fff; }
.dobra-azul .section-head p,
.dobra-azul .hero-texto p,
.dobra-azul .produto p,
.dobra-azul .sobre-copy p { color: rgba(255, 255, 255, 0.78); }
.dobra-azul .btn { background: #fff; color: var(--primary); }
.dobra-azul .btn:hover { background: #e7eefb; }
/* cards de depoimento na dobra azul: tom sobre tom, texto branco */
.dobra-azul .card { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }
.dobra-azul .card .aspas { color: #fff; }
.dobra-azul .card p { color: rgba(255, 255, 255, 0.85); }
.dobra-azul .autor { border-top-color: rgba(255, 255, 255, 0.2); }
.dobra-azul .autor strong { color: #fff; }
.dobra-azul .autor span { color: rgba(255, 255, 255, 0.65); }
.dobra-azul .faq, .dobra-azul .faq details { border-color: rgba(255, 255, 255, 0.28); }
.dobra-azul .faq summary { color: #fff; }
.dobra-azul .faq summary::after { color: rgba(255, 255, 255, 0.7); }
.dobra-azul .faq p { color: rgba(255, 255, 255, 0.78); }

/* --- GRIDS --- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* --- GRADE DE PRODUTOS (11 itens à mostra, sem carrossel) --- */
.grid-produtos { grid-template-columns: repeat(4, 1fr); gap: 36px 24px; }

/* --- PRODUTO: sem caixa. Só imagem e, abaixo, o texto --- */
.produto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 14px;
}
.produto h3 { margin-bottom: 6px; }
.produto p { color: var(--muted-foreground); font-size: 14px; }

/* --- DEPOIMENTO: aspas, texto em itálico e autor com foto --- */
.depoimentos { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.card .aspas {
  display: block;
  font-size: 44px;
  line-height: 0.7;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}
.card p { font-style: italic; color: var(--muted-foreground); font-size: 15px; }
.autor { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.autor img { width: 46px; height: 46px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.autor strong { display: block; font-size: 14px; font-weight: 600; color: var(--foreground); }
.autor span { font-size: 13px; color: var(--muted-foreground); }

/* todas as dobras terminam com o mesmo CTA */
.grid + .center, .faq + .center { margin-top: 48px; }
.faq + .faq-cta { margin-top: 48px; }
.sobre-copy .btn { margin-top: 32px; align-self: flex-start; }

/* --- SOBRE: foto sangra 40% da tela à esquerda, texto nos 60% à direita --- */
.sobre {
  display: grid;
  grid-template-columns: 45% 55%;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--background);     /* dobra branca na alternância azul/branco */
}
/* a foto preenche a célula em vez de ditar a altura dela */
.sobre-media { position: relative; overflow: hidden; }
.sobre-media picture { position: absolute; inset: 0; display: block; }
.sobre-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.sobre-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--pad) clamp(32px, 6vw, 96px);
}
.sobre-copy p { color: var(--muted-foreground); margin-top: 16px; max-width: 560px; }

/* --- FAQ (shadcn accordion) --- */
.faq { max-width: 760px; border-top: 1px solid var(--border); }   /* alinhado à esquerda, como as demais dobras */
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 20px; color: var(--muted-foreground); }
.faq details[open] summary::after { content: '−'; }
.faq p { padding-bottom: 20px; color: var(--muted-foreground); font-size: 15px; }

/* --- POP-UP (shadcn dialog) --- */
.modal { position: fixed; inset: 0; z-index: 50; }
.modal[hidden] { display: none; }
.modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }
/* altura fixa: o painel não pula de tamanho ao trocar de pergunta */
.modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100% - 32px));
  height: 460px;
  margin: 8vh auto;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.modal-panel form { display: flex; flex-direction: column; flex: 1; }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  border: 0; background: none; font-size: 20px; line-height: 1;
  color: var(--muted-foreground); cursor: pointer;
}
.modal-panel h3 { font-size: 19px; margin-bottom: 4px; }
.modal-sub { color: var(--muted-foreground); font-size: 14px; margin-bottom: 24px; }
/* barrinha de progresso do formulário: mesma linguagem do indicador lateral */
.etapas { display: flex; gap: 6px; margin-bottom: 20px; }
.etapas[hidden] { display: none; }
.etapas span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  transition: width 0.2s ease, background 0.2s ease;
}
.etapas span.is-active { width: 30px; background: var(--primary); }

.modal-panel form[hidden] { display: none; }

/* etapa ocupa a altura toda do painel: o pop-up não muda de tamanho
   entre uma pergunta e outra */
.etapa, .final { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.etapa[hidden], .final[hidden] { display: none; }
.etapa h3, .final h3 { font-size: 19px; }
.etapa input + button { margin-top: 4px; }

/* opções do quiz: clicar seleciona e avança */
.opcoes { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.opcao {
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.opcao:hover { border-color: var(--primary); background: var(--accent); }

.voltar {
  margin-top: auto;
  align-self: flex-start;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--muted-foreground);
  cursor: pointer;
  padding: 4px;
}
.final { justify-content: center; text-align: center; }
.final .btn { margin-top: 12px; }
.modal-panel input {
  font-family: inherit;
  font-size: 14px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground);
  width: 100%;
}
.modal-panel input::placeholder { color: var(--muted-foreground); }
.modal-panel input:focus { outline: 2px solid var(--foreground); outline-offset: -1px; }

/* --- INDICADOR DE DOBRAS (lateral, vertical) --- */
.dots {
  position: fixed;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dots a {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d4d4d4;
  transition: height 0.2s ease, background 0.2s ease;
}
.dots a.is-active { height: 28px; background: var(--foreground); }
/* sobre o banner do hero os pontos invertem pra continuar visíveis */
.dots.on-dark a { background: rgba(255, 255, 255, 0.45); }
.dots.on-dark a.is-active { background: #fff; }

/* --- RODAPÉ --- */
.rodape { background: var(--muted); padding: 64px 0 0; }
.rodape p { font-size: 14px; color: var(--muted-foreground); margin-bottom: 6px; }
.rodape a { color: var(--muted-foreground); text-decoration: none; }
.rodape a:hover { color: var(--foreground); }
.logo-img { width: 92px; height: auto; margin-bottom: 16px; }
.rodape-label { font-size: 13px; font-weight: 600; color: var(--foreground) !important; margin-bottom: 14px; }
.copyright { border-top: 1px solid var(--border); margin-top: 56px; padding: 24px; text-align: center; font-size: 13px; color: var(--muted-foreground); }

/* Desktop de tela baixa (notebook): aperta pros 6 cards caberem na dobra */
@media (min-width: 861px) and (max-height: 1100px) {
  :root { --pad: 56px; }
  .section-head { margin-bottom: 26px; }
  /* Sobre ganhou CTA: aperta o respiro pra dobra seguir com uma tela */
  .sobre-copy { padding-top: 32px; padding-bottom: 32px; }
  .sobre-copy p { margin-top: 12px; }
  .grid + .center, .faq + .center { margin-top: 32px; }
  .faq + .faq-cta { margin-top: 32px; }
}

/* ============================================================
   MOBILE — cada dobra continua ocupando uma tela.
   Para isso o conteúdo é compactado, não a altura da dobra.
   ============================================================ */
@media (max-width: 860px) {
  :root { --pad: 48px; }

  h1 { font-size: 26px; }                     /* idêntico ao h2 no mobile */
  h2 { font-size: 26px; }
  .section-head { margin-bottom: 28px; }
  .section-head p { font-size: 15px; margin-top: 8px; }

  /* FORMATO MOBILE: composição fixa de 448px; telas maiores ganham margem,
     não uma página redesenhada. É o que padroniza o visual entre aparelhos. */
  .container, .hero-texto, .sobre-copy { max-width: 448px; margin-left: auto; margin-right: auto; }
  .hero-texto, .sobre-copy { box-sizing: border-box; width: 100%; }

  /* Rodapé no mobile: colunas empilhadas, não espremidas */
  .rodape .container { grid-template-columns: 1fr; gap: 28px; }
  .rodape .logo-img { width: 64px; }
  .rodape p { font-size: 14px; }
  .copyright { font-size: 12px; padding: 16px 24px; margin-top: 32px; }

  /* HERO no mobile: a arte inteira vira faixa no topo, texto abaixo no azul */
  .hero { display: flex; flex-direction: column; }
  .hero-media { order: -1; }
  .hero-texto { position: static; width: 100%; padding: 24px; }
  /* no empilhado o fade lateral sai: texto branco sobre o degradê azul */
  .hero.dobra-azul::after { display: none; }
  .hero-texto { padding: 24px; }
  .hero-texto p { font-size: 15px; margin: 10px 0 20px; }

  /* o hero deixa de ser escuro: os marcadores voltam à cor normal */
  .dots.on-dark a { background: #d4d4d4; }
  .dots.on-dark a.is-active { background: var(--foreground); }

  /* Produtos no mobile: grade de 2 colunas, todos à mostra */
  .grid { gap: 16px; }
  .grid-produtos { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .produto img { margin-bottom: 10px; }
  .produto h3 { font-size: 14px; }
  .produto p { font-size: 12px; line-height: 1.4; }
  .grid + .center, .faq + .center { margin-top: 24px; }
  .faq + .faq-cta { margin-top: 24px; }
  .sobre-copy .btn { margin-top: 24px; }

  /* Prova social: depoimentos deslizam, um por vez */
  .depoimentos {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .depoimentos::-webkit-scrollbar { display: none; }
  .depoimentos .card { flex: 0 0 86%; scroll-snap-align: start; }

  /* Sobre: foto vira faixa no topo, a dobra segue com uma tela */
  .sobre { grid-template-columns: 1fr; grid-template-rows: 28svh 1fr; align-content: stretch; }
  .sobre-media img { height: 100%; }
  .sobre-copy { padding: 24px; }
  .sobre-copy p { font-size: 14px; margin-top: 10px; }
  .sobre-copy .btn { margin-top: 18px; }

  /* FAQ enxuto */
  .faq summary { padding: 16px 0; font-size: 15px; }
  .faq p { padding-bottom: 16px; font-size: 14px; }

  /* no mobile o indicador vai pro topo do visor, na horizontal:
     some da coluna de leitura em vez de disputar espaço com o texto */
  .dots {
    left: 50%;
    right: auto;
    top: 12px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }
  .dots a { width: 6px; height: 6px; }
  .dots a.is-active { width: 20px; height: 6px; }

  /* input em 16px evita o zoom automático do iOS ao focar */
  .modal-panel { margin: 6vh auto; max-height: 88vh; overflow-y: auto; }
  .modal-panel input { font-size: 16px; height: 44px; }
}

/* Tablet: largura já comporta 3 colunas, então os 6 cards viram 2 fileiras */
@media (min-width: 600px) and (max-width: 860px) {
  /* FORMATO TABLET: composição fixa de 720px */
  .container, .hero-texto, .sobre-copy { max-width: 720px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-produtos { grid-template-columns: repeat(3, 1fr); }
  .depoimentos { grid-template-columns: repeat(3, 1fr); }
  /* tablet empilha como o celular: faixa de foto + texto preenchendo o resto.
     Colunas de altura cheia estreitavam demais a foto (corte de 59%). */
  .sobre { grid-template-columns: 1fr; grid-template-rows: 32svh 1fr; align-content: stretch; }
  .sobre-media img { height: 100%; }
}

/* Celular de tela curta: aperta mais pros 6 cards caberem na dobra */
@media (max-width: 860px) and (max-height: 720px) {
  :root { --pad: 28px; }
  h2 { font-size: 23px; }
  .section-head { margin-bottom: 16px; }
  .section-head p { font-size: 14px; }
  .grid { gap: 10px; }
  /* card de depoimento é fixo: quem cede é o respiro em volta */
  .prova .section-head { margin-bottom: 12px; }
  .prova .section-head p { margin-top: 4px; font-size: 13px; }
  .grid + .center, .faq + .center { margin-top: 12px; }
  .faq + .faq-cta { margin-top: 12px; }
  /* Sobre: foto e texto mais enxutos */
  .sobre { grid-template-rows: 22svh auto; }
  .sobre-copy { padding: 16px 20px; }
  .sobre-copy p { font-size: 13px; margin-top: 8px; }
  .sobre-copy .btn { margin-top: 12px; }
  .produto h3 { font-size: 13px; }
  .produto p { font-size: 11px; }
  .grid + .center, .faq + .center { margin-top: 16px; }
  .sobre-copy .btn { margin-top: 18px; }
  .btn-lg { height: 50px; padding: 0 30px; font-size: 16px; }
}
