/* ── Service Pages: Case Study Cards ─────────────────────────────────── */

.svc-cases {
    padding: 64px 0;
    background: #ffffff;
    border-top: 1px solid #f0f0f0;
}

.svc-cases__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 32px;
}

.svc-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.svc-cases__grid--2col {
    grid-template-columns: repeat(2, 1fr);
    max-width: 680px;
}

.svc-case {
    display: flex;
    flex-direction: column;
    padding: 24px;
    background: #f8f9fb;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.18s, border-color 0.18s;
}

.svc-case:hover {
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    border-color: #e5e7eb;
    color: inherit;
    text-decoration: none;
}

.svc-case__logo {
    height: 28px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
}

.svc-case__logo img {
    max-height: 28px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
}

.svc-case__logo-text {
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

.svc-case__name {
    font-size: 14px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.35;
}

.svc-case__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
    flex: 1;
}

.svc-case__cta {
    margin-top: 16px;
    font-size: 12px;
    font-weight: 600;
    color: #005D88;
}

.svc-case__cta::after {
    content: ' →';
}

/* ── Homepage: Flagship Cases ─────────────────────────────────────────── */

.flagship-cases {
    padding: 72px 0;
}

.flagship-cases__header {
    margin-bottom: 40px;
}

.flagship-cases__label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9ca3af;
    margin-bottom: 10px;
}

.flagship-cases__title {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a2e;
    margin: 0;
    line-height: 1.2;
}

.flagship-cases__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.flagship-case {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top-width: 3px;
    border-radius: 12px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}

.flagship-case--gran        { border-top-color: #6055E7; }
.flagship-case--brainify    { border-top-color: #1a6b5a; }
.flagship-case--betterstore { border-top-color: #005D88; }

.flagship-case:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.09);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.flagship-case__logo {
    height: 30px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.flagship-case__logo img {
    max-height: 30px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
}

.flagship-case__domain {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.flagship-case--gran .flagship-case__domain {
    background: rgba(96, 85, 231, 0.1);
    color: #6055E7;
}

.flagship-case--brainify .flagship-case__domain {
    background: rgba(26, 107, 90, 0.1);
    color: #1a6b5a;
}

.flagship-case--betterstore .flagship-case__domain {
    background: rgba(0, 93, 136, 0.1);
    color: #005D88;
}

.flagship-case__name {
    font-size: 18px;
    font-weight: 800;
    color: #1a1a2e;
    margin-bottom: 8px;
    line-height: 1.25;
}

.flagship-case__desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.65;
    flex: 1;
}

.flagship-case__metric {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    font-size: 13px;
    font-weight: 700;
}

.flagship-case--gran .flagship-case__metric        { color: #6055E7; }
.flagship-case--brainify .flagship-case__metric    { color: #1a6b5a; }
.flagship-case--betterstore .flagship-case__metric { color: #005D88; }

.flagship-case__cta {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}

.flagship-case__cta::after {
    content: ' →';
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .svc-cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flagship-cases__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .flagship-cases__grid .flagship-case:last-child {
        grid-column: 1 / -1;
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .svc-cases__grid,
    .svc-cases__grid--2col,
    .flagship-cases__grid {
        grid-template-columns: 1fr;
    }

    .flagship-cases__grid .flagship-case:last-child {
        grid-column: auto;
        max-width: none;
    }

    .svc-cases {
        padding: 48px 0;
    }

    .flagship-cases {
        padding: 48px 0;
    }
}
