/* ==========================================================================
   HOME.CSS — Ajustes Exclusivos da Página Inicial (ISAB)
   ========================================================================== */

/* ---------- 1. Tokens locais da Home ---------- */
.page-home {
  --h-green-900: #11341f;
  --h-green-800: #164a2b;
  --h-green-700: #1e6239;
  --h-green-600: #2a7d49;
  --h-green-050: #eef4ee;
  --h-cream: #f7f3ea;
  --h-cream-2: #efe8d9;
  --h-paper: #ffffff;
  --h-sand-line: #e7dfce;
  --h-ochre: #c98a1a;
  --h-ochre-soft: #f3e4c4;
  --h-gold: #e0a92e;
  --h-ink: #1a241d;
  --h-ink-soft: #46544b;
  --h-ink-faint: #6a7870;
  --h-line: #e4e8e2;
  --h-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --h-maxw: 1200px;
  --h-radius: 10px;
  --h-radius-sm: 6px;
  --h-shadow-soft: 0 6px 20px rgba(17, 52, 31, 0.07);

  background: var(--h-paper);
  color: var(--h-ink);
  font-family: var(--h-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---------- 2. Elementos Específicos da Home ---------- */
.page-home h1,
.page-home h2,
.page-home h3,
.page-home h4 {
  font-family: var(--h-sans);
  color: var(--h-green-800);
  line-height: 1.15;
  margin: 0;
}
.page-home p { line-height: 1.65; margin: 0; }

.page-home .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--h-green-700);
  margin: 0 0 0.85rem;
}
.page-home .eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--h-ochre);
}
.page-home .eyebrow--center { justify-content: center; }
.page-home .eyebrow--light { color: var(--h-gold); }
.page-home .eyebrow--light::before { background: var(--h-gold); }

.page-home .section-head {
  max-width: 660px;
  margin: 0 0 2.75rem;
}
.page-home .section-head--center { margin-inline: auto; text-align: center; }
.page-home .section-head h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 700;
  margin-bottom: 0.7rem;
}

.page-home .wrap {
  width: 100%;
  max-width: var(--h-maxw);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

/* ---------- 3. Hero, Pilares e Projetos ---------- */
.page-home .hero {
  background: linear-gradient(180deg, var(--h-paper) 0%, var(--h-cream) 100%);
  border-bottom: 1px solid var(--h-sand-line);
}
.page-home .hero__inner {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(2.75rem, 6vw, 5rem);
}
.page-home .hero__title {
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  font-weight: 700;
  line-height: 1.07;
  color: var(--h-green-900);
  margin-bottom: 1.15rem;
}
.page-home .hero__title .accent { color: var(--h-green-700); }
.page-home .hero__lead {
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: var(--h-ink-soft);
  max-width: 34rem;
  margin-bottom: 1.9rem;
}
.page-home .hero__actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.page-home .hero__note { margin-top: 1.4rem; font-size: 0.9rem; color: var(--h-ink-faint); }

.page-home .hero__media {
  position: relative;
  border-radius: var(--h-radius);
  overflow: hidden;
  border: 1px solid var(--h-sand-line);
  box-shadow: var(--h-shadow-soft);
  aspect-ratio: 4 / 3;
  background: var(--h-green-050);
}
.page-home .hero__media img { width: 100%; height: 100%; object-fit: cover; }

.page-home .pillars { padding-block: clamp(3rem, 6vw, 5rem); background: var(--h-paper); }
.page-home .pillars__grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.page-home .pillar { padding: 0.25rem clamp(1.25rem, 2.5vw, 2rem); border-left: 1px solid var(--h-line); }
.page-home .pillar:first-child { border-left: 0; padding-left: 0; }
.page-home .pillar__num { display: block; font-size: 0.85rem; font-weight: 700; color: var(--h-ochre); margin-bottom: 0.9rem; }
.page-home .pillar h3 { font-size: 1.22rem; font-weight: 700; margin-bottom: 0.55rem; }

.page-home .projects { padding-block: clamp(3rem, 6vw, 5rem); background: var(--h-cream); border-top: 1px solid var(--h-sand-line); border-bottom: 1px solid var(--h-sand-line); }
.page-home .projects__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; max-width: 980px; }
.page-home .project { display: flex; flex-direction: column; background: var(--h-paper); border: 1px solid var(--h-line); border-radius: var(--h-radius); overflow: hidden; }
.page-home .project__media { position: relative; aspect-ratio: 16 / 10; background: var(--h-green-050); display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--h-line); }
.page-home .project__media img, .page-home .project__media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.page-home .project__tag { position: absolute; top: 0.8rem; left: 0.8rem; background: var(--h-green-800); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 0.28rem 0.65rem; border-radius: var(--h-radius-sm); }
.page-home .project__body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }

/* ---------- 4. SEÇÃO "FAÇA PARTE" (CTA) RESTAURADA ---------- */
.page-home .cta {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: transparent !important;
}
.page-home .cta h2,
.page-home #cta-title {
  color: #18251e !important; /* Texto escuro perfeitamente visível */
  font-size: 1.8rem !important;
  font-weight: 700 !important;
  margin-bottom: 0.5rem !important;
}
.page-home .cta p {
  color: #5e6d64 !important; /* Parágrafo escuro perfeitamente visível */
  font-size: 1.05rem !important;
}

/* ---------- 5. RODAPÉ: USA O PADRÃO DO MAIN.CSS ---------- */
/* O home.css NÃO deve sobrescrever o rodapé. O estilo canônico (grafite,
   grid 2fr 1fr 1fr, etc.) vive em main.css e vale para todas as páginas.
   Qualquer regra legada com cores brancas/invisíveis ou "all: unset" foi
   removida para não quebrar o layout do grid nem apagar as cores. */

/* ---------- 6. Responsividade da Home ---------- */
@media (max-width: 960px) {
  .page-home .hero__inner { grid-template-columns: 1fr; }
  .page-home .hero__media { order: -1; aspect-ratio: 16 / 10; }
}
@media (max-width: 760px) {
  .page-home .pillars__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .page-home .pillar { border-left: 0; padding-left: 0; padding-top: 1.5rem; border-top: 1px solid var(--h-line); }
  .page-home .pillar:first-child { padding-top: 0; border-top: 0; }
  .page-home .projects__grid { grid-template-columns: 1fr; }
}