/* =========================================================
   WILD OX COFFEE COMPANY
   PUBLIC SITE
   ========================================================= */

:root {
    --ox-black: #050505;
    --ox-cream: #f4efe6;
    --ox-tan: #c8a97e;
    --ox-charcoal: #191919;
}


/* =========================================================
   GLOBAL
   ========================================================= */

html {
    scroll-behavior: smooth;
}

body {
    background: #0b0b0b;
    color: #f8f8f8;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


/* =========================================================
   PUBLIC NAVIGATION
   ========================================================= */

.site-navbar {
    min-height: 72px;
}

.site-navbar .navbar-brand {
    font-size: 1.02rem;
    letter-spacing: .01em;
}

.site-navbar .nav-link {
    position: relative;

    padding: .75rem .7rem;

    color: rgba(255, 255, 255, .58);

    transition:
        color .2s ease,
        opacity .2s ease;
}


/*
|--------------------------------------------------------------------------
| Desktop Navigation
|--------------------------------------------------------------------------
*/

@media (min-width: 992px) {

    /*
     * Every navigation link gets the same
     * underline capability.
     */

    .site-navbar .nav-link::after {
        content: "";

        position: absolute;

        left: .5rem;
        right: .5rem;
        bottom: .08rem;

        height: 2px;

        background: #fff;

        transform: scaleX(0);
        transform-origin: center;

        transition:
            transform .2s ease;
    }


    /*
     * Hover
     */

    .site-navbar .nav-link:hover,
    .site-navbar .nav-link:focus {
        color: #fff !important;
    }

    .site-navbar .nav-link:hover::after,
    .site-navbar .nav-link:focus::after {
        transform: scaleX(.35);
    }


    /*
     * Active real page OR active homepage section.
     *
     * Works identically for:
     *
     * Menu
     * Locations
     * Catering Trailer
     * Where We'll Be
     * Gallery
     * Contact
     */

    .site-navbar .nav-link.active,
    .site-navbar .nav-link[aria-current="page"] {
        color: #fff !important;
        font-weight: 600;
    }

    .site-navbar .nav-link.active::after,
    .site-navbar .nav-link[aria-current="page"]::after {
        transform: scaleX(1) !important;
    }

}


/*
|--------------------------------------------------------------------------
| Mobile Navigation
|--------------------------------------------------------------------------
*/

@media (max-width: 991.98px) {

    .site-navbar {
        min-height: 64px;
    }

    .site-navbar .navbar-collapse {
        border-top: 1px solid #242424;
        margin-top: .65rem;
    }

    .site-navbar .nav-link {
        padding: .7rem 0;
    }


    /*
     * Active mobile link
     */

    .site-navbar .nav-link.active,
    .site-navbar .nav-link[aria-current="page"] {
        color: #fff !important;
        font-weight: 700;
    }

    .site-navbar .nav-link.active::before,
    .site-navbar .nav-link[aria-current="page"]::before {
        content: "";

        display: inline-block;

        width: 6px;
        height: 6px;

        margin-right: .55rem;

        background: #fff;

        border-radius: 50%;

        vertical-align: middle;
    }

}


/* =========================================================
   HOMEPAGE SECTION SCROLL OFFSETS
   ========================================================= */

#menu,
#trailer,
#events,
#gallery {
    scroll-margin-top: 85px;
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-home {
    width: 100%;

    min-height: clamp(
        520px,
        76vh,
        820px
    );

    background-color: #000;

    background-image:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, .02) 0%,
            rgba(0, 0, 0, .05) 55%,
            rgba(0, 0, 0, .92) 100%
        ),
        var(--hero-image);

    background-repeat: no-repeat;

    background-position: center center;

    background-size: cover;

    border-bottom: 1px solid #1d1d1d;
}

.hero-overlay {
    position: relative;

    z-index: 1;

    background:
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(0, 0, 0, .18) 40%,
            rgba(0, 0, 0, .72) 100%
        );
}

.hero-copy {
    max-width: 900px;
}

.hero-tagline {
    font-weight: 500;

    text-shadow:
        0 2px 14px
        rgba(0, 0, 0, .95);
}


/* =========================================================
   BUTTONS
   ========================================================= */

.btn-ox {
    background: #fff;

    color: #000;

    border-radius: 0;

    font-weight: 800;

    letter-spacing: .08em;

    border: 1px solid #fff;
}

.btn-ox:hover,
.btn-ox:focus {
    background: #ddd;

    color: #000;

    border-color: #ddd;
}

.hero-home .btn {
    font-weight: 700;

    letter-spacing: .04em;
}


/* =========================================================
   SECTIONS
   ========================================================= */

.section-title {
    font-weight: 900;

    letter-spacing: .05em;

    text-transform: uppercase;
}


/* =========================================================
   MENU
   ========================================================= */

.menu-card,
.dark-card {
    background: #111;

    border: 1px solid #2a2a2a;

    color: #fff;
}

.menu-price {
    font-weight: 800;
}

.badge-ox {
    background: #fff;

    color: #000;
}


/* =========================================================
   GALLERY
   ========================================================= */

.gallery-img {
    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}


/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select {
    background: #111;

    border-color: #333;

    color: #fff;
}

.form-control:focus,
.form-select:focus {
    background: #111;

    color: #fff;

    border-color: #888;

    box-shadow: none;
}


/* =========================================================
   LOCATIONS
   ========================================================= */

.locations-hero {
    background:
        linear-gradient(
            180deg,
            #050505 0,
            #101010 100%
        );

    border-bottom: 1px solid #242424;
}

.location-detail-card {
    scroll-margin-top: 90px;
}

.location-photo {
    width: 100%;

    height: 320px;

    object-fit: cover;
}

.location-photo-placeholder {
    height: 320px;

    background:
        radial-gradient(
            circle at center,
            #242424,
            #0a0a0a
        );

    color: #777;
}

.locations-map-section {
    border-top: 1px solid #e6e6e6;
}

.location-map-card {
    overflow: hidden;
}

.location-map-frame {
    height: 330px;

    background: #e9ecef;
}

.location-map-frame iframe {
    display: block;

    width: 100%;

    height: 100%;

    border: 0;
}

.location-map-placeholder {
    height: 330px;

    background: #e9ecef;

    color: #6c757d;
}

.tracking-wide {
    letter-spacing: .12em;
}


/* =========================================================
   ADMIN
   ========================================================= */

.admin-shell {
    min-height: 100vh;

    background: #f4f5f7;

    color: #1d1d1f;
}

.admin-sidebar {
    background: #111;

    color: #fff;

    min-height: 100vh;
}

.admin-sidebar a {
    color: #c9c9c9;

    text-decoration: none;

    display: block;

    padding: .65rem .8rem;

    border-radius: .4rem;
}

.admin-sidebar a:hover {
    background: #222;

    color: #fff;
}

.table img.thumb {
    width: 64px;

    height: 48px;

    object-fit: cover;
}


/* =========================================================
   SMALL FLOATING WILD OX BACK TO TOP
   DESKTOP ONLY
   ========================================================= */

#backToTop.back-to-top {
    position: fixed !important;

    right: 18px !important;
    bottom: 18px !important;

    top: auto !important;
    left: auto !important;

    z-index: 9999;

    width: 54px !important;
    height: 54px !important;

    min-width: 54px !important;
    max-width: 54px !important;

    min-height: 54px !important;
    max-height: 54px !important;

    margin: 0 !important;

    padding: 5px !important;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    background:
        rgba(0, 0, 0, .92);

    border:
        1px solid
        rgba(255, 255, 255, .28);

    border-radius: 50%;

    overflow: hidden;

    text-decoration: none;

    box-shadow:
        0 6px 18px
        rgba(0, 0, 0, .38);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform: translateY(8px);

    transition:
        opacity .2s ease,
        visibility .2s ease,
        transform .2s ease,
        border-color .2s ease,
        background-color .2s ease;
}


/*
|--------------------------------------------------------------------------
| Back To Top Logo
|--------------------------------------------------------------------------
*/

#backToTop.back-to-top img {
    display: block !important;

    width: 31px !important;
    height: 28px !important;

    min-width: 0 !important;
    max-width: 31px !important;

    min-height: 0 !important;
    max-height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: contain !important;

    border: 0 !important;
}


/*
|--------------------------------------------------------------------------
| Back To Top Label
|--------------------------------------------------------------------------
*/

#backToTop.back-to-top span {
    display: block;

    margin: 0 !important;

    padding: 0 !important;

    color:
        rgba(255, 255, 255, .72);

    font-size: 7px !important;

    font-weight: 700;

    line-height: 8px;

    letter-spacing: .08em;

    text-decoration: none;
}


/*
|--------------------------------------------------------------------------
| Visible
|--------------------------------------------------------------------------
*/

#backToTop.back-to-top.show {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transform: translateY(0);
}


/*
|--------------------------------------------------------------------------
| Hover
|--------------------------------------------------------------------------
*/

#backToTop.back-to-top:hover {
    background: #000;

    border-color: #fff;

    transform: translateY(-2px);
}

#backToTop.back-to-top:hover span {
    color: #fff;
}


/* =========================================================
   TABLET / MOBILE
   ========================================================= */

@media (max-width: 991.98px) {

    .hero-home {
        min-height:
            clamp(
                500px,
                72vh,
                720px
            );

        background-size: auto 100%;

        background-position: center top;
    }


    /*
     * Hide floating back-to-top
     */

    #backToTop.back-to-top {
        display: none !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .location-photo,
    .location-photo-placeholder {
        height: 240px;
    }

    .location-map-frame,
    .location-map-placeholder {
        height: 280px;
    }

}


@media (max-width: 575.98px) {

    .site-navbar .navbar-brand {
        font-size: .88rem;

        max-width: 78%;

        white-space: normal;

        line-height: 1.15;
    }

    .hero-home {
        min-height: 560px;

        background-size: auto 82%;

        background-position: center 6%;
    }

    .hero-overlay {
        background:
            linear-gradient(
                180deg,
                transparent 0%,
                transparent 42%,
                rgba(0, 0, 0, .55) 62%,
                #000 100%
            );
    }

    .hero-tagline {
        font-size: 1rem;

        line-height: 1.5;
    }

    .hero-home .btn {
        width: 100%;

        font-size: .95rem;
    }

    .section-title {
        letter-spacing: .035em;
    }

}


/* =========================================================
   EXTRA LARGE DISPLAYS
   ========================================================= */

@media (min-width: 1600px) {

    #backToTop.back-to-top {
        right: 22px !important;

        bottom: 22px !important;
    }

}