/* ================= VARIÁVEIS & SETUP ================= */
:root {
    /* Cores da Marca */
    --color-blue: #233053;       /* Azul Profundo (Textos principais, fundos escuros) */
    --color-blue-dark: #1a243f;  /* Azul Mais Escuro (Footer) */
    --color-accent: #E3CBA3;     /* Bege/Dourado (Botões, detalhes, ícones) */
    --color-accent-dark: #cda57a; /* Bege mais escuro para hover */
    
    /* Cores Neutras */
    --color-cream-light: #F8F4EF; /* Fundos claros alternados */
    --color-cream: #efebe5;       /* Textos claros sobre fundo escuro */
    --color-white: #ffffff;
    --color-text-body: #4a5568;   /* Cor de texto padrão para parágrafos */

    /* Tipografia */
    --font-body: 'Inter', sans-serif;
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.25rem;
    --normal-size: 1rem;
    --small-size: 0.875rem;

    /* Espaçamentos e Layout */
    --section-padding: 7rem 0; /* Espaço generoso entre seções */
    --container-width: 1200px;
    --border-radius: 12px;
    --box-shadow: 0 10px 30px rgba(35, 48, 83, 0.08);
}

/* Ajuste de fonte para telas maiores */
@media screen and (min-width: 968px) {
    :root {
        --h1-size: 3.5rem;
        --h2-size: 2.5rem;
        --h3-size: 1.5rem;
        --normal-size: 1.1rem;
    }
}

/* Reset Básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: var(--normal-size);
    color: var(--color-text-body);
    background-color: var(--color-white);
    line-height: 1.6;
}
ul { list-style: none; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ================= CLASSES UTILITÁRIAS ================= */
.container {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}
.grid { display: grid; gap: 2rem; }
.section { padding: var(--section-padding); }
.section__header { margin-bottom: 4rem; }
.section__title {
    font-size: var(--h2-size); color: var(--color-blue); font-weight: 800; line-height: 1.2;
}
.text-center { text-align: center; }
.text-accent { color: var(--color-accent) !important; }
.text-blue { color: var(--color-blue) !important; }
.text-white { color: var(--color-white) !important; }
.text-cream { color: var(--color-cream) !important; }
.text-cream-light { color: var(--color-cream-light) !important; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.ml-2 { margin-left: 0.5rem; }
.d-block { display: block; }
.align-center { align-items: center; }

/* Fundos */
.bg-cream-light { background-color: var(--color-cream-light); }
.bg-blue { background-color: var(--color-blue); }
.bg-dark-blue { background-color: var(--color-blue-dark); }

/* ================= BOTÕES ================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2rem; border-radius: 50px; font-weight: 600;
    transition: all 0.3s ease; cursor: pointer; white-space: nowrap;
}
.btn--accent { background-color: var(--color-accent); color: var(--color-blue); }
.btn--accent:hover { background-color: var(--color-accent-dark); transform: translateY(-3px); }
.btn--outline-cream { border: 2px solid var(--color-cream); color: var(--color-cream); }
.btn--outline-cream:hover { background-color: var(--color-cream); color: var(--color-blue); }
.btn--outline-accent {
    background: transparent; border: 2px solid var(--color-accent); color: var(--color-accent);
}
.btn--outline-accent:hover { background: var(--color-accent); color: var(--color-blue); transform: translateY(-3px); }
.btn--large { padding: 1.2rem 3rem; font-size: 1.1rem; }
.btn--sm { padding: 0.8rem 1.5rem; font-size: 0.9rem; }

/* ================= BOX DE SUBTÍTULO ================= */
.subtitle-box {
    display: inline-flex; align-items: center; justify-content: center;
    width: fit-content; background-color: var(--color-accent); color: var(--color-blue);
    padding: 0.6rem 1.5rem; border-radius: 50px; font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; line-height: 1;
    margin-bottom: 1.5rem; box-shadow: 0 5px 15px rgba(227, 203, 163, 0.3);
    margin-left: auto; margin-right: auto; /* Centraliza por padrão */
}
/* Alinha à esquerda nas seções específicas */
.desafio__content .subtitle-box, .specialist__content .subtitle-box { margin-left: 0; }

/* ================= HEADER & NAV (CORRIGIDO) ================= */
/* --- Base Desktop --- */
.header {
    width: 100%; position: fixed; top: 0; left: 0; z-index: 100;
    background-color: var(--color-white);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    /* Padding generoso para manter a faixa alta */
    padding: 1rem 0;
    transition: all 0.4s ease;
}
.header__container { display: flex; justify-content: space-between; align-items: center; }
.logo__img { height: 55px; } /* Logo grande no desktop */

/* Esconde elementos mobile no desktop */
.nav__toggle, .nav__close, .mobile-only-text { display: none; }

/* Estilo base do hambúrguer */
.nav__toggle { font-size: 2.2rem; cursor: pointer; }

/* Navegação Desktop (Horizontal) */
.nav { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; margin-left: 3rem; }
.nav__list { display: flex; column-gap: 2rem; }
.nav__link { color: var(--color-blue); font-weight: 600; transition: 0.3s; font-size: 1rem; }
.nav__link:hover { color: var(--color-accent); }
.header__actions_inside_menu { display: flex; align-items: center; column-gap: 1.5rem; }
.header__social_menu { font-size: 1.8rem; color: var(--color-blue); display: flex; align-items: center; transition: 0.3s; }
.header__social_menu:hover { color: var(--color-accent); transform: translateY(-2px); }

/* ================= MEDIA QUERIES ================= */
/* Tablet (< 1024px) */
@media screen and (max-width: 1023px) {
    .nav { margin-left: 1.5rem; }
    .nav__list { column-gap: 1.5rem; }
    .header__actions_inside_menu { column-gap: 1rem; }
}

/* MOBILE (< 767px) - AQUI ESTÃO AS CORREÇÕES */
@media screen and (max-width: 767px) {
    /* CORREÇÃO 1: Removido o ajuste de padding do .header para manter a altura */
    
    .logo__img { height: 45px; } /* Logo diminui um pouco para caber melhor */
    
    /* CORREÇÃO 2: Forçar a cor azul e a visibilidade do hambúrguer */
    .nav__toggle { 
        display: block;
        color: var(--color-blue) !important; 
    }

    /* Menu Gaveta */
    .nav {
        position: fixed; top: 0; right: -100%; background-color: var(--color-blue);
        width: 85%; height: 100vh; padding: 6rem 2rem 3rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 101; flex-direction: column; align-items: flex-start;
        justify-content: flex-start; margin-left: 0; overflow-y: auto;
    }
    .nav.show-menu { right: 0; box-shadow: -5px 0 20px rgba(0,0,0,0.2); }

    /* Conteúdo da Gaveta */
    .nav__close { display: block; position: absolute; top: 1.5rem; right: 1.5rem; font-size: 2rem; color: var(--color-white); cursor: pointer; }
    .nav__list { flex-direction: column; row-gap: 2rem; width: 100%; margin-bottom: 3rem; }
    .nav__link { color: var(--color-white); font-size: 1.5rem; display: block; }
    .header__actions_inside_menu {
        flex-direction: column; align-items: flex-start; width: 100%; gap: 2rem;
        padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1);
    }
    .header__social_menu { color: var(--color-accent); font-size: 1.5rem; }
    .mobile-only-text { display: inline-block; color: var(--color-cream-light); font-size: 1.1rem; font-weight: 500; }
    .nav__btn_menu { width: 100%; text-align: center; padding: 1.2rem; font-size: 1.1rem; }
    
    /* Ajustes de Layout Mobile */
    .hero__btns { flex-direction: column; width: 100%; }
    .hero__btns .btn { width: 100%; }
    .solutions__grid, .security__cards { grid-template-columns: 1fr; }
    .specialist__img { width: 100%; height: auto; }
    .experience-badge { right: 0; bottom: -20px; padding: 1rem 1.5rem; }
    .badge__number { font-size: 2rem; }
    .clients__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__container { grid-template-columns: 1fr; gap: 3rem; }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.7rem; }
}

/* ================= SEÇÕES (HERO, DESAFIO, ETC.) ================= */
/* MANTENHA O RESTANTE DO SEU CSS AQUI (Hero, Desafio, Soluções, etc.) */
/* Vou incluir o restante do seu CSS abaixo para garantir que está tudo completo */

.hero {
    position: relative; height: 100vh; min-height: 700px; display: flex; align-items: center; padding-top: 80px;
}
.hero__bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: -2;
}
.hero__overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(35, 48, 83, 0.95) 30%, rgba(35, 48, 83, 0.4)); z-index: -1;
}
.hero__container { grid-template-columns: 1fr; align-items: center; }
.hero__content { max-width: 600px; }
.hero__title { font-size: var(--h1-size); margin-bottom: 1.5rem; }
.hero__description { font-size: 1.2rem; margin-bottom: 3rem; opacity: 0.9; }
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Desafio Premium */
.bg-blue-gradient {
    background: radial-gradient(circle at center, #2a3a64 0%, var(--color-blue-dark) 100%);
    position: relative; overflow: hidden;
}
.bg-blue-gradient::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none; z-index: 0;
}
.desafio__grid { position: relative; z-index: 1; }
.lead-text { font-size: 1.2rem; line-height: 1.7; opacity: 0.9; }
.pain-points__grid { gap: 1.5rem; }
.pain-card {
    background-color: rgba(18, 24, 43, 0.8); padding: 2rem; border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05); box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); height: 100%; display: flex; flex-direction: column;
}
.pain-card:hover {
    transform: translateY(-8px) scale(1.02); border-color: var(--color-accent);
    box-shadow: 0 15px 30px rgba(227, 203, 163, 0.15); background-color: rgba(18, 24, 43, 0.95);
}
.pain-card__header { display: flex; align-items: center; margin-bottom: 1.5rem; }
.pain-icon-circle {
    width: 50px; height: 50px; background: linear-gradient(135deg, var(--color-accent), #cda57a);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    margin-right: 1rem; font-size: 1.5rem; color: var(--color-blue); box-shadow: 0 4px 10px rgba(227, 203, 163, 0.3); flex-shrink: 0;
}
.pain-card__title { font-size: 1.2rem; color: var(--color-white); margin-bottom: 0; font-weight: 700; line-height: 1.3; }
.pain-card p { color: var(--color-cream-light); font-size: 0.95rem; opacity: 0.8; margin-bottom: 0; flex-grow: 1; }

/* Soluções */
.solutions__grid { grid-template-columns: repeat(3, 1fr); }
.solution-card {
    background-color: var(--color-white); padding: 3rem 2.5rem; border-radius: var(--border-radius);
    box-shadow: var(--box-shadow); transition: 0.3s; text-align: center;
}
.solution-card:hover { transform: translateY(-10px); border-bottom: 3px solid var(--color-accent); }
.solution-card__icon {
    display: inline-flex; padding: 1.2rem; border-radius: 12px; font-size: 2rem; margin-bottom: 2rem;
}
.icon-box-blue { background-color: var(--color-blue); color: var(--color-accent); box-shadow: 0 10px 20px rgba(35, 48, 83, 0.2); }
.solution-card__title { font-size: var(--h3-size); color: var(--color-blue); margin-bottom: 1rem; font-weight: 700; }
.solution-card__list {
    text-align: left; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(0,0,0,0.05);
}
.solution-card__list li { margin-bottom: 0.8rem; display: flex; align-items: center; color: var(--color-blue); font-weight: 500; }
.solution-card__list li i { color: var(--color-accent); margin-right: 0.8rem; font-size: 1.2rem; }

/* Security */
.security__grid { grid-template-columns: 1fr; gap: 4rem; }
.security__cards { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.sec-card {
    background-color: rgba(255,255,255,0.05); padding: 2.5rem; border-radius: var(--border-radius);
    border: 1px solid rgba(227, 203, 163, 0.1);
}
.sec-card__icon { font-size: 2.5rem; margin-bottom: 1.5rem; }
.sec-card__title { font-size: 1.3rem; margin-bottom: 1rem; font-weight: 700; }

/* Especialista */
.specialist__grid { grid-template-columns: 1fr; gap: 4rem; }
.specialist__img-box { position: relative; justify-self: center; }
.specialist__img { width: 400px; height: 500px; object-fit: cover; border-radius: 20px; box-shadow: var(--box-shadow); }
.experience-badge {
    position: absolute; bottom: -30px; right: -30px; background-color: var(--color-accent);
    color: var(--color-blue); padding: 1.5rem 2rem; border-radius: 12px;
    box-shadow: 0 10px 20px rgba(227, 203, 163, 0.4); text-align: center;
}
.badge__number { display: block; font-size: 2.5rem; font-weight: 800; line-height: 1; }
.badge__text { font-size: 0.9rem; font-weight: 600; text-transform: uppercase; }
.specialist__role { font-size: 1.5rem; color: var(--color-text-body); font-weight: 500; margin-bottom: 2rem; }
.stats { grid-template-columns: repeat(2, 1fr); margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #eee; }
.stat__number { display: block; font-size: 2.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.stat__label { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: #888; }

/* Clientes */
.clients__grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; align-items: center; justify-items: center; }
.client-logo { opacity: 0.5; filter: grayscale(100%); transition: 0.3s; }
.client-logo:hover { opacity: 1; filter: grayscale(0); }

/* CTA e Footer */
.cta__description { max-width: 700px; font-size: 1.2rem; }
.contact__info { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.contact__item { display: flex; align-items: center; font-size: 1.1rem; }
.contact__item i { font-size: 1.5rem; margin-right: 0.8rem; }
.footer { padding: 5rem 0 2rem; }
.footer__container { grid-template-columns: 1fr; gap: 3rem; }
.footer__title { font-size: 1.2rem; margin-bottom: 1.5rem; }
.footer__link { color: var(--color-cream-light); text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; opacity: 0.8; }
.footer__link:hover { color: var(--color-accent); opacity: 1; transform: translateX(5px); }
.footer__text { display: inline-flex; align-items: center; opacity: 0.8; }
.footer__links li { margin-bottom: 1rem; }
.footer__copy { margin-top: 5rem; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.9rem; opacity: 0.7; }

/* Botão WhatsApp */
.whatsapp-float {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background-color: #25D366;
    color: var(--color-white); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.15); z-index: 1000; transition: all 0.3s ease;
}
.whatsapp-float:hover { background-color: #1fa851; transform: translateY(-5px); }
@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.whatsapp-float.pulse-animation { animation: pulse-green 2s infinite; }

/* ================= MEDIA QUERIES DESKTOP ================= */
@media screen and (min-width: 768px) {
    .hero__container { grid-template-columns: 3fr 2fr; }
    .desafio__grid { grid-template-columns: 2fr 3fr; gap: 4rem; }
    .pain-points__grid { grid-template-columns: repeat(2, 1fr); }
    .security__grid { grid-template-columns: 4fr 5fr; }
    .specialist__grid { grid-template-columns: 1fr 1fr; }
    .clients__grid { grid-template-columns: repeat(4, 1fr); }
    .footer__container { grid-template-columns: repeat(3, 1fr); }
}

/* =================================================================
   CORREÇÃO FINAL DE LAYOUT MOBILE (COLAR NO FIM DO ARQUIVO)
   Isso força os cards a empilharem verticalmente no celular.
================================================================= */

@media screen and (max-width: 767px) {
    
    /* 1. FORÇAR COLUNA ÚNICA (Resolve o problema dos cards saindo da tela) */
    .grid,
    .hero__container,
    .desafio__grid,
    .pain-points__grid,
    .solutions__grid,
    .security__grid,
    .security__cards,
    .specialist__grid,
    .stats,
    .clients__grid,
    .contact__info,
    .footer__container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    /* 2. AJUSTE DE LARGURA MÁXIMA */
    /* Garante que nada ultrapasse a largura da tela do celular */
    .container {
        max-width: 100% !important;
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
        overflow-x: hidden !important;
    }

    /* 3. HERO (CAPA) */
    .hero {
        min-height: auto !important;
        padding-top: 120px !important;
        padding-bottom: 4rem !important;
        background-position: 65% center !important;
    }
    .hero__title {
        font-size: 2.5rem !important; /* Texto um pouco menor para não quebrar */
    }

    /* 4. CARDS (Espaçamento Interno) */
    /* Reduz o "inchaço" dos cards para sobrar espaço pro texto */
    .pain-card, 
    .solution-card, 
    .sec-card {
        padding: 2rem 1.5rem !important;
    }

    /* 5. FOTO DO ESPECIALISTA */
    .specialist__img-box {
        margin-bottom: 2rem !important;
    }
    .specialist__img {
        width: 100% !important;
        max-width: 350px !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* 6. BOTÕES DA HERO */
    .hero__btns {
        flex-direction: column !important;
        width: 100% !important;
    }
    .hero__btns .btn {
        width: 100% !important;
    }
}