/* Reset margins and padding */
body,
html {
    margin: 0;
    padding: 0;
}

/* Header Styles */
header {
    background-color: #2b0e10;
    color: var(--white);
    padding: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
}

.site-logo {
    height: 50px;
    width: auto;
    margin-right: 12px;
    flex-shrink: 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #e0c080;
}

.logo-container {
    padding-left: 1.5rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-grow: 0;
}

/* Navigation */
.navbar {
    display: flex;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(138, 68, 54, 0.5);
}

/* Dropdown styling */
.dropdown-container {
    position: relative;
}

.dropdown {
    display: none;
    position: absolute;
    background-color: #6C3328;
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 0 0 4px 4px;
    top: 100%;
    left: 0;
}

/* Auto dropdown on hover */
.dropdown-container:hover .dropdown {
    display: block;
}

.dropdown a {
    color: var(--white);
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s, padding-left 0.3s;
}

.dropdown a:hover {
    background-color: #8a4436;
    padding-left: 1.5rem;
}

.has-dropdown::after {
    content: '▼';
    font-size: 0.7em;
    margin-left: 5px;
    display: inline-block;
}

/* Mobile menu toggle - only visible on small screens */
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #e0c080;
    cursor: pointer;
    flex-shrink: 0;
}

.menu-toggle.active {
    transform: rotate(90deg);
}

/* Media queries for responsive design */
@media screen and (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
    }

    .logo-container {
        flex-grow: 1;
        padding-left: 0.5rem;
    }

    .logo {
        font-size: 0.9rem;
    }

    .menu-toggle {
        display: block;
        margin-right: 1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background-color: #6C3328;
        /* Changed from var(--primary-light) to #6C3328 */
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 98;
        animation: slideDown 0.5s ease-out;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }


    .nav-menu.active {
        display: flex;
    }

    .dropdown {
        position: static;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        transform: none;
        transition: max-height 0.4s ease;
        display: block;
        border-radius: 0;
    }

    .dropdown.active {
        max-height: 500px;
    }

    .dropdown a {
        padding-left: 2rem;
        background-color: rgba(0, 0, 0, 0.1);
    }

    /* Add this to properly show dropdowns when active */
    .dropdown.active {
        max-height: 500px;
        display: block;
    }

    /* Make sure container is visible */
    .dropdown-container.active .dropdown {
        display: block;
        max-height: 500px;
    }
}

@media screen and (max-width: 360px) {
    .site-logo {
        height: 35px;
        margin-right: 5px;
    }

    .logo {
        font-size: 0.95rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}