/* ══════════════════════════════════════════════════════════
   UTR Itapuã do Oeste — Folha de estilo principal
   Paleta extraída da logomarca oficial do cliente.
   ══════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --verde-esc: #1b4332;
  --verde:     #2d6a4f;
  --verde-cl:  #52b788;
  --dourado:   #c9a227;
  --terra:     #8b5e3c;
  --carvao:    #1a1a2e;
  --cinza-cl:  #f4f1ec;
  --branco:    #ffffff;
  --txt:       #2c2c2c;
  --radius:    12px;
  --sombra:    0 4px 24px rgba(0,0,0,.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--txt);
  background: var(--branco);
  line-height: 1.7;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 999;
  background: rgba(26,26,46,.92);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6vw; height: 72px;
}
.nav-logo { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--branco); font-size: 1.6rem; line-height: 1; padding: 4px 8px;
}
nav ul { list-style: none; display: flex; gap: 1.8rem; }
nav ul a {
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: .88rem; letter-spacing: .3px; transition: color .2s;
}
nav ul a:hover { color: var(--verde-cl); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(160deg, rgba(26,26,46,.78) 0%, rgba(27,67,50,.65) 100%),
    url('../assets/img/banner-hero.jpg') center/cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 6vw 80px;
}
.hero-logo { width: min(320px, 70vw); margin-bottom: 2rem; }
.hero-badge {
  display: inline-block;
  background: var(--verde-cl); color: var(--carvao);
  font-size: .75rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 4px 14px; border-radius: 50px;
  margin-bottom: 1.4rem;
}
#hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--branco); font-weight: 800; line-height: 1.15;
  max-width: 820px; margin-bottom: 1.2rem;
}
#hero h1 em { color: var(--verde-cl); font-style: normal; }
#hero p {
  color: rgba(255,255,255,.85); font-size: 1.15rem;
  max-width: 580px; margin-bottom: 2.4rem;
}

.btn {
  display: inline-block; padding: 14px 36px;
  background: var(--verde-cl); color: var(--carvao);
  font-weight: 700; font-size: 1rem; border-radius: 50px;
  text-decoration: none; border: none; cursor: pointer;
  font-family: inherit;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(82,183,136,.45); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* Botão secundário: contorno, para não competir com o primário */
.btn-secundario {
  background: transparent;
  color: var(--branco);
  border: 2px solid rgba(255,255,255,.55);
  padding: 12px 34px;
}
.btn-secundario:hover {
  background: rgba(255,255,255,.12);
  border-color: var(--branco);
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 1rem;
  align-items: center; justify-content: center;
}

/* ── NÚMEROS ── */
.numeros {
  background: var(--verde);
  display: flex; flex-wrap: wrap; justify-content: center;
}
.num-item {
  flex: 1 1 200px; text-align: center;
  padding: 2.5rem 2rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.num-item:last-child { border-right: none; }
.num-item strong {
  display: block; font-size: 2.4rem; font-weight: 800;
  color: var(--verde-cl); line-height: 1;
}
.num-item span { color: rgba(255,255,255,.8); font-size: .9rem; margin-top: .4rem; display: block; }

/* ── SECTION BASE ── */
section { padding: 90px 6vw; }
section:nth-of-type(even) { background: var(--cinza-cl); }
.section-tag {
  display: inline-block;
  background: var(--verde-cl); color: var(--carvao);
  font-size: .7rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; padding: 3px 12px; border-radius: 50px;
  margin-bottom: .8rem;
}
h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--carvao); font-weight: 800; line-height: 1.2;
  margin-bottom: 1.2rem; max-width: 640px;
}
.lead { font-size: 1.05rem; color: #555; max-width: 680px; margin-bottom: 2rem; }

/* ── REVEAL AO SCROLL ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visivel { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── QUEM SOMOS (banner de fundo 1500x700) ──
   O texto fica à esquerda, sobre a metade mais escura da imagem.
   O gradiente da esquerda para a direita garante contraste do
   texto claro mesmo se a foto tiver áreas mais iluminadas. */
#quem-somos {
  position: relative;
  /* A foto já é escura à esquerda (só solo); um véu leve basta
     para o contraste, sem apagar a textura do solo. */
  background:
    linear-gradient(100deg,
      rgba(12,10,8,.72) 0%,
      rgba(12,10,8,.62) 40%,
      rgba(12,10,8,.30) 68%,
      rgba(12,10,8,.10) 100%),
    url('../assets/img/banner-quem-somos.png') center/cover no-repeat;
  background-color: var(--carvao); /* cor de espera enquanto a foto carrega */
  padding: 110px 6vw;
}

/* Duas colunas: texto à esquerda, vídeo à direita. */
.quem-conteudo {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
/* A coluna do vídeo precisa esticar para a altura ser resolvida:
   com align-items:center ela encolheria e a moldura viraria uma
   faixa fina. */
.quem-video-col { align-self: stretch; width: 100%; }

/* Todos os blocos com a MESMA largura e alinhados à esquerda:
   as regras globais dão larguras diferentes (h2 640px, lead 680px),
   o que fazia cada linha quebrar num ponto e parecer desalinhado. */
#quem-somos .section-tag,
#quem-somos h2,
#quem-somos .lead,
#quem-somos .quem-texto,
#quem-somos .valores {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
}

/* Cores claras sobre o solo escuro */
#quem-somos h2 {
  color: var(--branco);
  text-shadow: 0 2px 12px rgba(0,0,0,.5);
}
#quem-somos .lead {
  color: rgba(255,255,255,.92);
  margin-bottom: 1.4rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
.quem-texto {
  color: rgba(255,255,255,.78);
  font-size: .98rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.45);
}
#quem-somos .chip {
  background: rgba(82,183,136,.22);
  border: 1px solid rgba(82,183,136,.55);
  color: #d8f3dc;
  backdrop-filter: blur(4px);
}
/* ── VÍDEO INSTITUCIONAL (Quem Somos) ── */
.video-legenda {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--verde-cl);
  margin-bottom: .9rem;
}
.video-moldura {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
  border: 1px solid rgba(82,183,136,.28);
  background: #000;
  aspect-ratio: 16/9;
}

/* Capa clicável (antes de carregar o YouTube) */
.video-capa {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  padding: 0; border: none; cursor: pointer;
  background: #000; display: block;
}
.video-capa img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease, filter .3s ease;
}
.video-capa:hover img { transform: scale(1.04); filter: brightness(.82); }

.video-play {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--verde-cl); color: var(--carvao);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(0,0,0,.45);
  transition: transform .25s ease, background .25s ease;
  padding-left: 4px; /* centra o triângulo opticamente */
}
.video-capa:hover .video-play,
.video-capa:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.1);
  background: var(--branco);
}
.video-capa:focus-visible { outline: 3px solid var(--verde-cl); outline-offset: 3px; }

/* Iframe do YouTube, criado no clique */
.video-iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0; display: block;
}


.valores { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.6rem; }
.chip {
  background: var(--verde); color: var(--branco);
  padding: 6px 16px; border-radius: 50px; font-size: .85rem; font-weight: 600;
}

/* ── CARDS ── */
.projeto-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem; max-width: 1100px; margin: 2.5rem auto 0;
}
.card {
  background: var(--branco); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--sombra);
  transition: transform .25s;
}
.card:hover { transform: translateY(-4px); }
/* Sem o ícone, um traço curto marca o topo do card e mantém
   a hierarquia visual que o emoji dava. */
.card h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--verde);
  margin-bottom: .6rem; padding-top: .9rem;
  position: relative;
}
.card h3::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 34px; height: 3px; border-radius: 2px;
  background: var(--verde-cl);
}
.card p { font-size: .9rem; color: #555; line-height: 1.6; }

/* ── ECONOMIA CIRCULAR ── */
.ec-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5vw; align-items: center; max-width: 1100px; margin: 0 auto;
}
.ec-destaque {
  background: var(--verde); color: #fff;
  border-radius: var(--radius); padding: 1.4rem 1.8rem;
  margin-top: 1.6rem; font-size: .92rem; line-height: 1.7;
  border-left: 4px solid var(--dourado);
}
.ec-destaque strong { color: var(--verde-cl); display: block; margin-bottom: .4rem; font-size: 1rem; }

/* Diagrama do ciclo (SVG inline) */
.ciclo-svg {
  width: 100%; height: auto; display: block;
  background: var(--branco); border-radius: var(--radius);
  box-shadow: var(--sombra); padding: 1rem;
}

/* ── TECNOLOGIA ── */
.tec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem; max-width: 1100px; margin: 2.5rem auto 0;
}
.tec-card {
  background: var(--branco); border-radius: var(--radius);
  box-shadow: var(--sombra); overflow: hidden; transition: transform .25s;
}
.tec-card:hover { transform: translateY(-4px); }
.tec-fig {
  width: 100%; aspect-ratio: 4/3;
  background: linear-gradient(135deg, #e8f5e9, #d3e9d7);
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; overflow: hidden;
}
/* A imagem preenche o quadro; se o arquivo faltar, o emoji
   de reserva reaparece centralizado no lugar dela. */
.tec-fig img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.tec-body { padding: 1.4rem 1.6rem; }
.tec-body h3 { font-size: 1rem; font-weight: 700; color: var(--verde); margin-bottom: .5rem; }
.tec-body p { font-size: .88rem; color: #555; line-height: 1.65; }

/* ── JORNADA (etapas numeradas) ── */
#jornada { background: var(--carvao); }
#jornada h2 { color: var(--branco); }
#jornada .lead { color: rgba(255,255,255,.7); }
.jornada-inner { max-width: 1100px; margin: 0 auto; }
.jornada-head { margin-bottom: 3.5rem; }

.jornada-etapas {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  counter-reset: etapa;
}

.etapa {
  position: relative;
  padding: 0 1.2rem;
}

/* Linha do processo ligando uma etapa à seguinte */
.etapa::before {
  content: "";
  position: absolute;
  top: 26px; left: 50%; right: -50%;
  height: 2px;
  background: linear-gradient(90deg, var(--verde-cl), rgba(82,183,136,.15));
}
.etapa:last-child::before { display: none; }

.etapa-num {
  position: relative;
  z-index: 1;
  width: 54px; height: 54px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
  background: var(--carvao);
  border: 2px solid var(--verde-cl);
  color: var(--verde-cl);
  font-size: 1.05rem; font-weight: 800; letter-spacing: .5px;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, color .25s, transform .25s;
}
.etapa:hover .etapa-num {
  background: var(--verde-cl);
  color: var(--carvao);
  transform: translateY(-3px);
}

.etapa-corpo { text-align: center; }
.etapa-corpo h3 {
  font-size: .98rem; font-weight: 700;
  color: var(--branco); margin-bottom: .55rem;
}
.etapa-corpo p {
  font-size: .85rem; line-height: 1.65;
  color: rgba(255,255,255,.62);
}

/* ── ONDE ESTAMOS ── */
.onde-wrap {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5vw; align-items: start; max-width: 1100px; margin: 0 auto;
}
.locais { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; }
.locais li {
  display: flex; align-items: flex-start; gap: .8rem;
  background: var(--branco); padding: 1.2rem 1.4rem;
  border-radius: var(--radius); box-shadow: 0 2px 12px rgba(0,0,0,.07);
  border-left: 4px solid var(--verde-cl);
}
.locais .pin { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.locais strong { display: block; font-weight: 700; color: var(--verde); margin-bottom: .2rem; }
.locais span { font-size: .88rem; color: #555; }
.mapa-col { display: flex; flex-direction: column; gap: 12px; }
.mapa-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--sombra); }
.mapa-titulo {
  background: var(--verde); color: #fff; font-size: .75rem; font-weight: 700;
  letter-spacing: 1px; padding: 7px 14px; text-transform: uppercase;
}
.mapa-card iframe { width: 100%; height: 300px; border: 0; display: block; }
.mapa-credito {
  background: var(--cinza-cl); padding: 6px 12px;
  font-size: .75rem; color: #777; text-align: right;
}
.mapa-credito a { color: var(--verde); }

/* ── O QUE FAZEMOS ── */
.fazemos-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem; max-width: 1100px; margin: 2.5rem auto 0;
}
.faz-item {
  display: flex; flex-direction: column;
  background: var(--carvao); color: var(--branco);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--sombra); transition: transform .25s;
}
.faz-item:hover { transform: translateY(-4px); }
.faz-body { padding: 2rem 1.8rem; flex: 1; }
.faz-body h3 {
  font-size: 1.1rem; font-weight: 700; color: var(--verde-cl);
  margin-bottom: .6rem; padding-bottom: .8rem;
  border-bottom: 2px solid rgba(82,183,136,.25);
}
.faz-body p { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.65; }

/* ── GALERIA ── */
#galeria { background: var(--carvao); }
#galeria h2 { color: var(--branco); }
#galeria .lead { color: rgba(255,255,255,.65); }
.galeria-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px; max-width: 1200px; margin: 2rem auto 0;
}
.galeria-grid img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: 8px; cursor: pointer;
  transition: transform .25s, filter .25s;
}
.galeria-grid img:hover { transform: scale(1.03); filter: brightness(1.08); }

/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center; cursor: pointer;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 88vh; border-radius: 8px; }
#lightbox .fechar {
  position: absolute; top: 20px; right: 28px;
  color: #fff; font-size: 2.4rem; line-height: 1;
  background: none; border: none; cursor: pointer;
}

/* ── CONTATO ── */
#contato { background: var(--verde); }
#contato h2 { color: var(--branco); }
#contato .lead { color: rgba(255,255,255,.8); }
.contato-flex {
  display: flex; flex-wrap: wrap; gap: 3rem;
  max-width: 900px; margin: 2rem auto 0; align-items: flex-start;
}
.contato-info { flex: 1 1 260px; display: flex; flex-direction: column; gap: 1.2rem; }
.contato-linha {
  display: flex; align-items: center; gap: .8rem;
  color: rgba(255,255,255,.9); font-size: .95rem;
}
.contato-linha .ico { font-size: 1.4rem; }
.contato-linha a { color: rgba(255,255,255,.9); }
.contato-form { flex: 1 1 320px; display: flex; flex-direction: column; gap: .8rem; }
.contato-form input, .contato-form textarea {
  padding: 12px 16px; border-radius: 8px; border: none;
  font-family: inherit; font-size: .95rem;
  background: rgba(255,255,255,.95); color: var(--txt); width: 100%;
}
.contato-form textarea { min-height: 110px; resize: vertical; }
.contato-form .btn { align-self: flex-start; background: var(--carvao); color: var(--branco); }
.contato-form .btn:hover:not(:disabled) { background: #2d2d4a; }

/* Campo honeypot: escondido de gente, visível para bots */
.hp-campo {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

/* Feedback do formulário */
.form-status {
  font-size: .9rem; padding: .8rem 1rem; border-radius: 8px;
  display: none; line-height: 1.5;
}
.form-status.mostrar { display: block; }
.form-status.ok   { background: rgba(82,183,136,.2); color: #d8f3dc; border-left: 4px solid var(--verde-cl); }
.form-status.erro { background: rgba(255,90,90,.18); color: #ffd8d8; border-left: 4px solid #ff6b6b; }

/* ── FOOTER ── */
footer {
  background: var(--carvao); color: rgba(255,255,255,.5);
  text-align: center; padding: 2.4rem 6vw; font-size: .82rem;
}
footer img { height: 46px; margin-bottom: 1rem; }
footer strong { color: var(--verde-cl); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .onde-wrap, .ec-wrap { grid-template-columns: 1fr; }
  /* Vídeo empilha abaixo do texto em tela estreita. */
  .quem-conteudo { grid-template-columns: 1fr; }
  .quem-texto-col { padding-right: 0; }
}
@media (max-width: 768px) {
  section { padding: 70px 6vw; }

  /* Jornada vira lista vertical: número à esquerda, texto ao lado,
     e a linha do processo passa a ser vertical. */
  .jornada-etapas { grid-template-columns: 1fr; gap: 0; }
  .etapa {
    display: grid; grid-template-columns: 54px 1fr;
    gap: 1.1rem; padding: 0 0 2rem 0;
  }
  .etapa::before {
    top: 54px; bottom: 0; left: 26px; right: auto;
    width: 2px; height: auto;
    background: linear-gradient(180deg, var(--verde-cl), rgba(82,183,136,.15));
  }
  .etapa:last-child { padding-bottom: 0; }
  .etapa-num { margin: 0; }
  .etapa-corpo { text-align: left; padding-top: .5rem; }

  /* Em tela estreita o texto usa a largura toda e o véu fica
     uniforme, já que não há espaço para "metade da imagem". */
  #quem-somos { padding: 80px 6vw; }
  .quem-conteudo { padding-right: 0; }
  #quem-somos {
    background:
      linear-gradient(rgba(12,10,8,.78), rgba(12,10,8,.78)),
      url('../assets/img/banner-quem-somos.png') center/cover no-repeat;
    background-color: var(--carvao);
  }
  .nav-toggle { display: block; }
  nav ul {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(26,26,46,.98); padding: 0;
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  nav ul.aberto { max-height: 420px; }
  nav ul li { border-top: 1px solid rgba(255,255,255,.08); }
  nav ul a { display: block; padding: 14px 6vw; }
  .num-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.12); }
}
