/* ========================================
   ASL NAVIGATION - STYLES
   Shortcode: [asl_navigation]
   ======================================== */

/* ========================================
   HEADER STRUCTURE
   ======================================== */
.asl-nav-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   TOP BAR
   ======================================== */
.asl-nav-topbar {
    background: linear-gradient(135deg, #1E3A5F 0%, #2A4A6F 100%);
    padding: 8px 5%;
    max-height: 40px;
    overflow: hidden;
    transition: all 0.4s ease;
    opacity: 1;
}

.asl-nav-header.scrolled .asl-nav-topbar {
    max-height: 0;
    opacity: 0;
    padding: 0 5%;
}

.asl-nav-topbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: white;
}

.asl-nav-topbar-left {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.asl-nav-topbar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

.asl-nav-topbar-link:hover {
    color: #C6A15B !important;
}

.asl-nav-topbar-link svg {
    stroke: #FFFFFF !important;
}

.asl-nav-topbar-right {
    font-size: 13px;
    color: #FFFFFF !important;
}

/* ========================================
   MAIN NAVIGATION
   ======================================== */
.asl-nav-main {
    background: transparent; /* TRANSPARENT by default */
    backdrop-filter: blur(0px);
    box-shadow: none;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.asl-nav-header.scrolled .asl-nav-main {
    background: rgba(255, 255, 255, 0.98); /* Solid white when scrolled */
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 12px 2%;
}

.asl-nav-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

/* ========================================
   LOGO
   ======================================== */
.asl-nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.asl-nav-logo-badge {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #C77C5D 0%, #C6A15B 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 24px;
    color: white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 16px rgba(199, 124, 93, 0.3);
}

.asl-nav-header.scrolled .asl-nav-logo-badge {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.asl-nav-logo-text {
    display: flex;
    flex-direction: column;
}

.asl-nav-logo-title {
    font-family: Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: white; /* WHITE by default */
    line-height: 1;
    transition: all 0.4s ease;
}

.asl-nav-header.scrolled .asl-nav-logo-title {
    font-size: 20px;
    color: #1E3A5F; /* BLUE when scrolled */
}

.asl-nav-logo-tagline {
    font-size: 11px;
    color: #C6A15B;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 4px;
}

/* ========================================
   DESKTOP MENU
   ======================================== */
.asl-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asl-nav-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 20px;
    color: white; /* WHITE by default */
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.asl-nav-header.scrolled .asl-nav-link {
    color: #1E3A5F; /* BLUE when scrolled */
}

.asl-nav-link:hover {
    background: rgba(198, 161, 91, 0.1);
    color: #C6A15B;
}

/* Force white color on non-scrolled state */
.asl-nav-header:not(.scrolled) .asl-nav-link {
    color: white !important;
}

.asl-nav-header:not(.scrolled) .asl-nav-logo-title {
    color: white !important;
}

/* ========================================
   DROPDOWN MENU
   ======================================== */
.asl-nav-dropdown {
    position: relative;
}

.asl-nav-chevron {
    transition: transform 0.3s ease;
}

.asl-nav-dropdown:hover .asl-nav-chevron {
    transform: rotate(180deg);
}

.asl-nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 12px 0;
    min-width: 240px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0;
    z-index: 1000;
}

.asl-nav-dropdown:hover .asl-nav-dropdown-menu {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.asl-nav-dropdown-item {
    display: block;
    padding: 12px 24px;
    color: #1E3A5F;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.asl-nav-dropdown-item:hover {
    background: rgba(198, 161, 91, 0.1);
    color: #C6A15B;
    padding-left: 32px;
}

/* ========================================
   CTA BUTTON
   ======================================== */
.asl-nav-cta {
    padding: 12px 28px;
    background: linear-gradient(135deg, #C77C5D 0%, #C6A15B 100%);
    color: white !important;
    border: none;
    text-decoration: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    margin-left: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(199, 124, 93, 0.3);
}

.asl-nav-cta:hover {
    background: #1E3A5F !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.4);
}

/* ========================================
   MOBILE MENU BUTTON
   ======================================== */
.asl-nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #C77C5D 0%, #C6A15B 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(199, 124, 93, 0.3);
    align-items: center;
    justify-content: center;
}

.asl-nav-mobile-toggle:hover {
    transform: scale(1.05);
}

.asl-nav-hamburger {
    width: 24px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.asl-nav-mobile-toggle.active .asl-nav-hamburger:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.asl-nav-mobile-toggle.active .asl-nav-hamburger:nth-child(2) {
    opacity: 0;
}

.asl-nav-mobile-toggle.active .asl-nav-hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ========================================
   MOBILE MENU
   ======================================== */
.asl-nav-mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    z-index: 999;
}

.asl-nav-header.scrolled .asl-nav-mobile-menu {
    top: 66px;
}

.asl-nav-mobile-menu.active {
    max-height: 80vh;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    opacity: 1;
    overflow-y: auto;
}

.asl-nav-mobile-content {
    padding: 24px 5%;
}

.asl-nav-mobile-link {
    display: block;
    padding: 16px 20px;
    color: #1E3A5F;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 8px;
}

.asl-nav-mobile-link:hover {
    background: rgba(198, 161, 91, 0.1);
    color: #C6A15B;
}

.asl-nav-mobile-submenu {
    padding-left: 20px;
    margin-top: 8px;
}

.asl-nav-mobile-sublink {
    display: block;
    padding: 12px 20px;
    color: #3D3D3D;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-bottom: 4px;
}

.asl-nav-mobile-sublink:hover {
    background: rgba(198, 161, 91, 0.08);
    color: #C6A15B;
}

.asl-nav-mobile-cta {
    display: block;
    padding: 16px 20px;
    background: linear-gradient(135deg, #C77C5D 0%, #C6A15B 100%) !important;
    color: white !important; /* Force white text */
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(199, 124, 93, 0.3);
}

.asl-nav-mobile-cta:hover,
.asl-nav-mobile-cta:active {
    background: #1E3A5F !important; /* Blue on tap */
    color: white !important; /* Keep white text */
    box-shadow: 0 8px 24px rgba(30, 58, 95, 0.4);
}

/* ========================================
   TABLET RESPONSIVE (768px - 1024px)
   ======================================== */
@media (max-width: 1200px) {
    .asl-nav-menu {
        display: none;
    }
    
    .asl-nav-mobile-toggle {
        display: flex;
    }
    
    .asl-nav-mobile-menu {
        display: block;
    }
}

/* ========================================
   MOBILE RESPONSIVE (< 768px)
   ======================================== */
/* ========================================
   MOBILE RESPONSIVE (< 768px)
   ======================================== */
@media (max-width: 768px) {
    .asl-nav-topbar {
        padding: 10px 5%;
    }
    
    .asl-nav-topbar-container {
        justify-content: center;
    }
    
    .asl-nav-topbar-left {
        gap: 0;
        font-size: 14px;
    }
    
    .asl-nav-topbar-link {
        font-size: 14px;
    }
    
    .asl-nav-topbar-link:last-child {
        display: none;
    }
    
    .asl-nav-topbar-right {
        display: none;
    }
    
    .asl-nav-container {
        padding: 0 3%;
    }
    
    .asl-nav-logo {
        flex: 0 0 auto;
    }
    
    .asl-nav-logo-text {
        display: flex;
        flex: 1;
        justify-content: center;
        padding: 0 10px;
    }
    
    .asl-nav-logo-title {
        font-size: 18px;
    }
    
    .asl-nav-logo-tagline {
        display: none;
    }
    
    .asl-nav-mobile-toggle {
        flex: 0 0 auto;
    }
    
    .asl-nav-logo-badge {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}

/* ========================================
   SMALL MOBILE (< 480px)
   ======================================== */
@media (max-width: 480px) {
    .asl-nav-topbar-left {
        flex-direction: column;
        gap: 8px;
    }
    
    .asl-nav-logo-badge {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ========================================
   ELEMENTOR EDITOR SAFETY
   ======================================== */
body.elementor-editor-active .asl-nav-header * {
    opacity: 1;
    animation: none;
    transform: none;
}