/*
Theme Name: Ana Paula Lima - Deputada Federal
Theme URI: https://anapaulalima.com.br
Author: Gabinete Ana Paula Lima
Description: Tema institucional para o site da Deputada Federal Ana Paula Lima - SC
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: anapaulalima
*/

/* =========================================
   1. RESET, VARIÁVEIS E BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a1a1a;
    --primary-light: #F48FB1;
    --secondary: #E91E63;
    --secondary-light: #A1F641;
    --accent: #FDD835;
    --white: #FFFFFF;
    --bg-light: #FFF8F0;
    --bg-muted: #F5F0EB;
    --text-dark: #1a1a1a;
    --text-muted: #666666;
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* =========================================
   2. HEADER E MENU PRINCIPAL
   ========================================= */
.site-header {
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 9999;
    background: var(--white);
}

.site-header .logo {
    margin-right: 40px; /* Cria um "muro" invisível para o menu não encostar */
    display: flex;
    align-items: center;
}

.site-header .logo img {
    max-height: 80px; /* Ajuste este valor se a logo continuar muito gigante */
    width: auto;
}

.site-header .container {
    display: flex;
    align-items: center; /* Alinha a logo e o menu perfeitamente ao centro vertical */
    justify-content: space-between; /* Empurra a logo para a esquerda e o menu para a direita */
    height: 120px; /* Dá uma altura fixa para a logo não "vazar" */
}

.main-nav {
    margin-left: auto;
}

.nav-list {
    display: flex;
    gap: 20px; /* Diminuí um pouco o gap para caber todos os itens em uma linha só */
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-list a {
    color: #444;
    font-size: 1rem; /* Diminuí levemente a fonte (de 1.15 para 1.0) para caber melhor */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap; /* O SEGREDO AQUI: Impede a quebra de texto em duas linhas */
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}

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

.nav-list a:hover::after,
.nav-list .current-menu-item a::after {
    width: 100%;
}

.nav-list .current-menu-item a {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    font-size: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--primary);
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; 
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 15px 20px rgba(0,0,0,0.1);
        border-top: 3px solid var(--primary);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0; 
        align-items: stretch; 
    }
    
    .nav-list a {
        display: block;
        padding: 18px 25px;
        font-size: 1.2rem;
        border-bottom: 1px solid var(--bg-muted);
        text-align: right;
    }
    
    .nav-list a::after {
        display: none;
    }
    
    .nav-list a:hover {
        background-color: var(--bg-light);
        padding-right: 30px;
        transition: padding 0.2s ease;
    }
}

/* =========================================
   CORREÇÃO BUG WORDPRESS: ÂNCORAS NA HOME
   ========================================= */

/* Remove a cor primária e a linha das âncoras que o WP marcou como "ativas" por engano */
.nav-list .current-menu-item a[href*="#"] {
    color: #444; 
}

.nav-list .current-menu-item a[href*="#"]::after {
    width: 0; 
}

/* Garante que o efeito de passar o mouse (hover) continue funcionando perfeitamente nelas */
.nav-list .current-menu-item a[href*="#"]:hover {
    color: var(--primary);
}

.nav-list .current-menu-item a[href*="#"]:hover::after {
    width: 100%;
}

/* =========================================
   3. SEÇÕES GERAIS E HERO
   ========================================= */
.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--secondary);
    margin-bottom: 8px;
}

.section-bar {
    width: 80px;
    height: 4px;
    border-radius: 999px;
    margin-bottom: 40px;
}

.section-bar--primary { background: var(--primary); }
.section-bar--accent { background: var(--accent); }

/* Hero */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--secondary);
    overflow: hidden;
    padding-top: 64px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -128px;
    right: -128px;
    width: 256px;
    height: 256px;
    background: rgba(233,30,99,0.2);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -96px;
    left: -96px;
    width: 192px;
    height: 192px;
    background: rgba(253,216,53,0.3);
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--white);
}

.hero-label {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 16px;
}

.hero-title span { color: var(--primary); }

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    font-style: italic;
    opacity: 0.8;
    margin-bottom: 24px;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.hero-tag {
    background: rgba(233,30,99,0.2);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    border: 1px solid rgba(233,30,99,0.3);
}

.hero-roles p {
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0.7;
    margin-bottom: 4px;
}

.hero-photo {
    display: flex;
    justify-content: center;
}

.hero-photo img,
.hero-photo .placeholder {
    width: 320px;
    height: 448px;
    border-radius: 16px;
    border: 4px solid rgba(233,30,99,0.3);
    object-fit: cover;
    background: rgba(233,30,99,0.1);
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.5rem; }
    .hero-tags { justify-content: center; }
    .hero-photo img, .hero-photo .placeholder { width: 240px; height: 320px; }
}

/* =========================================
   4. BIOGRAFIA
   ========================================= */
.biografia-section { background: var(--white); }

.biografia-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.biografia-photo img,
.biografia-photo .placeholder {
    width: 256px;
    height: 320px;
    border-radius: 12px;
    border: 2px solid rgba(233,30,99,0.2);
    object-fit: cover;
    margin: 0 auto;
    display: block;
    background: var(--bg-muted);
}

.biografia-text p {
    margin-bottom: 16px;
    color: rgba(26,26,26,0.8);
    line-height: 1.7;
}

.biografia-text strong.primary { color: var(--primary); }
.biografia-text strong.secondary { color: var(--secondary); }
.biografia-text .accent { color: var(--accent); font-weight: 700; }

@media (max-width: 768px) {
    .biografia-grid { grid-template-columns: 1fr; }
}

/* =========================================
   5. PROJETOS
   ========================================= */
.projetos-section { background: var(--bg-muted); }

.projetos-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 16px;
    text-align: center;
    border: 1px solid #e5e5e5;
    transition: box-shadow 0.2s;
}

.stat-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stat-card .icon { color: var(--primary); font-size: 1.5rem; margin-bottom: 8px; }
.stat-card .number { font-size: 1.75rem; font-weight: 900; color: var(--secondary); }
.stat-card .label { font-size: 0.75rem; color: var(--text-muted); margin-top: 4px; line-height: 1.3; }

.projetos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.projeto-card, .projeto-card-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.2s;
}

.projeto-card:hover, .projeto-card-item:hover {
    border-color: rgba(233,30,99,0.3);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.projeto-card .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(233,30,99,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}

.projeto-card h3 { font-weight: 700; margin-bottom: 4px; }
.projeto-card p { font-size: 0.875rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .projetos-grid { grid-template-columns: 1fr; }
}

/* =========================================
   6. PRESTANDO CONTAS
   ========================================= */
.prestando-contas-section {
    background: var(--secondary);
    color: var(--white);
}

.prestando-contas-subtitle {
    color: rgba(255,255,255,0.7);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.prestando-contas-subtitle strong { color: var(--accent); }

.cidades-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}

.cidade-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: border-color 0.2s;
}

.cidade-card:hover { border-color: rgba(253,216,53,0.4); }
.cidade-card .valor { font-size: 1.75rem; font-weight: 900; color: var(--accent); }
.cidade-card .nome { font-size: 0.875rem; opacity: 0.7; margin-top: 4px; font-weight: 600; }

.conquistas-box {
    background: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 32px;
    border: 1px solid rgba(255,255,255,0.1);
}

.conquistas-box h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: 24px; }

.conquistas-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.conquista-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.conquista-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 8px;
    flex-shrink: 0;
}

.conquista-item p { opacity: 0.8; }

@media (max-width: 768px) {
    .cidades-grid { grid-template-columns: repeat(2, 1fr); }
    .conquistas-grid { grid-template-columns: 1fr; }
}

/* =========================================
   7. IMPRENSA / NOTÍCIAS
   ========================================= */
.imprensa-section { background: var(--bg-light); }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid #e5e5e5;
    transition: all 0.2s;
}

.news-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg-muted);
}

.news-card .content { padding: 20px; }
.news-card .date { font-size: 0.75rem; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.news-card h3 { font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.news-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }

.news-empty { text-align: center; padding: 48px; color: var(--text-muted); }

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; }
}

/* =========================================
   8. REDES & FOOTER
   ========================================= */
.redes-section { background: var(--white); }

.redes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.social-link, .contact-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--bg-muted);
    border: 1px solid #e5e5e5;
    transition: all 0.2s;
    margin-bottom: 16px;
}

.social-link:hover {
    background: rgba(233,30,99,0.05);
    border-color: rgba(233,30,99,0.3);
}

.contact-link:hover {
    background: rgba(0,96,100,0.05);
    border-color: rgba(0,96,100,0.3);
}

.social-link .icon-box { background: rgba(233,30,99,0.1); }
.contact-link .icon-box { background: rgba(0,96,100,0.1); }

.social-link .icon-box, .contact-link .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.social-link .name, .contact-link .name { font-weight: 700; }
.social-link .handle, .contact-link .detail { font-size: 0.875rem; color: var(--text-muted); }

@media (max-width: 768px) {
    .redes-grid { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
    background: var(--secondary);
    padding: 40px 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.site-footer h4 {
    color: var(--white);
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.site-footer nav a {
    display: block;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.site-footer nav a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 32px;
    padding-top: 24px;
    text-align: center;
    font-size: 0.75rem;
    opacity: 0.4;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
}