/* =========================
   SERVICES PAGE STYLES
   ========================= */

/* Services Hero */
.services-hero {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M0 0h100v100H0z'/%3E%3Cpath d='M0 0l50 50-50 50z'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.services-hero .hero-content {
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease;
}

.services-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    animation: fadeIn 1s ease;
}

/* Categories Navigation */
.services-categories {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    position: static;
    top: 70px;
    z-index: 50;
}

.categories-nav {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-top: 0.5rem;
}

.categories-nav::-webkit-scrollbar {
    height: 4px;
}

.categories-nav::-webkit-scrollbar-track {
    background: var(--secondary);
    border-radius: 2px;
}

.categories-nav::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.category-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

/* Service Blocks */
.services-detail {
    padding: 4rem 0;
    background: var(--secondary);
}

.service-block {
    background: var(--white);
    border-radius: var(--radius);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease;
}

.service-block:last-child {
    margin-bottom: 0;
}

.service-header {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.1));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--primary);
}

.service-intro h2 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.service-intro p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-card {
    padding: 1.5rem;
    background: var(--secondary);
    border-radius: var(--radius);
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process Timeline */
.service-process {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.05) 0%, rgba(22, 163, 74, 0.02) 100%);
    padding: 2rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

.service-process h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 35px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--white);
    border: 3px solid var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
}

.process-step h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.process-step p {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Consultancy Benefits */
.consultancy-benefits {
    margin-top: 2rem;
    padding: 2rem;
    background: var(--secondary);
    border-radius: var(--radius);
}

.consultancy-benefits h3 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: calc(var(--radius) - 4px);
    transition: all 0.3s ease;
}

.benefit-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-md);
}

.benefit-item i {
    font-size: 1.25rem;
    color: var(--primary);
}

.benefit-item span {
    flex: 1;
    color: var(--text-secondary);
}

/* FAQ Section */
.faq-section {
    padding: 4rem 0;
    background: var(--white);
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    background: var(--white);
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.faq-question:hover {
    background: var(--secondary);
}

.faq-question span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.0625rem;
}

.faq-question i {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services CTA */
.services-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    position: relative;
    overflow: hidden;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.services-cta .cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.services-cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.services-cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.services-cta .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Filter Animation */
.service-block {
    display: block;
    animation: fadeIn 0.5s ease;
}

.service-block.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .service-header {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .service-icon-large {
        margin: 0 auto;
    }
    
    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 3rem 0;
    }
    
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .services-hero p {
        font-size: 1.125rem;
    }
    
    .categories-nav {
        justify-content: flex-start;
    }
    
    .service-block {
        padding: 2rem 1.5rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .category-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .service-block {
        padding: 1.5rem;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question span {
        font-size: 1rem;
    }
}