/* ============================================================
   CBI Signage — Custom Styles
   ============================================================ */

/* ── LOGO: Remove black box, size correctly ────────────────── */
.navbar-header-custom,
.navbar-header {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
#logo {
    max-height: 52px !important;
    width: auto !important;
    display: block;
    background: transparent !important;
}
.navbar-brand {
    background: transparent !important;
    padding: 8px 0 !important;
}
.footer-logo img {
    max-height: 56px !important;
    width: auto !important;
    background: transparent !important;
}

/* ── NAVBAR STICKY SCROLL ──────────────────────────────────── */
.navbar-default.scroll-is-sticky {
    background-color: #0f172a !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

/* ── MOBILE MENU STYLING ───────────────────────────────────── */
@media (max-width: 991px) {
    /* Ensure nav shows correctly when open */
    #nav.open {
        display: block !important;
        background: #0f172a;
        padding: 0.5rem 1rem 1rem;
        width: 100%;
    }
    #nav li a {
        color: rgba(255,255,255,0.88) !important;
        display: block;
        padding: 9px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
    }
    #nav li a:hover { color: #2563eb !important; }
    #nav li ul {
        background: rgba(255,255,255,0.04);
        padding: 4px 12px;
        border-radius: 4px;
        margin-top: 4px;
        display: none;
    }
    /* submenu-button arrows added by nav-menu.js */
    .submenu-button {
        position: absolute;
        right: 0;
        top: 0;
        width: 40px;
        height: 40px;
        cursor: pointer;
        z-index: 99;
    }
    .submenu-button::after {
        content: '+';
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: rgba(255,255,255,0.6);
        font-size: 1.2rem;
    }
    li.active > .submenu-button::after { content: '−'; }
    #nav > li { position: relative; }
}

/* ── HERO TEXT — force white so it shows without parallax ── */
.full-screen h1,
.full-screen p,
.full-screen .display-1 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
/* Ensure secondary-overlay actually darkens */
.secondary-overlay {
    position: relative;
}
.secondary-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.72);
    z-index: 0;
    pointer-events: none;
}
.secondary-overlay > * {
    position: relative;
    z-index: 1;
}

/* ── BACKGROUND IMAGES (fallback for jarallax) ─────────────── */
[data-background] {
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}

/* ── SERVICE CARD IMAGES ───────────────────────────────────── */
.service-simple .overflow-hidden {
    height: 220px;
    overflow: hidden;
}
.service-simple .overflow-hidden img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.service-simple:hover .overflow-hidden img {
    transform: scale(1.06);
}

/* ── PORTFOLIO IMAGES ──────────────────────────────────────── */
.project-grid-img img,
.project-grid-style2 img {
    height: 260px;
    width: 100%;
    object-fit: cover;
}

/* ── PORTFOLIO GRID HOVER OVERLAY ─────────────────────────── */
.project-grid {
    position: relative;
    overflow: hidden;
}
.project-grid-overlay {
    position: absolute;
    inset: 0;
    background: rgba(37, 99, 235, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.project-grid:hover .project-grid-overlay { opacity: 1; }
.project-grid-overlay h4 a,
.project-grid-overlay p { color: #fff !important; }

/* ── PAGE TITLE BANNERS ────────────────────────────────────── */
.page-title-section {
    background-size: cover !important;
    background-position: center center !important;
}
.page-title-section h1,
.page-title-heading {
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
}
.page-title-section ul { list-style: none; display: flex; gap: 0.5rem; padding-left: 0; }
.page-title-section ul li::after { content: '/'; color: rgba(255,255,255,0.4); margin-left: 0.5rem; }
.page-title-section ul li:last-child::after { display: none; }
.page-title-section ul li a { color: rgba(255,255,255,0.8) !important; }
.page-title-section ul li:last-child { color: #2563eb; }

/* ── ABOUT COVER IMAGE ─────────────────────────────────────── */
.about-cover {
    height: 500px;
    object-fit: cover;
    width: 100%;
    border-radius: 4px;
}

/* ── TEAM IMAGES ───────────────────────────────────────────── */
.team-members-img img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

/* ── SHOP IMAGES ───────────────────────────────────────────── */
.shop-thumb img, .product-img img {
    height: 240px;
    width: 100%;
    object-fit: cover;
}

/* ── HERO DISPLAY TEXT ─────────────────────────────────────── */
.display-1 {
    font-size: clamp(2.4rem, 6vw, 5rem) !important;
    line-height: 1.1 !important;
}

/* ── DARK FOOTER THEME ─────────────────────────────────────── */
footer.bg-light {
    background-color: #0f172a !important;
}
footer.bg-light p,
footer.bg-light .text-default-color { color: #94a3b8 !important; }
footer.bg-light h3.footer-title-style6 { color: #f1f5f9 !important; }
footer.bg-light .footer-list-style3 a { color: #94a3b8 !important; }
footer.bg-light .footer-list-style3 a:hover { color: #2563eb !important; }
.footer-bar.bg-secondary { background-color: #020617 !important; }
.footer-bar p, .footer-bar a { color: #475569 !important; font-size: 13px; }
.footer-bar a:hover { color: #2563eb !important; }

/* ── PROGRESS BARS ─────────────────────────────────────────── */
.custom-bar { background-color: #2563eb !important; border-radius: 0; }
.custom-progress { border-radius: 0; height: 6px; background: #e2e8f0; }

/* ── ADA BADGE COMPONENT ───────────────────────────────────── */
.ada-badge {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 3px 12px;
    border-radius: 3px;
    margin-bottom: 0.75rem;
}

/* ── PORTFOLIO FILTER BUTTONS ──────────────────────────────── */
.filtering span {
    cursor: pointer;
    display: inline-block;
    padding: 6px 18px;
    margin: 4px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s;
}
.filtering span.active,
.filtering span:hover {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

/* ── CART BADGE ────────────────────────────────────────────── */
#cartCount {
    font-size: 10px;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    padding: 0 4px;
}

/* ── SECTION SPACING ───────────────────────────────────────── */
.section-heading { margin-bottom: 2.5rem; }
.section-heading h2 span { color: #2563eb; }

/* ── CONTACT FORM ──────────────────────────────────────────── */
.quform-element label {
    font-weight: 600;
    font-size: 13px;
    color: #374151;
    margin-bottom: 4px;
    display: block;
}

/* ── BREADCRUMB HOME LINK ───────────────────────────────────── */
html { scroll-behavior: smooth; }
a, .butn { transition: all 0.3s ease; }

/* ── FOOTER REQUEST A QUOTE BUTTON FIX ────────────────────── */
footer.bg-light .butn.small.primary,
footer.bg-light .butn.primary {
    color: #fff !important;
    border: 2px solid #fff !important;
    background-color: #2563eb !important;
}
footer.bg-light .butn.small.primary:hover,
footer.bg-light .butn.primary:hover {
    background-color: #fff !important;
    color: #2563eb !important;
}

/* ── PORTFOLIO MODAL Z-INDEX FIX ───────────────────────────── */
#portfolioModal { z-index: 99999 !important; }
.modal-backdrop { z-index: 99998 !important; }

/* ── TESTIMONIAL STAR RATINGS ──────────────────────────────── */
.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

/* ============================================================
   CBI SIGNAGE — REVIEWER FIX PATCHES  (March 2026)
   ============================================================ */

/* ── SOCIAL ICON HOVER FIX (icons were disappearing on hover) */
.footer-social-icons2 ul li a,
.footer-social-icons2 ul li a i,
.social-icon ul li a,
.social-icon ul li a i {
    transition: color 0.2s, background 0.2s, opacity 0.2s !important;
}
.footer-social-icons2 ul li a:hover,
.footer-social-icons2 ul li a:hover i {
    color: #fff !important;
    opacity: 1 !important;
}

/* ── WHAT WE MAKE — stop scroll/hover glitch (parallax conflict) */
.service-simple .overflow-hidden {
    transform: none !important;
    will-change: auto !important;
}
.service-simple .overflow-hidden img {
    transition: transform 0.4s ease !important;
    will-change: transform;
}
.service-simple:hover .overflow-hidden img {
    transform: scale(1.04) !important;
}

/* ── BUTTON VISUAL HIERARCHY ────────────────────────────────── */
/* Primary CTA — solid blue, stands out */
.butn.primary, a.butn.primary {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.butn.primary:hover, a.butn.primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}
/* Secondary CTA — outlined, less prominent */
.butn.secondary, a.butn.secondary {
    background-color: transparent !important;
    border: 2px solid #2563eb !important;
    color: #2563eb !important;
    font-weight: 500 !important;
}
.butn.secondary:hover, a.butn.secondary:hover {
    background-color: #2563eb !important;
    color: #fff !important;
}

/* ── DARK SECTION TEXT LEGIBILITY — fix indigo on dark blue ── */
.bg-dark-blue .text-primary, 
.section-dark .text-primary,
[style*="background:#0f172a"] .text-primary,
[style*="background: #0f172a"] .text-primary {
    color: #60a5fa !important;
}

/* ── CART DROPDOWN — fix black box on hover when empty ──────── */
.dropdown-menu.cart-list {
    min-width: 280px;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.1) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.12) !important;
}
.attr-nav ul li.dropdown:hover .dropdown-menu.cart-list:empty,
.attr-nav ul li.dropdown .dropdown-menu.cart-list li {
    background: #fff !important;
    color: #333 !important;
}

/* ── MOBILE NAV — ensure clean display ──────────────────────── */
@media (max-width: 991px) {
    #nav {
        background: #0f172a !important;
        width: 100% !important;
    }
    #nav > li > a {
        color: rgba(255,255,255,0.9) !important;
        padding: 11px 16px !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        display: block !important;
    }
    #nav > li > a:hover { color: #fff !important; }
    #nav > li > ul {
        background: #1e293b !important;
        padding: 4px 0 !important;
    }
    #nav > li > ul > li > a {
        color: rgba(255,255,255,0.75) !important;
        padding: 9px 28px !important;
        display: block !important;
    }
    /* Remove submenu-button arrow injected by nav-menu.js on mobile */
    #nav .submenu-button { display: none !important; }
}

/* ── CHECKOUT PAGE TITLE BANNER (missing per reviewer) ──────── */
.page-title-section.checkout-banner {
    min-height: 140px !important;
}

/* ============================================================
   CBI SIGNAGE — REVIEWER FIX PATCHES  (March 2026)
   ============================================================ */

/* ── SOCIAL ICON HOVER — icons were disappearing on dark bg ── */
.footer-social-icons2 ul li a { opacity: 1 !important; }
.footer-social-icons2 ul li a i { color: rgba(255,255,255,0.75) !important; transition: color 0.2s !important; }
.footer-social-icons2 ul li a:hover i { color: #fff !important; }

/* ── NAVBAR LOGO SIZING ────────────────────────────────────── */
.navbar-brand img#logo {
    max-height: 44px !important;
    width: auto !important;
}
.scroll-is-sticky .navbar-brand img#logo {
    max-height: 38px !important;
}

/* ── WHAT WE MAKE — fix scroll/hover parallax glitch ──────── */
.service-simple .overflow-hidden {
    transform: none !important;
    will-change: auto !important;
}
.service-simple .overflow-hidden img {
    transition: transform 0.4s ease !important;
    will-change: transform;
}
.service-simple:hover .overflow-hidden img {
    transform: scale(1.04) !important;
}

/* ── BUTTON VISUAL HIERARCHY ───────────────────────────────── */
.butn.primary, a.butn.primary, button.butn.primary {
    background-color: #2563eb !important;
    border: 2px solid #2563eb !important;
    color: #fff !important;
    font-weight: 600 !important;
}
.butn.primary:hover, a.butn.primary:hover {
    background-color: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
    color: #fff !important;
}
.butn.secondary, a.butn.secondary, button.butn.secondary {
    background-color: transparent !important;
    border: 2px solid #2563eb !important;
    color: #2563eb !important;
    font-weight: 500 !important;
}
.butn.secondary:hover, a.butn.secondary:hover {
    background-color: #2563eb !important;
    color: #fff !important;
}

/* ── FOOTER BUTTON CONTRAST (request a quote) ─────────────── */
footer .butn.primary, footer a.butn.primary {
    color: #fff !important;
    border: 2px solid #fff !important;
}

/* ── CART DROPDOWN — fix black box on hover when empty ──────── */
.dropdown-menu.cart-list {
    min-width: 300px !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,.12) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,.15) !important;
    padding: 0 !important;
}
.dropdown-menu.cart-list li {
    background: #fff !important;
    color: #1e293b !important;
}

/* ── MOBILE NAV ─────────────────────────────────────────────── */
@media (max-width: 991px) {
    #nav {
        background: #0f172a !important;
        width: 100% !important;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    #nav > li > a {
        color: rgba(255,255,255,0.9) !important;
        padding: 12px 18px !important;
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
        display: block !important;
        font-size: 0.95rem;
    }
    #nav > li > a:hover { color: #fff !important; background: rgba(255,255,255,0.05) !important; }
    #nav > li > ul {
        background: #1e293b !important;
        padding: 4px 0 !important;
        display: none;
    }
    #nav > li > ul > li > a {
        color: rgba(255,255,255,0.75) !important;
        padding: 9px 32px !important;
        display: block !important;
        font-size: 0.88rem;
    }
    #nav > li > ul > li > a:hover { color: #fff !important; }
    /* Hide nav-menu.js injected arrows — we handle submenu with click */
    #nav .submenu-button { display: none !important; }
}

/* ── INDIGO ON DARK FIX ────────────────────────────────────── */
.bg-dark .text-primary,
.secondary-bg .text-primary,
[class*="bg-dark"] .text-primary {
    color: #60a5fa !important;
}

/* ── STATS COUNTER — ensure visible ────────────────────────── */
.odometer, .timer { min-height: 1em; }

/* ── CHECKOUT SHIPPING BLOCK ───────────────────────────────── */
#shipping-addr-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

/* ============================================================
   NAVBAR — LOCKED DARK STYLE (March 2026)
   Prevents all theme color-change flickering on scroll/load
   ============================================================ */

/* ── Base state — always dark ────────────────────────────────── */
.navbar-default,
.header-style1 .navbar-default,
.menu_area-light .navbar-default {
    background: #0f172a !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    transition: box-shadow 0.3s ease !important;
}

/* ── Scrolled state — slightly darker + shadow ───────────────── */
.navbar-default.scroll-is-sticky,
.navbar-default.scrollHeader {
    background: #0a1020 !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.4) !important;
}

/* ── Nav link colours — always white ────────────────────────── */
.navbar-default #nav > li > a,
.navbar-default .navbar-nav > li > a,
.menu_area-light .navbar-nav > li > a,
.menu_area-light.scrollHeader .navbar-nav > li > a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 8px 14px !important;
}

.navbar-default #nav > li > a:hover,
.navbar-default .navbar-nav > li > a:hover,
.menu_area-light .navbar-nav > li > a:hover,
.menu_area-light.scrollHeader .navbar-nav > li > a:hover {
    color: #fff !important;
}

/* ── Active / current page link ─────────────────────────────── */
.navbar-default #nav > li.active > a,
.navbar-default #nav > li.current > a,
.navbar-nav li.current > a,
.navbar-nav li.active > a,
.menu_area-light .navbar-nav li.current > a,
.menu_area-light .navbar-nav li.active > a,
.menu_area-light.scrollHeader .navbar-nav li.current > a,
.menu_area-light.scrollHeader .navbar-nav li.active > a {
    color: #3b82f6 !important;
}

/* ── Dropdown submenus ───────────────────────────────────────── */
.navbar-default #nav > li > ul,
.navbar-default .navbar-nav > li > ul,
.menu_area-light .navbar-nav li ul {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    border-radius: 6px !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4) !important;
    min-width: 180px !important;
    padding: 6px 0 !important;
}

.navbar-default #nav li ul li a,
.navbar-default .navbar-nav li ul li a,
.menu_area-light .navbar-nav li ul li a {
    color: rgba(255,255,255,0.75) !important;
    padding: 8px 18px !important;
    font-size: 0.85rem !important;
    display: block;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
}

.navbar-default #nav li ul li a:hover,
.menu_area-light .navbar-nav li ul li a:hover {
    color: #fff !important;
    background: rgba(59,130,246,0.15) !important;
}

/* ── Logo sizing ─────────────────────────────────────────────── */
.navbar-brand img#logo {
    max-height: 42px !important;
    width: auto !important;
}

/* ── Cart icon & badge ───────────────────────────────────────── */
.attr-nav > ul > li > a,
.attr-nav > ul > li > a i {
    color: rgba(255,255,255,0.85) !important;
}
.attr-nav > ul > li > a:hover,
.attr-nav > ul > li > a:hover i {
    color: #fff !important;
}

/* ── attr-nav Custom Order button ───────────────────────────── */
.attr-nav .butn.medium {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #fff !important;
}
.attr-nav .butn.medium:hover {
    background: #1d4ed8 !important;
    border-color: #1d4ed8 !important;
}

/* ── Hamburger toggler ───────────────────────────────────────── */
.navbar-toggler {
    background: #2563eb !important;
    border: none !important;
    width: 36px !important;
    height: 28px !important;
}
.navbar-toggler::before,
.navbar-toggler::after,
.navbar-toggler span {
    background: #fff !important;
}

/* ── Mobile nav ──────────────────────────────────────────────── */
@media (max-width: 991px) {
    #nav {
        background: #0f172a !important;
        border-top: 1px solid rgba(255,255,255,0.1) !important;
        width: 100% !important;
        padding: 6px 0 !important;
    }
    #nav > li > a {
        color: rgba(255,255,255,0.9) !important;
        padding: 11px 20px !important;
        border-bottom: 1px solid rgba(255,255,255,0.06) !important;
        display: block !important;
    }
    #nav > li > ul {
        background: #1e293b !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    #nav > li > ul > li > a {
        color: rgba(255,255,255,0.7) !important;
        padding: 9px 32px !important;
        font-size: 0.85rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    }
    .submenu-button { display: none !important; }
}
