/* ============================================
   Royal Elementor Header CSS - IronEdge CrossFit
   Style 1: Dark Black Header, Orange Accent, Red CTA
   ============================================ */

/* ---- Top Bar ---- */
.headertop {
    background-color: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
    padding: 8px 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #aaa;
    display: flex;
    align-items: center;
}
.headertop .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.headertop a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s;
}
.headertop a:hover {
    color: #f97316;
}
.headertop .top-left,
.headertop .top-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.headertop .top-left span,
.headertop .top-right span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.headertop i {
    color: #f97316;
    font-size: 12px;
}
.headertop .social-links a {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    border-radius: 50%;
    font-size: 11px;
    transition: all 0.2s;
}
.headertop .social-links a:hover {
    background: #f97316;
    border-color: #f97316;
    color: #fff;
}

/* ---- Main Header ---- */
.header {
    background-color: #0f0f0f;
    border-bottom: 2px solid #f97316;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s, background 0.3s;
}
.header.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.6);
    background-color: #080808;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 70px;
}

/* ---- Logo ---- */
.header .logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header .logo .logo-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
}
.header .logo .logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}
.header .logo .logo-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.header .logo .logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: #f97316;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- Desktop Nav ---- */
.desktopmenu {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.royalmenu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}
.royalmenu > li {
    position: relative;
}
.royalmenu > li > a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    text-decoration: none;
    padding: 24px 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
    transition: color 0.2s;
    white-space: nowrap;
}
.royalmenu > li > a:hover,
.royalmenu > li.active > a {
    color: #f97316;
}
.royalmenu > li > a .arrow {
    font-size: 10px;
    transition: transform 0.3s;
}
.royalmenu > li:hover > a .arrow {
    transform: rotate(180deg);
}

/* ---- Dropdown ---- */
.royalmenu .dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    background: #111;
    border: 1px solid #222;
    border-top: 2px solid #f97316;
    border-radius: 0 0 8px 8px;
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.25s ease;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    list-style: none;
    z-index: 100;
}
.royalmenu > li:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.royalmenu .dropdown li a {
    display: block;
    padding: 10px 20px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #ccc;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 2px solid transparent;
}
.royalmenu .dropdown li a:hover {
    color: #f97316;
    background: rgba(249,115,22,0.08);
    border-left-color: #f97316;
    padding-left: 24px;
}

/* ---- Hamburger Icon ---- */
#navigation-icon {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
    outline: none;
    z-index: 1100;
}
#navigation-icon span {
    display: block;
    width: 26px;
    height: 2px;
    background: #f97316;
    border-radius: 2px;
    transition: all 0.3s;
}
#navigation-icon.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
#navigation-icon.open span:nth-child(2) {
    opacity: 0;
}
#navigation-icon.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- CTA Button ---- */
.royal-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff !important;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 22px;
    border-radius: 4px;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
}
.royal-action-btn:hover {
    background: linear-gradient(135deg, #f97316, #ea580c);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(239,68,68,0.4);
}

/* ---- Mobile Menu Overlay ---- */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #0a0a0a;
    z-index: 999;
    overflow-y: auto;
    padding: 20px 0;
    border-top: 2px solid #f97316;
}
.mobile-menu.open {
    display: block;
}
.mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.mobile-menu ul li a {
    display: block;
    padding: 14px 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    transition: color 0.2s, padding-left 0.2s;
}
.mobile-menu ul li a:hover {
    color: #f97316;
    padding-left: 32px;
}
.mobile-menu ul .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: none;
    background: #0d0d0d;
    padding: 0;
    min-width: auto;
    display: none;
    border-radius: 0;
}
.mobile-menu ul .dropdown.mobile-open {
    display: block;
}
.mobile-menu ul .dropdown li a {
    font-size: 14px;
    padding-left: 40px;
    color: #aaa;
    font-family: 'Inter', sans-serif;
    text-transform: none;
    font-weight: 400;
}
.mobile-menu ul .dropdown li a:hover {
    color: #f97316;
    padding-left: 48px;
}
.mobile-menu .mobile-cta {
    padding: 20px 24px;
}
.mobile-menu .mobile-cta .royal-action-btn {
    width: 100%;
    justify-content: center;
}

/* ---- Responsive ---- */
@media (max-width: 991px) {
    .desktopmenu {
        display: none;
    }
    #navigation-icon {
        display: flex;
    }
    .header .container {
        height: 60px;
    }
    .mobile-menu {
        top: 60px;
    }
    .header .logo .logo-name {
        font-size: 18px;
    }
    .royal-action-btn {
        display: none;
    }
}
@media (max-width: 576px) {
    .headertop {
        display: none;
    }
}
