:root {
--rex-night: #5c0110;
--rex-earth: #2A1808;
--rex-savanna: #C07033;
--rex-savanna-light: #E09240;
--rex-lion: #D4A055;
--rex-lion-light: #ECC070;
--rex-white: #FFFFFF;
--rex-ivory: #FDFBF7;
--rex-text: #1A1410;
--rex-text-muted: #665E56;
--rex-border: rgba(120, 90, 60, 0.15);
--rex-font-main: 'Outfit', sans-serif;
--rex-font-heading: 'Playfair Display', serif;
--rex-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

/* ==========================================
TOP BAR
========================================== */
.rex-top-bar {
background: var(--rex-night);
color: rgba(255, 255, 255, 0.7);
font-size: 12px;
padding: 10px 5%;
display: flex;
justify-content: space-between;
align-items: center;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rex-top-bar-left a {
color: inherit;
text-decoration: none;
margin-right: 20px;
transition: 0.2s;
}

.rex-top-bar-left a:hover {
color: var(--rex-lion-light);
}

.rex-badge-group {
display: flex;
gap: 10px;
}

.rex-badge {
background: var(--rex-savanna);
color: white;
padding: 2px 8px;
border-radius: 4px;
font-weight: 700;
text-transform: uppercase;
font-size: 10px;
}

/* ==========================================
MAIN HEADER
========================================== */
.rex-header {
background: rgba(10, 21, 16, 0.98);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
height: 85px;
display: flex;
align-items: center;
padding: 0 5%;
position: sticky;
top: 0;
z-index: 1000;
border-bottom: 1px solid rgba(192, 112, 51, 0.2);
}

.rex-logo {
display: flex;
align-items: center;
text-decoration: none;
gap: 12px;
min-width: 280px;
}

.rex-logo img {
height: 50px;
width: auto;
}

.rex-logo-text {
color: white;
display: flex;
flex-direction: column;
}

.rex-logo-name {
font-family: var(--rex-font-heading);
font-size: 20px;
font-weight: 700;
line-height: 1;
}

.rex-logo-tag {
font-size: 9px;
text-transform: uppercase;
letter-spacing: 2px;
color: var(--rex-lion-light);
margin-top: 2px;
}

/* Desktop Nav */
.rex-desktop-nav {
display: flex;
list-style: none;
margin: 0 auto;
height: 100%;
}

.rex-nav-item {
height: 100%;
position: relative;
}

.rex-nav-link {
height: 100%;
display: flex;
align-items: center;
padding: 0 18px;
color: rgba(255, 255, 255, 0.9);
text-decoration: none;
font-weight: 500;
font-size: 14px;
transition: var(--rex-transition);
white-space: nowrap;
}

.rex-nav-link:hover {
color: var(--rex-lion-light);
}

.rex-nav-link svg {
width: 10px;
margin-left: 6px;
transition: transform 0.3s;
opacity: 0.6;
}

.rex-nav-item:hover .rex-nav-link svg {
transform: rotate(180deg);
}

/* ==========================================
MEGA MENU (Desktop Only)
========================================== */
.rex-mega-menu {
position: absolute;
top: 85px;
left: 50%;
transform: translateX(-50%) translateY(20px);
background: var(--rex-white);
width: 950px;
padding: 35px;
box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
opacity: 0;
visibility: hidden;
transition: all 0.3s ease;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 30px;
border-top: 4px solid var(--rex-savanna);
border-radius: 0 0 12px 12px;
}

.rex-nav-item:hover .rex-mega-menu {
opacity: 1;
visibility: visible;
transform: translateX(-50%) translateY(0);
}

.rex-mega-title {
font-family: var(--rex-font-heading);
font-size: 17px;
color: var(--rex-night);
margin-bottom: 18px;
border-bottom: 1px solid var(--rex-border);
padding-bottom: 8px;
display: block;
font-weight: 700;
}

.rex-mega-list {
list-style: none;
}

.rex-mega-list li {
margin-bottom: 12px;
}

.rex-mega-list a {
text-decoration: none;
display: flex;
flex-direction: column;
padding: 6px;
border-radius: 6px;
transition: 0.2s;
}

.rex-mega-list a:hover {
background: #fdfaf4;
}

.rex-link-head {
color: var(--rex-text);
font-weight: 600;
font-size: 14px;
}

.rex-mega-list a:hover .rex-link-head {
color: var(--rex-savanna);
}

.rex-link-sub {
color: var(--rex-text-muted);
font-size: 12px;
margin-top: 2px;
}

.rex-featured-card {
background: linear-gradient(135deg, var(--rex-night), var(--rex-earth));
padding: 25px;
border-radius: 12px;
color: white;
display: flex;
flex-direction: column;
justify-content: center;
}

.rex-featured-card h4 {
font-family: var(--rex-font-heading);
color: var(--rex-lion-light);
margin-bottom: 10px;
font-size: 19px;
}

.rex-featured-card p {
font-size: 13px;
opacity: 0.8;
line-height: 1.6;
margin-bottom: 15px;
}

.rex-btn {
display: inline-block;
background: var(--rex-savanna);
color: white;
padding: 10px 20px;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
font-size: 13px;
transition: 0.3s;
text-align: center;
border: none;
cursor: pointer;
}

.rex-btn:hover {
background: var(--rex-savanna-light);
transform: translateY(-2px);
}

/* ==========================================
MOBILE NAVIGATION (Drawer)
========================================== */
.rex-mobile-header-tools {
display: none;
align-items: center;
gap: 15px;
}

.rex-hamburger {
background: none;
border: none;
cursor: pointer;
padding: 5px;
}

.rex-hamburger span {
display: block;
width: 25px;
height: 2px;
background: white;
margin: 6px 0;
transition: 0.4s;
}

.rex-mobile-drawer {
position: fixed;
top: 0;
right: -100%;
width: 85%;
height: 100vh;
background: var(--rex-night);
z-index: 2000;
transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
padding: 30px;
overflow-y: auto;
color: white;
}

.rex-mobile-drawer.active {
right: 0;
}

.rex-drawer-overlay {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
visibility: hidden;
opacity: 0;
z-index: 1999;
transition: 0.3s;
}

.rex-drawer-overlay.active {
visibility: visible;
opacity: 1;
}

.rex-drawer-close {
background: none;
border: none;
color: white;
font-size: 32px;
position: absolute;
top: 20px;
right: 20px;
cursor: pointer;
}

.rex-mob-nav {
list-style: none;
margin-top: 50px;
}

.rex-mob-item {
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rex-mob-trigger {
width: 100%;
padding: 18px 0;
background: none;
border: none;
color: white;
text-align: left;
font-size: 17px;
font-weight: 600;
display: flex;
justify-content: space-between;
align-items: center;
cursor: pointer;
}

.rex-mob-content {
max-height: 0;
overflow: hidden;
transition: max-height 0.4s ease-out;
background: rgba(255, 255, 255, 0.03);
}

.rex-mob-content.open {
max-height: 1200px;
padding-bottom: 10px;
}

.rex-mob-sublink {
display: block;
padding: 12px 20px;
color: rgba(255, 255, 255, 0.7);
text-decoration: none;
font-size: 14px;
transition: 0.2s;
}

.rex-mob-sublink:hover {
color: var(--rex-lion-light);
}

@media (max-width: 1150px) {

.rex-desktop-nav,
.rex-top-bar,
.rex-header>.rex-btn {
display: none;
}

.rex-mobile-header-tools {
display: flex;
}

.rex-header {
justify-content: space-between;
}
}