
/* ==========================================
   DECK FIXER - CUSTOM WEBSITE CSS
   Brickz Theme / Elementor
========================================== */


/* ==========================================
   1. FIXED HEADER
========================================== */

/* Keep header visible while scrolling */
header.rstb-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
}

/* WordPress admin bar - Desktop */
body.admin-bar header.rstb-header {
    top: 32px !important;
}

/* Keep navigation above page content */
header.rstb-header .elementor-element-2021587 {
    position: relative;
    z-index: 2;
}


/* ==========================================
   2. MOBILE HEADER
========================================== */

@media (max-width: 767px) {

    /* Compact mobile navigation */
    header.rstb-header .elementor-element-2021587 {
        width: 100% !important;
        max-width: none !important;
        min-height: 64px !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        box-sizing: border-box !important;
        background-color: #171717 !important;
    }

    /* Full width outer header */
    header.rstb-header .elementor-element-653b118 {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
    }
}

/* Mobile WordPress admin bar */
@media (max-width: 782px) {
    body.admin-bar header.rstb-header {
        top: 46px !important;
    }
}


/* ==========================================
   3. BRAND LOGO SHOWCASE
   Class: deckfixer-brand-logos
========================================== */

/* Center logos in slider */
.deckfixer-brand-logos .swiper-slide {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
}

/* Uniform logo white background */
.deckfixer-brand-logos img {
    display: block !important;
    width: 100% !important;
    max-width: 220px !important;
    height: 100px !important;

    object-fit: contain !important;
    object-position: center !important;

    background-color: #FFFFFF !important;
    padding: 14px !important;
    margin: 0 auto !important;

    border: none !important;
    border-radius: 0 !important;

    box-sizing: border-box !important;

    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    mix-blend-mode: normal !important;

    transform: none !important;
    transition: none !important;
}

/* Prevent logo fading on hover */
.deckfixer-brand-logos img:hover,
.deckfixer-brand-logos a:hover img,
.deckfixer-brand-logos .swiper-slide:hover img {
    opacity: 1 !important;
    visibility: visible !important;
    filter: none !important;
    transform: none !important;
}

/* Center image links */
.deckfixer-brand-logos .swiper-slide a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* Deck Fixer header logo sizing */
.deck-header-logo {
    width: 100%;
}

.deck-header-logo a {
    display: block;
    width: 100%;
}

.deck-header-logo img {
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    object-fit: contain;
}


/* ==========================================
   4. TABLET BRAND LOGOS
========================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .deckfixer-brand-logos img {
        max-width: 190px !important;
        height: 90px !important;
        padding: 12px !important;
    }
}


/* ==========================================
   5. MOBILE BRAND LOGOS
========================================== */

@media (max-width: 767px) {

    .deckfixer-brand-logos img {
        width: 100% !important;
        max-width: 170px !important;
        height: 75px !important;
        padding: 8px !important;
    }
}


/* =====================================
   DECK FIXER - PROJECT IMAGE GALLERY
===================================== */

/* Uniform project image dimensions */
.deckfixer-project-gallery img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 550px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 8px !important;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .deckfixer-project-gallery img {
        height: 350px !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .deckfixer-project-gallery img {
        height: 260px !important;
    }
}

/* =====================================
   DECK FIXER - MOBILE HAMBURGER LOGO
===================================== */

/* Hide original Brickz logo */
.rstb-nav-menu .mobile-panel-logo img {
    opacity: 0 !important;
}

/* Display Deck Fixer logo */
.rstb-nav-menu .mobile-panel-logo {
    width: 180px !important;
    height: 50px !important;

    background-image: url("https://deckfixer.ca/wp-content/uploads/2026/05/Deck-Fixer-Logo-1-e1792070649185.png") !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    background-size: contain !important;
}

/* Mobile sizing */
@media (max-width: 767px) {
    .rstb-nav-menu .mobile-panel-logo {
        width: 160px !important;
        height: 42px !important;
    }
}

/* Hide Elementor placeholder images */
img[src*="placeholder.png"] {
    display: none !important;
}


/* ==========================================
   DECK FIXER - MOBILE MENU LOGO FIX
========================================== */

@media (max-width: 1024px) {

    /* Show mobile menu logo container */
    .rstb-nav-menu .mobile-panel-logo {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        background: none !important;
        margin: 15px 0 20px !important;
    }

    /* Restore and resize Deck Fixer logo */
    .rstb-nav-menu .mobile-panel-logo img {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 180px !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

