/* ============================================================
   SERVICES.CSS — Service overview grid + 8 service detail sections
   ============================================================ */

/* === SERVICES OVERVIEW GRID === */
#services {
    background: var(--bg-alt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.service-card-num {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.service-card-icon {
    width: 44px; height: 44px;
    background: var(--accent-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.service-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}

.service-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.65;
    flex: 1;
}

.service-card-arrow {
    font-size: 0.8rem;
    color: var(--accent);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
}

/* === SERVICE DETAIL SECTIONS === */
.service-detail {
    padding: var(--section-pad) 2rem;
}
.service-detail--light { background: var(--bg); }
.service-detail--alt   { background: var(--bg-alt); }

.service-detail-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Header row: large number + title block */
.service-header {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.service-num-large {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--border);
    letter-spacing: -0.04em;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    user-select: none;
    min-width: 7rem;
    text-align: right;
}
.service-header-text h2 {
    font-size: clamp(1.625rem, 2.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.75rem;
}
.service-tagline {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.6;
}

/* Capability description paragraph */
.service-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 900px;
    margin-bottom: 3rem;
}

/* Three-column pillars: Challenge / Approach / Outcomes */
.service-pillars {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.pillar {
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}
.pillar--challenge { border-top: 3px solid var(--text-muted); }
.pillar--approach  { border-top: 3px solid var(--blue); }
.pillar--outcomes  {
    border-top: 3px solid var(--accent);
    background: var(--accent-light);
    border-color: var(--accent-border);
}

.pillar h4 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}
.pillar--challenge h4 { color: var(--text-muted); }
.pillar--approach  h4 { color: var(--blue); }
.pillar--outcomes  h4 { color: var(--accent); }

.pillar p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.pillar--outcomes p { color: var(--text-primary); }

.pillar ul {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.pillar ul li {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
}
.pillar ul li::before {
    content: '\2192'; /* → */
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 0.05em;
}

/* === RESPONSIVE — SERVICES === */
@media (max-width: 1100px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .service-pillars  { grid-template-columns: 1fr; }
    .service-header   { flex-direction: column; gap: 1rem; }
    .service-num-large { font-size: 3rem; min-width: unset; text-align: left; }
}
@media (max-width: 640px) {
    .services-grid { grid-template-columns: 1fr; }
}
