/* ========== VARIABLES ========== */
:root {
    --green-dark: #0B3D2E;
    --green-mid: #1A5C3A;
    --green-light: #2E7D4F;
    --gold: #C5A55A;
    --gold-light: #D4BA7A;
    --gold-dark: #A8893E;
    --brown: #8B6914;
    --cream: #F5F0E8;
    --white: #FFFFFF;
    --gray-100: #F7F7F7;
    --gray-200: #E8E8E8;
    --gray-600: #666666;
    --gray-800: #2A2A2A;
    --red: #D32F2F;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

/* ========== RESET ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========== HERO ========== */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../img/fundotopo.png') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle 6s infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(0) scale(0.5); }
    20% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-120px) scale(0); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 24px 40px;
}

.hero-logo {
    width: 400px;
    max-width: 80vw;
    margin-bottom: 16px;
    filter: drop-shadow(0 8px 32px rgba(0,0,0,0.4));
    animation: logoIn 1s ease-out;
}

@keyframes logoIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.9); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 32px;
    animation: fadeUp 1s ease-out 0.3s both;
}

.hero-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeUp 1s ease-out 0.5s both;
}

.info-divider {
    color: rgba(255,255,255,0.3);
    font-size: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}

.info-item svg {
    width: 20px;
    height: 20px;
    color: var(--gold);
    flex-shrink: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-cta {
    display: inline-block;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--green-dark);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 60px;
    border: 3px solid var(--white);
    transition: all 0.3s ease;
    box-shadow: 0 4px 24px rgba(197,165,90,0.3);
    animation: fadeUp 1s ease-out 0.7s both;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(197,165,90,0.5);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.hero-scroll svg {
    width: 28px;
    height: 28px;
    color: rgba(255,255,255,0.4);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ========== COUNTDOWN ========== */
#countdown {
    background: linear-gradient(135deg, var(--green-dark) 0%, #0D4A30 100%);
    padding: 48px 0;
    border-bottom: 3px solid var(--gold);
}

.section-label {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 6px;
    color: var(--gold);
    margin-bottom: 24px;
}

.countdown-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--white);
    line-height: 1;
}

.countdown-label {
    display: block;
    font-size: 0.8rem;
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 4px;
}

/* ========== SOBRE ========== */
#sobre {
    padding: 96px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 48px;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    margin: 16px auto 0;
    border-radius: 2px;
}

.sobre-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: stretch;
}

.sobre-text {
    font-size: 18px;
    line-height: 1.4;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.sobre-text strong {
    color: var(--green-dark);
}

.sobre-intro {
    font-size: 1.15rem !important;
    color: var(--gray-800) !important;
}

.sobre-stats {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.stat {
    background: linear-gradient(135deg, #F8F5EF 0%, var(--cream) 100%);
    border-left: 4px solid var(--gold);
    padding: 24px 32px;
    border-radius: 0 12px 12px 0;
}

.stat-year {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: var(--green-dark);
    line-height: 1;
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold);
    vertical-align: super;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 4px;
}

/* ========== PROGRAMACAO ========== */
#programacao {
    padding: 96px 0;
    background: #9B6A12;
}

#programacao .section-title {
    color: var(--white);
}

#programacao .section-title::after {
    background: linear-gradient(90deg, var(--gold-light), var(--cream));
}

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

.prog-card {
    background: var(--white);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.prog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(11,61,46,0.1);
    border-color: var(--gold);
}

.prog-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prog-icon svg {
    width: 28px;
    height: 28px;
    color: var(--gold);
}

.prog-card h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 10px;
}

.prog-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.prog-card-instagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
}

.prog-card-instagram:hover {
    border-color: var(--gold);
}

.instagram-handle {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-dark);
}


/* ========== CADASTRO ========== */
#cadastro {
    padding: 96px 0;
    background: var(--white);
}

.cadastro-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.cadastro-header {
    position: sticky;
    top: 40px;
}

.cadastro-title {
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 20px;
    position: relative;
}

.cadastro-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    margin-top: 16px;
    border-radius: 2px;
}

.cadastro-desc {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 4px;
}

.cadastro-desc strong {
    color: var(--green-mid);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-top: -32px;
    margin-bottom: 48px;
}

.section-subtitle strong {
    color: var(--green-mid);
}

.form-wrapper {
    max-width: 640px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: 0 8px 48px rgba(11,61,46,0.08);
    border: 1px solid rgba(0,0,0,0.06);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.full {
    flex-basis: 100%;
}

label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 6px;
}

.required { color: var(--red); }
.optional { color: var(--gray-600); font-weight: 400; font-size: 0.8rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--gray-800);
    background: var(--gray-100);
    transition: all 0.2s ease;
    outline: none;
}

input:focus, select:focus {
    border-color: var(--green-mid);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(26,92,58,0.1);
}

input.error, select.error {
    border-color: var(--red);
    background: #FFF5F5;
}

.error-msg {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 4px;
    min-height: 18px;
}

/* Radio */
.radio-group {
    display: flex;
    gap: 24px;
    margin-top: 4px;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-label input[type="radio"]:checked + .radio-custom {
    border-color: var(--green-mid);
}

.radio-label input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 10px;
    height: 10px;
    background: var(--green-mid);
    border-radius: 50%;
}

/* Submit */
.btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(11,61,46,0.25);
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Success */
.success-content {
    text-align: center;
    padding: 24px 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    color: var(--green-mid);
    margin-bottom: 20px;
}

.success-content h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.success-content p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 8px;
}

.success-email {
    color: var(--green-mid) !important;
    font-weight: 600;
}

.success-date {
    margin-top: 20px !important;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* ========== FOOTER ========== */
#footer {
    background: var(--green-dark);
    padding: 48px 0 32px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo {
    width: 160px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.footer-copy {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
}

.footer-right {
    text-align: right;
}

.footer-line {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .sobre-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat { flex: 1; min-width: 140px; }

    .programacao-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cadastro-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cadastro-header {
        position: static;
        text-align: center;
    }

    .cadastro-title::after {
        margin: 16px auto 0;
    }

    .footer-layout {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-left { align-items: center; }
    .footer-right { text-align: center; }
}

@media (max-width: 640px) {
    .hero-logo { width: 240px; }
    .hero-tagline { font-size: 1.1rem; letter-spacing: 2px; }

    .countdown-grid { gap: 16px; }
    .countdown-number { font-size: 2.2rem; }

    .section-title { font-size: 1.7rem; }

    .programacao-grid {
        grid-template-columns: 1fr;
    }

    .programacao-grid .prog-card:nth-child(4),
    .programacao-grid .prog-card:nth-child(5) {
        justify-self: center;
    }

    .form-wrapper { padding: 32px 20px; }
    .form-row { flex-direction: column; gap: 16px; }

    .sobre-stats { flex-direction: column; }

    .info-item { font-size: 0.9rem; }
}
