/*
 * Purpose: Stylesheet for services page with tab functionality
 * Author: AI Assistant
 * Last Modified: 2024
 * Description: Styles for services overview page with interactive tabs
 */

/* Page Header */
.page-header {
    background: url('/assets/images/services.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 8rem 0 4rem;
    text-align: center;
    margin-top: 80px;
    position: relative;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Overview */
.services-overview {
    padding: 6rem 0;
    background: #f8fafa;
}

.services-tabs {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Tab Navigation */
.tab-nav {
    display: flex;
    flex-wrap: wrap;
    background: #2d5a5a;
    border-bottom: 1px solid #3a6a6a;
}

.tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 1.5rem 1rem;
    background: transparent;
    border: none;
    color: #ccc;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-right: 1px solid #3a6a6a;
}

.tab-btn:last-child {
    border-right: none;
}

.tab-btn:hover {
    background: rgba(45, 90, 90, 0.1);
    color: #2d5a5a;
}

.tab-btn.active {
    background: #2d5a5a;
    color: white;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    padding: 0;
}

.tab-pane {
    display: none;
    padding: 3rem;
    animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Detail */
.service-detail {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.service-detail .service-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #2d5a5a 0%, #1a4040 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    flex-shrink: 0;
}

.service-info h3 {
    font-size: 2rem;
    color: #2d5a5a;
    margin-bottom: 1rem;
    font-weight: 700;
}

.service-info p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Service Features */
.service-features {
    list-style: none;
    margin-bottom: 2rem;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #555;
}

.service-features li i {
    color: #2d5a5a;
    margin-right: 0.8rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d5a5a 0%, #1a4040 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Navigation Updates */
.nav-menu a.active {
    color: #2d5a5a;
    font-weight: 600;
}

.nav-brand a {
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-btn {
        border-right: none;
        border-bottom: 1px solid #3a6a6a;
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .services-overview {
        padding: 4rem 0;
    }
    
    .tab-pane {
        padding: 2rem;
    }
    
    .service-detail {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .service-detail .service-icon {
        margin: 0 auto;
    }
    
    .service-info h3 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .tab-btn {
        padding: 1.2rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .service-detail .service-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
    
    .service-info h3 {
        font-size: 1.5rem;
    }
    
    .tab-pane {
        padding: 1.5rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
}

/* Loading States */
.tab-pane.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Focus States for Accessibility */
.tab-btn:focus {
    outline: 2px solid #2d5a5a;
    outline-offset: -2px;
}

/* Print Styles */
@media print {
    .tab-nav {
        display: none;
    }
    
    .tab-pane {
        display: block !important;
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .cta-section {
        display: none;
    }
}