/* Rastro — sistema de design
   Preto/branco com papel quente, tipografia editorial (Fraunces + Inter). */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root{
  --black: #0b0b0a;
  --white: #ffffff;
  --paper: #f6f5f2;
  --ink: #17160f;
  --ink-muted: #6b6a63;
  --ink-faint: #9c9a90;
  --line: #dedcd3;
  --line-strong: #c7c4b7;
  --valid: #3b6d11;
  --valid-bg: #eaf3de;
  --alert: #a32d2d;
  --alert-bg: #fcebeb;
  --max: 1080px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; }
:focus-visible{ outline: 2px solid var(--black); outline-offset: 2px; }

.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 28px; }

h1, h2, h3{ font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0; color: var(--ink); }
h1{ font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 400; }
h2{ font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3{ font-size: 1.25rem; }
p{ margin: 0 0 1rem; max-width: 62ch; }
.lede{ font-size: 1.15rem; color: var(--ink-muted); max-width: 54ch; }

/* Header */
.site-header{
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 0.5px solid var(--line);
}
.site-header .wrap{ display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo{ display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg{ height: 20px; width: auto; }
.logo span{ font-family: var(--serif); font-size: 1.3rem; font-weight: 500; letter-spacing: -0.02em; }
nav.main-nav{ display: flex; align-items: center; gap: 28px; }
nav.main-nav a{ text-decoration: none; font-size: 0.94rem; color: var(--ink-muted); }
nav.main-nav a:hover{ color: var(--ink); }
nav.main-nav a.current{ color: var(--ink); }
nav.main-nav a.btn-primary,
nav.main-nav a.btn-primary:hover,
nav.main-nav a.btn-primary.current{ color: var(--white); }
.btn{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 4px; text-decoration: none;
  font-size: 0.92rem; font-weight: 500; border: 0.5px solid transparent;
  cursor: pointer; font-family: var(--sans);
}
.btn-primary{ background: var(--black); color: var(--white); }
.btn-primary:hover{ background: #262521; }
.btn-outline{ background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover{ border-color: var(--ink); }

/* Hero (dark) */
.hero{
  background: var(--black); color: var(--white); padding: 88px 0 96px;
  position: relative; overflow: hidden;
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11,11,10,0.55) 0%, rgba(11,11,10,0.85) 60%, rgba(11,11,10,0.97) 100%),
    url('https://images.unsplash.com/photo-1638990298013-e0421497a854?auto=format&fit=crop&w=2400&q=70');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.hero .wrap{ position: relative; z-index: 1; }
.hero .eyebrow{ color: rgba(255,255,255,0.55); font-size: 0.95rem; margin: 0 0 18px; }
.hero h1{ color: var(--white); max-width: 16ch; }
.hero .lede{ color: rgba(255,255,255,0.7); margin-top: 20px; }
.hero .actions{ display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero .btn-outline{ color: var(--white); border-color: rgba(255,255,255,0.3); }
.hero .btn-outline:hover{ border-color: var(--white); }
.hero .btn-primary{ background: var(--white); color: var(--black); }
.hero .btn-primary:hover{ background: #ececec; }

/* Trail divider — the brand mark as a section separator */
.trail{ display: flex; align-items: center; gap: 8px; margin: 0 0 20px; }
.trail .dot{ background: var(--ink); border-radius: 50%; }
.trail .d1{ width: 5px; height: 5px; }
.trail .d2{ width: 6px; height: 6px; }
.trail .d3{ width: 7px; height: 7px; }
.trail .line{ flex: 0 0 40px; height: 2px; background: var(--ink); border-radius: 2px; }
.trail.on-dark .dot, .trail.on-dark .line{ background: rgba(255,255,255,0.55); }

section{ padding: 72px 0; }
section.paper{ background: var(--paper); }
.section-head{ margin-bottom: 40px; }
.section-head p{ margin-top: 12px; }

/* Client logos — infinite marquee */
.clients{ padding: 44px 0; border-bottom: 0.5px solid var(--line); overflow: hidden; }
.clients .label{ font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.06em; margin: 0 0 32px; text-align: center; max-width: none; width: 100%; }
.clients-marquee{
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.clients-marquee:hover{ animation-play-state: paused; }
.clients-marquee .set{ display: flex; align-items: center; flex-shrink: 0; }
.clients-marquee .logo-chip{ display: flex; align-items: center; justify-content: center; height: 64px; margin: 0 46px; }
.clients-marquee .logo-chip img{ height: 58%; width: auto; max-width: 150px; object-fit: contain; opacity: 0.8; }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-25%); }
}
@media (prefers-reduced-motion: reduce){
  .clients-marquee{ animation: none; }
}

/* Cards / grid */
.grid{ display: grid; gap: 20px; }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.card{
  background: var(--white); border: 0.5px solid var(--line);
  border-radius: 8px; padding: 28px;
}
.card h3{ margin-bottom: 10px; }
.card p{ color: var(--ink-muted); font-size: 0.96rem; margin-bottom: 0; }
.card .num{ font-family: var(--serif); font-size: 1.6rem; color: var(--ink-faint); margin-bottom: 14px; display: block; }

/* Stat row */
.stats{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); padding: 36px 0; }
.stat .n{ font-family: var(--serif); font-size: 2.1rem; display: block; margin-bottom: 4px; }
.stat .l{ color: var(--ink-muted); font-size: 0.9rem; }

/* FAQ (also feeds GEO answer extraction) */
.faq-item{ border-top: 0.5px solid var(--line); padding: 24px 0; }
.faq-item:last-child{ border-bottom: 0.5px solid var(--line); }
.faq-item h3{ font-family: var(--sans); font-size: 1.05rem; font-weight: 600; margin-bottom: 10px; }
.faq-item p{ color: var(--ink-muted); }

/* Table (data quality checklist etc) */
table{ width: 100%; border-collapse: collapse; font-size: 0.94rem; }
th, td{ text-align: left; padding: 12px 10px; border-bottom: 0.5px solid var(--line); }
th{ color: var(--ink-muted); font-weight: 500; font-size: 0.82rem; text-transform: none; }
.tag{ display: inline-block; font-size: 0.76rem; padding: 3px 9px; border-radius: 4px; font-weight: 500; }
.tag-valid{ background: var(--valid-bg); color: var(--valid); }
.tag-alert{ background: var(--alert-bg); color: var(--alert); }

/* Blog */
.post-list{ display: flex; flex-direction: column; }
.post-row{ display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; border-top: 0.5px solid var(--line); text-decoration: none; }
.post-row:last-child{ border-bottom: 0.5px solid var(--line); }
.post-row h3{ font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: 8px; }
.post-row p{ color: var(--ink-muted); font-size: 0.95rem; margin-bottom: 0; }
.post-row .meta{ color: var(--ink-faint); font-size: 0.82rem; white-space: nowrap; padding-top: 4px; }

article.post{ max-width: 68ch; margin: 0 auto; }
article.post .meta{ color: var(--ink-muted); font-size: 0.88rem; margin-bottom: 12px; }
article.post h1{ margin-bottom: 6px; }
article.post h2{ font-size: 1.5rem; margin: 2.2rem 0 0.9rem; }
article.post h3{ font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }
article.post p{ max-width: none; color: var(--ink); }
article.post ul, article.post ol{ color: var(--ink); padding-left: 1.3rem; }
article.post li{ margin-bottom: 0.4rem; }
.answer-box{
  background: var(--paper); border-left: 3px solid var(--black);
  border-radius: 0; padding: 20px 24px; margin: 1.6rem 0;
}
.answer-box p{ margin: 0; color: var(--ink); }
.answer-box .label{ font-size: 0.78rem; color: var(--ink-muted); margin-bottom: 8px; display: block; }

/* Form */
form.contact-form{ display: flex; flex-direction: column; gap: 16px; max-width: 480px; }
form.contact-form label{ font-size: 0.86rem; color: var(--ink-muted); margin-bottom: 6px; display: block; }
form.contact-form input, form.contact-form select, form.contact-form textarea{
  width: 100%; padding: 12px 14px; border: 0.5px solid var(--line-strong);
  border-radius: 4px; font-family: var(--sans); font-size: 0.95rem; background: var(--white);
}
form.contact-form textarea{ min-height: 110px; resize: vertical; }
form.contact-form .btn-primary{ align-self: flex-start; border: none; }

/* Footer */
footer{ background: var(--black); color: rgba(255,255,255,0.65); padding: 56px 0 32px; }
footer .wrap{ display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
footer .col h4{ color: var(--white); font-size: 0.85rem; font-weight: 500; margin-bottom: 14px; font-family: var(--sans); }
footer .col a{ display: block; text-decoration: none; color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 8px; }
footer .col a:hover{ color: var(--white); }
footer .bottom{ margin-top: 40px; padding-top: 24px; border-top: 0.5px solid rgba(255,255,255,0.15); font-size: 0.82rem; color: rgba(255,255,255,0.4); }

@media (max-width: 860px){
  nav.main-nav{ display: none; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .stats{ grid-template-columns: 1fr; gap: 28px; }
  footer .wrap{ flex-direction: column; }
  .post-row{ flex-direction: column; gap: 6px; }
}

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