/* =========================================
    RESET & CONFIGURAÇÕES GERAIS
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: #0F172A;
    color: #E2E8F0;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
    CABEÇALHO (HEADER)
   ========================================= */
header {
    background-color: #0F172A;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(127, 144, 209, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 80px;
    width: auto;
    display: block;
}

/* =========================================
    HERO SECTION (A DOBRA PRINCIPAL)
   ========================================= */
#hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1e293b 0%, #0F172A 100%);
}

#hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: #7F90D1;
    margin-bottom: 20px;
    line-height: 1.2;
}

.subheadline {
    font-size: 1.25rem;
    color: #94A3B8;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* =========================================
    BOTÕES & CTAS
   ========================================= */
.btn-destaque, .btn-destaque-final {
    background-color: #FD6262;
    color: #ffffff;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: transform 0.2s, background 0.2s;
    display: inline-block;
}

.btn-destaque:hover, .btn-destaque-final:hover {
    background-color: #e04a4a;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(253, 98, 98, 0.3);
}

.btn-primary {
    color: #7F90D1;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #7F90D1;
    padding: 10px 25px;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #7F90D1;
    color: #0F172A;
}

/* =========================================
    SEÇÕES GERAIS
   ========================================= */
section {
    padding: 80px 0;
}

h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
}

h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: #FD6262;
    margin: 15px auto;
}

/* =========================================
    CARDS (SOLUÇÃO SCOPE)
   ========================================= */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.card {
    background-color: #1E293B;
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid #7F90D1;
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    color: #ffffff;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* =========================================
    LISTAS ESTILIZADAS
   ========================================= */
.lista-servicos, .lista-problemas, .lista-beneficios {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
}

.lista-servicos li, .lista-problemas li, .lista-beneficios li {
    background-color: #1E293B;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FD6262;
}

.lista-servicos strong {
    color: #7F90D1;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 5px;
}

/* =========================================
    RODAPÉ (FOOTER)
   ========================================= */
footer {
    background-color: #020617;
    padding: 60px 0 20px;
    text-align: center;
    color: #64748B;
    margin-top: 60px;
}

footer hr {
    border: 0;
    border-top: 1px solid #1E293B;
    margin: 30px 0;
}

.logo-footer {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.8;
}

/* Ajuste do Container de Créditos */
.dev-credits {
    font-size: 1.2rem;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #94A3B8;
}

.dev-credits a {
    color: #7F90D1;
    text-decoration: none;
    transition: color 0.2s;
}

.dev-credits a:hover {
    color: #FD6262;
}

/* =========================================
    RESPONSIVIDADE 
   ========================================= */
@media (max-width: 768px) {
    /* Ajuste do cabeçalho no celular */
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    .logo {
        height: 60px; /* Logo menor para não ocupar a tela toda */
    }

    /* Títulos menores */
    #hero h1 {
        font-size: 2.2rem;
    }

    /* O Hero se ajusta ao tamanho da tela (evita cortes) */
    #hero {
        height: auto;
        min-height: 85vh;
        padding: 100px 0 60px;
    }

    /* Reduz espaços em branco excessivos */
    section {
        padding: 50px 0;
    }

    /* Botões ficam na largura total (melhor para clicar com dedo) */
    .btn-destaque, .btn-destaque-final {
        width: 100%;
        display: block;
        padding: 15px 20px;
    }
    
    /* Ajuste do rodapé para celular */
    .dev-credits {
        flex-direction: column;
        gap: 5px;
        margin-bottom: 80px; /* Espaço para o botão do WhatsApp */
    }
}

/* =========================================
    KODEX ANIMATION & LINK
   ========================================= */
@keyframes kodexPulse {
    0% {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 0 5px #ff073a, 0 0 10px rgba(255, 7, 58, 0.5);
    }
    50% {
        color: #fff;
        text-shadow: 0 0 10px #ff073a, 0 0 20px #ff073a, 0 0 40px #ff073a, 0 0 80px #ff073a;
    }
    100% {
        color: rgba(255, 255, 255, 0.8);
        text-shadow: 0 0 5px #ff073a, 0 0 10px rgba(255, 7, 58, 0.5);
    }
}

#link-kodex {
    text-decoration: none !important;
    font-weight: bold;
    font-family: 'Teko', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 2px;
    cursor: pointer !important;
    display: inline-flex !important; 
    align-items: center; 
    gap: 10px; 
    animation: kodexPulse 1.5s infinite ease-in-out; 
    transition: 0.3s;
}

.kodex-mini-icon {
    height: 35px; 
    width: auto;  
    filter: drop-shadow(0 0 2px #ff073a);
}

#link-kodex:hover {
    animation: none;
    color: #fff !important;
    text-shadow: 
        0 0 10px #00BFFF,
        0 0 30px #1E90FF,
        0 0 50px #fff;
    transform: scale(1.1);
}

/* =========================================
    Ajuste SEÇÃO FINAL
   ========================================= */
#cta-final .container {
    display: flex;          
    flex-direction: column; 
    align-items: center;    
    text-align: center;  
    gap: 30px;
}

/* Botão Flutuante do WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
}

/* =========================================
    INSTAGRAM & ÍCONES (NOVO)
   ========================================= */
.instagram-link, .instagram-link-kodex {
    display: inline-flex !important;       
    align-items: center !important; 
    vertical-align: middle;       
    gap: 10px;                  
    
    color: #94A3B8 !important;  
    text-decoration: none;      
    font-weight: 600;           
    transition: color 0.3s;     
}

.instagram-link img, .instagram-link-kodex img {
    width: 40px;        
    height: 40px;       
    object-fit: contain;  
}

.instagram-link:hover, .instagram-link-kodex:hover {
    color: #FD6262 !important; 
}

address .instagram-link {
    margin-top: 15px; 
}

footer {
    background: radial-gradient(circle at top, #020617, #020617);
    padding: 80px 20px 40px;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

/* Logo */
.logo-footer {
    max-width: 120px;
    margin-bottom: 10px;
}

/* Texto institucional */
footer p,
footer address {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
}

/* Cidade */
footer address {
    font-style: normal;
}

/* Instagram e WhatsApp */
footer a {
    color: #e2e8f0;
    text-decoration: none;
}

footer a:hover {
    color: #38bdf8;
}

/* Linha divisória */
footer hr {
    width: 80%;
    max-width: 700px;
    border: none;
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    margin: 30px 0;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Créditos */
.dev-credits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    color: #94a3b8;
}

/* Kodex logo */
.kodex-mini-icon {
    height: 30px;
    vertical-align: middle;
}

/* Bloco de redes sociais */
.social-footer {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

/* Link Instagram padrão */
.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link img {
    width: 32px;
    height: 32px;
}

.social-link:hover {
    color: #38bdf8;
    transform: translateY(-2px);
}
