/* Animated Mega Menu Styles */

/* Reset all potential theme/browser button styling */
.amm-trigger,
.amm-trigger:hover,
.amm-trigger:focus,
.amm-trigger:active,
.amm-trigger:visited {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
    color: inherit !important;
}

.amm-container {
    position: relative;
    display: inline-block;
    z-index: 9999;
}

/* Hamburger Button */
.amm-trigger {
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 10001;
    transition: all 0.3s ease;
}

.amm-trigger:hover {
    transform: scale(1.1);
    background: none !important;
    color: inherit !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.amm-trigger:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.amm-trigger:active {
    outline: none;
    box-shadow: none;
    border: none;
}

/* Hamburger Lines */
.amm-trigger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
    border: none;
    outline: none;
    box-shadow: none;
}

.amm-trigger-line-top {
    transform: translateY(0) rotate(0deg);
}

.amm-trigger-line-middle {
    opacity: 1;
}

.amm-trigger-line-bottom {
    transform: translateY(0) rotate(0deg);
}

/* Active state - Transform to X */
.amm-trigger.amm-active .amm-trigger-line-top {
    transform: translateY(8px) rotate(45deg);
}

.amm-trigger.amm-active .amm-trigger-line-middle {
    opacity: 0;
}

.amm-trigger.amm-active .amm-trigger-line-bottom {
    transform: translateY(-8px) rotate(-45deg);
}

/* Overlay */
.amm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.98) 0%, rgba(255,255,255,0.92) 50%, rgba(255,255,255,0.85) 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.6s ease;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.amm-overlay.amm-active {
    opacity: 1;
    visibility: visible;
}

/* Animated Lines Container */
.amm-lines {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    width: 1px;
    z-index: 10001;
    pointer-events: none;
}

/* Top and Bottom Lines */
.amm-line-top,
.amm-line-bottom {
    position: absolute;
    left: 0;
    width: 1px;
    background: linear-gradient(to bottom, #333, rgba(51,51,51,0.5));
    /* Remove transition to avoid conflicts with animations */
}

.amm-line-top {
    top: 0;
    height: 50vh;
}

.amm-line-bottom {
    bottom: 0;
    height: 50vh;
}

/* Active Lines Animation - Lines move from edges to center */
.amm-overlay.amm-active .amm-line-top {
    animation: lineRetractTop 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.amm-overlay.amm-active .amm-line-bottom {
    animation: lineRetractBottom 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes lineRetractTop {
    0% {
        height: 50vh;
        top: 0;
    }
    100% {
        height: 0;
        top: 50%;
    }
}

@keyframes lineRetractBottom {
    0% {
        height: 50vh;
        bottom: 0;
    }
    100% {
        height: 0;
        bottom: 50%;
    }
}

/* Menu Content */
.amm-menu-content {
    position: relative;
    z-index: 10002;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease 0.3s;
    max-width: 800px;
    width: 90%;
    text-align: center;
}

.amm-overlay.amm-active .amm-menu-content {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation Styles */
.amm-navigation {
    width: 100%;
}

.amm-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.amm-menu-list li {
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: none;
}

.amm-overlay.amm-active .amm-menu-list li {
    animation: fadeInUp 0.75s ease forwards;
}

.amm-menu-list li:nth-child(1) { animation-delay: 0.45s; }
.amm-menu-list li:nth-child(2) { animation-delay: 0.6s; }
.amm-menu-list li:nth-child(3) { animation-delay: 0.75s; }
.amm-menu-list li:nth-child(4) { animation-delay: 0.9s; }
.amm-menu-list li:nth-child(5) { animation-delay: 1.05s; }
.amm-menu-list li:nth-child(6) { animation-delay: 1.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.amm-menu-list a {
    text-decoration: none;
    color: #333;
    font-size: 2rem;
    font-weight: 300;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.amm-menu-list a:hover {
    color: #B18A7B;
    transform: scale(1.05);
}

.amm-menu-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #B18A7B;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.amm-menu-list li:hover > a::after {
    width: 100%;
}

/* Prevent underline on parent items when hovering submenus */
.amm-menu-list li:has(.sub-menu):hover > a::after {
    width: auto;
    max-width: fit-content;
}

/* Submenu Styles */
.amm-menu-list .sub-menu {
    list-style: none;
    margin: 10px 0 0 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.amm-menu-list .sub-menu a {
    font-size: 1.2rem;
    font-weight: 400;
    color: #666;
}

.amm-menu-list .sub-menu a:hover {
    color: #B18A7B;
}

/* No Menu Message */
.amm-no-menu {
    color: #666;
    font-style: italic;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .amm-menu-list a {
        font-size: 1.5rem;
    }
    
    .amm-menu-list .sub-menu {
        flex-direction: column;
        gap: 10px;
    }
    
    .amm-menu-list .sub-menu a {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .amm-menu-list a {
        font-size: 1.2rem;
    }
    
    .amm-menu-content {
        width: 95%;
    }
}

/* Elementor Compatibility */
.elementor-widget-container .amm-container {
    width: 100%;
} 