/* Shared service cards — same rules as /services (main.css) */

.related-services-listing {
    padding: 2rem 0 4rem;
    background: #fff;
}

.related-services-listing > .container > h2 {
    margin: 0 0 0.75rem;
    padding: 0;
    font-size: clamp(1.4rem, 2.6vw, 2rem);
    font-weight: 700;
    color: #000;
}

.related-services-listing > .container > h2::after {
    display: none;
    content: none;
}

.related-services-listing .services-page-lead {
    max-width: 42rem;
    margin: 0 0 1.5rem;
    color: #555;
    font-size: 1.1rem;
}

.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .svc-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .svc-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.svc-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.svc-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.svc-card-link:hover .svc-card {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.svc-card__media {
    aspect-ratio: 16 / 10;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f5f7 0%, #e8e8ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.svc-card__media--marketing { background: linear-gradient(135deg, #e8f4fd 0%, #d4e9fc 100%); }
.svc-card__media--design { background: linear-gradient(135deg, #fce8f3 0%, #f5d0e8 100%); }
.svc-card__media--development { background: linear-gradient(135deg, #e8fdf0 0%, #c9f3e4 100%); }
.svc-card__media--media { background: linear-gradient(135deg, #fff3e8 0%, #ffd6c9 100%); }

.svc-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.svc-card__placeholder {
    font-size: 1.9rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.2);
}

.svc-card__body {
    padding: 1.25rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.svc-card__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
}

.svc-card__title {
    margin: 0 0 0.65rem;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1d1d1f;
}

.svc-card__summary {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #666;
}

/* Stop service-detail typography from restyling listing cards */
.service-details .svc-card h2.svc-card__title {
    margin: 0 0 0.65rem;
    padding: 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.35;
    color: #1d1d1f;
    position: static;
}

.service-details .svc-card h2.svc-card__title::after {
    display: none;
    content: none;
}

.service-details .svc-card p.svc-card__eyebrow,
.service-details .svc-card p.svc-card__summary {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    color: #666;
    font-weight: 400;
}

.service-details .svc-card p.svc-card__eyebrow {
    margin: 0 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary-color);
    line-height: 1.35;
}
