/* Perbam: folha de estilo única. Tokens em :root (ver CLAUDE.md, Identidade visual). */

@font-face {
  font-family: "Montserrat";
  src: url("/assets/fonts/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Cores */
  --azul: #3E4095;          /* Azul Perbam, cor exata do logo */
  --azul-escuro: #2A2C6E;
  --azul-noite: #1C1D4A;
  --azul-claro: #ECEDF7;
  --lavanda: #C7C9F0;       /* rótulos sobre fundo azul */
  --verde: #25D366;         /* Verde WhatsApp: só botões de cotação */
  --verde-escuro: #128C4B;
  --verde-texto: #0B2A17;
  --texto: #1E2128;
  --texto-suave: #4B515C;
  --fundo: #FFFFFF;
  --fundo-cinza: #F4F5F8;
  --borda: #E1E3EA;

  /* Tipografia */
  --fonte-titulo: "Montserrat", "Segoe UI", Roboto, Arial, sans-serif;
  --fonte: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tam-base: 1.125rem;
  --tam-pequeno: 1rem;
  --tam-h1: clamp(2.1rem, 5.6vw, 3.6rem);
  --tam-h2: clamp(1.65rem, 3.8vw, 2.5rem);
  --tam-h3: 1.2rem;

  /* Espaços e formas */
  --largura: 1180px;
  --gutter: 20px;
  --secao: clamp(56px, 9vw, 104px);
  --raio: 16px;
  --raio-p: 10px;
  --sombra: 0 1px 2px rgba(28, 29, 74, 0.04), 0 8px 24px rgba(28, 29, 74, 0.07);
  --sombra-forte: 0 18px 48px rgba(10, 12, 40, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--fonte); font-size: var(--tam-base); line-height: 1.65;
  color: var(--texto); background: var(--fundo); overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--fonte-titulo); color: var(--azul); line-height: 1.15; margin: 0 0 0.55em; font-weight: 800; letter-spacing: -0.015em; }
h1 { font-size: var(--tam-h1); }
h2 { font-size: var(--tam-h2); }
h3 { font-size: var(--tam-h3); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--azul); text-underline-offset: 3px; }
a:hover { color: var(--azul-escuro); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 4px; }

.pular { position: absolute; left: -9999px; top: 8px; background: var(--fundo); color: var(--azul); padding: 8px 14px; z-index: 100; }
.pular:focus { left: 8px; }
.container { width: 100%; max-width: var(--largura); margin: 0 auto; padding: 0 var(--gutter); }

/* Rótulo em maiúsculas acima dos títulos */
.rotulo {
  display: inline-block; font-family: var(--fonte-titulo); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--azul); margin-bottom: 14px;
}
.escuro .rotulo { color: var(--lavanda); }

/* Cabeçalho */
.topo { background: var(--azul-escuro); color: #fff; position: relative; z-index: 10; }
.topo .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.marca { display: inline-flex; background: #fff; border-radius: 10px; padding: 6px 10px; line-height: 0; }
.marca img { width: 128px; height: auto; }
.menu { display: flex; align-items: center; gap: 4px 26px; flex-wrap: wrap; }
.menu a {
  color: #fff; text-decoration: none; font-family: var(--fonte-titulo); font-weight: 600; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 8px 0; border-bottom: 2px solid transparent;
}
.menu a:hover, .menu a[aria-current="page"] { border-bottom-color: var(--lavanda); color: #fff; }
.menu .botao { display: none; }
@media (min-width: 900px) {
  .marca img { width: 150px; }
  .menu .botao { display: inline-flex; margin-left: 6px; }
}

/* Botões */
.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 0.86rem; line-height: 1.2;
  text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform 0.15s, background-color 0.15s;
}
.botao:hover { transform: translateY(-1px); }
.botao svg { width: 20px; height: 20px; flex: none; }
.botao-whats { background: var(--verde); color: var(--verde-texto); }
.botao-whats:hover { background: #1FBE5B; color: var(--verde-texto); }
.botao-secundario { background: transparent; color: var(--azul); border-color: var(--azul); }
.botao-secundario:hover { background: var(--azul-claro); color: var(--azul-escuro); }
.botao-claro { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.botao-claro:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.menu a.botao-whats, .menu a.botao-whats:hover { color: var(--verde-texto); border-bottom: 2px solid transparent; padding: 10px 20px; min-height: 44px; font-size: 0.8rem; }
.botoes { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 520px) { .botoes .botao { width: 100%; } }

/* Seções */
.secao { padding: var(--secao) 0; }
.secao-cinza { background: var(--fundo-cinza); }
.escuro { background: var(--azul-escuro); color: #E4E5F6; }
.escuro h1, .escuro h2, .escuro h3 { color: #fff; }
.escuro a:not(.botao) { color: #fff; }
.intro { max-width: 680px; color: var(--texto-suave); font-size: 1.15rem; }
.escuro .intro { color: #D5D7F2; }
.cabeca-secao { margin-bottom: 40px; }
.cabeca-secao.centro { text-align: center; }
.cabeca-secao.centro .intro { margin-left: auto; margin-right: auto; }

/* Topo da home e das páginas internas */
.hero {
  background: radial-gradient(1200px 600px at 85% 20%, rgba(62, 64, 149, 0.9), transparent 60%), var(--azul-escuro);
  color: #E4E5F6; padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
}
.hero .container { display: grid; gap: 40px; align-items: center; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .sub { font-size: 1.2rem; color: #D5D7F2; max-width: 560px; margin-bottom: 30px; }
.hero .foto img { border-radius: var(--raio); box-shadow: var(--sombra-forte); }
.hero .selos { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.98rem; color: #D5D7F2; }
.hero .selos li { display: flex; align-items: center; gap: 8px; }
.hero .selos svg { width: 20px; height: 20px; color: var(--lavanda); }
@media (min-width: 940px) { .hero .container { grid-template-columns: 1.05fr 0.95fr; } }

.hero-interna {
  background: radial-gradient(900px 400px at 90% 0%, rgba(62, 64, 149, 0.9), transparent 60%), var(--azul-escuro);
  color: #E4E5F6; padding: 18px 0 clamp(48px, 7vw, 80px);
}
.hero-interna h1 { color: #fff; max-width: 22ch; margin-top: 18px; }
.hero-interna .intro { color: #D5D7F2; margin-bottom: 26px; }

/* Migalhas */
.migalhas { font-size: 0.92rem; color: #C9CBEA; }
.migalhas ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.migalhas li + li::before { content: "/"; margin-right: 6px; opacity: 0.6; }
.migalhas a { color: #fff; }

/* Faixa de números (só dados confirmados) */
.numeros { background: var(--fundo); border-bottom: 1px solid var(--borda); }
.numeros ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.numeros li { padding: 26px 18px; border-right: 1px solid var(--borda); border-top: 1px solid var(--borda); }
.numeros li:nth-child(2n) { border-right: 0; }
.numeros strong { display: block; font-family: var(--fonte-titulo); font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; color: var(--azul); line-height: 1.1; }
.numeros span { color: var(--texto-suave); font-size: 0.98rem; }
@media (min-width: 860px) {
  .numeros ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .numeros li { border-top: 0; padding: 34px 28px; }
  .numeros li:nth-child(2n) { border-right: 1px solid var(--borda); }
  .numeros li:last-child { border-right: 0; }
}

/* Grades e cartões */
.grade { display: grid; gap: 22px; }
@media (min-width: 760px) {
  .grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grade-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grade-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1040px) { .grade-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.cartao { background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); padding: 28px; box-shadow: var(--sombra); display: flex; flex-direction: column; }
.cartao p { color: var(--texto-suave); }
.cartao > :last-child { margin-bottom: 0; }
.icone {
  width: 52px; height: 52px; border-radius: 14px; background: var(--azul-claro); color: var(--azul);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; flex: none;
}
.icone svg { width: 28px; height: 28px; }
.escuro .icone { background: rgba(255, 255, 255, 0.1); color: #fff; }

a.cartao-perfil { text-decoration: none; color: var(--texto); transition: border-color 0.15s, transform 0.15s; }
a.cartao-perfil:hover { border-color: var(--azul); transform: translateY(-3px); color: var(--texto); }
.cartao-perfil .acao {
  margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--fonte-titulo); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--verde-escuro);
}
.cartao-perfil .acao svg { width: 18px; height: 18px; }

/* Cartões dos modelos */
.modelo { padding: 0; overflow: hidden; }
.modelo .corpo { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.modelo h3 { font-size: 1.5rem; margin: 6px 0 2px; }
.modelo .capacidade { font-family: var(--fonte-titulo); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 14px; }
.dados { list-style: none; padding: 0; margin: 0 0 16px; }
.dados li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--borda); font-size: 1.02rem; }
.dados li span:first-child { color: var(--texto-suave); }
.dados li span:last-child { font-weight: 600; text-align: right; }
.aviso { font-size: var(--tam-pequeno); color: var(--texto-suave); }
.modelo .botao { margin-top: auto; }

/* Seletor de cor (sem JS: rádio + CSS). Botões em texto, sem as cores das bandejas no layout. */
.cores { border: 0; margin: 0; padding: 0; min-width: 0; }
.cor-input { position: absolute; opacity: 0; pointer-events: none; }
.cor-fotos .foto-verde, .cor-fotos .foto-violeta { display: none; }
.cor-input.cor-verde:checked ~ .cor-fotos .foto-verde,
.cor-input.cor-violeta:checked ~ .cor-fotos .foto-violeta { display: block; }
.cor-botoes { display: flex; gap: 8px; padding: 16px 26px 0; }
.cor-botoes label, .cor-botoes .cor-unica {
  cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--borda);
  font-family: var(--fonte-titulo); font-size: 0.72rem; font-weight: 700; color: var(--texto-suave); text-transform: uppercase; letter-spacing: 0.08em;
}
.cor-botoes .cor-unica { cursor: default; }
.cor-input.cor-verde:checked ~ .cor-botoes .cor-verde,
.cor-input.cor-violeta:checked ~ .cor-botoes .cor-violeta,
.cor-botoes .cor-unica { border-color: var(--azul); background: var(--azul); color: #fff; }
.cor-input.cor-verde:focus-visible ~ .cor-botoes .cor-verde,
.cor-input.cor-violeta:focus-visible ~ .cor-botoes .cor-violeta { outline: 3px solid var(--azul); outline-offset: 2px; }

/* Fotos */
.foto { display: block; }
.foto img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--fundo-cinza); }

/* Passos numerados */
.passos { list-style: none; padding: 0; margin: 0 0 36px; counter-reset: passo; }
.passos li { counter-increment: passo; position: relative; }
.passos li::before {
  content: counter(passo, decimal-leading-zero); display: block; font-family: var(--fonte-titulo); font-size: 2.6rem; font-weight: 800;
  color: var(--lavanda); line-height: 1; margin-bottom: 14px; opacity: 0.9;
}
.secao:not(.escuro) .passos li::before { color: var(--azul); opacity: 0.25; }
.passos h3 { margin-bottom: 6px; }

/* Processo de fabricação */
.processo { list-style: none; padding: 0; margin: 0; counter-reset: etapa; }
.processo li { counter-increment: etapa; }
.processo .etapa { font-family: var(--fonte-titulo); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--texto-suave); margin-bottom: 4px; }
.processo .etapa::before { content: "Etapa " counter(etapa, decimal-leading-zero); }

/* Duas colunas */
.duas-colunas { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .duas-colunas { grid-template-columns: 1fr 1fr; } }
.lista-check { list-style: none; padding: 0; margin: 0 0 24px; }
.lista-check li { display: flex; gap: 12px; padding: 8px 0; }
.lista-check svg { width: 24px; height: 24px; color: var(--azul); flex: none; margin-top: 3px; }

/* Endereço */
.endereco { font-style: normal; }
.endereco strong { color: var(--azul); font-family: var(--fonte-titulo); }
.local { background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio); padding: 30px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; box-shadow: var(--sombra); }
.local svg { width: 40px; height: 40px; color: var(--azul); }

/* Tabelas */
.tabela-rolagem { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--borda); border-radius: var(--raio); background: var(--fundo); box-shadow: var(--sombra); }
table { width: 100%; border-collapse: collapse; min-width: 480px; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--borda); }
thead th { background: var(--azul); color: #fff; font-family: var(--fonte-titulo); font-size: 0.95rem; font-weight: 700; }
tbody th { color: var(--texto-suave); font-weight: 600; width: 34%; }
tbody tr:nth-child(even) { background: #FAFAFC; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.fonte-tabela { font-size: 0.92rem; color: var(--texto-suave); margin-top: 12px; }

/* Perguntas frequentes (details/summary, sem JS) */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { background: var(--fundo); border: 1px solid var(--borda); border-radius: var(--raio-p); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 22px; position: relative;
  font-family: var(--fonte-titulo); font-weight: 700; font-size: 1.02rem; color: var(--azul);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--azul); border-bottom: 2.5px solid var(--azul); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details > div { padding: 0 22px 20px; color: var(--texto-suave); }
.faq details > div > :last-child { margin-bottom: 0; }

/* Formulário */
.form { display: grid; gap: 16px; }
.campo { display: grid; gap: 6px; }
.campo label { font-family: var(--fonte-titulo); font-weight: 700; font-size: 0.9rem; }
.campo input, .campo select {
  font: inherit; font-size: 1.06rem; color: var(--texto); background: var(--fundo);
  border: 1.5px solid #9AA0AE; border-radius: var(--raio-p); padding: 12px 14px; min-height: 52px; width: 100%;
}
.campo input:focus, .campo select:focus { border-color: var(--azul); outline: 2px solid var(--azul); outline-offset: 0; }
.dica { font-size: var(--tam-pequeno); color: var(--texto-suave); margin: 0; }
@media (min-width: 640px) { .form .duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } }

.destaque-whats { background: var(--fundo); border: 2px solid var(--verde-escuro); border-radius: var(--raio); padding: 30px; display: grid; gap: 12px; justify-items: start; box-shadow: var(--sombra); }
.destaque-whats .numero { font-family: var(--fonte-titulo); font-size: 1.6rem; font-weight: 800; color: var(--texto); margin: 0; }

/* Texto corrido */
.texto { max-width: 760px; }
.texto h2 { margin-top: 1.6em; font-size: 1.45rem; }
.texto ul { padding-left: 1.2em; }
.texto li { margin-bottom: 0.4em; }

/* Chamada final */
.chamada { text-align: center; }
.chamada .intro { margin: 0 auto 28px; }
.chamada .botoes { justify-content: center; }

/* Rodapé */
.rodape { background: var(--azul-noite); color: #D5D7F2; padding: 64px 0 104px; font-size: var(--tam-pequeno); }
.rodape a { color: #fff; }
.rodape .grade { gap: 32px; }
@media (min-width: 760px) { .rodape .grade { grid-template-columns: 1.4fr 1fr 1fr; } }
.rodape h2 { color: #fff; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 14px; }
.rodape p { margin-bottom: 0.5em; }
.rodape ul { list-style: none; padding: 0; margin: 0; }
.rodape li { margin-bottom: 8px; }
.rodape .marca { margin-bottom: 16px; }
.rodape .linha-final { border-top: 1px solid rgba(255, 255, 255, 0.15); margin-top: 40px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; color: #B7BAE3; }

/* Botão flutuante de WhatsApp, pulsando */
.whats-flutuante {
  position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 56px; height: 56px; border-radius: 50%;
  background: var(--verde); color: var(--verde-texto); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.whats-flutuante svg { width: 30px; height: 30px; }
.whats-flutuante:hover { background: #1FBE5B; color: var(--verde-texto); }
.whats-flutuante::before, .whats-flutuante::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--verde); z-index: -1; animation: pulso 2s ease-out infinite;
}
.whats-flutuante::after { animation-delay: 1s; }
@keyframes pulso { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.8); opacity: 0; } }

/* 404 */
.erro { text-align: center; padding: var(--secao) 0; }
.erro .intro { margin: 0 auto 24px; }
.erro .botoes { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .whats-flutuante::before, .whats-flutuante::after { animation: none; display: none; }
}

.link-centro { text-align: center; margin-top: 28px; }
.numero-m { font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 800; color: var(--texto); }
.hero-interna .rotulo-hero { display: block; margin-top: 26px; margin-bottom: 0; }
.hero-interna .rotulo-hero + h1 { margin-top: 10px; }
.cartao .numero { font-family: var(--fonte-titulo); font-weight: 800; }
/* Itens de grade podem encolher (tabelas rolam dentro da própria caixa, sem rolagem lateral na página) */
.grade > *, .duas-colunas > *, .hero .container > * { min-width: 0; }

/* Cartões sobre a faixa azul */
.escuro .cartao { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.escuro .cartao p { color: #D5D7F2; }
.escuro .processo .etapa { color: var(--lavanda); }

/* Botão dentro dos cartões dos modelos: uma linha só */
.modelo .botao { font-size: 0.76rem; letter-spacing: 0.04em; padding: 12px 14px; gap: 8px; }
.modelo .botao svg { width: 18px; height: 18px; }

/* Páginas dos modelos */
.alinhar-topo { align-items: start; }
.h3 { font-size: 1.35rem; }
.link-modelo { color: inherit; text-decoration: none; }
.link-modelo:hover { text-decoration: underline; }
.ver-detalhes {
  display: block; text-align: center; margin-top: 14px; font-family: var(--fonte-titulo);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.alinhar-topo .modelo { padding-bottom: 20px; }

/* Linha do tempo (A Perbam) */
.linha-tempo { list-style: none; margin: 0; padding: 0; position: relative; max-width: 860px; }
.linha-tempo::before { content: ""; position: absolute; left: 44px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, 0.2); }
.linha-tempo li { display: grid; grid-template-columns: 90px 1fr; gap: 20px; padding: 0 0 30px; position: relative; }
.linha-tempo li:last-child { padding-bottom: 0; }
.linha-tempo .ano {
  position: relative; z-index: 1; justify-self: start; font-family: var(--fonte-titulo); font-weight: 800; font-size: 1.05rem;
  color: var(--azul-escuro); background: #fff; border-radius: 999px; padding: 6px 14px; height: fit-content;
}
.linha-tempo h3 { margin: 4px 0 4px; }
.linha-tempo p { margin: 0; color: #D5D7F2; }
@media (min-width: 760px) { .linha-tempo li { grid-template-columns: 110px 1fr; } .linha-tempo::before { left: 48px; } }

/* Trabalhe conosco */
.aviso-lgpd { max-width: 680px; margin: 26px auto 0; font-size: 0.92rem; color: #B7BAE3; }
.chamada .intro a { color: #fff; font-weight: 700; }
