/* ==========================================================
   LAYOUT.CSS — Versão 13.1 Master (Grid System & Page Heroes)
   * Objetivo: Estrutura das páginas internas, grids e espaçamentos.
   * Novidade V13.1: Suporte a Top Ticker, Hero Dinâmico e Forms.
   ========================================================== */

:root {
    --header-height: 85px;
    --ticker-height: 40px; /* Altura da barra de notícias */
}

/* ----------------------------------------------------------
   1. ESTRUTURA MESTRE & ESPAÇAMENTOS
---------------------------------------------------------- */
body {
    /* Garante que o conteúdo não fique escondido atrás do Header Fixo */
    padding-top: var(--header-height); 
}

/* Seção Padrão (Respiro) */
.section-padding {
    padding: 80px 0;
}

.section-padding-bottom {
    padding-bottom: 80px;
}

/* Layout Estreito (Para textos longos/Legal) */
.narrow-layout {
    max-width: 900px;
    margin: 0 auto;
}

/* Centralização de Texto Auxiliar */
.text-center { text-align: center; }
.section-header { margin-bottom: 50px; }
.section-title { margin-bottom: 15px; font-size: 2.2rem; }
.section-subtitle { font-size: 1.1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

/* ----------------------------------------------------------
   2. TOP TICKER BAR (PREPARAÇÃO)
   * A barra de "Breaking News" ficará aqui.
---------------------------------------------------------- */
.top-ticker-bar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--ticker-height);
    background: #000;
    color: #fff;
    z-index: 10000000; /* Acima do Header */
    display: flex; align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

/* Quando o ticker existir, o body desce */
body.has-ticker {
    padding-top: calc(var(--header-height) + var(--ticker-height));
}
body.has-ticker .site-header {
    top: var(--ticker-height); /* Header desce para dar lugar ao ticker */
}

/* ----------------------------------------------------------
   3. PAGE HERO SYSTEM (BANNERS INTERNOS)
---------------------------------------------------------- */
.page-hero {
    position: relative;
    padding: 100px 0 80px;
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    margin-top: -1px; /* Remove linha branca eventual */
    overflow: hidden;
}

/* Overlay Padrão (Escurece o fundo para ler o texto) */
.page-hero::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7); /* Azul escuro semi-transparente */
    backdrop-filter: blur(5px);
    z-index: 1;
}

.page-hero .container { position: relative; z-index: 2; }

/* Tipografia do Hero */
.hero-title { font-size: 3rem; margin-bottom: 20px; color: #fff; text-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.hero-desc { font-size: 1.2rem; color: rgba(255,255,255,0.9); max-width: 700px; margin: 0 auto 30px; line-height: 1.6; }

/* --- VARIAÇÕES DE TEMA (MODIFIERS) --- */

/* Contato (Azul Confiança) */
.contact-hero {
    background-image: linear-gradient(135deg, #0d6efd 0%, #0043ce 100%);
}
.badge-support { 
    background: rgba(255,255,255,0.2); padding: 5px 15px; border-radius: 50px; 
    font-size: 0.8rem; font-weight: 700; text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}

/* Parcerias (Roxo Business) */
.partner-hero {
    background-image: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%);
}
.badge-business { 
    background: #fbbf24; color: #000; padding: 5px 15px; border-radius: 50px; 
    font-size: 0.8rem; font-weight: 800; text-transform: uppercase; margin-bottom: 20px; display: inline-block;
}

/* Sobre (Verde/Teal Tech) */
.about-hero {
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

/* Jurídico (Slate Neutro) */
.legal-hero {
    background: #334155;
}
.badge-legal { 
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); 
    padding: 5px 15px; border-radius: 50px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; display: inline-block;
}

/* ----------------------------------------------------------
   4. PÁGINA DE CONTATO (GRID & FORM)
---------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr; /* Info menor, Form maior */
    gap: 50px;
    align-items: start;
}

/* Coluna de Informações */
.info-card {
    background: #fff;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.icon-main { font-size: 2.5rem; color: var(--primary); margin-bottom: 20px; }

.contact-methods { list-style: none; margin: 30px 0; display: flex; flex-direction: column; gap: 25px; }
.contact-methods li { display: flex; align-items: center; gap: 15px; }

.method-icon {
    width: 45px; height: 45px;
    background: var(--bg-gray);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 1.2rem;
}

.method-text { display: flex; flex-direction: column; }
.method-text strong { font-size: 0.9rem; color: var(--text-main); }
.method-text span { font-size: 0.9rem; color: var(--text-muted); word-break: break-all; }

.social-connect h3 { font-size: 1rem; margin-bottom: 15px; }
.social-icons-row { display: flex; gap: 10px; }
.social-icons-row a {
    width: 40px; height: 40px; background: var(--bg-gray);
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--text-main); transition: 0.3s;
}
.social-icons-row a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

/* Coluna do Formulário */
.form-wrapper {
    background: #fff;
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
}

.contato-form .form-group { margin-bottom: 20px; }
.contato-form label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; }

.input-wrapper { position: relative; }
.input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); pointer-events: none;
}

.contato-form input, 
.contato-form select {
    padding-left: 45px; /* Espaço para o ícone */
    height: 50px;
}

.contato-form textarea {
    padding: 15px; resize: vertical; border-radius: var(--radius-sm);
    border: 1px solid var(--border-color); width: 100%;
}

.btn-submit {
    width: 100%;
    background: var(--primary); color: #fff;
    height: 55px; border-radius: var(--radius-sm);
    font-weight: 700; font-size: 1rem; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: 0.3s;
}
.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ----------------------------------------------------------
   5. PÁGINA DE PARCERIAS & SOBRE (GRIDS)
---------------------------------------------------------- */
.benefits-grid, .tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card, .tech-card {
    background: #fff; padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: 0.3s;
}
.benefit-card:hover, .tech-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-icon, .tech-icon {
    width: 70px; height: 70px;
    background: var(--primary-light); color: var(--primary);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 25px;
}

/* Seção About Grid (Texto + Stats) */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; align-items: center; }
.about-text { font-size: 1.1rem; line-height: 1.7; color: var(--text-muted); }
.about-stats { display: grid; gap: 20px; }
.stat-card {
    background: #fff; padding: 30px; border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm); border-left: 5px solid var(--primary);
}

/* CTA Sections */
.partner-cta, .cta-section {
    background: var(--gradient-primary);
    padding: 80px 0; text-align: center; color: #fff;
    margin-top: 60px;
}
.cta-box h2, .cta-section h2 { color: #fff; margin-bottom: 15px; }
.cta-box p, .cta-section p { color: rgba(255,255,255,0.9); font-size: 1.2rem; margin-bottom: 30px; }

.btn-cta, .btn-cta-white {
    background: #fff; color: var(--primary);
    padding: 15px 40px; border-radius: 50px; font-weight: 800;
    display: inline-flex; align-items: center; gap: 10px;
}
.btn-cta:hover { background: #f8fafc; transform: scale(1.05); }

/* ----------------------------------------------------------
   6. PÁGINA LEGAL (TERMOS & PRIVACIDADE)
---------------------------------------------------------- */
.legal-card {
    background: #fff; padding: 40px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.legal-card h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; color: var(--bg-dark); }
.legal-card i { color: var(--text-muted); }

/* Card de Destaque (Afiliados) */
.highlight-card {
    background: #fffbeb; /* Amarelo bem claro */
    border-color: #fcd34d;
}
.highlight-card i { color: #d97706; }

.legal-card ul { padding-left: 20px; margin-top: 15px; color: var(--text-muted); }
.legal-card li { margin-bottom: 10px; }

/* ----------------------------------------------------------
   7. RESPONSIVIDADE
---------------------------------------------------------- */
@media (max-width: 992px) {
    .contact-grid, .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .form-wrapper { padding: 30px 20px; }
    .hero-title { font-size: 2rem; }
    .section-padding { padding: 50px 0; }
}
