/* ==========================================================================
   JAD GROUP -- SERVICES PAGES STYLES
   Styles for: services index + individual service detail pages.
   Shared styles (reset, variables, nav, footer, buttons) live in global.css.
   ========================================================================== */


/* ==========================================================================
   1. SERVICES OVERVIEW
   ========================================================================== */

.services-overview {
    padding: 100px 0;
}


/* ==========================================================================
   2. SERVICE FEATURE SECTIONS (Alternating Layout)
   ========================================================================== */

.service-feature {
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 80px 0;
}

.service-feature:nth-child(even) {
    flex-direction: row-reverse;
}

.service-feature-img {
    flex: 0 0 50%;
    max-width: 50%;
    border-radius: 12px;
    overflow: hidden;
}

.service-feature-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.service-feature-content {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 40px;
    position: relative;
}

.service-feature-number {
    position: absolute;
    top: 0;
    left: 40px;
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
    opacity: 0.15;
    line-height: 1;
    pointer-events: none;
}

.service-feature-content .section-label {
    margin-bottom: 12px;
}

.service-feature-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 16px;
}

.service-feature-content p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 24px;
}

.service-feature-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.service-feature-highlights li {
    font-size: 0.9rem;
    color: var(--text-body);
    padding-left: 28px;
    position: relative;
    line-height: 1.6;
}

.service-feature-highlights li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
    font-weight: 700;
    font-size: 1rem;
}


/* ==========================================================================
   3. WHY CHOOSE GRID
   ========================================================================== */

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.why-choose-card {
    text-align: center;
    padding: 32px;
    background: var(--off-white);
    border-radius: 12px;
    transition: all var(--transition);
}

.why-choose-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.why-choose-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border-radius: 12px;
    background: rgba(200, 150, 62, 0.1);
    color: var(--gold);
    font-size: 1.3rem;
}

.why-choose-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.why-choose-card p {
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.6;
}


/* ==========================================================================
   4. SERVICE DETAIL -- HERO (inherits page-hero)
   ========================================================================== */

.service-detail-hero {
    min-height: 45vh;
}


/* ==========================================================================
   5. SERVICE DETAIL -- OVERVIEW
   ========================================================================== */

.service-detail-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

.service-detail-overview h2 {
    margin-bottom: 16px;
}

.service-detail-overview p {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.7;
}

.service-detail-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-detail-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--text-body);
    padding: 12px 16px;
    background: var(--off-white);
    border-radius: 8px;
}

.service-detail-features li .check {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(200, 150, 62, 0.12);
    color: var(--gold);
    font-size: 0.75rem;
    flex-shrink: 0;
}


/* ==========================================================================
   6. CAPABILITY GRID
   ========================================================================== */

.capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.capability-card {
    background: var(--navy);
    padding: 32px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition);
}

.capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

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

.capability-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(200, 150, 62, 0.15);
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.capability-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}

.capability-card p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}


/* ==========================================================================
   7. FACILITY SPECS
   ========================================================================== */

.facility-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.facility-spec-item {
    text-align: center;
    padding: 24px;
    background: var(--off-white);
    border-radius: 12px;
}

.facility-spec-item .icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: rgba(200, 150, 62, 0.1);
    color: var(--gold);
    font-size: 1.1rem;
}

.facility-spec-item .number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 4px;
}

.facility-spec-item .label {
    font-size: 0.8rem;
    color: var(--grey-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}


/* ==========================================================================
   8. SERVICE GALLERY
   ========================================================================== */

.service-gallery {
    columns: 3;
    column-gap: 8px;
}

.service-gallery-item {
    break-inside: avoid;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.service-gallery-item img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: transform var(--transition);
}

.service-gallery-item:hover img {
    transform: scale(1.05);
}


/* ==========================================================================
   9. RESPONSIVE -- SERVICES PAGES
   ========================================================================== */

/* --- 1024px Breakpoint --- */
@media (max-width: 1024px) {

    .service-feature {
        gap: 40px;
        padding: 60px 0;
    }

    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail-overview {
        gap: 40px;
    }

    .capability-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-gallery {
        columns: 2;
    }
}

/* --- 768px Breakpoint --- */
@media (max-width: 768px) {

    .services-overview {
        padding: 64px 0;
    }

    .service-feature,
    .service-feature:nth-child(even) {
        flex-direction: column;
        gap: 24px;
        padding: 48px 0;
    }

    .service-feature-img,
    .service-feature-content {
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .service-feature-content {
        padding: 0;
    }

    .service-feature-number {
        left: 0;
        font-size: 3rem;
    }

    .why-choose-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-detail-overview {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .capability-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .capability-card {
        padding: 28px;
    }

    .service-gallery {
        columns: 2;
        column-gap: 6px;
    }

    .service-gallery-item {
        margin-bottom: 6px;
    }
}

/* --- 480px Breakpoint --- */
@media (max-width: 480px) {

    .service-feature-content h2 {
        font-size: 1.3rem;
    }

    .why-choose-card {
        padding: 24px;
    }

    .capability-card {
        padding: 24px;
    }

    .facility-specs {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .facility-spec-item {
        padding: 20px 16px;
    }

    .facility-spec-item .number {
        font-size: 1.3rem;
    }

    .service-gallery {
        columns: 1;
    }

    .service-detail-hero {
        min-height: 35vh;
    }
}
