/* ═══════════════════════════════════════════════════════════
   CASA DA FILOSOFIA — Projeto Viva
   Espaço institucional da Arquitetura de Inteligência
   ═══════════════════════════════════════════════════════════ */

.cf-hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 10rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cf-hero .container {
  position: relative;
  z-index: 2;
  max-width: 880px;
}

.cf-hero h1 {
  margin: 0.8rem 0 1.5rem;
}

.cf-hero__lead {
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Fundamentos — grade de quatro princípios */
.cf-fundamentos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(201, 162, 39, 0.18);
}

.cf-fundamento {
  background: #0a1628;
  padding: 2.25rem;
  min-height: 260px;
}

.cf-fundamento span {
  color: var(--color-gold);
  font-family: var(--font-display, serif);
  font-size: 2rem;
  opacity: 0.6;
}

.cf-fundamento h3 {
  font-family: var(--font-display, serif);
  font-size: 1.3rem;
  margin: 1.5rem 0 1rem;
}

.cf-fundamento p {
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Arquitetura — oito camadas */
.cf-camadas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.cf-camada {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(201, 162, 39, 0.2);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.35s, transform 0.35s, background-color 0.35s;
}

.cf-camada:hover {
  border-color: rgba(201, 162, 39, 0.6);
  background: rgba(201, 162, 39, 0.05);
  transform: translateY(-4px);
}

.cf-camada__number {
  color: var(--color-gold);
  font-family: var(--font-display, serif);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.cf-camada__name {
  font-family: var(--font-display, serif);
  font-size: 1.05rem;
  color: #fff;
}

/* Nova Atlântida — pergunta orientadora */
.cf-question {
  font-family: var(--font-display, serif);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.55;
  color: var(--color-gold);
  margin: 2.5rem 0 0;
  padding-left: 1.5rem;
  border-left: 2px solid rgba(201, 162, 39, 0.4);
}

/* Presença conversacional */
.cf-presence__status {
  margin-top: 2rem;
}

.cf-presence__status span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border: 1px dashed rgba(201, 162, 39, 0.5);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
}

.cf-presence__status span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
}

/* Posição no ecossistema */
.cf-position-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin: 2.5rem 0;
}

.cf-position-node {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  max-width: 100%;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(201, 162, 39, 0.35);
  border-radius: 999px;
  font-family: var(--font-display, serif);
  font-size: 1.05rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
  transition: border-color 0.3s, background-color 0.3s;
}

a.cf-position-node:hover {
  border-color: var(--color-gold);
  background: rgba(201, 162, 39, 0.08);
}

.cf-position-node--current {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: #000;
  font-weight: 600;
}

.cf-position-arrow {
  color: var(--color-gold);
  font-size: 1.25rem;
  line-height: 1;
}

.cf-position-note {
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
}

/* Encerramento */
.cf-closing {
  text-align: center;
}

@media (max-width: 1024px) {
  .cf-fundamentos {
    grid-template-columns: repeat(2, 1fr);
  }

  .cf-camadas {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cf-hero {
    min-height: auto;
    padding-top: 8.5rem;
  }

  .cf-fundamentos {
    grid-template-columns: 1fr;
  }

  .cf-fundamento {
    min-height: auto;
  }

  .cf-camadas {
    grid-template-columns: 1fr;
  }

  .cf-position-node {
    min-width: 0;
    width: 100%;
  }
}
