/* ============================================================
   Service Pages — Shared Modern Stylesheet
   Used by: services, mechanical, electrical, hvac, civil
   Brand: PT. Putra Cipta Dinamika (blue #1d4ed8 / navy #0a192f)
   ============================================================ */

:root {
    --sp-primary: #1d4ed8;
    --sp-primary-dark: #1e40af;
    --sp-navy: #0a192f;
    --sp-ink: #111827;
    --sp-body: #4b5563;
    --sp-muted: #6b7280;
    --sp-bg-soft: #f6f8fc;
    --sp-border: #e8ecf3;
    --sp-radius: 16px;
    --sp-shadow-sm: 0 2px 10px rgba(15, 23, 42, 0.06);
    --sp-shadow-md: 0 12px 32px rgba(15, 23, 42, 0.10);
    --sp-shadow-lg: 0 24px 56px rgba(15, 23, 42, 0.14);
}

/* ---------- Section shell ---------- */
.sp-section { padding: 84px 0; }
.sp-section--soft { background: var(--sp-bg-soft); }
.sp-section--tight { padding: 64px 0; }

.sp-container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Section header ---------- */
.sp-section-header { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.sp-section-header--left { margin-left: 0; text-align: left; }

.sp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8effe;
    color: var(--sp-primary);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 7px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.sp-eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--sp-primary);
}

.sp-section-header h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 800;
    color: var(--sp-ink);
    line-height: 1.2;
    margin: 0 0 14px;
}
.sp-section-header p {
    color: var(--sp-muted);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}
.sp-section-header .sp-line {
    width: 64px; height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--sp-primary), #60a5fa);
    margin: 18px auto 0;
}
.sp-section-header--left .sp-line { margin-left: 0; }

/* ---------- Overview (image + text) ---------- */
.sp-overview {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}

.sp-overview-media { position: relative; }
.sp-overview-media img {
    width: 100%;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-lg);
    display: block;
}
.sp-overview-media::before {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: var(--sp-radius);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.10), rgba(96, 165, 250, 0.16));
    z-index: -1;
}
.sp-media-badge {
    position: absolute;
    left: 20px; bottom: 20px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(6px);
    border-radius: 12px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--sp-shadow-md);
}
.sp-media-badge i {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: var(--sp-primary);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.sp-media-badge strong { display: block; font-size: 14px; color: var(--sp-ink); line-height: 1.2; }
.sp-media-badge span { font-size: 11.5px; color: var(--sp-muted); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }

.sp-overview-content .sp-eyebrow { margin-bottom: 14px; }
.sp-overview-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--sp-ink);
    line-height: 1.22;
    margin: 0 0 18px;
}
.sp-overview-content p {
    color: var(--sp-body);
    font-size: 14.5px;
    line-height: 1.85;
    margin: 0 0 14px;
}

/* Feature chips */
.sp-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 26px 0 30px;
}
.sp-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    transition: all 0.25s ease;
}
.sp-chip i {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: #e8effe;
    color: var(--sp-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
    transition: all 0.25s ease;
}
.sp-chip:hover { border-color: #c7d8fb; box-shadow: var(--sp-shadow-sm); transform: translateY(-2px); }
.sp-chip:hover i { background: var(--sp-primary); color: #fff; }

/* Buttons */
.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.sp-btn--primary {
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.30);
}
.sp-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(29, 78, 216, 0.38); color: #fff; }
.sp-btn--ghost {
    background: #fff;
    color: var(--sp-primary);
    border: 1.5px solid #d7e3fb;
}
.sp-btn--ghost:hover { border-color: var(--sp-primary); background: #f4f8ff; transform: translateY(-2px); }
.sp-btn--white { background: #fff; color: var(--sp-primary); }
.sp-btn--white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.22); color: var(--sp-primary); }
.sp-btn-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Capability cards ---------- */
.sp-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.sp-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }

.sp-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    padding: 30px 26px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.sp-card::after {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sp-primary), #60a5fa);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.sp-card:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-md); border-color: #dbe6fb; }
.sp-card:hover::after { transform: scaleX(1); }

.sp-card-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #e8effe, #f2f7ff);
    color: var(--sp-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}
.sp-card:hover .sp-card-icon { background: var(--sp-primary); color: #fff; box-shadow: 0 10px 20px rgba(29, 78, 216, 0.28); }

.sp-card h3 { font-size: 17px; font-weight: 700; color: var(--sp-ink); margin: 0 0 10px; }
.sp-card p { font-size: 13.5px; color: var(--sp-muted); line-height: 1.7; margin: 0; }

.sp-card-num {
    position: absolute;
    top: 20px; right: 22px;
    font-size: 34px;
    font-weight: 900;
    color: #eef2f9;
    line-height: 1;
    transition: color 0.3s ease;
}
.sp-card:hover .sp-card-num { color: #dbe6fb; }

/* ---------- Detail blocks (alternating) ---------- */
.sp-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.sp-detail + .sp-detail { margin-top: 72px; }
.sp-detail--reverse .sp-detail-media { order: 2; }
.sp-detail--reverse .sp-detail-body { order: 1; }

.sp-detail-media { position: relative; }
/* Photos 2nd onward are kept smaller & consistent so they don't dominate the page */
.sp-detail-media {
    max-width: 300px;
    margin: 0 auto;
}
.sp-detail--reverse .sp-detail-media { margin-left: auto; margin-right: 0; }
.sp-detail-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: var(--sp-radius);
    box-shadow: var(--sp-shadow-md);
    display: block;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.sp-detail-media:hover img { transform: translateY(-4px); box-shadow: var(--sp-shadow-lg); }
.sp-detail-media::before {
    content: "";
    position: absolute;
    inset: 18px -18px -18px 18px;
    border-radius: var(--sp-radius);
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(96, 165, 250, 0.14));
    z-index: -1;
}
.sp-detail--reverse .sp-detail-media::before { inset: 18px 18px -18px -18px; }

.sp-detail-index {
    position: absolute;
    top: -18px; left: -14px;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--sp-primary), var(--sp-primary-dark));
    color: #fff;
    font-weight: 800;
    font-size: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 22px rgba(29, 78, 216, 0.35);
}
.sp-detail--reverse .sp-detail-index { left: auto; right: -14px; }

.sp-detail-body .sp-eyebrow { margin-bottom: 12px; }
.sp-detail-body h3 {
    font-size: clamp(22px, 2.6vw, 28px);
    font-weight: 800;
    color: var(--sp-ink);
    margin: 0 0 6px;
}
.sp-detail-body h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--sp-primary);
    margin: 0 0 16px;
}
.sp-detail-body p { color: var(--sp-body); font-size: 14px; line-height: 1.85; margin: 0 0 12px; }

.sp-checklist { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.sp-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
}
.sp-checklist li i {
    width: 22px; height: 22px;
    border-radius: 50%;
    background: #e8effe;
    color: var(--sp-primary);
    font-size: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---------- Service navigator ---------- */
.sp-nav-wrap { padding: 56px 0; background: var(--sp-bg-soft); }
.sp-nav {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.sp-nav-btn {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.3s ease;
}
.sp-nav-btn i.sp-nav-arrow {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #e8effe;
    color: var(--sp-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}
.sp-nav-btn small { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #9ca3af; }
.sp-nav-btn strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--sp-ink); }
.sp-nav-btn:hover { border-color: var(--sp-primary); box-shadow: var(--sp-shadow-md); transform: translateY(-3px); }
.sp-nav-btn:hover i.sp-nav-arrow { background: var(--sp-primary); color: #fff; }
.sp-nav-btn--next { justify-content: flex-end; text-align: right; }

/* ---------- CTA banner ---------- */
.sp-cta { padding: 72px 0 84px; background: var(--sp-bg-soft); }
.sp-cta-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #0a192f 0%, #12306b 55%, var(--sp-primary-dark) 100%);
    border-radius: 22px;
    padding: 52px 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    color: #fff;
    box-shadow: 0 24px 56px rgba(10, 25, 47, 0.35);
}
.sp-cta-box::before,
.sp-cta-box::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.sp-cta-box::before {
    width: 320px; height: 320px;
    right: -90px; top: -140px;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.28), transparent 70%);
}
.sp-cta-box::after {
    width: 240px; height: 240px;
    left: -80px; bottom: -130px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.45), transparent 70%);
}
.sp-cta-text { position: relative; z-index: 1; }
.sp-cta-text span {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: #93c5fd;
}
.sp-cta-text h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; margin: 10px 0 10px; line-height: 1.25; }
.sp-cta-text p { color: #c7d6f2; font-size: 14px; line-height: 1.7; max-width: 520px; margin: 0; }
.sp-cta-action { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- Services overview page (cards with image strip) ---------- */
.sp-service-tile {
    position: relative;
    background: #fff;
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}
.sp-service-tile:hover { transform: translateY(-6px); box-shadow: var(--sp-shadow-md); border-color: #dbe6fb; }
.sp-service-tile-body { padding: 28px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.sp-service-tile h3 { font-size: 19px; font-weight: 800; color: var(--sp-ink); margin: 0 0 4px; }
.sp-service-tile .sp-tile-sub {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--sp-primary);
    margin-bottom: 14px;
}
.sp-service-tile p { font-size: 13.5px; color: var(--sp-muted); line-height: 1.75; margin: 0 0 20px; flex: 1; }
.sp-tile-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--sp-primary);
    transition: gap 0.3s ease;
}
.sp-tile-link:hover { gap: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .sp-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .sp-overview { gap: 44px; }
}

@media (max-width: 900px) {
    .sp-section { padding: 64px 0; }
    .sp-overview, .sp-detail { grid-template-columns: 1fr; gap: 36px; }
    .sp-detail--reverse .sp-detail-media { order: 1; }
    .sp-detail--reverse .sp-detail-body { order: 2; }
    .sp-detail--reverse .sp-detail-media::before { inset: 18px -18px -18px 18px; }
    .sp-detail--reverse .sp-detail-index { left: -14px; right: auto; }
    .sp-cta-box { flex-direction: column; text-align: center; padding: 40px 30px; }
    .sp-cta-text p { margin: 0 auto; }
}

@media (max-width: 900px) {
    .sp-detail-media,
    .sp-detail--reverse .sp-detail-media {
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 640px) {
    .sp-cards-grid, .sp-cards-grid--2 { grid-template-columns: 1fr; }
    .sp-chips { grid-template-columns: 1fr; }
    .sp-media-badge { left: 12px; bottom: 12px; padding: 10px 14px; }
    .sp-nav-btn { min-width: 100%; }
    .sp-nav-btn--next { justify-content: flex-start; text-align: left; flex-direction: row-reverse; }
    .sp-cta-box { padding: 34px 24px; }
}