/* --- Global Styles & Typography --- */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #eeeeee; /* Light Grey - Guideline 14 */
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* --- Navigation --- */
#mainNav {
    background-color: #ffffff !important;
    min-height: 80px;
    z-index: 1030;
}

.mmrs-logo-img {
    width: 200px; /* Guideline 1 */
    height: 50px;
    object-fit: contain;
}

.nav-text-style {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Guideline 8: Medium */
    font-size: 16px;
}

.btn-nav-red {
    background-color: #F60701; /* Guideline 14 */
    color: #ffffff;
    width: 150px;      /* Guideline 2 */
    height: 32px;      /* Guideline 2 */
    border-radius: 20px; /* Guideline 2 */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    text-decoration: none;
    
}

.btn-nav-red:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
    background-color: #d50b0b;
}
/* --- Hero & Search Section Refined --- */
.hero-section {
    height: 90vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
}

.search-overlay {
    position: absolute;
    bottom: 20px; /* Lifted slightly from the very bottom edge */
}

.inventory-search-wrapper {
    max-width: 1000px; /* Matches the width proportion in the screenshot */
}

.search-bar-container {
    position: relative;
    z-index: 5;
    transform: translateY(65px); /* Precise overlap */
    height: 42px;
    margin-left: 35px; /* Matches the left margin in the screenshot */
    margin-right: 35px; /* Matches the right margin in the screenshot */
    border: 1px solid #ddd;
}

.search-bar-container .btn-danger {
    background-color: #F60701;
    height: 32px;
    font-size: 13px;
}

/*Filter Bar Styles */
.filter-bar {
    background-color: #0b0b0bc3 !important; /* Deep black */
    padding: 65px 20px 25px 20px; /* Top padding extra to clear the search bar overlap */
    border-radius: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 13px;
}


.filter-item {
    cursor: pointer;
    text-align: center;
    transition: color 0.2s;
    margin-top: 15px;
}

.filter-item:hover {
    color: #F60701;
}

.filter-item .x-small {
    font-size: 10px;
}


/* Slim dividers to match the screenshot */
.border-secondary {
    border-color: #333 !important;
    border-width: 1px;
}

.form-control::placeholder {
    font-weight: 500;
    color: #888;
}

/*Filter Bar End */


/* Container Background */
.bg-inventory {
    background-color: #1a1a1a;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
}

/* Sidebar Styles */
.sidebar-card {
    background-color: #ffffff;
    border-radius: 4px;
}

.inventory-menu li {
    padding: 8px 0;
}

.inventory-menu li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    display: block;
    transition: 0.2s;
}

.inventory-menu li a:hover, 
.inventory-menu li a.active {
    font-weight: 800; /* Matching the "LED (9)" look in screenshot */
}

/* Card Styles */
.inventory-card {
    color: #ffffff;
}

.inventory-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.card-title {
    font-size: 16px;
    font-weight: 700;
}

.card-text {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-label {
    font-size: 12px;
    color: #888;
}

/* Button Styles */
.btn-view {
    background-color: #F60701;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding-top: 4px;
    padding-bottom: 4px;
    border: none;
}

.btn-view:hover {
    background-color: #b50500;
    color: #fff;
}



.inventory-card img {
    width: 100%;
    height: 220px; /* Fixed height for uniformity */
    object-fit: cover; /* Crops image to fill box without stretching */
    background-color: #2b2626;
}

/************ Modal Styles *************/

/* Modal Background Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Modal Window */
.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 800px; /* Slightly narrower for better vertical reading */
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    overflow-y: auto;
    padding: 0; /* Removed padding here to let image go edge-to-edge if desired */
    font-family: 'Montserrat', sans-serif;
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 35px;
    cursor: pointer;
    color: #ffffff; /* White to pop against the image */
    text-shadow: 0px 0px 10px rgba(0,0,0,0.5);
    z-index: 10;
    line-height: 1;
}

/* Stack items vertically */
.modal-stack {
    display: flex;
    flex-direction: column;
}

.modal-image-container {
    width: 100%;
}

.modal-image-container img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    display: block;
}

.modal-info-padding {
    padding: 30px; /* Padding for the text content only */
}

.modal-title { font-weight: 800; font-size: 28px; color: #000000; margin-bottom: 5px; }
.modal-label { font-weight: 700; color: #888; font-size: 11px; text-transform: uppercase; margin-top: 15px; }
.modal-value { font-weight: 600; color: #2B2626; font-size: 15px; }
.modal-description { font-size: 14px; line-height: 1.7; color: #444; margin-top: 20px; border-top: 1px solid #eee; padding-top: 20px; }

/**Modal Styles End **/


/* Image Hover Effect */
.img-container {
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.img-container img {
    transition: transform 0.4s ease;
}

.img-container:hover img {
    transform: scale(1.1); /* Subtle zoom */
}

.img-container::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
}

.img-container:hover::after {
    background: rgba(0, 0, 0, 0.2); /* Slight overlay on hover */
}

/* --- Footer Section --- */
.footer-section {
    background-color: #000000 !important; /* Guideline 14 */
    padding-top: 60px;
    border-top: none !important;
}

.lets-connect {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* Guideline 11: Extrabold */
    font-size: 48px;
}

.text-red-mmrs {
    color: #F60701 !important; /* Guideline 14 */
}

.border-bottom-obvious {
    border-bottom: 2px solid #f8efef !important;
}

.footer-logo {
    width: 200px; /* Guideline 1 */
    height: 50px;
    object-fit: contain;
}

.text-dark-grey-custom {
    color: #817d7d !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Guideline 8 */
    font-size: 16px;
}

.contact-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; /* Guideline 12: Bold */
    font-size: 24px;
}

.btn-mmrs-red {
    background-color: #F60701;
    color: #ffffff;
    width: 175px; /* Guideline 2 */
    height: 32px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 14px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: #2B2626; /* Dark Grey - Guideline 14 */
    color: #fff;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    text-decoration: none;
    transition: 0.3s;
}

.social-icons a:hover {
    background: #F60701;
}

.text-light-grey {
    color: #eeeeee !important; /* Guideline 14 */
}

.x-small {
    font-size: 10px;
    font-family: 'Montserrat', sans-serif;
}




/* --- Enhanced Mobile Alignment --- */

@media (max-width: 991.98px) {
    /* 1. Target the column to ensure all children are centered */
    .footer-section .col-md-6 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-top: 30px;
    }

    /* 2. Fix the paragraph width and center it */
    .text-dark-grey-custom.w-75 {
        width: 100% !important; /* Allow more text space on narrow screens */
        max-width: 320px;       /* Keep it from spreading too wide on tablets */
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 15px;
    }

    /* 3. Ensure the logo remains centered */
    .footer-logo {
        margin-left: auto;
        margin-right: auto;
        display: block;
    }
}
/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .lets-connect {
        font-size: 28px;
        text-align: center;
    }
    .d-flex.justify-content-between.align-items-center {
        flex-direction: column !important;
        text-align: center;
    }
    .footer-section .col-md-6 {
        text-align: center !important;
        margin-top: 20px;
    }
    .footer-logo {
        margin: 0 auto;
    }
    .social-icons {
        justify-content: center;
    }
}


/**********************Mobile Responsive Adjustments***********************/

/*Navigation */
/* --- Mobile Responsiveness Additions --- */

/* Tablet & Smaller (991px and down) */
@media (max-width: 991.98px) {
    #mainNav {
        min-height: 70px; /* Slightly shorter navbar on mobile */
    }

    .mmrs-logo-img {
        width: 160px; /* Scale logo down slightly */
        height: auto;
    }

    /* If using a Bootstrap collapse menu, style the dropdown */
    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-top: 1px solid #eeeeee;
        box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    }

    .nav-link {
        padding: 12px 0 !important;
        border-bottom: 1px solid #f8f8f8;
    }

    .btn-nav-red {
        margin-top: 5px;
        width: 100%; /* Make button full width in the mobile drawer */
        height: 40px; /* Taller touch target for mobile fingers */
    }
}

/* Small Mobile (576px and down) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .mmrs-logo-img {
        width: 140px; /* Further reduced for very small screens */
    }

    /* Adjusting the brand padding to prevent overlap with toggler */
    .navbar-brand {
        margin-right: 0;
    }
}

/* Fix for Sticky Top on Mobile */
@media (max-width: 1024px) {
    .sticky-top {
        position: sticky;
        top: 0;
    }
}



