/* =========================================
   STYLE.CSS - PAYBASE PLATINUM LIGHT v4.0
   (Corrigido para Header e Footer)
   ========================================= */

/* --- 1. Variáveis Globais --- */
:root {
    --bg-dark: #F3F4F6;
    /* Fundo Cinza Gelo */
    --bg-card: #FFFFFF;
    /* Branco Puro */
    --primary-accent: #D92027;
    /* Vermelho PayBase */
    --secondary-accent: #1A1C1E;
    /* Preto Onix */
    --text-light: #1A202C;
    /* Cinza Chumbo */
    --text-muted: #718096;
    /* Cinza Azulado */
    --border-color: rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
}

/* --- Reset Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 2. Botões --- */
.cta-button {
    display: inline-block;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 28px;
    /* Ajustado para caber bem no header */
    transition: all 0.3s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.cta-button.primary {
    background-color: var(--primary-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(217, 32, 39, 0.3);
}

.cta-button.highlight {
    background-color: var(--secondary-accent);
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.cta-button.outline {
    background-color: transparent;
    border: 2px solid var(--secondary-accent);
    color: var(--secondary-accent);
}

.cta-button:hover {
    transform: translateY(-2px);
    filter: brightness(110%);
}

/* --- 3. HEADER (Corrigido para sua estrutura) --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background-color: rgba(243, 244, 246, 0.85);
    /* Translúcido sobre o bg-dark */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Container flex para alinhar Logo - Menu - Botão */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-accent);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Navegação Desktop */
.main-navigation ul {
    display: flex;
    gap: 40px;
    list-style: none;
    align-items: center;
}

.main-navigation a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.3s;
    font-size: 16px;
}

.main-navigation a:hover {
    color: var(--primary-accent);
}

/* Esconde elementos mobile no desktop */
.mobile-menu-toggle {
    display: none;
}

.mobile-cta-container {
    display: none;
}

/* Botão Header Desktop */
.header-cta {
    display: block;
}

/* --- 4. FOOTER (Corrigido para sua estrutura) --- */
.site-footer {
    background-color: var(--bg-card);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    /* Empurra para baixo se pouco conteúdo */
}

/* Container flex para alinhar Logo e Copyright lado a lado */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Para quebrar linha no mobile */
    gap: 20px;
}

.footer-logo {
    font-weight: 800;
    font-size: 20px;
    color: var(--secondary-accent);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 14px;
}

/* --- 5. Hero Section --- */
#hero {
    padding-top: 180px;
    /* Compensar header fixo */
    text-align: center;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 32, 39, 0.06), transparent 70%);
    filter: blur(90px);
    z-index: -1;
}

#hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--secondary-accent);
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

#hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px auto;
}

#hero .cta-button {
    padding: 16px 38px;
    font-size: 18px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

/* --- 6. Seções Gerais --- */
.section {
    padding: 10px 0 0;
}

.section + .section {
    margin-top: 0px;
}

.section:last-of-type {
    padding-bottom: 20px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    color: var(--secondary-accent);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 16px;
}

/* Cards */
.solution-card,
.benefit-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--primary-accent);
    box-shadow: 0 10px 30px rgba(217, 32, 39, 0.08);
    transition: transform 0.3s;
    display: grid;
    grid-template-rows: auto auto 1fr;
    align-items: start;
}

.solution-card:hover,
.benefit-item:hover {
    transform: translateY(-5px);
}

/* --- 7. Features Grid --- */
.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.feature-grid.reverse .feature-visual {
    order: 2;
}

.feature-image {
    width: 100%;
    max-width: 380px;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.1));
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-accent);
    margin-bottom: 16px;
}

.feature-description {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Assets */
.assets-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.assets-block h3 {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.logos-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary-accent);
}

.logo-item img {
    width: 20px;
}

/* --- 8. Benefícios Grid --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.benefit-item .icon {
    font-size: 36px;
    margin-bottom: 15px;
    text-align: center;
}

.benefit-item h3 {
    font-size: 20px;
    color: var(--secondary-accent);
    margin-bottom: 10px;
    text-align: center;
    height: 3em;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.benefit-item p {
    text-align: center;
}

/* --- 9. Conversor --- */
.currency-converter-wrapper {
    display: flex;
    justify-content: center;
}

.currency-converter {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border-color);
}

.input-group {
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    padding: 12px 16px;
    border-radius: 10px;
    margin-top: 8px;
    border: 1px solid transparent;
}

.input-group:focus-within {
    border-color: var(--primary-accent);
    background: #fff;
}

.input-group input {
    background: transparent;
    border: none;
    font-size: 22px;
    font-weight: 600;
    width: 100%;
    color: var(--text-light);
    outline: none;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.currency-selector img {
    width: 22px;
}

.swap-icon-container {
    display: flex;
    justify-content: center;
    margin: -18px 0;
    position: relative;
    z-index: 2;
}

.swap-icon {
    width: 36px;
    height: 36px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    cursor: pointer;
    color: var(--secondary-accent);
}

/* --- 10. FAQ (Estilos Movidos para CSS Externo) --- */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s;
}

.faq-item[open] {
    border-color: rgba(217, 32, 39, 0.2);
}

.faq-item summary {
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary-accent);
    font-size: 18px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 24px;
    color: var(--primary-accent);
    font-weight: 300;
}

.faq-item[open] summary::after {
    content: '-';
}

.faq-content {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* --- Estilos da Página Sobre --- */
.page-hero {
    padding: 160px 0 100px;
    text-align: center;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-dark) 100%);
}

.page-hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--secondary-accent);
}

.page-hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

/* Missão, Visão, Valores */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.mvv-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-soft);
}

.mvv-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.mvv-card h3 {
    font-size: 24px;
    color: var(--primary-accent);
    margin-bottom: 15px;
    font-weight: 700;
}

.mvv-card p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* Nossa História */
.story-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.story-text p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 25px;
}

.story-highlight {
    font-size: 22px !important;
    font-weight: 600;
    color: var(--secondary-accent) !important;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
}

/* Pilares */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.pillar-item {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border-left: 4px solid var(--primary-accent);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.pillar-item:hover {
    transform: translateX(10px);
}

.pillar-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary-accent);
    opacity: 0.2;
    margin-bottom: 10px;
}

.pillar-item h3 {
    font-size: 22px;
    color: var(--secondary-accent);
    margin-bottom: 15px;
    font-weight: 700;
}

.pillar-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

/* --- 11. Animação Scroll --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVIDADE (Mobile Menu Fix)
   ========================================= */
@media (max-width: 900px) {
    #hero h1 {
        font-size: 36px;
    }

    .feature-grid,
    .feature-grid.reverse,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .feature-image {
        width: 85%;
        max-width: 260px;
        height: auto;
        margin: 0 auto;
    }

    .header-cta {
        display: none;
    }

    /* Esconde botão desktop */

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .icon-bar {
        display: block;
        width: 25px;
        height: 3px;
        background: var(--secondary-accent);
        margin: 5px 0;
        transition: 0.3s;
    }

    /* Lógica do Menu Mobile */
    .site-header.mobile-menu-open .main-navigation {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .main-navigation {
        display: none;
    }

    /* Esconde por padrão no mobile */
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    .main-navigation li {
        width: 100%;
        text-align: center;
    }

    .main-navigation a {
        display: block;
        padding: 15px;
        font-size: 18px;
    }

    .mobile-cta-container {
        display: block;
        padding: 0 20px 20px;
        text-align: center;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 10px;
    }

    .mobile-cta-container .cta-button {
        width: 100%;
    }

    /* Footer Mobile */
    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    /* Responsividade Página Sobre */
    .page-hero h1 {
        font-size: 32px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .mvv-grid,
    .pillars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-highlight {
        font-size: 18px !important;
    }

    .story-text p {
        font-size: 15px;
    }
}
/* --- Ajuste da Logo no Header --- */
.site-logo {
    display: flex;
    align-items: center;
}

.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    /* Espaço entre a logo e o texto */
    text-decoration: none;
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-accent);
    letter-spacing: -0.5px;
}

.header-logo-img {
    height: 45px;
    /* Altura ideal para header elegante */
    width: auto;
    /* Mantém a proporção correta */
    display: block;

    /* Opcional: Arredonda levemente os cantos para ficar mais moderno */
    border-radius: 8px;

    /* Opcional: Se o fundo da logo for branco e o header cinza, 
       isso ajuda a misturar melhor (funciona em fundos claros) */
    mix-blend-mode: multiply;
}

/* Ajuste Mobile */
@media (max-width: 768px) {
    .header-logo-img {
        height: 38px;
        /* Levemente menor no celular */
    }
}