/* ───────── Service cards ───────── */

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

.services.services-6 {
    grid-template-columns: repeat(3, 1fr);
}

.service-card {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    padding: 32px;
    overflow: hidden;
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
    isolation: isolate;
    color: #fff;
    text-decoration: none;
    display: block;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 0%), rgba(180, 124, 253, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 124, 253, 0.35);
    color: #fff;
}

.service-card:hover::before {
    opacity: 1;
}

/* Linked cards (CatalogCards): "Learn more" sits on the card's bottom edge,
   so a row of cards lines up whatever the summary length */
a.service-card {
    display: flex;
    flex-direction: column;
}

a.service-card .service-arrow {
    align-self: flex-start;
    margin-top: auto;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(180, 124, 253, 0.18), rgba(255, 127, 194, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border: 1px solid rgba(180, 124, 253, 0.25);
}

.service-icon svg {
    color: var(--accent-purple);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.35rem;
    letter-spacing: -0.015em;
    margin: 0 0 12px;
    color: #fff;
}

.service-card p {
    color: var(--text-secondary);
    margin: 0 0 20px;
    line-height: 1.65;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.service-list li svg {
    color: var(--accent-purple);
    flex: 0 0 auto;
}

.service-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 14px;
    color: #fff;
}

.service-arrow svg {
    transition: transform 0.2s;
}

.service-card:hover .service-arrow svg {
    transform: translateX(4px);
}

/* One catalogue page: a full-width "next step" row (CatalogCards) */
.catalog-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    max-width: 72ch;
    padding: 20px 24px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-primary);
    text-decoration: none;
    transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1), border-color 150ms cubic-bezier(0.2, 0, 0, 1);
}

.catalog-next-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.catalog-next-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.3;
}

.catalog-next-summary {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.catalog-next .service-arrow {
    flex: none;
}

@media (hover: hover) {
    .catalog-next:hover {
        background: var(--surface-hover);
        border-color: var(--border-strong);
    }

    .catalog-next:hover .service-arrow svg {
        transform: translateX(4px);
    }
}

@media (max-width: 600px) {
    .catalog-next {
        flex-direction: column;
        align-items: flex-start;
        padding: 18px 20px;
    }
}

@media (max-width: 980px) {
    .services,
    .services.services-6 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .service-card {
        padding: 28px;
    }
}

@media (min-width: 740px) and (max-width: 980px) {
    .services.services-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
