/* Services Page Specific Styles */

/* Enhanced Service Cards */
.service-card {
    position: relative;
    background-color: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
}

.service-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.service-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.service-content {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-content h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--black);
    position: relative;
    padding-bottom: 0.75rem;
}

.service-content h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.service-content p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-link {
    font-family: var(--heading-font);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    transition: all var(--transition-normal);
}

.service-link i {
    transition: transform var(--transition-normal);
}

.service-link:hover {
    color: var(--primary-light);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Service Categories in CTA Section */
.services-categories {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-category {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.service-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-category h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.service-category p {
    margin-bottom: 0;
    color: var(--dark-gray);
}

/* Service Detail Section (Shown when clicking Learn More) */
.section-hidden {
    display: none;
}

.service-detail-section {
    padding: 5rem 0;
    background-color: var(--white);
}

.service-detail-header {
    margin-bottom: 3rem;
    position: relative;
}

.back-link {
    margin-bottom: 1rem;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--heading-font);
    font-weight: 500;
    color: var(--primary);
    transition: color var(--transition-normal);
}

.back-link a:hover {
    color: var(--primary-light);
}

.back-link a i {
    font-size: 0.85rem;
}

.service-detail-header h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.service-detail-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

.service-detail-content {
    display: flex;
    gap: 4rem;
    align-items: flex-start;
}

.service-detail-image {
    flex: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s ease;
}

.service-detail-image:hover img {
    transform: scale(1.05);
}

.service-detail-text {
    flex: 1;
}

.service-detail-text h3 {
    margin: 2rem 0 1.5rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.service-detail-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.service-feature-list {
    list-style: none;
    margin-left: 0;
}

.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.service-feature-list li i {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.emergency-contact-info {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 2rem;
}

.emergency-contact-info h4 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.emergency-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    transition: color var(--transition-normal);
}

.emergency-phone:hover {
    color: var(--accent-hover);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .service-detail-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .service-detail-image,
    .service-detail-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .service-detail-header h2 {
        font-size: 2rem;
    }
    
    .service-feature-list li {
        font-size: 1rem;
    }
    
    .emergency-phone {
        font-size: 1.25rem;
    }
}

@media (max-width: 576px) {
    .service-detail-header h2 {
        font-size: 1.75rem;
    }
    
    .service-detail-text h3 {
        font-size: 1.25rem;
    }
    
    .service-detail-text p {
        font-size: 1rem;
    }
}