/* 
 * S.O.S Prev - Assessoria Previdenciária
 * Arquivo de Estilos Principal (CSS)
 * Focado em UI/UX, Conversão e Responsividade
 */

/* 1. VARIÁVEIS E RESET */
:root {
    --primary-color: #0E146B;    /* Azul Escuro */
    --secondary-color: #344F33;  /* Verde Escuro */
    --cta-color: #E2BD00;        /* Amarelo */
    --cta-hover: #c9a900;
    --bg-color: #F5FFF9;         /* Branco Gelo */
    --text-color: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 35px rgba(0, 0, 0, 0.12);
    --transition: all 0.3s ease;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }

/* 2. COMPONENTES REUTILIZÁVEIS */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--cta-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--cta-hover);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(226, 189, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto 60px;
}

/* 3. HEADER & NAVEGAÇÃO */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 20px 0;
    transition: var(--transition);
    background-color: var(--primary-color); /* ← sempre azul */
}

.header.scrolled {
    background-color: var(--primary-color); /* ← continua azul ao scrollar */
    padding: 12px 0;
    box-shadow: var(--shadow-soft);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

.logo span {
    color: var(--cta-color);
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--cta-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.nav-toggle span {
    width: 30px;
    height: 3px;
    background-color: var(--white);
    transition: var(--transition);
}

/* 4. HERO SECTION */
.hero {
    height: auto;
    min-height: 100vh;
    background: linear-gradient(rgba(14, 20, 107, 0.85), rgba(14, 20, 107, 0.85)), url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&q=80&w=1920') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: var(--white);
    padding: 80px 0 40px; /* ← adicionou padding embaixo */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 25px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.trust-item i {
    color: var(--cta-color);
}

/* 5. PROBLEMAS SECTION */
.problems {
    background-color: var(--white);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.problem-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
    border-bottom-color: #ff4d4d;
}

.problem-card i {
    font-size: 2.5rem;
    color: #ff4d4d;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.solution-cta {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-strong);
}

.solution-cta p {
    font-size: 1.3rem;
    font-weight: 600;
    max-width: 70%;
}

/* 6. SERVIÇOS SECTION */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(14, 20, 107, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.service-benefit {
    display: block;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* 7. COMO FUNCIONA SECTION */
.how-it-works {
    background: var(--secondary-color);
    color: var(--white);
}

.how-it-works .section-title, 
.how-it-works .section-subtitle {
    color: var(--white);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps-container::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 15px;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--cta-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 auto 25px;
    border: 5px solid var(--secondary-color);
}

.step h3 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* 8. DIFERENCIAIS */
.differentials {
    background-color: var(--white);
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.diff-item {
    text-align: center;
}

.diff-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.diff-item h4 {
    font-size: 1.1rem;
}

/* 9. SOBRE NÓS */
.about {
    background-color: var(--bg-color);
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
}

.about-image::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 10px solid var(--cta-color);
    border-left: 10px solid var(--cta-color);
    z-index: -1;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    text-align: left;
    margin-bottom: 25px;
}

.about-content p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.mission-box {
    background: var(--white);
    padding: 30px;
    border-left: 5px solid var(--primary-color);
    border-radius: 0 10px 10px 0;
    margin-top: 30px;
}

.mission-box h4 {
    margin-bottom: 10px;
}

/* 10. PROVA SOCIAL */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
}

.stars {
    color: var(--cta-color);
    margin-bottom: 15px;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 25px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.client-name {
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.client-tag {
    font-size: 0.8rem;
    color: var(--secondary-color);
    font-weight: 600;
}

/* 11. FAQ */
.faq {
    background-color: var(--bg-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.faq-question {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: rgba(14, 20, 107, 0.02);
}

.faq-answer {
    padding: 0 30px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-light);
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* 12. CONTATO & LOCALIZAÇÃO */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.map-container {
    margin-top: 50px;
    border-radius: 15px;
    overflow: hidden;
    height: 400px;
    box-shadow: var(--shadow-soft);
}

/* 13. RODAPÉ */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--cta-color);
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--cta-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
}

.social-links a:hover {
    background: var(--cta-color);
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* 14. WHATSAPP FLUTUANTE */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* 15. ANIMAÇÕES */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.fade-in-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 16. RESPONSIVIDADE */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.8rem; }
    .about-wrapper { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--primary-color);
        flex-direction: column;
        padding: 100px 40px;
        transition: 0.5s;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        z-index: 9999; /* ← isso resolve o menu sumindo */
    }
    .nav-menu.active { right: 0; }
    .hero { text-align: center; padding-top: 120px; }
    .hero-btns { justify-content: center; flex-direction: column; }
    .hero-trust { justify-content: center; }
    .solution-cta { flex-direction: column; text-align: center; gap: 30px; }
    .solution-cta p { max-width: 100%; }
    .steps-container { flex-direction: column; gap: 40px; }
    .steps-container::after { display: none; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .section-title { font-size: 2rem; }
    .hero h1 { font-size: 2.2rem; }
    .btn { width: 100%; }
    
    /* Adicione isso: */
    .hero {
        align-items: flex-start; /* conteúdo começa do topo */
        padding: 100px 0 50px;
    }
    .hero-trust {
        flex-direction: column; /* itens empilham verticalmente */
        gap: 12px;
    }
}
