/* 3D section reveal + smooth scrolling (site-wide) */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
}

body {
    overflow-x: hidden;
}

section.section-3d-reveal {
    opacity: 0;
    transform: perspective(1100px) translate3d(-52px, 32px, -100px) rotateY(10deg) scale(0.97);
    transform-origin: left center;
    transition:
        opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

section.section-3d-reveal.section-3d-from-right {
    transform: perspective(1100px) translate3d(52px, 32px, -100px) rotateY(-10deg) scale(0.97);
    transform-origin: right center;
}

section.section-3d-reveal.is-visible {
    opacity: 1;
    transform: perspective(1100px) translate3d(0, 0, 0) rotateY(0deg) scale(1);
}

@media (max-width: 991px) {
    section.section-3d-reveal {
        transform: perspective(900px) translate3d(-28px, 24px, -60px) rotateY(6deg) scale(0.98);
    }

    section.section-3d-reveal.section-3d-from-right {
        transform: perspective(900px) translate3d(28px, 24px, -60px) rotateY(-6deg) scale(0.98);
    }

    section.section-3d-reveal.is-visible {
        transform: perspective(900px) translate3d(0, 0, 0) rotateY(0deg) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-padding-top: 88px;
    }

    section.section-3d-reveal,
    section.section-3d-reveal.section-3d-from-right {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        will-change: auto;
    }
}

/* Valued Services grid (“More than 30+ years…”) — slightly shorter cards, tighter rows */
.home-services .box-wrap {
    padding: 26px 24px 22px;
}

.home-services .box-wrap .icon i {
    font-size: 26px;
    line-height: 1;
}

.home-services .box-wrap h4 {
    margin-bottom: 0;
}

.home-services .box-wrap h4 a {
    margin-top: 12px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.home-services .box-wrap a.read {
    margin-top: 8px;
}

@media (max-width: 991.98px) {
    .home-services .row > [class*="col-"].mt-4 {
        margin-top: 0.65rem !important;
    }
}
