/* ============================
GLOBAL FONTS
============================ */
/*#region FONT IMPORT + COLOR & FONT VARIABLES */
@font-face {
    font-family: 'Bavista Soulare';
    src: url('../fonts/Bavista_Soulare.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* ensures text shows while loading */
}
@font-face {
    font-family: 'Algerian';
    src: url('../fonts/AlgerianDOT.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

/* Subpage hero container */
.subpage-hero {
    position: relative;
    width: 100%;
    height: 240px; /* adjust hero height */
    background-color: #000; /* fallback */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Unified subpage hero titles */
.subpage-title,
.subpage-hero-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 3rem;
    margin: 0;
    font-family: var(--footer-font-family, 'Bavista Soulare', sans-serif);
    text-align: center;
}

/* Title over hero image */
.subpage-title {
    position: relative;
    z-index: 2;
    color: #fff;
    font-size: 3rem;
    margin: 0;
    font-family: var(--footer-font-family, 'Bavista Soulare', sans-serif);
    text-align: center;
}

/* ==============================
   BACK TO TOP BUTTON – CENTER BOTTOM
   ============================== */

#gnr-back-to-top {
    position: fixed;
    left: 50%;
    bottom: 28px;
    transform: translateX(-50%) translateY(20px);

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 1.6rem;
    font-weight: bold;
    color: #000;
    background: linear-gradient(135deg, #c8a763, #7b6c55);
    border: none;
    border-radius: 50%;
    cursor: pointer;

    box-shadow: 0 10px 25px rgba(0,0,0,0.6);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    z-index: 9999;
}

/* Hover effect */
#gnr-back-to-top:hover {
    background: linear-gradient(135deg, #7b6c55, #c8a763);
    box-shadow: 0 14px 32px rgba(0,0,0,0.75);
    transform: translateX(-50%) translateY(15px);
}

/* Visible state */
#gnr-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Smaller version on phones */
@media (max-width: 600px) {
    #gnr-back-to-top {
        width: 42px;
        height: 42px;
        font-size: 1.4rem;
        bottom: 22px;
    }
}
