/* Fábrica Digital — single-page. Sistema visual conforme briefing (identidade-visual.md). */

:root {
  --black: #0A0A0B;       /* canvas base */
  --teal: #0C3B38;        /* teal petróleo profundo — blocos/seções */
  --teal-2: #114c47;      /* teal hover/realce */
  --gold: #C9A24B;        /* acento pontual: CTA, "faturamento", numeração */
  --gold-soft: #d8b969;
  --cream: #EFEAE0;       /* texto principal */
  --cream-dim: #9DA3A0;   /* texto secundário */
  --line: #232527;
  --maxw: 1160px;
  --pad: clamp(1.25rem, 5vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: "Geom", system-ui, -apple-system, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Amarna", Georgia, serif;
  font-weight: 600;
  line-height: 1.04;
  margin: 0;
  letter-spacing: -0.01em;
}

a { color: inherit; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.gold { color: var(--gold); }

/* ---- Header fixo ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10,10,11,0.82);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.brand {
  font-family: "Amarna", serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.brand .dot { width: 0.6rem; height: 0.6rem; background: var(--gold); display: inline-block; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a.link {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--cream-dim);
  transition: color 0.18s ease;
}
.nav a.link:hover { color: var(--cream); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--gold);
  color: #1a1407;
  text-decoration: none;
  font-weight: 600;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--gold-soft); }
.btn:focus-visible { outline: 3px solid var(--gold-soft); outline-offset: 3px; }
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover .arrow { transform: translateX(4px); }
.btn.lg { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero { padding-block: clamp(3.5rem, 13vh, 8.5rem) clamp(2.5rem, 8vh, 5rem); }
.hero .signature {
  font-family: "Amarna", serif;
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem);
  letter-spacing: 0.04em;
  color: var(--cream-dim);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.7rem, 8vw, 6.6rem);
  max-width: 15ch;
}
.hero .lede {
  margin-top: 2rem;
  max-width: 50ch;
  color: var(--cream-dim);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
}
.hero .cta-row { margin-top: 2.4rem; }

/* ---- Section scaffolding ---- */
.section-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 2.4rem;
}
h2.section-title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3.4rem); max-width: 18ch; }

/* ---- Linha de produção (bloco teal) ---- */
.process {
  background: var(--teal);
  border-block: 1px solid var(--teal-2);
}
.process .inner { padding-block: clamp(3.2rem, 9vh, 6rem); }
.process h2.section-title { margin-bottom: 2.8rem; max-width: none; font-size: clamp(1.5rem, 0.95rem + 1.9vw, 2.5rem); }
@media (min-width: 768px) {
  /* trava a primeira linha (etapas) em uma só linha no desktop */
  .process h2.section-title { white-space: nowrap; }
  .process h2.section-title br { white-space: normal; }
}
.process h2.section-title .flow { color: var(--gold); font-style: normal; margin-inline: 0.15em; }
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.step { border-top: 2px solid var(--gold); padding-top: 1.1rem; }
.step .num { font-family: "Amarna", serif; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.05em; }
.step h3 { font-size: clamp(1.3rem, 1rem + 1.4vw, 1.9rem); margin-top: 0.5rem; }
.step p { margin: 0.5rem 0 0; color: rgba(239,234,224,0.72); font-size: 0.95rem; }

/* ---- Serviços ---- */
.services { padding-block: clamp(3.2rem, 9vh, 6rem); }
.svc-list { display: grid; }
.svc {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc .svc-name {
  font-family: "Geom", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.svc h3 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); max-width: 26ch; }
.svc p { margin: 0.6rem 0 0; color: var(--cream-dim); max-width: 62ch; }

/* ---- CTA final (bloco teal) ---- */
.cta-final { background: var(--teal); border-top: 1px solid var(--teal-2); }
.cta-final .inner { padding-block: clamp(3.5rem, 10vh, 6.5rem); }
.cta-final h2 { font-size: clamp(2rem, 1.4rem + 3vw, 3.8rem); max-width: 16ch; }
.cta-final p { margin-top: 1rem; max-width: 46ch; color: rgba(239,234,224,0.78); }
.cta-final .cta-row { margin-top: 2.4rem; }

/* ---- Footer ---- */
footer { padding-block: 2.5rem; border-top: 1px solid var(--line); }
.foot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: center;
  color: var(--cream-dim);
  font-size: 0.9rem;
}
footer a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--gold); }
footer a:hover { color: var(--gold); }

/* ---- Motion discreto ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsivo ---- */
@media (max-width: 820px) {
  .nav .link { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .btn .arrow { transition: none; }
}
