/* 
 * Complete Header Styles
 * Created to match the design shown in reference images
 */

/* Basic reset to ensure consistent styling */
.header * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main header container */
.header {
    background-color: #F9F4F1;
    border-bottom: 1px solid #C99F92;
    width: 100%;
    position: relative;
}

/* Top section of header */
.header .top {
    width: 100%;
}

/* Container for header content */
.header .container {
    max-width: 1297px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid layout for header sections */
.header-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 2fr;
    align-items: center;
    padding: 20px 0;
    gap: 20px;
}

/* Logo section styling */
.header-logo {
    justify-self: start;
	padding-right: 50px;
}

.header-logo img {
    max-width: 180px;
    height: auto;
}

/* Navigation section */
.header-navigation {
    justify-self: start;
	padding-left: 0;
    /* display: flex; 
    justify-content: center; */
}

/* Main navigation container */
.header-main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Menu items container */
.header-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px; /* Significant spacing between main menu items */
}

/* Individual menu items */
.header-menu > li {
    position: relative;
}

/* Menu item links */
.header-menu > li > a {
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: #174541;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    transition: color 0.3s ease;
}

/* Menu item hover state */
.header-menu > li > a:hover {
    color: #C56B31;
}

/* Dropdown menu container */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 240px;
    background-color: #FFFFFF;
    border: 1px solid #C99F92;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

/* Show dropdown on hover */
.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Dropdown navigation menu */
.dropdown-nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Dropdown menu items */
.dropdown-nav li {
    display: block;
    margin: 0;
    padding: 0;
}

/* Dropdown menu links */
.dropdown-nav li a {
    display: block;
    padding: 10px 20px;
    color: #174541;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dropdown link hover state */
.dropdown-nav li a:hover {
    background-color: #C56B31;
    color: #FFFFFF;
}

/* Actions section on the right */
.header-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Podcast button styling */
.btn__podcast {
    display: inline-block;
    padding: 10px 30px;
    background-color: transparent;
    border: 1px solid #174541;
    border-radius: 30px;
    color: #174541;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn__podcast:hover {
    background-color: #C56B31;
    border-color: #C56B31;
    color: #FFFFFF;
}

/* Contact Us link styling */
.contact-link {
    color: #174541;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #C56B31;
}

/* Menu circle button */
.menu-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 85px;
    border: 1px solid #174541;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.menu-circle span {
    color: #174541;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.menu-circle:hover {
    background-color: #174541;
}

.menu-circle:hover span {
    color: #FFFFFF;
}

/* Full screen menu panel */
.header__menu--open {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #F9F4F1;
    z-index: 1000;
    overflow-y: auto;
}

/* Close buttons for menu */
.btn__close--desktop,
.btn__close--mobile {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1px solid #174541;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #174541;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.btn__close--desktop {
    top: 30px;
    right: 30px;
}

.btn__close--mobile {
    top: 65px;
    right: 30px;
    display: none;
}

.btn__close--desktop:hover,
.btn__close--mobile:hover {
    background-color: #174541;
    color: #FFFFFF;
}

/* Menu box content layout */
.menu__box {
    display: grid;
    grid-template-columns: 35% 65%;
    padding-top: 100px;
}

/* Responsive media queries */
@media (max-width: 1200px) {
    .header-menu {
        gap: 40px;
    }
    
    .header-actions {
        gap: 15px;
    }
    
    .btn__podcast {
        padding: 8px 15px;
        font-size: 12px;
    }
    
    .menu-circle {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 991px) {
    /* Switch to mobile layout */
    .header-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .header-logo,
    .header-navigation,
    .header-actions {
        justify-self: center;
        margin-bottom: 15px;
    }
    
    /* Hide main navigation and show only in mobile menu */
    .header-navigation {
        display: none;
    }
    
    /* Show mobile close button */
    .btn__close--mobile {
        display: flex;
    }
    
    .btn__close--desktop {
        display: none;
    }
    
    /* Adjust menu box for mobile */
    .menu__box {
        grid-template-columns: 1fr;
        padding-top: 80px;
    }
    
    /* Adjust actions for mobile */
    .header-actions {
        width: 100%;
        justify-content: space-around;
        padding: 0 20px;
    }
    
    .menu-circle {
        width: 60px;
        height: 60px;
    }
    
    .menu-circle span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .header-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn__podcast {
        width: 100%;
        text-align: center;
    }
}