/* Optimized Header Styles */
.header-optimized {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-scrolled {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: opacity 0.2s;
}

.header-logo-link:hover {
    opacity: 0.9;
}

.header-logo-img {
    height: 36px;
    width: auto;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-logo-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e3a8a;
    letter-spacing: -0.01em;
}

.header-logo-subtitle {
    font-size: 0.65rem;
    color: #6b7280;
    font-weight: 500;
}

/* Desktop Navigation */
.header-nav {
    display: none;
    align-items: center;
    gap: 1.5rem;
}

.header-nav-link {
    text-decoration: none;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s;
    white-space: nowrap;
}

.header-nav-link:hover {
    color: #1d4ed8;
}

.header-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #ea580c;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
}

.header-cta-btn:hover {
    background: #c2410c;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(234, 88, 12, 0.3);
}

/* Mobile Menu Button */
.header-mobile-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: #374151;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 0.5rem;
}

.header-mobile-btn:hover {
    background: #f3f4f6;
}

/* Mobile Menu */
.header-mobile-menu {
    display: none;
    background: white;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
}

.header-mobile-menu.active {
    display: block;
}

.header-mobile-menu-content {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    gap: 0.5rem;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
}

.header-mobile-link {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    transition: background 0.2s;
}

.header-mobile-link:hover {
    background: #eff6ff;
}

.header-mobile-cta {
    margin-top: 0.5rem;
    background: #ea580c;
    color: white;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.2);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.header-mobile-cta:hover {
    background: #c2410c;
}

/* Responsive */
@media (min-width: 1024px) {
    .header-nav {
        display: flex;
    }

    .header-mobile-btn {
        display: none;
    }
}

@media (max-width: 640px) {
    .header-content {
        height: 56px;
    }

    .header-logo-img {
        height: 32px;
    }

    .header-logo-title {
        font-size: 0.85rem;
    }

    .header-logo-subtitle {
        font-size: 0.6rem;
    }
}

/* Top Bar */
.top-bar {
    background: #1e3a8a;
    color: white;
    font-size: 0.75rem;
    padding: 0.5rem 0;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-hidden-sm {
    display: none;
}

@media (min-width: 640px) {
    .top-bar-hidden-sm {
        display: block;
    }
}