/* ========================================
   FAQ PAGE STYLES
   ======================================== */

/* Hero Section */
.faq-hero {
    background: linear-gradient(135deg, var(--color-green-primary) 0%, var(--color-green-medium) 100%);
    padding: 80px 0;
    text-align: center;
}

.faq-hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: var(--color-white-text);
    margin-bottom: 16px;
}

.faq-hero p {
    font-size: 18px;
    color: var(--color-white);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Content Section */
.faq-content {
    padding: 80px 0;
    background: var(--color-white);
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
}

/* Category Sections */
.faq-category {
    margin-bottom: 50px;
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-green-primary);
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-green-pale);
}

/* FAQ Items */
.faq-item {
    margin-bottom: 12px;
    border: none;
    box-shadow: none;
}

.faq-item:last-child {
    margin-bottom: 0;
}

/* Question */
.question {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text-primary);
    cursor: pointer;
    padding: 18px 50px 18px 24px;
    background: var(--color-cream);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    margin: 0;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: none;
}

.question:hover {
    background: var(--color-green-pale);
    border-color: var(--color-green-medium);
}

.question:focus {
    outline: none;
}

.question:focus-visible {
    outline: 2px solid var(--color-green-primary);
    outline-offset: 2px;
}

.question.active {
    background: var(--color-green-primary);
    color: var(--color-white-text);
    border-color: var(--color-green-primary);
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

/* Plus/Minus Icon */
.question::after {
    content: "+";
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 400;
    color: var(--color-green-primary);
    transition: color 0.3s ease;
}

.question.active::after {
    content: "−";
    color: var(--color-white-text);
}

/* Answer - Hidden State */
.answer {
    max-height: 0;
    overflow: hidden;
    background: var(--color-white);
    border: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Answer - Active State (using sibling selector) */
.question.active + .answer {
    max-height: 600px;
    padding: 24px;
    border: 1px solid var(--color-green-primary);
    border-top: none;
}

.answer p {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 12px;
}

.answer p:last-child {
    margin-bottom: 0;
}

.answer strong {
    color: var(--color-text-primary);
}

/* CTA Section */
.faq-cta {
    padding: 80px 0;
    background: var(--color-cream);
    text-align: center;
}

.faq-cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.faq-cta h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 12px;
}

.faq-cta p {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 30px;
}

.faq-cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta .btn-secondary {
    background: var(--color-white);
    color: var(--color-green-primary);
    border: 2px solid var(--color-green-primary);
}

.faq-cta .btn-secondary:hover {
    background: var(--color-green-primary);
    color: var(--color-white-text);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .faq-hero {
        padding: 60px 0;
    }
    
    .faq-hero h1 {
        font-size: 32px;
    }
    
    .faq-content {
        padding: 60px 0;
    }
    
    .faq-category-title {
        font-size: 20px;
    }
    
    .question {
        font-size: 16px;
        padding: 16px 45px 16px 20px;
    }
    
    .question::after {
        right: 16px;
    }
    
    .question.active + .answer {
        padding: 20px;
    }
    
    .faq-cta {
        padding: 60px 0;
    }
    
    .faq-cta h2 {
        font-size: 26px;
    }
    
    .faq-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .faq-cta-buttons .btn {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 26px;
    }
    
    .question {
        font-size: 15px;
        padding: 14px 40px 14px 16px;
    }
}
