/* ============================================================
   AMZBZ — WIREFRAME ESTRUTURAL v2
   Aplicando layout.md atualizado (Fase 2 rev.)
   ============================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ── Tokens estruturais ───────────────────────────────────── */
:root {
  /* Larguras variáveis */
  --w-full:     1400px;
  --w-default:  1200px;
  --w-contained: 900px;

  --gutter: 24px;

  /* Ritmo vertical */
  --rhythm-hero-top:    160px;
  --rhythm-hero-bottom: 120px;
  --rhythm-dense:        80px;
  --rhythm-light:       140px;

  --font: Arial, sans-serif;
  --size-xs:   11px;
  --size-sm:   13px;
  --size-base: 16px;
  --size-lg:   22px;
  --size-xl:   32px;
  --size-2xl:  48px;

  --border:       1px solid #bbb;
  --border-light: 1px solid #ddd;
  --bg-main: #0d2b0d;
  --bg-block:  #111615;
  --bg-tinted: #0f1413;
  --text:       #f0ece4;
  --text-muted: #cbbfb0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
}

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

/* ── Containers por largura ───────────────────────────────── */
.container        { width: 100%; max-width: var(--w-default);   margin-inline: auto; padding-inline: var(--gutter); }
.container--full  { width: 100%; max-width: var(--w-full);      margin-inline: auto; padding-inline: var(--gutter); }
.container--tight { width: 100%; max-width: var(--w-contained); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Seção base ───────────────────────────────────────────── */
.section         { padding-block: var(--rhythm-light);  border-top: var(--border); }
.section--dense  { padding-block: var(--rhythm-dense); }
.section--tinted { background: var(--bg-tinted); }

/* ── Grids ────────────────────────────────────────────────── */
/* Hero: 5 col texto / 7 col visual — aprox 5/12 vs 7/12 */
.grid-hero   { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: start; }

/* Problema: 7 col / 5 col */
.grid-7-5    { display: grid; grid-template-columns: 7fr 5fr; gap: var(--gutter); align-items: start; }

/* Simétrico */
.grid-6-6    { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: start; }

/* Terços */
.grid-3      { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }

/* ── Tipografia de seção ──────────────────────────────────── */
.section__label {
  font-size: var(--size-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--gutter);
}

.section__title {
  font-size: var(--size-xl);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--gutter);
}

.section__sub {
  font-size: var(--size-base);
  color: var(--text-muted);
  margin-bottom: calc(var(--gutter) * 2);
  max-width: 560px;
}

/* ── HEADER ───────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(13, 43, 13, 0.9);
  border-bottom: var(--border);
  height: 56px;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: calc(var(--gutter) * 2);
  height: 100%;
}

.header__logo {
  font-size: var(--size-sm);
  font-weight: 700;
  letter-spacing: .1em;
  flex-shrink: 0;
}

.header__nav { display: flex; gap: calc(var(--gutter) * 1.5); flex: 1; }

.header__nav a {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}

.header__cta {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: var(--border);
  padding: 6px 14px;
  flex-shrink: 0;
}

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  padding-top:    calc(56px + var(--rhythm-hero-top));
  padding-bottom: var(--rhythm-hero-bottom);
  border-bottom: var(--border);
  position: relative;
}

.hero__image {
  width: 100%;
  height: 540px;
  border: 1px solid rgba(255,255,255,0.08);
  object-fit: cover;
  display: block;
  object-position: center 35%;
}

.hero__eyebrow {
  font-size: var(--size-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: calc(var(--gutter) * 1.5);
}

.hero__title {
  font-size: var(--size-2xl);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: calc(var(--gutter) * 1.5);
}

.hero__subtitle {
  font-size: var(--size-base);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 400px;
}

.hero__visual {
  border: var(--border);
  background: var(--bg-block);
  height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}

.hero__scroll {
  margin-top: calc(var(--gutter) * 3);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.hero__scroll span:first-child {
  display: block;
  width: 1px;
  height: 36px;
  background: #bbb;
}

.hero__scroll span:last-child {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #bbb;
}

/* ── PROBLEMA ─────────────────────────────────────────────── */
.problema__list {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  margin-top: calc(var(--gutter) * 1.5);
}

.problema__list li {
  font-size: var(--size-base);
  color: var(--text-muted);
  padding-left: var(--gutter);
  position: relative;
  padding-bottom: var(--gutter);
  border-bottom: var(--border-light);
}

.problema__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: #bbb;
}

.insight-box {
  border: var(--border);
  padding: calc(var(--gutter) * 1.5);
}

.insight-box__label {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-bottom: var(--gutter);
  padding-bottom: var(--gutter);
  border-bottom: var(--border-light);
}

.insight-box__body {
  font-size: var(--size-sm);
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── ORIGEM ───────────────────────────────────────────────── */
.pilares__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: calc(var(--gutter) * 1.5);
  margin-bottom: calc(var(--gutter) * 1.5);
}

.pilar {
  display: flex;
  gap: var(--gutter);
  font-size: var(--size-base);
  color: var(--text-muted);
  padding-block: var(--gutter);
  border-bottom: var(--border-light);
}

.pilar__mark { color: #bbb; flex-shrink: 0; }

.badges { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: var(--border);
  padding: 4px 10px;
  color: var(--text-muted);
}

.data-visual {
  border: var(--border);
  padding: calc(var(--gutter) * 1.5);
  display: flex;
  flex-direction: column;
  gap: calc(var(--gutter) * 1.5);
}

.data-visual__item { display: flex; flex-direction: column; gap: 4px; }
.data-visual__value { font-size: var(--size-xl); font-weight: 300; }
.data-visual__label { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ── CADEIA ───────────────────────────────────────────────── */
.timeline {
  display: flex;
  align-items: center;
  margin-block: calc(var(--gutter) * 2.5);
  overflow-x: auto;
  padding-bottom: 4px;
}

.timeline__step { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }

.timeline__node {
  width: 56px; height: 56px;
  border: var(--border);
  background: var(--bg-block);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.timeline__label {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  white-space: nowrap;
}

.timeline__connector { flex: 1; height: 1px; background: #bbb; min-width: 48px; }

.cadeia-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  border-top: var(--border);
  padding-top: calc(var(--gutter) * 1.5);
}

.cadeia-card { border: var(--border); padding: calc(var(--gutter) * 1.5); }

.cadeia-card__tag {
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  margin-bottom: var(--gutter);
  padding-bottom: var(--gutter);
  border-bottom: var(--border-light);
}

.cadeia-card__body { font-size: var(--size-sm); color: var(--text-muted); }

/* ── ECOSSISTEMA ──────────────────────────────────────────── */
.ecossistema__grid {
  display: flex;
  gap: calc(var(--gutter) * 3);
  align-items: flex-start;
  margin-top: calc(var(--gutter) * 2);
}

.ecossistema__nucleus {
  flex-shrink: 0;
  width: 112px; height: 112px;
  border: var(--border);
  border-radius: 50%;
  background: var(--bg-block);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.nucleus__label { font-size: var(--size-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.nucleus__sub   { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

.ecossistema__units { flex: 1; }

.unit {
  display: grid;
  grid-template-columns: 140px 20px 1fr;
  align-items: baseline;
  padding-block: var(--gutter);
  border-bottom: var(--border-light);
}

.unit:first-child { border-top: var(--border-light); }
.unit__name { font-size: var(--size-sm); font-weight: 600; }
.unit__sep  { font-size: var(--size-sm); color: #bbb; text-align: center; }
.unit__role { font-size: var(--size-sm); color: var(--text-muted); }

/* ── INOVAÇÃO ─────────────────────────────────────────────── */
.inovacao-card { border: var(--border); padding: calc(var(--gutter) * 1.5); }

.inovacao-card__label {
  font-size: var(--size-sm);
  font-weight: 600;
  margin-bottom: var(--gutter);
  padding-bottom: var(--gutter);
  border-bottom: var(--border-light);
}

.inovacao-card__body { font-size: var(--size-sm); color: var(--text-muted); }

.oma-block {
  margin-top: var(--gutter);
  border: var(--border);
  padding: var(--gutter) calc(var(--gutter) * 1.5);
  display: flex;
  align-items: center;
  gap: calc(var(--gutter) * 2);
  background: var(--bg-block);
}

.oma-block__label { font-size: var(--size-sm); font-weight: 600; flex-shrink: 0; min-width: 80px; }
.oma-block__body  { font-size: var(--size-sm); color: var(--text-muted); }

/* ── NÚMEROS ──────────────────────────────────────────────── */
.numeros__primary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-bottom: var(--gutter);
}

.numero-principal {
  border: var(--border);
  padding: calc(var(--gutter) * 2.5) calc(var(--gutter) * 1.5);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.numero-principal__value { font-size: var(--size-2xl); font-weight: 300; line-height: 1; }
.numero-principal__label { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }

.numeros__secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #bbb;
  border: var(--border);
}

.numero-item { background: #fff; padding: calc(var(--gutter) * 1.25); display: flex; flex-direction: column; gap: 6px; }
.numero-item__value { font-size: var(--size-lg); font-weight: 300; }
.numero-item__label { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }

/* ── EXPANSÃO ─────────────────────────────────────────────── */
.mapa-placeholder {
  border: var(--border);
  background: var(--bg-block);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}

.expansao-bloco { padding-block: var(--gutter); border-bottom: var(--border-light); }
.expansao-bloco:first-of-type { border-top: var(--border-light); margin-top: var(--gutter); }
.expansao-bloco__label { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 6px; }
.expansao-bloco__body  { font-size: var(--size-base); }

/* ── CONVITE ──────────────────────────────────────────────── */
.convite__intro {
  text-align: center;
  margin-inline: auto;
  margin-bottom: calc(var(--gutter) * 2.5);
  max-width: var(--w-contained);
}

.convite-card {
  border: var(--border);
  padding: calc(var(--gutter) * 1.5);
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
}

.convite-card__label {
  font-size: var(--size-sm);
  font-weight: 600;
  padding-bottom: var(--gutter);
  border-bottom: var(--border-light);
}

.convite-card__body { font-size: var(--size-sm); color: var(--text-muted); flex: 1; }

.convite-card__cta {
  display: inline-block;
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .08em;
  border: var(--border);
  padding: 7px 16px;
  align-self: flex-start;
  color: var(--text-muted);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { border-top: var(--border); padding-block: calc(var(--gutter) * 2.5); }

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
}

.footer__logo     { font-size: var(--size-sm); font-weight: 700; letter-spacing: .1em; }
.footer__location { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); text-align: center; }
.footer__credit   { font-size: var(--size-xs); color: var(--text-muted); text-align: right; }

/* ── Image placeholders ───────────────────────────────────── */
.img-placeholder {
  background: #0f1413;
  border: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#bbb 1px, transparent 1px),
    linear-gradient(90deg, #bbb 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .18;
}

.img-placeholder__label {
  position: relative;
  font-size: var(--size-xs);
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #888;
  text-align: center;
  padding: var(--gutter);
}

/* tamanhos por contexto */
.img-placeholder--hero    { height: 540px; }
.img-placeholder--tall    { height: 340px; margin-bottom: var(--gutter); }
.img-placeholder--card    { height: 220px; }
.img-placeholder--card-sm { height: 160px; margin-bottom: var(--gutter); }
.img-placeholder--numeros { height: 260px; margin-bottom: calc(var(--gutter) * 1.5); }
.img-placeholder--mapa    { height: 460px; }
.img-placeholder--convite { height: 300px; margin-bottom: calc(var(--gutter) * 2); }

/* Faixa panorâmica full-bleed */
.img-strip { width: 100%; overflow: hidden; }

.img-strip__inner {
  width: 100%;
  height: 200px;
  background: #e8e8e8;
  border-top: var(--border-light);
  border-bottom: var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.img-strip__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#bbb 1px, transparent 1px),
    linear-gradient(90deg, #bbb 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: .18;
}

/* Números: título + imagem lado a lado */
.numeros__header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  align-items: start;
  margin-bottom: calc(var(--gutter) * 1.5);
}

/* Cadeia cards com imagem */
.cadeia-card { border: var(--border); }
.cadeia-card__content { padding: calc(var(--gutter) * 1.25); }

/* Origem: coluna direita empilha imagem + dados */
.origem__right { display: flex; flex-direction: column; }

/* ── ECOSSISTEMA — diagrama orbital ──────────────────────── */
.eco-wrap {
  display: flex;
  border: var(--border);
  min-height: 440px;
  margin-top: calc(var(--gutter) * 2);
}

.eco-diagram {
  flex: 0 0 420px;
  position: relative;
}

.eco-diagram svg .orbit-ring {
  fill: none;
  stroke: #ccc;
  stroke-width: 0.5;
  stroke-dasharray: 5 5;
}

.eco-diagram svg .connector {
  stroke: #ccc;
  stroke-width: 0.5;
}

.eco-node { cursor: pointer; }

.eco-node rect,
.eco-node circle {
  fill: #fff;
  stroke: #bbb;
  stroke-width: 0.5;
  transition: fill 100ms ease, stroke-width 100ms ease;
}

.eco-node:hover rect,
.eco-node:hover circle,
.eco-node.active rect,
.eco-node.active circle {
  fill: #f0f0f0;
  stroke-width: 1;
}

.eco-node text {
  font-family: Arial, sans-serif;
  font-size: 12px;
  fill: #111;
  pointer-events: none;
}

.eco-node text.sub {
  font-size: 10px;
  fill: #888;
}

.eco-panel {
  flex: 1;
  border-left: var(--border);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eco-panel-hint { font-size: var(--size-sm); color: #bbb; }
.eco-panel-tag  { display: inline-block; font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .08em; border: var(--border); padding: 3px 9px; color: var(--text-muted); margin-top: var(--gutter); align-self: flex-start; }
.eco-panel-unit { font-size: var(--size-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: var(--gutter); }
.eco-panel-role { font-size: var(--size-lg); font-weight: 400; line-height: 1.25; margin-bottom: var(--gutter); }
.eco-panel-desc { font-size: var(--size-sm); color: var(--text-muted); line-height: 1.75; }

/* ── Responsividade ───────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --rhythm-light: 100px; --rhythm-hero-top: 120px; }
}

@media (max-width: 960px) {
  .grid-hero, .grid-7-5, .grid-6-6, .grid-3 { grid-template-columns: 1fr; }
  .header__nav { display: none; }
  .ecossistema__grid { flex-direction: column; }
  .numeros__primary { grid-template-columns: 1fr; }
  .numeros__secondary { grid-template-columns: repeat(2, 1fr); }
  .numeros__header { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  .footer__location, .footer__credit { text-align: center; }
  .img-placeholder--hero { height: 320px; }
  .img-placeholder--mapa { height: 280px; }
  .img-strip__inner { height: 140px; }
}

@media (max-width: 600px) {
  :root { --rhythm-light: 60px; --rhythm-dense: 48px; --rhythm-hero-top: 80px; --rhythm-hero-bottom: 60px; }
  .hero__title { font-size: var(--size-xl); }
  .header__cta { display: none; }
  .timeline { flex-direction: column; align-items: flex-start; }
  .timeline__step { flex-direction: row; gap: var(--gutter); }
  .timeline__connector { width: 1px; height: 28px; min-width: unset; margin-left: 27px; }
  .cadeia-cards, .numeros__secondary { grid-template-columns: 1fr; }
  .unit { grid-template-columns: 1fr; gap: 4px; }
  .unit__sep { display: none; }
  .oma-block { flex-direction: column; gap: 12px; }
  .mapa-placeholder { height: 180px; }
}