/* ── Global border radius (slightly more modern than Bootstrap default) ── */
:root {
    --bs-border-radius:      .5rem;
    --bs-border-radius-sm:   .375rem;
    --bs-border-radius-lg:   .75rem;
    --bs-border-radius-xl:   1rem;
    --bs-border-radius-xxl:  2rem;
    --bs-border-radius-pill: 50rem;
}

/* ── Layout ─────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

/* ── Product card image container ───────────────────── */
.product-card-img {
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: .5rem .5rem 0 0;
}
.product-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ── Description line-clamp ─────────────────────────── */
.card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Product card hover ─────────────────────────────── */
.product-card {
    transition: box-shadow .15s ease, transform .15s ease;
}
.product-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.12) !important;
    transform: translateY(-2px);
}

/* ── Tag filter sidebar buttons ─────────────────────── */
.tag-filter-btn {
    text-align: left;
    overflow: hidden;
}
.tag-filter-btn .tag-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Page hero section ───────────────────────────────── */
.page-hero {
    padding: 2.5rem 1.5rem 2rem;
    background: #f8f9fa;
    border-radius: .5rem;
    margin-bottom: 2.5rem;
}

/* ── About stat card accent ──────────────────────────── */
.stat-card {
    border-top: 3px solid #0d6efd !important;
}

/* ── Footer links ────────────────────────────────────── */
.footer-link {
    color: var(--bs-secondary-color);
    text-decoration: none;
    font-size: .875rem;
    transition: color .15s ease;
}
.footer-link:hover {
    color: #0d6efd;
}

/* ── Floating enquiry basket button ─────────────────── */
.enquiry-float {
    position: fixed;
    bottom: 5.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 56px;
    height: 56px;
    background: #0d6efd;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    text-decoration: none;
    color: #fff;
    isolation: isolate;
}
.enquiry-float:hover {
    background: #0b5ed7;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
    color: #fff;
}
.enquiry-float-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: .68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ── Home feature cards ───────────────────────────────── */
.home-feature-card {
    transition: box-shadow .15s ease, transform .15s ease;
}
.home-feature-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.13) !important;
    transform: translateY(-3px);
}

/* ── Service section title accent ────────────────────── */
.service-section-title {
    padding-left: .875rem;
    border-left: 4px solid #0d6efd;
}

/* ── Scroll to top button ────────────────────────────── */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1049;
    width: 44px;
    height: 44px;
    background: rgba(33, 37, 41, 0.65);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    transition: background .15s ease, transform .15s ease;
    backdrop-filter: blur(4px);
}
.scroll-top:hover {
    background: rgba(33, 37, 41, 0.9);
    transform: translateY(-2px);
}

/* ── Nav link hover underline (desktop only) ─────────── */
@media (min-width: 992px) {
    .navbar .nav-link {
        position: relative;
    }
    .navbar .nav-link::after {
        content: '';
        position: absolute;
        bottom: 4px;
        left: 1rem;
        right: 1rem;
        height: 2px;
        background: #0d6efd;
        border-radius: 1px;
        transform: scaleX(0);
        transform-origin: center;
        transition: transform .2s ease;
    }
    .navbar .nav-link:hover::after,
    .navbar .nav-link.active::after {
        transform: scaleX(1);
    }
}

/* ── Carousel ────────────────────────────────────────── */
#homeCarousel {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}
.carousel-control-prev,
.carousel-control-next {
    width: 48px;
}

/* ── Landing page ────────────────────────────────────── */
.lp-carousel-img {
    width: 100%;
    max-height: 480px;
    height: auto;
    display: block;
    object-fit: contain;
    background: #f8f9fa;
}
.lp-cta-dark { background: #0d1b2e; }
.lp-highlight-num {
    font-size: 1.35rem;
    min-width: 64px;
    text-align: center;
    flex-shrink: 0;
}
@media (min-width: 992px) {
    .py-lg-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
}
.lp-hero {
    min-height: 85vh;
    position: relative;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 767.98px) {
    .lp-hero { min-height: 65vh; }
}
.lp-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(10, 22, 40, 0.60);
}
.lp-hero-content {
    position: relative;
    z-index: 2;
}
.lp-eyebrow {
    display: block;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--bs-secondary-color);
}

.py-6 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}
@media (max-width: 767.98px) {
    .py-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}

.lp-service-card {
    transition: box-shadow .15s ease, transform .15s ease;
}
.lp-service-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.13) !important;
    transform: translateY(-3px);
}
.lp-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: .5rem .5rem 0 0;
}

/* scroll reveal */
.lp-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s ease, transform .5s ease;
}
.lp-reveal-d1 { transition-delay: .1s; }
.lp-reveal-d2 { transition-delay: .2s; }
.lp-reveal-d3 { transition-delay: .3s; }
.lp-visible   { opacity: 1 !important; transform: none !important; }

/* hero entrance animation */
@keyframes lp-hero-in {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}
.lp-hero-enter    { animation: lp-hero-in .65s ease both; }
.lp-hero-enter-d1 { animation-delay: .15s; }
.lp-hero-enter-d2 { animation-delay: .3s; }
.lp-hero-enter-d3 { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
    .lp-reveal, .lp-visible { opacity: 1 !important; transform: none !important; transition: none !important; }
    .lp-hero-enter { animation: none !important; }
}
@media (scripting: none) {
    .lp-reveal { opacity: 1; transform: none; }
}

/* ── Enquiry basket product link ─────────────────────── */
.lp-basket-link:hover { text-decoration: underline !important; }

/* ── Services numbered sections ─────────────────────── */
.lp-service-block { padding: 0; }
.lp-service-num {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: #adb5bd;
    letter-spacing: -.03em;
    flex-shrink: 0;
    user-select: none;
}
.lp-service-divider {
    margin: 3rem 0;
    border-color: #dee2e6;
}

/* ── Featured products slider ────────────────────────── */
.lp-product-slider {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .75rem;
    cursor: grab;
    user-select: none;
}
.lp-product-slider::after {
    content: '';
    flex: 0 0 .75rem; /* trailing spacer so last card scrolls fully into view */
}
.lp-product-slider::-webkit-scrollbar { height: 4px; }
.lp-product-slider::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 2px; }
.lp-slider-item {
    flex: 0 0 82%;
}
@media (min-width: 576px) { .lp-slider-item { flex: 0 0 47%; } }
@media (min-width: 992px) { .lp-slider-item { flex: 0 0 31%; } }

/* ── Floating WhatsApp button ────────────────────────── */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1050;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,.25);
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,.3);
}
