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

.navigation-container .navbar-collapse {
    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 .nav li a {
    padding: 10px 15px;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    line-height: 1.4;
}

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

.navigation-container .nav li span {
    position: relative;
    display: inline-block;
    text-align: center;
}

.navigation-container .nav li span:before,
.navigation-container .nav li span:after {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 1px;
    height: 0;
    content: '';
    transition: .6s height ease;
    background: #cbb27c;
}

.navigation-container .nav li span:after {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
}

.navigation-container .nav li:hover span:before,
.navigation-container .nav li:hover span:after {
    height: 100%;
}

.navigation-container .nav li a:before,
.navigation-container .nav li a:after {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 0;
    height: 1px;
    content: '';
    transition: .3s width ease;
    background: #cbb27c;
}

.navigation-container .nav li a:after {
    top: auto;
    right: 0;
    bottom: 0;
    left: auto;
}

.navigation-container .nav li:hover a:before,
.navigation-container .nav li:hover a:after {
    width: 100%;
}

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

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

.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;
}

/* 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: #cbb27c;
    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);
} 