/* =========================================
   CONFIGURAÇÕES GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffcc00; 
    --secondary-color: #1a1a1a;
    --text-color: #333;
    --light-color: #f4f4f4;
    --white: #ffffff;
    --dark-bg: #111;
    --whatsapp-color: #25d366;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

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

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* =========================================
   HEADER & NAVEGAÇÃO
   ========================================= */
#main-header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

/* --- FIX DOS LINKS --- */
.nav-links a, 
.nav-links a:link, 
.nav-links a:visited {
    color: #ffffff !important; 
    text-decoration: none !important;
    opacity: 1 !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: var(--primary-color) !important;
}

.nav-links a.active {
    color: var(--primary-color) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

/* Botão de Orçamento no Menu */
.nav-links a.btn-nav {
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    padding: 10px 20px !important;
    border-radius: 5px !important;
    border-bottom: none !important;
}

/* Menu Mobile (Botão Hambúrguer) */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
}

/* =========================================
   HERO SECTION (BANNER)
   ========================================= */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../img/images.jpeg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: left;
}

.badge {
    background-color: var(--primary-color);
    color: #000;
    padding: 5px 15px;
    font-weight: 700;
    font-size: 12px;
    border-radius: 3px;
}

.hero h1 {
    font-size: 60px;
    margin: 20px 0;
    line-height: 1.1;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 700;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #000;
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* =========================================
   ESTATÍSTICAS
   ========================================= */
.stats {
    background-color: var(--primary-color);
    padding: 40px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    text-align: center;
}

.stat-item strong {
    display: block;
    font-size: 40px;
    font-family: 'Oswald', sans-serif;
}

/* =========================================
   SERVIÇOS (CARDS)
   ========================================= */
.services {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-bottom: 4px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: rgba(255, 204, 0, 0.1);
    border-radius: 50%;
    transition: 0.3s;
}

.card:hover .card-icon {
    background: var(--primary-color);
    color: #000;
}

/* =========================================
   RODAPÉ (FOOTER)
   ========================================= */
footer {
    background-color: var(--dark-bg);
    color: var(--white);
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
}

.footer-column h3 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary-color);
}

.map-container {
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    margin-bottom: 15px;
    font-size: 14px;
}

.icon-circle {
    width: 40px;
    height: 40px;
    background-color: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.btn-gps {
    display: block;
    background-color: var(--primary-color);
    color: #000 !important;
    text-align: center;
    padding: 15px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
}

.social-link:hover {
    background: var(--primary-color);
    color: #000;
}

.footer-bottom {
    background-color: #000;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #222;
    color: #777;
    font-size: 13px;
}

.dev-signature {
    background-color: #000;
    padding: 15px 0;
    border-top: 1px solid #111;
}

.dev-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.dev-signature span {
    font-size: 10px;
    color: #555;
}

.dev-signature img {
    height: 20px;
    filter: grayscale(100%);
    opacity: 0.5;
}

/* =========================================
   GALERIA & LIGHTBOX
   ========================================= */
.gallery-section { padding: 60px 0; background: #f9f9f9; }

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Oswald';
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 5px;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: #000;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 204, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-overlay i { font-size: 40px; color: #000; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.1); }

.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border: 4px solid var(--primary-color);
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 30px; right: 40px;
    color: #fff;
    font-size: 50px;
    cursor: pointer;
}

/* =========================================
   WHATSAPP & RESPONSIVIDADE
   ========================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: var(--whatsapp-color);
    color: #FFF;
    border-radius: 50px;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

/* =========================================
   SOLUÇÃO DEFINITIVA - CAMADAS DO MENU
   ========================================= */
@media (max-width: 768px) {

    /* 1. O Header inteiro precisa subir para a frente do overlay */
    #main-header {
        z-index: 10001 !important; /* Mais alto que o overlay */
        position: sticky;
    }

    /* 2. O Overlay (fundo escuro) fica logo abaixo do header */
    #menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.8) !important;
        z-index: 10000 !important; /* Camada base do efeito */
        display: none;
    }

    #menu-overlay.active {
        display: block !important;
    }

    /* 3. O Menu Lateral (que está dentro do header) */
    #nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #111111 !important; /* Cor sólida */
        z-index: 10002 !important; /* Acima do header e do overlay */
        transition: 0.4s ease-in-out;
        padding: 100px 40px;
        display: block !important;
        visibility: visible !important;
    }

    #nav-menu.active {
        right: 0;
    }

    /* 4. Forçar os links a serem BRANCO PURO e clicáveis */
    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        gap: 25px !important;
        opacity: 1 !important;
    }

    .nav-links a {
        color: #ffffff !important; /* Branco absoluto */
        font-size: 20px !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        opacity: 1 !important;
        padding: 15px 0;
        display: block !important;
        pointer-events: auto !important; /* Garante o clique */
    }

    /* Botão Orçamento no celular */
    .btn-nav {
        background-color: #ffcc00 !important;
        color: #000000 !important;
        text-align: center;
        border-radius: 8px;
        margin-top: 20px;
        padding: 15px !important;
    }

    /* Botão de abrir/fechar menu */
    .mobile-menu-btn {
        display: flex !important;
        z-index: 10005 !important; /* No topo de tudo */
    }
}