/* Custom styles for Bruz Beers */

/* Header area styling */
.header-area {
    background-color: #333333;
    padding: 0;
    position: relative;
    z-index: 100;
    border-bottom: 3px solid #cbb27c;
    min-height: 100px; /* Reduced from 140px */
}

/* Sticky header */
.header-area.banner--clone {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    background-color: #333333;
    z-index: 1000;
    border-bottom: 3px solid #cbb27c;
    padding: 0;
    min-height: 70px;
}

.header-area.banner--stick {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Adjust columns for vertical alignment */
.header-area .row {
    display: flex;
    align-items: center;
    min-height: 100px; /* Reduced from 140px */
}

/* Adjust logo in sticky mode */
.header-area.banner--clone .logo-container {
    padding: 5px 10px;
    height: auto;
    min-height: 0;
}

.header-area.banner--clone .logo img {
    max-height: 35px; /* 30% smaller than sticky 50px */
    padding: 0 10px;
}

/* Adjust navigation container in sticky mode */
.header-area.banner--clone .navigation-container {
    padding: 0;
    height: auto;
    min-height: 0;
}

.header-area.banner--clone .nav {
    padding-top: 0;
}

/* Make the sticky nav row more compact */
.header-area.banner--clone .row {
    min-height: 0;
}

/* Logo container */
.logo-container {
    padding: 10px 0; /* Reduced from 15px 0 */
    height: auto;
    display: flex;
    align-items: center;
    min-height: 80px; /* Reduced from 120px */
}

.logo {
    display: inline-block;
    position: relative;
    margin-right: auto;
}

.logo img {
    max-height: 100px; /* Increased from 78px to 100px (90px+) */
    width: auto;
    display: block;
}

/* Social icons container */
.social-container {
    text-align: right;
    padding: 10px 0;
}

.social-container .social {
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-container .social li {
    display: inline-block;
    margin-left: 15px;
}

.social-container .social li a {
    color: #fff;
    font-size: 16px;
}

.social-container .social li a:hover {
    color: #cbb27c;
}

.finder-link a {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.finder-link span {
    color: #cbb27c;
    margin-right: 5px;
}

/* Navigation container */
.navigation-container {
    text-align: right;
    padding: 10px 0; /* Reduced from 15px 0 */
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 80px; /* Reduced from 120px */
}

.navigation-container .navbar {
    margin: 0;
    min-height: 0;
    background: none;
    border: none;
    position: relative;
    display: inline-block;
    float: right;
    padding-top: 15px;
    padding-right: 0;
    margin-right: -20px;
    background-color: transparent; /* Make navbar background transparent */
}

/* Override any width restrictions in the navbar container */
.navigation-container .navbar-collapse.collapse {
    padding-right: 0;
    padding: 0;
}

.navigation-container .nav {
    position: relative;
    transform: none;
    float: right;
    display: flex;
    align-items: center;
}

.navigation-container .nav li {
    position: relative;
    margin: 0 8px;
    display: flex;
    align-items: center;
}

.navigation-container .navbar-toggle {
    margin-top: 0;
    margin-right: 0;
}

/* Dropdown menu */
.navigation-container .dropdown-menu {
    background-color: #cbb27c;
    border: none;
    border-radius: 0;
    width: 650px !important;
}

.navigation-container .dropdown-menu li {
    margin: 0;
    display: block;
}

.navigation-container .dropdown-menu li a {
    color: #333333;
    text-transform: none;
    letter-spacing: 1px;
    padding: 10px 15px;
}

.navigation-container .dropdown-menu li a:hover {
    color: #ffffff;
    background-color: #333333;
}

/* Mega Menu overrides for original dropdown styling */
.navigation-container .mega-menu-dropdown .dropdown-menu {
    background-color: #fff;
}

.navigation-container .mega-menu-dropdown .dropdown-menu li a:hover {
    color: #d4af37;
    background-color: transparent;
}

/* Increase width of container to prevent text wrapping */
.dropdown-menu .container-fluid {
    width: 100%;
    padding: 0;
}

.mega-menu-links .row {
    margin-left: -25px;
    margin-right: -25px;
}

.mega-menu-links .col-sm-6 {
    padding-left: 25px;
    padding-right: 25px;
}

.mega-menu-links .list-unstyled {
    margin-bottom: 0;
}

/* Hero section adjustments - prevent JS from changing height */
#hero {
    height: 500px !important; /* Fixed height with !important to override JS */
    min-height: 500px !important; 
    max-height: 500px !important;
    position: relative;
    overflow: hidden !important; /* Prevent content from breaking layout */
}

#hero .carousel-inner,
#hero .carousel-inner .item,
#hero.single-page,
#hero.error-page {
    height: 500px !important; /* Fixed height with !important */
    min-height: 500px !important;
    max-height: 500px !important;
    position: relative;
}

/* Adjust content positioning to be fully visible */
#hero .container {
    position: absolute;
    top: 45%; /* Moved up from 65% to 55% */
    left: 0;
    right: 0;
    transform: translateY(-50%) !important; /* Changed back to -50% for better centering */
    -webkit-transform: translateY(-50%) !important;
    -moz-transform: translateY(-50%) !important;
    padding: 60px 0 60px 0; /* Increased bottom padding to 60px */
}

/* Ensure enough space around text and buttons */
#hero h1 {
    padding-top: 30px;
    margin-top: 0 !important; /* Reduced from 30px */
}

#hero h2 {
    margin-bottom: 25px !important;
}

#hero .btn {
    margin-bottom: 30px !important; /* Add space below button */
}

/* Make sure the row containing the content has enough space */
#hero .row.blurb {
    margin-top: 40px; /* Add margin to the top of the row */
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .header-area .row {
        display: block;
    }
    
    .logo-container {
        text-align: center;
    }
    
    .social-container {
        text-align: center;
    }
    
    .social-container .social li {
        margin: 0 8px;
    }
    
    .navigation-container {
        text-align: center;
    }
    
    .navigation-container .navbar {
        float: none;
        width: 100%;
    }
    
    .navigation-container .navbar-collapse {
        clear: both;
    }
    
    .navigation-container .nav {
        float: none;
        text-align: left;
        display: block;
    }
    
    .navigation-container .nav li {
        display: block;
    }
    
    /* Mobile sticky header */
    .header-area.banner--clone {
        display: none; /* Hide sticky header on mobile */
    }
}

/* Featured Cards Section */
.featured-cards {
    background-color: #f8f8f8;
    padding: 60px 0;
    border-bottom: 1px solid #e8e8e8;
}

/* Make all cards in a row the same height */
.featured-cards .row {
    display: flex;
    flex-wrap: wrap;
}

.featured-cards .col-md-4 {
    display: flex;
    margin-bottom: 30px;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h1 {
    color: #cbb27c;
    margin-bottom: 5px;
}

.section-header h2 {
    color: #333333;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-header p {
    color: #666666;
    max-width: 700px;
    margin: 0 auto 20px;
}

.feature-card {
    background-color: #fff;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 0; /* Changed from 30px */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    width: 100%; /* Ensure it takes full width of the column */
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-card .card-image {
    position: relative;
    overflow: hidden;
    padding-top: 100%; 
    height: 0;
}

.feature-card .card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.feature-card:hover .card-image img {
    transform: scale(1.05);
}

.feature-card .card-content {
    padding: 25px;
    text-align: center;
    flex: 1; /* Make content area grow to fill available space */
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Space between the elements */
}

.feature-card h3 {
    color: #333333;
    margin-bottom: 15px;
    font-weight: 700;
    font-size: 22px;
}

.feature-card p {
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1; /* Allow paragraph to grow */
}

.feature-card .btn-wrapper {
    margin-top: auto; /* Push button to bottom */
}

.feature-card .btn {
    margin-top: 10px;
    background-color: #c09e33;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.feature-card .btn:hover {
    background-color: #333333;
}

/* Responsive adjustments for cards */
@media (max-width: 991px) {
    .feature-card {
        margin-bottom: 30px;
    }
}

@media (max-width: 767px) {
    .featured-cards {
        padding: 40px 0;
    }
    
    .feature-card .card-image {
        height: 180px;
    }
}

/* Hero carousel background images */
#hero .item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#hero .item.hero-slide-1 {
    background-image: url(../images/home-01.jpg);
}

#hero .item.hero-slide-2 {
    background-image: url(../images/brew-8378.jpg);
}

#hero .item.hero-slide-3 {
    background-image: url(../images/cja-2453.jpg);
}

/* Hero button styling */
#hero .hero-btn {
    margin-bottom: 30px;
    display: inline-block;
}

/* Vertical alignment section */
.section-vertical-center {
    position: relative;
    top: 25%;
    transform: translateY(-25%);
    padding-left: 30px;
}

/* Background image containers */
.bg-brewing {
    background-image: url(../images/brew-8398.jpg);
    background-size: cover;
    background-position: center;
}

/* Section with height limit */
.section-height-limit {
    max-height: 465px;
}

/* Background images for latest posts */
.latest-post .background.bg-events {
    background-image: url(../images/cja-2544.jpg);
}

.latest-post .background.bg-awards {
    background-image: url(../images/brew-8378.jpg);
}

/* Add styles from mockup for megamenu */

/* Logo column styling */
.logo-column {
    background-color: #333; /* Dark background */
    padding: 15px; /* Padding around logo */
    display: flex;
    align-items: center;
    justify-content: center; /* Center logo in column */
}
.logo-column img {
    max-height: 120px; /* Increased logo size */
    width: auto;
}

/* Top Right Container */
.top-right-container {
    display: flex;
    justify-content: flex-end;
    align-items: center; /* Vertically align items */
    padding-top: 15px;
    padding-bottom: 10px;
}
.social-container {
    padding: 0 15px 0 0; /* Add spacing between social and locations */
    border-right: 1px solid #ddd; /* Add a separator */
    margin-right: 15px;
}

/* Locations Styling */
.locations-container {
    font-size: 0.9em;
    color: #fff;
}
.locations-label {
    font-weight: bold;
    margin-right: 10px;
    color: #fff;
}
.location-link {
    margin-left: 10px;
    color: #fff;
    white-space: nowrap; /* Prevent wrapping */
}
.location-link .fa {
    margin-right: 4px;
    color: #d4af37; /* Gold color */
}
.location-link:hover {
    color: #d4af37;
    text-decoration: none;
}

/* Mega Menu Styling */
.navbar-nav > li.dropdown.mega-menu-dropdown {
    position: static;
}
.mega-menu-dropdown .dropdown-menu {
    width: 100%;
    left: 0;
    right: 0;
    padding: 0;
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: none;
    background-color: #fff;
    max-width: none; /* Ensure no width restriction */
}
.mega-menu-image {
    text-align: center;
    padding: 0; /* Removed padding */
    height: 100%; /* Allow image column to take full height */
    display: flex; /* Use flexbox to align image */
    align-items: stretch; /* Stretch image container */
}
.mega-menu-image img {
    max-width: 100%;
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Ensure image covers the area */
    display: block;
    width: 100%; /* Force image to take full width of its container */
}
.mega-menu-links {
    padding: 40px 50px; /* Increased padding for wider panels */
    background-color: #fff;
}
.mega-menu-links h4 {
    margin-top: 0; /* Remove top margin */
    margin-bottom: 20px; /* Add space below heading */
    font-weight: 600; /* Make heading bolder */
    color: #333;
}
.mega-menu-links .list-unstyled li a {
    padding: 15px 0; /* More vertical padding */
    display: block;
    color: #555;
    font-size: 1.5em; /* Larger text */
    font-weight: 600; /* Bolder text */
    border-bottom: none; /* Remove border-bottom */
    transition: color 0.2s ease, padding-left 0.3s ease;
}
.mega-menu-links .list-unstyled li:last-child a {
    border-bottom: none; /* Remove border for last item */
}
.mega-menu-links .list-unstyled li a:hover {
    color: #d4af37; /* Gold hover color */
    text-decoration: none;
    padding-left: 12px; /* More indent on hover to match mockup */
    background-color: transparent; /* Ensure no unwanted background on hover */
}

.mega-menu-action-button {
    margin-bottom: 30px !important; /* Ensure enough space below buttons */
}

.mega-menu-action-button .btn-default {
    background-color: #d4af37 !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important; /* Larger button */
    font-weight: 600 !important;
    font-size: 1.2em !important; /* Larger text */
    transition: background-color 0.3s ease;
}

.mega-menu-action-button .btn-default:hover {
    background-color: #c4a127 !important; /* Slightly darker gold */
    color: white !important; /* Ensure text color remains white */
}

/* Larger navigation links */
.navbar-nav > li > a {
    font-size: 1.4em; /* User adjusted size */
    padding: 10px 10px; /* User adjusted padding */
    color: #fff !important; /* Ensure white color */
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus,
.navbar-nav > li.active > a {
    color: #fff !important; /* Keep white on hover/focus/active */
    background-color: transparent !important; /* Prevent background changes */
}

.navbar-nav > li {
    margin: 0 5px; /* Give more space between nav items */
}

/* Adjust dropdown caret position for larger font */
.navbar-nav > .dropdown > a .caret {
    margin-top: 18px; /* Adjusted for even larger font */
    margin-left: 5px;
}

/* ==========================================================================
   Brand Gold Button Styles
   ========================================================================== */

.btn-brand-gold {
    background-color: #d4af37 !important; /* Updated gold color */
    color: white !important;
    border: none;
    border-radius: 3px;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: inline-block;
    text-decoration: none !important;
}

.btn-brand-gold:hover,
.btn-brand-gold:focus,
.btn-brand-gold:active {
    background-color: #c09e33 !important; /* Slightly darker gold */
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none !important;
    outline: none !important;
}

/* Styling for .btn-sm when combined with .btn-brand-gold */
/* This will apply to buttons that have both .btn-brand-gold and .btn-sm classes */
.btn-brand-gold.btn-sm {
    font-size: 13px; /* Smaller font size for .btn-sm variant */
    padding: 8px 15px; /* Smaller padding for .btn-sm variant */
    letter-spacing: 0.4px;
}

/* Applying to existing btn-default that should be gold */
/* Consider if .btn-default should always be gold or if specific elements need .btn-brand-gold added */

/* Specific overrides for sections if they use .btn-default for gold buttons */

/* Video Hero Button */
.video-hero-content .btn {
    /* Will be replaced by btn-brand-gold or ensure this inherits/matches */
}

/* Experience Section Buttons */
.experience-buttons .btn-default.experience-btn {
    /* Will be replaced by btn-brand-gold or ensure this inherits/matches */
}

/* Event Item Link Buttons */
.event-item-link.btn-default.btn-sm {
     /* Will be replaced by btn-brand-gold or ensure this inherits/matches */
}

/* Gallery "See More" Button */
.bruz-vibes-section .text-center .btn-default {
     /* Will be replaced by btn-brand-gold or ensure this inherits/matches */
} 