/* =========================================================
   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 {
    display: flex;
    align-items: center;
    gap: .65rem;

    margin-right: 1rem;

    padding-top: .35rem;
    padding-bottom: .35rem;

    color: #fff;
    text-decoration: none;

    font-size: 1.02rem;
    letter-spacing: .01em;
}

.site-navbar .navbar-brand:hover,
.site-navbar .navbar-brand:focus {
    color: #fff;
}


/* Logo */

.site-navbar .navbar-brand-logo {
    display: block;

    width: 42px;
    height: 42px;

    flex: 0 0 42px;

    object-fit: contain;
}


/* Company Name */

.site-navbar .navbar-brand-text {
    display: flex;
    align-items: baseline;
    gap: .3rem;

    color: #fff;

    font-size: 1rem;
    line-height: 1;

    white-space: nowrap;
}

.site-navbar .navbar-brand-text strong {
    font-weight: 800;
}


/* Nav Links */

.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) {

    .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;
    }

    .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);
    }

    .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;
    }

}


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

#menu,
#trailer,
#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: min(72%, 1100px) auto;

    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: 1px solid #fff;
    border-radius: 0;

    font-weight: 800;
    letter-spacing: .08em;
}

.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;
    color: #fff;

    border: 1px solid #2a2a2a;
}

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

.badge-ox {
    background: #fff;
    color: #000;
}


/* =========================================================
   GALLERY / WILD OX LIFE
========================================================= */

.gallery-shell {
    position: relative;

    width: 100%;
}

.gallery-scroll {
    display: flex;
    gap: 1rem;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 0;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    scrollbar-width: none;
}

.gallery-scroll::-webkit-scrollbar {
    display: none;
}


/* Gallery Slide */

.gallery-slide {
    flex: 0 0 calc((100% - 2rem) / 3);

    min-width: 0;

    scroll-snap-align: start;
}


/*
|--------------------------------------------------------------------------
| Single Image
|--------------------------------------------------------------------------
|
| Prevent a single gallery image from stretching
| across the entire gallery section.
|
*/

.gallery-slide:only-child {
    flex: 0 0 420px;

    max-width: 420px;

    margin-left: auto;
    margin-right: auto;
}


/* Gallery Item */

.gallery-item {
    display: flex;
    flex-direction: column;

    width: 100%;
}


/* Gallery Image */

.gallery-img {
    display: block;

    width: 100%;

    aspect-ratio: 4 / 3;

    object-fit: cover;
}


/* Caption */

.gallery-caption {
    padding: .9rem .5rem 0;

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

    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.4;

    text-align: center;
}

.gallery-caption:empty {
    display: none;
}


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

.gallery-arrow {
    position: absolute;

    top: 42%;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

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

    border-radius: 50%;

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

    color: #fff;

    font-size: 1.25rem;

    cursor: pointer;

    transform: translateY(-50%);

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

.gallery-arrow:hover,
.gallery-arrow:focus {
    background: #fff;
    color: #000;

    border-color: #fff;
}

.gallery-arrow-prev {
    left: -23px;
}

.gallery-arrow-next {
    right: -23px;
}


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

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

    border-color: #333;
}

.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;
}


/* =========================================================
   LOCATION HOURS MODAL
========================================================= */

.hours-modal .modal-body {
    color: #111;
}

.hours-modal .border.rounded {
    background: #fff;
    color: #111;
}

.hours-modal .border.rounded .fw-bold {
    color: #111 !important;
}

.hours-modal .border.rounded .text-secondary {
    color: #6c757d !important;
}

.hours-modal .hours-table,
.hours-modal .hours-table td {
    color: #111;
}

.hours-modal .hours-closed {
    color: #6c757d !important;
}


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

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

    background: #f4f5f7;
    color: #1d1d1f;
}

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

    background: #111;
    color: #fff;
}

.admin-sidebar a {
    display: block;

    padding: .65rem .8rem;

    color: #c9c9c9;

    border-radius: .4rem;

    text-decoration: none;
}

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

.table img.thumb {
    width: 64px;
    height: 48px;

    object-fit: cover;
}


/* =========================================================
   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
========================================================= */

@media (max-width: 991.98px) {

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

    .site-navbar .navbar-collapse {
        margin-top: .65rem;

        border-top: 1px solid #242424;
    }

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

    .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;
    }


    /* Hero */

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

        background-size:
            min(86%, 900px)
            auto;

        background-position: center 8%;
    }


    /* Gallery */

    .gallery-slide {
        flex-basis:
            calc((100% - 1rem) / 2);
    }

    .gallery-slide:only-child {
        flex-basis: 400px;

        max-width: 400px;
    }

    .gallery-arrow-prev {
        left: 8px;
    }

    .gallery-arrow-next {
        right: 8px;
    }


    /* 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;
    }

}


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

@media (max-width: 575.98px) {

    /* Navbar */

    .site-navbar .navbar-brand {
        gap: .45rem;

        margin-right: .5rem;

        max-width: 78%;

        white-space: normal;

        font-size: .88rem;
        line-height: 1.15;
    }

    .site-navbar .navbar-brand-logo {
        width: 34px;
        height: 34px;

        flex-basis: 34px;
    }

    .site-navbar .navbar-brand-text {
        gap: .2rem;

        font-size: .78rem;
    }


    /* Hero */

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

        background-size: 92% auto;

        background-position: center 10%;
    }

    .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 Titles */

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


    /* Gallery */

    .gallery-slide {
        flex-basis: 88%;

    }

    .gallery-slide:only-child {
        flex-basis: 100%;

        max-width: 100%;
    }

    .gallery-arrow {
        display: none;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 390px) {

    .site-navbar .navbar-brand-text {
        flex-direction: column;
        align-items: flex-start;

        gap: .1rem;

        font-size: .72rem;
        line-height: 1.05;
    }

    .hero-home {
        background-size: 96% auto;

        background-position: center 8%;
    }

}


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

@media (min-width: 1600px) {

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

}