/* Header styles */
.header {
    background-color: #62A780; /* Sage green */
    padding: 0; /* Reset padding */
    position: relative;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 80px; /* Fixed height for consistency */
    display: flex;
    align-items: stretch; /* Stretch children to full height */
    z-index: 1; /* Lower z-index to allow side borders to appear above */
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px; /* Total height of all three lines */
    background: linear-gradient(
        to bottom,
        #614511 0 2px,
        #D4AF37 2px 4px,
        #614511 4px 6px
    );
    z-index: 10;
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px; /* Total height of all three lines */
    background: linear-gradient(
        to bottom,
        #614511 0 2px,
        #D4AF37 2px 4px,
        #614511 4px 6px
    );
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: space-between;
    width: 100%;
    height: 100%; /* Take full height of header */
    box-sizing: border-box;
    position: relative;
}

.header-left {
    display: flex;
    align-items: center; /* Center items vertically */
    flex: 1; /* Allow this section to grow and take available space */
    min-width: 0; /* Allow content to shrink below its minimum width */
    height: 100%; /* Take full height of container */
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #614511;
    font-size: 24px;
    cursor: pointer;
    padding: 10px;
    margin: 0 10px 0 0;
    z-index: 1001; /* Ensure it's above other elements */
    position: relative;
}

.logo {
    color: #614511;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22.5px; /* Increased by 25% from 18px */
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 10px 0 0;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
    word-break: break-word;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0 20px 0 0;
    align-items: center;
    gap: 18px;
    height: 100%; /* Ensure full height */
}

.nav-link,
.nav-link:link,
.nav-link:visited,
.nav-link:hover,
.nav-link:active,
.nav-link:focus {
    color: #614511;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0 12px; /* Adjusted padding */
    border: 2px solid transparent;
    border-radius: 4px;
    outline: none;
    display: flex;
    align-items: center; /* Center text vertically */
    height: 100%; /* Take full height of parent */
    box-sizing: border-box;
}

.nav-link:hover,
.nav-link.active {
    color: #4a3508;
    text-decoration: none;
    background-color: #FFD700; /* Yellow color */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-links {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-left: 12px; /* Add spacing between nav and icons */
    flex-shrink: 0; /* Prevent icons from shrinking */
}

.social-link {
    color: #614511;
    font-size: 18px;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #4a3508;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.5);
    z-index: 999;
}

.overlay.active {
    display: block;
}

/* Hamburger Menu - Simple 3-line version */
.menu-toggle {
    display: none; /* Will be shown on mobile */
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px 5px; /* Reduced horizontal padding */
    margin: 0;
    z-index: 1000;
    position: relative;
    width: 30px;
    height: 24px;
    flex-shrink: 0;
}

.menu-toggle .hamburger-box {
    display: inline-block;
    position: relative;
    width: 30px;
    height: 20px;
}

.menu-toggle .hamburger-inner {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #614511;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle .hamburger-inner::before,
.menu-toggle .hamburger-inner::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: #614511;
    position: absolute;
    left: 0;
}

.menu-toggle .hamburger-inner::before {
    top: -8px;
}

.menu-toggle .hamburger-inner::after {
    bottom: -8px;
}

/* Mobile Navigation */
/* Reset the margin for mobile view */
@media (max-width: 768px) {
    .header-container {
        left: 0;
        padding-right: 15px;
        width: 100%;
    }
    .nav-menu {
        margin: 0; /* Reset margin for mobile */
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        padding: 10px;
        background: rgba(255, 255, 255, 0.2);
        border-radius: 4px;
        transition: all 0.3s ease;
    }
    
    .menu-toggle:hover {
        background: rgba(255, 255, 255, 0.3);
    }
    
    .logo {
        margin-left: 0;
        font-size: 16px;
        line-height: 1.2;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        max-width: 240px;
        padding-right: 10px;
        word-break: break-word;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
        margin: 0;
        list-style: none;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .nav-link {
        display: block;
        font-size: 1.2rem;
        padding: 1rem;
        color: #614511;
        text-align: left;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        background-color: #FFD700;
        color: #4a3508;
    }
    
    .social-links {
        display: none !important; /* Always hide social links on mobile */
    }
    
    /* Add overlay when menu is open */
    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
    }
    
    .overlay.active {
        display: block;
    }
    
    /* Ensure header has proper z-index */
    .header {
        position: relative;
        z-index: 1000;
    }
    
    /* Adjust header container for mobile */
    .header-container {
        padding: 8px 10px; /* Tighter padding */
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .header-left {
        flex: 1;
        min-width: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .menu-toggle {
        flex-shrink: 0;
        margin-left: 5px;
    }
    
    .logo {
        font-size: 16px; /* Smaller font for mobile */
        line-height: 1.1;
        padding: 5px 0;
    }
}
