.psg-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    align-items: stretch;
}

.psg-service-card {
    position: relative;
    min-width: 0;
    width: 100%;
    overflow: visible;
    border-radius: 0;
    background: transparent;
    isolation: isolate;
}

.psg-service-media {
    position: relative;
    width: 100%;
    aspect-ratio: 1.42 / 1;
    overflow: hidden;
    border-radius: inherit;
    background: #f2f2f2;
}

.psg-service-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center center;
    transform: none;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .35s ease;
}

/* Makes the whole tile clickable without nesting interactive elements. */
.psg-service-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    text-decoration: none !important;
}

.psg-service-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 7%, 42px);
    background: rgba(255, 255, 255, .86);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, visibility .28s ease;
}

.psg-service-title {
    margin: 0 0 18px;
    max-width: 88%;
    color: #555;
    font-family: inherit;
    font-size: clamp(18px, 2.1vw, 26px);
    font-weight: 500;
    line-height: 1.18;
    letter-spacing: -.02em;
    text-align: center;
    text-wrap: balance;
}

.psg-service-actions {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    pointer-events: auto;
}

.psg-service-action {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #555;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
    transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}

.psg-service-action svg {
    width: 19px;
    height: 19px;
    display: block;
    fill: currentColor;
}

.psg-service-action .psg-external-icon {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .22s cubic-bezier(.2,.8,.2,1);
}

.psg-service-action--link:hover .psg-external-icon,
.psg-service-action--link:focus-visible .psg-external-icon {
    transform: translate(2px, -2px);
}

@media (hover: hover) and (pointer: fine) {
    .psg-service-card:hover .psg-service-overlay,
    .psg-service-card:focus-within .psg-service-overlay {
        opacity: 1;
        visibility: visible;
    }

    .psg-service-card:hover .psg-service-image,
    .psg-service-card:focus-within .psg-service-image {
        transform: none;
    }
}

/* Mobile: artwork stays clean; use the original full-resolution image. */
.psg-service-mobile-caption {
    display: none;
}

/* Touch/mobile: keep the image clean until the user taps the tile. */
.psg-service-card.is-touch-open .psg-service-overlay {
    opacity: 1;
    visibility: visible;
}

.psg-service-action:hover,
.psg-service-action:focus-visible {
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, .10);
    outline: none;
}

.psg-service-stretched-link:focus-visible {
    outline: 2px solid #222;
    outline-offset: -4px;
}

/* Ensure action icons remain above the full-card link. */
.psg-service-action {
    position: relative;
    z-index: 6;
}

/* Smaller tiles keep exactly the same composition, just scaled down. */
@media (max-width: 1024px) {
    .psg-service-title {
        margin-bottom: 15px;
    }

    .psg-service-action {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }
}

@media (max-width: 767px) {
    .psg-service-card {
        border: 1px solid rgba(17, 24, 39, .08);
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
    }

    .psg-service-media {
        border-radius: 0;
    }

    .psg-service-overlay {
        padding: 20px;
    }

    .psg-service-title {
        max-width: 92%;
        margin-bottom: 14px;
    }

    .psg-service-mobile-caption { display: none !important; }

    .psg-service-mobile-caption span {
        min-width: 0;
        text-wrap: balance;
    }

    .psg-service-mobile-caption svg {
        width: 19px;
        height: 19px;
        flex: 0 0 19px;
        fill: none;
        stroke: currentColor;
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
}

@media (hover: none), (pointer: coarse) {
    .psg-service-overlay {
        opacity: 0;
        visibility: hidden;
        background: rgba(255, 255, 255, .88);
        transition: opacity .22s ease, visibility .22s ease;
    }

    .psg-service-card.is-touch-open .psg-service-overlay {
        opacity: 1;
        visibility: visible;
    }

    .psg-service-card.is-touch-open .psg-service-image {
        transform: none;
    }

    .psg-service-action:hover {
        transform: none;
        box-shadow: 0 1px 2px rgba(0, 0, 0, .02);
    }
}

@media (prefers-reduced-motion: reduce) {
    .psg-service-image,
    .psg-service-overlay,
    .psg-service-action {
        transition: none !important;
    }
}

/* v1.13: optional section heading + bilingual captions. */
.psg-section-heading {
    margin: 0 0 28px;
    text-align: center;
}

.psg-section-kicker {
    margin: 0 0 8px;
    font-family: "Century Gothic", "Avenir Next", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.psg-section-title {
    margin: 0;
    font-family: "Century Gothic", "Avenir Next", Arial, sans-serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 400;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.psg-service-title-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
}

.psg-service-title-line {
    display: block;
    font-family: "Century Gothic", "Avenir Next", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.2;
}

/* v1.15: one typography source for editor and front-end.
   No breakpoint is allowed to silently change the caption font size. */
.psg-service-title-lines,
.psg-service-title-line,
.psg-service-title--en,
.psg-service-title--el {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    font-style: inherit;
    text-decoration: inherit;
}
