/* Hover polish, product grid, gallery, light parallax — LBPS */

@media (prefers-reduced-motion: reduce) {
    .lbps-hover-lift,
    .gallery-thumb img,
    .js-parallax-slow,
    .nav-enhance .nav-link,
    .dropdown-item {
        transition: none !important;
        transform: none !important;
    }
}

/* --- Nav --- */
.nav-enhance .nav-link {
    transition: color 0.25s ease, transform 0.25s ease;
}
.nav-enhance .nav-link:hover {
    color: #0056b3 !important;
}
.nav-enhance .dropdown-item {
    transition: background-color 0.2s ease, padding-left 0.2s ease;
}
.nav-enhance .dropdown-item:hover {
    background-color: rgba(0, 86, 179, 0.08);
    padding-left: 1.25rem;
}

/* --- Hero parallax wrapper --- */
.parallax-hero-media {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(7, 10, 87, 0.12);
}
.parallax-hero-media img.js-parallax-slow {
    width: 100%;
    height: auto;
    display: block;
    will-change: transform;
    transition: transform 0.1s linear;
}

/* --- Process / CTA buttons --- */
.process-block {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    border-radius: 12px;
    padding: 16px 12px;
}
.process-block:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}
.process-block img {
    transition: transform 0.35s ease;
}
.process-block:hover img {
    transform: scale(1.05);
}

.project-discussion button,
.cta-section .btn {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.project-discussion button:hover,
.cta-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* --- Home / listing product cards --- */
.products-grid-home .product-grid-card {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(7, 10, 87, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    color: inherit;
    text-decoration: none !important;
}
.products-grid-home .product-grid-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 36px rgba(0, 86, 179, 0.18);
    border-color: rgba(255, 107, 0, 0.35);
}
.products-grid-home .product-grid-card .card-img-wrap {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fb;
    padding: 16px;
}
.products-grid-home .product-grid-card img {
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}
.products-grid-home .product-grid-card:hover img {
    transform: scale(1.06);
}
.products-grid-home .product-grid-card .card-body-home {
    padding: 1.25rem;
    text-align: left;
}
.products-grid-home .product-grid-card .card-title-home {
    font-size: 1.15rem;
    font-weight: 600;
    color: #070a57;
    margin-bottom: 0.5rem;
}
.products-grid-home .product-grid-card .card-text-home {
    font-size: 0.95rem;
    color: #64707d;
    margin-bottom: 0;
}
.products-grid-home .product-grid-card .view-link {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0056b3 !important;
}
.products-grid-home .product-grid-card:hover .view-link {
    color: #ff6b00 !important;
}

/* Equal-height columns */
.products-grid-home .align-stretch {
    display: flex;
}
.products-grid-home .align-stretch > [class*="col-"] {
    display: flex;
}
.products-grid-home .align-stretch .product-grid-card {
    width: 100%;
}

/* --- Gallery --- */
.gallery-thumb {
    display: block;
    margin-bottom: 1.25rem;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}
.gallery-thumb:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
}
.gallery-thumb img {
    transition: transform 0.45s ease;
}
.gallery-thumb:hover img {
    transform: scale(1.05);
}

.gallery-parallax {
    will-change: transform;
}

/* --- Partners --- */
.partner {
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.partner:hover {
    transform: scale(1.05);
    opacity: 0.95;
}

/* --- Infinite marquee (product gallery + partner logos) — motion via enhancements.js (CSS anim blocked on many setups) --- */
.lbps-marquee-fade {
    overflow: hidden;
    padding-block: 0.35rem;
    width: 100%;
}

.lbps-marquee-inner {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    max-width: none;
    will-change: transform;
}

.lbps-marquee--running .lbps-marquee-inner {
    backface-visibility: hidden;
}

.lbps-marquee-group {
    display: flex;
    flex-shrink: 0;
    align-items: stretch;
    gap: 1.25rem;
    padding-right: 1.25rem;
}

.lbps-gallery-marquee-item {
    flex: 0 0 auto;
    width: clamp(200px, 26vw, 280px);
}

.lbps-gallery-marquee-item .gallery-thumb {
    margin-bottom: 0;
    height: 100%;
}

.lbps-gallery-marquee-item .gallery-thumb img {
    width: 100%;
    height: 168px;
    object-fit: contain;
    display: block;
}

.lbps-partner-marquee-item {
    flex: 0 0 auto;
    width: clamp(160px, 22vw, 220px);
}

.lbps-partner-marquee-item .lbps-partner-card {
    height: 100%;
    min-height: 104px;
}

/* Reduced motion: default = horizontal scroll + hide duplicate strip.
   data-marquee-force="1" opts into continuous JS marquee even when OS requests reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .lbps-marquee-fade:not([data-marquee-force="1"]) {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .lbps-marquee-fade[data-marquee-force="1"] {
        overflow: hidden;
    }

    .lbps-marquee-fade:not([data-marquee-force="1"]) .lbps-gallery-marquee .lbps-marquee-inner,
    .lbps-marquee-fade:not([data-marquee-force="1"]) .lbps-partners-marquee .lbps-marquee-inner {
        animation: none !important;
        -webkit-animation: none !important;
    }

    .lbps-marquee-fade:not([data-marquee-force="1"]) .lbps-marquee-inner {
        flex-wrap: nowrap !important;
        justify-content: flex-start;
        width: max-content !important;
        max-width: none !important;
        margin-left: 0;
        margin-right: 0;
        transform: none !important;
        animation: none !important;
    }

    .lbps-marquee-fade:not([data-marquee-force="1"]) .lbps-marquee-inner .lbps-marquee-group[aria-hidden="true"] {
        display: none !important;
    }

    .lbps-marquee-fade:not([data-marquee-force="1"]) .lbps-marquee-group {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-right: 1.25rem;
        gap: 1.25rem;
        width: auto;
    }
}

/* --- Team (about) --- */
.team-member {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
    padding: 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
}
.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

/* --- Products listing page --- */
.page-products-hero {
    padding-top: 120px;
    padding-bottom: 40px;
}
