/* =========================================
   VARIÁVEIS WIDE E CONFIGURAÇÕES
========================================= */
:root {
    --wide-dark-blue: #1D2E55;
    --wide-light-blue: #2275B9;
    --wide-green: #7EBE44;
    --wide-border: #83C4EB;
    
    --bg-light: #f4f8fb;
    --text-dark: #1f2937;
    --text-light: #4b5563;
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET E BASE (Rolagem Suave)
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* Moderno: rolagem macia nas âncoras */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased; /* Melhora a leitura nas telas de celular */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px; /* Aumentado para melhor toque lateral no mobile */
}

/* =========================================
   ANIMAÇÕES MODERNAS
========================================= */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* =========================================
   BOTÕES (Tamanho seguro para toque)
========================================= */
.btn-primary, .btn-secondary, .btn-primary-inverse {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    min-height: 48px; /* Recomendação de segurança para botões mobile (touch target) */
}

.btn-primary {
    background-color: var(--wide-light-blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(34, 117, 185, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background-color: #1c64a0;
    box-shadow: 0 8px 25px rgba(34, 117, 185, 0.4);
    color: var(--white);
}

.btn-secondary {
    background-color: var(--wide-green);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(126, 190, 68, 0.3);
}

.btn-secondary:hover {
    background-color: #6da639;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(126, 190, 68, 0.4);
}

.btn-primary-inverse {
    background-color: var(--white);
    color: var(--wide-dark-blue);
    border: 2px solid var(--white);
}

.btn-primary-inverse:hover {
    background-color: transparent;
    color: var(--white);
}

/* =========================================
   NAVBAR (Glassmorphism e Mobile-Ready)
========================================= */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Efeito moderno de vidro fosco */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(131, 196, 235, 0.15);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    font-weight: 600;
    color: var(--wide-dark-blue);
}

.nav-links a:not(.btn-primary) {
    position: relative;
    padding: 5px 0;
}

/* Efeito sublinhado moderno no hover */
.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--wide-light-blue);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

.menu-toggle {
    display: none; /* Escondido no Desktop */
    background: none;
    border: none;
    font-size: 28px;
    color: var(--wide-dark-blue);
    cursor: pointer;
    padding: 10px;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    margin-top: 100px;
    background: linear-gradient(145deg, var(--wide-dark-blue) 0%, #101a30 100%);
    color: var(--white);
    padding: 140px 0 160px; /* Mais respiro */
    text-align: center;
    position: relative;
    border-bottom: 6px solid var(--wide-green);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 45px;
    color: #e2e8f0;
    font-weight: 300;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* =========================================
   SEÇÕES E CARDS (Sombras Orgânicas)
========================================= */
.section-padding { padding: 100px 0; }
.section-bg-light { background-color: var(--bg-light); }

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--wide-dark-blue);
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.service-card {
    background: var(--white);
    padding: 45px 35px;
    border-radius: 24px;
    /* Sombra orgânica moderna */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0,0,0,0.02);
    border: 1px solid rgba(131, 196, 235, 0.1);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(34, 117, 185, 0.08);
    border-color: rgba(131, 196, 235, 0.5);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--wide-green);
    color: var(--white);
    border-radius: 16px; /* Squircle design - muito usado hoje em dia */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px rgba(126, 190, 68, 0.3);
}

.service-card:nth-child(even) .icon-box {
    background: var(--wide-light-blue);
    box-shadow: 0 8px 20px rgba(34, 117, 185, 0.3);
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--wide-dark-blue);
    font-weight: 800;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 1.05rem;
}

/* =========================================
   CLIENTES
========================================= */
.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.client-box img {
    max-width: 150px;
    height: auto;
    filter: grayscale(100%) opacity(0.5);
    transition: var(--transition);
}

.client-box img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* =========================================
   SPLIT LAYOUT (A Solução)
========================================= */
.split-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.text-block { flex: 1; }

.text-block h2 {
    font-size: 2.5rem;
    color: var(--wide-dark-blue);
    margin-bottom: 25px;
    font-weight: 800;
}

.text-block p {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 1.15rem;
}

.text-block strong { color: var(--wide-light-blue); }

.image-block { flex: 1; }

.image-block img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(29, 46, 85, 0.15);
}

/* =========================================
   FOOTER CONTACT E FOOTER
========================================= */
.footer-contact {
    background: linear-gradient(135deg, var(--wide-light-blue) 0%, var(--wide-dark-blue) 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 0;
}

.footer-contact h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.footer-contact p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

footer {
    background-color: #0b1222;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 30px 0;
    font-size: 0.95rem;
}

/* =========================================
   RESPONSIVIDADE TOTAL (Mobile / Tablets)
========================================= */
@media (max-width: 992px) {
    .split-layout {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }
    
    .hero h1 { font-size: 2.8rem; }
}

@media (max-width: 768px) {
    /* Navbar e Menu Mobile */
    .menu-toggle {
        display: block; /* Mostra o botão hamburguer */
    }
    
    .nav-links {
        position: absolute;
        top: 100px; /* Logo abaixo do header */
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 30px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        
        /* Animação do menu mobile */
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        pointer-events: none;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a:not(.btn-primary) {
        display: block;
        padding: 15px;
        font-size: 1.1rem;
    }
    
    .nav-links .btn-primary {
        margin-top: 15px;
        width: 80%;
    }

    /* Ajustes Gerais para Telas Menores */
    .hero {
        padding: 100px 0 120px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%; /* Botões ocupam 100% no mobile */
    }

    .section-title h2 {
        font-size: 2rem;
    }
    
    .footer-contact h2 {
        font-size: 2rem;
    }
}