/* ============================================
   HEADER - MOBILE-FIRST
   ============================================ */

:root {
    --header-height:    80px;
    --header-height-sm: 65px;
    --header-height-xs: 60px;
}

/* ============================================
   HEADER WRAPPER
============================================ */
.site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 80px;
    z-index: 99999;
    background: rgba(9,13,22,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,183,3,0.28);
    box-shadow: 0 8px 32px rgba(9,13,22,0.35);
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: height var(--ease), background var(--ease);
}

.site-header.scrolled {
    height: 66px;
    background: rgba(9,13,22,0.98);
}

/* Mobile header */
@media (max-width: 640px) {
    .site-header {
        height: var(--header-height-sm, 65px);
    }
    .site-header.scrolled {
        height: 56px;
    }
}

@media (max-width: 420px) {
    .site-header {
        height: var(--header-height-xs, 60px);
    }
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ============================================
   LOGO - 35% BIGGER (Full Section)
============================================ */

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    line-height: 1;
}

/* ✅ Desktop Logo */
.header-logo-img {
    height: 58px !important;
    max-height: 58px !important;
    width: auto !important;
    max-width: 180px !important;
    aspect-ratio: 1536 / 1024;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.4));
    transition: height var(--ease);
    display: block !important;
}

/* ✅ Scrolled State - Desktop */
.site-header.scrolled .header-logo-img {
    height: 48px !important;
    max-height: 48px !important;
}

/* ✅ Mobile (640px and below) */
@media (max-width: 640px) {
    .header-logo-img {
        height: 46px !important;
        max-height: 46px !important;
    }
    
    .site-header.scrolled .header-logo-img {
        height: 40px !important;
        max-height: 40px !important;
    }
}

/* ✅ Small Phones (420px and below) */
@media (max-width: 420px) {
    .header-logo-img {
        height: 42px !important;
        max-height: 42px !important;
    }
}
/* ============================================
   DESKTOP NAV
============================================ */
.desktop-menu { 
    display: flex; 
    align-items: center; 
}

.main-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.main-menu li a {
    color: #E2E8F0;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: var(--pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color var(--ease-fast), background var(--ease-fast);
}

.main-menu li a:hover,
.main-menu li.current-menu-item > a {
    color: var(--gold);
    background: rgba(255,183,3,0.12);
}

/* ============================================
   HEADER RIGHT
============================================ */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,183,3,0.22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: background var(--ease-fast), border-color var(--ease-fast), transform var(--ease-fast);
}

.icon-btn svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-btn:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    transform: translateY(-2px);
    box-shadow: var(--glow-red);
}

.icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 4px;
    background: #FFB703 !important;
    color: #090D16 !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    border-radius: 10px;
    border: 2px solid #090D16 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 10;
}

/* ============================================
   CTA BUTTON
============================================ */
.header-cta { 
    display: flex; 
    align-items: center; 
}

.cta-btn {
    background: var(--grad-flame);
    color: var(--navy) !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 18px rgba(255,183,3,0.32);
    transition: transform var(--ease), box-shadow var(--ease);
}

.cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(255,183,3,0.48);
}

/* Mobile hide CTA */
@media (max-width: 640px) {
    .header-cta { 
        display: none; 
    }
}

/* ============================================
   HAMBURGER MENU
============================================ */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .25s ease;
}

.menu-toggle.active span:nth-child(1),
.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2),
.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3),
.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .desktop-menu { 
        display: none !important; 
    }
    .menu-toggle { 
        display: flex !important; 
    }
}

/* ============================================
   SCROLL PROGRESS BAR
============================================ */
.scroll-progress {
    position: fixed;
    top: 80px;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--grad-flame);
    z-index: 9998;
    transition: width .1s linear;
}

@media (max-width: 640px) {
    .scroll-progress {
        top: 65px;
    }
}

@media (max-width: 420px) {
    .scroll-progress {
        top: 60px;
    }
}

/* ============================================
   MOBILE OVERLAY
============================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(9,13,22,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99990;
}

.mobile-overlay.open,
.mobile-overlay.active { 
    display: block; 
}

/* ============================================
   MOBILE MENU DRAWER
============================================ */
.mobile-menu {
    position: fixed;
    top: var(--header-height, 80px);
    bottom: 0;
    inset-inline-end: -300px;
    width: 280px;
    height: calc(100vh - var(--header-height, 80px));
    background: var(--navy);
    border-left: 1px solid rgba(255,183,3,0.25);
    z-index: 99995;
    transition: inset-inline-end var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

@media (max-width: 640px) {
    .mobile-menu {
        top: var(--header-height-sm, 65px);
        height: calc(100vh - var(--header-height-sm, 65px));
    }
}

@media (max-width: 420px) {
    .mobile-menu {
        top: var(--header-height-xs, 60px);
        height: calc(100vh - var(--header-height-xs, 60px));
    }
}

.mobile-menu.open,
.mobile-menu.active { 
    inset-inline-end: 0; 
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
    overflow-y: auto;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,183,3,0.18);
}

.mobile-menu-header h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.mobile-menu-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,183,3,0.25);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s ease;
}

.mobile-menu-close:hover { 
    background: var(--crimson); 
}

.mobile-nav {
    list-style: none;
    margin-bottom: 24px;
}

.mobile-nav li { 
    margin-bottom: 6px; 
}

.mobile-nav li a {
    display: block;
    color: #E2E8F0;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 16px;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
}

.mobile-nav li a:hover { 
    background: rgba(255,183,3,0.12); 
    color: var(--gold); 
}

.mobile-cta { 
    margin-top: 0; 
    margin-bottom: 20px;
}

.mobile-cta .cta-btn {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 24px;
}

/* ============================================
   PRS CRACKERS SPARTAN PRELOADER STYLES
============================================ */
.prs-preloader {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #090D16;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s ease;
}

.prs-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    text-align: center;
}

.preloader-logo-wrap {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    max-width: 130px;
    height: auto;
    object-fit: contain;
    z-index: 2;
    filter: drop-shadow(0 0 16px rgba(255, 183, 3, 0.45));
    animation: preloaderLogoPulse 1.8s ease-in-out infinite alternate;
}

.preloader-spinner-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 183, 3, 0.12);
    border-top: 3.5px solid #FFB703;
    border-right: 3.5px solid #FF2A00;
    animation: preloaderSpin 1s linear infinite;
    box-shadow: 0 0 24px rgba(255, 42, 0, 0.3);
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderLogoPulse {
    0% { transform: scale(0.96); filter: drop-shadow(0 0 10px rgba(255, 183, 3, 0.3)); }
    100% { transform: scale(1.05); filter: drop-shadow(0 0 24px rgba(255, 42, 0, 0.6)); }
}

.preloader-text-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 183, 3, 0.25);
    padding: 8px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.preloader-dots-pulse {
    font-size: 16px;
    animation: sparkRotate 1.2s infinite ease-in-out;
}

@keyframes sparkRotate {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.25) rotate(180deg); }
}

.preloader-text {
    font-family: var(--font-heading, 'Outfit', sans-serif);
    font-size: 14px;
    font-weight: 800;
    color: #FFB703;
    letter-spacing: 0.6px;
}

/* ============================================
   WORDPRESS ADMIN BAR COMPATIBILITY
============================================ */
body.admin-bar .site-header {
    top: 32px !important;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px !important;
    }
}