/* --- RESET E VARIÁVEIS --- */
:root {
    --azul-escuro: #2c3e50;
    --azul-primario: #2980b9;
    --texto-escuro: #333;
    --texto-claro: #fff;
    --fundo-cinza: #f8f9fa;
    --sombra-card: 0 4px 15px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background-color: var(--fundo-cinza); color: var(--texto-escuro); padding-top: 70px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- HEADER --- */
header {
    background: #fff;
    height: 70px;
    padding: 0 3%; /* Reduzi levemente o padding lateral para caber todos os itens */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
}

.logo img {
    height: 35px; 
    width: auto; 
    display: block;
}

.nav-links { display: flex; gap: 15px; align-items: center; } /* Gap reduzido para 15px */
.nav-links a.nav-item { font-weight: 600; font-size: 14px; color: #555; text-transform: uppercase; transition: 0.3s; }
.nav-links a.nav-item:hover { color: var(--azul-primario); }

/* Botão WhatsApp */
.btn-whatsapp {
    background: #25d366; 
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    text-transform: uppercase;
}
.btn-whatsapp:hover { background: #128c7e; }

/* Botão Área do Cliente (NOVO) */
.btn-client-area {
    background: var(--azul-primario);
    color: #fff !important;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    display: flex; align-items: center; gap: 6px;
    text-transform: uppercase;
    border: 1px solid var(--azul-primario);
    transition: 0.3s;
}
.btn-client-area:hover { 
    background: #1a5276; 
    border-color: #1a5276; 
}

.menu-toggle { display: none; font-size: 24px; cursor: pointer; color: var(--azul-escuro); }

/* --- HERO BANNER --- */
.hero {
    height: 85vh;
    background-size: cover; background-position: center;
    display: flex; align-items: center; padding: 0 5%; position: relative;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.4) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 600px; color: #fff; }
.hero-content h1 { font-size: 42px; line-height: 1.2; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 18px; margin-bottom: 30px; line-height: 1.6; opacity: 0.95; }
.btn-cta {
    display: inline-block; background: var(--azul-primario); color: #fff;
    padding: 12px 30px; font-size: 16px; font-weight: bold; border-radius: 5px;
    transition: 0.3s; text-transform: uppercase;
}
.btn-cta:hover { background: #1f618d; transform: translateY(-2px); }

/* --- SOBRE NÓS --- */
.about-section {
    padding: 80px 5%; display: flex; align-items: center; justify-content: space-between;
    gap: 60px; background: #fff;
}
.about-card-text {
    flex: 1; background: #fff; padding: 30px; border-radius: 10px; box-shadow: var(--sombra-card);
}
.about-card-text h2 { font-size: 28px; color: var(--azul-escuro); margin-bottom: 20px; border-left: 5px solid var(--azul-primario); padding-left: 15px; }
.about-card-text p { font-size: 15px; line-height: 1.8; color: #555; text-align: justify; }

.about-card-image {
    flex: 1; background: #fff; padding: 10px; border-radius: 10px; box-shadow: var(--sombra-card); display: flex; align-items: center; justify-content: center;
}
.about-card-image img { width: 100%; height: auto; object-fit: cover; border-radius: 5px; }


/* --- SERVIÇOS --- */
.services-section { padding: 80px 5%; background-color: var(--azul-escuro); text-align: center; }
.section-title { font-size: 36px; color: #fff; margin-bottom: 50px; text-transform: uppercase; font-weight: 700; letter-spacing: 1px; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.service-card {
    position: relative; height: 380px; border-radius: 10px; overflow: hidden;
    box-shadow: var(--sombra-card); background-color: #222;
    transition: transform 0.3s;
}
.service-card:hover { transform: translateY(-5px); }

/* Imagem de Fundo (Blur) */
.card-image-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    filter: blur(3px); -webkit-filter: blur(3px);
    transform: scale(1.1); transition: 0.3s; z-index: 0;
}
.service-card:hover .card-image-bg { opacity: 0.4; filter: blur(4px); }

/* Conteúdo do Card */
.card-content {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); display: flex; flex-direction: column;
    justify-content: space-between; padding: 30px 25px; z-index: 1;
}
.card-text-wrapper { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-bottom: 20px; }
.card-content h3 { font-size: 22px; margin-bottom: 15px; text-transform: uppercase; font-weight: 700; color: #fff; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }
.card-content p { font-size: 14px; line-height: 1.5; color: #eee; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.btn-details {
    padding: 12px 0; width: 100%; background: rgba(255,255,255,0.15);
    color: #fff; font-size: 14px; font-weight: bold; border-radius: 5px;
    cursor: pointer; border: 1px solid rgba(255,255,255,0.3); transition: 0.3s; text-transform: uppercase;
}
.btn-details:hover { background: var(--azul-primario); border-color: var(--azul-primario); }

/* --- MARQUEE PARCEIROS --- */
.partners-section {
    padding: 40px 0; background-color: #fff; overflow: hidden; 
    border-top: 1px solid #eee; border-bottom: 1px solid #eee;
}
.partners-title { 
    text-align: center; font-size: 22px; color: var(--azul-escuro); 
    margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700;
}

.marquee-wrapper { width: 100%; overflow: hidden; }
.marquee-track {
    display: flex; align-items: center;
    width: max-content; 
    animation: scroll 40s linear infinite;
}

.slide {
    width: 200px; padding: 0 20px;
    display: flex; justify-content: center; align-items: center;
}

.slide img {
    height: 40px !important; 
    width: auto !important; max-width: 150px;
    display: block;
    
    /* Filtro Cinza */
    filter: grayscale(100%) !important;
    -webkit-filter: grayscale(100%) !important;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.slide img:hover {
    filter: grayscale(0%) !important;
    -webkit-filter: grayscale(0%) !important;
    opacity: 1; transform: scale(1.15); cursor: pointer;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}
.marquee-track:hover { animation-play-state: paused; }

/* --- MODAL --- */
.modal {
    display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.85); align-items: center; justify-content: center;
    backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease;
}
.modal.show { display: flex; opacity: 1; }

.modal-content {
    background: #fff; width: 90%; max-width: 650px; max-height: 90vh; padding: 0;
    border-radius: 10px; position: relative; overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column;
}

.close-modal { position: absolute; top: 15px; right: 20px; font-size: 30px; cursor: pointer; color: #999; z-index: 10; transition: 0.2s; }
.close-modal:hover { color: var(--azul-primario); }

/* Header Flex: Ícone + Título */
.modal-header-row {
    padding: 30px 40px 15px 40px; display: flex; align-items: center; justify-content: center; gap: 15px;
}
.modal-icon-inline { font-size: 32px; color: var(--azul-primario); }
.modal-header-row h2 { color: var(--azul-escuro); font-size: 26px; margin: 0; text-transform: uppercase; font-weight: 700; padding: 0; }

/* Botões de Mídia */
.modal-media-top {
    padding: 0 40px 20px 40px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; border-bottom: 1px solid #eee;
}
.btn-media {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
    border-radius: 4px; font-weight: bold; text-transform: uppercase; font-size: 12px;
    text-decoration: none; transition: 0.3s; box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.btn-media:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.15); }
.btn-pdf { background-color: #e74c3c; color: #fff; }
.btn-pdf:hover { background-color: #c0392b; }
.btn-video { background-color: #34495e; color: #fff; }
.btn-video:hover { background-color: #2c3e50; }

/* Corpo */
.modal-body { padding: 25px 40px 40px 40px; color: #444; }

.modal-short-desc {
    font-size: 15px; font-weight: 500; color: #555; background-color: #f8f9fa;
    padding: 15px 20px; border-left: 4px solid var(--azul-primario);
    border-radius: 4px; margin-bottom: 25px; line-height: 1.6; text-align: justify;
}

.modal-long-desc { font-size: 14px; line-height: 1.7; color: #333; }
.modal-long-desc ul { list-style: none; padding: 0; }
.modal-long-desc li { margin-bottom: 8px; position: relative; padding-left: 25px; text-align: left; }
.modal-long-desc li::before { 
    content: "\f058"; font-family: "Font Awesome 6 Free"; font-weight: 900;
    color: var(--azul-primario); position: absolute; left: 0; top: 3px; font-size: 14px;
}

/* --- FOOTER & MAPA --- */
footer { background: var(--azul-escuro); color: #fff; padding: 60px 5% 20px; font-size: 14px; }
.footer-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.footer-col { flex: 1; min-width: 250px; }
.footer-logo img { height: 35px; margin-bottom: 15px; opacity: 0.9; }
.footer-col h4 { font-size: 16px; margin-bottom: 15px; text-transform: uppercase; color: #ddd; border-bottom: 1px solid #444; padding-bottom: 10px; display: inline-block; }
.footer-col p, .footer-col a { color: #bbb; line-height: 1.8; display: block; margin-bottom: 5px; }
.footer-col a:hover { color: #fff; }

.map-container {
    width: 100%; height: 200px; border-radius: 8px; overflow: hidden; margin-top: 15px; border: 2px solid #444;
}
.map-container iframe { width: 100%; height: 100%; border: 0; }
.copyright { text-align: center; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #888; font-size: 12px; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    .nav-links { position: absolute; top: 70px; left: 0; width: 100%; background: #fff; flex-direction: column; padding: 20px; display: none; box-shadow: 0 5px 5px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .about-section { flex-direction: column-reverse; background-color: var(--fundo-cinza); }
    .services-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; text-align: center; }
    .slide img { height: 30px !important; }
    
    /* Ajustes Mobile */
    .btn-whatsapp, .btn-client-area { justify-content: center; width: 100%; }
    .modal-content { width: 95%; max-height: 90vh; }
    .modal-header-row { flex-direction: column; gap: 10px; text-align: center; padding: 25px 20px 10px; }
    .modal-media-top { padding: 0 20px 15px; }
    .modal-body { padding: 20px; }
    .btn-media { width: 100%; justify-content: center; }
}