/* ========================================= */
/* VARIÁVEIS E CONFIGURAÇÕES GERAIS          */
/* ========================================= */
:root {
    --primary-color: #dc2626; /* Vermelho Destaque */
    --primary-dark: #991b1b; /* Vermelho Escuro */
    --secondary-color: #181818; /* Cinza Escuro Neutro / Quase Preto */
    --bg-light: #f3f4f6;
    --text-dark: #1f2937;
    --text-light: #4b5563;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ========================================= */
/* NAVBAR (Menu Superior)                    */
/* ========================================= */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--secondary-color);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    border-bottom: 3px solid var(--primary-color);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-quote {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn-quote:hover {
    background-color: var(--primary-dark);
}

.btn-login {
    border: 1px solid #4b5563;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-login:hover {
    background-color: #374151;
    border-color: #9ca3af;
}

/* ========================================= */
/* HERO SECTION (Topo com Parallax)          */
/* ========================================= */
.hero {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(rgba(24, 24, 24, 0.5), rgba(24, 24, 24, 0.5)), url('/img/fundo_jmix.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    margin-top: 60px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 1.25rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: #e5e7eb;
}

/* ========================================= */
/* CONFIGURAÇÕES GERAIS DE SEÇÕES            */
/* ========================================= */
section {
    padding: 5rem 5%;
    background-color: #ffffff; 
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
    text-transform: uppercase;
}

.section-title span {
    color: var(--primary-color);
    font-weight: bold;
}

.section-subtitle {
    text-align: center;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
}

/* ========================================= */
/* SOBRE A JMIX (Com Mapa Marca D'água)      */
/* ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    position: relative;
    z-index: 1;
    padding: 20px;
}

/* Imagem do mapa no fundo do texto */
/* O MAPA DO RS NO FUNDO (Marca d'água) */
.about-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5);
    width: 100%;
    height: 100%;
    background-image: url('/img/rs_mapa.png'); 
    background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
    /* MUDANÇA: Diminuímos de 0.25 para 0.15 para ficar bem sutil */
    opacity: 0.15; 
    z-index: -1;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: bold;
    text-align: justify; /* Este é o comando que alinha perfeitamente nas duas bordas */
}

.features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: var(--text-dark);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

/* ========================================= */
/* NOSSOS SERVIÇOS (Design em Cartões)       */
/* ========================================= */
.services {
    background-color: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    padding: 0;
    border: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

.service-img-holder {
    width: 100%;
    height: 180px;
    background-color: #ddd;
}

.service-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-content {
    padding: 1.5rem;
}

.service-content h3 {
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
    color: var(--secondary-color);
    font-weight: bold;
    display: inline-block;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 5px;
}

.service-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ========================================= */
/* PORTFÓLIO (Carrossel)                     */
/* ========================================= */
.portfolio {
    background-color: white;
    padding-bottom: 6rem;
}

.swiper {
    width: 100%;
    padding-bottom: 50px;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.swiper-slide img:hover {
    opacity: 0.8;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-color) !important;
}

.swiper-pagination-bullet-active {
    background-color: var(--primary-color) !important;
}

/* ========================================= */
/* LIGHTBOX (Galeria de Imagens)             */
/* ========================================= */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    object-fit: contain;
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

/* ========================================= */
/* FALE CONOSCO                              */
/* ========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-form input, .contact-form select, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
    background-color: white;
    color: var(--text-dark);
}

.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: var(--primary-dark);
}

/* ========================================= */
/* RODAPÉ (Footer)                           */
/* ========================================= */
footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2.5rem 2rem;
    margin-top: auto;
    border-top: 4px solid var(--primary-color);
    position: relative;
    z-index: 10;
}

footer p {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

/* ========================================= */
/* BOTÃO WHATSAPP FLUTUANTE                  */
/* ========================================= */
.whatsapp-flutuante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, background-color 0.3s ease;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-flutuante:hover {
    transform: scale(1.1);
    background-color: #20b858;
    color: #FFF;
}

@keyframes pulse-whatsapp {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ========================================= */
/* RESPONSIVIDADE (Telas Menores / Celulares)*/
/* ========================================= */
@media (max-width: 768px) {
    /* Desliga o menu normal (idealmente entra um menu hamburger aqui) */
    .nav-links {
        display: none; 
    }
    
    /* Corrige o Bug de Zoom do Parallax no celular */
    .hero {
        background-attachment: scroll; 
        background-position: center center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    /* Quebra as colunas lado a lado para ficarem uma embaixo da outra */
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .lightbox-content {
        width: 100%;
    }
    
    /* Botão do whatsApp fica ligeiramente menor */
    .whatsapp-flutuante {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 30px;
    }
}