/* ===========================
   RESET
   =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===========================
   VARIÁVEIS CLARAS E PREMIUM
   =========================== */
:root {
  --fundo-site: #F8F9FA;      /* Cinza gelo muito claro */
  --fundo-card: #FFFFFF;      /* Branco puro para os cards */
  --texto-titulo: #111111;    /* Quase preto para leitura */
  --texto-corpo: #555555;     /* Cinza médio */
  
  --verde-principal: #0F5C26; /* Verde escuro da logo */
  --verde-hover: #1B8A3A;     
  --cobre: #C08A5E;           /* Detalhe de luxo */
  --cobre-escuro: #A06B42;
  
  --vidro-bg: rgba(255, 255, 255, 0.85); /* Header de vidro claro */
  --borda-sutil: rgba(0, 0, 0, 0.08);

  /* Posição do botão de acessibilidade */
  --_access-icon-right: auto;
  --_access-icon-left: 20px;
  --_access-icon-bottom: 20px;
  --_access-icon-bg: #0F5C26;
  --_access-icon-color: #C08A5E;
}

body {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  color: var(--texto-corpo);
  line-height: 1.7;
  background: var(--fundo-site);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   BARRA DE PROGRESSO TOPO
   =========================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--verde-principal), var(--cobre));
  z-index: 9999;
  transition: width 0.1s ease-out;
}

/* ===========================
   HEADER (VIDRO CLARO FIXO)
   =========================== */
.header {
  background: var(--vidro-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.4s ease;
  border-bottom: 1px solid var(--borda-sutil);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(192, 138, 94, 0.3);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: height 0.4s ease;
}

.header.scrolled .container { height: 70px; }

.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 55px; width: auto; transition: height 0.4s ease, transform 0.3s ease; border-radius: 6px; }
.header.scrolled .logo-img { height: 45px; }
.logo-img:hover { transform: scale(1.05); }

.nav a {
  color: var(--texto-titulo);
  text-decoration: none;
  margin-left: 32px;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--verde-principal);
  transition: width 0.4s ease;
}

.nav a:hover { color: var(--verde-principal); }
.nav a:hover::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; color: var(--texto-titulo); font-size: 1.6rem; cursor: pointer; }

/* REDES SOCIAIS */
.social-header { display: flex; align-items: center; gap: 16px; margin-left: 24px; }
.social-header a { color: var(--texto-titulo); transition: color 0.3s ease, transform 0.3s ease; display: flex; align-items: center; }
.social-header a:hover { color: var(--cobre); transform: translateY(-2px); }

.social-footer { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; }
.social-footer a { color: var(--texto-corpo); transition: color 0.3s ease, transform 0.3s ease; display: flex; align-items: center; }
.social-footer a:hover { color: var(--verde-principal); transform: translateY(-3px); }

/* ===========================
   BOTÃO FLUTUANTE WHATSAPP
   =========================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: #25D366;
  border-radius: 50px;
  color: #FFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-float:hover { transform: translateY(-3px); background: #1EBE5A; }
.whatsapp-text { white-space: nowrap; }
.whatsapp-icon { display: flex; align-items: center; justify-content: center; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ===========================
   HERO COM VÍDEO
   =========================== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.hero-video.active { opacity: 1; }

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 140px; 
  padding-bottom: 80px;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.1;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6);
  animation: fadeUp 1s ease-out both;
}

.hero p {
  font-size: 1.25rem;
  color: #EAEAEA;
  max-width: 650px;
  margin: 0 auto 40px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
  animation: fadeUp 1s ease-out 0.3s both;
}

/* BOTÃO DO HERO (EFEITO VIDRO) */
.hero .btn {
  background: rgba(255, 255, 255, 0.15);
  color: #FFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  animation: fadeUp 1s ease-out 0.6s both;
  margin-top: 30px;
}

.hero .btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: #FFF;
}

/* ===========================
   ANIMAÇÕES E BOTÃO PADRÃO
   =========================== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.45s; }
.reveal-stagger.visible > * { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-block;
  padding: 18px 45px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* ===========================
   SEÇÕES E CARDS (FUNDO CLARO)
   =========================== */
.servicos, .financiamento, .portfolio, .sobre, .contato, .acompanhar { padding: 120px 0; position: relative; }
.servicos { background: var(--fundo-site); }
.financiamento { background: #FFFFFF; }
.portfolio { background: var(--fundo-site); }
.sobre { background: #FFFFFF; }
.contato { background: var(--fundo-site); }

.servicos h2, .portfolio h2, .sobre h2, .contato h2, .financiamento h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--texto-titulo);
  margin-bottom: 60px;
}

.servicos h2::after, .portfolio h2::after, .sobre h2::after, .contato h2::after, .financiamento h2::after {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--verde-principal);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* CARDS DE SERVIÇO */
.grid-servicos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }

.card-servico {
  background: var(--fundo-card);
  padding: 40px 30px;
  border-radius: 8px;
  border: 1px solid var(--borda-sutil);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.4s ease;
}

.card-servico:hover { transform: translateY(-8px); border-color: var(--cobre); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08); }
.card-servico h3 { color: var(--texto-titulo); margin-bottom: 14px; font-weight: 600; }
.card-servico p { color: var(--texto-corpo); }

/* FINANCIAMENTO */
.grid-passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px; margin-bottom: 50px; }
.passo {
  text-align: center; padding: 35px 25px; border-radius: 8px;
  background: var(--fundo-site); border: 1px solid var(--borda-sutil);
  transition: transform 0.4s ease, border-color 0.4s ease;
}
.passo:hover { transform: translateY(-6px); border-color: var(--verde-principal); }
.passo .numero {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--verde-principal); color: #FFF;
  font-weight: 700; font-size: 1.3rem; margin-bottom: 18px;
}
.passo h3 { color: var(--texto-titulo); margin-bottom: 10px; font-weight: 600; }
.passo p { color: var(--texto-corpo); font-size: 0.95rem; }
.destaque-financiamento {
  text-align: center; max-width: 800px; margin: 0 auto; padding: 30px;
  background: rgba(15, 92, 38, 0.05); color: var(--texto-titulo);
  border-radius: 8px; font-size: 1.1rem; border-left: 4px solid var(--verde-principal);
}
.destaque-financiamento strong { color: var(--verde-principal); }

/* PORTFÓLIO */
.grid-portfolio { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.obra { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; height: 300px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.obra img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.obra:hover img { transform: scale(1.08); }
.obra::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent 50%); opacity: 0.8; transition: opacity 0.5s ease; }
.obra p { position: absolute; bottom: 20px; left: 24px; color: #FFF; font-weight: 500; z-index: 2; transition: transform 0.4s ease; }

/* ===========================
   SEÇÃO SOBRE (ESTILO EDITORIAL)
   =========================== */
.sobre-novo {
  background: #111111;
  padding: 120px 0;
  color: #FFFFFF;
  overflow: hidden;
}

.sobre-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.tag-sobre {
  display: inline-block;
  color: #C08A5E;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.sobre-texto h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 24px;
  color: #FFFFFF;
  letter-spacing: -1px;
  text-align: left;
}

.sobre-texto h2 strong { color: #1B8A3A; font-weight: 700; }

.sobre-texto p {
  font-size: 1.1rem;
  color: #A0A0A0;
  margin-bottom: 30px;
  line-height: 1.8;
}

.sobre-lista { list-style: none; margin-bottom: 40px; }
.sobre-lista li { position: relative; padding-left: 30px; margin-bottom: 16px; color: #D0D0D0; font-size: 1.05rem; }
.sobre-lista li::before { content: '✓'; position: absolute; left: 0; color: #1B8A3A; font-weight: bold; }

.btn-sobre { background: #FFFFFF; color: #111111; border: 1px solid #FFFFFF; }
.btn-sobre:hover { background: transparent; color: #FFFFFF; }

.sobre-video-wrapper {
  position: relative; border-radius: 12px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  aspect-ratio: 16 / 9; 
  width: 100%;
}

.sobre-video { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 2; }

.sobre-palavra-fundo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-size: 8rem; font-weight: 900; color: rgba(255, 255, 255, 0.1);
  z-index: 3; pointer-events: none; white-space: nowrap; letter-spacing: -5px;
}

/* CONTATO */
.contato form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.contato input, .contato select, .contato textarea {
  padding: 16px 20px; border: 1px solid #D1D5DB; border-radius: 4px;
  background: #FFF; color: var(--texto-titulo); font-size: 1rem; font-family: inherit; transition: border-color 0.3s ease;
}
.contato input:focus, .contato select:focus, .contato textarea:focus {
  outline: none; border-color: var(--verde-principal); box-shadow: 0 0 0 3px rgba(15, 92, 38, 0.1);
}
.contato textarea { min-height: 130px; resize: vertical; }
.contato .btn { background: var(--verde-principal); color: #FFF; border: 1px solid var(--verde-principal); }
.contato .btn:hover { background: var(--verde-hover); border-color: var(--verde-hover); }
.msg-sucesso { text-align: center; color: var(--verde-principal); margin-top: 20px; font-weight: 600; }

/* ===========================
   ACOMPANHAR OBRA (TIMELINE)
   =========================== */
.acompanhar h1 { text-align: center; font-size: 2.5rem; margin-bottom: 12px; color: var(--texto-titulo); }
.acompanhar h1::after { content: ''; display: block; width: 40px; height: 3px; background: var(--verde-principal); margin: 20px auto 0; border-radius: 2px; }
.subtitulo { text-align: center; color: var(--texto-corpo); margin-bottom: 50px; }

/* Botão Voltar */
.btn-voltar {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--texto-corpo); text-decoration: none;
  font-size: 0.95rem; font-weight: 500; margin-bottom: 40px;
  transition: color 0.3s ease, transform 0.3s ease;
}
.btn-voltar:hover { color: var(--verde-principal); transform: translateX(-5px); }

.form-acompanhar { max-width: 560px; margin: 0 auto 30px; display: flex; gap: 12px; }
.form-acompanhar input { flex: 1; padding: 16px 20px; border: 1px solid #D1D5DB; border-radius: 4px; font-size: 1rem; background: #FFF; color: var(--texto-titulo); }
.form-acompanhar input:focus { outline: none; border-color: var(--verde-principal); }
.form-acompanhar .btn { background: var(--verde-principal); border-color: var(--verde-principal); color: #FFF; }

.resultado-obra {
  max-width: 800px; margin: 50px auto 0; background: #FFF; padding: 50px;
  border-radius: 8px; border: 1px solid var(--borda-sutil); border-left: 4px solid var(--verde-principal);
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  animation: fadeUp 0.6s ease-out both;
}
.resultado-obra h2 { color: var(--texto-titulo); margin-bottom: 6px; }
.resultado-obra h3 { color: var(--texto-titulo); margin: 28px 0 16px; font-weight: 600; }
.resultado-obra p { color: var(--texto-corpo); }
.barra-progresso { width: 100%; height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; margin: 30px 0 12px; }
.progresso-preenchido { height: 100%; background: linear-gradient(90deg, var(--verde-principal), var(--verde-hover)); transition: width 1.2s ease; border-radius: 4px; }
.percentual { text-align: right; font-weight: 600; color: var(--verde-principal); margin-bottom: 25px; }

/* Linha do Tempo */
.lista-etapas {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 30px 0 40px;
  position: relative;
  padding-left: 20px;
  list-style: none;
}

.lista-etapas::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #E5E7EB;
  z-index: 1;
}

.etapa {
  position: relative;
  padding: 15px 20px 15px 45px;
  background: transparent !important;
  border: none !important;
  text-align: left;
  font-weight: 500;
  color: var(--texto-corpo);
  z-index: 2;
  display: flex;
  align-items: center;
}

.etapa::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #E5E7EB;
  border: 2px solid #FFF;
  z-index: 3;
}

.etapa.concluida { color: var(--texto-titulo); }
.etapa.concluida::before {
  background: var(--verde-principal);
  box-shadow: 0 0 0 2px var(--verde-principal);
}
.etapa.concluida::after {
  content: '✓';
  position: absolute;
  left: -1px;
  top: 50%;
  transform: translateY(-50%);
  color: #FFF;
  font-size: 9px;
  font-weight: bold;
  z-index: 4;
}

.etapa.andamento {
  color: var(--cobre-escuro);
  font-weight: 700;
}
.etapa.andamento::before {
  background: var(--cobre);
  box-shadow: 0 0 0 4px rgba(192, 138, 94, 0.3);
  animation: pulse-etapa 1.5s infinite;
}

@keyframes pulse-etapa {
  0% { box-shadow: 0 0 0 0 rgba(192, 138, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(192, 138, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(192, 138, 94, 0); }
}

.etapa.pendente { color: #9CA3AF; }

.galeria-obra { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.galeria-obra img { width: 100%; height: 140px; object-fit: cover; border-radius: 4px; transition: transform 0.6s ease; }
.galeria-obra img:hover { transform: scale(1.05); }

/* RODAPÉ */
.footer { background: #FFFFFF; color: var(--texto-corpo); text-align: center; padding: 40px 0; font-size: 0.9rem; border-top: 1px solid var(--borda-sutil); }
.footer p { margin: 6px 0; }

/* ===========================
   RESPONSIVO
   =========================== */
@media (max-width: 900px) {
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sobre-texto h2 { font-size: 2.2rem; }
  .sobre-video-wrapper { aspect-ratio: 16/9; }
  .sobre-palavra-fundo { font-size: 4rem; }
}

@media (max-width: 768px) {
  .nav { display: none; position: absolute; top: 90px; left: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(15px); flex-direction: column; padding: 24px 0; border-bottom: 1px solid var(--borda-sutil); }
  .nav.ativo { display: flex; }
  .nav a { margin: 12px 0; text-align: center; }
  .menu-toggle { display: block; }
  .social-header { display: none; }

  .whatsapp-float { bottom: 20px; right: 15px; padding: 10px 14px; font-size: 0.8rem; gap: 6px; border-radius: 40px; max-width: calc(100vw - 30px); }
  .whatsapp-text { font-size: 0.8rem; }
  .whatsapp-icon svg { width: 18px; height: 18px; }

  .hero h1 { font-size: 2.2rem; }
  .hero p { font-size: 1rem; }
  .hero { min-height: 80vh; }
  .servicos, .financiamento, .portfolio, .sobre, .contato, .acompanhar { padding: 80px 0; }
  .servicos h2, .portfolio h2, .sobre h2, .contato h2, .financiamento h2 { font-size: 1.8rem; margin-bottom: 40px; }
  .form-acompanhar { flex-direction: column; }
  .resultado-obra { padding: 30px; }
  .header .container { height: 75px; }
  .header.scrolled .container { height: 65px; }
  .logo-img { height: 45px; }
  .header.scrolled .logo-img { height: 40px; }
}

@media (max-width: 400px) {
  .whatsapp-float { padding: 12px; border-radius: 50%; gap: 0; }
  .whatsapp-text { display: none; }
  .whatsapp-icon svg { width: 24px; height: 24px; }
}
