﻿.navbar-toggler {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 1.1rem;
    right: 1rem;
    border: none;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0);
}

.navbar-toggler:checked {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row {
    height: 4.9rem;
}

.navbar-brand {
    font-size: 1.1rem;
}

.nav-item:has( .submenu a.active) .menu-border {
    background-color: #0F34081C;
}

.logo {
    text-decoration: none;
    background-image: url("../logo.svg");
    background-size: contain;
    background-repeat: no-repeat;
    width: 90px;
    height: 39px;
}

.bi {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.nav-item {
    /*font-size: 0.9rem;*/
}

.nav-item:first-of-type {
    padding-top: 1rem;
}

.nav-item:last-of-type {
    padding-bottom: 1rem;
}

.nav-item .nav-link {
    color: var(--black);
    background: none;
    border: none;
    height: 3rem;
    display: flex;
    align-items: center;
    line-height: 3rem;
    width: 100%;
    justify-content: space-between;
}

.menu-border .nav-link {
    width: 80%;
}

.arrow-container {
    width: 20%;
    display: flex;
}

.nav-item .nav-link-border::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 10px; /* Adjust for how short you want on the left */
    right: 10px; /* Adjust for how short you want on the right */
    height: 2px; /* Thickness of the border */
    background-color: black; /* Border color */
}

.menu-border:has(> a.active) {
    background-color: #0F34081C;
}

.submenu a.nav-link.active {
    /*background-color: #0F34081C;*/
    font-weight: bold;
}

/*.nav-scrollable {
    display: none;
}*/

.nav-scrollable {
    display: block; /* Ensure it is block to allow height transition */
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease;
}

.navbar-toggler:checked ~ .nav-scrollable {
    /*display: block;*/
    /*height: auto;*/ /* This will be dynamically set via JavaScript */

}

.only-desktop {
    display: none;
}

.only-mobile {
    display: block;
}

.submenu .nav-link {
    height: auto;
    line-height: normal;
}

.contact-info {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    gap: 10px; /* Space between items */
    padding: 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: center; /* Align items vertically */
    font-size: 16px; /* Set font size */
    color: #333; /* Set text color */
}

.contact-item a {
    color: #333; /* Match text color */
    text-decoration: none; /* Remove underline from links */
    font-weight: 600;
}

.contact-item a:hover {
    text-decoration: underline; /* Add underline on hover */
}

.icon {
    margin-right: 8px; /* Space between icon and text */
    font-size: 20px; /* Adjust icon size if necessary */
}

/* Shared styles for all Font Awesome icons */
.fas {
    display: inline-block; /* Ensures it behaves like an inline element */
    width: 20px; /* Adjust based on the size of the image */
    height: 30px; /* Adjust based on the size of the image */
    /*background-size: contain;*/ /* Scales the background image within the element */
    background-repeat: no-repeat;
    background-position: bottom;
}

/* Specific background for envelope icon */
.fa-envelope {
    background-image: url("../img/material-symbols_mail.png");
}

/* Specific background for phone icon */
.fa-phone-alt {
    background-image: url("../img/ic_baseline-phone.png");
}

.button-container {
    margin-top: 40px;
}

@media (min-width: 768px) {

    .nav-item {
        padding-bottom: 0.5rem;
    }

    .nav-link.menu {
        padding: .5rem 1rem;
    }

    .nav-item .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: white;
    }

    .nav-item .nav-link {
        border-radius: 4px;
    }

    .only-desktop {
        display: block;
    }

    .only-mobile {
        display: none;
    }

    .nav-item .nav-link {
        color: #d7d7d7;
    }

    .navbar-toggler {
        display: none;
    }

    .navbar {
        display: inline-block;
        padding-top: 33px;
    }

    .nav-item {
        display: inline-block;
    }

    .menu-border .nav-link {
        width: 100%;
    }

    .nav-scrollable {
        /* Never collapse the sidebar for wide screens */
        display: inline-block;
        float: right;
        overflow-y: auto;
        margin-right: 60px;
        margin-top: 26px; /*Remove this when top menu is added */
        height: unset;
        overflow: initial;
        /*transition: height 0.3s ease;*/
    }

    .logo {
        width: 169px;
        height: 81px;
    }

    .nav-item a.active {
        /*TODO: this is just temporary before we add the pages so the menus are not active all the time */
        background-color: rgba(255, 255, 255, 0.37);
    }

    .menu-border .nav-link {
        width: 100%;
    }

    .arrow-container {
        display: none;
    }

    .order-postal-code-menu-btn {
        color: #ffffff;
        border-color: #ffffff;
        background-color: transparent;
        padding: 0.5rem 1.5rem;
    }

    .order-postal-code-menu-btn:focus,
    .order-postal-code-menu-btn:focus-visible,
    .order-postal-code-menu-btn:active,
    .order-postal-code-menu-btn:active:focus {
        box-shadow: none;
    }

    .order-postal-code-menu-btn:hover {
        background-color: transparent;
        color: #ffffff;
        border-color: #ffffff;
    }
}
