/* Header Base */
.sp-header {
    background-color: var(--bg-surface);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

/* Scope the flex properties strictly to the header's container */
.sp-header .sp-container {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Setup */
.sp-logo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.sp-logo .siren {
    color: var(--siren-red);
}

.sp-logo .pyro {
    color: var(--text-heading);
}

/* Desktop Navigation */
.sp-desktop-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--siren-red);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background-color: var(--text-border);
}

.sign-in {
    font-weight: 600;
    color: var(--text-heading);
}

.sign-in:hover {
    color: var(--siren-red);
}

/* Primary CTA Button */
.btn-primary {
    background-color: var(--siren-red);
    color: #FFFFFF;
    padding: 12px 24px;
    border-radius: var(--shadow-sm);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary:hover {
    background-color: var(--siren-red-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Hamburger Menu (Mobile) */
.sp-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.sp-hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--text-heading);
    transition: var(--transition);
    border-radius: 2px;
}

/* Mobile Sidebar Overlays & Menus */
.sp-sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    max-width: 80%;
    height: 100vh;
    background-color: var(--bg-surface);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.sp-sidebar.active {
    right: 0;
}

.sp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(26, 32, 44, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    backdrop-filter: blur(4px);
}

.sp-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Sidebar Internal Styling */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--text-border);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.sp-mobile-nav {
    display: flex;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
}

.mobile-link {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-heading);
    transition: var(--transition);
    border-left: 3px solid transparent;
    padding-left: 0;
}

.mobile-link:hover, .mobile-link.active {
    color: var(--siren-red);
}

/* NEW: Custom high fidelity visual identifier for the mobile hamburger view layout state */
.mobile-link.active {
    font-weight: 700;
    border-left: 3px solid var(--siren-red);
    padding-left: 10px;
}

.mobile-divider {
    height: 1px;
    background-color: var(--text-border);
    margin: 10px 0;
}

.mobile-btn {
    width: 100%;
    margin-top: 10px;
}



/* Responsive Breakpoints */
@media (max-width: 900px) {
    .sp-desktop-nav {
        display: none;
    }
    
    .sp-hamburger {
        display: flex;
    }
}