/* ============================================================
   TRACIO — folha de estilo compartilhada (multi-página)
   P&B editorial · Fraunces + Inter
   ============================================================ */

:root {
  --carbon: #0A0A0A;
  --ink: #FAFAF7;
  --stone: #141414;
  --mist: rgba(250, 250, 247, 0.66);
  --faint: rgba(250, 250, 247, 0.50);
  --faint-deco: rgba(250, 250, 247, 0.40);
  --hairline: rgba(250, 250, 247, 0.10);
  --hairline-strong: rgba(250, 250, 247, 0.22);
  --font-display: 'Fraunces', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --pad-x: clamp(24px, 8vw, 120px);
  --container: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
/* compensa navbar sticky ao saltar para âncoras */
:target { scroll-margin-top: 96px; }

body {
  background: var(--carbon);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
input:focus-visible, textarea:focus-visible { outline-offset: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 1000;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--carbon);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.skip-link:focus { left: 8px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

.marker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.28em;
  color: var(--faint);
  text-transform: uppercase;
  margin-bottom: 56px;
  font-family: var(--font-body);
}
.marker::before { content: ""; width: 28px; height: 1px; background: var(--faint); }
.marker .num { color: var(--ink); margin-right: 4px; }

/* ============================================================
   NAVBAR (com menu mobile)
   ============================================================ */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
  z-index: 100;
  padding: 18px 0;
}
.navbar-inner { display: flex; justify-content: space-between; align-items: center; }
.logo-img { display: block; height: 30px; width: auto; }

.nav-links { display: flex; gap: 40px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--mist);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }

.nav-right { display: flex; align-items: center; gap: 28px; }

.nav-cta {
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: 11px 24px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 400;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--carbon); border-color: var(--ink); }

/* botão hambúrguer */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  color: var(--ink);
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 840px) {
  .nav-toggle { display: block; }
  .nav-right { display: none; }
  /* painel mobile */
  .nav-mobile {
    display: none;
    border-top: 1px solid var(--hairline);
    margin-top: 18px;
    padding-top: 8px;
  }
  .nav-mobile.open { display: block; }
  .nav-mobile ul { list-style: none; }
  .nav-mobile li { border-bottom: 1px solid var(--hairline); }
  .nav-mobile li:last-child { border-bottom: none; }
  .nav-mobile a {
    display: block;
    padding: 18px 2px;
    color: var(--mist);
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 400;
  }
  .nav-mobile a[aria-current="page"] { color: var(--ink); }
  .nav-mobile .nav-mobile-cta {
    margin-top: 12px;
    color: var(--ink);
    font-weight: 500;
  }
}
@media (min-width: 841px) { .nav-mobile { display: none !important; } }

/* ============================================================
   HERO (home)
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - 67px);
  padding: clamp(80px, 14vh, 180px) var(--pad-x) clamp(60px, 10vh, 120px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--hairline);
}
.hero-inner { position: relative; z-index: 2; max-width: var(--container); margin: 0 auto; width: 100%; }
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 56px;
  font-weight: 500;
}
.hero h1 {
  font-size: clamp(52px, 9vw, 132px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 48px;
  max-width: 1200px;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 300;
  color: var(--mist);
  line-height: 1.55;
  max-width: 640px;
  margin-bottom: 64px;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   PAGE HEADER (páginas internas — hero compacto)
   ============================================================ */
.page-header {
  padding: clamp(72px, 13vh, 150px) 0 clamp(40px, 7vh, 80px);
  border-bottom: 1px solid var(--hairline);
}
.page-header h1 {
  font-size: clamp(40px, 6vw, 84px);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin-bottom: 28px;
  max-width: 980px;
}
.page-header .lede {
  font-family: var(--font-body);
  color: var(--mist);
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.7;
  max-width: 640px;
  font-weight: 300;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--carbon); }
.btn-primary:hover { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--hairline-strong); }
.btn-secondary:hover { border-color: var(--ink); }
.btn::after { content: "→"; font-family: var(--font-body); font-size: 14px; letter-spacing: 0; transition: transform 0.2s; }
.btn:hover::after { transform: translateX(4px); }

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: clamp(88px, 14vh, 160px) 0; border-bottom: 1px solid var(--hairline); position: relative; }
section h2 {
  font-size: clamp(38px, 5.2vw, 76px);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 32px;
  max-width: 920px;
}
section .lede {
  font-family: var(--font-body);
  color: var(--mist);
  font-size: 17px;
  line-height: 1.7;
  max-width: 680px;
  margin-bottom: 80px;
  font-weight: 300;
}

/* TESE / DESAFIO */
.tese-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(40px, 8vw, 120px); align-items: start; margin-top: 32px; }
@media (max-width: 920px) { .tese-grid { grid-template-columns: 1fr; gap: 40px; } }
.tese-body p { font-family: var(--font-body); font-size: 18px; line-height: 1.8; color: var(--ink); margin-bottom: 26px; font-weight: 300; max-width: 640px; }
.tese-body p:last-child { margin-bottom: 0; }
.tese-body em { font-style: italic; color: var(--ink); font-weight: 400; font-family: var(--font-display); font-size: 1.02em; }

/* PRODUTOS / SOLUÇÕES */
.produtos { background: var(--stone); }
.produtos-list { display: grid; grid-template-columns: 1fr; margin-top: 32px; }
.produto { display: grid; grid-template-columns: 120px 1fr 240px; gap: 48px; padding: 56px 0; border-top: 1px solid var(--hairline); align-items: start; }
.produto:last-child { border-bottom: 1px solid var(--hairline); }
@media (max-width: 880px) { .produto { grid-template-columns: 64px 1fr; gap: 20px; padding: 40px 0; } .produto-meta { grid-column: 2; } }
.produto-num { font-family: var(--font-display); font-weight: 300; font-size: 48px; letter-spacing: -0.02em; color: var(--faint-deco); font-feature-settings: "tnum" 1; line-height: 1; }
@media (max-width: 880px) { .produto-num { font-size: 32px; } }
.produto-content h3 { font-size: 36px; font-weight: 300; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 18px; color: var(--ink); }
@media (max-width: 880px) { .produto-content h3 { font-size: 27px; } }
.produto-content h3 em { font-style: italic; font-weight: 400; }
.produto-content p { font-family: var(--font-body); font-size: 16px; color: var(--mist); line-height: 1.75; font-weight: 300; max-width: 580px; }
.produto-meta { text-align: right; padding-top: 14px; }
.produto-meta-label { font-family: var(--font-body); font-size: 10px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--faint); margin-bottom: 10px; font-weight: 500; }
.produto-meta-value { font-family: var(--font-display); font-weight: 300; font-size: 20px; color: var(--ink); font-style: italic; }
@media (max-width: 880px) { .produto-meta { text-align: left; padding-top: 4px; } }

/* variação "teaser" na home: linha clicável, sem parágrafo longo */
.produto.is-teaser { grid-template-columns: 120px 1fr 240px; transition: background 0.25s; }
.produto.is-teaser:hover { background: rgba(250,250,247,0.025); }
.produto.is-teaser .produto-content h3 { margin-bottom: 0; }
@media (max-width: 880px) { .produto.is-teaser { grid-template-columns: 64px 1fr; } }

/* PARA QUEM */
.clientes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 32px; }
.cliente-tipo { background: var(--carbon); padding: 44px 36px; transition: background 0.3s; }
.cliente-tipo:hover { background: var(--stone); }
.cliente-num { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.28em; color: var(--faint); margin-bottom: 24px; text-transform: uppercase; font-weight: 500; }
.cliente-tipo h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 14px; letter-spacing: -0.01em; color: var(--ink); line-height: 1.2; }
.cliente-tipo p { font-family: var(--font-body); font-size: 14px; color: var(--mist); line-height: 1.7; font-weight: 300; }

/* METODO / VANTAGENS */
.metodo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); margin-top: 32px; }
@media (max-width: 880px) { .metodo-grid { grid-template-columns: 1fr; } }
.metodo-item { background: var(--carbon); padding: 56px 40px; min-height: 320px; }
@media (max-width: 880px) { .metodo-item { min-height: 0; padding: 44px 32px; } }
.metodo-num { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.28em; color: var(--faint); margin-bottom: 32px; text-transform: uppercase; }
.metodo-num .num { color: var(--ink); }
.metodo-item h3 { font-family: var(--font-display); font-weight: 300; font-size: 26px; line-height: 1.2; margin-bottom: 20px; letter-spacing: -0.01em; color: var(--ink); }
.metodo-item h3 em { font-style: italic; font-weight: 400; }
.metodo-item p { font-family: var(--font-body); font-size: 14px; color: var(--mist); line-height: 1.7; font-weight: 300; }

/* SOCIOS */
.socios-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 32px; }
@media (max-width: 720px) { .socios-grid { grid-template-columns: 1fr; gap: 40px; } }
.socio { padding-top: 40px; border-top: 1px solid var(--ink); display: flex; flex-direction: column; height: 100%; }
.socio-foto {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(100%);
  margin-bottom: 28px;
  background: var(--stone);
}
.socio h3 { font-family: var(--font-display); font-weight: 400; font-size: 36px; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--ink); line-height: 1.1; }
.socio-role { font-family: var(--font-body); font-size: 11px; color: var(--mist); margin-bottom: 32px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 500; }
.socio-bio { font-family: var(--font-body); font-size: 15px; color: var(--mist); line-height: 1.8; margin-bottom: 40px; font-weight: 300; max-width: 520px; flex-grow: 1; }
.socio-link { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-body); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; padding-bottom: 4px; border-bottom: 1px solid var(--hairline-strong); transition: border-color 0.2s; }
.socio-link:hover { border-color: var(--ink); }
.socio-link::after { content: "→"; letter-spacing: 0; font-size: 14px; }

/* CONTATO */
.contato { background: var(--stone); }
.contato-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 100px); align-items: start; margin-top: 32px; }
@media (max-width: 920px) { .contato-grid { grid-template-columns: 1fr; } }
.contato h2, .contato .page-h2 { margin-bottom: 32px; }
.contato-intro { font-family: var(--font-body); font-size: 17px; color: var(--mist); line-height: 1.7; margin-bottom: 48px; font-weight: 300; max-width: 480px; }
.contato-direto { margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--hairline); }
.contato-direto-label { font-family: var(--font-body); font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.28em; margin-bottom: 16px; font-weight: 500; }
.contato-direto-email { font-family: var(--font-display); font-size: clamp(22px, 3vw, 28px); font-weight: 400; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 6px; letter-spacing: -0.01em; }
.contato-form { background: var(--carbon); padding: 56px; border: 1px solid var(--hairline); }
@media (max-width: 480px) { .contato-form { padding: 32px 24px; } }
.form-row { margin-bottom: 32px; }
.form-row:last-of-type { margin-bottom: 40px; }
.form-row label { display: block; font-family: var(--font-body); font-size: 10px; color: var(--faint); margin-bottom: 14px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 500; }
.form-row input, .form-row textarea { width: 100%; padding: 14px 0; border: none; border-bottom: 1px solid var(--hairline-strong); background: transparent; font-family: var(--font-body); font-size: 16px; font-weight: 300; color: var(--ink); transition: border-color 0.2s; }
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--faint); font-weight: 300; }
.form-row input:focus, .form-row textarea:focus { outline: none; border-bottom-color: var(--ink); }
.form-row textarea { min-height: 80px; resize: vertical; }
.form-submit { width: 100%; background: var(--ink); color: var(--carbon); border: 1px solid var(--ink); padding: 18px; font-family: var(--font-body); font-size: 11px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; cursor: pointer; transition: all 0.2s; }
.form-submit:hover { background: transparent; color: var(--ink); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-message { display: none; margin-top: 24px; padding: 16px 20px; border: 1px solid var(--hairline-strong); font-family: var(--font-body); font-size: 14px; color: var(--ink); line-height: 1.5; }

/* LASTRO / PROVA SOCIAL */
.lastro { background: var(--carbon); border-bottom: 1px solid var(--hairline); }
.lastro-inner { padding: clamp(64px, 10vh, 110px) 0; }
.lastro-intro { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--faint); margin-bottom: 56px; font-weight: 500; display: flex; align-items: center; gap: 14px; }
.lastro-intro::before { content: ""; width: 28px; height: 1px; background: var(--faint); }
.lastro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); }
@media (max-width: 880px) { .lastro-grid { grid-template-columns: 1fr; } }
.lastro-item { background: var(--carbon); padding: 40px 32px; }
.lastro-num { font-family: var(--font-display); font-weight: 300; font-size: clamp(40px, 4vw, 56px); letter-spacing: -0.03em; line-height: 1; color: var(--ink); margin-bottom: 16px; }
.lastro-num em { font-style: italic; font-weight: 400; }
.lastro-label { font-family: var(--font-body); font-size: 13px; font-weight: 300; color: var(--mist); line-height: 1.5; }
.lastro-foot { margin-top: 48px; font-family: var(--font-body); font-size: 14px; font-weight: 300; color: var(--mist); line-height: 1.7; max-width: 720px; }
.lastro-foot em { font-family: var(--font-display); font-style: italic; font-weight: 400; color: var(--ink); }

/* FILTRO NEGATIVO */
.filtro { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--hairline); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 760px) { .filtro { grid-template-columns: 1fr; gap: 28px; } }
.filtro-titulo { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.02em; line-height: 1.15; color: var(--ink); }
.filtro-titulo em { font-style: italic; font-weight: 400; }
.filtro-lista { list-style: none; }
.filtro-lista li { font-family: var(--font-body); font-size: 16px; font-weight: 300; color: var(--mist); line-height: 1.6; padding: 16px 0 16px 32px; border-bottom: 1px solid var(--hairline); position: relative; }
.filtro-lista li:first-child { padding-top: 0; }
.filtro-lista li:last-child { border-bottom: none; padding-bottom: 0; }
.filtro-lista li::before { content: "—"; position: absolute; left: 0; color: var(--faint); }

/* ============================================================
   CTA BAND (faixa de chamada — fecha as páginas internas)
   ============================================================ */
.cta-band { border-bottom: 1px solid var(--hairline); padding: clamp(80px, 13vh, 150px) 0; text-align: center; }
.cta-band .eyebrow { font-family: var(--font-body); font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--faint); margin-bottom: 28px; font-weight: 500; }
.cta-band h2 { font-size: clamp(34px, 5vw, 64px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.05; margin: 0 auto 40px; max-width: 760px; }
.cta-band h2 em { font-style: italic; font-weight: 400; }
.cta-band .hero-ctas { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 100px 0 40px; background: var(--carbon); border-top: 1px solid var(--hairline); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 96px; padding-bottom: 64px; border-bottom: 1px solid var(--hairline); position: relative; z-index: 2; }
@media (max-width: 720px) { .footer-top { grid-template-columns: 1fr; gap: 40px; margin-bottom: 64px; } }
.footer-brand .footer-logo { height: 32px; width: auto; display: block; margin-bottom: 32px; }
.footer-tagline { font-family: var(--font-display); font-weight: 300; font-size: 28px; color: var(--ink); line-height: 1.3; max-width: 360px; letter-spacing: -0.01em; }
.footer-tagline em { font-style: italic; font-weight: 400; }
.footer-col h4 { font-family: var(--font-body); font-size: 10px; text-transform: uppercase; letter-spacing: 0.28em; color: var(--faint); margin-bottom: 24px; font-weight: 500; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a, .footer-col span { color: var(--mist); font-family: var(--font-body); font-size: 13px; font-weight: 300; transition: color 0.2s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-body); font-size: 11px; color: var(--faint); letter-spacing: 0.18em; text-transform: uppercase; position: relative; z-index: 2; }
@media (max-width: 720px) { .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; } }

/* 404 */
.erro-wrap { min-height: calc(100vh - 67px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px var(--pad-x); }
.erro-wrap .code { font-family: var(--font-display); font-size: clamp(80px, 16vw, 200px); font-weight: 300; line-height: 1; letter-spacing: -0.03em; color: var(--ink); margin-bottom: 24px; }
.erro-wrap h1 { font-size: clamp(26px, 4vw, 44px); font-weight: 300; margin-bottom: 20px; }
.erro-wrap p { color: var(--mist); font-size: 17px; max-width: 440px; margin-bottom: 40px; font-weight: 300; }
