/* Variáveis de Cores */
:root {
    --primary-blue: #0A3D62; /* Azul escuro principal */
    --secondary-blue: #3A70A7; /* Azul médio/claro */
    --vermelho: #d1280a; /* Laranja dos botões */
    --green-whatsapp: #25D366; /* Verde do WhatsApp */
}

/* Tipografia e Logotipo */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.engitop-logo {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1.8rem;
}
.footer-section .engitop-logo {
    color: white;
}

.navbar-logo {
    padding: 0;
    margin: 0;
    display: inline-block;
    cursor: pointer;
    height: 5rem; 
    width: auto; 
    max-width: 150px; 
    transition: all 0.3s;
}
.navbar-logo:hover {
    transform: scale(1.1);
}


/* Estilo da Navbar */
.navbar-brand, .nav-link {
    font-weight: 500;
}
.nav-link:hover {
    color: var(--vermelho) !important;
}

.transparent-nav .nav-link:hover {
    color: var(--vermelho) !important; 
}

.scrolled-nav .nav-link:hover {
    color: var(--vermelho) !important;
}

.transparent-nav {
    background-color: transparent !important; /* Totalmente transparente */
    box-shadow: none !important; /* Sem sombra inicial */
    padding-top: 15px; /* Mais espaço no topo */
    padding-bottom: 15px;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Cor dos links quando a navbar está transparente (ajuste se necessário) */
.transparent-nav .nav-link, 
.transparent-nav .navbar-brand {
    color: white !important; /* Links brancos sobre o banner azul */
}

/* Estado após a rolagem: Fundo sólido (Branco) */
.scrolled-nav {
    background-color: white !important; /* Fundo branco ou bg-light do Bootstrap */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important; /* Adiciona sombra */
    padding-top: 8px; /* Reduz o padding para "encolher" */
    padding-bottom: 8px;
}

/* Cor dos links quando a navbar está sólida (Brancos) */
.scrolled-nav .nav-link, 
.scrolled-nav .navbar-brand {
    color: var(--primary-blue) !important; /* Links azuis sobre o fundo branco */
}

/* Certifique-se de que a seção hero comece logo abaixo da nav */
.hero-section {
    min-height: 100vh; /* Aumentar para ocupar toda a tela */
    padding-top: 0; /* Remove o padding extra que era para a navbar */
}

/* Seção Hero/Header */
.hero-section {
    min-height: 85vh; /* Ajuste para ter uma boa altura */
    padding-top: 56px; /* Altura da navbar */
    position: relative;
    overflow: hidden;
    background: 
        linear-gradient(to right, rgba(10, 61, 98, 0.85) 0%, rgba(10, 61, 98, 0.7) 30%, rgba(58, 112, 167, 0.5) 60%, rgba(58, 112, 167, 0.4) 100%),
        url('../assets/BANNER-TOPOGRAFIA.jpg') no-repeat center center/cover;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.text-orange {
    color: var(--vermelho) !important;
}
.text-blue {
    color: var(--primary-blue) !important;
}

/* Estilos de Botões */
.btn-orange {
    background-color: var(--vermelho);
    border-color: var(--vermelho);
    color: white;
}
.btn-orange:hover {
    background-color: #ff9933; 
    border-color: #ff9933;
    transition: all 0.3s;
    transform: scale(1.1);
}
.btn-blue-outline {
    border-color: white;
    color: white;
}
.btn-blue-outline:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s;
    transform: scale(1.1);
}

/* --- Estilos do Carrossel de Projetos --- */

/* Garante que as imagens ocupem a altura máxima e sejam cortadas (se necessário) */
.carousel-img {
    height: 500px; /* Altura fixa para todos os slides */
    object-fit: cover; /* Garante que a imagem preencha o espaço sem distorcer */
}

/* Estilo para a legenda (caption) ficar mais visível */
.bg-dark-transparent {
    background-color: rgba(0, 0, 0, 0.5); /* Fundo escuro semi-transparente */
    padding: 15px;
    border-radius: 8px;
}

/* Indicador de Scroll */
.scroll-down-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Seção Nossa Empresa */
.stats-row h3 {
    font-size: 2.5rem;
}

/* Seção Nossos Serviços */
/* --- Efeito de Hover nos Cartões de Serviço (service-card) --- */
.service-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px; /* Aumenta o padding para melhor visual */
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05); /* Sombra inicial sutil */
    text-align: center;
}

.service-card:hover {
    /* 1. Efeito principal (Sombra e Borda) - Simula o levantamento */
    box-shadow: 0 10px 30px rgba(10, 61, 98, 0.2); /* Sombra Azul mais proeminente */
    border-color: var(--secondary-blue); /* Borda Azul clara */
    transform: translateY(-5px); /* Efeito de "levitar" */
    cursor: pointer;
}

/* Efeito de cores no hover */
.service-card:hover h5 {
    color: var(--secondary-blue) !important; /* Título Azul Claro no hover */
}
.service-card:hover p {
    color: #6c757d !important; /* Mantém o texto em cinza escuro */
}

.icon-wrapper {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    color: white;
}
/* Cores dos Ícones de Serviço (Baseado nas imagens) */
.icon-blue-bg { background-color: var(--primary-blue); } /* Terraplenagem (azul escuro) */
.icon-green-bg { background-color: #87CD9B; } /* Topo Urbana (verde claro) */
.icon-orange-bg { background-color: #F8BB73; } /* Topo Rural (laranja/amarelo) */
.icon-lighter-blue-bg { background-color: #6A9BC2; } /* Loteamento (azul claro) */


/* Footer */
.footer-section {
    background-color: #212529; /* Cor de fundo escura (do footer.png) */
    color: white;
}
.footer-section .text-muted {
    color: #adb5bd !important;
}
.footer-section a.social-link:hover {
    color: var(--vermelho) !important;
}

/* WhatsApp Flutuante */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--green-whatsapp);
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}


/* ===============================
   GALERIA DE FOTOS
================================ */

.gallery-item {
    position: relative;
    height: 25rem;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}
.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    filter: blur(12px);
    transform: scale(1.1);
}
.gallery-item img {
    position: relative;
    height: 100%;
    width: 100%;
    object-fit: contain;
    z-index: 1;
}

/* Hover */
.gallery-item:hover img {
    filter: brightness(0.8);
    border-color: var(--secondary-blue); /* Borda Azul clara */
    transform: translateY(-5px); /* Efeito de "levitar" */
}

/* ===============================
   MODAL / LIGHTBOX
================================ */

.gallery-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
}

.gallery-modal-img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    animation: zoomIn 0.3s ease;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

/* Animação */
@keyframes zoomIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


/* Media Queries para Responsividade */
@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
}

@media (max-width: 767px) {
    .navbar-logo {
        height: 35px;
    }
}

@media (max-width: 768px) {
    .carousel-img {
        height: 350px;
    }
}