/* ===========================
   VARIÁVEIS E RESET
   =========================== */

:root {
    --primary-green: #1B7D3D;
    --primary-yellow: #FFD700;
    --primary-blue: #003DA5;
    --dark-text: #1a1a1a;
    --light-text: #666666;
    --white: #ffffff;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* ===========================
   ANIMAÇÕES
   =========================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

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

@keyframes countUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

.animate-slide-down {
    animation: slideDown 0.8s ease-out forwards;
    opacity: 0;
}

.animate-count-up {
    animation: countUp 0.8s ease-out forwards;
    opacity: 0;
}

/* ===========================
   NAVBAR
   =========================== */

.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    flex-shrink: 0;
}

/* ===========================
   BOTÕES
   =========================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(27, 125, 61, 0.3);
}

.btn-primary:hover {
    background: #0d5c2a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 125, 61, 0.4);
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--primary-green);
    border: 2px solid var(--primary-green);
}

.btn-secondary:hover {
    background-color: var(--primary-green);
    color: var(--white);
}

/* ===========================
   HERO SECTION
   =========================== */

.hero {
    background: var(--white);
    padding: 4rem 2rem;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.hero-text h1 .highlight {
    color: var(--primary-green);
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-green);
    font-family: 'Playfair Display', serif;
}

.stat-plus {
    font-size: 1.5rem;
    color: var(--primary-yellow);
}

.stat-unit {
    font-size: 1.2rem;
    color: var(--primary-yellow);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-top: 0.5rem;
}

/* ===========================
   SEÇÕES
   =========================== */

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

section {
    padding: 4rem 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-yellow) 100%);
    margin: 1rem auto;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===========================
   BENEFÍCIOS SECTION
   =========================== */

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.benefit-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

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

/* ===========================
   DIFERENCIAIS SECTION
   =========================== */

.diferenciais {
    background-color: var(--white);
}

.diferenciais-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.diferencial-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.diferencial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

.diferencial-card h3 {
    color: var(--primary-green);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.diferencial-card p {
    color: var(--light-text);
    line-height: 1.8;
}

/* ===========================
   STATS SECTION
   =========================== */

.stats-section {
    margin-top: 4rem;
    padding: 3rem;
    background: var(--primary-green);
    border-radius: 12px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stats-item {
    text-align: center;
    color: var(--white);
}

.stats-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-yellow);
    margin-bottom: 0.5rem;
}

.stats-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* ===========================
   HISTÓRIAS SECTION
   =========================== */

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

.historias-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.historia-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.historia-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.historia-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.image-placeholder {
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;

}

.historia-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.historia-content {
    padding: 1.5rem;
}

.historia-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-text);
}

.economia-badge {
    display: inline-block;
    background: var(--primary-green);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.economia-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.economia-item {
    display: flex;
    flex-direction: column;
}

.economia-label {
    font-size: 0.85rem;
    color: var(--light-text);
    margin-bottom: 0.25rem;
}

.economia-valor {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-green);
}

/* ===========================
   CTA FINAL SECTION
   =========================== */

.cta-final {
    background: var(--primary-green);
    color: var(--white);
    padding: 4rem 2rem;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-primary {
    background-color: var(--primary-yellow);
    color: var(--primary-green);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.cta-buttons .btn-primary:hover {
    background-color: #e6c200;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.cta-buttons .btn-secondary {
    border-color: var(--white);
    color: var(--white);
}

.cta-buttons .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-green);
}

/* ===========================
   FOOTER
   =========================== */

.footer {
    background-color: #1a1a1a;
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--primary-yellow);
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border: 1px solid var(--white);
    border-radius: 5px;
}

.social-links a:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===========================
   MODAL FORMULÁRIO
   =========================== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--light-text);
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-green);
    transform: rotate(90deg);
}

.form-tela h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark-text);
}

.form-tela p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.form-tela input {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-tela input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(27, 125, 61, 0.1);
}

.slider-container {
    margin-bottom: 1.5rem;
}

.slider-container label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-text);
}

.slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-yellow) 100%);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 1rem;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(27, 125, 61, 0.3);
    transition: all 0.3s ease;
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(27, 125, 61, 0.5);
}

.slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-green);
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 8px rgba(27, 125, 61, 0.3);
    transition: all 0.3s ease;
}

.slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(27, 125, 61, 0.5);
}

.slider-display {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
}

.resultado-investimento {
    background: var(--primary-green);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.resultado-investimento span {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
}

.resultado-parcela {
    background: var(--primary-yellow);
    color: var(--primary-green);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin: 1rem 0;
}

.resultado-parcela span {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 800;
}

/* ===========================
   CAROUSEL SECTION
   =========================== */

.carousel-section {
    background: var(--white);
    padding: 0;
    margin: 0;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--white);
    font-weight: 800;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    border: none;
    font-size: 1.5rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    width: 32px;
    border-radius: 6px;
}

/* ===========================
   RESPONSIVO
   =========================== */

@media (max-width: 768px) {
    .navbar-container {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .nav-menu {
        gap: 1rem;
        justify-content: space-around;
        width: 100%;
    }

    .hero-content {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

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

    .benefits-grid,
    .diferenciais-grid,
    .historias-grid {
        grid-template-columns: 1fr;
    }

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

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    .carousel-container {
        height: 200px;
    }

    .carousel-image {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

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

    .stat-number {
        font-size: 2rem;
    }

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

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }
}