/* FAQ Page Specific Styles */

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

.hero-progressive {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-50) 0%, #ecfdf5 50%, var(--gray-50) 100%);
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.energy-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 30%, rgba(5, 150, 105, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
    animation: energy-flow 28s ease-in-out infinite;
}

@keyframes energy-flow {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(0.4deg); }
}

.floating-nodes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-nodes::before,
.floating-nodes::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.04) 0%, transparent 70%);
    animation: float-nodes 22s ease-in-out infinite;
}

.floating-nodes::before {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.floating-nodes::after {
    bottom: 20%;
    right: 20%;
    animation-delay: 11s;
}

@keyframes float-nodes {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -15px) scale(1.03); }
    66% { transform: translate(-10px, 10px) scale(0.97); }
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-content {
    animation: fade-in-up 1s ease-out;
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--gray-600);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* =====================================================
   FAQ SECTION STYLES
   ===================================================== */

.faq-section {
    background: white;
    padding: var(--section-padding);
}

.faq-categories {
    margin-bottom: 3rem;
    text-align: center;
}

.category-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--gray-50);
    padding: 1rem;
    border-radius: 16px;
    display: inline-flex;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.category-btn:hover {
    color: var(--primary);
    background: rgba(5, 150, 105, 0.05);
}

.category-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--primary);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

/* =====================================================
   FAQ ITEM STYLES
   ===================================================== */

.faq-item {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
}

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

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

.faq-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.faq-question {
    padding: 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--gray-800);
    transition: color var(--transition-fast);
}

.faq-item:hover .faq-question h3,
.faq-item.active .faq-question h3 {
    color: var(--primary);
}

.faq-question i {
    font-size: 1.2rem;
    color: var(--gray-400);
    transition: all var(--transition-normal);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
    background: var(--gray-50);
    padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

/* Removed unused .faq-answer > div selector */

.faq-answer p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin: 1.5rem 0 1.25rem;
}

.faq-answer p:first-child {
    margin-top: 1.5rem;
}

.faq-answer p:last-child {
    margin-bottom: 1.5rem;
}

.faq-answer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.faq-answer a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
}

/* =====================================================
   HELP SECTION STYLES
   ===================================================== */

.intelligence-section {
    background: var(--gray-50);
}

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

.intelligence-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.intelligence-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.intelligence-card:hover::before {
    transform: scaleX(1);
}

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

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.card-header h3 {
    margin: 0;
    color: var(--gray-800);
}

.card-content {
    color: var(--gray-600);
}

.feature-list {
    margin: 1.5rem 0;
}

.feature-item {
    padding: 0.5rem 0;
    color: var(--gray-600);
    font-size: 0.95rem;
}

.feature-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-fast);
}

.feature-item a:hover {
    border-bottom-color: var(--primary);
}

/* =====================================================
   CONTACT CTA SECTION
   ===================================================== */

.final-cta-section {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 100%);
    color: white;
    text-align: center;
}

.cta-badge {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: rgba(5, 150, 105, 0.2);
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 2rem;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.1rem;
    color: var(--gray-300);
    margin-bottom: 3rem;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.cta-guarantee {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-400);
}

.cta-guarantee i {
    color: var(--primary-light);
}

/* =====================================================
   RESPONSIVE DESIGN - FAQ SPECIFIC
   ===================================================== */

@media (max-width: 768px) {
    .hero-progressive {
        padding-top: 60px;
        min-height: 60vh;
        padding-bottom: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .category-nav {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        padding: 1.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .faq-question {
        padding: 1.5rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer {
        padding: 0 1rem;
    }
    
    .faq-answer p {
        font-size: 1rem;
        margin: 1rem 0 1rem;
    }
    
    .faq-answer p:first-child {
        margin-top: 1rem;
    }
    
    .faq-answer p:last-child {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .faq-question {
        padding: 1.25rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .faq-answer {
        padding: 0 0.75rem;
    }
    
    .faq-answer p {
        margin: 0.75rem 0;
    }
    
    .faq-answer p:first-child {
        margin-top: 0.75rem;
    }
    
    .faq-answer p:last-child {
        margin-bottom: 0.75rem;
    }
    
    .category-nav {
        padding: 1rem;
    }
    
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .intelligence-card {
        padding: 1.5rem;
    }
}

/* =====================================================
   FAQ JAVASCRIPT ANIMATIONS
   ===================================================== */

.faq-item {
    position: relative;
}

.faq-item.active .faq-answer {
    animation: accordion-open var(--transition-slow) ease-out;
}

@keyframes accordion-open {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-question:hover {
    background: rgba(5, 150, 105, 0.02);
}

.faq-item.active .faq-question {
    background: rgba(5, 150, 105, 0.05);
}

/* Print styles for FAQ */
@media print {
    .faq-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--gray-300);
    }
    
    .faq-answer {
        max-height: none !important;
        background: white;
    }
    
    .faq-question i {
        display: none;
    }
    
    .hero-background,
    .floating-nodes,
    .energy-grid {
        display: none;
    }
    
    .hero-progressive {
        background: white;
        min-height: auto;
    }
    
    .category-nav {
        display: none;
    }
}
