/* Reset básico e Fontes */
:root {
    --primary-color: #007bff; /* Azul Padrão Bootstrap */
    --secondary-color: #6c757d; /* Cinza Padrão Bootstrap */
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-color: #212529;
    --menu-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Rolagem suave */
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

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

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-color);
}

h1, h2, h3 {
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--dark-color);
}

/* Header e Menu */
header {
    background-color: #fff;
    color: var(--dark-color);
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: var(--menu-height);
}

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

header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--primary-color);
}
header .logo img {
    max-height: 50px; /* Ajuste conforme sua logo */
}

.menu ul {
    list-style: none;
    display: flex;
}

.menu ul li {
    margin-left: 20px;
}

.menu ul li a {
    text-decoration: none;
    color: var(--dark-color);
    padding: 10px;
    transition: color 0.3s ease;
}

.menu ul li a:hover,
.menu ul li a.active {
    color: var(--primary-color);
}

.btn-orcamento {
    background-color: var(--primary-color);
    color: #fff !important;
    padding: 8px 15px !important;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn-orcamento:hover {
    background-color: #0056b3; /* Tom mais escuro do primário */
}

.menu-toggle {
    display: none; /* Escondido em telas maiores */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark-color);
    cursor: pointer;
}

/* Main Content Sections */
main {
    padding-top: var(--menu-height); /* Para compensar o header fixo */
}

#home.full-height {
    height: calc(100vh - var(--menu-height));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Para o carrossel */
}

/* Carrossel */
.carousel {
    position: relative;
    width: 100%;
    height: 100%; /* Ocupa toda a altura da seção home */
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative; /* Para texto sobreposto se necessário */
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Garante que a imagem cubra sem distorcer */
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.3);
    color: white;
    border: none;
    padding: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}
.carousel-control.prev { left: 15px; }
.carousel-control.next { right: 15px; }
.carousel-control:hover { background-color: rgba(0,0,0,0.6); }


/* Produtos e Serviços Grids */
.grid-produtos, .grid-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.produto-item, .servico-item {
    border: 1px solid #ddd;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.produto-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 15px;
}

.servico-item i {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Galeria Moderna (Imagem e Vídeo) */
.gallery-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%; /* Garante que a imagem preencha o contêiner */
    object-fit: cover; /* Cobre o espaço sem distorcer, pode cortar */
    display: block;
    transition: transform 0.3s ease;
}
.gallery-item:hover img {
    transform: scale(1.05);
}

.video-gallery .gallery-item::after { /* Overlay para vídeos */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
}
.video-gallery .gallery-item:hover::after {
    opacity: 0;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    pointer-events: none; /* Para o clique passar para o item */
    z-index: 5;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.video-gallery .gallery-item:hover .play-icon {
    opacity: 1;
}


/* Modal para Galeria e Vídeos */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    align-items: center; /* Centraliza verticalmente */
    justify-content: center; /* Centraliza horizontalmente */
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0; /* Removido padding para imagem/video ocupar tudo */
    max-width: 90%;
    max-height: 85vh; /* Altura máxima para dar espaço aos controles */
    display: flex; /* Para centralizar o conteúdo interno */
    align-items: center;
    justify-content: center;
}

#modalImage, #modalVideo {
    max-width: 100%;
    max-height: 85vh; /* Garante que a imagem/vídeo não estoure */
    display: block; /* Remove espaço extra abaixo da imagem */
}
#modalVideo {
    width: 80vw; /* Ajuste conforme preferência */
    height: calc(80vw * 9 / 16); /* Mantém proporção 16:9 */
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1002;
}
.close-modal:hover, .close-modal:focus {
    color: #bbb;
    text-decoration: none;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.1);
    color: white;
    border: none;
    padding: 15px;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1002;
    border-radius: 5px;
}
.modal-nav.prev-modal { left: 10px; }
.modal-nav.next-modal { right: 10px; }
.modal-nav:hover { background-color: rgba(255,255,255,0.3); }


/* Formulários */
form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 20px auto;
}

form input, form textarea, form select {
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
form select {
    appearance: none; /* Remove estilo padrão do select */
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 8px 10px;
}

form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-info p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.footer-social a {
    color: var(--light-color);
    margin: 0 10px;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: var(--primary-color);
}


/* Responsividade */
@media (max-width: 768px) {
    h2 {
        font-size: 2rem;
    }

    .menu ul {
        display: none; /* Escondido por padrão em mobile */
        flex-direction: column;
        position: absolute;
        top: var(--menu-height);
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        padding-bottom: 10px; /* Espaço no final */
    }

    .menu ul.active { /* Mostra o menu quando a classe 'active' é adicionada via JS */
        display: flex;
    }

    .menu ul li {
        margin: 0;
        width: 100%;
    }

    .menu ul li a {
        display: block;
        padding: 15px 20px;
        text-align: left;
        border-bottom: 1px solid #eee;
    }
     .menu ul li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: block; /* Mostra o botão hamburguer */
    }

    #home.full-height {
        height: auto; /* Altura automática para o carrossel em mobile */
        min-height: 60vh; /* Altura mínima para visualização */
    }
    .carousel {
        height: 60vh; /* Ou a altura que preferir para o carrossel em mobile */
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-info, .footer-social {
        margin-bottom: 20px;
    }
}

@media (min-width: 769px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        text-align: left;
    }
    .footer-info{
        text-align: left;
    }
    .footer-social {
         text-align: right;
    }
}