/**
 * Enhanced Dropdown Menu Styles
 * Improved appearance and mobile usability
 */

/* Fix for remaining uppercase in navigation links */
.nav-left a {
    text-transform: capitalize;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* Dropdown toggle improvements */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    position: relative;
    padding: 8px 0;
    text-transform: capitalize; /* Change from uppercase to capitalized */
    font-size: 14px; /* Reduce font size from nav default */
}

.dropdown-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease, color 0.3s ease;
    color: var(--brand-gold);
    margin-left: 5px; /* Increased space after text */
    position: relative;
    top: 0px; /* Adjusted arrow position */
}

/* Enhanced dropdown menu appearance */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: -15px; /* Better centered under text */
    background-color: rgba(20, 20, 20, 0.95); /* Slightly transparent background */
    min-width: 240px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-top: 3px solid var(--brand-gold);
    border-radius: 0 0 8px 8px;
    padding: 8px 0;
    margin-top: 5px;
    overflow: hidden;
    backdrop-filter: blur(5px);
}

/* Improved hover effect */
.nav-dropdown:hover .dropdown-toggle i,
.nav-dropdown.active .dropdown-toggle i {
    transform: rotate(180deg);
    color: white;
}

/* Enhanced dropdown items */
.dropdown-item {
    display: block;
    padding: 12px 22px;
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 13px; /* Reduced from 14px */
    text-transform: none; /* Ensure lowercase */
    border-bottom: 1px solid rgba(255,255,255,0.08);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    font-weight: 400;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: rgba(217, 164, 66, 0.15);
    color: var(--brand-gold);
    padding-left: 28px;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background-color: var(--brand-gold);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Enhanced dropdown card styling for services */
.dropdown-card {
    background-color: rgba(40, 56, 72, 0.8);
    border-radius: 6px;
    margin: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dropdown-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.dropdown-card-header {
    background-color: var(--brand-gold);
    color: white;
    padding: 10px 15px;
    font-weight: 500;
    font-size: 14px;
}

.dropdown-card-body {
    padding: 12px 15px;
}

.dropdown-card-link {
    display: block;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dropdown-card-link:last-child {
    border-bottom: none;
}

.dropdown-card-link:hover {
    color: var(--brand-gold);
    transform: translateX(3px);
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static;
        background-color: rgba(0,0,0,0.2);
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--brand-gold);
        border-radius: 0;
        margin: 5px 0 15px 15px;
        padding: 0;
        min-width: 100%;
        max-height: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, visibility 0.3s;
    }
    
    .nav-dropdown.active .dropdown-menu,
    .dropdown-menu.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 15px 0;
        font-size: 16px;
        text-transform: capitalize;
    }
    
    .dropdown-toggle i {
        margin-right: 5px;
    }
    
    .dropdown-item {
        padding: 12px 15px;
        font-size: 14px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropdown-item:hover {
        padding-left: 20px;
    }
    
    /* Mobile dropdown card styling */
    .dropdown-card {
        margin: 8px 10px;
    }
}
