/* ===========================================
   DivestWorld - Header Styles
   Minimal Professional Design (Stripe/Flippa/Acquire)
   =========================================== */

/* Header Base */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Header Container */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 72px;
}

/* Logo */
.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #0A1F44;
    letter-spacing: -0.5px;
}

.header-logo:hover .logo-text {
    color: #1F5FBF;
}

/* Center Navigation */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #111827;
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: #1F5FBF;
    background: rgba(31, 95, 191, 0.06);
}

.nav-link.active {
    color: #1F5FBF;
}

/* Right Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.header-actions .nav-link {
    color: #6B7280;
}

.header-actions .nav-link:hover {
    color: #111827;
    background: transparent;
}

/* Get Started Button */
.btn-get-started {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    background: #1F5FBF;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-get-started:hover {
    background: #1A4FA8;
    color: #FFFFFF;  /* explicit — beats global a:hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(31, 95, 191, 0.25);
}

.btn-get-started:focus-visible {
    outline: 3px solid rgba(31, 95, 191, 0.4);
    outline-offset: 2px;
    color: #FFFFFF;
}

.btn-get-started:active {
    transform: translateY(0);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.mobile-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: #111827;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile Toggle Active State */
.mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 1px solid #E5E7EB;
    padding: 16px 24px 24px;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mobile-menu.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #111827;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 10px;
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    background: rgba(31, 95, 191, 0.06);
    color: #1F5FBF;
}

.mobile-divider {
    height: 1px;
    background: #E5E7EB;
    margin: 12px 0;
}

.mobile-cta {
    display: block;
    text-align: center;
    margin-top: 8px;
}

/* Prevent scroll when menu open */
body.menu-open {
    overflow: hidden;
}
