/* ===========================
  RESET E BASE
  =========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  color: #000;
  background-color: #ffffffdc;
  background-size: cover;
  background-attachment: fixed;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  overflow-x: hidden; /* Garante que não haja scroll horizontal */
}

/* ================================
  ROOT COLORS
================================ */
:root {
  --bg: #0f1724;
  --muted: #94a3b8;
  --accent: #ffffff;
  --card: #0b1220;
  --radius: 10px;
  --responsive-patch-applied: 1; /* Mantido para rastreamento */
}


/* ================================
  HEADER (COMPACTO)
================================ */
.header {
    background:rgb(7, 6, 6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 18px; /* ↓ diminui a altura */
  height: auto;
  min-height: 50px; /* ↓ tamanho ideal e uniforme */
  margin: 0;
  flex-wrap: nowrap;
}


/* LOGO RESPONSIVA */
.logo-img {
  width: 200px;
  height: auto;
  transition: width .3s ease;
}

/* MENU DESKTOP */
.navbar {
  display: flex;
  align-items: center;
}

.navbar a {
  position: relative;
  padding: 12px 20px;
  margin-left: 20px;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  display: inline-block;
  overflow: visible;
  
}

/* ====== 4 lados da borda ====== */
.navbar a::before,
.navbar a::after,
.navbar a span::before,
.navbar a span::after {
  content: "";
  position: absolute;
  background: #fff;  /* cor da borda */
  transition: 0.3s linear;
}

/* Criar um span interno */
.navbar a > span {
  position: relative;
  z-index: 2;
}

/* Lado superior */
.navbar a::before {
  height: 2px;
  width: 0%;
  top: 0;
  left: 0;
}

/* Lado direito */
.navbar a::after {
  width: 2px;
  height: 0%;
  top: 0;
  right: 0;
}

/* Lado inferior */
.navbar a span::before {
  height: 2px;
  width: 0%;
  bottom: 0;
  right: 0;
}

/* Lado esquerdo */
.navbar a span::after {
  width: 2px;
  height: 0%;
  bottom: 5px;
  left: 0;
}

/* ====== Animação ====== */
.navbar a:hover::before,
.ativo::before {
  width: 100%;
}

.navbar a:hover::after,
.ativo::after {
  height: 100%;
  transition-delay: 0.1s;
}

.navbar a:hover span::before,
.ativo span::before {
  width: 100%;
  transition-delay: 0.2s;
}

.navbar a:hover span::after,
.ativo span::after {
  height: 100%;
  transition-delay: 0.3s;
}


/* Botão Mobile */
.mobile-btn { 
  display: none; 
  cursor: pointer;
  z-index: 1103;
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  padding: 5px;
}

/* ===========================
  CONTAINER PRINCIPAL
=========================== */
.container-timeline{
  max-width: 1100px;
  margin: 48px auto;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(255,255,255,0.95));
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16,24,40,0.06);
}

/* ===========================
  TITULOS
=========================== */
.titulo-timeline{
  font-size: 2.1rem;
  text-align: center;
  color: #0369a1;
  font-weight: 800;
  margin-bottom: 8px;
}

.introducao-timeline{
  max-width: 840px;
  margin: 8px auto 32px;
  text-align: center;
  color: #556070;
  font-size: 1.03rem;
  line-height: 1.5;
}

/* ===========================
  IMAGEM FULL WIDTH
=========================== */
.imagem-full-width{ margin-bottom: 36px; }
.imagem-full-width img{
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.836);
  transition: transform .35s ease;
}
.imagem-full-width img:hover{ transform: translateY(-4px) scale(1.01); }

/* ===========================
  TIMELINE
=========================== */
.timeline-reforma{
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-left: 20px;
  border-left: 4px solid #06b5d4f6;
}
.timeline-passo{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  position: relative;
  padding-left: 6px;
  transition: all .6s cubic-bezier(.2,.9,.2,1);
  opacity: 0;
  transform: translateX(-18px);
}
.passo-numero{
  min-width: 48px;
  min-height: 48px;
  border-radius: 50%;
  background: linear-gradient(180deg,#06b6d4,#0284c7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 6px 18px rgba(2,132,199,0.22);
  flex-shrink: 0;
}
.passo-conteudo{ max-width: calc(100% - 80px); }
.passo-conteudo h3{
  font-size: 1.18rem;
  color: #0f172a;
  margin-bottom: 6px;
  font-weight: 700;
}
.passo-conteudo p{
  color: #475569;
  font-size: 0.99rem;
  line-height: 1.5;
}
.timeline-passo.show{
  opacity: 1;
  transform: translateX(0);
}

/* ================================
  RODAPÉ
=================================*/
.site-footer {
  background: linear-gradient(180deg, #0f0f0f, #000);
  color: #fff;
  padding: 45px 30px 20px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-links h3, .footer-contact h3, .footer-news h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}
.whatsapp-container {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.footer-links ul { list-style: none; padding: 0; }
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  margin: 8px 0;
  display: block;
  transition: 0.15s;
}
.footer-links a:hover { color: #4da3ff; }

.footer-contact address {
  font-style: normal;
  color: rgba(255,255,255,0.55);
}
.footer-contact a {
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  margin: 8px 0;
  display: inline-block;
  transition: 0.3s;
}
.footer-contact a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgb(77, 163, 255);
}

.footer-news p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
  margin-bottom: 15px;
}
.footer-news input[type="email"] {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.747);
  background: rgba(255, 255, 255, 0.562);
  color: #fff;
  margin-bottom: 10px;
}
.footer-news button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: none;
  background: #0284c7;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}
.footer-news button:hover { background: #0ea5e9; }

.footer-brand p {
  color: rgba(255,255,255,0.55);
  font-size: 15px;
}

/* SOCIAL ICONS */
.socials {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  color: #fff;
  border-radius: 8px;
  transition: 0.2s;
}

.socials a:hover {
  background: #4da3ff; 
  color: #fff;
  transform: translateY(-2px); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* FIXES PARA ÍCONES DE REDES SOCIAIS */
.socials a i {
  font-size: 18px; 
  line-height: 0; 
}
.footer-bottom {
  max-width: 1200px;
  margin: 22px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}
.footer-bottom small {
  color: rgba(255,255,255,0.55);
  font-size: 14px;
}

.back-to-top {
  font-size: 22px;
  color: #4da3ff;
  animation: pulse 1.5s infinite;
}
.back-to-top:hover { color: white; }

@keyframes pulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* ================================
  GALERIA
================================ */
.portfolio-galeria {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.portfolio-galeria h2 {
    font-size: 2.2rem;
    color: #18a5f7; 
    margin-bottom: 30px;
}

.fotos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.foto-card {
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgb(255, 255, 255);
    transition: transform 0.3s ease;
    color:#ffffff
}

.foto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.foto-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* ================================
  WHATSAPP BUTTON
================================ */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0ea5e9;
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5); 
  transition: all 0.3s ease;
  cursor: pointer;
}
.whatsapp-btn .whatsapp-icon {
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: transform 0.3s ease;
}
.whatsapp-btn:hover {
  background: #02c712;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.7);
}
.whatsapp-btn:hover .whatsapp-icon {
  transform: scale(1.25) rotate(3deg);
}
.whatsapp-btn:active {
  transform: scale(0.97);
}

/* Tablet / small laptop (900px e abaixo) */
@media (max-width: 900px) {
  /* HEADER: Ajuste fino */
  .header { 
    min-height: 60px;
    padding: 10px 20px;
  }
  
  /* Layout principal: empilha colunas e reduz gaps e paddings */
  .caixas-lado-a-lado,
  .conteudo {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap; /* permite quebrar linha em telas pequenas */
  }

  .caixa1, .caixa2 {
    max-width: 100% !important;
    padding: 22px !important;
  }

  /* Carrossel e texto central */
  .carrossel { height: 36vw !important; min-height: 240px; }
  .texto-fixo {
    font-size: 0.95rem !important; 
    padding: 6px 10px !important; 
    width: 95% !important; 
    transform: translate(-50%, calc(-50% - 30px)) !important;
    /* Para subir a mensagem no Mobile */
  }
  
  /* Ajustes de refinamento para Conteúdo */
  .reformas-container h2 {
    margin-top: 0px; 
    font-size: 1.8rem; 
    line-height: 1.3;
    padding: 0 10px;
  }
  
  .reformas-container p.intro-text {
    font-size: 1.05rem; 
    padding: 0 10px;
    margin-bottom: 25px;
  }
  
  /* FOOTER TABLET */
  .footer-container {  
    grid-template-columns: 1fr 1fr; /* 2 colunas */
  }
  
  /* Outros ajustes de 900px */
  .logo-img { width: 180px; }
  .container-timeline { margin: 30px auto; padding: 20px; max-width: 95%; }
  .titulo-timeline { font-size: 1.8rem; }
  .timeline-reforma { gap: 25px; padding-left: 15px; border-left-width: 3px; }
}

/* Small tablets / large phones (680px e abaixo) */
@media (max-width: 680px) {
  /* HEADER: Mostra Botão Mobile */
  .header { 
    padding: 8px 12px;
    min-height: 48px;
  }
  .logo-img { width: 150px; }
  .mobile-btn { display: block; }
  
  /* ESCONDE O MENU DESKTOP POR PADRÃO */
  .navbar { display: none; }

  .carrossel { height: 300px !important; }
  .slide, .slide img { height: 300px !important; }
  .carrossel .btn { padding: 8px 12px; font-size: 16px; } /* Reduz setas */

  /* imagem dinâmica */
  .container-dinamico { flex-direction: column !important; align-items: center !important; padding: 0 !important; box-shadow: none; cursor: default; }
  .imagem-dinamica { width: 100% !important; max-width: 520px !important; margin: 0 0 14px; float: none; }
  .texto-dinamico { width: 100% !important; text-align: left !important; padding: 0 6px !important; }

  /* reformas-grid adapta melhor */
  .reformas-grid { gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .reforma-card { text-align: center; padding: 20px 15px; }
  .reforma-card p { text-align: center; }
  
  /* FOOTER TABLET PEQUENO: Coluna única */
  .footer-container { 
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* ==================================
    AJUSTE DO MENU MOBILE (PAINEL LATERAL)
    ----------------------------------
    Esta regra entra em conflito com a regra '.navbar { display: none; }'
    acima. No entanto, ela é a que define o estilo do menu ativo.
  ================================== */
  .navbar {
    /* Sobrescreve 'display: none' quando ativado, mas
       é importante notar que a lógica de JS deve definir a 
       classe 'active' para exibir. */
    display: flex; 
    position: fixed;
    top: 0;
    left: -280px; /* Esconde a navegação: ajuste de 300px para 280px (largura) */
    width: 280px;
    height: 100vh;
    background: black;
    padding: 80px 20px;
    box-shadow: 6px 0 24px rgba(0,0,0,0.5);
    flex-direction: column;
    gap: 18px;
    transition: left 0.35s cubic-bezier(.2,.9,.2,1);
    z-index: 1102;
    overflow-y: auto;
  }
  
  /* Classe adicionada pelo JavaScript: Menu visível */
  .navbar.active { left: 0; }
  
  .navbar a { 
    margin-left: 0;
    padding: 12px 10px;
    text-align: left;
    width: 100%;
    /* Remove a borda animada para links em mobile para simplificar */
    /* Você pode mantê-la se quiser, mas é mais simples remover aqui. */
    /* Exemplo: .navbar a::before, .navbar a::after, etc. { content: none; } */
  }
}

/* Phones (480px e abaixo) */
@media (max-width: 480px) {
  /* HEADER: Ajuste para celular */
  .header { 
    min-height: 50px; 
    padding: 10px;
  }
  
  .logo-img { width: 120px; }
  
  .carrossel { height: 180px !important; }
  .slide, .slide img { height: 180px !important; }
  .texto-fixo { 
    font-size: 0.95rem !important; 
    padding: 6px 10px !important; 
    width: calc(100% - 24px) !important; 
  }
  .carrossel .btn { padding: 6px 10px; font-size: 14px; }

  /* garantir empilhamento total e leitura confortável */
  .caixas-lado-a-lado, .conteudo { gap: 16px !important; margin: 16px !important; padding: 8px !important; }
  .caixa1, .caixa2 { padding: 12px !important; }

  /* mapa ocupa altura maior em celular para facilitar interação */
  .map-container { padding-bottom: 80%; }
  .local-title { font-size: 1.3rem; }

  /* reformas-grid */
  .reformas-grid { grid-template-columns: 1fr; gap: 15px; }
  
  /* FOOTER MOBILE: Coluna única e centralizado */
  .footer-container { 
    grid-template-columns: 1fr !important; 
    gap: 12px !important; 
    padding: 0 12px; 
    text-align: center; 
  }
  .footer-links h3, .footer-contact h3, .footer-news h3 { text-align: center; }
  .footer-links a, .footer-contact address, .footer-contact a { text-align: center; }
  .footer-brand { text-align: center; }
  .socials { justify-content: center; }
}