/* Reset e variáveis */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2e7d32;
    --secondary-color: #ff9800;
    --accent-color: #2196f3;
    --light-bg: #f5f5f5;
    --dark-text: #1a1a1a;
    --light-text: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
}

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.error-message {
    color: #d32f2f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #d32f2f;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: rgba(46, 125, 50, 0.95);
    backdrop-filter: blur(10px);
    color: var(--light-text);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

header.scrolled {
    padding: 0.5rem 0;
    background-color: rgba(46, 125, 50, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    border: 3px solid var(--secondary-color);
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(33, 150, 243, 0.3));
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-campanha-small {
    width: 80px;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.logo-campanha-small:hover {
    opacity: 1;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.logo p {
    font-size: 0.9rem;
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

nav ul li a:hover,
nav ul li a:focus {
    color: var(--secondary-color);
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Hero Section */
#hero {
    background: var(--gradient);
    color: var(--light-text);
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(200, 230, 201, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--dark-text) !important;
}

.hero-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.campanha-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.campanha-logo:hover {
    transform: scale(1.05);
}

.hero-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff6f00 100%);
    color: var(--light-text);
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 152, 0, 0.4);
}

.btn-primary:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Seções gerais */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
}

section h2::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 1rem auto 0;
}

/* Sobre */
#sobre {
    background: linear-gradient(120deg, #e3f0ff 0%, #f5f5f5 100%);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

#sobre::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #4caf50 0%, transparent 70%);
    opacity: 0.18;
    z-index: 0;
}

#sobre::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, #66bb6a 0%, transparent 70%);
    opacity: 0.13;
    z-index: 0;
}

.sobre-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    justify-content: center;
    padding: 2rem 0;
    position: relative;
    z-index: 2;
}

.sobre-text {
    flex: 1;
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248, 250, 251, 0.8) 100%);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(46, 125, 50, 0.12), 0 6px 20px rgba(255, 152, 0, 0.08);
    padding: 3rem 2.5rem;
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px) saturate(1.3);
    border: 2px solid rgba(46, 125, 50, 0.15);
}

.sobre-text:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.2), 0 10px 30px rgba(255, 152, 0, 0.15);
    background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248, 250, 251, 0.9) 100%);
    border-color: rgba(46, 125, 50, 0.25);
}

.sobre-text p {
    font-size: 1.22rem;
    margin-bottom: 2.2rem;
    line-height: 1.9;
    color: var(--dark-text);
    font-weight: 500;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 0 #fff, 0 1.5px 8px rgba(33,150,243,0.04);
}

.sobre-text h3, .sobre-text h2 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(33,150,243,0.08);
}

.sobre-cta {
    display: inline-block;
    background: linear-gradient(90deg, #f50057 0%, #ff80ab 100%);
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    padding: 15px 44px;
    border-radius: 40px;
    box-shadow: 0 4px 24px rgba(245, 0, 87, 0.18), 0 1.5px 8px rgba(33,150,243,0.08);
    text-decoration: none;
    letter-spacing: 1.2px;
    margin-top: 1.2rem;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    animation: pulse-cta 1.5s infinite;
    position: relative;
    overflow: hidden;
}

.sobre-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(255,255,255,0.25) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0.7;
    pointer-events: none;
    filter: blur(2px);
    z-index: 1;
}

.sobre-cta:hover {
    background: linear-gradient(90deg, #c51162 0%, #ff4081 100%);
    transform: scale(1.07) translateY(-2px);
    box-shadow: 0 12px 32px rgba(245, 0, 87, 0.22);
}

@keyframes pulse-cta {
    0% { box-shadow: 0 0 0 0 rgba(245,0,87,0.18); }
    70% { box-shadow: 0 0 0 18px rgba(245,0,87,0.01); }
    100% { box-shadow: 0 0 0 0 rgba(245,0,87,0.18); }
}

.sobre-image {
    flex: 1;
    text-align: center;
    z-index: 1;
}

.profile-img {
    width: 340px;
    height: 340px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--secondary-color);
    box-shadow: 0 12px 40px rgba(33, 150, 243, 0.22);
    transition: box-shadow 0.3s, border 0.3s;
    background: rgba(255,255,255,0.5);
}

.profile-img:hover {
    box-shadow: 0 24px 64px rgba(33, 150, 243, 0.32);
    border: 7px solid var(--accent-color);
}

@media (max-width: 900px) {
    .sobre-content {
        flex-direction: column;
        gap: 2rem;
        padding: 1.5rem 0;
    }
    .sobre-text, .sobre-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    .profile-img {
        width: 220px;
        height: 220px;
    }
}

/* Propostas */
#propostas {
    background-color: var(--light-bg);
}

.propostas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.proposta-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(46, 125, 50, 0.1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.proposta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.proposta-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(46, 125, 50, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.proposta-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.proposta-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.proposta-card p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--dark-text);
    opacity: 0.9;
}

/* Trajetória */
#trajetoria {
    background-color: var(--light-text);
}

.trajetoria-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.trajetoria-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
    left: 50%;
    margin-left: 30px;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
    margin-right: 30px;
    text-align: right;
}

.timeline-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    border: 1px solid rgba(46, 125, 50, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-content:hover {
    transform: translateX(5px);
    box-shadow: 0 12px 35px rgba(46, 125, 50, 0.15), 0 6px 15px rgba(0, 0, 0, 0.08);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -40px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Contato */
#contato {
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contato-content {
    display: flex;
    gap: 3rem;
    align-items: start;
}

.contato-info {
    flex: 1;
}

.contato-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contato-details p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.contato-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contato-form input,
.contato-form textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contato-form textarea {
    resize: vertical;
}

/* Footer */
footer {
    background-color: #81c784;
    color: var(--dark-text);
    text-align: center;
    padding: 2rem 0;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    opacity: 0.9;
}

footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

/* Responsividade */
@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .logo-campanha-small {
        width: 60px;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    nav ul li {
        margin: 0;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
        padding: 0 var(--spacing-md);
    }

    .sobre-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .propostas-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        padding: 0 var(--spacing-md);
    }

    .contato-content {
        flex-direction: column;
        gap: 2rem;
        padding: 0 var(--spacing-md);
    }

    /* Melhorar acessibilidade em dispositivos móveis */
    nav ul li a {
        padding: 0.5rem;
        display: block;
    }

    .btn-primary {
        width: 100%;
        padding: 15px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .campanha-logo {
        max-width: 250px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .proposta-card {
        padding: 1.5rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Ajustes para toque */
    .btn-primary,
    nav ul li a,
    .proposta-card {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Melhorar performance de animações */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alto contraste */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #0000ff;
        --accent-color: #ff0000;
        --light-bg: #ffffff;
        --dark-text: #000000;
    }
}