/* =============================================================================
   SERVICES — page-specific sections
   =============================================================================
   Requires ax-system.css (loaded first): tokens, type scale, buttons, section
   shell, hero, CTA, header/footer, motion. This file styles ONLY this page's
   sections, reusing the shared tokens and editorial registers so Services reads
   as a natural continuation of Home and AI Solutions.

   Sections: problem (silos) · model · detail · value · fit
   ============================================================================= */


/* =============================================================================
   SECTION 2 — THE PROBLEM (silos). who | does — statement rows.
   ============================================================================= */
.svc-silos {
    margin: 0;
    padding: 0;
    max-width: 860px;
}

.svc-silos__row {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 0 28px;
    align-items: baseline;
    padding: clamp(20px, 2.8vw, 30px) 0;
    border-top: 1px solid var(--ax-border);
}
.svc-silos__row:last-child { border-bottom: 1px solid var(--ax-border); }

.svc-silos__who {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(19px, 2.1vw, 29px);
    letter-spacing: -0.022em;
    color: var(--ax-text);
    line-height: 1.2;
    margin: 0;
}

.svc-silos__do {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(19px, 2.1vw, 29px);
    letter-spacing: -0.022em;
    color: var(--ax-text-3);
    line-height: 1.2;
    margin: 0;
}

/* Pivot remark (mirrors .ax-aside / .home-aside) */
.svc-aside {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(20px, 2.2vw, 30px);
    line-height: 1.32;
    letter-spacing: -0.022em;
    color: var(--ax-text);
    max-width: 26ch;
    margin: clamp(52px, 6vw, 80px) 0 0;
    text-wrap: balance;
}


/* =============================================================================
   SECTION 3 — DELIVERY MODEL. The four capabilities as one system.
   number | name | role-tag — quiet, connected, not a card grid.
   ============================================================================= */
.svc-model__lead { margin-top: 20px; }

.svc-model {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--ax-border);
}

.svc-model__item {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0 32px;
    align-items: baseline;
    padding: clamp(22px, 2.8vw, 32px) 0;
    border-bottom: 1px solid var(--ax-border);
}

.svc-model__no {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: 13px;
    color: var(--ax-accent-soft);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
}

.svc-model__name {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(20px, 2.2vw, 30px);
    letter-spacing: -0.025em;
    color: var(--ax-text);
    line-height: 1.12;
}

.svc-model__tag {
    font-family: var(--ax-font-body);
    font-size: clamp(13px, 1.1vw, 15px);
    color: var(--ax-text-3);
    text-align: right;
    white-space: nowrap;
}


/* =============================================================================
   SECTION 4 — WHAT EACH CAPABILITY DELIVERS.  (the depth layer)
   Two-column editorial row:
     lead-col — number, name, dominant summary (the statement)
     body     — two labeled scan-lists (build/deliver · engage/approach)
                + an outcome line.
   This is where Services earns the click from Home. No cards, no icons — the
   lists are quiet hairline-led text, hierarchy by type and whitespace only.
   ============================================================================= */
.svc-detail {
    border-top: 1px solid var(--ax-border);
}

.svc-cap {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) 1.1fr;
    gap: clamp(28px, 5vw, 80px);
    padding: clamp(40px, 5vw, 72px) 0;
    border-bottom: 1px solid var(--ax-border);
    align-items: start;
    /* Deep-link target (#ai-agentic-solutions etc.) clears the fixed header. */
    scroll-margin-top: calc(var(--ax-header-h) + 24px);
}

.svc-cap__no {
    display: block;
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: 13px;
    color: var(--ax-accent-soft);
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.svc-cap__name {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(22px, 2.6vw, 32px);
    letter-spacing: -0.028em;
    line-height: 1.08;
    color: var(--ax-text);
    margin: 0;
    text-wrap: balance;
}

/* The summary is the dominant statement — outcome + expertise, in Geist. */
.svc-cap__summary {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(17px, 1.5vw, 21px);
    line-height: 1.42;
    letter-spacing: -0.016em;
    color: var(--ax-text-2);
    margin: 18px 0 0;
    max-width: 42ch;
    text-wrap: pretty;
}

/* The two labeled columns — the "what" and the "how". */
.svc-cap__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 4vw, 56px);
}

.svc-cap__col-label {
    font-family: var(--ax-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ax-accent-soft);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--ax-border-2);
}

.svc-cap__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-cap__list-item {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(15px, 1.3vw, 17px);
    letter-spacing: -0.012em;
    line-height: 1.3;
    color: var(--ax-text);
    padding: 9px 0;
}

/* The outcome — the payoff line, set apart by a navy rule. */
.svc-cap__outcome {
    font-family: var(--ax-font-body);
    font-size: clamp(15px, 1.25vw, 16.5px);
    line-height: 1.6;
    color: var(--ax-text-2);
    margin: clamp(28px, 3vw, 40px) 0 0;
    padding-top: clamp(22px, 2.4vw, 28px);
    border-top: 2px solid var(--ax-accent);
    max-width: 56ch;
}

.svc-cap__outcome-label {
    display: block;
    font-family: var(--ax-font-body);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ax-text-3);
    margin-bottom: 8px;
}


/* =============================================================================
   SECTION 5 — WHY THIS MODEL. key | statement (mirrors AI Solutions commitments)
   ============================================================================= */
.svc-value {
    margin: 0 auto;
    padding: 0;
    border-top: 1px solid var(--ax-border-2);
    max-width: 940px;
}

.svc-value__row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 0 48px;
    align-items: baseline;
    padding: clamp(24px, 3vw, 36px) 0;
    border-bottom: 1px solid var(--ax-border-2);
}

.svc-value__k {
    font-family: var(--ax-font-head);
    font-weight: 600;
    font-size: clamp(19px, 2vw, 27px);
    letter-spacing: -0.022em;
    color: var(--ax-text);
    line-height: 1.15;
    margin: 0;
}

.svc-value__v {
    font-family: var(--ax-font-body);
    font-size: clamp(15px, 1.25vw, 16.5px);
    line-height: 1.6;
    color: var(--ax-text-2);
    margin: 0;
}


/* =============================================================================
   SECTION 6 — WHO IT'S FOR. Plain editorial statement list.
   ============================================================================= */
.svc-fit {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 920px;
    border-top: 1px solid var(--ax-border);
}

.svc-fit__item {
    font-family: var(--ax-font-head);
    font-weight: 500;
    font-size: clamp(19px, 2.1vw, 28px);
    letter-spacing: -0.022em;
    line-height: 1.34;
    color: var(--ax-text);
    padding: clamp(20px, 2.6vw, 30px) 0 clamp(20px, 2.6vw, 30px) clamp(28px, 3vw, 44px);
    border-bottom: 1px solid var(--ax-border);
    position: relative;
    text-wrap: balance;
}

/* A small navy tick instead of a bullet — discovered, not decorative. */
.svc-fit__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(clamp(20px, 2.6vw, 30px) + 0.62em);
    width: 16px;
    height: 1.5px;
    background: var(--ax-accent);
    border-radius: 1px;
}


/* =============================================================================
   RESPONSIVE — TABLET  ≤ 980px
   ============================================================================= */
@media (max-width: 980px) {

    /* Capability detail: stack lead-col over body; the two list columns stay
       side by side (short lists read fine in two narrow columns at tablet). */
    .svc-cap { grid-template-columns: 1fr; gap: clamp(24px, 4vw, 36px); }
    .svc-cap__summary { max-width: 52ch; }

    /* Value rows: stack key over statement */
    .svc-value__row { grid-template-columns: 1fr; gap: 8px; }
}


/* =============================================================================
   RESPONSIVE — MOBILE  ≤ 640px
   ============================================================================= */
@media (max-width: 640px) {

    /* Silos: stack who over does */
    .svc-silos__row { grid-template-columns: 1fr; gap: 2px; padding: 18px 0; }
    .svc-silos__who, .svc-silos__do { font-size: 21px; }
    .svc-aside { font-size: 22px; max-width: 100%; }

    /* Model: keep number + name, role tag drops to its own line */
    .svc-model__item { grid-template-columns: 36px 1fr; gap: 2px 16px; padding: 20px 0; }
    .svc-model__name { grid-column: 2; }
    .svc-model__tag { grid-column: 2; text-align: left; white-space: normal; margin-top: 4px; }

    /* Capability detail */
    .svc-cap { padding: 40px 0; }
    .svc-cap__name { font-size: clamp(23px, 7vw, 30px); }
    /* The two list columns stack on mobile — each gets full width to scan. */
    .svc-cap__cols { grid-template-columns: 1fr; gap: 28px; }

    /* Fit statements */
    .svc-fit__item { font-size: 20px; padding-left: 26px; }
}
