/* ================= NAVBAR ================= */

.navbar {
    min-height: 82px;
    padding: 10px 0;
    background: #ffffff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    width: 100%;
    max-width: 100%;
}

.navbar-brand {
    text-decoration: none;
    color: #111827;
    max-width: 100%;
}

.brand-mark {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #0b1f3a;
    font-family: "Times New Roman", Times, serif;
}

.brand-sub {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #9a7a2f;
    font-family: "Times New Roman", Times, serif;
}

/* NAV LINKS */

.navbar-nav {
    gap: 4px;
}

.navbar .nav-link {
    position: relative;
    padding: 10px 10px !important;
    font-size: 14px;
    font-weight: 700;
    font-family: "Manrope", sans-serif;
    color: #1f2937;
    transition: all 0.25s ease;
}
.navbar,
.navbar .nav-link,
.navbar .dropdown-item,
.navbar .btn {
    font-family: "Manrope", sans-serif;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus {
    color: #d0ba85;
}

/* ACTIVE UNDERLINE */

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 3px;
    height: 2px;
    background: #c49a45;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar .nav-link:hover::after {
    transform: scaleX(1);
}

/* DROPDOWN */

.navbar .dropdown-menu {
    min-width: 230px;
    margin-top: 10px;
    padding: 8px;
    border-radius: 10px;
    max-width: 100vw;
}

.navbar .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    border-radius: 7px;
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover {
    background: #f5f1e8;
    color: #9a7a2f;
}

/* APPLY BUTTON */

.btn-gold {
    background: #b28a3c;
    color: #ffffff !important;
    border: 1px solid #b28a3c;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 18px;
    transition: all 0.25s ease;
}

.btn-gold:hover {
    background: #96712f;
    border-color: #96712f;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* ================= MOBILE ================= */

@media (max-width: 991.98px) {

    .navbar {
        min-height: 72px;
        width: 100%;
        overflow-x: hidden;
    }

    .navbar > .container,
    .navbar > .container-fluid {
        width: 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
    }

    .brand-name {
        font-size: 13px;
    }

    .brand-sub {
        font-size: 8px;
        letter-spacing: 1.5px;
    }

    .navbar-collapse {
        width: 100%;
        max-width: 100%;
        margin-top: 12px;
        padding: 12px 0 18px;
        border-top: 1px solid #eeeeee;
        overflow-x: hidden;
    }

    .navbar-nav {
        width: 100%;
        gap: 0;
        align-items: stretch !important;
    }

    .navbar .nav-item {
        width: 100%;
    }

    .navbar .nav-link {
        width: 100%;
        padding: 11px 5px !important;
    }

    .navbar .nav-link::after {
        display: none;
    }

    .navbar .dropdown-menu {
        position: static !important;
        width: 100%;
        max-width: 100%;
        margin-top: 0;
        box-shadow: none !important;
        border: 1px solid #eeeeee !important;
    }

    .btn-gold {
        display: inline-block;
        text-align: center;
        max-width: 100%;
    }
}


/* ================= PREVENT MOBILE HORIZONTAL SCROLL ================= */


  /* ================================
   BACK TO TOP BUTTON
================================ */

.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: #b28a3c;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition: all 0.3s ease;
}

.back-to-top:hover {
    background: #96712f;
    transform: translateY(-3px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (max-width: 576px) {
    .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 42px;
        height: 42px;
        font-size: 18px;
    }
}
