/* ================================================== */
/* 1. RESET BÁSICO E CONFIGURAÇÕES GLOBAIS
/* ================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth; /* Rolagem suave ao clicar nos links do menu */
}

body {
    line-height: 1.5;
    background-color: #f4f4f4; /* Cinza claro de fundo */
    color: #333; /* Cor principal do texto */
}

.container {
    width: 98%; /* Ocupe sempre 98% da largura disponível */
    max-width: 1280px; /* Mas nunca ultrapasse os 1280px */
    margin: 0 auto; /* Mantém o contentor centrado */
}

h1, h3 {
    margin-bottom: 20px;
    color: #0d2c4e; /* Azul escuro para títulos */
}

h2 {
    font-size: 28px;
}

section {
    padding: clamp(40px, 5vw, 80px) 0;
}

/* ================================================== */
/* 2. CABEÇALHO E NAVEGAÇÃO
/* ================================================== */
.header {
    background-color: #ffffff;
    padding: 10px 0;
    position: sticky; /* Deixa o menu fixo no topo */
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%; /* Garante que o conteúdo do header vá de ponta a ponta */
    padding: 0 15px; /* Adiciona padding para não colar nas laterais */
}

.header-right {
    display: flex; /* Alinha o menu e o botão lado a lado */
    align-items: center; /* Alinha verticalmente ao centro */
    gap: 20px; /* Cria um espaço entre o menu e o botão */
}

.logo img {
    height: 50px; /* Defina a altura desejada para sua logo */
    width: auto;  /* A largura se ajustará automaticamente para manter a proporção */
    vertical-align: middle; /* Alinha melhor a imagem com os itens do menu ao lado */
}

.nav-menu ul {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0;
}

.nav-menu ul li {
    margin-left: 18px;
    font-size: 1.1em;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #0056b3;
}

.mobile-menu-icon {
    display: none; /* Escondido no desktop */
}

/* ================================================== */
/* 3. ESTILOS DE BOTÕES GERAIS
/* ================================================== */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 0px;
    margin-right: 10px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #418bda;
    color: #fff;
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: #fff;
    color: #0056b3;
}

.btn-cta {
    background-color: #0056b3;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn-cta:hover {
    background-color: #004494;
}

/* ================================================== */
/* 4. SECÇÕES DA PÁGINA PRINCIPAL (INDEX.HTML)
/* ================================================== */

/* ---- SECÇÃO HERO COM CARROSSEL ---- */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    padding: 0; 
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.carousel-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.carousel-bg::after {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background-image: url('');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 16px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-50%) scale(1.05);
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.indicator.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
}

.hero h1 {
    font-size: 2.5em;
    color: #fff;
    margin-top: 0;
}

.hero p {
    font-size: 1.2em;
    max-width: 600px;
    margin: 20px auto 30px auto;
}

.visit-banner {
    position: absolute;
    z-index: 10;
    bottom: 38px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #418bda;
    color: #f9fafc;
    padding: 10px 25px;
    border-radius: 5px;
    display: inline-block;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    animation: pulse-animation 3s infinite;
}

.visit-banner p {
    margin: 0;
    color: inherit;
    font-size: inherit;
    white-space: nowrap;
}

.visit-banner i {
    margin-right: 8px;
}

@keyframes pulse-animation {
    0% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
    100% { transform: translateX(-50%) scale(1); }
}

/* ---- SECÇÃO SOBRE ---- */
.about {
    background-color: #fff;
}

.about-flex {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    width: 40%;
    flex-shrink: 0;
}

.about-image img {
    max-width: 100%;
    border-radius: 8px;
}

.about-content {
    width: 60%;
}

.about-content ul {
    list-style: none;
    margin-top: 20px;
    padding: 0;
}

.about-content ul li {
    margin-bottom: 10px;
}

.about-content ul li i {
    color: #28a745;
    margin-right: 10px;
}

#about-detailed .about-content p {
    text-align: justify;
}

/* ---- SECÇÃO DE SERVIÇOS (HOME) ---- */
.services {
    background-color: #fff;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.services-grid a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3em;
    color: #165ca7;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    line-height: 1.6;
}

/* ---- SECÇÃO DE PARCEIROS ---- */
.partners-section {
    background-color: #fff;
    padding: 60px 0;
    text-align: center;
}

.partners-section p {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.logos-wrapper {
    width: 80%;
    max-width: 900px;
    margin: 0 auto;
}

.logos-container {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.logos-scroller {
    display: flex;
    gap: 100px;
    width: max-content;
    animation: scroll 30s linear infinite;
}

.partner-list {
    display: flex;
    align-items: center;
    gap: 100px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.partner-list img {
    height: 100px;
    max-width: 150px;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logos-container:hover .logos-scroller {
    animation-play-state: paused;
}

@keyframes scroll {
    to {
        transform: translateX(-50%);
    }
}

/* ---- SECÇÃO FAQ ---- */
.faq-section {
    background-color: #f9f9f9;
    padding: 60px 0;
}

.faq-section h2,
.faq-section p {
    text-align: center;
}

.faq-section p {
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.faq-container {
    max-width: 800px;
    margin: auto;
}

.faq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.5em;
    color: #0056b3;
    transition: transform 0.3s ease;
}

.faq-item[open]>.faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    border-top: 1px solid #e0e0e0;
}

.faq-answer p {
    text-align: left;
    margin-bottom: 0;
    line-height: 1.7;
}

/* ---- SECÇÃO CONTATO (HOME) ---- */
.contact {
    background-color: #0d2c4e;
    color: #fff;
    text-align: center;
}

.contact h2,
.contact p {
    color: #fff;
}

.btn-whatsapp {
    background-color: #25D366;
    color: #fff;
}

.btn-whatsapp:hover {
    background-color: #1DA851;
}

/* ================================================== */
/* 5. ESTILOS DE PÁGINAS INTERNAS
/* ================================================== */

/* ---- TÍTULOS DE PÁGINA (QUEM SOMOS, SERVIÇOS, CONTATO) ---- */
.page-title-about, .page-title-services {
    background: linear-gradient(rgba(13, 44, 78, 0.8), rgba(13, 44, 78, 0.8)), url('images/foto_azul.jpg') no-repeat center center/cover;
    color: #ffffff;
    padding: 80px 0;
    text-align: center;
}

.page-title-about h1, .page-title-services h1 {
    color: #ffffff;
    font-size: 3em;
}

.page-title-about p, .page-title-services p {
    font-size: 1.2em;
    color: #e0e0e0;
}

/* ---- PÁGINA 'QUEM SOMOS' ---- */
.company-values {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.value-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.value-card i {
    font-size: 2.5em;
    color: #0056b3;
    margin-bottom: 20px;
}

.value-card h3 {
    margin-bottom: 15px;
}

.cta-section {
    text-align: center;
    background-color: #0d2c4e;
    color: #ffffff;
}

.cta-section h2, .cta-section p {
    color: #ffffff;
}

.cta-section p {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- PÁGINA 'SERVIÇOS' ---- */
.services-list {
    padding: 60px 0;
}

.service-detail-card {
    display: flex;
    gap: 50px;
    align-items: center;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.service-detail-card:nth-child(even) {
    flex-direction: row-reverse;
}

.service-detail-img img {
    max-width: 100%;
    border-radius: 8px;
}

.service-detail-content h3 {
    font-size: 1.8em;
    color: #0056b3;
}

.service-detail-content ul {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

.service-detail-content ul li {
    margin-bottom: 10px;
}

.service-detail-content ul li i {
    color: #28a745;
    margin-right: 10px;
}

.service-buttons-container {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.btn-saiba-mais {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    background-color: #418bda;
    color: #fff;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    list-style: none;
}

.btn-saiba-mais:hover {
    background-color: #004494;
    border-color: #adb5bd;
}

.btn-saiba-mais::-webkit-details-marker {
    display: none;
}

.service-extra-info {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: left;
}

.service-extra-info h4 {
    margin-bottom: 10px;
    color: #0d2c4e;
}

.service-extra-info ul {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 15px;
}

.service-extra-info ul li {
    margin-bottom: 8px;
}

/* ---- PÁGINA 'CONTATO' ---- */
.contact-page-section {
    background-color: #ffffff;
}

.contact-page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 60px;
}

.contact-info-col h2, .contact-form-col h2, .map-container h2 {
    margin-bottom: 10px;
}

.contact-info-col p, .contact-form-col p {
    margin-bottom: 30px;
}

.contact-details-list {
    list-style: none;
    padding: 0;
}

.contact-details-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-details-list i {
    font-size: 1.5em;
    color: #0056b3;
    margin-right: 20px;
    margin-top: 5px;
    width: 25px;
    text-align: center;
}

.contact-details-list strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.contact-details-list p {
    margin: 0;
    line-height: 1.4;
}

.map-container {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.form-container form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
}

.form-group button {
    width: 100%;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
}

/* ================================================== */
/* 6. RODAPÉ
/* ================================================== */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* ================================================== */
/* 7. ESTILOS DA GALERIA E LIGHTBOX (NOVO)
/* ================================================== */

.portfolio-section {
    background-color: #ffffff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item img:hover {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* --- Estilos do Lightbox (Visualizador) --- */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 5px;
    animation: zoomIn 0.5s;
}

@keyframes zoomIn {
    from { transform: scale(0.5); }
    to { transform: scale(1); }
}

.lightbox-caption {
    margin-top: 15px;
    color: #f1f1f1;
    font-size: 1.1em;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #bbb;
}

/* --- Setas de Navegação (NOVO) --- */
.lightbox .prev,
.lightbox .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 25px;
    transition: 0.6s ease;
    border-radius: 0 10px 10px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox .next {
    right: 0;
    border-radius: 10px 0 0 10px;
}

.lightbox .prev {
    left: 0;
}

.lightbox .prev:hover,
.lightbox .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* ================================================== */
/* 8. RESPONSIVIDADE (MEDIA QUERIES)
/* ================================================== */
@media (max-width: 992px) {
    .values-grid { grid-template-columns: 1fr 1fr; }
    .contact-page-wrapper { grid-template-columns: 1fr; }
    .logos-scroller, .partner-list { gap: 60px; }
}


@media (max-width: 768px) {
    /* --- GERAL --- */
    h1 { font-size: 2.2em; }
    h2 { font-size: 1.8em; }
    section { padding: 40px 15px; } /* Adiciona padding lateral */
    .container { width: 100%; }

    /* --- CABEÇALHO E MENU HAMBÚRGUER --- */
    .mobile-menu-icon {
        display: block;
        background-color: transparent;
        border: none;
        color: #0d2c4e;
        font-size: 1.8em;
        cursor: pointer;
        z-index: 1002;
    }

    .header-right {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: auto;
        background-color: rgba(13, 44, 78, 0.95);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: none; 
        flex-direction: column;
        align-items: center;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        display: flex;
        padding: 25px 0;
        gap: 20px;
    } 

    .header-right.active {
        transform: translateY(0);
    }

    .nav-menu ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .nav-menu ul li {
        margin: 12px 0;
    }

    .header-right.active .nav-menu a {
        color: #ffffff;
    }
    
    .header-right .btn-cta {
        margin-top: 15px;
    }

    /* --- HERO (CARROSSEL) --- */
    .hero {
        min-height: 550px;
        height: 85vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content-wrapper .container {
        background-color: rgba(13, 44, 78, 0.75);
        padding: 25px;
        border-radius: 8px;
    }
    
    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 1.1em;
    }
    
    .hero .btn {
        display: block;
        margin: 10px auto;
        width: 90%;
    }

    .carousel-btn {
        width: 40px; 
        height: 40px;
    }
    .carousel-btn.prev { left: 10px; }
    .carousel-btn.next { right: 10px; }

    .carousel-indicators {
        bottom: 10px;
    }

    .visit-banner { 
        display: none; 
    } 

    /* --- SEÇÃO SOBRE --- */
    .about-flex {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .about-image, .about-content { 
        width: 100%; 
    }

    /* --- GRIDS (SERVIÇOS, VALORES, ETC) --- */
    .services-grid, .values-grid {
        grid-template-columns: 1fr;
    }

    /* --- PÁGINA DE SERVIÇOS --- */
    .service-detail-card, .service-detail-card:nth-child(even) {
        flex-direction: column;
        padding: 25px;
        gap: 25px;
    }

    .service-detail-img, .service-detail-content {
         width: 100%;
         text-align: center;
    }
    
    .service-detail-content ul {
        text-align: left;
        display: inline-block;
    }

    .service-buttons-container {
        flex-direction: column;
        align-items: center;
    }

    /* --- FORMULÁRIO DE CONTATO --- */
    .form-container form,
    .contact-page-wrapper {
        grid-template-columns: 1fr;
    }

    .page-title-about h1, .page-title-services h1 {
        font-size: 2.5em;
    }
    
    .form-container form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .service-detail-card,
    .service-detail-card:nth-child(even) {
        padding: 30px;
    }
}