/* =========================================================
   SERVICES PAGE  — WebX-inspired typographic layout
   ========================================================= */

/* ── Hero ─────────────────────────────────────────────── */
.sp-hero {
    min-height: 65vh;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 9rem 0 5rem;
    position: relative;
    background: var(--dark-bg);
    overflow: hidden;
}
.sp-hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(220,38,38,0.1) 0%, transparent 65%),
        radial-gradient(ellipse 40% 40% at 10% 70%, rgba(185,28,28,0.07) 0%, transparent 55%);
    pointer-events: none;
}
.sp-hero-inner { position: relative; z-index: 1; }

.sp-hero-tag {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 1.75rem;
}
.sp-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800; line-height: 1.05; letter-spacing: -0.04em;
    margin-bottom: 1.75rem;
}
.sp-hero-sub {
    color: var(--text-secondary); font-size: 1.1rem;
    max-width: 520px; line-height: 1.75;
}

/* ── Services List ────────────────────────────────────── */
.sp-list-section {
    padding: 5rem 0 7rem;
    background: var(--dark-bg);
}

.sp-item {
    display: grid;
    grid-template-columns: 72px 1fr 56px;
    gap: 2rem;
    align-items: start;
    padding: 2.75rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: padding-left 0.3s ease;
    cursor: default;
}
.sp-item:first-child { border-top: 1px solid var(--border-color); }
.sp-item:hover { padding-left: 0.5rem; }

.sp-item-num {
    font-family: var(--font-heading);
    font-size: 0.78rem; font-weight: 700;
    color: var(--text-muted); letter-spacing: 0.06em;
    padding-top: 0.5rem;
}

.sp-item-body { flex: 1; }

.sp-item-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; margin-bottom: 1rem;
}
.sp-item-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.5vw, 2.6rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
    transition: color 0.2s;
}
.sp-item:hover .sp-item-title { color: var(--primary-color); }

.sp-item-icon {
    width: 52px; height: 52px; flex-shrink: 0; border-radius: var(--radius-md);
    background: rgba(220,38,38,0.1); border: 1px solid rgba(220,38,38,0.2);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary-color); font-size: 1.25rem;
    transition: all 0.3s ease;
}
.sp-item:hover .sp-item-icon {
    background: rgba(220,38,38,0.2);
    transform: rotate(-8deg) scale(1.08);
}

.sp-item-desc {
    color: var(--text-secondary); font-size: 1rem; line-height: 1.8;
    max-width: 680px; margin-bottom: 1.25rem;
}

.sp-item-tags {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.sp-tag {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.85rem; border-radius: 50px;
    border: 1px solid var(--border-color);
    color: var(--text-muted); background: transparent;
    transition: all 0.2s;
}
.sp-item:hover .sp-tag {
    border-color: rgba(220,38,38,0.3); color: var(--text-secondary);
}

.sp-item-cta {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); font-size: 0.9rem;
    transition: all 0.25s ease;
    margin-top: 0.35rem;
}
.sp-item:hover .sp-item-cta {
    border-color: var(--primary-color); color: var(--primary-color);
    background: rgba(220,38,38,0.08);
    transform: rotate(-45deg);
}

/* ── Process ──────────────────────────────────────────── */
.sp-process {
    padding: 7rem 0;
    background: var(--dark-bg-2);
}
.sp-process-header {
    margin-bottom: 4rem;
}
.sp-process-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; letter-spacing: -0.03em; margin-top: 0.5rem;
}

.sp-process-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    position: relative;
}
.sp-process-steps::before {
    content: '';
    position: absolute; top: 28px; left: 0; right: 0;
    height: 1px; background: var(--border-color); z-index: 0;
}

.sp-step {
    position: relative; z-index: 1;
    padding: 0 1.5rem 0 0;
    display: flex; flex-direction: column; gap: 1.25rem;
}
.sp-step:last-child { padding-right: 0; }

.sp-step-num {
    width: 56px; height: 56px; border-radius: 50%;
    background: var(--dark-bg-2); border: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 0.85rem; font-weight: 800;
    color: var(--text-muted); transition: all 0.3s ease;
    position: relative;
}
.sp-step:hover .sp-step-num {
    background: var(--gradient-primary); color: #fff;
    border-color: transparent; box-shadow: 0 4px 20px rgba(220,38,38,0.35);
}

.sp-step-body h3 {
    font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem;
    transition: color 0.2s;
}
.sp-step:hover .sp-step-body h3 { color: var(--primary-color); }
.sp-step-body p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.7; }

/* ── CTA ──────────────────────────────────────────────── */
.sp-cta {
    padding: 7rem 0;
    background: var(--dark-bg);
}
.sp-cta-inner {
    max-width: 680px;
}
.sp-cta-inner h2 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800; letter-spacing: -0.03em; margin-bottom: 1.1rem; line-height: 1.15;
}
.sp-cta-inner p {
    color: var(--text-secondary); font-size: 1.05rem;
    line-height: 1.75; margin-bottom: 2.25rem;
}
.sp-cta-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .sp-process-steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
    .sp-process-steps::before { display: none; }
}
@media (max-width: 768px) {
    .sp-hero { min-height: 55vh; padding: 8rem 0 4rem; }
    .sp-item { grid-template-columns: 48px 1fr; gap: 1.25rem; }
    .sp-item-cta { display: none; }
    .sp-item-icon { width: 44px; height: 44px; font-size: 1rem; }
    .sp-process-steps { grid-template-columns: 1fr 1fr; }
    .sp-cta-btns { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .sp-item { grid-template-columns: 40px 1fr; gap: 1rem; padding: 2rem 0; }
    .sp-process-steps { grid-template-columns: 1fr; gap: 2rem; }
    .sp-item-head { flex-direction: column; }
}
