/* Services Section */
.services {
    background-color: white;
}

/* Services Wrapper */
.services-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    text-align: center;
    padding: 30px 20px;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--brown);
    font-size: 2rem;
}

.service-content h3 {
    margin-bottom: 15px;
}

/* Sidebar Navigation */
.services-sidebar {
    width: 280px;
    position: sticky;
    top: 165px;
    flex-shrink: 0;
    max-height: calc(100vh - 185px);
    overflow-y: auto;
}

.services-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: linear-gradient(135deg, #8b6f47 0%, #a0845a 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(139, 111, 71, 0.2);
}

.services-nav::before {
    content: 'Services';
    display: block;
    padding: 20px 20px 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--secondary);
}

.service-nav-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-weight: 500;
    font-size: 0.95rem;
}

.service-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 24px;
}

.service-nav-item.active {
    background-color: var(--secondary);
    color: white;
    border-left-color: var(--secondary);
    font-weight: 600;
}

.service-nav-item i {
    font-size: 1.1rem;
    width: 24px;
    display: flex;
    justify-content: center;
}

/* Services Content */
.services-content {
    flex: 1;
}

/* Responsive */
@media (max-width: 992px) {
    .services-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .services-sidebar {
        width: 100%;
        position: sticky;
        top: 100px;
        z-index: 900;
        background-color: white;
        padding: 10px 0;
        margin: -10px 0;
    }

    .services-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 10px;
        background: white;
        box-shadow: none;
        scrollbar-width: none; /* Firefox */
    }

    .services-nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .services-nav::before {
        display: none;
    }

    .service-nav-item {
        flex: 0 0 auto;
        min-width: max-content;
        padding: 10px 20px;
        border: 1px solid #eee;
        border-radius: 25px;
        background-color: #f8f9fa;
        color: var(--dark);
        margin: 0;
    }

    .service-nav-item i {
        display: none;
    }

    .service-nav-item:hover {
        background-color: #eee;
        padding-left: 20px;
    }

    .service-nav-item.active {
        background-color: var(--secondary);
        color: white;
        border-color: var(--secondary);
    }
}

@media (max-width: 768px) {
    .services-sidebar {
        top: 80px;
    }
}