/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    height: calc(100vh - 73px); /* 100vh menos altura do header */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: visible;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.1;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.hero-buttons .btn {
    min-width: 160px;
}

/* Banner de Anúncios Laterais - POSIÇÃO ABSOLUTA (não rola com a página) */
.ad-banner {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 160px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* MOSTRAR por padrão em telas grandes, esconder em mobile */
    display: none;
}

.ad-left {
    left: 10px;
}

.ad-right {
    right: 10px;
}

.ad-placeholder {
    width: 160px;
    height: 600px;
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.75rem;
    text-align: center;
    padding: 0.5rem;
}

.ad-placeholder span {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* ============================================
   HORIZONTAL AD CONTAINERS - CORRIGIDO
   ============================================ */
.horizontal-ad-container {
    width: 100%;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    /* MOSTRAR por padrão (para desktop e mobile) */
    display: block;
}

.horizontal-ad-banner {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

/* Banner Horizontal - USANDO ASPECT-RATIO PARA MANTER PROPORÇÃO */
.ad-placeholder-horizontal {
    background-color: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-align: center;
    overflow: hidden;
    position: relative;
    
    /* Dimensões padrão para desktop */
    width: 728px;
    height: 90px;
    max-width: 728px;
    font-size: 0.875rem;
    padding: 0.5rem;
    box-sizing: border-box;
}

.ad-placeholder-horizontal span {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    display: block;
}

.ad-placeholder-horizontal p {
    margin: 0.15rem 0;
    line-height: 1.2;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--border-radius-lg);
    background-color: rgba(79, 70, 229, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: auto;
}

.feature-link.disabled {
    color: var(--text-light);
    cursor: not-allowed;
}

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-it-works-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    right: -1.5rem;
    width: 3rem;
    height: 2px;
    background-color: var(--border-color);
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-description {
    color: var(--text-secondary);
}

/* ============================================
   NOVAS SEÇÕES: GUIA E FAQ
   ============================================ */

/* ============================================
   GUIDE SECTION
   ============================================ */
.guide-section {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 3rem 0 2rem;
}

.guide-article {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    transition: all var(--transition-normal);
    height: 100%;
}

.guide-article:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.guide-article-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.3;
}

.guide-article p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.guide-article strong {
    color: var(--primary-color);
    font-weight: 600;
}

.guide-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.guide-footer p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.guide-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.guide-footer a:hover {
    color: var(--primary-dark);
}

/* ============================================
   FAQ SECTION (ATUALIZADO - IGUAL AO COMPRESS)
   ============================================ */
.faq-section {
    padding: 4rem 0;
    background-color: var(--bg-secondary);
}

.faq-grid {
    max-width: 900px;
    margin: 3rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background-color: var(--bg-primary);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    background-color: var(--bg-primary);
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--bg-tertiary);
}

.faq-question i {
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: transform var(--transition-fast);
}

.faq-item.active .faq-question i {
    transform: rotate(90deg);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: var(--bg-secondary);
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    border-top-color: var(--border-color);
}

.faq-answer p {
    padding: 1.25rem;
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

/* DESKTOP - TELAS MAIORES QUE 1200px - MOSTRA TODOS OS 4 BANNERS */
@media (min-width: 1201px) {
    .ad-banner {
        display: flex !important; /* Mostra banners laterais em telas grandes */
    }
    
    .horizontal-ad-container {
        display: block !important; /* Mostra banners horizontais em telas grandes */
    }
    
    .ad-left {
        left: 15px;
    }
    
    .ad-right {
        right: 15px;
    }
    
    .ad-placeholder {
        max-height: 80vh;
        overflow: hidden;
    }
}

/* MOBILE - TELAS ATÉ 1200px - MOSTRA APENAS BANNERS HORIZONTAIS */
@media (max-width: 1200px) {
    .ad-banner {
        display: none !important; /* Esconde banners laterais em telas menores */
    }
    
    .horizontal-ad-container {
        display: block !important; /* Mostra banners horizontais em telas menores */
    }
    
    .hero-section {
        overflow: hidden;
    }
}

/* TELAS ATÉ 992px */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .step:not(:last-child)::after {
        display: none;
    }
    
    .step {
        max-width: 400px;
        margin: 0 auto;
    }
    
    /* Banner horizontal para tablet */
    .ad-placeholder-horizontal {
        width: 468px;
        height: 60px;
        max-width: 468px;
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .ad-placeholder-horizontal span {
        font-size: 0.85rem;
        margin-bottom: 0.2rem;
    }
    
    .ad-placeholder-horizontal p {
        margin: 0.1rem 0;
    }
    
    .horizontal-ad-banner {
        padding: 1.5rem 0;
    }
    
    .features-section {
        padding: 3rem 0;
    }
    
    .how-it-works-section {
        padding: 3rem 0;
    }
    
    /* Responsividade para as novas seções */
    .guide-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .guide-section,
    .faq-section {
        padding: 3rem 0;
    }
    
    .guide-article-title {
        font-size: 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .faq-answer p {
        font-size: 0.95rem;
    }
}

/* TELAS ATÉ 768px */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: calc(100vh - 73px);
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    /* Banner horizontal para mobile médio */
    .ad-placeholder-horizontal {
        width: 320px;
        height: 50px;
        max-width: 320px;
        font-size: 0.75rem;
        padding: 0.3rem;
    }
    
    .ad-placeholder-horizontal span {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }
    
    .ad-placeholder-horizontal p {
        margin: 0.08rem 0;
        font-size: 0.7rem;
    }
    
    .horizontal-ad-banner {
        padding: 1.25rem 0;
    }
    
    /* Responsividade para as novas seções */
    .guide-section,
    .faq-section {
        padding: 2.5rem 0;
    }
    
    .guide-article {
        padding: 1.5rem;
    }
    
    .guide-article p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .guide-footer {
        padding: 1.2rem;
    }
    
    .guide-footer p {
        font-size: 1rem;
    }
    
    .faq-question {
        padding: 1rem 1.2rem;
    }
    
    .faq-question h3 {
        font-size: 0.95rem;
    }
    
    .faq-answer p {
        font-size: 0.9rem;
    }
}

/* TELAS ATÉ 576px */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    /* Banner horizontal para mobile pequeno */
    .ad-placeholder-horizontal {
        width: 300px;
        height: 100px;
        max-width: 300px;
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .ad-placeholder-horizontal span {
        font-size: 0.85rem;
        margin-bottom: 0.3rem;
    }
    
    .ad-placeholder-horizontal p {
        margin: 0.15rem 0;
        font-size: 0.75rem;
    }
    
    .horizontal-ad-banner {
        padding: 1rem 0;
    }
    
    /* Responsividade para as novas seções */
    .guide-section,
    .faq-section {
        padding: 2rem 0;
    }
    
    .guide-article-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .guide-article {
        padding: 1.2rem;
    }
    
    .guide-footer {
        padding: 1rem;
    }
    
    .guide-footer p {
        font-size: 0.95rem;
    }
    
    .faq-question {
        padding: 0.9rem 1rem;
    }
    
    .faq-question h3 {
        font-size: 0.9rem;
    }
    
    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* TELAS ATÉ 400px */
@media (max-width: 400px) {
    /* Banner horizontal para mobile muito pequeno */
    .ad-placeholder-horizontal {
        width: 280px;
        height: 100px;
        max-width: 280px;
        font-size: 0.75rem;
        padding: 0.4rem;
    }
    
    .ad-placeholder-horizontal span {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .ad-placeholder-horizontal p {
        font-size: 0.7rem;
    }
    
    .horizontal-ad-banner {
        padding: 0.75rem 0;
    }
}

/* TELAS ATÉ 320px */
@media (max-width: 320px) {
    .ad-placeholder-horizontal {
        width: 260px;
        height: 100px;
        max-width: 260px;
        font-size: 0.7rem;
        padding: 0.3rem;
    }
    
    .ad-placeholder-horizontal span {
        font-size: 0.75rem;
    }
    
    .ad-placeholder-horizontal p {
        font-size: 0.65rem;
    }
    
    .horizontal-ad-banner {
        padding: 0.5rem 0;
    }
}