/* --- 1. Fontes e Variáveis --- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

:root {
    --ciano-ampla: #1AA0BB;
    --azul-ampla: #353D90;
    --roxo-ampla: #3D2674;
    --bg-body: #F5F7FA;
    --bg-white: #ffffff;
    --text-dark: #353D90;
    --text-body: #555555;
    --border-light: #E0E0E0;
    --radius-sharp: 2px;
}

body.dark-mode {
    --bg-body: #121216;
    --bg-white: #1E1E24;
    --text-dark: #ffffff;
    --text-body: #B0B0B0;
    --border-light: #2C2C35;
}

/* --- 2. Reset e Base --- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

img, iframe {
    max-width: 100% !important;
    height: auto;
    display: block;
}

iframe { width: 100% !important; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* Utilitários */
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.divider { border: 0; border-top: 1px solid #eee; margin: 30px 0; }

/* --- 3. Header --- */
header {
    width: 100%;
    background: var(--azul-ampla);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0; left: 0; z-index: 1000;
    display: flex; align-items: center;
    padding: 5px 0;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo img { width: 128px; height: auto; }

.nav-menu ul { display: flex; gap: 30px; }
.nav-menu a {
    font-weight: 600; color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem; text-transform: uppercase; position: relative;
}
.nav-menu a::after {
    content: ''; position: absolute; left: 0; bottom: -5px; width: 0; height: 2px;
    background: var(--ciano-ampla); transition: 0.3s;
}
.nav-menu a:hover { color: #ffffff; }
.nav-menu a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.theme-btn { background: none; border: none; cursor: pointer; font-size: 1.2rem; color: #ffffff; }

.nav-toggle {
    display: none; cursor: pointer; flex-direction: column; gap: 5px;
}
.nav-toggle span {
    display: block; width: 25px; height: 3px;
    background-color: #ffffff; border-radius: 2px; transition: 0.3s;
}

/* --- 4. Hero Section --- */
.hero {
    margin-top: 100px; padding: 60px 0;
    background: linear-gradient(135deg, var(--bg-body) 60%, rgba(26, 160, 187, 0.1) 100%);
    display: flex; align-items: center; min-height: 80vh;
    overflow: hidden;
}

.page-header {
    margin-top: 100px;
    background: linear-gradient(135deg, var(--bg-body) 60%, rgba(26, 160, 187, 0.1) 100%);
    padding: 50px 0; text-align: center; width: 100%;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 10px; color: var(--azul-ampla); }
.page-header p { max-width: 800px; margin: 0 auto; font-size: 1rem; color: var(--text-body); }

.section-content { padding-top: 30px; padding-bottom: 60px; }
.section-content.compact { padding-top: 20px; }

.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-text h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 800; }
.hero-text span { color: var(--ciano-ampla); }

.hero-stats {
    display: flex; gap: 40px; margin-top: 40px; padding-top: 20px; 
    border-top: 2px solid var(--ciano-ampla);
}
.stat-item strong { display: block; font-size: 2.2rem; color: var(--azul-ampla); font-weight: 800; }
.stat-item span { font-size: 0.8rem; text-transform: uppercase; font-weight: 700; }

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(100px); }
    to { opacity: 1; transform: translateX(0); }
}
.hero-img { animation: slideInRight 1s ease-out forwards; position: relative; }
.hero-img img { border-radius: var(--radius-sharp); box-shadow: 20px 20px 0 var(--ciano-ampla); }

.btn {
    display: inline-block; padding: 14px 35px; background-color: var(--ciano-ampla);
    color: #fff; font-weight: 800; border-radius: var(--radius-sharp);
    margin-top: 25px; text-transform: uppercase; font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(26, 160, 187, 0.3);
}
.btn:hover { background-color: var(--azul-ampla); transform: translateY(-2px); }

/* --- 5. Serviços --- */
.section { padding: 20px 0; width: 100%; overflow: hidden; }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.2rem; margin-bottom: 15px; font-weight: 700; }
.section-title span { display: block; width: 80px; height: 4px; background: var(--ciano-ampla); margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }

.service-card {
    background: var(--bg-white); padding: 40px 30px;
    border-radius: var(--radius-sharp); border: 1px solid var(--border-light);
    position: relative; overflow: hidden; height: 320px;
    transition: all 0.4s ease; display: flex; flex-direction: column;
    justify-content: center; align-items: center; text-align: center;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: var(--azul-ampla); transition: 0.3s;
}
.card-icon { font-size: 3.5rem; color: var(--ciano-ampla); margin-bottom: 20px; transition: 0.4s; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 10px; font-weight: 800; z-index: 2; transition: 0.4s; }
.service-card p {
    font-size: 0.95rem; color: var(--text-body); font-weight: 500;
    opacity: 0; transform: translateY(20px); transition: 0.4s;
    position: absolute; bottom: 40px; left: 30px; right: 30px;
}
.service-card:hover {
    transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    justify-content: flex-start; padding-top: 50px;
}
.service-card:hover::before { background: var(--ciano-ampla); height: 8px; }
.service-card:hover .card-icon { font-size: 2.5rem; margin-bottom: 10px; transform: translateY(-10px); }
.service-card:hover h3 { color: var(--azul-ampla); transform: translateY(-10px); }
.service-card:hover p { opacity: 1; transform: translateY(0); position: relative; bottom: auto; left: auto; right: auto; }

/* --- 6. Carrossel Clientes --- */
.clients-section {
    background-color: var(--bg-white); padding: 40px 0;
    border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light);
    width: 100%; overflow: hidden;
}
.slider { margin: auto; overflow: hidden; position: relative; width: 100%; }
.slide-track { animation: scroll 30s linear infinite; display: flex; width: calc(250px * 10); align-items: center; }
.slide { height: 100px; width: 250px; display: flex; align-items: center; justify-content: center; padding: 0 20px; }
.slide img { max-width: 100%; max-height: 80px; width: auto; filter: grayscale(100%); opacity: 0.7; border: none !important; }
.slide img:hover { filter: grayscale(0); opacity: 1;}
@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-250px * 5)); } }

/* --- 7. FAQ --- */
.faq-section { background-color: rgba(53, 61, 144, 0.03); padding: 80px 0; }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item {
    background: var(--bg-white); margin-bottom: 15px;
    border-left: 4px solid var(--ciano-ampla); box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.faq-item summary {
    padding: 25px; cursor: pointer; font-weight: 700; font-size: 1.1rem;
    color: var(--azul-ampla); list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--ciano-ampla); font-weight: 800; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 25px 25px 25px; font-size: 0.95rem; color: var(--text-body); border-top: 1px solid #f0f0f0; margin-top: 0; }

/* --- 8. Página Sobre --- */
.intro-text { max-width: 800px; margin: 0 auto; text-align: center; color: var(--text-body); margin-bottom: 40px; }
.mvv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; margin-top: 20px; }
.mvv-card {
    background: var(--bg-white); padding: 35px 25px; border-radius: var(--radius-sharp);
    border: 1px solid var(--border-light); border-top: 4px solid var(--ciano-ampla);
    text-align: center; display: flex; flex-direction: column; align-items: center;
}
.about-image { width: 100%; height: 350px; object-fit: cover; border-radius: var(--radius-sharp); margin-bottom: 30px; }

/* --- 9. Página Contato --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; margin-top: 30px; }
.contact-card {
    background: var(--bg-white); padding: 35px; border-radius: var(--radius-sharp);
    border: 1px solid var(--border-light); display: flex; flex-direction: column; justify-content: center;
}
.contact-card.no-padding { padding: 10px; }
.info-item { display: flex; gap: 15px; margin-bottom: 25px; }
.info-icon {
    width: 45px; height: 45px; background: rgba(53, 61, 144, 0.1); color: var(--azul-ampla);
    display: flex; align-items: center; justify-content: center; border-radius: 50%; flex-shrink: 0;
}
.social-links { display: flex; gap: 12px; margin-top: 5px; }
.social-btn {
    width: 40px; height: 40px; background: var(--bg-body); color: var(--azul-ampla);
    display: flex; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid var(--border-light);
}
.map-container {
    position: relative; width: 100%; padding-bottom: 75%; height: 0; overflow: hidden; border-radius: var(--radius-sharp);
}
.map-container iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: 0; }

/* --- 10. Footer --- */
footer { background: var(--azul-ampla); color: #fff; padding: 30px 0 15px; text-align: center; width: 100%; }
footer img { width: 256px; height: auto; display: inline-block; max-width: 80%; }
footer p { opacity: 0.8; font-size: 0.9rem; margin-bottom: 5px; }

/* --- 11. Whatsapp Float --- */
.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px; z-index: 100; display: flex; align-items: center; justify-content: center;
}

/* --- MOBILE E TABLET (Max 768px) --- */
@media (max-width: 768px) {
    /* Menu Mobile */
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed; top: 80px; right: -100%; width: 85%; height: calc(100vh - 80px);
        background: var(--azul-ampla); padding: 40px 20px; transition: 0.4s;
        display: flex; flex-direction: column; align-items: center; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.1); z-index: 999;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; gap: 30px; text-align: center; width: 100%; }
    .nav-menu a { font-size: 1.2rem; color: #ffffff; display: block; width: 100%; }
    
    /* Layout */
    .hero, .page-header { margin-top: 90px; padding: 40px 0; text-align: center; }
    .hero-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-text h1 { font-size: 2rem; }
    .hero-stats { justify-content: center; flex-wrap: wrap; border-top: none; }
    .hero-img { order: -1; margin-top: 20px; }
    
    .services-grid, .contact-grid { grid-template-columns: 1fr; padding: 0; width: 100%; }
    
    /* Cards Mobile com Efeito Hover/Toque (Restaurado) */
    .service-card { 
        height: 280px; /* Altura fixa fechado */
        padding: 30px 20px;
        justify-content: center;
    }
    /* Esconde texto no mobile inicialmente */
    .service-card p { 
        opacity: 0; 
        position: absolute; 
        bottom: 20px; left: 20px; right: 20px;
        transform: translateY(20px);
        margin-top: 0;
    }
    /* Ao tocar/hover */
    .service-card:hover, .service-card:active { 
        justify-content: flex-start;
        padding-top: 40px;
        transform: translateY(-5px);
    }
    .service-card:hover p, .service-card:active p { 
        opacity: 1; 
        position: relative; 
        transform: translateY(0); 
        bottom: auto; 
        margin-top: 15px; 
    }
    .service-card:hover .card-icon, .service-card:active .card-icon {
        transform: translateY(-5px);
        margin-bottom: 5px;
    }
    .service-card:hover h3, .service-card:active h3 {
        transform: translateY(-5px);
    }
    
    /* Mapa Mobile */
    .map-container { width: 100%; padding-bottom: 100%; }
    
    /* Carrossel */
    .slide { width: 140px; padding: 0 10px; }
    .slide-track { width: calc(140px * 10); }
    @keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-140px * 5)); } }
    
    .whatsapp-float { width: 50px; height: 50px; font-size: 24px; bottom: 20px; right: 20px; }
}