/*
* Visindo Andalan Solusi - Services Pages Stylesheet
* Author: Visindo Andalan Solusi
* Date: April 25, 2025
*/

/* ==================== 
   Table of Contents:
   1. Service Page Common Styles
   2. Service Hero Section
   3. Service Description
   4. Service Features
   5. Process Steps
   6. Service Benefits
   7. Case Studies
   8. FAQ Section
   9. CTA Section
   10. Responsive Design
   ==================== */

/* ==================== 
   1. Service Page Common Styles 
   ==================== */

.service-page {
    overflow-x: hidden;
}

/* Inherit variables from main stylesheet */
:root {
    /* These will inherit from the main stylesheet */
}

/* ==================== 
   2. Service Hero Section 
   ==================== */

.service-hero {
    height: 50vh;
    min-height: 400px;
    position: relative;
    padding-top: 120px;
    display: flex;
    align-items: center;
}

.service-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 86, 164, 0.8), rgba(0, 86, 164, 0.6));
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
}

.service-hero-content {
    max-width: 700px;
    color: var(--white);
}

.service-hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 3rem;
    position: relative;
    padding-bottom: var(--spacing-md);
}

.service-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--primary);
}

.service-hero p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
}

.bread-crumb {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.bread-crumb a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.bread-crumb a:hover {
    color: var(--primary);
}

.bread-crumb .separator {
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.8);
}

.bread-crumb .current {
    color: var(--primary);
    font-weight: 600;
}

/* ==================== 
   3. Service Description 
   ==================== */

.service-description {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.service-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.service-intro-content h2 {
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-bottom: var(--spacing-md);
}

.service-intro-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
}

.service-intro-content p {
    color: var(--dark-gray);
    margin-bottom: var(--spacing-md);
    font-size: 1.05rem;
    line-height: 1.8;
}

.service-intro-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.service-intro-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.service-intro-image:hover img {
    transform: scale(1.05);
}

/* ==================== 
   4. Service Features 
   ==================== */

.service-features {
    padding: var(--spacing-xl) 0;
    background-color: var(--background);
    position: relative;
}

.service-features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 10%, rgba(0, 86, 164, 0.05) 0%, transparent 80%), 
                      radial-gradient(circle at 90% 90%, rgba(0, 86, 164, 0.05) 0%, transparent 80%);
    pointer-events: none;
}

.service-features .section-header {
    margin-bottom: var(--spacing-xl);
}

.features-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-item {
    background-color: var(--white);
    border-radius: 10px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: flex-start;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 86, 164, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background-color: rgba(0, 86, 164, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-md);
    color: var(--secondary);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    background-color: var(--secondary);
    color: var(--white);
    transform: rotateY(180deg);
}

.feature-content h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.feature-content p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==================== 
   5. Process Steps 
   ==================== */

.service-process {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.service-process .section-header {
    margin-bottom: var(--spacing-xl);
}

.process-steps {
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    height: calc(100% - 50px);
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    z-index: 0;
}

.process-step {
    display: flex;
    margin-bottom: var(--spacing-xl);
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.process-number {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background: var(--secondary);
    border-radius: 50%;
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    margin-right: var(--spacing-lg);
    font-family: var(--font-heading);
}

.process-content {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--background);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: relative;
}

.process-content::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 35px;
    width: 30px;
    height: 30px;
    background-color: var(--background);
    transform: rotate(45deg);
    z-index: -1;
    box-shadow: -8px 8px 15px rgba(0, 0, 0, 0.05);
}

.process-content h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.process-content p {
    color: var(--dark-gray);
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== 
   6. Service Benefits 
   ==================== */

.service-benefits {
    padding: var(--spacing-xl) 0;
    background-color: var(--background);
    position: relative;
}

.service-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill-opacity="0"/><circle cx="1" cy="1" r="1" fill="%230056A4" fill-opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.benefit-card {
    background-color: var(--white);
    border-radius: 15px;
    padding: var(--spacing-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border-bottom: 3px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom-color: var(--primary);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 86, 164, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: var(--secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon {
    background-color: var(--secondary);
    color: var(--white);
    transform: rotateY(180deg);
}

.benefit-card h4 {
    color: var(--secondary);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

.benefit-card p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==================== 
   7. Case Studies 
   ==================== */

.case-studies {
    padding: var(--spacing-xl) 0;
    background-color: var(--white);
}

.case-studies .section-header {
    margin-bottom: var(--spacing-xl);
}

.case-slider {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1000px;
}

.case-study {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    padding: var(--spacing-lg);
    border-radius: 15px;
    background-color: var(--background);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    margin-bottom: var(--spacing-md);
}

.case-image {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.case-image img {
    width: 100%;
    height: auto;
    display: block;
}

.case-content h4 {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.case-content p {
    color: var(--dark-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.case-content ul {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-md) 0;
}

.case-content li {
    padding-left: 25px;
    margin-bottom: 8px;
    position: relative;
    color: var(--dark-gray);
}

.case-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary);
    font-weight: 700;
}

.case-read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.case-read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.case-read-more:hover {
    color: var(--secondary);
}

.case-read-more:hover i {
    transform: translateX(5px);
}

/* ==================== 
   8. FAQ Section 
   ==================== */

.service-faq {
    padding: var(--spacing-xl) 0;
    background-color: var(--background);
    position: relative;
}

.service-faq::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 86, 164, 0.03) 0%, transparent 70%),
        radial-gradient(circle at 85% 85%, rgba(227, 6, 19, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    border-radius: 12px;
    margin-bottom: var(--spacing-md);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 86, 164, 0.1);
}

.faq-question {
    padding: var(--spacing-md) var(--spacing-lg);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--secondary);
    font-weight: 600;
    font-family: var(--font-heading);
    transition: var(--transition);
    position: relative;
}

.faq-question::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background-color: var(--secondary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover .faq-question::before {
    opacity: 0.3;
}

.faq-item.active .faq-question::before {
    opacity: 1;
}

.faq-question i {
    font-size: 0.9rem;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 86, 164, 0.05);
    border-radius: 50%;
    margin-left: var(--spacing-md);
    color: var(--secondary);
    transition: all 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 0 var(--spacing-lg);
    margin: 0 var(--spacing-md);
    border-left: 2px solid var(--secondary);
    opacity: 0.7;
}

.faq-answer-inner {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--dark-gray);
    line-height: 1.7;
}

.faq-answer-inner p {
    margin-bottom: var(--spacing-sm);
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-answer-inner ul {
    padding-left: 20px;
    margin-bottom: var(--spacing-md);
}

.faq-answer-inner li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 5px;
}

.faq-answer-inner li::marker {
    color: var(--primary);
}

.faq-item.active .faq-question {
    color: var(--primary);
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    background-color: var(--primary);
    color: var(--white);
}

.faq-item.active .faq-answer {
    max-height: 2000px;
}

/* ==================== 
   9. CTA Section 
   ==================== */

.service-cta {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.85), rgba(0, 86, 164, 0.85));
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><rect width="40" height="40" fill-opacity="0"/><circle cx="1" cy="1" r="1" fill="%23FFFFFF" fill-opacity="0.05"/></svg>');
    pointer-events: none;
}

.service-cta .container {
    position: relative;
    z-index: 1;
}

.service-cta h2 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
    font-size: 2.2rem;
}

.service-cta p {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    opacity: 0.9;
}

.service-cta .btn-primary {
    background-color: var(--white);
    color: var(--secondary);
    border: 2px solid var(--white);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.service-cta .btn-primary:hover {
    background-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
}

.service-cta .btn-primary i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.service-cta .btn-primary:hover i {
    transform: translateX(5px);
}

/* ==================== 
   10. Responsive Design 
   ==================== */

@media (max-width: 992px) {
    .service-intro {
        grid-template-columns: 1fr;
    }
    
    .service-intro-content {
        order: 1;
    }
    
    .service-intro-image {
        order: 0;
        margin-bottom: var(--spacing-lg);
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .case-study {
        grid-template-columns: 1fr;
    }
    
    .case-image {
        margin-bottom: var(--spacing-md);
    }
    
    .process-steps::before {
        left: 45px;
    }
    
    .process-number {
        width: 90px;
        height: 90px;
        min-width: 90px;
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: 100px;
    }
    
    .service-hero h1 {
        font-size: 2.5rem;
    }
    
    .features-list {
        grid-template-columns: 1fr;
    }
    
    .service-stats {
        flex-direction: column;
    }
    
    .service-stat {
        margin-bottom: var(--spacing-sm);
    }
    
    .service-stat::after {
        display: none;
    }
    
    .process-number {
        width: 70px;
        height: 70px;
        min-width: 70px;
        font-size: 1.8rem;
    }
    
    .process-steps::before {
        left: 35px;
    }
    
    .process-content::before {
        top: 25px;
    }
}

@media (max-width: 576px) {
    .service-hero h1 {
        font-size: 2rem;
    }
    
    .process-step {
        flex-direction: column;
    }
    
    .process-number {
        margin-bottom: var(--spacing-md);
        margin-right: 0;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-content::before {
        display: none;
    }
}