/**
 * Phoenix Clean Navbar CSS
 * Modern, clean design with working mobile menu
 */

/* Reset and Base Styles */
* {
    box-sizing: border-box;
}

/* Navbar Container */
.phoenix-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    transition: all 0.3s ease;
}

[data-theme="dark"] .phoenix-nav {
    background: rgba(20, 20, 20, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo Styles */
.nav-logo {
    flex-shrink: 0;
    z-index: 1002;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}

[data-theme="dark"] .logo-link {
    color: #fff;
}

.logo-icon {
    width: 120px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Cormorant Garamond', serif;
}

.logo-link:hover {
    transform: translateY(-2px);
}

/* Desktop Menu */
.desktop-menu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

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

.menu-item {
    position: relative;
}

.menu-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .menu-item > a {
    color: #fff;
}

.menu-item > a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
}

/* Dropdown Styles */
.dropdown-icon {
    transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-top: 10px;
    min-width: 700px;
}

[data-theme="dark"] .dropdown-menu {
    background: #2a2a2a;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    margin-top: 5px;
}

.dropdown-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 40px;
}

.dropdown-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: #d4af37;
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dropdown-column a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .dropdown-column a {
    color: #ccc;
}

.dropdown-column a:hover {
    color: #d4af37;
    transform: translateX(5px);
}

.menu-icon {
    font-size: 18px;
}

.dropdown-cta {
    grid-column: span 3;
    text-align: center;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    margin-top: 20px;
}

.dropdown-cta p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

[data-theme="dark"] .dropdown-cta p {
    color: #ccc;
}

.cta-phone {
    font-size: 20px;
    font-weight: 600;
    color: #d4af37;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-phone:hover {
    transform: scale(1.05);
}

/* Right Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle */
.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 2px solid #e0e0e0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

[data-theme="dark"] .theme-toggle {
    border-color: #444;
}

.theme-toggle:hover {
    border-color: #d4af37;
    transform: scale(1.05);
}

.theme-icon {
    position: absolute;
    transition: all 0.3s ease;
}

.theme-icon.sun {
    stroke: #333;
}

.theme-icon.moon {
    stroke: #fff;
}

[data-theme="dark"] .theme-icon.sun {
    stroke: #fff;
}

[data-theme="dark"] .theme-icon.moon {
    stroke: #d4af37;
}

[data-theme="light"] .theme-icon.sun {
    opacity: 1;
    transform: rotate(0);
}

[data-theme="light"] .theme-icon.moon {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon.sun {
    opacity: 0;
    transform: rotate(180deg);
}

[data-theme="dark"] .theme-icon.moon {
    opacity: 1;
    transform: rotate(0);
}

/* Mobile Toggle Button */
.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-toggle {
    border-color: #444;
}

.burger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

[data-theme="dark"] .burger-line {
    background: #fff;
}

.burger-line:nth-child(1) {
    top: 14px;
}

.burger-line:nth-child(2) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.burger-line:nth-child(3) {
    bottom: 14px;
}

/* Active state */
.mobile-toggle.active .burger-line:nth-child(1) {
    top: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
}

.mobile-toggle.active .burger-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .burger-line:nth-child(3) {
    bottom: 50%;
    transform: translateX(-50%) translateY(50%) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 320px;
    height: calc(100vh - 80px);
    background: #fff;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 999;
}

[data-theme="dark"] .mobile-menu {
    background: #1a1a1a;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 20px;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu-list > li {
    border-bottom: 1px solid #e0e0e0;
}

[data-theme="dark"] .mobile-menu-list > li {
    border-color: #333;
}

.mobile-menu-list > li > a {
    display: block;
    padding: 16px 0;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

[data-theme="dark"] .mobile-menu-list > li > a {
    color: #fff;
}

.mobile-menu-list > li > a:hover {
    color: #d4af37;
}

/* Submenu */
.submenu-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.submenu-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.has-submenu.active .submenu-icon {
    transform: rotate(45deg);
}

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    list-style: none;
    margin: 0;
    padding: 0;
}

.has-submenu.active .submenu {
    max-height: 600px;
}

.submenu li {
    padding: 0;
}

.submenu-header {
    font-size: 12px;
    font-weight: 600;
    color: #d4af37;
    text-transform: uppercase;
    padding: 12px 0 8px 20px;
}

.submenu a {
    display: block;
    padding: 10px 0 10px 40px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

[data-theme="dark"] .submenu a {
    color: #ccc;
}

.submenu a:hover {
    color: #d4af37;
    background: rgba(212, 175, 55, 0.05);
}

/* Mobile Menu Footer */
.mobile-menu-footer {
    margin-top: 40px;
    padding: 20px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 8px;
    text-align: center;
}

.mobile-menu-footer p {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

[data-theme="dark"] .mobile-menu-footer p {
    color: #ccc;
}

.mobile-cta-phone {
    font-size: 18px;
    font-weight: 600;
    color: #d4af37;
    text-decoration: none;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Responsive Styles */
@media (max-width: 968px) {
    .nav-container {
        padding: 0 20px;
        height: 70px;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .mobile-menu {
        top: 70px;
        height: calc(100vh - 70px);
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 16px;
        height: 60px;
    }

    .mobile-menu {
        top: 60px;
        height: calc(100vh - 60px);
        width: 100%;
    }

    .logo-icon {
        width: 90px;
        height: 36px;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .theme-toggle,
    .mobile-toggle {
        width: 40px;
        height: 40px;
    }
}

/* Scrolled State */
.phoenix-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .phoenix-nav.scrolled {
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Print Styles */
@media print {
    .phoenix-nav {
        display: none;
    }
}

/* Accessibility */
.phoenix-nav *:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

@media (max-width: 968px) {
    html {
        scroll-padding-top: 70px;
    }
}

@media (max-width: 480px) {
    html {
        scroll-padding-top: 60px;
    }
}