/* ==========================================================================
   VARIÁVEIS DE DESIGN E CORES INSTITUCIONAIS
   ========================================================================== */
:root {
    --primary-purple: #5c2d91;
    --primary-purple-dark: #441f6f;
    --primary-purple-light: #f4effa;
    --accent-orange: #ff671b;
    --accent-orange-hover: #e0530d;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --text-dark: #2d2d30;
    --text-muted: #626266;
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --max-width: 1200px;
    --font-sans: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* ==========================================================================
   RESET E CONFIGURAÇÕES GERAIS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2rem;
    color: var(--primary-purple);
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ==========================================================================
   BOTÕES E COMPONENTES DE INTERAÇÃO
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border: 2px solid var(--accent-orange);
}

.btn-primary:hover {
    background-color: var(--accent-orange-hover);
    border-color: var(--accent-orange-hover);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
    margin-left: 12px;
}

.btn-secondary:hover {
    background-color: var(--primary-purple-light);
    transform: translateY(-1px);
}

/* ==========================================================================
   NAVBAR / HEADER
   ========================================================================== */
.navbar {
    background-color: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 75px;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-purple);
    text-decoration: none;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.btn-nav {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-nav.btn-nav-secondary {
    border: 1px solid var(--primary-purple);
    color: var(--primary-purple);
}

.btn-nav.btn-nav-secondary:hover {
    background-color: var(--primary-purple-light);
}

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

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

/* ==========================================================================
   HERO SECTION (CORREÇÃO DE DESIGN E EMPILHAMENTO)
   ========================================================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-white) 60%, var(--primary-purple-light) 100%);
    padding: 60px 0 90px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
}

/* Lado Esquerdo */
.badge-lgpd {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-purple-light);
    color: var(--primary-purple);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary-purple);
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-cta-group {
    display: flex;
    align-items: center;
}

/* Lado Direito (Composição Visual Anti-Corte) */
.hero-media-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hero-phrase {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--primary-purple);
    font-weight: 600;
    border-left: 4px solid var(--accent-orange);
    padding-left: 12px;
}

.image-card-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--bg-white);
    padding: 16px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(92, 45, 145, 0.08);
    border: 1px solid var(--border-color);
}

.hero-image-box {
    width: 100%;
    background-color: #f1f5f9;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain; /* Garante que a foto da Viviane NUNCA seja cortada */
    display: block;
}

.about-card {
    background-color: var(--primary-purple-light);
    padding: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-purple);
}

.about-card h3 {
    color: var(--primary-purple);
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.about-card p {
    font-size: 0.95rem;
    color: var(--text-dark);
    line-height: 1.5;
}

/* ==========================================================================
   SEÇÃO DE NÚMEROS / CONTADORES JINJA2
   ========================================================================== */
.counters-section {
    background-color: var(--primary-purple);
    color: var(--bg-white);
    padding: 40px 0;
    margin-top: -20px;
    position: relative;
    z-index: 10;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.counter-card {
    padding: 10px;
}

.counter-num {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-orange);
    line-height: 1.1;
    margin-bottom: 6px;
}

.counter-num-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-orange);
    line-height: 1.2;
    margin-bottom: 12px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-label {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.counter-card.highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: var(--radius-sm);
    border: 1px dashed rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   PILARES DE ATUAÇÃO
   ========================================================================== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.card-pilar {
    background: var(--bg-white);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-pilar:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.pilar-icon {
    font-size: 2rem;
    margin-bottom: 16px;
}

.card-pilar h3 {
    color: var(--primary-purple);
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.card-pilar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   COMO FUNCIONA (FLUXO DO PROCESSO)
   ========================================================================== */
.steps-flow {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--accent-orange);
    color: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 auto 20px auto;
    box-shadow: 0 4px 10px rgba(255, 103, 27, 0.3);
}

.step h3 {
    font-size: 1.1rem;
    color: var(--primary-purple);
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ==========================================================================
   TEMAS MAIS BUSCADOS (TAGS GRID)
   ========================================================================== */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 900px;
    margin: 0 auto;
}

.tag {
    background-color: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.2s;
}

.tag:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    background-color: var(--primary-purple-light);
}

.tag.highlight-tag {
    background-color: var(--primary-purple);
    color: var(--bg-white);
    border-color: var(--primary-purple);
}

/* ==========================================================================
   STATUS BANNER
   ========================================================================== */
.status-banner-wrap {
    margin: 40px auto;
}

.status-banner {
    background: linear-gradient(90deg, var(--primary-purple) 0%, var(--primary-purple-dark) 100%);
    color: var(--bg-white);
    padding: 20px 30px;
    border-radius: var(--radius-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.btn-status {
    background: transparent;
    color: var(--bg-white);
    border: 1px solid var(--bg-white);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s;
}

.btn-status:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   RODAPÉ (FOOTER)
   ========================================================================== */
.footer {
    background-color: #1a1a1c;
    color: #e2e8f0;
    padding: 60px 0 0 0;
    font-size: 0.9rem;
}

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

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--bg-white);
    margin-bottom: 14px;
}

.footer-brand p {
    color: #a0aec0;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: right;
}

.footer-legal p {
    color: #a0aec0;
}

.footer-legal strong {
    color: var(--bg-white);
}

.footer-bottom {
    border-top: 1px solid #2d2d30;
    padding: 24px 0;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
}

.footer-bottom strong {
    color: #cbd5e0;
}

/* ==========================================================================
   RESPONSIVIDADE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-text {
        margin: 0 auto 36px auto;
    }
    
    .hero-cta-group {
        justify-content: center;
    }
    
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-flow {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-legal {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
    }
    
    .btn-secondary {
        margin-left: 0;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
    
    .navbar .nav-links {
        display: none; /* Em ambiente real aqui entraria um menu sanduíche */
    }
    
    .status-banner {
        flex-direction: column;
        text-align: center;
    }
    
    .btn-status {
        width: 100%;
    }
}