/* ============================================
   PREMIUM HEADER - Desmond Digital Services
   Luxury Art Deco Navigation with Glass-morphism
   ============================================ */

:root {
    --header-height: 80px;
    --header-bg: rgba(10, 8, 7, 0.7);
    --header-bg-solid: rgba(10, 8, 7, 0.95);
    --header-border: rgba(212, 165, 116, 0.15);
    --nav-hover: rgba(0, 107, 94, 0.1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ============================================
   HEADER CONTAINER
   ============================================ */

.premium-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    height: var(--header-height);
    background: transparent;
    transition: all 0.4s var(--transition-smooth);
    pointer-events: none;
}

.premium-header.scrolled {
    background: var(--header-bg-solid);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--header-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.premium-header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--celestial-gold) 20%,
        var(--celestial-teal) 50%,
        var(--celestial-gold) 80%,
        transparent 100%
    );
    opacity: 0.5;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    pointer-events: auto;
}

/* ============================================
   BRAND / LOGO
   ============================================ */

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    text-decoration: none;
    position: relative;
    z-index: 10001;
    transition: transform 0.3s var(--transition-smooth);
}

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

.brand-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    background: linear-gradient(135deg, var(--celestial-teal) 0%, var(--celestial-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.brand-name::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--celestial-teal), var(--celestial-gold));
    transition: width 0.4s var(--transition-smooth);
}

.brand:hover .brand-name::after {
    width: 100%;
}

.brand-tagline {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(212, 165, 116, 0.6);
    transition: color 0.3s ease;
}

.brand:hover .brand-tagline {
    color: rgba(212, 165, 116, 0.9);
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 100%;
}

.nav-link {
    position: relative;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s var(--transition-smooth);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--nav-hover);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: var(--celestial-gold);
    transform: translateY(-1px);
}

.nav-link.active {
    color: var(--celestial-gold);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--celestial-teal), var(--celestial-gold));
    border-radius: 2px;
}

/* NEW badge */
.badge-new {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff006e, #8338ec);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.9; }
}

/* ============================================
   CTA & ACTIONS
   ============================================ */

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s var(--transition-smooth);
    position: relative;
}

.search-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 107, 94, 0.2);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s var(--transition-smooth);
}

.search-icon:hover::before {
    opacity: 1;
    transform: scale(1);
}

.search-icon:hover {
    color: var(--celestial-gold);
}

.cta-button {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
    background: linear-gradient(135deg, var(--celestial-teal) 0%, var(--celestial-teal-dark) 100%);
    color: var(--celestial-cream);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 107, 94, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--celestial-gold) 0%, #b8941f 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* ============================================
   MOBILE MENU
   ============================================ */

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 107, 94, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(0, 107, 94, 0.2);
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: var(--celestial-gold);
    border-radius: 2px;
    transition: all 0.3s var(--transition-smooth);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(400px, 80vw);
    height: 100vh;
    background: rgba(10, 8, 7, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid var(--header-border);
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    padding: 6rem 2rem 2rem;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s var(--transition-smooth);
}

.mobile-drawer.active {
    transform: translateX(0);
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-link {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(212, 165, 116, 0.1);
    transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: rgba(0, 107, 94, 0.1);
    border-color: var(--celestial-gold);
    color: var(--celestial-gold);
    transform: translateX(8px);
}

.mobile-industries {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
}

.mobile-industries-title {
    font-family: 'Playfair Display', serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--celestial-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
}

.mobile-industry-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-industry-link:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--celestial-cream);
    transform: translateX(8px);
}

.mobile-industry-icon {
    font-size: 1.5rem;
}

.mobile-cta {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(212, 165, 116, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .nav {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .search-icon {
        display: none;
    }

    .header-actions {
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    .mobile-drawer {
        width: min(350px, 85vw);
        padding: 5rem 1.75rem 2rem;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header-inner {
        padding: 0 1.5rem;
    }

    .brand-name {
        font-size: 1.5rem;
    }

    .brand-tagline {
        font-size: 0.65rem;
    }

    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .mobile-drawer {
        width: min(320px, 90vw);
        padding: 5rem 1.5rem 2rem;
    }
}

@media (max-width: 480px) {
    .mobile-drawer {
        width: 100%;
        padding: 5rem 1rem 2rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Staggered animation for mega menu items */
.mega-menu-item:nth-child(1) { animation-delay: 0.05s; }
.mega-menu-item:nth-child(2) { animation-delay: 0.1s; }
.mega-menu-item:nth-child(3) { animation-delay: 0.15s; }
.mega-menu-item:nth-child(4) { animation-delay: 0.2s; }

.mega-menu.active .mega-menu-item {
    animation: fadeInDown 0.5s var(--transition-smooth) forwards;
}

/* Staggered animation for mobile menu */
.mobile-drawer.active .mobile-nav-link,
.mobile-drawer.active .mobile-industry-link {
    animation: slideInRight 0.4s var(--transition-smooth) forwards;
}

.mobile-drawer.active .mobile-nav-link:nth-child(1) { animation-delay: 0.05s; }
.mobile-drawer.active .mobile-nav-link:nth-child(2) { animation-delay: 0.1s; }
.mobile-drawer.active .mobile-nav-link:nth-child(3) { animation-delay: 0.15s; }
.mobile-drawer.active .mobile-nav-link:nth-child(4) { animation-delay: 0.2s; }
.mobile-drawer.active .mobile-nav-link:nth-child(5) { animation-delay: 0.25s; }
.mobile-drawer.active .mobile-nav-link:nth-child(6) { animation-delay: 0.3s; }
.mobile-drawer.active .mobile-nav-link:nth-child(7) { animation-delay: 0.35s; }

/* ============================================
   ACCESSIBILITY
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.nav-link:focus-visible,
.cta-button:focus-visible,
.search-icon:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid var(--celestial-gold);
    outline-offset: 4px;
}
