
/* ================================
   NAVIGATION STYLES - navStyles.css
   ================================ */

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
    height: 70px;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.nav-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-logo h2 {
    font-family: var(--font-primary);
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--pure-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-menu li.has-dropdown > .dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0;
    background: none;
    border: none;
    color: var(--pure-white);
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu li.has-dropdown > .dropdown-trigger::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-gradient);
    transition: width 0.3s ease;
}

.nav-menu li.has-dropdown > .dropdown-trigger::after {
    content: '\25BC';
    font-size: 0.6rem;
    transform: translateY(-1px);
    transition: transform 0.3s ease;
}

.nav-menu li.has-dropdown > .dropdown-trigger:hover::before,
.nav-menu li.has-dropdown > .dropdown-trigger:focus-visible::before,
.nav-menu li.has-dropdown.open > .dropdown-trigger::before {
    width: 100%;
}

.nav-menu li.has-dropdown.open > .dropdown-trigger::after {
    transform: translateY(-1px) rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 18px);
    left: 50%;
    transform: translate(-50%, 10px);
    background: rgba(10, 10, 12, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.2rem 1.4rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 0.75rem 1.5rem;
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
    min-width: 360px;
    z-index: 1000;
}

.nav-menu li.has-dropdown.open > .dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown-link::before {
    content: none;
}

.dropdown-link:hover,
.dropdown-link:focus {
    color: var(--accent-red);
    transform: translateX(4px);
}

.nav-menu a,
.nav-menu button {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: var(--pure-white);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--red-gradient);
    transition: width 0.3s ease;
}

.nav-menu button {
    background: none;
    border: none;
    cursor: pointer;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active,
.nav-menu button:hover,
.nav-menu button:focus-visible,
.nav-menu li.has-dropdown.open > .dropdown-trigger {
    color: var(--accent-red);
}

/* Navigation Actions (Sign In Button) */
.nav-actions {
    display: flex;
    align-items: center;
    z-index: 1001;
}

.sign-in-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, var(--accent-red), #dc143c);
    color: var(--pure-white);
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    box-shadow: 0 2px 10px rgba(229, 0, 0, 0.3);
}

.sign-in-btn:hover {
    background: linear-gradient(135deg, #dc143c, var(--accent-red));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.sign-in-btn:active {
    transform: translateY(0);
}

.profile-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--pure-white);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-6px, 6px);
    background: var(--accent-red);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-6px, -6px);
    background: var(--accent-red);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80vw;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-black), var(--secondary-black));
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

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

.mobile-menu-content {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--dark-gray);
}

.mobile-menu-header h2 {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    color: var(--pure-white);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--accent-red);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.mobile-menu-close:hover {
    background: rgba(229, 0, 0, 0.1);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
}

.mobile-nav-links li {
    margin-bottom: 0;
}

.mobile-nav-links a {
    display: block;
    color: var(--pure-white);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.mobile-nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--red-gradient);
    transition: width 0.3s ease;
}

.mobile-nav-links a:hover::before,
.mobile-nav-links a.active::before {
    width: 30px;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
    color: var(--accent-red);
    padding-left: 40px;
}

.mobile-nav-links .mobile-submenu-heading,
.mobile-nav-links > li > a.mobile-sub-link {
    display: none;
}

.mobile-services {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-services-toggle {
    width: 100%;
    background: none;
    border: none;
    color: var(--pure-white);
    text-transform: uppercase;
    font-family: var(--font-secondary);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mobile-services-toggle:hover,
.mobile-services-toggle:focus {
    color: var(--accent-red);
}

.mobile-services.open .mobile-services-toggle {
    color: var(--accent-red);
}

.mobile-services-toggle .toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    font-size: 1rem;
    line-height: 1;
    transition: all 0.3s ease;
}

.mobile-services-toggle[aria-expanded="true"] .toggle-icon {
    background: var(--accent-red);
    color: var(--pure-white);
    transform: rotate(45deg);
}

.mobile-services-submenu {
    list-style: none;
    margin: 0;
    padding: 0 0 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-services-submenu[hidden] {
    display: none !important;
}

.mobile-services.open .mobile-services-submenu {
    padding-top: 0.5rem;
}

.mobile-services-submenu .mobile-sub-link {
    padding: 0.75rem 0;
    padding-left: 0.75rem;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-services-submenu .mobile-sub-link:last-child {
    border-bottom: none;
}

.mobile-services-submenu .mobile-sub-link::before {
    left: 0.75rem;
}

.mobile-services-submenu .mobile-sub-link:hover,
.mobile-services-submenu .mobile-sub-link.active {
    padding-left: 1.5rem;
}

/* Mobile Sign In Button */
.mobile-sign-in {
    margin-top: 1.5rem !important;
    padding-top: 1.5rem;
    border-top: 2px solid var(--dark-gray);
}

.mobile-sign-in a {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--accent-red), #dc143c) !important;
    color: var(--pure-white) !important;
    border-radius: 30px !important;
    padding: 16px 24px !important;
    border-bottom: none !important;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(229, 0, 0, 0.4);
}

.mobile-sign-in a:hover {
    background: linear-gradient(135deg, #dc143c, var(--accent-red)) !important;
    transform: translateY(-2px);
    padding-left: 24px !important;
    box-shadow: 0 6px 20px rgba(229, 0, 0, 0.6);
}

.mobile-sign-in a::before {
    display: none !important;
}

.mobile-sign-in .profile-icon {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.mobile-menu-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    text-align: center;
}

.mobile-menu-footer p {
    color: var(--medium-gray);
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Responsive Navigation Breakpoints */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .nav-container {
        padding: 0 40px;
    }
    
    .nav-menu {
        gap: 2.5rem;
    }
    
    .nav-menu a {
        font-size: 1.1rem;
    }
    
    .sign-in-btn {
        font-size: 1rem;
        padding: 12px 20px;
    }
}

/* Desktop (1200px - 1439px) */
@media (min-width: 1200px) and (max-width: 1439px) {
    .nav-menu {
        gap: 2rem;
    }
}

/* Small Desktop/Large Laptop (1024px - 1199px) */
@media (min-width: 1024px) and (max-width: 1199px) {
    .nav-container {
        padding: 0 30px;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
    }
    
    .sign-in-btn {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .sign-in-btn span {
        display: none;
    }
    
    .profile-icon {
        width: 20px;
        height: 20px;
    }
}

/* Tablet Landscape (901px - 1023px) */
@media (min-width: 901px) and (max-width: 1023px) {
    .nav-container {
        padding: 0 25px;
    }
    
    .nav-menu {
        gap: 1.25rem;
    }
    
    .nav-menu a {
        font-size: 0.9rem;
    }
    
    .sign-in-btn span {
        display: none;
    }
    
    .sign-in-btn {
        padding: 8px 12px;
    }
}

/* Tablet Portrait and below (900px and down) */
@media (max-width: 900px) {
    .nav-menu,
    .nav-actions {
        display: none !important;
    }
    
    .hamburger {
        display: flex;
    }
}

/* Mobile Landscape (641px - 768px) */
@media (min-width: 641px) and (max-width: 768px) {
    .nav-container {
        padding: 0 25px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .mobile-menu {
        width: 320px;
        max-width: 75vw;
    }
}

/* Mobile Portrait (481px - 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    .nav-container {
        padding: 0 20px;
    }
    
    .nav-logo h2 {
        font-size: 1.2rem;
    }
    
    .mobile-menu {
        width: 280px;
        max-width: 80vw;
    }
    
    .mobile-nav-links a {
        font-size: 1rem;
        padding: 0.9rem 0;
    }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
    .navbar {
        height: 60px;
    }
    
    .nav-container {
        padding: 0 15px;
        height: 60px;
    }
    
    .nav-logo img {
        height: 35px;
    }
    
    .nav-logo h2 {
        font-size: 1.1rem;
    }
    
    .hamburger span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }
    
    .mobile-menu {
        width: 260px;
        max-width: 85vw;
    }
    
    .mobile-menu-content {
        padding: 15px;
    }
    
    .mobile-menu-header h2 {
        font-size: 1.1rem;
    }
    
    .mobile-menu-close {
        font-size: 1.8rem;
        width: 35px;
        height: 35px;
    }
    
    .mobile-nav-links a {
        font-size: 0.95rem;
        padding: 0.8rem 0;
    }
    
    .mobile-sign-in a {
        font-size: 0.9rem;
        padding: 14px 20px !important;
    }
    
    .mobile-menu-footer p {
        font-size: 0.85rem;
    }
}

/* Extra Small Mobile (280px - 319px) */
@media (max-width: 319px) {
    .nav-container {
        padding: 0 10px;
    }
    
    .nav-logo h2 {
        font-size: 1rem;
    }
    
    .mobile-menu {
        width: 240px;
        max-width: 90vw;
    }
    
    .mobile-nav-links a {
        font-size: 0.9rem;
    }
    
    .mobile-sign-in a {
        font-size: 0.85rem;
        padding: 12px 18px !important;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .mobile-menu-content {
        padding: 10px 20px;
    }
    
    .mobile-menu-header {
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
    }
    
    .mobile-nav-links a {
        padding: 0.6rem 0;
        font-size: 0.95rem;
    }
    
    .mobile-sign-in {
        margin-top: 1rem !important;
        padding-top: 1rem;
    }
    
    .mobile-sign-in a {
        padding: 12px 20px !important;
        margin-bottom: 1rem;
    }
    
    .mobile-menu-footer {
        padding-top: 1rem;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .navbar,
    .hamburger span,
    .mobile-menu,
    .mobile-menu-overlay,
    .nav-menu a::after,
    .mobile-nav-links a::before,
    .sign-in-btn {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.nav-menu a:focus,
.mobile-nav-links a:focus,
.hamburger:focus,
.mobile-menu-close:focus,
.sign-in-btn:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .navbar {
        background: rgba(0, 0, 0, 0.98);
        border-bottom: 2px solid var(--accent-red);
    }
    
    .nav-menu a,
    .mobile-nav-links a {
        color: var(--pure-white);
    }
    
    .nav-menu a:hover,
    .nav-menu a.active,
    .mobile-nav-links a:hover,
    .mobile-nav-links a.active {
        color: var(--accent-red);
        background: rgba(229, 0, 0, 0.1);
    }
    
    .sign-in-btn {
        border: 2px solid var(--accent-red);
    }
}

/* Print styles */
@media print {
    .navbar {
        display: none;
    }
}

/* Additional responsive utilities for navigation */
.nav-hide-mobile {
    display: block;
}

.nav-show-mobile {
    display: none;
}

@media (max-width: 900px) {
    .nav-hide-mobile {
        display: none;
    }
    
    .nav-show-mobile {
        display: block;
    }
}

/* Navigation logo text selection prevention */
.nav-logo h2 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Mobile menu scroll enhancement */
.mobile-menu {
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Backdrop blur fallback for older browsers */
@supports not (backdrop-filter: blur(10px)) {
    .navbar {
        background: rgba(10, 10, 10, 0.98);
    }
    
    .mobile-menu-overlay {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Touch target size optimization for mobile */
@media (max-width: 900px) {
    .hamburger {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .mobile-menu-close {
        min-width: 44px;
        min-height: 44px;
    }
    
    .mobile-nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .mobile-sign-in a {
        min-height: 48px;
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}