﻿/* ===========================================================
   NAVBAR
=========================================================== */
.grecaptcha-badge {
    visibility: hidden;
}

.navbar {
    padding: 40px 0;
    transition: padding .35s ease, box-shadow .35s ease, background-color .35s ease;
}

    .navbar.navbar-scrolled {
        padding: 20px 0;
        box-shadow: 0 6px 20px rgba(0,0,0,.08);
    }

/* ===========================================================
   LOGO
=========================================================== */

.navbar-logo {
    position: absolute;
    left: 1rem;
    top: -50px;
    z-index: 10;
    transition: top .35s ease; /* ADDED: so top changes animate smoothly */
}

@media(min-width:768px) {

    .navbar-logo {
        left: 5rem;
    }
}

/* ADDED: pull logo up less on scroll since navbar padding shrinks */
.navbar.navbar-scrolled .navbar-logo {
    top: -50px;
}

@media(max-width:767px) {
    .navbar-logo {
        top: -55px; /* ADDED: mobile needs a smaller negative offset to begin with */
    }

    .navbar.navbar-scrolled .navbar-logo {
        top: -30px; /* ADDED: even smaller once scrolled on mobile */
    }
}

.logo-image {
    width: 200px;
    transition: width .35s ease, transform .35s ease, opacity .35s ease;
}

@media(max-width:767px) {

    .logo-image {
        width: 150px;
    }
}

/* ===========================================================
   LOGO SHINE
=========================================================== */

@keyframes logo-shine {

    0% {
        left: -40%;
        opacity: 0;
    }

    10% {
        opacity: .7;
    }

    60% {
        opacity: .7;
    }

    100% {
        left: 110%;
        opacity: 0;
    }
}

.logo-shine-effect {
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 75%;
    pointer-events: none;
    filter: blur(1px);
    opacity: 0;
    background: linear-gradient( 90deg, transparent, rgba(255,255,255,.7), transparent );
    animation: logo-shine 2.5s infinite;
}

/* ===========================================================
   MOBILE MENU
=========================================================== */

.mobile-menu {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .35s ease, opacity .35s ease;
    background: white;
    padding-inline: 1rem;
    box-shadow: 0 8px 20px rgba(0,0,0,.08);
}

    .mobile-menu.show {
        max-height: 600px;
        opacity: 1;
    }

/* ===========================================================
   SCROLL BUTTON
=========================================================== */

.scroll-top-button {
    position: fixed;
    right: 1.5rem;
    bottom: 7rem;
    z-index: 40;
    padding: .75rem;
    color: white;
    border-radius: 9999px;
    background: linear-gradient( 90deg, #0ea5e9, #2563eb );
    box-shadow: 0 10px 18px rgba(0,0,0,.18);
    opacity: 0;
    transform: scale(.85);
    pointer-events: none;
    transition: opacity .35s ease, transform .35s ease, box-shadow .35s ease;
}

    .scroll-top-button.show {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .scroll-top-button:hover {
        transform: scale(1.08);
    }
