/**
 * MOBILE VIEW - All mobile-specific styles
 * Edit this file when you need to change how the site looks on phones/tablets.
 * Breakpoints: 576px = small phones, 768px = tablets, 992px = desktop
 */

/* ========== Global (all pages) ========== */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
    .navbar .navbar-brand img.logo-img {
        height: 55px !important;
        max-height: 55px !important;
    }
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Touch-friendly buttons and links */
    .btn, .nav-link, a.btn-style {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    /* On mobile: header first (fixed), promo comes after header and scrolls */
    body {
        padding-top: 80px; /* header height only */
    }
    body.has-promo {
        padding-top: 80px;
    }

    .navbar .navbar-brand img.logo-img {
        height: 42px !important;
        max-height: 42px !important;
    }

    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    /* Cookie consent full width on small screens */
    .cookie-consent {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    /* Promo bar becomes normal (not fixed) and sits under header */
    .promo-bar {
        font-size: 11px;
        position: static;
        top: auto;
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .promo-bar .container {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
    }
    .promo-bar .d-none.d-md-inline {
        display: none !important; /* hide "|" separator on mobile */
    }

    /* Header stays fixed at top as usual */
    #site-header {
        position: fixed;
        top: 0;
        padding-top: 4px;
        padding-bottom: 4px;
    }
    /* Override desktop rule that pushes header down when promo is visible */
    body.has-promo #site-header {
        top: 0 !important;
    }
}

/* ========== Home page: Banner / Slider ========== */
/* Tablet: keep cover but ensure enough height */
@media (max-width: 991.98px) {
    #home .slider-info.banner-view,
    .w3l-main-slider .banner-view {
        height: 320px !important;
        min-height: 280px !important;
        background-position: center center;
    }
}

/* Mobile: show full banner (no crop) so all text and button are visible */
@media (max-width: 575.98px) {
    #home .slider-info.banner-view,
    .w3l-main-slider .banner-view,
    #home .banner-view {
        min-height: 180px !important;
        height: 200px !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        background-color: #1a1a1a;
    }
    /* Reduce dark overlay on mobile so banner text is clearer */
    .w3l-main-slider .banner-view:before {
        opacity: 0.3;
    }
}

/* Very small (320px): full banner visible, no side crop */
@media (max-width: 380px) {
    #home .slider-info.banner-view,
    .w3l-main-slider .banner-view {
        min-height: 160px !important;
        height: 185px !important;
    }
}

/* ========== Home page: About / Grids section ========== */
@media (max-width: 991.98px) {
    .w3l-3-grids .title-w3l {
        font-size: 1.5rem;
    }
    .w3l-3-grids .pr-lg-5,
    .w3l-3-grids .ps-lg-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 575.98px) {
    .w3l-3-grids .title-w3l {
        font-size: 1.25rem;
    }
    .w3l-3-grids .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* ========== Home page: Video section ========== */
@media (max-width: 575.98px) {
    .w3l-index5 .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #insence-stick-video iframe {
        height: 220px !important;
        min-height: 180px !important;
    }
}

/* ========== Home page: What We Offer / Passion section ========== */
@media (max-width: 991.98px) {
    .w3l-passion-mid-sec .content-8-img img,
    .passion-grid-item-info .content-8-img img {
        height: 350px !important;
        max-height: 350px;
        object-fit: cover;
    }
    .w3l-passion-mid-sec .title-w3l {
        font-size: 1.4rem;
    }
}

@media (max-width: 575.98px) {
    .w3l-passion-mid-sec .content-8-img img,
    .passion-grid-item-info .content-8-img img {
        height: 260px !important;
        max-height: 260px;
    }
    .w3l-passion-mid-sec .title-w3l {
        font-size: 1.2rem;
    }
    .w3l-passion-mid-sec .pe-lg-5 {
        padding-right: 0 !important;
    }
}

/* ========== Home page: Products section ========== */
@media (max-width: 991.98px) {
    #products .title-w3l {
        font-size: 1.5rem;
    }
    #products .card-img-top {
        height: 220px !important;
    }
}

@media (max-width: 575.98px) {
    #products .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    #products .title-w3l {
        font-size: 1.25rem;
    }
    #products .card-img-top {
        height: 200px !important;
    }
    #products .btn-style {
        padding: 0.5rem 1rem;
    }
}

/* ========== Home page: Stats / Midslider ========== */
@media (max-width: 575.98px) {
    .w3l-midslider .title-w3l {
        font-size: 1.2rem;
    }
    .w3l-stats-section .counter {
        font-size: 1.75rem;
    }
    .w3l-stats-section h3 {
        font-size: 0.9rem;
    }
}

/* ========== Home page: Blog / Latest Posts ========== */
@media (max-width: 991.98px) {
    .text11-content .col-lg-4 {
        margin-bottom: 1rem;
    }
    .text11-content .blog-desc-2 {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    .w3l-text-11 .title-w3l {
        font-size: 1.2rem;
    }
    .text11-content .item {
        margin-top: 1.5rem !important;
    }
}

/* ========== Trust bar ========== */
@media (max-width: 575.98px) {
    .trust-bar .fa-2x { font-size: 1.5rem; }
    .trust-bar .small { font-size: 0.75rem; }
}

/* ========== Why Choose Us ========== */
@media (max-width: 575.98px) {
    #why-choose .col-6 { margin-bottom: 0.5rem; }
    #why-choose .p-3 { padding: 1rem !important; }
    #why-choose h6 { font-size: 0.95rem; }
}

/* ========== Testimonials ========== */
@media (max-width: 767.98px) {
    #testimonials .col-md-4 { margin-bottom: 1rem; }
}
@media (max-width: 575.98px) {
    #testimonials .p-4 { padding: 1.25rem !important; }
}

/* ========== Banner CTA overlay ========== */
@media (max-width: 575.98px) {
    .banner-cta-overlay { bottom: 16px; }
    .banner-cta-overlay .btn { padding: 0.5rem 1.25rem !important; font-size: 0.9rem; }
}

/* ========== Footer ========== */
@media (max-width: 991.98px) {
    .footer-29 .footer-list-29 {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .copy-footer-29 {
        font-size: 0.85rem;
    }
}
