/*
Theme Name:   ESSE
Theme URI:    http://supertusch.dk/theme/esse
Description:  Basically Bootstrap 5 Child Theme created for ESSE
Author:       Supertusch
Author URI:   http://supertusch.dk
Template:     basically-bootstrap-5
Version:      1.0.0
Domain Path: /languages/
Text Domain:  esse
*/


/* ---------------------------------- */
/*   IMPORTS                          */
/* ---------------------------------- */


@import url('./assets/css/variables.css');



/* ---------------------------------- */
/*   CONTAINERS                       */
/* ---------------------------------- */

body {
    font-family: var(--font);
}

.page-container {
    flex-direction: column;
}

.grid-row {
    row-gap: 40px;
}

/* ---------------------------------- */
/*   BACKGROUND COLORS                */
/* ---------------------------------- */






/* ---------------------------------- */
/*   CONTENT COLORS                   */
/* ---------------------------------- */





/* ---------------------------------- */
/*  LINKS                             */
/* ---------------------------------- */
a,
a[href^="tel"] {
    font-family: inherit;
    color: inherit;
}

a {
    text-underline-offset: 0.125rem;
}

a[href^="tel"] {
    text-decoration: none;
}

/* Base: hover for all normal links */
a:hover {
  color: inherit;
  opacity: 0.7;
}

/* Cancel hover for special links */
.btn:hover,
.menu-item a:hover,
.nav-link:hover {
  opacity: 1;
  color: inherit; 
}



/* ---------------------------------- */
/*   HEADER & NAVIGATION              */
/* ---------------------------------- */

/* -- Header -- */

header.header-nav {
    background-color: transparent !important;
    position: fixed;
    width: 100%;
    z-index: 1030;
    transition: background-color .4s ease-in-out;
}

header.header-nav div.col-12 {
    padding: 0rem 4rem;
}

@media screen and (max-width: 640px) {
    header.header-nav div.col-12 {
        padding: 0rem 2rem;
    }
}

header.header-nav.is-scrolled {
    background-color: var(--bg-color) !important;
}

.header-columns {
    justify-content: space-between;
}

header.header-nav .navbar-light .navbar-nav .nav-link {
    color: var(--content-color);
}

header.header-nav .row {
    width: 100vw;
}



/* Motion safety */
@media (prefers-reduced-motion: reduce) {
    .header-nav {
        transition: none;
    }
}

/* -- Logo -- */

.home .site-logo {
    opacity: 0;

}

.site-logo {
    /* opacity: 0; */
    transition: opacity .4s ease-in-out;
}

.site-logo svg {
    width: 56px;
    height: fit-content;
}

.site-logo svg path[fill*="#"] {
    fill: var(--content-color);
}

.site-logo svg rect[fill*="#"] {
    fill: var(--content-color);
}

.site-logo path[stroke*="#"] {
    stroke: var(--content-color);
}

header.is-scrolled .site-logo {
    opacity: 1;
}



/* -- Burger menu -- */

.button_container {
    display: flex;
    flex-direction: column;
    /*  justify-content: center; */
    gap: 4px;
    height: fit-content;
    width: 28px;
    cursor: pointer;
    z-index: 100;
    transition: opacity .25s ease;
}

.button_container:hover {
    opacity: .7;
}

.button_container.active .top {
    transform: translateY(8px) translateX(0) rotate(45deg);
}

.button_container.active .middle {
    opacity: 0;
}

.button_container.active .bottom {
    transform: translateY(-8px) translateX(0) rotate(-45deg);
}

.button_container span {
    background-color: var(--content-color);
    color: var(--content-color);
    border: none;
    height: 4px;
    width: 100%;
    transition: all .35s ease;
    cursor: pointer;
}

/* -- Menu open / overlay -- */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, width .35s;
    z-index: 50;
}

.overlay:before {
    content: '';
    background: var(--bg-color);
    left: -55%;
    top: 0;
    width: 50%;
    height: 100%;
    position: absolute;
    transition: left .35s ease;
}

.overlay:after {
    content: '';
    background: var(--bg-color);
    right: -55%;
    top: 0;
    width: 50%;
    height: 100%;
    position: absolute;
    transition: all .35s ease;
}



.overlay.open {
    visibility: visible;
    height: 100%;
}

.overlay.open:before {
    left: 0;
}

.overlay.open:after {
    right: 0;
}

.overlay.open li {
    animation: fadeInRight .5s ease forwards;
    animation-delay: .35s;
}

.overlay.open li:nth-of-type(2) {
    animation-delay: .45s;
}

.overlay.open li:nth-of-type(3) {
    animation-delay: .55s;
}

.overlay.open li:nth-of-type(4) {
    animation-delay: .65s;
}

.overlay.open li:nth-of-type(5) {
    animation-delay: .75s;
}

.overlay.open li:nth-of-type(6) {
    animation-delay: .85s;
}

.overlay.open li:nth-of-type(7) {
    animation-delay: .95s;
}

.overlay.open li:nth-of-type(8) {
    animation-delay: 1.05s;
}

/* ---------- Nav inside overlay ---------- */
.overlay nav {
    position: relative;
    height: 70%;
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-h1);
    font-family: var(--font-display);
    font-weight: 500;
    font-weight: 400;
    text-align: center;
    z-index: 100;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.overlay ul li {
    display: block;
    min-height: 50px;
    position: relative;
    opacity: 0;
    display: flex;
    justify-content: center;
}

.overlay ul li a {
    display: block;
    position: relative;
    color: var(--content-color);
    text-decoration: none;
    /* overflow: hidden; */
    width: fit-content;
    height: fit-content;
}

.overlay ul li a {
    font-family: var(--font-display);
    font-weight: 500;
}

.overlay ul li a:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0%;
    transform: translateX(-50%);
    height: 3px;
    background: var(--content-color);
    transition: .35s;
}

.overlay ul li a:hover:after,
.overlay ul li a:focus:after,
.overlay ul li a:active:after {
    width: 100%;
}


/* ---------- Animations ---------- */
@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }

    100% {
        opacity: 1;
        left: 0;
    }
}




/* FOOTER */

footer {
    padding-top: 100px;
}

footer .footer-grid {
    display: flex;
    flex-direction: column;
    row-gap: 75px;
}

footer .footer-top,
footer .footer-mid {
    padding: 0px 1.5rem;
}

.footer-bottom {
    display: flex;
    background-color: var(--bg-color);
    justify-content: flex-end;
    gap: 12px;
    padding: 0.8rem 1.5rem;
}

.footer-bottom a {
    color: var(--content-color);
    text-decoration: none;
}

.footer-bottom a,
.footer-bottom p {
    margin: 0;
}

@media screen and (max-width: 520px) {
    .footer-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-bottom-divider {
        display: none;
    }

}




.address,
.address div,
.opening-hours,
.opening-hours div {
    font-family: var(--font-display);
    font-size: 0.9rem;
}

footer #menu-footer-menu {
    display: flex;
    flex-direction: row;
    column-gap: 2rem;
    justify-content: space-around;
    flex-wrap: wrap;
}

footer #menu-footer-menu a {
    font-size: var(--font-h1);
    color: var(--content-color);
    font-family: var(--font-display);
    font-weight: 500;
}


footer #menu-footer-menu li a {
    display: block;
    position: relative;
    color: var(--content-color);
    text-decoration: none;
    /* overflow: hidden; */
    width: fit-content;
    height: fit-content;
}


footer #menu-footer-menu li a:after {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 50%;
    width: 0%;
    transform: translateX(-50%);
    height: 5px;
    background: var(--content-color);
    transition: .35s;
}

footer #menu-footer-menu li a:hover:after,
footer #menu-footer-menu li a:focus:after,
footer #menu-footer-menu li a:active:after {
    width: 100%;
}

footer .footer-logo svg {
    width: 100%;
    height: auto;
}

footer .footer-mid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}

.footer-socials a {
    text-decoration: none;
}

.footer-socials a svg {
    width: 3rem;
    height: 3rem;
}

.footer-socials a svg path {
    fill: var(--content-color);
}


@media screen and (max-width: 680px) {
    footer .footer-mid {
        text-align: center;
        justify-content: center;
    }

}

.container-404 {
    background-color: var(--color-beet);
    color: var(--color-marigold);
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-family: var(--font-display)
}

.container-404 hgroup {
    max-width: 80%;
}

.container-404 hgroup p {
    font-family: var(--font-display)
}