 /* ═══════════════════════════════════════════════════════════════════
   GS UNIVERSE — SHARED STYLESHEET
   ═══════════════════════════════════════════════════════════════════ */

:root {
    --bg-dark: #07080a;
    --bg-card: #111318;
    --bg-elevated: #16181f;
    --brand-red: #850B12;
    --brand-red-glow: #b3151f;
    --accent-gold: #d4af37;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --success: #22c55e;
    --radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

/* ═══════════════════════════════════════════════════════════════════
   PAGE PROGRESS BAR
   ═══════════════════════════════════════════════════════════════════ */
.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent-gold);
    z-index: 99999;
    box-shadow: 0 0 10px var(--accent-gold), 0 0 5px var(--accent-gold);
    transition: width 0.3s ease, opacity 0.3s ease 0.2s;
    pointer-events: none;
}

.page-progress.complete {
    width: 100% !important;
    opacity: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   QUICK CONTACT BAR
   ═══════════════════════════════════════════════════════════════════ */
.quick-contact {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--bg-card);
    color: var(--text-muted);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1001;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-contact.hidden {
    transform: translateY(-100%);
}

.qc-left {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.qc-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: color 0.3s;
}

.qc-item:hover {
    color: var(--accent-gold);
}

.qc-item i {
    font-size: 0.9rem;
    color: var(--brand-red-glow);
}

.qc-right {
    display: flex;
    gap: 10px;
}

.qc-right a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: background 0.3s, transform 0.3s;
}

.qc-right a:hover {
    background: var(--brand-red);
    color: white;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════════════════ */
nav {
    position: fixed;
    top: 35px;
    left: 0;
    right: 0;
    background: var(--brand-red);
    z-index: 1000;
    border-bottom: 1px solid var(--brand-red-glow);
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

nav.top-hidden {
    top: 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

.logo-text span {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: white;
}

/* ACTIVE NAV LINK */
.nav-links a.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2px;
    background: var(--accent-gold);
    border-radius: 2px;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: opacity 0.25s, transform 0.25s;
}

.nav-links a.nav-link:hover::after {
    opacity: 0.5;
    transform: scaleX(1);
}

.nav-links a.nav-link.active {
    color: var(--accent-gold);
}

.nav-links a.nav-link.active::after {
    opacity: 1;
    transform: scaleX(1);
}

/* "How to GS?" tab */
.nav-howto {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.45rem 0.95rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.45);
    transition: 0.25s;
}

.nav-howto:hover {
    color: #07080a;
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

.nav-howto i {
    font-size: 0.85rem;
    transition: color 0.25s;
}

.nav-howto:hover i {
    color: #07080a;
}

.btn-nav {
    background: var(--bg-dark);
    color: white;
    padding: 0.55rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.2s;
}

.btn-nav:hover {
    transform: translateY(-2px);
    background: var(--bg-card);
    color: white;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* ═══════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════════════════════ */
.lang-switcher {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.45rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-gold);
}

.lang-btn i.fa-globe {
    font-size: 0.82rem;
    color: var(--accent-gold);
}

.lang-btn .lang-caret {
    font-size: 0.6rem;
    opacity: 0.7;
    transition: transform 0.25s;
}

.lang-switcher.open .lang-caret {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-card);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
    z-index: 100;
}

.lang-switcher.open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-menu li a {
    display: block;
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    transition: 0.15s;
}

.lang-menu li a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-gold);
}

.lang-menu li a.is-active {
    background: rgba(212, 175, 55, 0.12);
    color: var(--accent-gold);
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════
   HERO BASE
   ═══════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    padding: 8rem 2rem 5rem;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(circle at 20% 30%, rgba(133, 11, 18, 0.25), transparent 55%),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.12), transparent 55%);
    pointer-events: none;
}

.hero > *:not(.hero-bg) {
    position: relative;
    z-index: 1;
}

.hero .kicker {
    display: inline-block;
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    background: rgba(212, 175, 55, 0.06);
}

.hero h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    background: linear-gradient(to right, #fff, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.25rem;
    max-width: 900px;
    margin-inline: auto;
}

.hero p {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    max-width: 700px;
    margin: 0 auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: var(--brand-red);
    color: #fff;
    border-color: var(--brand-red-glow);
    box-shadow: 0 10px 25px rgba(133, 11, 18, 0.35);
}

.btn-primary:hover {
    background: var(--brand-red-glow);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* ═══════════════════════════════════════════════════════════════════
   SECTIONS & HEADERS
   ═══════════════════════════════════════════════════════════════════ */
.section {
    padding: 5rem 2rem;
    max-width: 1280px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header .eyebrow {
    display: inline-block;
    color: var(--accent-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    margin-bottom: 0.9rem;
}

.section-header p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.02rem;
}

/* ═══════════════════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════════════════ */
.breadcrumb {
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 2rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--accent-gold);
}

.breadcrumb i {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--accent-gold);
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
footer {
    background: #040507;
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.footer-col h4 i {
    color: var(--accent-gold);
    margin-right: 8px;
    font-size: 0.85rem;
}

.footer-col p,
.footer-col li {
    color: var(--text-muted);
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    display: flex;
    gap: 10px;
}

.footer-col li i {
    margin-top: 5px;
    color: var(--brand-red-glow);
    flex-shrink: 0;
    font-size: 0.8rem;
}

.footer-col a {
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 1rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--brand-red);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    max-width: 1280px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════════
   RELATED CARDS
   ═══════════════════════════════════════════════════════════════════ */
.related-section {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 2rem;
}

.related-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.related-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.related-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.related-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.related-card {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    border-color: var(--accent-gold);
    transform: translateY(-3px);
}

.related-card i {
    color: var(--accent-gold);
    font-size: 1.3rem;
}

.related-card h4 {
    font-size: 1rem;
}

.related-card p {
    color: var(--text-muted);
    font-size: 0.82rem;
}

/* ═══════════════════════════════════════════════════════════════════
   FORM BASE
   ═══════════════════════════════════════════════════════════════════ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.3px;
}

.form-group label .req {
    color: var(--brand-red-glow);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.7rem 0.9rem;
    color: var(--text-light);
    font-size: 0.9rem;
    transition: 0.2s;
    width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.05);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-light);
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: none;
    line-height: 1.6;
}

.form-status.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.form-status.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.form-status a {
    color: var(--accent-gold);
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .nav-links {
        gap: 1rem;
    }
    .nav-links a {
        font-size: 0.82rem;
    }
    .nav-howto {
        font-size: 0.78rem;
        padding: 0.4rem 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .qc-item.phone-only,
    .qc-item.email-only {
        display: none;
    }
    .qc-left {
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    .quick-contact {
        padding: 0.5rem 1rem;
        justify-content: center;
    }
    .qc-right {
        display: none;
    }

    nav {
        top: 32px;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--brand-red);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.25rem;
        border-bottom: 1px solid var(--brand-red-glow);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .nav-links .btn-nav {
        display: inline-block;
    }
    .nav-links .nav-howto {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }

    .lang-switcher {
        width: 100%;
        text-align: center;
    }
    .lang-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        display: none;
        margin-top: 0.5rem;
    }
    .lang-switcher.open .lang-menu {
        display: block;
    }
    .lang-menu li a {
        text-align: center;
        padding: 0.6rem;
    }

    .hero {
        padding: 6rem 1.25rem 3rem;
    }

    .section {
        padding: 3rem 1.25rem;
    }

    .breadcrumb {
        padding: 0.6rem 1.25rem;
        font-size: 0.75rem;
    }

    .related-section {
        padding: 3.5rem 1.25rem;
    }

    .footer-content {
        gap: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }
    /* ═══════════════════════════════════════════════════════════════════
   RACE — NAV BUTTON + TOAST
   (appended to existing style.css)
   ═══════════════════════════════════════════════════════════════════ */

/* "Join the Race" nav button — gold-accent pill, more prominent than nav-howto */
.btn-race {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #07080a;
    background: var(--accent-gold);
    border: 1px solid var(--accent-gold);
    transition: 0.25s;
    position: relative;
    overflow: hidden;
}
.btn-race:hover {
    background: #e6c14a;
    border-color: #e6c14a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}
.btn-race:active { transform: translateY(0); }
.btn-race i { font-size: 0.85rem; }

/* Subtle pulse to signal "event" — respects reduced-motion */
@media (prefers-reduced-motion: no-preference) {
    .btn-race::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 50px;
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55);
        animation: race-pulse 2.4s ease-out infinite;
        pointer-events: none;
    }
    @keyframes race-pulse {
        0%   { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.55); }
        70%  { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
        100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
    }
}

/* Active state — when on a race page */
.btn-race.active {
    background: #e6c14a;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.35);
}

/* Mobile nav — make the race button full-width pill */
@media (max-width: 768px) {
    .nav-links .btn-race {
        padding: 0.6rem 1.4rem;
        font-size: 0.9rem;
    }
}

/* ── Toast (used by race-global.js) ─────────────────────────────── */
.gs-race-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--bg-elevated);
    color: var(--text-light);
    border: 1px solid var(--border-strong);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    max-width: 360px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}
.gs-race-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.gs-race-toast i { font-size: 1rem; flex-shrink: 0; }
.gs-race-toast--success { border-color: rgba(34, 197, 94, 0.4); }
.gs-race-toast--success i { color: var(--success); }
.gs-race-toast--error { border-color: rgba(239, 68, 68, 0.4); }
.gs-race-toast--error i { color: #ef4444; }
.gs-race-toast--info i { color: var(--accent-gold); }

@media (max-width: 480px) {
    .gs-race-toast {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }
}
}

/* ═══════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}