/* =========================================================
   OPPORTUNITY – NAVBAR
   ========================================================= */

html,
body {
    overflow: visible !important;
}

body {
    display: flow-root;
}

body > .navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    padding: 20px 0;
    background-color: #fff;
    transition: background-color 0.3s ease,
                box-shadow 0.3s ease;
}

/* Transparent navbar */

body > .navbar.nav-transparent {
    margin-top: 50px;
    margin-bottom: -135px;
}

body > .navbar.nav-transparent:not(.scrolled) {
    background-color: transparent;
    box-shadow: none;
}

/* Scrolled navbar */

body > .navbar.scrolled {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}


/* =========================================================
   NAVBAR – LINKS
   ========================================================= */

body > .navbar .nav-link {
    color: #222;
    transition: color 0.3s ease;
}

body > .navbar.nav-transparent:not(.scrolled) .nav-link {
    color: #fff;
}


/* =========================================================
   NAVBAR – SHOP BUTTON
   ========================================================= */

body > .navbar .btn-outline-dark {
    color: #222;
    border-color: #222;
    transition: color 0.3s ease,
                border-color 0.3s ease,
                background-color 0.3s ease;
}

body > .navbar.nav-transparent:not(.scrolled) .btn-outline-dark {
    color: #fff;
    border-color: #fff;
}

body > .navbar .btn-outline-dark:hover {
    color: #fff;
    background-color: #222;
    border-color: #222;
}


/* =========================================================
   NAVBAR – LOGO
   ========================================================= */

body > .navbar #brand-anf {
    position: relative;
    display: inline-flex;
    align-items: center;
    float: none;
    width: 200px;
    max-width: none;
    height: auto;
    margin: 0 0 0 30px;
    padding: 0;
}

body > .navbar #brand-anf .logo {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    transition: opacity 0.3s ease;
}

/* Normal logo */

body > .navbar #brand-anf .logo-dark {
    position: static;
    opacity: 1;
}

/* Negative logo */

body > .navbar #brand-anf .logo-white {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    opacity: 0;
}

/* Negative logo when transparent */

body > .navbar.nav-transparent:not(.scrolled) #brand-anf .logo-dark {
    opacity: 0;
}

body > .navbar.nav-transparent:not(.scrolled) #brand-anf .logo-white {
    opacity: 1;
}

/* Normal logo when scrolled */

body > .navbar.scrolled #brand-anf .logo-dark {
    opacity: 1;
}

body > .navbar.scrolled #brand-anf .logo-white {
    opacity: 0;
}


/* =========================================================
   NAVBAR – MOBILE
   ========================================================= */

body > .navbar.nav-transparent:not(.scrolled) .navbar-toggler-icon {
    filter: brightness(0) invert(1);
}

body > .navbar.nav-transparent:not(.scrolled) .navbar-toggler {
    border-color: rgba(255,255,255,0.5);
}

@media (max-width: 991.98px) {

    body > .navbar #brand-anf {
        width: 180px;
    }

    /* Solid background when mobile menu is open */

    body > .navbar:has(.navbar-collapse.show),
    body > .navbar:has(.navbar-collapse.collapsing) {
        background-color: #fff;
    }

    body > .navbar:has(.navbar-collapse.show) .nav-link,
    body > .navbar:has(.navbar-collapse.collapsing) .nav-link {
        color: #222;
    }

    body > .navbar:has(.navbar-collapse.show) #brand-anf .logo-dark,
    body > .navbar:has(.navbar-collapse.collapsing) #brand-anf .logo-dark {
        opacity: 1;
    }

    body > .navbar:has(.navbar-collapse.show) #brand-anf .logo-white,
    body > .navbar:has(.navbar-collapse.collapsing) #brand-anf .logo-white {
        opacity: 0;
    }

    body > .navbar:has(.navbar-collapse.show) .navbar-toggler-icon,
    body > .navbar:has(.navbar-collapse.collapsing) .navbar-toggler-icon {
        filter: none;
    }

    body > .navbar:has(.navbar-collapse.show) .btn-outline-dark,
    body > .navbar:has(.navbar-collapse.collapsing) .btn-outline-dark {
        color: #222;
        border-color: #222;
    }
}

@media (max-width: 480px) {

    body > .navbar #brand-anf {
        width: 160px;
        margin-left: 0;
    }
}


/* =========================================================
   OPPORTUNITY – COLOURS
   ========================================================= */

.highlight_green {
    color: #4DE9D9;
}

.highlight_green2 {
    color: #1CE3CF;
}

.btn_opportunity {
    background: #4DE9D9;
}


/* =========================================================
   OPPORTUNITY – SCROLL ANCHORS
   ========================================================= */

#chooseyourway {
    scroll-margin-top: 80px;
}

#global_1 {
    scroll-margin-top: 80px;
}


/* =========================================================
   OPPORTUNITY – SCROLL ARROW ANIMATION
   ========================================================= */

@keyframes bounce {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bounce-animation {
    display: inline-block;
    animation: bounce 1.6s infinite ease-in-out;
}

.scroll-arrow-link:hover .bounce-animation {
    opacity: 0.7;
    animation-play-state: paused;
}


/* =========================================================
   OPPORTUNITY – FLIP CARDS
   ========================================================= */

.flip-card {
    perspective: 1000px;
    cursor: pointer;
    overflow: visible !important;
}

.flip-card-inner {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
}

.flip-card.is-flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-face {
    position: absolute;
    inset: 0;
    overflow: hidden;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    background-size: cover;
    background-position: center;
}

.flip-card-front {
    transform: rotateY(0deg);
}

.flip-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.flip-card-content {
    position: relative;
    z-index: 1;
}

.flip-card-back {
    background: #000;
    transform: rotateY(180deg);
}


/* =========================================================
   ACCESSIBILITY – REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bounce-animation {
        animation: none;
    }

    .flip-card-inner {
        transition: none;
    }

    body > .navbar,
    body > .navbar .nav-link,
    body > .navbar #brand-anf .logo,
    body > .navbar .btn-outline-dark {
        transition: none;
    }
}