/* ============ Service Pages (New SP Layout) ============ */

/* 1. Full-Bleed Hero */
.sp-hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.sp-hero.sp-hero-contain {
    background-color: #000;
    background-size: contain;
    background-repeat: no-repeat;
}

.sp-hero.sp-hero-contain::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-img);
    background-size: cover;
    background-position: center;
    filter: blur(40px) brightness(0.5) saturate(1.1);
    transform: scale(1.1);
    z-index: -1;
}

.sp-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.sp-hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 2rem 3rem;
    width: 100%;
}

.sp-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

.sp-hero .sp-tagline {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.8);
    max-width: 550px;
}

/* 2. Overview + Stats */
.sp-overview {
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.sp-overview p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.sp-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 2rem 2rem 4rem;
    flex-wrap: wrap;
}

.sp-stat {
    text-align: center;
}

.sp-stat .sp-stat-number {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-cyan);
    line-height: 1.2;
}

.sp-stat .sp-stat-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* 3. Capabilities Grid */
.sp-capabilities {
    padding: 4rem 2rem;
    background: var(--color-bg-dark);
}

.sp-capabilities .container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.sp-capabilities h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.sp-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.sp-cap-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.sp-cap-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 168, 232, 0.15);
}

.sp-cap-card-img {
    height: 200px;
    overflow: hidden;
}

.sp-cap-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.sp-cap-card-img.sp-cap-card-img-contain {
    background: #fff;
    padding: 0.75rem;
}

.sp-cap-card-img-contain img {
    object-fit: contain;
}

.sp-cap-card:hover .sp-cap-card-img img {
    transform: scale(1.05);
}

.sp-cap-card-body {
    padding: 1.5rem;
}

.sp-cap-card-body h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.sp-cap-card-body p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.sp-cap-card-body ul {
    list-style: none;
    padding: 0;
}

.sp-cap-card-body ul li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    padding-left: 1rem;
    position: relative;
    line-height: 1.8;
}

.sp-cap-card-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    background: var(--color-cyan);
    border-radius: 50%;
}

/* 4. Featured / Proof Section */
.sp-featured {
    padding: 5rem 2rem;
    background: var(--color-bg);
}

.sp-featured .container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.sp-featured-inner {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 3rem;
    align-items: center;
}

.sp-featured-img {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.sp-featured-img img,
.sp-featured-img video {
    width: 100%;
    display: block;
}

.sp-featured-img.sp-featured-img-white {
    background: #fff;
    border: none;
    padding: 0.75rem;
}

.sp-featured-img-white img {
    background: #fff;
}

.sp-featured-img.sp-featured-img-plot {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 1.5rem 0;
}

.sp-featured-img-plot img {
    width: auto;
    max-width: 100%;
    max-height: 380px;
    transform: translateX(-18px);
}

.sp-featured-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.sp-featured-text p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* 5. Trust Bar */
.sp-trust {
    padding: 4rem 2rem;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.sp-trust h2 {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
}

/* Responsive - Service Pages */
@media (max-width: 900px) {
    .sp-hero {
        min-height: 40vh;
    }

    .sp-hero h1 {
        font-size: 2.2rem;
    }

    .sp-cap-grid {
        grid-template-columns: 1fr;
    }

    .sp-featured-inner {
        grid-template-columns: 1fr;
    }

    .sp-stats {
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .sp-hero {
        min-height: 35vh;
    }

    .sp-hero h1 {
        font-size: 1.8rem;
    }

    .sp-hero .sp-tagline {
        font-size: 1rem;
    }

    .sp-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .sp-capabilities {
        padding: 3rem 1rem;
    }

    .sp-featured {
        padding: 3rem 1rem;
    }
}
