/* UNIQUE AUTOMATION | Bootstrap 5 custom theme */
:root {
  --ua-blue: #073b70;
  --ua-blue-dark: #05294d;
  --ua-orange: #f58220;
  --ua-text: #253447;
  --ua-muted: #667487;
  --ua-light: #f4f7fb;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ua-text); font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
a { text-decoration: none; }
.topbar { background: var(--ua-blue); color: #fff; font-size: 12px; padding: 7px 0; }
.topbar i { color: #ffad55; margin-right: 5px; }
.main-nav { padding: 8px 0; border-bottom: 1px solid #e8edf2; z-index: 1000; }
.site-logo { width: 250px; max-height: 78px; object-fit: contain; }
.navbar-nav .nav-link { color: #18283a; font-weight: 700; font-size: 14px; padding: 12px 13px !important; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--ua-orange); }
.nav-contact { border-left: 1px solid #dce3ea; padding-left: 18px; }
.nav-phone { display: flex; align-items: center; gap: 9px; color: var(--ua-blue-dark); }
.nav-phone:hover { color: var(--ua-orange); }
.nav-phone small, .nav-phone strong { display: block; line-height: 1.25; }
.nav-phone small { font-size: 11px; color: var(--ua-muted); }
.nav-phone strong { font-size: 14px; }
.phone-icon { display: grid; place-items: center; width: 38px; height: 38px; background: var(--ua-orange); color: #fff; border-radius: 50%; font-size: 20px; }
.btn { border-radius: 7px; font-weight: 700; }
.btn-orange { background: var(--ua-orange); border: 2px solid var(--ua-orange); color: #fff; }
.btn-orange:hover { background: #dc6d0c; border-color: #dc6d0c; color: #fff; }
.btn-whatsapp { background: #159b48; border: 2px solid #159b48; color: #fff; font-weight: 700; }
.btn-whatsapp:hover { background: #087d37; border-color: #087d37; color: #fff; }
.btn-blue { background: var(--ua-blue); color: #fff; padding: 11px 22px; }
.btn-blue:hover { background: var(--ua-blue-dark); color: #fff; }
.btn-outline-blue { border: 2px solid var(--ua-blue); color: var(--ua-blue); padding: 10px 24px; }
.btn-outline-blue:hover { background: var(--ua-blue); color: #fff; }

/* Hero uses a locally stored generated product-and-elevator image. */
.hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(4, 43, 80, .98) 0%, rgba(5, 53, 96, .94) 35%, rgba(5, 53, 96, .25) 68%, rgba(5, 53, 96, .05) 100%),
    url("../images/elevator-parts-banner.jpg") center right / cover no-repeat,
    var(--ua-blue);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; top: 0; right: 0; width: 10px; height: 100%; background: var(--ua-orange); }
.hero-content { position: relative; z-index: 1; max-width: 620px; padding: 68px 0; }
.eyebrow { color: var(--ua-orange); text-transform: uppercase; letter-spacing: 1.7px; font-size: 12px; font-weight: 800; margin-bottom: 10px; }
.hero h1 { font-size: clamp(38px, 5vw, 60px); font-weight: 900; line-height: 1.08; margin: 0 0 18px; }
.hero h1 span { color: #ff9a35; }
.hero-subtitle { color: #f0f5fb; font-size: 19px; line-height: 1.5; }
.hero-subtitle b { color: #ff9a35; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-note { font-size: 13px; color: #d9e6f2; margin: 16px 0 0; }
.trust-strip { background: #f1f5f9; border-bottom: 1px solid #e1e8ef; padding: 16px 0; }
.trust-item { display: flex; align-items: center; justify-content: center; gap: 9px; min-height: 35px; color: var(--ua-blue); font-size: 13px; }
.trust-item span { font-size: 23px; }
.trust-item strong { color: #233447; }
.section-pad { padding: 76px 0; }
.section-heading { max-width: 760px; margin: 0 auto 38px; }
.section-heading h2, .about-benefits h2 { color: var(--ua-blue); font-size: clamp(29px, 3vw, 39px); font-weight: 900; line-height: 1.2; }
.section-heading > p:last-child { color: var(--ua-muted); margin-bottom: 0; }
.products-section { background: #fff; }
.product-card { height: 100%; overflow: hidden; border: 1px solid #e4eaf0; border-radius: 12px; text-align: center; padding: 13px 13px 17px; background: #fff; box-shadow: 0 7px 22px rgba(13, 48, 82, .06); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: 0 13px 28px rgba(13, 48, 82, .13); }
.product-art { height: 128px; display: grid; place-items: center; border-radius: 8px; margin-bottom: 14px; background: linear-gradient(135deg, #eef4fa, #dce8f3); position: relative; overflow: hidden; }
.product-art::before, .product-art::after { content: ""; position: absolute; border: 1px solid rgba(7,59,112,.14); border-radius: 50%; width: 145px; height: 145px; }
.product-art::after { width: 105px; height: 105px; }
.product-art span { position: relative; z-index: 1; display: grid; place-items: center; width: 76px; height: 76px; border-radius: 18px; background: #fff; color: var(--ua-orange); box-shadow: 0 8px 18px rgba(7,59,112,.12); font-size: 43px; font-weight: 800; }
.art-controller span, .art-sensor span { color: var(--ua-blue); }
.art-door span, .art-buttons span { color: #e97716; }
.art-rope span { color: #657789; }
.art-roller span { color: #e6a000; }
.product-card h3 { color: var(--ua-blue); font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.product-card a { color: var(--ua-orange); font-size: 13px; font-weight: 800; }
.about-benefits { background: var(--ua-light); }
.about-benefits h2 span { color: var(--ua-orange); }
.about-benefits p:not(.eyebrow) { color: #586779; }
.company-facts { padding-left: 0; list-style: none; margin: 20px 0 25px; }
.company-facts li { padding: 5px 0 5px 24px; position: relative; }
.company-facts li::before { content: "✓"; color: var(--ua-orange); font-weight: 900; position: absolute; left: 0; }
.why-panel { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 8px 28px rgba(7,59,112,.07); border-top: 4px solid var(--ua-orange); }
.why-panel h2 { font-size: 28px; }
.benefit { height: 100%; min-height: 135px; background: #f5f8fc; border: 1px solid #e7edf4; border-radius: 11px; padding: 17px 12px; text-align: center; }
.benefit span, .benefit strong, .benefit small { display: block; }
.benefit span { font-size: 27px; margin-bottom: 5px; }
.benefit strong { color: var(--ua-blue); font-size: 14px; }
.benefit small { color: var(--ua-muted); font-size: 12px; margin-top: 3px; }
.cta-band { padding: 38px 0; background: var(--ua-blue); color: #fff; border-bottom: 5px solid var(--ua-orange); }
.cta-band .eyebrow { margin-bottom: 5px; }
.cta-band h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 900; margin-bottom: 4px; }
.cta-band p:not(.eyebrow) { color: #dce8f4; }
.site-footer { background: #071d33; color: #c8d5e2; padding: 55px 0 18px; }
.footer-logo { width: 240px; max-height: 78px; object-fit: contain; background: #fff; padding: 5px; border-radius: 5px; }
.footer-about { max-width: 350px; margin-top: 18px; font-size: 14px; }
.site-footer h3 { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 17px; position: relative; }
.site-footer h3::after { content: ""; display: block; width: 38px; height: 3px; background: var(--ua-orange); margin-top: 8px; }
.site-footer a { display: block; color: #d4e0eb; font-size: 14px; margin: 0 0 9px; overflow-wrap: anywhere; }
.site-footer a:hover { color: #ff9b3c; }
.site-footer p { font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 30px; padding-top: 17px; text-align: center; font-size: 12px; }
.floating-whatsapp { position: fixed; left: 18px; bottom: 250px; z-index: 999; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #159b48; color: #fff; font-weight: 900; box-shadow: 0 5px 18px rgba(0,0,0,.25); }
.floating-whatsapp:hover { background: #087d37; color: #fff; }

@media (max-width: 1199.98px) {
  .site-logo { width: 210px; }
  .nav-contact { border-left: 0; padding-left: 0; }
  .navbar-nav .nav-link { padding-left: 9px !important; padding-right: 9px !important; }
}
@media (max-width: 991.98px) {
  .topbar .container { justify-content: center !important; text-align: center; }
  .site-logo { width: 205px; max-height: 65px; }
  .nav-contact { padding: 14px 0 5px; }
  .hero { background-position: center right; }
  .hero-content { max-width: 570px; }
  .trust-item { justify-content: flex-start; }
}
@media (max-width: 575.98px) {
  .topbar { font-size: 11px; }
  .site-logo { width: 185px; }
  .hero { min-height: 0; background: linear-gradient(90deg, rgba(4,43,80,.96), rgba(4,43,80,.82)), url("../images/elevator-parts-banner.jpg") center / cover no-repeat; }
  .hero-content { padding: 58px 0; }
  .hero h1 { font-size: 39px; }
  .hero-subtitle { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .section-pad { padding: 55px 0; }
  .product-art { height: 105px; }
  .product-art span { width: 64px; height: 64px; font-size: 36px; }
  .product-card { padding: 9px 8px 13px; }
  .product-card h3 { font-size: 14px; }
  .why-panel { padding: 23px 17px; }
  .cta-band .btn { flex: 1 1 100%; }
}


/* Product image styling */

.product-art {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f7fb;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 12px;
    overflow: hidden;
}

.product-art img {
    width: 100%;
    height: 135px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-art img {
    transform: scale(1.08);
}

/* Mobile responsive */

@media (max-width: 575px) {
    .product-art {
        height: 110px;
    }

    .product-art img {
        height: 90px;
    }
}


/* Product gallery - equal size boxes, original photos */
.real-product-card {
    height: 100%;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e4eaf0;
    border-radius: 12px;
    box-shadow: 0 7px 22px rgba(13, 48, 82, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Fixed image box */
.real-product-photo {
    width: 100%;
    height: 230px !important;
    display: block;
    object-fit: contain !important;
    object-position: center;
    background: #f4f7fb;
    border-radius: 8px;
    padding: 8px;
}

/* WhatsApp button */
.real-product-action {
    margin-top: auto;
    padding-top: 12px;
    text-align: center;
}

/* Mobile */
@media (max-width: 575.98px) {
    .real-product-photo {
        height: 180px !important;
    }
}


.floating-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 58px;
    height: 58px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    text-decoration: none;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.25);
    animation: whatsappPulse 2s infinite;
}

.floating-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: scale(1.08);
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
    }
    70% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 576px) {
    .floating-whatsapp {
        width: 52px;
        height: 52px;
        font-size: 30px;
        right: 15px;
        bottom: 15px;
    }
}

/* Mobile Bottom Contact Buttons */
.mobile-contact-bar {
    display: none;
}

@media (max-width: 767.98px) {

    /* Hide desktop floating WhatsApp icon */
    .floating-whatsapp {
        display: none !important;
    }

    .mobile-contact-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
        gap: 10px;
        background: #ffffff;
        box-shadow: 0 -3px 15px rgba(0,0,0,0.12);
        z-index: 99999;
    }

    .mobile-contact-bar a {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 48px;
        border-radius: 8px;
        color: #ffffff;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
    }

    .mobile-call-btn {
        background: #1677D2;
    }

    .mobile-whatsapp-btn {
        background: #25D366;
    }

    .mobile-contact-bar i {
        font-size: 20px;
    }

    /* Prevent page content being hidden behind buttons */
    body {
        padding-bottom: 75px;
    }
}

.footer-icon {
    color: #ff8c32;
    font-size: 15px;
    margin-right: 8px;
    display: inline-block;
}

.footer a {
    display: block;
    margin-bottom: 10px;
}

.footer p {
    line-height: 1.7;
}

/* ==========================================================
   PAGE-SPECIFIC STYLES MOVED FROM HTML FILES
   Keep these after the shared styles above.
   ========================================================== */


/* ===================== INDEX PAGE ===================== */
.hero.hero-slider{position:relative;isolation:isolate;overflow:hidden;background:#073b68}
    .hero-slider .hero-slide-bg{position:absolute;inset:0;z-index:-2;background-size:cover;background-position:center;opacity:0;transition:opacity 1s ease}
    .hero-slider .hero-slide-bg.is-active{opacity:1}
    .hero-slider::before{content:"";position:absolute;inset:0;z-index:-1; background: linear-gradient(90deg, rgba(3, 29, 55, .88) 0%, rgb(3 37 68 / 55%) 48%, rgba(3, 37, 68, .28) 100%);}
    .hero-slider .hero-content{position:relative;z-index:1}
    .hero-slider .hero-slider-controls{display:flex;align-items:center;gap:10px;margin-top:22px}
    .hero-slider .hero-slider-arrow{width:38px;height:38px;border:1px solid rgba(255,255,255,.75);border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:20px;line-height:1;cursor:pointer}
    .hero-slider .hero-slider-dot{width:10px;height:10px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.55);cursor:pointer}
    .hero-slider .hero-slider-dot[aria-pressed="true"]{width:26px;border-radius:10px;background:#ff861c}
    @media(prefers-reduced-motion:reduce){.hero-slider .hero-slide-bg{transition:none}}


/* ===================== PRODUCTS PAGE ===================== */
.products-page-banner { background: linear-gradient(120deg, #073b70, #0b548e); color:#fff; padding:54px 0 50px; border-bottom:5px solid var(--ua-orange); text-align:center; }
    .products-page-banner h1 { font-size:clamp(30px,4vw,44px); font-weight:900; margin:0 0 10px; }
    .products-page-banner p { color:#e2edf7; margin:0; }
    .real-products { padding:66px 0 76px; background:#fff; }
    .real-product-card { height:100%; padding:12px; border:1px solid #e5ebf1; border-radius:13px; background:#fff; box-shadow:0 7px 22px rgba(13,48,82,.07); transition:transform .22s ease,box-shadow .22s ease; }
    .real-product-card:hover { transform:translateY(-4px); box-shadow:0 13px 28px rgba(13,48,82,.13); }
    .real-product-photo { width:100%; aspect-ratio: 4 / 3; display:block; object-fit:cover; border-radius:8px; background:#f1f5f9; }
    .real-product-action { display:flex; justify-content:center; padding-top:13px; }
    .real-product-action .btn { min-width:165px; }
    @media(max-width:575.98px) { .real-products{padding:45px 0 55px;} .real-product-card{padding:8px;} .real-product-action .btn{min-width:0;width:100%;font-size:13px;padding:9px 6px;} }


/* ===================== SERVICES PAGE ===================== */
.services-hero {
            background: linear-gradient(120deg, #082b50, #145b91);
            padding: 75px 0;
            color: #fff;
            text-align: center;
        }

        .services-hero h1 {
            font-weight: 700;
            font-size: 38px;
        }

        .services-hero p {
            max-width: 750px;
            margin: 15px auto 0;
            color: #e5edf5;
        }

        .service-card {
            height: 100%;
            padding: 30px 22px;
            background: #fff;
            border: 1px solid #e5eaf0;
            border-radius: 12px;
            text-align: center;
            box-shadow: 0 6px 20px rgba(0,0,0,0.05);
            transition: 0.3s;
        }

        .service-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.10);
        }

        .service-icon {
            width: 65px;
            height: 65px;
            margin: 0 auto 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff1e5;
            color: #f47b20;
            border-radius: 50%;
            font-size: 27px;
        }

        .service-card h3 {
            font-size: 19px;
            font-weight: 700;
            color: #123b60;
            margin-bottom: 12px;
        }

        .service-card p {
            color: #667085;
            font-size: 14px;
            margin-bottom: 0;
        }

        .supply-section {
            background: #f4f7fb;
            padding: 65px 0;
        }

        .supply-section h2 {
            color: #123b60;
            font-weight: 700;
        }

        .supply-list {
            list-style: none;
            padding: 0;
        }

        .supply-list li {
            margin-bottom: 14px;
            color: #344054;
        }

        .supply-list i {
            color: #f47b20;
            margin-right: 10px;
        }

        .service-cta {
            background: #0c3458;
            color: #fff;
            padding: 55px 20px;
            text-align: center;
        }

        .service-cta h2 {
            font-weight: 700;
        }

        .btn-orange {
            background: #f47b20;
            color: #fff;
            border: none;
            padding: 12px 25px;
            border-radius: 5px;
            font-weight: 600;
        }

        .btn-orange:hover {
            background: #db6713;
            color: #fff;
        }

        @media(max-width: 575px) {
            .services-hero h1 {
                font-size: 28px;
            }
        }


/* ===================== ABOUT PAGE ===================== */
.about-banner{background:linear-gradient(120deg,#073b70,#0b548e);color:#fff;padding:54px 0 50px;border-bottom:5px solid var(--ua-orange);text-align:center}
    .about-banner h1{font-size:clamp(30px,4vw,44px);font-weight:900;margin:0 0 10px}
    .about-banner p{color:#e2edf7;margin:0}
    .about-section{padding:68px 0;background:#fff}
    .about-section h2{color:#073b70;font-weight:800;margin-bottom:18px}
    .about-copy{color:#536273;line-height:1.85;font-size:16px}
    .about-highlight{height:100%;padding:25px;border:1px solid #e5ebf1;border-radius:14px;background:#fff;box-shadow:0 7px 22px rgba(13,48,82,.06)}
    .about-icon{width:52px;height:52px;border-radius:12px;background:#fff1e7;color:#ed7624;display:flex;align-items:center;justify-content:center;font-size:25px;margin-bottom:16px}
    .about-highlight h3{font-size:19px;font-weight:800;color:#073b70}
    .about-highlight p{color:#627184;margin:0;line-height:1.7}
    .about-details{background:#f4f7fb;padding:60px 0}
    .about-details-card{background:#fff;border:1px solid #e5ebf1;border-radius:14px;padding:28px;height:100%}
    .about-details-card h3{font-weight:800;color:#073b70;font-size:21px;margin-bottom:18px}
    .about-details-card p{color:#536273;line-height:1.8;margin-bottom:10px}
    .about-details-card i{color:#ed7624;margin-right:9px}
    .about-cta{background:#073b70;color:#fff;padding:42px 0;text-align:center}
    .about-cta h2{font-weight:800;font-size:clamp(23px,3vw,32px)}
    .about-cta p{color:#e2edf7;margin-bottom:20px}
    @media(max-width:575.98px){.about-section{padding:48px 0}.about-details{padding:45px 0}}


/* ===================== CONTACT PAGE ===================== */
.contact-banner{background:linear-gradient(120deg,#073b70,#0b548e);color:#fff;padding:54px 0 50px;border-bottom:5px solid var(--ua-orange);text-align:center}
    .contact-banner h1{font-size:clamp(30px,4vw,44px);font-weight:900;margin:0 0 10px}
    .contact-banner p{color:#e2edf7;margin:0}
    .contact-section{padding:62px 0 72px;background:#f7f9fc}
    .contact-intro{text-align:center;max-width:760px;margin:0 auto 34px}
    .contact-intro h2{font-weight:800;color:#123b61;margin-bottom:12px}
    .contact-card{height:100%;background:#fff;border:1px solid #e5ebf1;border-radius:14px;padding:25px 20px;text-align:center;box-shadow:0 7px 22px rgba(13,48,82,.06)}
    .contact-icon{width:58px;height:58px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eaf3fb;color:#0b548e;font-size:25px;margin-bottom:15px}
    .contact-card h3{font-size:19px;font-weight:800;color:#123b61;margin-bottom:9px}
    .contact-card p{color:#64748b;margin-bottom:14px;overflow-wrap:anywhere}
    .contact-card a:not(.btn){color:#0b548e;text-decoration:none;font-weight:700}
    .contact-address{background:#fff;border:1px solid #e5ebf1;border-radius:14px;padding:28px;margin-top:28px}
    .contact-address h2{font-size:23px;font-weight:800;color:#123b61}
    .contact-address p{color:#526477;margin-bottom:18px}
    .enquiry-form-wrap{background:#fff;border:1px solid #e5ebf1;border-radius:14px;padding:30px;margin-top:30px;box-shadow:0 7px 22px rgba(13,48,82,.06)}
    .enquiry-form-wrap h2{font-size:26px;font-weight:800;color:#123b61;margin-bottom:8px}
    .enquiry-form-wrap .form-label{font-weight:700;color:#28445f}
    .enquiry-form-wrap .form-control{min-height:48px;border-color:#dce5ee}
    .enquiry-form-wrap .form-control:focus{border-color:#0b548e;box-shadow:0 0 0 .2rem rgba(11,84,142,.12)}
    .enquiry-form-wrap textarea.form-control{min-height:115px}
    @media(max-width:575.98px){.enquiry-form-wrap{padding:22px 16px}}
    .contact-note{background:#eaf3fb;border-left:4px solid var(--ua-orange);padding:18px 20px;border-radius:8px;margin-top:24px;color:#28445f}
    @media(max-width:575.98px){.contact-section{padding:44px 0 52px}.contact-card{padding:22px 16px}}

    .real-product-photo {
      cursor: zoom-in;
    }
    #productImageModal .modal-content {
      background: rgba(0, 0, 0, .94);
      border: 0;
    }
    #productImageModal .modal-body {
      min-height: 200px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 1rem;
    }
    #productImageModalImage {
      display: block;
      max-width: 100%;
      max-height: 82vh;
      width: auto;
      height: auto;
      object-fit: contain;
    }
    #productImageModal .btn-close {
      position: absolute;
      top: .75rem;
      right: .75rem;
      z-index: 2;
      background-color: #fff;
      opacity: 1;
      padding: .65rem;
    }

/* ==========================================================
   PRODUCT IMAGE LIGHTBOX
   Used by products.html when a product thumbnail is clicked.
   ========================================================== */

.real-product-photo {
    cursor: zoom-in;
}

#productImageModal .modal-content {
    background: rgba(0, 0, 0, .94);
    border: 0;
}

#productImageModal .modal-body {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#productImageModalImage {
    display: block;
    max-width: 100%;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

#productImageModal .btn-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    background-color: #fff;
    opacity: 1;
    padding: .65rem;
}

/* ==========================================================
   MOBILE HOMEPAGE LAYOUT FIX
   Keeps the hero compact and prevents oversized mobile spacing.
   ========================================================== */
@media (max-width: 575.98px) {
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .topbar {
        padding: 8px 0;
        font-size: 11px;
        line-height: 1.45;
    }

    .topbar .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px !important;
    }

    .main-nav {
        padding: 10px 0;
    }

    .main-nav .container {
        min-height: 66px;
    }

    .site-logo {
        width: min(185px, 54vw);
        max-height: 58px;
    }

    .navbar-toggler {
        padding: 7px 10px;
        border-radius: 9px;
    }

    .hero.hero-slider {
        min-height: auto;
        height: auto;
        align-items: center;
    }

    .hero-slider .hero-slide-bg {
        background-position: center center;
        background-size: cover;
    }

    .hero-slider::before {
        background: linear-gradient(
            90deg,
            rgba(3, 29, 55, .91) 0%,
            rgba(3, 37, 68, .78) 100%
        );
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 38px 0 32px;
    }

    .hero .eyebrow {
        font-size: 10px;
        letter-spacing: 1.2px;
        line-height: 1.5;
        margin-bottom: 9px;
    }

    .hero h1 {
        font-size: clamp(32px, 8.5vw, 37px);
        line-height: 1.08;
        margin: 0 0 14px;
    }

    .hero-subtitle {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 56px;
        padding: 12px 16px;
        font-size: 17px;
        line-height: 1.3;
    }

    .hero-note {
        font-size: 12px;
        line-height: 1.5;
        margin: 13px 0 0;
    }

    .hero-slider .hero-slider-controls {
        gap: 10px;
        margin-top: 17px;
    }

    .hero-slider .hero-slider-arrow {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .hero-slider .hero-slider-dot {
        width: 9px;
        height: 9px;
    }

    .hero-slider .hero-slider-dot[aria-pressed="true"] {
        width: 24px;
    }

    .trust-strip {
        padding: 12px 0;
    }

    .trust-item {
        min-height: 32px;
        gap: 7px;
        font-size: 12px;
    }

    .trust-item span {
        font-size: 19px;
    }

    /* Keep fixed contact buttons clear of the phone's safe area. */
    .mobile-contact-bar {
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        gap: 8px;
    }

    .mobile-contact-bar a {
        min-height: 48px;
        font-size: 14px;
    }

    body {
        padding-bottom: calc(66px + env(safe-area-inset-bottom));
    }

    .floating-whatsapp {
        display: none !important;
    }
}

/* Slightly roomier layout for small tablets. */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
        padding: 48px 0;
    }

    .hero h1 {
        font-size: 42px;
    }
}

/* Respect visitors who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .hero-slider .hero-slide-bg {
        transition: none !important;
    }
}

/* ==========================================================
   MOBILE STICKY NAVBAR FIX
   Keeps the main navigation pinned while the page scrolls.
   ========================================================== */
@media (max-width: 991.98px) {
    .main-nav.sticky-top {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1030 !important;
        width: 100%;
        background-color: #fff !important;
    }

    /* Ensure the sticky navbar is not clipped by surrounding elements. */
    body,
    .main-nav,
    .main-nav .container {
        overflow: visible;
    }
}

/* ==========================================================
   FINAL MOBILE NAVIGATION + FIXED CONTACT BAR
   Applied consistently across all five website pages.
   ========================================================== */
@media (max-width: 991.98px) {
    /* Use clip, not hidden: hidden can create a scroll container
       and prevent position: sticky from working on some browsers. */
    html, body {
        overflow-x: clip !important;
        overflow-y: visible;
    }

    .main-nav,
    nav.main-nav.sticky-top {
        position: -webkit-sticky !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 1030 !important;
        width: 100%;
        align-self: flex-start;
        background: #fff !important;
        box-shadow: 0 3px 12px rgba(5, 35, 65, .08);
    }

    /* Keep the expanded Bootstrap menu above page content. */
    .main-nav .navbar-collapse {
        background: #fff;
    }
}

@media (max-width: 767.98px) {
    /* Two equal, thumb-friendly contact actions fixed to screen bottom. */
    .mobile-contact-bar {
        display: flex !important;
        position: fixed !important;
        left: 0;
        right: 0;
        bottom: 0 !important;
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        gap: 9px;
        background: #fff;
        box-shadow: 0 -3px 16px rgba(0, 0, 0, .15);
        z-index: 1040;
    }

    .mobile-contact-bar a {
        flex: 1 1 0;
        min-width: 0;
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        margin: 0;
        padding: 10px 8px;
        border: 0;
        border-radius: 9px;
        color: #fff !important;
        font-size: 15px;
        font-weight: 700;
        line-height: 1.2;
        text-align: center;
        white-space: nowrap;
        text-decoration: none;
    }

    .mobile-contact-bar .mobile-call-btn {
        background: #1677d2;
    }

    .mobile-contact-bar .mobile-whatsapp-btn {
        background: #20b95a;
    }

    .mobile-contact-bar a:active {
        filter: brightness(.92);
    }

    .mobile-contact-bar i {
        display: inline-block;
        font-size: 21px;
        line-height: 1;
    }

    /* Reserve enough space so the fixed bar never covers page content. */
    body {
        padding-bottom: calc(78px + env(safe-area-inset-bottom)) !important;
    }

    .floating-whatsapp {
        display: none !important;
    }
}

@media (max-width: 360px) {
    .mobile-contact-bar {
        gap: 7px;
        padding-left: 7px;
        padding-right: 7px;
    }

    .mobile-contact-bar a {
        min-height: 49px;
        gap: 5px;
        font-size: 13px;
    }

    .mobile-contact-bar i {
        font-size: 18px;
    }
}

