/* --- CSS VARIABLES (Ensure these match your main stylesheet) --- */
:root {
    --moss: #1B3022;
    --blush: #F4DAD3;
    --rose: #C38D9E;
    --gold: #D4AF37;
    --cream: #FFF9F5;
    --white: #ffffff;
    --slate: #5A6A5F;
}

/* --- HEADER BASE --- */
header {
    background: var(--white);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.logo-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--moss);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1px;
}

/* --- NAVIGATION (DESKTOP) --- */
nav {
    display: flex;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--moss);
    margin-left: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: 0.3s ease;
}

nav a:hover {
    color: var(--rose);
}

/* --- DROPDOWN (DESKTOP EFFECT) --- */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: block; /* Kept block to allow for opacity/transform animations */
    position: absolute;
    background: var(--white);
    top: 100%;
    left: 15px;
    min-width: 220px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 10;
    padding: 10px 0;
    border-radius: 8px;
    
    /* Effect Properties */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    margin: 0 !important; /* Overrides nav a margins */
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 1px;
}

.dropdown-content a:hover {
    background: var(--cream);
    color: var(--rose);
    padding-left: 25px; /* Slight nudge effect */
}

/* --- HAMBURGER BAR --- */
.menu-toggle {
    display: none; /* Hidden on desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--moss);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hamburger Animation to 'X' */
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }

/* --- FIXED MOBILE VIEW --- */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--white);
        width: 100%;
        display: none; /* Controlled by JS .active */
        flex-direction: column;
        align-items: stretch; /* Stretch links to full width for equal spacing */
        padding: 10px 0; /* Equal breathing room top and bottom */
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
    }

    nav.active {
        display: flex;
    }

    nav a {
        /* CRITICAL: Remove desktop margin and reset for mobile */
        margin: 0 !important; 
        padding: 15px 10%; /* Equal 10% padding on left and right */
        width: 100%;
        font-size: 0.95rem;
        border-bottom: 1px solid #f9f9f9;
        display: block; /* Ensure the whole row is clickable */
        text-align: left; /* Keeps text aligned, but container is equal */
    }

    /* Mobile Dropdown Fix */
    .dropdown {
        width: 100%;
    }

    .dropdown-content {
        position: static;
        display: none; 
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: #fbfbfb; /* Slightly different shade for depth */
        width: 100%;
        padding: 0;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding-left: 13%; /* Further indent for clear hierarchy */
        border-bottom: none;
        background: #fdfdfd;
    }
    
    /* Remove border from the last item */
    nav a:last-child {
        border-bottom: none;
    }
}