:root {
  /* Base profunda (ameixa) — substitui o navy frio */
  --navy: #241a2e;
  --navy-light: #3a2b47;
  /* Acento rosa — substitui o teal como cor de acao */
  --teal: #c05f78;
  --teal-dark: #a54d64;
  --rose-deep: #8f3f54;
  --rose-tint: #fbf1f4;
  /* Neutros da familia ameixa — substituem os cinzas azulados do navy antigo */
  --plum-200: #c9c1d4;   /* texto secundario sobre fundo escuro */
  --plum-50:  #f4f0f5;   /* fundo neutro quente, no lugar do cinza-azulado */
  /* Atencao/alerta: dourado, que casa com ameixa (nao o laranja antigo) */
  --ambar: #b8873f;
  --ambar-bg: #fbf4e9;

  --bg: #faf8f6;
  --card-bg: #ffffff;
  --text: #2a2433;
  --text-muted: #6b6478;
  --border: #e8e2e8;

  /* Cores semanticas de risco — NAO alterar sem alterar tambem
     COR_RISCO em relatorio.py, senao site e PDF ficam dessincronizados. */
  --baixo: #2a9d8f;
  --medio: #d9a441;
  --alto: #c8703f;
  --critico: #b23a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.top-bar {
  background: var(--navy);
  color: white;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-title { font-size: 1.3rem; font-weight: 600; margin: 0; letter-spacing: 0.02em; }
.top-bar .brand-mark { color: var(--teal); font-weight: 700; }

.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;
}
.brand-lockup {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.brand-icon {
  width: 54px; height: 54px; flex-shrink: 0; object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: 'Lora', Georgia, serif; font-weight: 700;
  font-size: 1.6rem; color: white; letter-spacing: 0.01em;
}
.brand-tagline {
  font-size: 0.76rem; color: var(--plum-200); letter-spacing: 0.07em;
  text-transform: uppercase; margin-top: 2px;
}

@media (max-width: 560px) {
  .top-bar { padding: 12px 18px; gap: 10px; flex-wrap: wrap; }
  .brand-icon { width: 40px; height: 40px; }
  .brand-name { font-size: 1.2rem; }
  .brand-tagline { font-size: 0.6rem; letter-spacing: 0.04em; }
  .fiscal-link { font-size: 0.68rem; padding: 6px 12px; }
}

.fiscal-link {
  background: transparent; color: white; border: 1.5px solid rgba(255,255,255,0.5);
  padding: 8px 16px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  text-decoration: none; white-space: nowrap; transition: all 0.15s;
}
.fiscal-link:hover { background: rgba(255,255,255,0.12); border-color: white; }

.container { max-width: 780px; margin: 0 auto; padding: 40px 24px; }

.hero { text-align: center; margin-bottom: 32px; }
.hero h2 { font-size: 1.9rem; margin-bottom: 12px; }
.hero p { color: var(--text-muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

/* ---------- Home institucional ---------- */
.container-wide { max-width: 1080px; }

/* Faixas de largura total, alternando fundos */
.band { width: 100%; padding: 64px 24px; }
.band-inner { max-width: 1080px; margin: 0 auto; }
.band-cream { background: var(--bg); }
.band-white { background: #ffffff; }
.band-rose  { background: var(--rose-tint); }
.band-plum  { background: var(--navy); color: #ffffff; }
.band-plum h2, .band-plum h3 { color: #ffffff; }
.band-plum p { color: var(--plum-200); }
.band-gradient {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 55%, #55305f 100%);
  color: #ffffff;
}
.band-tight { padding: 44px 24px; }
.band-inner-estreito { max-width: 780px; }

/* Faixa de acesso do funcionario */
.teste-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.teste-inner h2 { color: #ffffff; margin: 0 0 6px; font-size: 1.45rem; }
.teste-inner p { color: var(--plum-200); margin: 0; font-size: 0.98rem; }
.btn-grande { font-size: 1.08rem; padding: 17px 40px; white-space: nowrap; }

@media (max-width: 720px) {
  .teste-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-grande { width: 100%; }
}

.band-title {
  font-family: 'Lora', Georgia, serif; font-size: 1.9rem; color: var(--navy);
  margin: 0 0 10px; font-weight: 700; letter-spacing: -0.01em;
}
.band-plum .band-title, .band-gradient .band-title { color: #ffffff; }
.band-lead { color: var(--text-muted); font-size: 1.05rem; margin: 0 0 32px; max-width: 640px; }
.band-plum .band-lead, .band-gradient .band-lead { color: var(--plum-200); }

/* Estatisticas */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center;
}
.stat-number {
  font-family: 'Lora', Georgia, serif; font-size: 3.1rem; font-weight: 700;
  color: #ffffff; line-height: 1; display: block; letter-spacing: -0.02em;
}
.stat-number .suffix { font-size: 2rem; }
.stat-label { color: var(--plum-200); font-size: 0.94rem; margin-top: 10px; display: block; line-height: 1.45; }

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border); padding: 4px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; color: var(--navy); font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--teal-dark); line-height: 1;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--teal-dark); }
.faq-item .faq-answer {
  padding: 0 40px 20px 0; color: var(--text-muted); line-height: 1.65; margin: 0;
  animation: faq-open 0.25s ease;
}
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Movimento: revelacao ao rolar.
   O estado escondido so e aplicado quando o JS confirma que esta rodando
   (classe .js-anim na raiz). Sem JS, o conteudo aparece normalmente --
   nunca escondemos conteudo que dependa de script para reaparecer. */
.js-anim .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js-anim .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .faq-item .faq-answer { animation: none; }
  .grid-item, .grid-icon { transition: none; }
}

@media (max-width: 720px) {
  .band { padding: 44px 20px; }
  .band-title { font-size: 1.5rem; }
  .stats-row { grid-template-columns: 1fr; gap: 28px; }
  .stat-number { font-size: 2.6rem; }
}


.eyebrow-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px; margin-bottom: 28px;
}
.eyebrow {
  color: var(--teal-dark); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.badge-pill {
  background: var(--navy); color: white; padding: 8px 18px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
}

.hero-split {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  align-items: center; margin-bottom: 32px; position: relative; overflow: hidden;
}
.hero-blob {
  position: absolute; top: -70px; left: -90px; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(192,95,120,0.20) 0%, rgba(192,95,120,0) 70%);
  border-radius: 50%; z-index: 0; pointer-events: none;
}
.hero-split > *:not(.hero-blob) { position: relative; z-index: 1; }
.hero-headline {
  font-family: 'Lora', Georgia, serif; font-weight: 700;
  font-size: 2.5rem; line-height: 1.18; color: var(--navy); margin: 0 0 18px;
}
.hero-headline .accent { color: var(--rose-deep); }
.hero-split p { color: var(--text); font-size: 1.02rem; line-height: 1.6; }
.hero-photo {
  width: 100%; height: 320px; object-fit: cover; border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 36, 56, 0.14);
}

.grid-4 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px;
}
.grid-item {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.grid-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(36, 26, 46, 0.12);
  border-color: rgba(192, 95, 120, 0.35);
}
.grid-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(192,95,120,0.16), rgba(85,48,95,0.12));
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px; transition: transform 0.22s ease;
}
.grid-item:hover .grid-icon { transform: scale(1.08); }
.grid-icon svg { width: 22px; height: 22px; }
.grid-item h3 { margin: 0 0 6px; font-size: 1rem; color: var(--navy); }
.grid-item p { margin: 0; color: var(--text); font-size: 0.92rem; line-height: 1.5; }

.note-box {
  background: var(--plum-50); border-radius: 10px; padding: 20px 24px; margin-bottom: 32px;
}
.note-box strong { display: block; color: var(--navy); margin-bottom: 6px; font-size: 1.02rem; }
.note-box span { color: var(--text-muted); font-size: 0.94rem; }

.quem-somos { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.quem-somos img {
  width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%;
  background: white; object-fit: contain; padding: 8px;
  box-shadow: 0 2px 6px rgba(15,36,56,0.12);
}
.quem-somos p { margin: 0; color: var(--text); font-size: 0.98rem; line-height: 1.6; }

.team-card {
  background: #ffffff; border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; margin-bottom: 0;
  box-shadow: 0 4px 18px rgba(36, 26, 46, 0.06);
}
.team-card > .eyebrow { display: block; margin-bottom: 20px; }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.team-member { display: flex; gap: 14px; align-items: flex-start; }
.team-photo {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover;
  flex-shrink: 0; border: 2px solid white; box-shadow: 0 2px 6px rgba(15,36,56,0.15);
}
.team-member h3 { font-family: 'Lora', Georgia, serif; margin: 0 0 2px; font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.team-member .cargo { color: var(--teal-dark); font-style: italic; font-size: 0.88rem; display: block; margin-bottom: 10px; }
.credential-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.credential-pills span {
  background: white; border: 1px solid var(--border); color: var(--text);
  font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.team-member details { font-size: 0.8rem; }
.team-member summary {
  color: var(--teal-dark); cursor: pointer; font-weight: 600; font-size: 0.78rem;
  list-style: none;
}
.team-member summary::-webkit-details-marker { display: none; }
.team-member summary::after { content: " ›"; }
.team-member details[open] summary::after { content: " ‹"; }
.team-member details p { margin: 8px 0 0; color: var(--text-muted); line-height: 1.5; font-size: 0.8rem; }

.cta-bar {
  background: var(--navy); border-radius: 14px; padding: 24px 28px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 18px; margin-bottom: 8px;
}
/* Dentro de uma faixa ja escura, o CTA nao precisa da propria caixa */
.band-gradient .cta-bar, .band-plum .cta-bar {
  background: transparent; padding: 0; margin-bottom: 0;
}
.cta-bar-left { display: flex; align-items: center; gap: 16px; }
.cta-bar-left img {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: 50%;
  background: white; object-fit: contain; padding: 7px;
}
.cta-bar-left h2 { color: white; margin: 0 0 4px; font-size: 1.1rem; }
.cta-bar-left p { color: var(--plum-200); margin: 0; font-size: 0.88rem; }
.whatsapp-btn {
  background: #25D366; color: var(--navy); text-decoration: none;
  padding: 12px 22px; border-radius: 10px; display: flex; align-items: center; gap: 10px;
  font-weight: 700; transition: background 0.15s;
}
.whatsapp-btn:hover { background: #1fb956; }
.whatsapp-btn .wa-sub { color: var(--navy); }
.whatsapp-btn .wa-icon { width: 26px; height: 26px; flex-shrink: 0; }
.whatsapp-btn .wa-text { text-align: left; }
.whatsapp-btn .wa-title { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; }
.whatsapp-btn .wa-sub { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.9; }

@media (max-width: 720px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.9rem; }
  .hero-photo { height: 220px; }
  .grid-4 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-bar { flex-direction: column; align-items: stretch; text-align: center; }
  .cta-bar-left { flex-direction: column; text-align: center; }
  .whatsapp-btn { justify-content: center; }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 36, 56, 0.06);
}

h2 { color: var(--navy); font-size: 1.4rem; margin-top: 0; }

.eixo-titulo {
  color: var(--teal-dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 32px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
}

.pergunta { margin-bottom: 20px; }
.pergunta p { margin: 0 0 10px; font-weight: 500; }

.escala { display: flex; gap: 8px; flex-wrap: wrap; }
.escala label {
  flex: 1; min-width: 70px; text-align: center;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 6px; cursor: pointer;
  font-size: 0.82rem; color: var(--text-muted); transition: all 0.15s;
}
.escala input[type="radio"] { display: none; }
.escala input[type="radio"]:checked + label,
.escala label:has(input:checked) {
  /* --teal-dark (nao --teal): branco sobre #c05f78 da 4.08:1, abaixo do
     minimo AA para este tamanho de texto. Sobre #a54d64 da 5.46:1. */
  background: var(--teal-dark); color: #ffffff; border-color: var(--rose-deep);
  font-weight: 600;
}

select, input[type="text"], input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 1rem; margin-bottom: 16px;
}

button, .btn {
  background: var(--teal-dark); color: white; border: none;
  padding: 14px 28px; border-radius: 8px; font-size: 1rem;
  font-weight: 600; cursor: pointer; transition: background 0.15s;
  text-decoration: none; display: inline-block;
}
button:hover, .btn:hover { background: var(--rose-deep); }
.btn-secondary { background: var(--navy-light); }

.alert {
  background: var(--ambar-bg); border: 1px solid var(--ambar);
  color: var(--navy); padding: 16px; border-radius: 8px; margin-bottom: 20px;
}

/* Bloco do custo de nao agir — principal argumento comercial da home */
.custo-box {
  background: var(--navy); border-radius: 16px; padding: 30px 34px;
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  box-shadow: 0 10px 30px rgba(36, 26, 46, 0.18);
}
.custo-valor {
  font-family: 'Lora', Georgia, serif; font-size: 2.1rem; font-weight: 700;
  color: #e59aad; line-height: 1.1; white-space: nowrap;
}
.custo-valor small {
  display: block; font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 0.74rem; font-weight: 600; color: var(--plum-200);
  text-transform: uppercase; letter-spacing: 0.06em; margin-top: 6px; white-space: normal;
}
.custo-box p { color: var(--plum-200); margin: 0; line-height: 1.65; font-size: 0.98rem; }
.custo-box p strong { color: #ffffff; }

@media (max-width: 720px) {
  .custo-box { grid-template-columns: 1fr; gap: 16px; padding: 24px; }
  .custo-valor { font-size: 1.8rem; }
}

.flash {
  background: var(--rose-tint); border: 1px solid var(--teal);
  padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; color: var(--navy);
}

table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.03em; }

.badge {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 700; color: white;
}
.badge.baixo { background: var(--baixo); }
.badge.medio, .badge.médio { background: var(--medio); }
.badge.alto { background: var(--alto); }
.badge.critico, .badge.crítico { background: var(--critico); }

.footer-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 40px; }
