/* ========================================
   PÁGINA PROJETOS - ESPAÇO GAIA
======================================== */

/* ==========================================
   FONTES
========================================== */

@font-face {
  font-family: "TanBuste";
  src: url("fonts/TANBUSTER-fonts.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "AristotelicaPro";
  src: url("fonts/Zetafonts - Aristotelica Pro Text Extralight.otf")
    format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "TanParadiso";
  src: url("fonts/TAN-PARADISO.ttf") format("truetype");
  font-display: swap;
}

.gaia-projetos {
  --gp-fundo: #faf7f2;
  --gp-texto: #302b2a;
  --gp-suave: #665e5a;
  --gp-teia: #a65364;
  --gp-verde: #39744e;

  background: var(--gp-fundo);
  color: var(--gp-texto);
  overflow: hidden;
  font-family: "AristotelicaPro", sans-serif;
}

.gaia-projetos *,
.gaia-projetos *::before,
.gaia-projetos *::after {
  box-sizing: border-box;
}

.gaia-projetos img {
  display: block;
  max-width: 100%;
}

.gaia-projetos a {
  text-decoration: none;
}

.gp-container {
  width: min(1180px, 90%);
  margin: 0 auto;
}

/* ========================================
   HERO
======================================== */

.gp-hero {
  min-height: 70vh;
  padding: 110px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(rgba(30, 22, 22, 0.72), rgba(30, 22, 22, 0.72)),
    url("imagem/hero-projetos.jpg") center/cover no-repeat;
  color: #fff;
}

.gp-hero-conteudo {
  max-width: 850px;
}

.gp-etiqueta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.gp-hero .gp-etiqueta {
  color: #f3c4cd;
}

.gp-hero h1 {
  font-family: "TanBuste", serif;
  font-size: clamp(34px, 5vw, 65px);
  font-weight: 400;
  line-height: 1.15;
  margin: 22px 0;
}

.gp-hero p {
  max-width: 650px;
  margin: 0 auto 35px;
  line-height: 1.8;
  font-size: 17px;
  color: #f5eeee;
}

.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 16px 28px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 700;
  transition: 0.3s ease;
}

.gp-btn-principal {
  background: #b75e70;
  color: #fff;
}

.gp-btn-principal:hover {
  background: #954454;
  transform: translateY(-3px);
}

/* ========================================
   EIXOS
======================================== */

.gp-eixo {
  padding: 110px 0;
}

.gp-teia {
  --gp-cor-eixo: #a65364;
  --gp-cor-clara: #f9edf0;
  background: #fffaf8;
}

.gp-ecolab {
  --gp-cor-eixo: #39744e;
  --gp-cor-clara: #edf5eb;
  background: #f3f7ef;
}

/* ========================================
   APRESENTAÇÃO DO EIXO
======================================== */

.gp-apresentacao {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.gp-apresentacao-inversa .gp-apresentacao-texto {
  order: 2;
}

.gp-apresentacao-inversa .gp-apresentacao-imagem {
  order: 1;
}

.gp-apresentacao-texto .gp-etiqueta {
  color: var(--gp-cor-eixo);
}

.gp-apresentacao-texto h2 {
  font-family: "TanBuste", serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.25;
  margin: 20px 0 25px;
}

.gp-apresentacao-texto p {
  color: var(--gp-suave);
  font-size: 16px;
  line-height: 1.85;
  margin: 0 0 17px;
}

.gp-apresentacao-imagem {
  position: relative;
}

.gp-apresentacao-imagem img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  border-radius: 20px;
}

.gp-imagem-legenda {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 15px 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--gp-cor-eixo);
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* ========================================
   TÍTULOS DOS PROJETOS
======================================== */

.gp-projetos-titulo {
  max-width: 680px;
  text-align: center;
  margin: 110px auto 45px;
}

.gp-projetos-titulo .gp-etiqueta {
  color: var(--gp-cor-eixo);
}

.gp-projetos-titulo h3 {
  font-family: "TanBuste", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  margin: 15px 0;
}

.gp-projetos-titulo p {
  color: var(--gp-suave);
  font-size: 16px;
  line-height: 1.8;
}

/* ========================================
   GRID DOS CARDS
======================================== */

.gp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.gp-grid-ecolab {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 850px;
  margin: 0 auto;
}

/* ========================================
   CARD DO PROJETO
======================================== */

.gp-card {
  min-width: 0;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.045);
  transition:
    transform 0.35s,
    box-shadow 0.35s;
}

.gp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.1);
}

.gp-card-imagem {
  height: 245px;
  position: relative;
  overflow: hidden;
}

.gp-card-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.gp-card:hover .gp-card-imagem img {
  transform: scale(1.07);
}

.gp-card-categoria {
  position: absolute;
  top: 18px;
  left: 18px;
  background: var(--gp-cor-eixo);
  color: #fff;
  padding: 8px 17px;
  border-radius: 30px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}

.gp-card-conteudo {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.gp-card-numero {
  font-size: 12px;
  letter-spacing: 1.5px;
  font-weight: 700;
  color: var(--gp-cor-eixo);
}

.gp-card h4 {
  font-family: "TanBuste", serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.3;
  margin: 14px 0 18px;
}

.gp-card p {
  color: var(--gp-suave);
  font-size: 14px;
  line-height: 1.8;
  margin: 0 0 15px;
}

.gp-btn-card {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-top: auto;
  padding: 14px 20px;
  background: var(--gp-cor-clara);
  color: var(--gp-cor-eixo);
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  transition: 0.3s;
}

.gp-btn-card:hover {
  background: var(--gp-cor-eixo);
  color: #fff;
}

/* ========================================
   TRANSIÇÃO
======================================== */

.gp-transicao {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #fffaf8 50%, #f3f7ef 50%);
}

.gp-transicao span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: #fff;
  color: #56805c;
  font-size: 35px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* ========================================
   CTA FINAL
======================================== */

.gp-cta {
  padding: 100px 20px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #813d50, #ad6574);
}

.gp-cta-conteudo {
  max-width: 770px;
}

.gp-cta .gp-etiqueta {
  color: #ffe1e7;
}

.gp-cta h2 {
  font-family: "TanBuste", serif;
  font-size: clamp(30px, 4vw, 47px);
  font-weight: 400;
  line-height: 1.25;
  margin: 22px 0;
}

.gp-cta p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 30px;
  color: #fff0f2;
}

.gp-cta .gp-btn-principal {
  background: #fff;
  color: #8d4557;
}

.gp-cta .gp-btn-principal:hover {
  background: #f8e6e9;
}

/* ========================================
   ANIMAÇÕES
======================================== */

.gp-revelar {
  opacity: 0;
  transform: translateY(35px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.gp-revelar.gp-visivel {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   RESPONSIVO - TABLET
======================================== */

@media (max-width: 1024px) {
  .gp-apresentacao {
    gap: 35px;
  }

  .gp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-card-imagem {
    height: 230px;
  }

  .gp-eixo {
    padding: 85px 0;
  }
}

/* ========================================
   RESPONSIVO - CELULAR
======================================== */

@media (max-width: 768px) {
  .gp-container {
    width: 90%;
  }

  .gp-hero {
    min-height: 65vh;
    padding: 85px 15px;
  }

  .gp-hero h1 {
    font-size: clamp(30px, 7vw, 43px);
  }

  .gp-hero p {
    font-size: 15px;
  }

  .gp-eixo {
    padding: 70px 0;
  }

  .gp-apresentacao {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .gp-apresentacao-inversa .gp-apresentacao-texto,
  .gp-apresentacao-inversa .gp-apresentacao-imagem {
    order: initial;
  }

  .gp-apresentacao-imagem img {
    height: 330px;
  }

  .gp-apresentacao-texto h2 {
    font-size: 32px;
  }

  .gp-apresentacao-texto p {
    font-size: 15px;
  }

  .gp-projetos-titulo {
    margin: 75px auto 35px;
  }

  .gp-grid,
  .gp-grid-ecolab {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }

  .gp-card-imagem {
    height: 245px;
  }

  .gp-cta {
    padding: 75px 15px;
  }

  .gp-cta h2 {
    font-size: 32px;
  }
}

/* ========================================
   RESPONSIVO - CELULAR PEQUENO
======================================== */

@media (max-width: 400px) {
  .gp-hero h1 {
    font-size: 29px;
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .gp-etiqueta {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .gp-btn {
    padding: 14px 20px;
    font-size: 13px;
  }

  .gp-apresentacao-texto h2 {
    font-size: 28px;
  }

  .gp-apresentacao-imagem img {
    height: 260px;
  }

  .gp-imagem-legenda {
    font-size: 12px;
    padding: 12px;
  }

  .gp-projetos-titulo h3 {
    font-size: 27px;
  }

  .gp-card-imagem {
    height: 210px;
  }

  .gp-card-conteudo {
    padding: 23px;
  }

  .gp-card h4 {
    font-size: 23px;
  }

  .gp-cta h2 {
    font-size: 28px;
  }
}

/* ACESSIBILIDADE */

.gaia-projetos a:focus-visible {
  outline: 3px solid #d08b9b;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .gp-revelar,
  .gp-card,
  .gp-card-imagem img,
  .gp-btn,
  .gp-btn-card {
    transition: none;
  }

  .gp-revelar {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   OBSERVATÓRIO POPULAR
======================================== */

.gp-observatorio {
  background: #202b2c;
  padding: 110px 0;
  position: relative;
  overflow: hidden;
}

.gp-observatorio::before {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: rgba(207, 165, 91, 0.07);
  top: -200px;
  right: -150px;
  pointer-events: none;
}

.gp-observatorio-conteudo {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 75px;
}

/* IMAGEM */

.gp-observatorio-imagem {
  position: relative;
}

.gp-observatorio-imagem img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 18px;
}

.gp-observatorio-legenda {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  padding: 15px 18px;
  background: rgba(20, 30, 30, 0.9);
  color: #f0d49f;
  text-align: center;
  font-size: 14px;
  border-radius: 10px;
  font-family: "AristotelicaPro", sans-serif;
}

/* TEXTO */

.gp-observatorio-texto {
  color: #fff;
}

.gp-observatorio-tag {
  display: inline-block;
  color: #e2bd76;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.gp-observatorio-texto h2 {
  font-family: "TanBuste", serif;
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 25px;
  color: #fff;
}

.gp-observatorio-texto h2 span {
  display: block;
  color: #dfbc7b;
}

.gp-observatorio-texto p {
  font-family: "AristotelicaPro", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #e0e5e2;
  margin-bottom: 17px;
}

/* BOTÃO */

.gp-observatorio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: #d6ad68;
  color: #252525;
  padding: 16px 27px;
  border-radius: 35px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 18px;
  text-decoration: none;
  transition: 0.3s ease;
}

.gp-observatorio-btn:hover {
  background: #efcb8c;
  transform: translateY(-3px);
}

.gp-observatorio-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

/* ========================================
   RESPONSIVO - TABLET
======================================== */

@media (max-width: 1024px) {
  .gp-observatorio-conteudo {
    gap: 40px;
  }

  .gp-observatorio-imagem img {
    height: 420px;
  }
}

/* ========================================
   RESPONSIVO - CELULAR
======================================== */

@media (max-width: 768px) {
  .gp-observatorio {
    padding: 75px 0;
  }

  .gp-observatorio-conteudo {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .gp-observatorio-imagem img {
    height: 340px;
  }

  .gp-observatorio-texto h2 {
    font-size: 32px;
  }

  .gp-observatorio-texto p {
    font-size: 15px;
  }
}

/* ========================================
   RESPONSIVO - CELULAR PEQUENO
======================================== */

@media (max-width: 400px) {
  .gp-observatorio {
    padding: 60px 0;
  }

  .gp-observatorio-imagem img {
    height: 260px;
  }

  .gp-observatorio-legenda {
    font-size: 12px;
    padding: 12px;
  }

  .gp-observatorio-texto h2 {
    font-size: 28px;
    overflow-wrap: break-word;
  }

  .gp-observatorio-tag {
    font-size: 10px;
    letter-spacing: 1.3px;
  }

  .gp-observatorio-btn {
    padding: 14px 20px;
    font-size: 13px;
    gap: 12px;
  }
}

/* ========================================
   TEIA - 4 PROJETOS
======================================== */

.gp-teia .gp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 900px;
  gap: 28px;
  margin: 0 auto;
}

/* ========================================
   ECOLAB - 3 PROJETOS
======================================== */

.gp-ecolab .gp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1180px;
  gap: 28px;
  margin: 0 auto;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 1024px) {
  .gp-ecolab .gp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ========================================
   CELULAR
======================================== */

@media (max-width: 768px) {
  .gp-teia .gp-grid,
  .gp-ecolab .gp-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 25px;
  }
}

/* ========================================
   PÁGINA PROJETOS - REMOVER BORDAS BRANCAS
======================================== */

/* Remove margens externas da página */
html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Página principal de projetos */
.gaia-projetos {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
  border: none;
  box-shadow: none;
}

/* Todas as seções ocupam toda a largura */
.gaia-projetos > section {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

/* Mantém textos e cards organizados */
.gaia-projetos .gp-container {
  width: 90%;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Evita que elementos ultrapassem a largura */
.gaia-projetos,
.gaia-projetos * {
  box-sizing: border-box;
}
