/* =====================================================
   REFORMREBELL — HEADER, NAV, MENU & LOADER
   ===================================================== */

/* ── Page Loader ─────────────────────────────────────── */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #0a0a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
}

.loader-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 1.4s ease-in-out infinite;
}

.loader-icon img {
    height: 48px;
    width: auto;
    filter: brightness(0) invert(1);
}

@keyframes loaderPulse {
    0%, 100% { opacity: 1;   transform: scale(1);    }
    50%       { opacity: 0.6; transform: scale(0.94); }
}

.loader-text {
    font-family: 'Space Grotesk', 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(240, 240, 248, 0.7);
}

.loader-bar-wrap {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: #e8002d;
    border-radius: 99px;
    animation: loaderFill 1.4s ease-in-out forwards;
}

@keyframes loaderFill {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* ── Site Header ─────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 0, 45, 0.25);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 1.5rem 0.85rem;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-header.scrolled .site-nav {
    background: rgba(10, 10, 15, 0.97);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    border-bottom-color: rgba(232, 0, 45, 0.4);
}

/* ── Brand / Logo ────────────────────────────────────── */
.nav-brand {
    flex-shrink: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.brand-link:hover {
    opacity: 0.85;
}

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.brand-logo-img {
    height: 32px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0.15rem;
}

.header-logo-accent {
    font-family: 'Montserrat', 'Space Grotesk', sans-serif;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: #e8002d;
    text-transform: uppercase;
}

.brand-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(240, 240, 248, 0.55);
}

/* ── Desktop Quick Links ─────────────────────────────── */
.nav-quick-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: 0.15rem;
}

.nav-quick-links li a {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(240, 240, 248, 0.72);
    text-decoration: none;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-quick-links li a:hover,
.nav-quick-links li a.active-link {
    color: #e8002d;
    background: rgba(232, 0, 45, 0.08);
}

@media (min-width: 900px) {
    .nav-quick-links {
        display: flex;
    }
}

@media (min-width: 1200px) {
    .nav-quick-links {
        gap: 0.25rem;
    }
    .nav-quick-links li a {
        font-size: 0.82rem;
        padding: 0.45rem 0.9rem;
    }
}

/* ── Menu Toggle Button ──────────────────────────────── */
.menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: rgba(240, 240, 248, 0.85);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
    touch-action: manipulation;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
    color: #e8002d;
    background: rgba(232, 0, 45, 0.1);
    border-color: rgba(232, 0, 45, 0.35);
    outline: none;
}

.menu-toggle:active {
    transform: scale(0.94);
}

/* ── Full-screen Overlay Menu ────────────────────────── */
.site-menu {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s ease;
}

.site-menu.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.menu-close {
    position: absolute;
    top: calc(1.25rem + env(safe-area-inset-top, 0px));
    right: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    color: rgba(240, 240, 248, 0.85);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    touch-action: manipulation;
    z-index: 2;
}

.menu-close:hover,
.menu-close:focus-visible {
    color: #e8002d;
    background: rgba(232, 0, 45, 0.1);
    border-color: rgba(232, 0, 45, 0.35);
    outline: none;
}

.menu-close:active {
    transform: scale(0.94);
}

.menu-inner {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 92vw);
    background: #111118;
    border-left: 1px solid rgba(232, 0, 45, 0.2);
    padding: calc(5rem + env(safe-area-inset-top, 0px)) 1.75rem calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.site-menu.is-open .menu-inner {
    transform: translateX(0);
}

/* ── Menu Sections ───────────────────────────────────── */
.menu-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e8002d;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(232, 0, 45, 0.2);
    margin-bottom: 0.25rem;
}

.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.menu-item-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    color: rgba(240, 240, 248, 0.75);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.menu-item-link:hover,
.menu-item-link:focus-visible {
    color: #f0f0f8;
    background: rgba(232, 0, 45, 0.1);
    outline: none;
}

.menu-item-link:active {
    transform: translateX(3px);
}

.menu-item-icon {
    width: 18px;
    text-align: center;
    color: rgba(232, 0, 45, 0.75);
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.menu-item-link:hover .menu-item-icon {
    color: #e8002d;
}

/* ── Hero eyebrow label ─────────────────────────────────── */
.hero-eyebrow {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #e8002d;
    margin-bottom: 1.25rem;
    opacity: 0;
    animation: fadeIn 0.8s 0.1s forwards;
}

/* ── Shorter hero for inner section pages ───────────────── */
.hero--page {
    min-height: clamp(60vh, 68vh, 75vh);
    padding-top: 6rem;
    padding-bottom: 4rem;
}

/* ── Body padding (header height compensation) ───────── */
body {
    padding-top: 70px;
}

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    .site-nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
