/* --- MAIN NAVBAR --- */
.main-nav {
    background-color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Deeper corporate shadow */
    border-bottom: 3px solid var(--primary-blue); /* Solid anchor line at the bottom */
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    max-height: 55px; /* Perfect size for the Provenance logo */
    width: auto;
}

/* --- DESKTOP LINKS --- */
.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links > li {
    position: relative; /* Crucial for dropdown positioning */
}

.nav-links a {
    color: var(--dark-text);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase; /* Corporate look */
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    display: block;
    padding: 15px 0;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

/* --- DROPDOWN MENU STYLING --- */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    top: 100%;
    left: 0;
    border-top: 3px solid var(--primary-blue);
    z-index: 1001;
    padding: 10px 0;
}

/* Hover effect to show dropdown on Desktop */
.dropdown:hover .dropdown-content {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content a {
    color: var(--dark-text);
    padding: 12px 20px;
    text-transform: capitalize; /* Turns off uppercase for sub-links */
    font-size: 15px;
    font-weight: 500;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.dropdown-content li:last-child a {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: var(--primary-blue);
    padding-left: 26px; /* Cool hover indent effect */
}

.arrow {
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}

/* --- BUTTON --- */
.nav-actions {
    display: flex;
    align-items: center;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #082975;
    box-shadow: 0 4px 12px rgba(10, 54, 157, 0.3);
}

/* --- HAMBURGER MENU (MOBILE) --- */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1002; /* Keeps hamburger above the slide-out menu */
}

.bar {
    width: 30px;
    height: 3px;
    background-color: var(--primary-blue); /* Now clearly visible */
    transition: 0.3s;
    border-radius: 2px;
}

/* --- MOBILE RESPONSIVENESS (< 992px for tablets/phones) --- */
/* --- MOBILE RESPONSIVENESS (< 992px for tablets/phones) --- */
@media (max-width: 992px) {
    .hamburger {
        display: flex; 
    }

    .nav-actions {
        display: none; 
    }

    /* The Mobile Menu Panel */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%; 
        flex-direction: column;
        background-color: var(--white);
        width: 85%; /* Wider for better touch targets */
        max-width: 350px;
        height: 100vh;
        padding-top: 80px;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
        align-items: flex-start;
        padding-left: 0; /* Reset for full-width items */
        overflow-y: auto; /* Allows scrolling if menu is long */
    }

    .nav-links.active {
        right: 0; 
    }

    /* List Items take full width */
    .nav-links > li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0; /* Clean separators */
    }

    .nav-links a {
        padding: 18px 30px; 
        width: 100%;
        display: flex;
        justify-content: space-between; /* Pushes dropdown arrow to the far right */
        align-items: center;
    }

    /* Mobile Dropdown Fix */
    .dropdown-content {
        position: relative;
        box-shadow: none;
        border-top: none;
        background-color: #f8f9fa; /* Light grey so sub-options stand out */
        top: 0; 
        width: 100%;
        padding-left: 0;
        display: none; 
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .dropdown-content a {
        padding: 12px 30px 12px 50px; /* Indents sub-links perfectly */
        font-size: 13px;
        border-bottom: none;
        color: #555;
    }

    /* Hamburger "X" Animation */
    .hamburger.toggle .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamburger.toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.toggle .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}