/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--terracotta-500); color: var(--white); }

/* ============================================================
   TIPOGRAFIA
   ============================================================ */

/* Hedvig Letters Serif só tem corte Regular — nunca font-weight:700.
   Peso é reforçado com opsz automático + traço fino + tracking negativo. */
.font-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.008em;
  -webkit-text-stroke: 0.5px currentColor;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-optical-sizing: auto;
  letter-spacing: -0.008em;
  -webkit-text-stroke: 0.5px currentColor;
  line-height: 1.15;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
}
.section {
  padding: clamp(64px, 10vw, 96px) 0;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--terracotta-500);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--terracotta-700);
}
.btn-secondary {
  background: transparent;
  color: var(--ink-700);
  border-color: var(--ink-700);
}
.btn-secondary:hover {
  background: var(--sand-600);
}
.btn-secondary-inverse {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-secondary-inverse:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn-lg {
  font-size: 16px;
  padding: 18px 36px;
}
.btn-sm {
  font-size: 13px;
  padding: 10px 20px;
}
.link-anchor {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--terracotta-700);
  text-decoration: none;
}
.link-anchor-inverse {
  color: var(--white);
}
@media (max-width: 480px) {
  .btn:not(.btn-sm) {
    white-space: normal;
    text-align: center;
    justify-content: center;
    width: 100%;
    max-width: 340px;
  }
}

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}
.timeline-card {
  border-left: 1px solid var(--terracotta-500);
}

/* ============================================================
   ANIMAÇÃO DE SURGIMENTO (scroll reveal)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
/* Atraso escalonado para itens dentro do mesmo grid/lista */
.servicos-grid .reveal:nth-child(2),
.atendimento-grid .reveal:nth-child(2),
.diferencial-grid .reveal:nth-child(2) {
  transition-delay: 0.08s;
}
.servicos-grid .reveal:nth-child(3),
.atendimento-grid .reveal:nth-child(3) {
  transition-delay: 0.16s;
}
.atendimento-grid .reveal:nth-child(4) {
  transition-delay: 0.24s;
}
.dor-list .reveal:nth-child(2) { transition-delay: 0.06s; }
.dor-list .reveal:nth-child(3) { transition-delay: 0.12s; }
.dor-list .reveal:nth-child(4) { transition-delay: 0.18s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: 18px clamp(20px, 5vw, 56px);
  background: var(--header-bg);
}
.site-header .brand {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--header-fg);
  letter-spacing: 0.01em;
}
.site-header nav {
  display: flex;
  gap: var(--space-6);
}
.site-header nav a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--header-fg-mute);
  text-decoration: none;
}
.site-header nav a:hover {
  color: var(--header-fg);
}
.site-header .nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
@media (max-width: 860px) {
  .site-header nav { display: none; }
}

/* ============================================================
   HERO (variante 1a — foto lateral + stat cards)
   ============================================================ */
.hero {
  background: var(--ink-300);
  color: var(--ink-900);
  padding: clamp(72px, 10vw, 96px) clamp(20px, 5vw, 56px) clamp(64px, 9vw, 88px);
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.hero-copy {
  flex: 1 1 560px;
}
.hero .eyebrow {
  color: var(--white);
}
.hero h1 {
  font-size: clamp(36px, 4.2vw, 52px);
  line-height: 1.12;
  margin-bottom: var(--space-5);
  color: var(--white);
}
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--white);
  max-width: 540px;
  margin-bottom: var(--space-6);
}
.hero-ctas {
  display: flex;
  gap: var(--space-5);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-7);
}
.stat-row {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.stat-card {
  background: rgba(18, 21, 15, 0.12);
  border: 1px solid rgba(18, 21, 15, 0.16);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-5);
  min-width: 150px;
  flex: 1 1 150px;
}
.stat-n {
  font-size: 20px;
  color: var(--terracotta-100);
  margin-bottom: var(--space-1);
}
.stat-l {
  font-size: 11.5px;
  color: var(--sand-100);
  line-height: 1.3;
}
.hero-photo {
  flex: 0 0 360px;
}
.hero-photo-img {
  width: 360px;
  height: 430px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column-reverse;
  }
  .hero-photo, .hero-photo-img {
    width: 100%;
    flex: none;
  }
  .hero-photo-img {
    height: 320px;
  }
  .hero-copy {
    flex: none;
    width: 100%;
    text-align: center;
  }
  .hero-sub {
    font-size: 16px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .stat-row {
    justify-content: center;
    text-align: center;
  }
}

/* ============================================================
   CREDENCIAL
   ============================================================ */
.credencial-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px);
  display: flex;
  gap: var(--space-8);
  align-items: center;
}
.seal-wrap {
  flex-shrink: 0;
}
.credencial-copy {
  flex: 1;
}
.credencial .eyebrow {
  color: var(--accent);
}
.credencial-copy h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--fg);
  max-width: 560px;
  margin-bottom: var(--space-5);
}
.credencial-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 640px;
  margin-bottom: var(--space-6);
}
.stat-row-light {
  gap: var(--space-4);
}
.stat-card-light {
  background: var(--surface);
  border: none;
  border-left: 1px solid var(--terracotta-500);
  box-shadow: var(--shadow-card);
  flex: 1 1 180px;
  min-width: 160px;
}
.stat-n-dark {
  color: var(--accent);
  font-size: 22px;
}
.stat-l-dark {
  color: var(--fg-soft);
  font-size: 13px;
  line-height: 1.4;
}
@media (max-width: 780px) {
  .credencial-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-6);
  }
  .credencial-copy h2,
  .credencial-body {
    margin-left: auto;
    margin-right: auto;
  }
  .stat-row-light {
    justify-content: center;
  }
}

/* ============================================================
   MARCADOR (selo reduzido — pontinho tracejado)
   ============================================================ */
.marker-dot {
  display: inline-block;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px dashed var(--terracotta-500);
}

/* ============================================================
   DOR
   ============================================================ */
.dor {
  background: var(--sand-200);
}
.dor-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--fg);
  text-align: center;
  margin-bottom: var(--space-6);
}
.dor-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.dor-item {
  display: flex;
  gap: var(--space-4);
  align-items: stretch;
  background: var(--white);
  border-radius: var(--radius-md);
  border-left: 1px solid var(--ink-500);
  box-shadow: var(--shadow-card);
  padding: var(--space-5) var(--space-5);
}
/* Barra vertical no lugar do selo reduzido — indica citação */
.dor-item .marker-dot {
  width: 1px;
  height: auto;
  min-height: 100%;
  flex-shrink: 0;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ink-500);
}
.dor-item p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg-soft);
}
.dor-closing {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  text-align: center;
  margin-bottom: var(--space-6);
}
.dor-cta {
  text-align: center;
}

/* ============================================================
   SERVIÇOS
   ============================================================ */
.servicos-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--fg);
  text-align: center;
  margin-bottom: var(--space-7);
}
.servicos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.servico-card {
  border-left: 1px solid var(--terracotta-500);
}
.servico-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-soft);
}
.servico-head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.servico-head h3 {
  font-size: 18px;
  color: var(--fg);
}
.servicos-cta {
  text-align: center;
}
@media (max-width: 720px) {
  .servicos-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   DIFERENCIAL (sistema próprio)
   ============================================================ */
.diferencial {
  background: var(--ink-700);
  color: var(--white);
}
.diferencial-eyebrow {
  color: var(--terracotta-300);
  text-align: center;
}
.diferencial-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--white);
  text-align: center;
  margin-bottom: var(--space-5);
}
.diferencial-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--sand-400);
  max-width: 640px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.diferencial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-7);
}
.diferencial-col {
  border-radius: var(--radius-md);
  padding: var(--space-6);
}
/* Título da coluna com o badge ✕/✓ reaproveitado da seção
   "Direção visual" de apresentacoes/presentation.html (.compare-tag / .compare-glyph) */
.diferencial-col h3.compare-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  margin-bottom: var(--space-5);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.compare-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.compare-list p {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0;
}
.compare-glyph {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Badge ✕/✓ — cores fixas nas duas variações (claro/escuro de seção),
   iguais às de insumos/identidade_visual.html */
.compare-glyph-bad {
  background: var(--ink-100);
  color: var(--ink-900);
}
.compare-glyph-good {
  background: var(--terracotta-500);
  color: var(--white);
}
/* Cards "antes/depois" — réplica do padrão .compare-item do documento,
   na variação escura (a seção do diferencial usa fundo ink-700):
   .bad = contorno tracejado, sem preenchimento; .good = superfície
   translúcida, sem sombra, com borda sutil — nenhum dos dois usa
   preenchimento sólido colorido. */
.diferencial-col-sem,
.diferencial-col-com {
  border-radius: var(--radius-md);
  padding: 22px 24px 24px;
}
.diferencial-col-sem {
  background: transparent;
  border: 1px dashed rgba(220, 207, 191, 0.3);
}
.diferencial-col-sem h3 {
  color: var(--white);
}
.diferencial-col-sem p {
  color: var(--white);
}
.diferencial-col-com {
  background: var(--white);
  border: none;
  box-shadow: var(--shadow-card);
}
.diferencial-col-com h3 {
  color: var(--terracotta-700);
}
.diferencial-col-com p {
  color: var(--ink-500);
}
.diferencial-cta {
  text-align: center;
}
@media (max-width: 720px) {
  .diferencial-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TRAJETÓRIA (timeline)
   ============================================================ */
.trajetoria-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--fg);
  margin-bottom: var(--space-4);
}
.trajetoria-intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-soft);
  margin-bottom: var(--space-4);
}
.trajetoria-note {
  font-size: 13px;
  font-style: italic;
  color: var(--fg-soft);
  border-left: 1px solid var(--terracotta-500);
  padding-left: var(--space-3);
  margin-bottom: var(--space-7);
}
.timeline {
  position: relative;
  padding-left: var(--space-8);
}
.timeline-line {
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--rule);
}
.timeline-item {
  position: relative;
  padding-bottom: var(--space-6);
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-marker {
  position: absolute;
  left: calc(-1 * var(--space-8));
  top: 3px;
  background: var(--bg);
}
.timeline-item h4 {
  font-size: 16px;
  color: var(--fg);
  margin-bottom: var(--space-1);
}
.timeline-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-soft);
}

/* ============================================================
   ATENDIMENTO (passos)
   ============================================================ */
.atendimento {
  background: var(--sand-200);
}
.atendimento-title {
  font-size: clamp(26px, 3.4vw, 36px);
  color: var(--fg);
  text-align: center;
  margin-bottom: var(--space-7);
}
.atendimento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}
.atendimento-card {
  border-left: 1px solid var(--terracotta-500);
}
.atendimento-num {
  font-size: 22px;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.atendimento-card h3 {
  font-size: 15px;
  color: var(--fg);
  margin-bottom: var(--space-2);
}
.atendimento-card p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--fg-soft);
}
@media (max-width: 860px) {
  .atendimento-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .atendimento-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--ink-500);
  color: var(--white);
  text-align: center;
}
.cta-final-inner h2 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  margin-bottom: var(--space-5);
}
.cta-final-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--sand-400);
  margin-bottom: var(--space-6);
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.site-footer {
  background: var(--ink-700);
  color: var(--sand-200);
  padding: var(--space-8) clamp(20px, 5vw, 56px);
}
.site-footer a {
  color: var(--terracotta-300);
  text-decoration: none;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.footer-brand {
  font-size: 20px;
  color: var(--white);
  margin-bottom: var(--space-2);
}
.footer-tagline {
  font-size: 13px;
  color: var(--sand-600);
  margin-bottom: var(--space-4);
}
.footer-meta {
  font-size: 12px;
  color: var(--sand-600);
  line-height: 1.8;
}
.footer-contact {
  font-size: 13px;
  line-height: 1.8;
}
.footer-contact a {
  display: block;
}
@media (max-width: 600px) {
  .footer-inner {
    text-align: center;
    justify-content: center;
  }
  .footer-meta,
  .footer-contact {
    text-align: center;
  }
}
