/* =========================================
   SERVICES PAGE REDESIGN — SYSTEM-ORIENTED
   Aligned with Index & About • Deep Navy • Teal • Off-white
   ========================================= */

:root {
    --color-navy-deep: #1e293b;
    --color-teal: #14b8a6;
    --color-teal-neon: #2dd4bf;
    --color-off-white: #f8fafc;
    --color-soft-grey: #64748b;
    --color-divider: #e2e8f0;
    --color-text-heading: #f8fafc;
    --color-text-body: #94a3b8;
    --color-text-dark: #1e293b;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

.services-page {
    overflow-x: hidden;
}

/* =========================================
   1. HERO
   ========================================= */

.svc-hero {
    position: relative;
    padding: calc(var(--header-height, 80px) + 6rem) 0 6rem;
    background: var(--color-navy-deep);
    background-image: linear-gradient(180deg, #1e293b 0%, #1a2332 100%);
    color: var(--color-text-heading);
    overflow: hidden;
}

.svc-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.svc-hero-svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svc-flow-line {
    animation: svc-drift 20s linear infinite;
}

.svc-flow-2 {
    animation-direction: reverse;
    animation-duration: 24s;
}

@keyframes svc-drift {
    to { stroke-dashoffset: -64; }
}

.svc-hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.svc-hero-title {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--color-text-heading);
}

.svc-hero-accent {
    color: var(--color-teal);
}

.svc-hero-lead {
    font-size: clamp(1.1rem, 1.8vw, 1.35rem);
    line-height: 1.7;
    max-width: 640px;
    margin: 0 auto;
    color: var(--color-text-body);
}

/* =========================================
   2. SERVICE MODULES
   ========================================= */

.svc-modules {
    padding: 6rem 0;
    background: var(--color-off-white);
}

.svc-modules-header {
    text-align: center;
    margin-bottom: 4rem;
}

.svc-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 1rem;
}

.svc-modules-header h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.svc-modules-header p {
    font-size: 1.15rem;
    color: var(--color-soft-grey);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.svc-modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.svc-module {
    background: #fff;
    border: 1px solid var(--color-divider);
    border-radius: 20px;
    padding: 2.5rem;
    transition: transform 0.3s var(--ease-smooth), box-shadow 0.3s var(--ease-smooth), border-color 0.3s var(--ease-smooth);
    position: relative;
}

.svc-module:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(20, 184, 166, 0.3);
}

.svc-module:hover .svc-module-icon {
    color: var(--color-teal);
    transform: scale(1.05);
}

.svc-module-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--color-soft-grey);
    transition: color 0.3s var(--ease-smooth), transform 0.3s var(--ease-smooth);
}

.svc-module-icon svg {
    width: 28px;
    height: 28px;
}

.svc-module h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.svc-module-desc {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--color-soft-grey);
    margin-bottom: 1.25rem;
}

.svc-module-problem {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-soft-grey);
    padding-left: 1rem;
    border-left: 2px solid rgba(20, 184, 166, 0.3);
    margin: 0;
}

/* =========================================
   3. HOW SERVICES CONNECT (System View)
   ========================================= */

.svc-system-view {
    position: relative;
    padding: 6rem 0;
    background: var(--color-navy-deep);
    color: var(--color-text-heading);
    overflow: hidden;
}

.svc-system-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-system-svg {
    width: 90%;
    max-width: 700px;
    height: auto;
}

.svc-connector,
.svc-arc {
    stroke: rgba(20, 184, 166, 0.4);
    stroke-width: 1;
    fill: none;
    animation: svc-connector-flow 18s linear infinite;
}

.svc-arc { animation-delay: -4s; }

@keyframes svc-connector-flow {
    to { stroke-dashoffset: -28; }
}

.svc-node {
    fill: none;
    stroke: rgba(20, 184, 166, 0.35);
    stroke-width: 1.5;
}

.svc-system-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.svc-system-header h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 1rem;
}

.svc-system-header p {
    font-size: 1.15rem;
    color: var(--color-text-body);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.svc-system-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem 2rem;
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.svc-flow-block {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.75rem 2rem;
    text-align: center;
    min-width: 160px;
}

.svc-flow-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-teal);
    margin-bottom: 0.5rem;
}

.svc-flow-block p {
    font-size: 1rem;
    color: var(--color-text-body);
    margin: 0;
}

.svc-flow-arrow {
    color: rgba(20, 184, 166, 0.5);
    font-size: 1.5rem;
    font-weight: 300;
}

/* =========================================
   4. WHAT CLIENTS GET (Outcomes)
   ========================================= */

.svc-outcomes {
    padding: 6rem 0;
    background: var(--color-off-white);
}

.svc-outcomes-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.svc-outcomes-header h2 {
    font-size: clamp(2.25rem, 4vw, 3.25rem);
    font-weight: 800;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.svc-outcomes-header p {
    font-size: 1.15rem;
    color: var(--color-soft-grey);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.svc-outcomes-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.svc-outcomes-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--color-divider);
    border-radius: 14px;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    transition: transform 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth);
}

.svc-outcomes-list li:hover {
    transform: translateX(6px);
    border-color: rgba(20, 184, 166, 0.25);
}

.svc-outcome-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
}

.svc-outcome-icon svg {
    width: 20px;
    height: 20px;
}

/* =========================================
   5. FINAL CTA
   ========================================= */

.svc-cta {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--color-navy-deep) 0%, #0f172a 100%);
    overflow: hidden;
}

.svc-cta-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.35), transparent);
    pointer-events: none;
}

.svc-cta-divider-top { top: 0; }
.svc-cta-divider-bottom { bottom: 0; }

.svc-cta-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image:
        linear-gradient(rgba(20, 184, 166, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 184, 166, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.svc-cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.svc-cta-headline {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--color-text-heading);
    margin-bottom: 1rem;
}

.svc-cta-text {
    font-size: 1.2rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin: 0;
}

.svc-cta-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
}

.svc-cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 1.5rem;
}

.svc-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.svc-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.75rem;
    background: var(--color-teal);
    color: var(--color-navy-deep);
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    transition: transform 0.25s var(--ease-smooth), background 0.25s var(--ease-smooth);
}

.svc-cta-btn-primary:hover {
    background: var(--color-teal-neon);
    transform: translateY(-2px);
}

.svc-cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--color-text-heading);
    font-size: 1rem;
    font-weight: 500;
    border-radius: 12px;
    text-decoration: none;
    transition: border-color 0.25s var(--ease-smooth), color 0.25s var(--ease-smooth);
}

.svc-cta-btn-secondary:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
}

.svc-cta-trust {
    font-size: 0.9rem;
    color: var(--color-text-body);
    margin: 0;
}

/* =========================================
   FADE-IN ON SCROLL
   ========================================= */

.svc-hero,
.svc-modules,
.svc-system-view,
.svc-outcomes,
.svc-cta {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.svc-hero.visible,
.svc-modules.visible,
.svc-system-view.visible,
.svc-outcomes.visible,
.svc-cta.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 968px) {
    .svc-modules-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .svc-cta-split {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .svc-system-flow {
        flex-direction: column;
    }

    .svc-flow-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 640px) {
    .svc-hero {
        padding: calc(var(--header-height, 80px) + 4rem) 0 4rem;
    }

    .svc-modules,
    .svc-system-view,
    .svc-outcomes {
        padding: 4rem 0;
    }

    .svc-cta {
        padding: 4rem 0;
    }

    .svc-system-bg {
        opacity: 0.08;
    }
}

/* =========================================
   REDUCED MOTION
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    .svc-flow-line,
    .svc-connector,
    .svc-arc {
        animation: none;
    }

    .svc-hero,
    .svc-modules,
    .svc-system-view,
    .svc-outcomes,
    .svc-cta {
        opacity: 1;
        transform: none;
    }

    .svc-module:hover,
    .svc-outcomes-list li:hover {
        transform: none;
    }
}
