/* ============================================================
   Faina landing, design tokens espelhando style-guide.json
   ============================================================ */
:root {
  /* paleta */
  --forest: #1F2E26;
  --forest-soft: #3B4F44;
  --brick: #C95B3F;
  --brick-soft: #E89478;
  --mute: #897F71;
  --cream: #F7F3EB;
  --cream-deep: #EFE9DC;
  --line: #D9CFC0;
  --sage: #7DA89E;            /* verde da marca: realce / marca-texto */
  --brick-cta: #B34D34;       /* brick aprofundado p/ botao: branco sobre ele = AA (5.2) */

  /* tipografia */
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter Tight", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* escala e ritmo */
  --maxw: 1100px;
  --pad-x: clamp(1.25rem, 5vw, 3rem);
  --section-y: clamp(4rem, 9vw, 7rem);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--forest);
  background: var(--cream);
  line-height: 1.55;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.08; }

a { color: inherit; }

/* container + secoes */
.section { padding: var(--section-y) 0; }
.section__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.section--cream { background: var(--cream); color: var(--forest); }
.section--cream-deep { background: var(--cream-deep); color: var(--forest); }
.section--forest { background: var(--forest); color: var(--cream); }

/* kicker mono + regua brick */
.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--forest-soft);
  display: inline-block;
}
.kicker::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--brick);
  margin-top: 0.75rem;
}
.section--forest .kicker { color: var(--brick-soft); }

/* botao WhatsApp */
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brick-cta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn-wa:hover { background: #9E4329; transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(201, 91, 63, 0.55); }
.btn-wa:focus-visible { outline: 3px solid var(--brick-soft); outline-offset: 2px; }

/* header */
.site-header { display: flex; align-items: center; padding-top: 1.75rem; padding-bottom: 0.5rem; }
.site-logo { height: 34px; width: auto; }

/* hero, composicao centralizada */
.hero { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .kicker::after { margin-left: auto; margin-right: auto; }
.hero__headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.25rem);
  margin: 1.6rem 0 1.5rem;
}
.hero__title {
  font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem);
  max-width: 18ch;
  margin: 0;
  text-align: left;
  letter-spacing: -0.01em;
  line-height: 1.45;
}
/* marca-texto da marca: bloco solido forest cobrindo a letra inteira, texto branco */
.hl {
  background-color: var(--forest);
  color: var(--cream);
  padding: 0.04em 0.16em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__sub {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem);
  color: var(--forest-soft);
  max-width: 50ch;
  margin: 0 auto 2.2rem;
}

/* arte do hero: o poste e sua luz, a esquerda do titulo */
.hero__art { position: relative; display: flex; justify-content: center; flex-shrink: 0; }
.hero__art::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 91, 63, 0.20), rgba(201, 91, 63, 0) 70%);
  z-index: 0;
  pointer-events: none;
}
.hero__symbol { position: relative; z-index: 1; width: 100%; max-width: 120px; height: auto; display: block; }

/* entrada: reveal escalonado no load */
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero .kicker,
.hero__title,
.hero__sub,
.hero .btn-wa { opacity: 0; animation: fade-up 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.hero .kicker { animation-delay: 0.05s; }
.hero__title { animation-delay: 0.15s; }
.hero__sub { animation-delay: 0.30s; }
.hero .btn-wa { animation-delay: 0.45s; }
.hero__art { opacity: 0; animation: fade-in 1.2s ease 0.5s forwards; }

@media (prefers-reduced-motion: reduce) {
  .hero .kicker,
  .hero__title,
  .hero__sub,
  .hero .btn-wa,
  .hero__art { animation: none; opacity: 1; }
}

/* ============================================================
   Secoes
   ============================================================ */

/* manifesto (forest) */
.manifesto__text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.25;
  max-width: 24ch;
}
.manifesto__text em { font-style: italic; color: var(--sage); }

/* titulo de secao */
.section__title {
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  max-width: 20ch;
  margin: 1.1rem 0 2.5rem;
}

/* grid de 3 colunas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }

/* ecossistema, dominios */
.domain { border-top: 1px solid var(--line); padding-top: 1rem; }
.domain__label { display: block; font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 0.35rem; }
.domain p { color: var(--forest-soft); }

/* valores */
.valores .grid-3 { margin-top: 2rem; }
.valor__title { font-size: 1.7rem; margin-bottom: 0.5rem; }
.valor p { color: var(--forest-soft); }

/* como funciona */
.passos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.passos li { border-top: 2px solid var(--brick); padding-top: 1rem; }
.passos__n { font-family: var(--font-mono); font-size: 0.85rem; color: var(--forest-soft); letter-spacing: 0.1em; }
.passos h3 { font-size: 1.35rem; margin: 0.5rem 0 0.4rem; }
.passos p { color: var(--forest-soft); }

/* o que a faina nao e */
.nao-e .grid-3 { margin-top: 2rem; }
.nega h3 { font-size: 1.35rem; line-height: 1.15; margin-bottom: 0.5rem; }
.nega p { color: var(--forest-soft); }

/* cta final (forest) */
.cta-final__title { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); max-width: 18ch; margin-bottom: 1.8rem; }

/* rodape (forest, com pattern sutil) */
.site-footer { position: relative; padding: clamp(3rem, 6vw, 4.5rem) 0 3rem; border-top: 1px solid rgba(247, 243, 235, 0.12); overflow: hidden; }
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/pattern-light.svg") repeat;
  background-size: 220px;
  opacity: 0.10;
  pointer-events: none;
}
.site-footer__inner { position: relative; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.site-footer__mark { height: 48px; width: auto; }
.site-footer__meta { font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.8; color: var(--cream); }
.site-footer__meta a { text-decoration: none; }
.site-footer__tag { color: var(--brick-soft); }

/* estado pendente do CTA (numero do whatsapp ainda nao configurado) */
.btn-wa[data-cta-pending] { opacity: 0.55; cursor: not-allowed; }
.btn-wa[data-cta-pending]::after { content: " (configurar número)"; font-size: 0.8em; }

/* ============================================================
   Responsivo (mobile-first: regras de quebra)
   ============================================================ */
@media (max-width: 768px) {
  .grid-3,
  .passos { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero__headline { flex-direction: column; gap: 1rem; }
  .hero__title { text-align: center; max-width: 26ch; }
  .site-footer__inner { align-items: flex-start; }
}

/* respeita preferencia de menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-wa { transition: none; }
}
