/* Hero Section */
.hero-previdencia {
    background: linear-gradient(rgba(0, 51, 102, 0.4), rgba(0, 51, 102, 0.6)),
        url('https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
    padding: 280px 0 100px;
    min-height: 80vh;
}

.hero-previdencia h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-previdencia p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background-color: var(--secondary);
    transition: height 0.3s ease;
}

.feature-card:hover::before {
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2);
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
    position: relative;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background-color: var(--light);
}

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    position: relative;
}

.step-line {
    position: absolute;
    top: 40px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--secondary);
    z-index: 1;
}

.step {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 20%;
}

.step-number {
    width: 80px;
    height: 80px;
    background-color: var(--secondary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.3);
}

.step-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    min-height: 200px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 15px;
}

/* Tax Benefits Section */
.tax-benefits {
    padding: 80px 0;
    background-color: var(--white);
}

.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.benefits-visual {
    position: relative;
    height: 400px;
}

.benefits-chart {
    width: 100%;
    height: 100%;
    background-color: var(--light);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-bar {
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

.chart-label {
    width: 150px;
    font-weight: 500;
    color: var(--primary);
}

.chart-value {
    height: 100%;
    border-radius: 0 20px 20px 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 15px;
    color: white;
    font-weight: 500;
    transition: width 1s ease;
}

.bar-1 {
    background-color: #FF6600;
    width: 70%;
}

.bar-2 {
    background-color: #003366;
    width: 50%;
}

.bar-3 {
    background-color: #28a745;
    width: 30%;
}

.benefits-content h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.benefits-content ul {
    list-style: none;
    margin-top: 20px;
}

.benefits-content ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.benefits-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: var(--secondary);
    position: absolute;
    left: 0;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background-color: var(--light);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
}

.comparison-table th, 
.comparison-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #eee;
}

.comparison-table th {
    background-color: var(--primary);
    color: var(--white);
    font-weight: 500;
}

.comparison-table tr:nth-child(even) {
    background-color: var(--light);
}

.comparison-table .feature {
    text-align: left;
    font-weight: 500;
    color: var(--primary);
}

.check-icon {
    color: #28a745;
    font-size: 1.2rem;
}

.times-icon {
    color: #dc3545;
    font-size: 1.2rem;
}

/* Calculator Section */
.calculator-section {
    padding: 80px 0;
    background-color: var(--white);
}

.calculator-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.calculator-form {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.calculator-form .btn {
    border: none !important;
    box-shadow: none !important;
    width: auto;
    margin-top: 10px;
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    letter-spacing: normal !important;
}

.calculator-form .btn:hover {
    background-color: #e65c00 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

.calculator-form .btn {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    letter-spacing: normal !important;
}

.calculator-form .btn {
    cursor: pointer !important;
}

.calculator-results {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-item {
    margin-bottom: 20px;
}

.result-label {
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}

.range-slider {
    width: 100%;
    margin: 15px 0;
}

.range-slider input[type="range"] {
    width: 100%;
    height: 8px;
    /* -webkit-appearance: none; */
    background: #ddd;
    border-radius: 5px;
    outline: none;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
    font-size: 0.9rem;
    color: #666;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: var(--light);
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: var(--secondary);
}

.faq-question {
    padding: 15px 20px;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.faq-question:hover {
    background-color: #f9f9f9;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: var(--white);
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(rgba(0, 51, 102, 0.9), rgba(0, 51, 102, 0.9)),
        url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

/* Section Title */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: var(--white);
}

.testimonial-item {
    background-color: var(--light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-content {
    font-style: italic;
    color: #555;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.author-info h4 {
    color: var(--primary);
    margin-bottom: 5px;
}

.author-info p {
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .benefits-container,
    .calculator-container {
        grid-template-columns: 1fr;
    }
    
    .benefits-visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 15px;
    }

    .hero-previdencia {
        padding: 150px 0 80px;
        margin-top: 60px;
    }

    .hero-previdencia h1 {
        font-size: 2rem;
    }

    .steps-container {
        flex-direction: column;
    }

    .step {
        width: 100%;
        margin-bottom: 30px;
    }

    .step-line {
        display: none;
    }

    .step-number {
        margin-bottom: 15px;
    }

    .step-content {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 10px 25px;
    }

    .section-title h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .btn-gold,
    .btn-orange,
    .btn-white {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
}

/* Animation Classes */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}
