/* ===================================
   SERVICES PAGE STYLES
   =================================== */

/* Page Hero Overrides */
.page-hero {
    background-color: var(--color-black);
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
        url('../images/services/shell.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--color-white);
    padding: 180px 0 120px;
    text-align: center;
    border-bottom: 4px solid var(--color-red);
    position: relative;
    overflow: hidden;
}

.page-hero-title {
    font-size: var(--text-6xl);
    font-weight: 900;
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -2px;
}

.page-hero-subtitle {
    font-size: var(--text-xl);
    color: var(--color-gray-100);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Service Detail Sections */
.service-detail {
    padding: var(--space-20) 0;
    border-bottom: 1px solid var(--color-gray-100);
    overflow: hidden;
}

.service-detail:nth-child(even) {
    background-color: var(--color-gray-50);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-grid {
    direction: rtl;
    /* Switch visual order */
}

.service-detail:nth-child(even) .service-detail-content {
    direction: ltr;
    /* Reset text direction */
}

.service-image-container {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid var(--color-white);
    transition: transform var(--transition-base);
}

.service-image-container:hover {
    transform: translateY(-5px);
    border-color: var(--color-red);
}

.service-detail-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-image-container:hover .service-detail-image {
    transform: scale(1.05);
}

.service-detail-content h2 {
    font-size: var(--text-4xl);
    font-weight: 900;
    margin-bottom: var(--space-6);
    color: var(--color-black);
    position: relative;
    display: inline-block;
}

.service-detail-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--color-red);
}

.service-detail-description {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: var(--space-8);
}

/* Features List */
.service-features-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.service-feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-base);
    transition: all var(--transition-base);
}

.service-feature-item:hover {
    border-color: var(--color-red);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}

.feature-check {
    width: 24px;
    height: 24px;
    background-color: var(--color-red-light);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    flex-shrink: 0;
}

.feature-text {
    font-weight: 600;
    color: var(--color-gray-800);
    font-size: var(--text-sm);
}

/* Service Highlight Box */
.service-highlight {
    background-color: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border-left: 4px solid var(--color-red);
    position: relative;
    overflow: hidden;
}

.service-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

.service-highlight-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-red);
    margin-bottom: var(--space-3);
}

.service-highlight-text {
    color: var(--color-gray-300);
    line-height: 1.6;
    font-size: var(--text-sm);
}


/* Responsive Adjustments */
@media (max-width: 1024px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .service-detail:nth-child(even) .service-detail-grid {
        direction: ltr;
        /* Reset visual order on mobile */
    }

    .service-image-container {
        order: -1;
        /* Image always on top on mobile */
    }
}

@media (max-width: 768px) {
    .page-hero-title {
        font-size: var(--text-4xl);
    }

    .service-features-list {
        grid-template-columns: 1fr;
    }

    .service-detail-image {
        height: 250px;
    }

    .page-hero {
        padding: 120px 0 80px;
    }
}