/* ============================================================
   ARPHATECH — Services Page
   Depends on: base.css (all color tokens defined there)
   ============================================================ */

.services-page {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 4rem);
    padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

/* ============================================================
   PAGE HERO
   ============================================================ */
.services-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    max-width: 760px;
    margin: 0 auto;
}

.services-hero__eyebrow {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background-color: var(--accent-soft);
    border-radius: 999px;
}

.services-hero__title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
    margin: 0;
}

.services-hero__accent { color: var(--primary); }

.services-hero__subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.1rem);
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
    max-width: 60ch;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
}

/* ============================================================
   SERVICE CARD
   ============================================================ */
.service-item {
    display: flex;
    flex-direction: column;

    background-color: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    overflow: hidden;

    text-decoration: none;
    color: inherit;

    transition: transform 0.2s ease,
                box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.service-item:hover {
    transform: translateY(-4px);
    border-color: var(--border);
    box-shadow: 0 12px 28px rgba(41, 45, 48, 0.08);
}

.service-item__media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--surface-alt);
    overflow: hidden;
}

.service-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}

.service-item:hover .service-item__media img {
    transform: scale(1.05);
}

.service-item__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: clamp(1rem, 1.8vw, 1.35rem);
    flex: 1;
}

.service-item__title {
    font-size: clamp(1.05rem, 1.3vw, 1.2rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0;
}

.service-item__desc {
    font-size: clamp(0.85rem, 0.95vw, 0.92rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;

    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);

    transition: gap 0.2s ease, color 0.2s ease;
}

.service-item:hover .service-item__link {
    gap: 0.6rem;
    color: var(--accent-hover);
}

.service-item__link svg { transition: transform 0.2s ease; }
.service-item:hover .service-item__link svg { transform: translateX(2px); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.services-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;

    padding: clamp(1.25rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.5rem);

    background-color: var(--primary);
    color: var(--surface);
    border-radius: 16px;
}

.services-cta__title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--surface);
}

.services-cta__sub {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    max-width: 52ch;
}

.services-cta__btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;

    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;

    color: var(--primary);
    background-color: var(--surface);
    border-radius: 999px;

    transition: background-color 0.2s ease,
                color 0.2s ease,
                transform 0.15s ease,
                box-shadow 0.2s ease;
}

.services-cta__btn:hover {
    background-color: var(--accent);
    color: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.partner__title-brand {
    color: var(--accent);
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(0.75rem, 2vw, 1.25rem);

    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-light);
}

.stat__value {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}


.stat__label {
    font-size: clamp(0.72rem, 0.85vw, 0.82rem);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ============================================================
   SERVICE CARD — Tech stack chips
   ============================================================ */
.service-item__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;

    list-style: none;
    padding: 0;
    margin: 0.4rem 0 0.5rem;
}

.service-item__stack li {
    padding: 0.22rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-secondary);

    background-color: var(--surface-alt);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    white-space: nowrap;

    transition: background-color 0.2s ease, color 0.2s ease;
}

.service-item:hover .service-item__stack li {
    background-color: var(--surface-hover);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }

    .services-cta {
        justify-content: center;
        text-align: center;
    }
    .services-cta__content { flex: 1 1 100%; }
}

@media (max-width: 575.98px) {
    .services-page { gap: 2rem; }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .services-cta {
        flex-direction: column;
        padding: 1.5rem 1.25rem;
    }
    .services-cta__btn {
        width: 100%;
        text-align: center;
    }

    .service-item__media { aspect-ratio: 16 / 9; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .service-item,
    .service-item__media img,
    .service-item__link,
    .service-item__link svg,
    .services-cta__btn {
        transition: none !important;
        transform: none !important;
    }
}