/********** Naki Trading PLC — Template CSS **********/

/* =============================================
   CSS VARIABLES & BOOTSTRAP OVERRIDES
   Primary = Red (#CC0000)
   Dark    = Near-Black (#111111)
   Light   = Off-White (#F5F5F5)
   ============================================= */
:root {
    --primary:   #CC0000;
    --primary-dark: #A00000;
    --secondary: #e60000;
    --light:     #F5F5F5;
    --dark:      #111111;
    --dark-2:    #0d0d0d;
    --gray:      #6c757d;
    --border:    rgba(255,255,255,0.08);
}

/* Bootstrap 5 primary-color overrides */
.text-primary  { color: var(--primary) !important; }
.bg-primary    { background-color: var(--primary) !important; }
.border-primary{ border-color: var(--primary) !important; }

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    box-shadow: 0 4px 20px rgba(204,0,0,0.35) !important;
}
.btn-outline-primary {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
    background-color: var(--primary) !important;
    color: #fff !important;
}
.btn-outline-light:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* =============================================
   GLOBAL
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Rubik', sans-serif;
    color: #333;
    background: #fff;
}

h1, h2, .fw-bold { font-weight: 800 !important; }
h3, h4, .fw-semi-bold { font-weight: 700 !important; }
h5, h6, .fw-medium { font-weight: 600 !important; }


/* =============================================
   SPINNER
   ============================================= */
.spinner {
    width: 40px;
    height: 40px;
    background: var(--primary);
    margin: 100px auto;
    -webkit-animation: sk-rotateplane 1.2s infinite ease-in-out;
    animation: sk-rotateplane 1.2s infinite ease-in-out;
}

@-webkit-keyframes sk-rotateplane {
    0%   { -webkit-transform: perspective(120px) }
    50%  { -webkit-transform: perspective(120px) rotateY(180deg) }
    100% { -webkit-transform: perspective(120px) rotateY(180deg) rotateX(180deg) }
}
@keyframes sk-rotateplane {
    0%   { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
    50%  { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
    100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}
#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/* =============================================
   BUTTONS
   ============================================= */
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
    letter-spacing: 0.3px;
}

.btn-primary,
.btn-secondary {
    color: #fff;
    box-shadow: inset 0 0 0 50px transparent;
}

.btn-square    { width: 36px; height: 36px; }
.btn-sm-square { width: 30px; height: 30px; }
.btn-lg-square { width: 48px; height: 48px; }

.btn-square, .btn-sm-square, .btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.btn-dark:hover {
    background-color: #2a2a2a !important;
    border-color: #2a2a2a !important;
}


/* =============================================
   NAVBAR
   ============================================= */
.navbar {
    background: var(--dark-2) !important;
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Nunito', sans-serif;
    position: relative;
    margin-left: 20px;
    padding: 32px 0;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    outline: none;
    transition: .4s;
    letter-spacing: 0.4px;
}

.sticky-top.navbar-dark .navbar-nav .nav-link {
    padding: 20px 0;
    color: #FFFFFF;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-dark .navbar-toggler {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* Logo image in navbar */
.navbar-logo {
    height: 72px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.navbar-logo-text {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    font-family: 'Nunito', sans-serif;
}
.navbar-logo-text span {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .sticky-top.navbar-dark {
        position: relative;
        background: var(--dark-2) !important;
    }
    .navbar-dark .navbar-nav .nav-link,
    .navbar-dark .navbar-nav .nav-link.show,
    .sticky-top.navbar-dark .navbar-nav .nav-link {
        padding: 10px 0;
        color: #FFFFFF;
    }
    .navbar-dark .navbar-nav .nav-link:hover,
    .navbar-dark .navbar-nav .nav-link.active {
        color: var(--primary);
    }
    .navbar-logo { height: 56px; }
}

@media (min-width: 992px) {
    .navbar-dark {
        position: absolute;
        width: 100%;
        top: 0;
        left: 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        z-index: 999;
    }
    .sticky-top.navbar-dark {
        position: fixed;
        background: var(--dark-2) !important;
        box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
    }
    .navbar-dark .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 2px;
        bottom: -1px;
        left: 50%;
        background: var(--primary);
        transition: .4s;
    }
    .navbar-dark .navbar-nav .nav-link:hover::before,
    .navbar-dark .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }
    .navbar-dark .navbar-nav .nav-link.nav-contact::before { display: none; }
}

/* Dropdown */
.dropdown-menu {
    background: var(--dark);
    border: 1px solid rgba(204,0,0,0.3);
    border-radius: 0;
}
.dropdown-item {
    color: #ccc;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 20px;
    transition: .3s;
}
.dropdown-item:hover {
    background: var(--primary);
    color: #fff;
}


/* =============================================
   HERO CAROUSEL
   ============================================= */
.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 1;
}

/* Push dots up so they don't collide with the overlapping stats bar */
.carousel-indicators {
    bottom: 90px;
    z-index: 2;
}

.carousel-caption .pre-heading {
    font-family: 'Nunito', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--primary);
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--primary);
    margin-bottom: 20px;
}

@media (max-width: 576px) {
    .carousel-caption h5 { font-size: 11px; font-weight: 600 !important; }
    .carousel-caption h1 { font-size: 26px; font-weight: 700 !important; }
    .carousel-indicators { bottom: 70px; }
}

.carousel-control-prev,
.carousel-control-next { width: 10%; }

.carousel-control-prev-icon,
.carousel-control-next-icon { width: 3rem; height: 3rem; }

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 0;
    background-color: rgba(255,255,255,0.5);
    border: none;
    transition: .4s;
}
.carousel-indicators .active {
    background-color: var(--primary);
    width: 30px;
}


/* =============================================
   SECTION TITLE
   ============================================= */
.section-title::before {
    position: absolute;
    content: "";
    width: 150px;
    height: 5px;
    left: 0;
    bottom: 0;
    background: var(--primary);
    border-radius: 2px;
}

.section-title.text-center::before {
    left: 50%;
    margin-left: -75px;
}

.section-title.section-title-sm::before {
    width: 90px;
    height: 3px;
}

.section-title::after {
    position: absolute;
    content: "";
    width: 6px;
    height: 5px;
    bottom: 0px;
    background: #FFFFFF;
    -webkit-animation: section-title-run 5s infinite linear;
    animation: section-title-run 5s infinite linear;
}

.section-title.section-title-sm::after {
    width: 4px;
    height: 3px;
}

.section-title.text-center::after {
    -webkit-animation: section-title-run-center 5s infinite linear;
    animation: section-title-run-center 5s infinite linear;
}

.section-title.section-title-sm::after {
    -webkit-animation: section-title-run-sm 5s infinite linear;
    animation: section-title-run-sm 5s infinite linear;
}

@-webkit-keyframes section-title-run {
    0% { left: 0; } 50% { left: 145px; } 100% { left: 0; }
}
@-webkit-keyframes section-title-run-center {
    0%   { left: 50%; margin-left: -75px; }
    50%  { left: 50%; margin-left: 45px; }
    100% { left: 50%; margin-left: -75px; }
}
@-webkit-keyframes section-title-run-sm {
    0% { left: 0; } 50% { left: 85px; } 100% { left: 0; }
}


/* =============================================
   FACTS / STATS BAR
   ============================================= */
/* (overlap rule lives in the responsive section below) */

.fact-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    height: 140px;
    transition: .3s;
}

.fact-card .fact-icon {
    width: 56px;
    height: 56px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fact-card.bg-primary .fact-icon {
    background: rgba(255,255,255,0.15);
}
.fact-card.bg-dark .fact-icon {
    background: var(--primary);
}


/* =============================================
   ABOUT SECTION
   ============================================= */
.about-checks li {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}
.about-checks li i {
    color: var(--primary);
    margin-right: 10px;
}


/* =============================================
   STRENGTH / FEATURE CARDS
   ============================================= */
.strength-icon {
    width: 70px;
    height: 70px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transform: rotate(-45deg);
    transition: .4s;
}
.strength-icon i {
    transform: rotate(45deg);
    font-size: 26px;
    color: #fff;
}
.strength-card:hover .strength-icon {
    background: var(--dark);
    transform: rotate(0deg);
}
.strength-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
}
.strength-card p {
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* =============================================
   PRODUCT CARDS (Featured + Gallery)
   ============================================= */
.product-card {
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: .4s;
    height: 100%;
}
.product-card:hover {
    box-shadow: 0 8px 40px rgba(0,0,0,0.16);
    transform: translateY(-4px);
}

.product-card .product-img-wrap {
    position: relative;
    overflow: hidden;
    height: 220px;
    background: #e0e0e0;
}
.product-card .product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}
.product-card:hover .product-img-wrap img {
    transform: scale(1.07);
}

.product-card .product-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    color: rgba(255,255,255,0.4);
    font-size: 13px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}
.product-card .product-img-placeholder i {
    font-size: 36px;
    margin-bottom: 10px;
    color: rgba(204,0,0,0.5);
}

.product-card .product-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(204,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: .4s;
}
.product-card:hover .product-overlay { opacity: 1; }

.product-card .product-overlay a {
    color: #fff;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 8px 20px;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    transition: .3s;
}
.product-card .product-overlay a:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

.product-card .product-body {
    padding: 16px 18px;
}
.product-card .product-category {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 2px;
    margin-bottom: 8px;
}
.product-card h5 {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}
.product-card p.product-desc {
    font-size: 13px;
    color: #888;
    margin: 0;
    line-height: 1.5;
}


/* =============================================
   PRODUCT FILTER TABS
   ============================================= */
.product-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}

.filter-btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 9px 22px;
    border: 2px solid #ddd;
    background: transparent;
    color: #555;
    border-radius: 2px;
    cursor: pointer;
    transition: .3s;
}
.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.product-item { transition: .4s; }
.product-item.hidden {
    display: none !important;
}

/* Product gallery empty state */
.no-products {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    display: none;
}
.no-products i { font-size: 48px; margin-bottom: 16px; color: #ccc; }


/* =============================================
   SERVICE / PRODUCT ITEM (Legacy compatible)
   ============================================= */
.service-item {
    position: relative;
    height: 300px;
    padding: 0 30px;
    transition: .5s;
}

.service-item .service-icon {
    margin-bottom: 30px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 2px;
    transform: rotate(-45deg);
}
.service-item .service-icon i { transform: rotate(45deg); }

.service-item a.btn {
    position: absolute;
    width: 60px;
    bottom: -48px;
    left: 50%;
    margin-left: -30px;
    opacity: 0;
}
.service-item:hover a.btn {
    bottom: -24px;
    opacity: 1;
}


/* =============================================
   QUALITY & COMMITMENT SECTION
   ============================================= */
.quality-section {
    background: var(--dark);
    position: relative;
    overflow: hidden;
}
.quality-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
}

.quality-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-top: 3px solid var(--primary);
    padding: 32px 24px;
    border-radius: 2px;
    transition: .4s;
    height: 100%;
}
.quality-card:hover {
    background: rgba(204,0,0,0.06);
    border-color: rgba(204,0,0,0.3);
    transform: translateY(-4px);
}
.quality-card .quality-icon {
    width: 56px;
    height: 56px;
    background: rgba(204,0,0,0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.quality-card .quality-icon i {
    font-size: 22px;
    color: var(--primary);
}
.quality-card h5 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 10px;
}
.quality-card p {
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}


/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, #8B0000 100%);
    position: relative;
    overflow: hidden;
}
.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.04);
    pointer-events: none;
}
.cta-section h2 {
    color: #fff;
    font-size: 2rem;
    line-height: 1.3;
}
.cta-section p {
    color: rgba(255,255,255,0.8);
    font-size: 16px;
    margin-bottom: 0;
}
.btn-cta-light {
    background: #fff;
    color: var(--primary) !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    padding: 14px 38px;
    border-radius: 2px;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: .3s;
    display: inline-block;
    border: 2px solid #fff;
}
.btn-cta-light:hover {
    background: transparent;
    color: #fff !important;
}
.btn-cta-outline {
    background: transparent;
    color: #fff !important;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    padding: 14px 38px;
    border-radius: 2px;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: .3s;
    display: inline-block;
    border: 2px solid rgba(255,255,255,0.5);
}
.btn-cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}


/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header-gap {
    margin-bottom: 90px; /* default desktop: creates overlap space for stats bar (if any) */
}

.page-header {
    background: linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    padding: 90px 0 70px;
}
.page-header h1 {
    color: #fff;
    font-size: 2.5rem;
}
.page-header .breadcrumb-item a,
.page-header .breadcrumb-item { color: rgba(255,255,255,0.7); font-size: 15px; }
.page-header .breadcrumb-item.active { color: var(--primary); }
.page-header .breadcrumb-divider { color: rgba(255,255,255,0.4); }
.page-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255,255,255,0.4);
}


/* =============================================
   CONTACT SECTION
   ============================================= */
.contact-info-card {
    background: var(--dark);
    border-bottom: 3px solid var(--primary);
    padding: 30px 24px;
    border-radius: 2px;
    transition: .4s;
    height: 100%;
}
.contact-info-card:hover {
    background: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.contact-info-card .icon-wrap {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    flex-shrink: 0;
}
.contact-info-card .icon-wrap i { font-size: 20px; color: #fff; }
.contact-info-card h5 { color: rgba(255,255,255,0.6); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 6px; font-weight: 600; }
.contact-info-card h4 { color: #fff; font-size: 16px; margin: 0; }

.contact-form-card {
    background: #fff;
    border-radius: 4px;
    padding: 40px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}
.contact-form-card .form-control,
.contact-form-card .form-select {
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    padding: 12px 16px;
    font-size: 14px;
    background: #fafafa;
    transition: .3s;
}
.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
    background: #fff;
}

.business-hours p { font-size: 14px; color: #555; margin-bottom: 6px; }
.business-hours span { color: var(--primary); font-weight: 700; }


/* =============================================
   FOOTER
   ============================================= */
.footer-main {
    background: var(--dark);
    border-top: 3px solid var(--primary);
}

.footer-logo-img {
    height: 60px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    filter: brightness(1.1);
    margin-bottom: 16px;
}
.footer-logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 16px;
    display: block;
}
.footer-logo-text span { color: var(--primary); }

.footer-desc {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-heading {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    position: relative;
}
.footer-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: .3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-links a i { color: var(--primary); font-size: 12px; }
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.footer-contact-item i {
    color: var(--primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    background: var(--dark-2);
    padding: 16px 0;
}
.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.4);
    font-size: 13px;
}
.footer-bottom a { color: rgba(255,255,255,0.6); text-decoration: none; transition: .3s; }
.footer-bottom a:hover { color: var(--primary); }

.social-links { display: flex; gap: 8px; margin-top: 20px; }
.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    text-decoration: none;
    transition: .3s;
}
.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}


/* =============================================
   BG HEADER (inner pages fallback)
   ============================================= */
.bg-header {
    background: linear-gradient(rgba(0,0,0,0.80), rgba(0,0,0,0.80)), url(../img/caro.jpg) center center no-repeat;
    background-size: cover;
}


/* =============================================
   BACK TO TOP
   ============================================= */
.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    width: 44px;
    height: 44px;
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 2px !important;
    transition: .3s;
}
.back-to-top:hover {
    background: var(--primary-dark) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(204,0,0,0.4);
}


/* =============================================
   MISCELLANEOUS
   ============================================= */
.link-animated a { transition: .5s; }
.link-animated a:hover { padding-left: 10px; }

.section-bg-light { background: var(--light); }
.section-bg-dark  { background: var(--dark); }

/* =============================================
   RESPONSIVE — MOBILE FIRST
   ============================================= */

/* ---------- Extra-small phones (< 480px) ---------- */
@media (max-width: 479.98px) {

    /* Navbar: reduce horizontal padding so logo + toggler fit */
    .navbar { padding-left: 16px !important; padding-right: 16px !important; }
    .navbar-logo { height: 44px !important; }

    /* Hero: drastically shrink headline */
    .carousel-caption h1.display-2 { font-size: 1.5rem !important; line-height: 1.2 !important; }
    .carousel-caption .pre-heading { font-size: 10px !important; letter-spacing: 2px; padding: 4px 10px; margin-bottom: 12px; }
    .carousel-caption p { font-size: 13px !important; margin-bottom: 16px !important; }
    .carousel-caption .btn { padding: 10px 18px !important; font-size: 13px !important; }
    /* Hero buttons: stack vertically */
    .carousel-caption .d-flex.flex-wrap { flex-direction: column !important; align-items: center !important; gap: 10px !important; }

    /* Stats bar */
    .fact-card { height: auto !important; padding: 20px 16px !important; }

    /* About image */
    .col-lg-5[style*="min-height"] { min-height: 260px !important; }

    /* Section heading */
    h1.display-4 { font-size: 1.8rem !important; }
    h1.mb-0 { font-size: 1.5rem !important; }

    /* CTA */
    .cta-section h2 { font-size: 1.25rem !important; }
    .cta-section p { font-size: 14px; }
    .btn-cta-light { padding: 12px 24px; font-size: 14px; }

    /* Contact form */
    .contact-form-card { padding: 20px 16px; }

    /* Inner page header: margin + content sizing */
    .page-header-gap { margin-bottom: 40px !important; }
    .page-header-gap .row { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
    .page-header-gap h1.display-4 { font-size: 1.8rem !important; }

    /* Product filter */
    .product-filter { gap: 5px; }
    .filter-btn { padding: 7px 12px; font-size: 10px; }

    /* Back-to-top */
    .back-to-top { right: 16px; bottom: 16px; }
}

/* ---------- Small phones (480px – 575px) ---------- */
@media (min-width: 480px) and (max-width: 575.98px) {
    .navbar { padding-left: 20px !important; padding-right: 20px !important; }
    .navbar-logo { height: 48px !important; }

    .carousel-caption h1.display-2 { font-size: 1.8rem !important; line-height: 1.2 !important; }
    .carousel-caption .pre-heading { font-size: 11px !important; letter-spacing: 3px; }
    .carousel-caption p { font-size: 14px !important; }

    .col-lg-5[style*="min-height"] { min-height: 300px !important; }
    .cta-section h2 { font-size: 1.4rem !important; }
}

/* ---------- Phones & small tablets (< 768px shared rules) ---------- */
@media (max-width: 767.98px) {

    /* Navbar */
    .navbar { padding-left: 20px !important; padding-right: 20px !important; }
    /* Show collapsed menu with proper spacing */
    .navbar-collapse .navbar-nav { padding: 8px 0 16px; border-top: 1px solid rgba(255,255,255,0.08); margin-top: 8px; }
    .navbar-dark .navbar-nav .nav-link { margin-left: 0 !important; }

    /* Hero carousel image: set min-height so it doesn't collapse */
    #header-carousel .carousel-item img { min-height: 420px; object-fit: cover; object-position: center; }
    .carousel-caption { padding: 0 16px; }
    .carousel-caption .p-3 { padding: 12px !important; }

    /* Stats bar: remove negative margin-top overlap on mobile */
    .facts { margin-top: 0 !important; }
    .fact-card { height: auto !important; padding: 22px 20px !important; }

    /* About section: make image stack below text gracefully */
    .col-lg-5[style*="min-height"] { min-height: 280px !important; }
    /* Hide the decorative side bar on mobile */
    .col-lg-5 > .position-relative > div[style*="position:absolute"] { display: none !important; }

    /* Section padding: reduce vertical breathing room */
    .container-fluid.py-5 { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
    .container.py-5 { padding-top: 2rem !important; padding-bottom: 2rem !important; }

    /* Section titles */
    .section-title h1 { font-size: 1.6rem; }
    h1.mb-0 { font-size: 1.6rem; }

    /* Strength / feature cards */
    .strength-card { padding: 0 8px; }

    /* CTA section */
    .cta-section { text-align: center; }
    .cta-section h2 { font-size: 1.5rem; }
    .cta-section p { font-size: 15px; }
    .col-lg-4.text-lg-end { justify-content: center !important; }

    /* Inner page header: margin + content sizing */
    .page-header-gap { margin-bottom: 40px !important; }
    .page-header-gap .row { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .page-header-gap h1.display-4 { font-size: 2rem !important; }

    /* Contact form */
    .contact-form-card { padding: 24px 20px; }

    /* Product filter */
    .product-filter { gap: 6px; }
    .filter-btn { padding: 7px 14px; font-size: 11px; }

    /* Quality cards: full width on very small screens */
    .quality-card { margin-bottom: 0; }
}

/* ---------- Tablets (768px – 991px) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Stats bar: remove the overlap on tablet too (only apply on lg+) */
    .facts { margin-top: 0 !important; }

    /* Hero */
    .carousel-caption h1.display-2 { font-size: 2.4rem !important; }
    #header-carousel .carousel-item img { min-height: 480px; object-fit: cover; }

    /* About image */
    .col-lg-5[style*="min-height"] { min-height: 380px !important; }

    /* CTA */
    .cta-section h2 { font-size: 1.75rem; }

    /* Inner page header: margin */
    .page-header-gap { margin-bottom: 50px !important; }
}

/* ---------- Desktops (≥ 992px): restore stats overlap ---------- */
@media (min-width: 992px) {
    .facts {
        position: relative;
        margin-top: -75px;
        z-index: 1;
    }
}

/* ---------- Legacy rule ---------- */
@media (min-width: 767.98px) {
    .footer-about { margin-bottom: -75px; }
}