/* Services Tiles (flush 3-column image tiles, 3D hover lift) */
.services-tiles-section {
    background: #fff;
    padding: 60px 0 0 0;
}
.services-tiles-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0 0 8px 0;
}
.services-tiles-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.4;
}
.services-tiles-grid-wrap {
    width: 100%;
    overflow: visible;
    padding-bottom: 40px;
}
.services-tiles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.services-tiles-tile-perspective {
    min-width: 0;
    perspective: 1100px;
}
.services-tiles-tile {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, 0) rotateX(0) rotateY(0);
    transition:
        transform 0.42s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    border-radius: 0;
}
.services-tiles-tile:hover {
    transform: translate3d(0, -14px, 24px) rotateX(4deg) rotateY(-7deg) scale(1.02);
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.22);
    z-index: 2;
}
.services-tiles-tile-perspective:nth-child(3n + 2) .services-tiles-tile:hover {
    transform: translate3d(0, -14px, 24px) rotateX(4deg) rotateY(7deg) scale(1.02);
}
.services-tiles-tile-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #d8d8d8;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.services-tiles-tile-bg.services-tiles-tile-bg-has-img {
    background-color: #c5c5c5;
}
.services-tiles-tile:hover .services-tiles-tile-bg {
    transform: scale(1.05);
}
.services-tiles-tile-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.35) 38%,
        rgba(0, 0, 0, 0.08) 65%,
        transparent 100%
    );
    pointer-events: none;
}
.services-tiles-tile-title-row {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding: 0 16px 18%;
    pointer-events: none;
}
.services-tiles-tile-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    max-width: 100%;
}
@media (max-width: 991px) {
    .services-tiles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .services-tiles-tile-perspective:nth-child(3n + 2) .services-tiles-tile:hover {
        transform: translate3d(0, -14px, 24px) rotateX(4deg) rotateY(-7deg) scale(1.02);
    }
    .services-tiles-tile-perspective:nth-child(even) .services-tiles-tile:hover {
        transform: translate3d(0, -14px, 24px) rotateX(4deg) rotateY(7deg) scale(1.02);
    }
}
@media (max-width: 767px) {
    .services-tiles-section {
        padding: 40px 0 0 0;
    }
    .services-tiles-title {
        font-size: 1.65rem;
    }
    .services-tiles-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    .services-tiles-grid {
        grid-template-columns: 1fr;
    }
    .services-tiles-grid-wrap {
        padding-bottom: 32px;
    }
    .services-tiles-tile:hover,
    .services-tiles-tile-perspective:nth-child(3n + 2) .services-tiles-tile:hover,
    .services-tiles-tile-perspective:nth-child(even) .services-tiles-tile:hover {
        transform: translate3d(0, -10px, 16px) rotateX(3deg) scale(1.01);
    }
    .services-tiles-tile-title {
        font-size: 1.1rem;
    }
    .services-tiles-tile-title-row {
        padding: 0 14px 16%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .services-tiles-tile,
    .services-tiles-tile-bg {
        transition: none;
    }
    .services-tiles-tile:hover,
    .services-tiles-tile-perspective:nth-child(3n + 2) .services-tiles-tile:hover,
    .services-tiles-tile-perspective:nth-child(even) .services-tiles-tile:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
    }
    .services-tiles-tile:hover .services-tiles-tile-bg {
        transform: none;
    }
}
