/* ========== SERVICES PAGE STYLES ========== */
/* Fully aligned to Index.css design system */

/* ─── Hero ──────────────────────────────────────────────── */
.services-hero {
    min-height: 420px;
    padding: 140px 2rem 100px;
    background: var(--grad-navy);
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(249, 160, 27, 0.08) 0%, transparent 65%);
    pointer-events: none;
}

.services-hero-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    animation: svcFadeIn 0.85s ease both;
}

.services-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 1rem;
}

.services-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    position: relative;
    display: inline-block;
}

.services-hero h1::after {
    display: none;
}

.services-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.75;
    margin-top: 2rem;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
}

/* ─── Services Detail Section ───────────────────────────── */
.services-detail-section {
    padding: 100px 2rem 120px;
    background: var(--surface-light);
    box-shadow: inset 0 1px 0 rgba(13, 37, 69, 0.08);
}

/* Section heading */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    color: var(--navy-deep);
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    margin-bottom: 0;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 3px;
    background: var(--grad-stripe);
    border-radius: 2px;
}

.section-header p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 1.8rem auto 0;
    line-height: 1.7;
}

/* ─── Services List ─────────────────────────────────────── */
.services-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

/* ─── Service Block ─────────────────────────────────────── */
.service-block {
    display: flex;
    gap: 5rem;
    align-items: center;
    animation: svcSlideUp 0.7s ease forwards;
    opacity: 0;
}

.service-block:nth-child(1) { animation-delay: 0.05s; }
.service-block:nth-child(2) { animation-delay: 0.15s; }
.service-block:nth-child(3) { animation-delay: 0.25s; }
.service-block:nth-child(4) { animation-delay: 0.35s; }

/* Alternate: odd = image left, even = image right */
.service-block.reverse {
    flex-direction: row-reverse;
}

/* ─── Image Placeholder ─────────────────────────────────── */
.svc-image-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
}

.svc-image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--grad-navy);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    /* Subtle grid lines matching Expertise dark section */
    background-image:
        linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
}

/* Inner grid-line texture */
.svc-image-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(45, 112, 186, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(45, 112, 186, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.svc-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    display: block;
}

.svc-placeholder-label {
    position: relative;
    z-index: 1;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 1.5rem;
}

/* Amber outline frame — same as vision image */
.svc-image-wrap::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: calc(var(--radius-lg) + 6px);
    border: 2px solid rgba(249, 160, 27, 0.3);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* On reverse blocks use navy outline instead */
.service-block.reverse .svc-image-wrap::after {
    border-color: rgba(45, 112, 186, 0.3);
}

/* ─── Service Text ──────────────────────────────────────── */
.svc-text-wrap {
    flex: 1;
    min-width: 0;
}

.svc-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--amber);
    margin-bottom: 0.9rem;
}

.svc-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--navy-deep);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    position: relative;
}

.svc-title::after {
    display: none;
}

.svc-desc {
    font-size: 1rem;
    line-height: 1.82;
    color: var(--text-secondary);
    margin-top: 1.6rem;
}

/* First paragraph — amber left border pull */
.svc-desc p:first-child {
    padding-left: 1.1rem;
    border-left: 2px solid var(--amber);
    color: var(--navy-mid);
    font-weight: 500;
}

.svc-desc p {
    margin-bottom: 1rem;
}

/* Feature list */
.svc-features {
    list-style: none;
    margin-top: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.svc-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}

.svc-features li::before {
    content: '—';
    color: var(--amber);
    font-weight: 700;
    flex-shrink: 0;
}

.svc-features li:hover {
    background: var(--amber-glow);
}

/* ─── Divider between blocks ────────────────────────────── */
.svc-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-light), transparent);
    margin: 0;
}

/* ─── Back Button ───────────────────────────────────────── */
.back-btn-container {
    text-align: center;
    margin-top: 5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--grad-navy);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(45, 112, 186, 0.3);
}

.back-btn i {
    transition: transform 0.25s ease;
}

.back-btn:hover {
    background: var(--grad-amber);
    color: var(--navy-deep);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(249, 160, 27, 0.28);
}

.back-btn:hover i {
    transform: translateX(-4px);
}

/* ─── Animations ────────────────────────────────────────── */
@keyframes svcFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes svcSlideUp {
    from { opacity: 0; transform: translateY(32px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 992px) {
    .services-hero h1 { font-size: 2.5rem; }

    .service-block,
    .service-block.reverse {
        flex-direction: column;
        gap: 2.5rem;
    }

    .svc-title { font-size: 1.7rem; }

    .services-list { gap: 4rem; }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 340px;
        padding: 120px 1.5rem 70px;
    }

    .services-hero h1 { font-size: 2rem; }
    .services-hero p  { font-size: 0.98rem; }

    .services-detail-section { padding: 70px 1.5rem 90px; }

    .section-header h2 { font-size: 1.9rem; }

    .svc-title { font-size: 1.5rem; }

    .svc-desc p:first-child {
        padding-left: 0;
        border-left: none;
    }

    .services-list { gap: 3.5rem; }
}

@media (max-width: 480px) {
    .services-hero h1 { font-size: 1.7rem; }
    .svc-title { font-size: 1.3rem; }
    .section-header h2 { font-size: 1.65rem; }
}