/* =========================================================
   SPQR GYM - MAIN STYLESHEET
   ========================================================= */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: #0a0a0a;
    color: #f5f1e8;
    overflow-x: hidden;
}

::selection {
    background: #b08d57;
    color: #000;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #b08d57;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4b483;
}


/* =========================================================
   NAVBAR
   ========================================================= */

#navbar {
    transition:
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.94);
    border-bottom-color: rgba(176, 141, 87, 0.2);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
}

.nav-link {
    position: relative;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: #b08d57;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #d4b483;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-nav-link {
    transition:
        color 0.25s ease,
        padding-left 0.25s ease;
}

.mobile-nav-link:hover {
    color: #d4b483;
    padding-left: 6px;
}


/* =========================================================
   GENERAL LINKS / BUTTONS
   ========================================================= */

a {
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid #b08d57;
    outline-offset: 4px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero-overlay {
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(176, 141, 87, 0.10),
            transparent 38%
        ),
        linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.15),
            rgba(10, 10, 10, 0.92)
        );
}


/* =========================================================
   GOLD TEXT
   ========================================================= */

.gold-text {
    color: #b08d57;
}

.gold-gradient {
    background: linear-gradient(
        135deg,
        #8d6d3f,
        #d4b483,
        #a37e48
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}


/* =========================================================
   SECTION DECORATION
   ========================================================= */

.section-line {
    width: 55px;
    height: 1px;
    background: #b08d57;
}

.gold-border {
    border-color: rgba(176, 141, 87, 0.28);
}


/* =========================================================
   CARDS
   ========================================================= */

.spqr-card {
    position: relative;
    overflow: hidden;
    background: #111111;
    border: 1px solid #2a2a2a;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.spqr-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            135deg,
            rgba(176, 141, 87, 0.08),
            transparent 45%
        );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.spqr-card:hover {
    transform: translateY(-6px);
    border-color: rgba(176, 141, 87, 0.5);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.spqr-card:hover::before {
    opacity: 1;
}


/* =========================================================
   IMAGE HOVER
   ========================================================= */

.spqr-image {
    overflow: hidden;
}

.spqr-image img {
    transition:
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        filter 0.5s ease;
}

.spqr-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05);
}


/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   DELAYS
   ========================================================= */

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-link {
    position: relative;
    transition: color 0.25s ease;
}

.footer-link:hover {
    color: #d4b483;
}


/* =========================================================
   MOBILE BAR
   ========================================================= */

@media (max-width: 767px) {

    body {
        padding-bottom: 64px;
    }

}


/* =========================================================
   MOBILE MENU
   ========================================================= */

#mobile-menu {
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}


/* =========================================================
   DECORATIVE SPQR ELEMENTS
   ========================================================= */

.spqr-letter {
    color: rgba(176, 141, 87, 0.08);
    font-family: "Cinzel", serif;
    font-weight: 800;
    user-select: none;
    pointer-events: none;
}


/* =========================================================
   IMAGE PLACEHOLDER
   ========================================================= */

.image-placeholder {
    background:
        radial-gradient(
            circle at center,
            rgba(176, 141, 87, 0.08),
            transparent 65%
        ),
        #111111;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    html {
        scroll-padding-top: 75px;
    }

    .reveal {
        transform: translateY(20px);
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

}