/* 
 * Bruz Beers Native Megamenu CSS
 * Pure CSS implementation to replace SmartMenus
 */

/* Logo styling */
.logo-column {
    background-color: #333;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-column img {
    max-height: 120px;
    width: auto;
}

/* Top container with social and locations */
.top-right-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 10px;
}

.social-container {
    padding: 0 15px 0 0;
    border-right: 1px solid #ddd;
    margin-right: 15px;
}

.social-container .social {
    margin-bottom: 0;
}

.social-container .social li a {
    font-size: 1.5em;
    padding: 5px;
}

/* Locations styling */
.locations-container {
    font-size: 0.9em;
    color: #555;
}

.locations-label {
    font-weight: bold;
    margin-right: 10px;
}

.location-link {
    margin-left: 10px;
    color: #555;
    white-space: nowrap;
}

.location-link .fa {
    margin-right: 4px;
    color: #d4af37;
}

.location-link:hover {
    color: #333;
    text-decoration: none;
}

/* Navigation container */
.navigation-container {
    position: relative;
}

.bruz-nav .navbar {
    background-color: transparent;
    border: none;
    margin-bottom: 0;
    min-height: auto;
    padding-top: 15px;
    padding-right: 0;
    margin-right: -20px;
}

/* Main navigation styling */
.navbar-nav {
    position: relative;
}

.navbar-nav > li {
    position: static; /* Important for full-width dropdowns */
}

.navbar-nav > li > a {
    font-size: 1.8em;
    padding: 20px;
    color: #333 !important;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
    color: #d4af37 !important;
    background-color: transparent !important;
}

/* Dropdown menu base styling */
.dropdown-menu {
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 1215px !important; /* 35% wider: 900 * 1.35 = 1215px */
    min-height: 260px !important; /* 35% shorter: 400 * 0.65 = 260px */
    background-color: #fff !important;
    border: 2px solid #d4af37 !important; /* Gold border around entire panel */
    border-radius: 0 !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    display: none; /* Remove !important so JavaScript can control visibility */
    z-index: 1000 !important;
    margin-top: 0 !important;
}

/* Update to match mockup structure */
.dropdown-menu .container-fluid {
    padding: 0 !important;
    height: 100% !important;
}

.dropdown-menu .row {
    margin: 0 !important;
    height: 100% !important;
    min-height: 260px !important; /* Match new shorter height */
}

/* Mega menu image styling to match mockup */
.mega-image,
.col-md-4.mega-menu-image {
    padding: 0 !important;
    height: 100% !important;
    display: flex !important;
    align-items: stretch !important;
    min-height: 260px !important; /* Match new shorter height */
}

.mega-image img,
.mega-menu-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
}

/* Mega menu links styling to match mockup */
.mega-links,
.col-md-8.mega-menu-links {
    padding: 30px 40px !important; /* Reduced vertical padding for shorter height */
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    min-height: 260px !important; /* Match new shorter height */
}

.mega-links h4,
.mega-menu-links h4 {
    margin-top: 0 !important;
    margin-bottom: 15px !important; /* Reduced spacing for shorter height */
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 1.4em !important;
}

/* Mega menu button styling */
.mega-button,
.mega-menu-action-button {
    margin-bottom: 20px !important; /* Reduced spacing for shorter height */
}

.mega-button .btn,
.mega-menu-action-button .btn {
    background-color: #d4af37 !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important; /* Slightly larger padding */
    font-weight: 600 !important;
    font-size: 1.1em !important; /* Slightly larger font */
    transition: background-color 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    border-radius: 4px !important;
}

.mega-button .btn:hover,
.mega-menu-action-button .btn:hover {
    background-color: #c4a127 !important;
    color: white !important;
    text-decoration: none !important;
}

/* Mega menu link styling to match menu-mockup exactly */
.mega-links ul,
.mega-menu-links .list-unstyled {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.mega-links ul li,
.mega-menu-links .list-unstyled li {
    margin-bottom: 0 !important;
    border-bottom: none !important; /* Remove bottom border */
    border-top: 1px solid #f0f0f0 !important; /* Add top border to create separators between items */
}

.mega-links ul li:first-child,
.mega-menu-links .list-unstyled li:first-child {
    border-top: none !important; /* Remove border from first item */
}

.mega-links ul li a,
.mega-menu-links .list-unstyled li a {
    padding: 12px 0 !important; /* Reduced padding for shorter height */
    display: block !important;
    color: #555 !important;
    font-size: 1.3em !important;
    font-weight: 500 !important;
    transition: color 0.2s ease, padding-left 0.2s ease !important;
    text-decoration: none !important;
    line-height: 1.4 !important; /* Better line height to prevent wrapping */
}

.mega-links ul li a:hover,
.mega-menu-links .list-unstyled li a:hover {
    color: #d4af37 !important;
    text-decoration: none !important;
    padding-left: 8px !important;
}

/* Mega menu columns - ensure proper spacing */
.mega-columns {
    display: flex;
    flex-wrap: wrap;
    flex-grow: 1;
}

.mega-column {
    width: 50%;
    padding-right: 30px; /* Increased padding between columns */
}

.mega-column:last-child {
    padding-right: 0; /* Remove padding from last column */
}

/* Ensure Bootstrap columns have proper spacing */
.mega-menu-links .row .col-sm-6 {
    padding-right: 30px; /* Increased padding between columns */
}

.mega-menu-links .row .col-sm-6:last-child {
    padding-right: 15px; /* Standard Bootstrap padding for last column */
}

/* Mobile responsive adjustments */
@media (max-width: 991px) {
    .dropdown-menu {
        position: static;
        width: 100%;
        min-height: auto;
        box-shadow: none;
        border: 1px solid #eee; /* Lighter border on mobile */
        border-top: 2px solid #d4af37; /* Keep gold accent on top */
        display: none;
        transform: none;
        left: auto;
    }
    
    .dropdown-menu .container-fluid {
        padding: 0;
        height: auto;
    }
    
    .dropdown-menu .row {
        height: auto;
        min-height: auto;
    }
    
    .mega-menu-image,
    .col-md-4.mega-menu-image {
        width: 100%;
        height: 200px;
        min-height: 200px;
        margin-bottom: 0;
    }
    
    .mega-menu-links,
    .col-md-8.mega-menu-links {
        width: 100%;
        padding: 25px;
        min-height: auto;
    }
    
    .mega-menu-links h4 {
        margin-bottom: 20px;
        font-size: 1.2em;
    }
    
    .mega-button,
    .mega-menu-action-button {
        margin-bottom: 20px;
    }
    
    .mega-button .btn,
    .mega-menu-action-button .btn {
        padding: 10px 20px;
        font-size: 1em;
    }
    
    .col-sm-6 {
        width: 100%;
        margin-bottom: 20px;
        padding-right: 15px;
    }
    
    .mega-column {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .navbar-nav > li > a {
        font-size: 1.4em;
        padding: 15px;
    }
    
    .mega-menu-links .list-unstyled li a {
        font-size: 1.1em;
        padding: 12px 0;
    }
}

/* Ensure dropdown doesn't interfere with page flow */
.navbar-collapse {
    position: relative;
}

/* Fix for Bootstrap navbar toggle */
.navbar-toggle {
    border: none;
    background: transparent;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background: transparent;
}

.navbar-toggle .icon-bar {
    background-color: #333;
} 