/**
 * Header & Navigation Styles
 */

/* Header Base */
.hdp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.hdp-header.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.98);
}

.hdp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

/* Logo */
.hdp-logo img {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.hdp-logo-mobile {
    display: none;
}

@media (max-width: 768px) {
    .hdp-logo img {
        height: 32px;
    }
}

/* Desktop Navigation */
.hdp-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.hdp-nav-link {
    color: var(--hdp-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    position: relative;
}

.hdp-nav-link:hover {
    color: var(--hdp-primary);
}

.hdp-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--hdp-primary);
    transition: width 0.2s ease;
}

.hdp-nav-link:hover::after {
    width: 100%;
}

@media (max-width: 1024px) {
    .hdp-nav {
        display: none;
    }
}

/* Header CTA */
.hdp-header-cta {
    display: flex;
    align-items: center;
}

@media (max-width: 1024px) {
    .hdp-header-cta {
        display: none;
    }
}

@media (max-width: 1024px) {
    .hdp-mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: var(--hdp-gray-50);
        border: none;
        border-radius: 12px;
        cursor: pointer;
        z-index: 2001;
        transition: all 0.3s ease;
    }

    .hdp-hamburger-box {
        width: 24px;
        height: 18px;
        display: inline-block;
        position: relative;
    }

    .hdp-hamburger-inner {
        display: block;
        top: 50%;
        margin-top: -1px;
    }

    .hdp-hamburger-inner,
    .hdp-hamburger-inner::before,
    .hdp-hamburger-inner::after {
        width: 24px;
        height: 2px;
        background-color: var(--hdp-gray-900);
        position: absolute;
        transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    }

    .hdp-hamburger-inner::before,
    .hdp-hamburger-inner::after {
        content: "";
        display: block;
    }

    .hdp-hamburger-inner::before {
        top: -8px;
    }

    .hdp-hamburger-inner::after {
        bottom: -8px;
    }

    /* Active Animation */
    .hdp-mobile-toggle.active .hdp-hamburger-inner {
        transform: rotate(45deg);
    }

    .hdp-mobile-toggle.active .hdp-hamburger-inner::before {
        top: 0;
        opacity: 0;
    }

    .hdp-mobile-toggle.active .hdp-hamburger-inner::after {
        bottom: 0;
        transform: rotate(-90deg);
    }
}

/* Mobile Menu (Off-Canvas) */
.hdp-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 7rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow-y: auto;
}

.hdp-mobile-menu.active {
    transform: translateX(0);
}

.hdp-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
}

.hdp-mobile-nav-link {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hdp-gray-900);
    text-decoration: none;
    padding: 0.5rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.hdp-mobile-menu.active .hdp-mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered link reveal */
.hdp-mobile-menu.active .hdp-mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.hdp-mobile-menu.active .hdp-mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.hdp-mobile-menu.active .hdp-mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.hdp-mobile-menu.active .hdp-mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

.hdp-mobile-menu.active .hdp-mobile-nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

.hdp-mobile-cta {
    margin-top: 3rem;
    width: 100%;
    max-width: 300px;
}

.hdp-mobile-cta .hdp-btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    justify-content: center;
}

/* Hide original close button as we use the integrated toggle */
.hdp-mobile-close {
    display: none;
}

/* Overlay for Mobile Menu */
.hdp-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.hdp-mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}