/* --- CONFIGURAÇÕES GLOBAIS E NOVA PALETA DE CORES --- */
:root {
    --cor-principal: #0D253F; /* Azul escuro profundo */
    --cor-secundaria: #007BFF; /* Azul vibrante para links e botões */
    --cor-sucesso: #03A678; /* Um verde para destaques (opcional) */
    --cor-fundo: #F4F6F8;   /* Cinza muito claro para o fundo */
    --cor-texto: #333333;      /* Cor do texto principal */
    --cor-branca: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif; 
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--cor-principal);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}


/* --- CABEÇALHO E RODAPÉ MODERNIZADOS --- */
header, footer {
    background-color: var(--cor-principal);
    padding: 20px 0;
    color: var(--cor-branca);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    color: var(--cor-branca);
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    transition: color 0.3s ease;
    display: flex; 
    align-items: center; 
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

nav ul li a:hover {
    color: var(--cor-secundaria);
    border-bottom-color: var(--cor-secundaria);
}

/* Adicionando cursor de clique para itens com dropdown */
nav ul li.dropdown > a {
    cursor: pointer;
}

nav ul li a.active {
    color: var(--cor-secundaria);
    border-bottom-color: var(--cor-secundaria);
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
}


/* --- BANNER (HERO SECTION) REFINADO --- */
.hero {
    background: linear-gradient(rgba(13, 37, 63, 0.7), rgba(13, 37, 63, 0.7)), url('img/banner-instalacao.jpg') no-repeat center center/cover;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--cor-branca);
    flex-direction: column;
    animation: zoom 15s infinite alternate;
}

@keyframes zoom {
    0% { background-size: 100%; }
    100% { background-size: 110%; }
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 20px;
    color: var(--cor-branca);
    font-weight: 900; 
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    max-width: 600px;
}

.btn {
    background-color: var(--cor-secundaria);
    color: var(--cor-branca);
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background-color: #0056b3; 
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}


/* --- SEÇÃO DE SERVIÇOS COM VISUAL NOVO --- */
.servicos {
    padding: 80px 20px;
    background: var(--cor-fundo);
}

.servicos h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.servicos-layout {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    align-items: flex-start;
    gap: 40px;
}

.servicos-grid {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.servico-item {
    background: var(--cor-branca);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.servico-item:hover {
    background: var(--cor-secundaria);
    color: var(--cor-branca);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.2);
}

.midia-preview {
    flex: 2;
    text-align: center;
    min-width: 300px;
}

#previewImage, #previewVideo {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

#previewVideo {
    display: none;
}


/* --- ESTILOS PARA PÁGINAS "SOBRE" E "CONTATO" --- */
.sobre, .contato-section {
    background-color: var(--cor-branca);
    padding: 80px 20px;
    text-align: center;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.sobre h1, .contato-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.sobre p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contato-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: left;
}

.contato-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contato-info p strong {
    font-size: 0.9rem;
    color: var(--cor-principal);
}

.contato-info a {
    color: var(--cor-secundaria);
    text-decoration: none;
    font-weight: bold;
}

.contato-info a:hover {
    text-decoration: underline;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    height: 100%;
}

.map-container iframe {
    height: 100%;
    min-height: 350px;
}


/* --- ANIMAÇÕES DE FADE --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.appear {
    opacity: 1;
    transform: translateY(0px);
}


/* --- BOTÃO WHATSAPP --- */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: transparent;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  transition: transform 0.2s ease-in-out;
  box-shadow: none;
}

.whatsapp-button:hover {
  transform: scale(1.05);
}

.whatsapp-button img {
  width: 60px;
  height: 60px;
}

.notification-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background-color: red;
  color: white;
  font-size: 11px;
  padding: 4px;
  border-radius: 50%;
  font-weight: bold;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulseBadge 1.8s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}


/* --- MENU DROPDOWN (DESKTOP) --- */
nav ul li.dropdown {
    position: relative;
}

ul.submenu li.dropdown {
    position: relative;
}

ul.submenu {
    display: none; /* Escondido por padrão */
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--cor-principal);
    list-style: none;
    padding: 10px 0;
    margin-top: 10px; 
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    border-radius: 8px;
    flex-direction: column;
    gap: 0;
    z-index: 100;
}

ul.submenu li a {
    padding: 12px 20px;
    display: block;
    width: 100%;
    white-space: nowrap;
    color: var(--cor-branca); 
    border-bottom: 2px solid transparent;
}

ul.submenu li a:hover {
    background-color: var(--cor-secundaria);
    color: var(--cor-branca);
    border-bottom-color: transparent;
}

ul.submenu ul.submenu {
    top: -10px; 
    left: 100%;
}

/* REGRA ANTIGA REMOVIDA: li.dropdown:hover > ul.submenu { display: block; } */

/* NOVA REGRA DE CLIQUE: Mostra o submenu quando o LI pai tiver a classe .submenu-active */
li.dropdown.submenu-active > ul.submenu {
    display: block;
}


/* SETAS DO MENU DROPDOWN */
nav li.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--cor-branca);
    border-bottom: 2px solid var(--cor-branca);
    margin-left: 8px;
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

nav li.dropdown > a:hover::after {
    border-color: var(--cor-secundaria);
}

nav li.dropdown > a.active::after {
    border-color: var(--cor-secundaria);
}

/* Gira a seta para cima quando o menu está ativo */
nav li.dropdown.submenu-active > a::after {
    transform: rotate(-135deg); 
}

ul.submenu li.dropdown > a::after {
    margin-left: auto; 
    transform: rotate(-45deg); 
}

/* Mantém a seta para direita quando o submenu aninhado está ativo */
ul.submenu li.dropdown.submenu-active > a::after {
    transform: rotate(-45deg); 
}


/* --- RODAPÉ ESTRUTURADO --- */
footer {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
}

.footer-column .logo-img {
    height: 60px;
    margin-bottom: 20px;
}

.footer-column p {
    color: #ccc;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-column h4 {
    color: var(--cor-branca);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--cor-secundaria);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #334a64;
    font-size: 0.9rem;
    color: #ccc;
}


/* --- RESPONSIVIDADE E MOBILE --- */
@media (max-width: 768px) {
    .header-container {
        flex-direction: row; 
        align-items: center;
    }

    nav {
        order: 3; 
        width: 100%;
        text-align: center;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 20px;
        gap: 0;
    }

    nav.active ul {
        display: flex;
    }

    nav ul li a, nav ul li a.active {
        padding: 15px;
        display: block;
        border-bottom: 1px solid #1a3a5a;
    }

    .menu-toggle {
        display: block;
    }
    
    /* Regra de submenu para mobile agora usa a mesma classe do desktop */
    li.dropdown.submenu-active > ul.submenu {
        display: block;
        position: static;
        background-color: rgba(0,0,0,0.2); 
        box-shadow: none;
        padding-left: 20px;
        border-radius: 0;
        margin-top: 0;
    }

    ul.submenu ul.submenu {
      padding-left: 40px;
    }

    .hero {
        height: 350px;
        padding: 0 10px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .servicos-layout, .contato-grid, .footer-grid {
      flex-direction: column;
      align-items: center;
      grid-template-columns: 1fr;
      text-align: center;
    }

    .footer-grid .footer-column {
      align-items: center;
      display: flex;
      flex-direction: column;
    }

    .contato-grid {
      grid-template-columns: 1fr;
    }
    
    .contato-info {
      text-align: center;
    }
}
/* --- ANIMAÇÃO DE PULSO PARA O BOTÃO --- */
.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}