/* --- RESET E VARIÁVEIS --- */
:root {
    --primary: #CC0000;
    /* Vermelho Mari (Ajustado para o tom da logo se precisar) */
    --primary-dark: #990000;
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --border: #333;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* --- LOGOS --- */
/* Tamanho da logo no menu */

.logo-container {
    display: flex;
    align-items: center; /* Alinha verticalmente no centro */
    gap: 10px;           /* Espaço entre a logo e o nome */
}

.nav-logo {
    height: 40px;
    /* Ajuste conforme a necessidade */
    width: auto;
    display: block;
}

.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;      /* Extra Negrito */
    color: var(--text-white);
    letter-spacing: -1px;  /* Deixa as letras mais juntinhas (moderno) */
    line-height: 1;
}

/* O ponto vermelho no final do nome */
.logo-text span {
    color: var(--primary);
    font-size: 1.8rem; /* O ponto fica um pouco maior para destacar */
}

/* Tamanho da logo no footer */
.footer-logo {
    height: 70px;
    width: auto;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* --- ELEMENTOS DE UI --- */
.btn-cta {
    background-color: var(--primary);
    color: white;
    padding: 16px 40px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(204, 0, 0, 0.4);
}

.btn-cta:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    padding: 12px 30px;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--bg-dark);
}

.line-red {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 10px auto 40px;
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(10, 10, 10, 0.95);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #222;
}

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

.nav-links a {
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links .btn-nav {
    background: var(--text-white);
    color: var(--bg-dark);
    padding: 10px 25px;
    border-radius: 4px;
}

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

/* --- MENU MOBILE (HAMBÚRGUER) --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 101;
}

.menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
    padding: 80px 0 0;
    background: radial-gradient(circle at 70% 20%, #1f1f1f 0%, #0a0a0a 65%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
    padding-bottom: 80px;
    z-index: 2;
}

.badge-hero {
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 30px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.cta-sub {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
}

.features-mini {
    display: flex;
    gap: 25px;
}

.feat {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-img {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-img img {
    max-width: 100%;
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* --- PROBLEM SECTION --- */
.problem {
    padding: 80px 0;
    background: #000;
}

section h2 {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
}

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

.card-dark {
    background: var(--bg-card);
    padding: 35px;
    border: 1px solid var(--border);
    transition: 0.3s;
}

.card-dark:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.card-dark .icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.card-dark h3 {
    margin-bottom: 10px;
    color: var(--text-white);
    font-weight: 700;
    text-transform: uppercase;
}

.card-dark p {
    color: var(--text-gray);
}

/* --- NOVA SEÇÃO: SOBRE A MARI --- */
.about {
    padding: 100px 0;
    background-color: #0F0F0F;
    /* Levemente mais claro que o fundo */
    border-top: 1px solid #222;
    border-bottom: 1px solid #222;
}

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

.about-img-wrapper {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 8px;
    /* Estilo chique P&B */
    transition: 0.5s;
    position: relative;
    z-index: 2;
}

.about-img:hover {
    filter: grayscale(0%);
}

/* Fica colorida ao passar o mouse */

/* Quadrado vermelho atrás da foto */
.box-detail {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    background: var(--primary);
    z-index: 1;
}

.about-text {
    flex: 1.2;
    text-align: left;
}

.about-text h2 {
    text-align: left;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.bio-intro {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 15px;
    font-weight: 600;
}

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

.about-text strong {
    color: white;
}

.credentials li {
    margin-bottom: 10px;
    font-size: 1rem;
    color: #ddd;
}

/* Box do CREF */
.cref-box {
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 25px;
    border-left: 4px solid var(--primary);
    border-radius: 0 4px 4px 0;
    width: fit-content;
}

.cref-logo {
    height: 30px;
    width: auto;
    opacity: 0.8;
}

.cref-box strong {
    display: block;
    font-size: 1.1rem;
    color: white;
}

.cref-box span {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-gray);
}


/* --- TESTIMONIALS --- */
.results {
    padding: 80px 0;
    background: var(--bg-dark);
}

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

.testimonal-card {

    background: var(--bg-card);
    padding: 30px;
    border-left: 3px solid var(--primary);
    position: relative;
    display: flex;             /* Transforma o card em flexbox */
    flex-direction: column;    /* Organiza o conteúdo um embaixo do outro */
    height: 100%;              /* Garante que o card ocupe toda a altura da linha do Grid */
}

.testimonal-card p {
    font-style: italic;
    color: #ccc;
    margin-bottom: 20px;
    font-size: 1rem;
}

.author strong {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.author span {
    font-size: 0.8rem;
    color: #666;
}

/* --- PRICING --- */
.pricing {
    padding: 100px 0;
    background: #080808;
    text-align: center;
}

.subtitle {
    color: var(--text-gray);
    margin-bottom: 50px;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch;
}

.plan-card {
    background: var(--bg-card);
    padding: 40px;
    width: 320px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.plan-card.featured {
    border: 2px solid var(--primary);
    background: #1a0505;
    transform: scale(1.05);
    z-index: 2;
}

.plan-card .btn-cta,
.plan-card .btn-outline {
    width: 100%;
    /* Opcional: para o botão ocupar a largura toda */
}

/* Ancora o bloco "savings + botão" na base do card, independente do
   tamanho do conteúdo acima (check-list, título, etc.) */
.plan-footer {
    margin-top: auto;
}

.tag-best {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px;
    text-transform: uppercase;
}

.plan-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: 800;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 5px;
}

.price small {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-gray);
}

.saving {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.savings {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    margin-right: 10px;
    margin-bottom: 30px;
}

.check-list {
    text-align: left;
    margin: 30px 0;
}

.check-list li {
    margin-bottom: 12px;
    border-bottom: 1px solid #222;
    padding-bottom: 8px;
    color: #ccc;
    font-size: 0.9rem;
}

.check-list li::before {
    content: '✔';
    color: var(--primary);
    margin-right: 10px;
    font-weight: bold;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- FOOTER --- */
footer {
    background: #000;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid #222;
}

.socials {
    margin: 20px 0;
}

.social-link {
    color: var(--text-gray);
    margin: 0 20px;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.social-link:hover i {
    transform: scale(1.1);
}

.developer-credit {
    margin-top: 40px;
    font-size: 0.75rem;
    color: #444;
    border-top: 1px solid #111;
    padding-top: 20px;
}

.developer-credit a {
    color: #666;
}

.developer-credit a:hover {
    color: var(--primary);
}

/* --- BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde Oficial do WhatsApp */
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    z-index: 1000; /* Garante que fique acima de tudo (footer, imagens) */
    
    /* Centralizar o ícone */
    display: flex;
    align-items: center;
    justify-content: center;
    
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E; /* Verde um pouco mais escuro no hover */
    transform: scale(1.1);     /* Leve efeito de zoom */
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.4); /* Brilho verde */
}

/* Ajuste específico para Mobile para não cobrir conteúdo importante */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        font-size: 30px;
        bottom: 20px;
        right: 20px;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@media (max-width: 768px) {
    /* Header verdadeiramente fixo na viewport (evita o corte/deslocamento
       causado pelo bug do WebKit com "-webkit-overflow-scrolling: touch"
       nos carrosséis de Planos/Resultados). translate3d promove o header
       para sua própria camada de composição, eliminando o glitch. */
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }

    /* Compensa o header fixo para que o conteúdo inicial (hero) não
       fique escondido atrás dele */
    main {
        padding-top: 92px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid #222;
        border-top: 1px solid var(--primary);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        padding: 0 0 4px;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }

    .nav-links.active {
        max-height: 340px;
        opacity: 1;
    }

    .nav-links a {
        margin-left: 0;
        width: 100%;
        padding: 18px 24px;
        text-align: center;
        border-bottom: 1px solid #1a1a1a;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links .btn-nav {
        background: transparent;
        color: var(--text-white);
        width: auto;
        margin: 16px 24px 6px;
        padding: 14px 0;
        border-radius: 6px;
        border-bottom: none;
    }

    /* --- 1. CONFIGURAÇÕES DE TEXTO (Títulos Centralizados / Texto Justificado) --- */
    
    /* Centraliza todos os títulos H2 de seções */
    section h2, 
    .about-text h2,
    .pricing h2 {
        text-align: center;
    }

    /* Centraliza a linha vermelha decorativa */
    .line-red {
        margin: 10px auto 40px auto; 
    }

    /* Texto alinhado à esquerda, sem hifenização forçada (evita quebras como "exem-plo") */
    .about-text p,
    .card-dark p,
    .testimonal-card p {
        text-align: left;
    }

    /* --- 2. HERO SECTION (imagem de fundo + overlay para leitura do texto) --- */
    .hero {
        position: relative;
        min-height: 86vh;
        min-height: 86svh;
        display: flex;
        align-items: flex-end;
        /* padding-top deixa o rosto livre acima do texto; padding-bottom reserva
           espaço para o botão flutuante do WhatsApp (55px + 20px de offset)
           não cobrir o último item da lista */
        padding: 190px 0 100px;
        overflow: hidden;
        /* Gradiente: leve no topo (rosto visível), escuro na área do texto */
        background-image:
            linear-gradient(to bottom, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.85) 60%, rgba(0, 0, 0, 0.95) 100%),
            url('img/maricorrendo.jpg');
        background-size: cover;
        background-position: 60% top; /* Mantém o rosto no topo, acima do título */
        background-repeat: no-repeat;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start; /* Composição editorial, alinhada à esquerda */
    }

    /* Título alinhado à esquerda, sobre a imagem, sem quebra forçada de palavras */
    .hero h1 {
        font-size: clamp(2rem, 9vw, 2.75rem);
        line-height: 1.08;
        text-align: left;
        width: 100%;
        text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
    }

    .badge-hero {
        font-size: 0.7rem;
        background: rgba(10, 10, 10, 0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    }

    /* Espaçamento vertical único entre selo, título, parágrafo, CTA e benefícios */
    .hero-text {
        width: 100%;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .hero-text > * {
        margin: 0;
    }

    .hero p {
        text-align: left;
        font-size: 1rem;
        line-height: 1.5;
        color: #d4d4d4;
        max-width: 100%;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    }

    /* A <img> original do hero é substituída pelo background da seção no mobile */
    .hero-img {
        display: none;
    }

    .cta-group {
        justify-content: flex-start;
        width: 100%;
    }

    .hero .btn-cta {
        width: 100%;
        text-align: center;
    }

    /* Features (ícones) alinhados à esquerda, acompanhando o título */
    .features-mini {
        justify-content: flex-start;
        flex-wrap: wrap;
        row-gap: 10px;
    }

    /* --- 3. SEÇÃO PROBLEMA --- */
    .problem {
        text-align: center; /* Garante que o container alinhe itens soltos */
    }

    /* --- 4. SEÇÃO SOBRE --- */
    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-img-wrapper {
        width: 80%;
        max-width: 320px;
        margin: 20px auto 0;     
    }

    .box-detail {
        width: 70px;
        height: 70px;
        top: -15px;
        left: -15px;
        z-index: 0; 
    }

    .about-text {
        padding: 0 10px;
        /* O h2 já foi centralizado na regra global lá em cima */
    }

    .section-tag {
        display: block;
        text-align: center; /* Centraliza a tag "Sobre mim" */
        margin-bottom: 10px;
    }

    .credentials {
        text-align: left; /* Mantém lista alinhada à esquerda para ficar bonita */
        margin-top: 20px;
    }

    .cref-box {
        margin: 30px auto 0 auto; /* Centralizado */
        width: fit-content;       
    }

    /* --- 5. SEÇÃO PLANOS --- */
    .subtitle {
        text-align: center;
        margin-top: 0;      
        margin-bottom: 0;
    }

    .subtitle::after {
        content: "← Arraste para o lado →";
        display: block;
        font-size: 0.75rem;
        color: var(--primary);
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        margin-top: 10px;    
        margin-bottom: 30px; 
        animation: slideHint 1.5s infinite ease-in-out alternate;
        text-align: center;
    }

    .pricing-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        padding: 10px 25px 60px 25px; 
        justify-content: flex-start; 
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .pricing-grid::-webkit-scrollbar {
        display: none;
    }

    .plan-card {
        min-width: 85%; 
        max-width: 320px;
        scroll-snap-align: center;
        margin: 0;
        flex-shrink: 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
        text-align: left; /* Conteúdo interno continua à esquerda */
    }

    .plan-card h3 {
        text-align: center; /* Opcional: Título do card centralizado fica bonito */
    }

    .plan-card .btn-cta {
        text-align: center;
    }

    /* Aproxima o texto de apoio do botão "SAIBA MAIS", mantendo o
       conjunto ancorado à base do card via .plan-footer */
    .plan-card .savings {
        margin-bottom: 12px;
    }

    .plan-card.featured {
        transform: scale(1.02);
        z-index: 10;
        border-width: 2px;
    }

    /* --- 6. SEÇÃO RESULTADOS (mesmo padrão de carrossel horizontal da seção Planos) --- */
    .testimonials-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 15px;
        scroll-snap-type: x mandatory;
        padding: 10px 25px 60px 25px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .testimonials-grid::-webkit-scrollbar {
        display: none;
    }

    .testimonal-card {
        min-width: 85%;
        max-width: 320px;
        scroll-snap-align: center;
        margin: 0;
        flex-shrink: 0;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(204, 0, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(204, 0, 0, 0);
    }

}

.pulse {
    animation: pulse 2s infinite;
}