/* ================================
  RESET
================================ */
* {
  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 (REVISADO PARA RESPONSIVIDADE)
================================ */
.header {
    background: linear-gradient(180deg, var(--bg), #000);
  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;
}

/* Botão Mobile (invisível no desktop) */
.mobile-btn { 
  display: none; 
  cursor: pointer;
  z-index: 1103; 
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  padding: 5px;
}

/* 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;
}


/* ================================
  CARROSSEL (CONSOLIDADO E CORRIGIDO)
================================ */
.carrossel {
  width: 100%;
  max-width: 2000px;
  /* Altura otimizada para desktop */
  height: 450px; 
  margin: 0 auto;
  overflow: hidden;
  position: relative;
  border-radius: 0;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease-in-out;
  object-position: center;
}

.slide {
  min-width: 100%; /* GARANTE LARGURA TOTAL DO CARROSSEL */
  height: 100%;
  position: relative;
  object-position: center;
}

.slide img {
  width: 100%; /* GARANTE LARGURA TOTAL DA IMAGEM */
  height: 100%;
  object-fit: cover; /* Faz a imagem cobrir o espaço sem distorcer (cortando bordas se necessário) */
  object-position: center;
}

/* Texto fixo do topo (Revisado para desktop) */
.texto-fixo {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2.1rem;
  font-weight: bold;
  text-shadow: 8px 8px 8px black;
  text-align: center;
  pointer-events: none;
  z-index: 10;
  width: 800px; /* Largura padrão para desktop */
  padding: 15px 20px;
  background-color: rgba(3, 2, 2, 0.27);
  border: 1px solid rgba(255, 255, 255, 0.49);
  border-radius: 6px;
  line-height: 1.2;
}

/* Botões de navegação (setas) */
.carrossel .btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 20;
  font-size: 20px;
  border-radius: 4px;
  user-select: none;
  transition: background 0.3s;
}

.carrossel .btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carrossel .prev {
  left: 20px;
  display: none !important;
}

.carrossel .next {
  right: 20px;
  display: none !important;
}

/* Animação fade-in */
.animar {
  animation: fadeIn 1.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -48%); }
  to 	{ opacity: 1; transform: translate(-50%, -50%); }
}

/* Texto dentro do slide */
.texto {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 32px;
  font-weight: bold;
  padding: 12px 22px;
  background: rgba(0,0,0,0.45);
  border-radius: 10px;
  opacity: 0;
}

@keyframes fadein {
  from { opacity: 0; transform: translate(-50%, -55%); }
  to 	{ opacity: 1; transform: translate(-50%, -50%); }
}

.slide .animar {
  animation: fadein 1s ease forwards;
}



.conteudo {
 
  max-width: 1200px; /* Define a largura máxima que as duas caixas lado a lado podem ter */
  margin: 30px auto; /* Centraliza horizontalmente: 30px topo/baixo, auto laterais */
  padding: 0 20px; /* Adiciona um padding nas laterais para telas menores que 1200px */
  
  /* Flexbox para colocar as caixas lado a lado */
  display: flex;
  justify-content: space-between; /* Distribui o espaço entre as caixas */
  align-items: flex-start; /* Alinha as caixas pelo topo */
  gap: 40px; /* Espaço entre as duas caixas */
  flex-wrap: wrap; /* Permite quebras de linha em telas pequenas (responsividade) */
}

/* CONTAINER QUE UNE AS DUAS CAIXAS (Centralização e limite de largura) */


/* CAIXA 1 (Reformas) */
.caixa1 {
  flex: 2 1 65%;
    min-width: 280px;
    background: #ffffff00;
    padding: 90px;
    border-radius: 12px;
  
}

.reformas-container {
  padding: 0px 0px; /* Removido padding excessivo */
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

/* Título da seção de reformas */
.reformas-container h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #0b90e9;
  margin-bottom: 25px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  position: relative;
  padding-bottom: 10px;
  margin-top: -77px; /* sobe o título */
}

/* Linha decorativa abaixo do título */
.reformas-container h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #0b90e9;
  margin: 10px auto 0;
  border-radius: 2px;
}

.reformas-container p.intro-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #2b2929;
  max-width: 700px;
  margin: 0 auto 30px;
  text-align: center;
}

.reformas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.reforma-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  text-align: left;
  transition: 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.reforma-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.reforma-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}
.reforma-card h3 {
  font-size: 1.35rem;
  color: #000;
  margin: 10px 0 8px;
  text-align: center;
}

.reforma-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
  text-align: left;
}


/* ==================================
   ESTILOS ESPECÍFICOS - CAIXA 2 (Ideia 4: Técnico)
================================== */

.caixa-diferenciais h2 {
    color: #0b90e9; /* Cor principal */
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 15px;
}

.caixa-diferenciais h3 {
    color:  #0b90e9;
    font-size: 1.2rem;
    margin-top: 15px;
    margin-bottom: 8px;
    text-align: left;
}

/* CAIXA 2 (Diferenciais/Localização) */
.caixa2 {
    flex: 1 1 35%;
    min-width: 220px;
    background: #ffffff00;
    padding: 25px;
    border-radius: 12px;
  
}
/* Imagem Dinâmica */
.caixa2 .imagem-dinamica {
    width: 100%;
    max-height: 250px; /* Limite a altura para não ser muito grande */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.texto-tecnico {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
    padding: 0; /* Usando o padding da .caixa2 */
    margin-bottom: 15px;
}

/* LISTA DE DIFERENCIAIS (Chave da Ideia 4) */
.lista-diferenciais {
    list-style: none;
    padding: 0;
    margin-top: 0;
}

.lista-diferenciais li {
    background-color: #fff;
    padding: 10px 15px;
    margin-bottom: 8px;
    border-left: 4px solid #0b90e9; /* Destaque com a cor principal */
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.lista-diferenciais li:hover {
    transform: translateX(4px); /* Efeito sutil ao passar o mouse */
}

.lista-diferenciais li .fas {
    margin-right: 10px;
    color: #0b90e9;
    font-size: 1.1rem;
}

/* ===== Container Dinâmico / CAIXA 2 ===== */
.container-dinamico {
  display: flex;
  flex-direction: column; /* Força o empilhamento vertical */
  align-items: center; /* Centraliza a imagem */
  padding: 0;
  background-color: #93da0e00;
  border-radius: 12px;
  box-shadow: none;
  overflow: hidden;
  transition: all 0.4s ease-in-out;
  cursor: default;
}

.imagem-dinamica {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.texto-dinamico {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin: 10px 0 25px;
  padding: 0 12px;
  text-align: justify;
}

/* ============================
  LOCALIZAÇÃO - CAIXA 2
============================ */

/* Título "Nossa Localização" */
.local-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0b90e9;
    text-align: center;
    margin: 25px auto 15px;
    letter-spacing: 0.5px;
    padding: 0 12px;
}

.map-container {
    position: relative;
    width: 100%;
    /* REDUÇÃO DA ALTURA APLICADA AQUI (45% é mais baixo que 56.25%) */
    padding-bottom: 45%; 
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
    margin-top: 10px;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* ================================
  RODAPÉ
=================================*/
.site-footer {
  background: linear-gradient(180deg, #0f0f0f, #000);
  color: #fff;
  padding: 40px 20px 24px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 30px;
  align-items: start;
  width: calc(100% - 40px);
  box-sizing: border-box;
}

/* TITULOS */
.footer-links h3,
.footer-contact h3,
.footer-news h3 {
  font-size: 16px;
  margin-bottom: 12px;
  color: #fff;
}

/* LINKS */
.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;
}

/* CONTATO */
.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);
}

/* 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; 
}

/* COPYRIGHT */
.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;
}

/* Botão "voltar ao topo" */
.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); }
}

/* ================================
  RESPONSIVIDADE GERAL
================================ */

/* 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;
  }


  
  /* 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 */
  }
}

/* Small tablets / large phones (680px e abaixo) */
@media (max-width: 680px) {
  /* HEADER: Esconde Menu Desktop e Mostra Botão Mobile */
  .navbar { display: none; }
  .mobile-btn { display: block; }
  
  .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;
  }
}

/* Phones (480px e abaixo) */
@media (max-width: 480px) {
  /* HEADER: Ajuste para celular */
  .header { 
    min-height: 50px; 
    padding: 10px;
  }
  
  .carrossel { height: 200px !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; }
  
  /* ==================================
    EFEITO DO MENU MOBILE (STYLING)
  ================================== */
  .navbar {
    display: flex; /* Exibe ao ser ativado pelo JS */
    position: fixed;
    top: 0;
    left: -300px; /* Esconde a navegação para fora da tela */
    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; }
  /* Classe adicionada pelo JavaScript: Bloqueia o scroll do body */
  body.menu-open { overflow: hidden; } 

  .navbar a { 
    margin-left: 0;
    padding: 12px 10px;
    text-align: left;
    width: 100%;
  }
}


