/* ============================================================
   CBI Lighting & Manufacturing — 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;
}

.plus { margin-left: 4px; }

/* ── 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;
}

/* ── NAV ACTIVE/CURRENT COLOR FIX (override theme green) ───── */
.navbar-nav li.current > a,
.navbar-nav li.active > a,
.navbar-nav li.current > a:hover,
.navbar-nav li.active > a:hover {
    color: #2563eb !important;
}

/* ── NAV DROPDOWN Z-INDEX (must exceed sticky header 9999) ─── */
.navbar-nav .dropdown-menu {
    z-index: 10000 !important;
}

/* ── SECONDARY-OVERLAY STACKING CONTEXT FIX ────────────────── */
.secondary-overlay {
    isolation: isolate;
}

/* ── SERVICE-SIMPLE HOVER FIX ───────────────────────────────── */
/* Parent overflow:hidden clips the scale(1.1) — lift clip to inner */
.service-simple {
    overflow: visible !important;
}
.service-simple-inner {
    overflow: hidden;
    border-radius: inherit;
}

/* ── STICKY HEADER SAFE Z-INDEX ─────────────────────────────── */
header.sticky-header,
.header-appear {
    z-index: 9999;
}

/* ── MOBILE NAV COLOR FIX ───────────────────────────────────── */
@media (max-width: 991px) {
    .navbar-nav li.current > a,
    .navbar-nav li.active > a {
        color: #2563eb !important;
        background-color: rgba(37, 99, 235, 0.08) !important;
    }
}
