html {
    scroll-behavior: smooth;
    scroll-padding-top: 92px;
}

a {
    text-decoration: none;
}

nav {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    width: 100%;
    line-height: 1.5;
    background-color: #ebecec;
    background-color: rgba(235, 236, 236, 0.9);
    z-index: 1000;
}

@media (min-width: 992px) {
    nav {
        flex-direction: row;
        align-items: center;
    }
}

nav a:hover,
nav a:focus {
    text-decoration: none !important;
}

nav logo {
    display: flex;
    justify-content: space-between;
    order: 2;
    margin: 0.25rem 1.5rem;
}

nav .btn-menu-bar {
    display: block;
    background: transparent;
    border: none;
    color: #153561;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav .btn-menu-bar:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

@media (min-width: 992px) {
    nav .btn-menu-bar {
        display: none;
    }
}

.hamburger-icon,
.cross-icon {
    font-size: 1.5rem;
    transition: all 1s ease;
}

nav .navbar-brand img {
    height: 52px;
    /* margin-top: 1rem;
    margin-bottom: 1rem; */
}

nav menu {
    order: 3;
    margin: 0;
    padding: 0.5rem 1.5rem;
}

@media (min-width: 992px) {
    nav menu {
        display: flex !important;
        padding: 0;
    }
}

nav menu:not(.show) {
    display: none;
}

@media (max-width: 991px) {

    /* Prevent body scroll when menu is open */
    body:has(nav menu.show) {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    /* Make menu scrollable */
    nav menu.show {
        -webkit-overflow-scrolling: touch;
        overflow-y: auto;
        overflow-x: hidden;
        max-height: calc(100vh - 92px);
    }
}

nav menu ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 992px) {
    nav menu ul {
        flex-direction: row;
        align-items: center;
    }
}

nav menu ul li {
    margin-right: 0.875rem;
    padding: 0.5rem 0;
    font-size: 1.2rem;
    border-bottom: 5px solid transparent;
    transition: all 0.5s ease;
}

@media (min-width: 992px) {
    nav menu ul li {
        padding: 1.5rem;
    }

    nav menu ul li:has(>.sub-menus):hover {
        border-bottom-color: #8dc63f;
    }
}

nav menu ul li a {
    position: relative;
    color: #000;
    border-bottom: 3px solid transparent;
}

@media (max-width: 991px) {
    nav menu ul li:has(>.sub-menus.show)>a {
        border-bottom-color: #8dc63f;
    }
}

menu ul li:has(.sub-menus)>a::after {
    position: absolute;
    content: "\f107";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1rem;
    top: 50%;
    right: -1.25rem;
    width: 1rem;
    height: 1rem;
    transform: translateY(-50%);
    transition: all 0.5s ease;
}

menu ul li:has(>.sub-menus.show)>a::after,
menu ul li:has(>.sub-menus):hover>a::after,
menu ul li:has(>.sub-menus)>a:focus::after {
    transform: rotate(90deg) translateX(-5px) translateY(-5px);
}

menu ul li:not(:has(>.sub-menus.show))>a::after {
    transform: translateY(-50%) rotate(0deg);
}

nav menu ul li>.sub-menus {
    display: flex;
    position: static;
    visibility: visible;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: none;
    opacity: 1;
    background: rgba(235, 236, 236, 0.95);
    background: rgba(180, 235, 235, 0.8);
    padding: 1rem;
    z-index: 999;
    overflow: scroll;
    pointer-events: auto;
    scroll-behavior: smooth;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

@media (min-width: 992px) {
    nav menu ul li>.sub-menus {
        position: absolute;
        visibility: hidden;
        max-height: calc(100vh - 100px);
        opacity: 0;
        background: url('../images/navbar/background.webp') no-repeat center top / cover, url('../images/navbar/background.png') no-repeat center top / cover, linear-gradient(to bottom right, #adcdda 0%, #aecedb 100%, #93bed0 0%, #8fbcce 100%);
        padding: 2rem 0;
        pointer-events: none;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

@media (max-width: 991px) {
    nav menu ul li>.sub-menus {
        margin-top: 0.5rem;
        border-radius: 1.5rem
    }

    nav menu ul li>.sub-menus ul {
        flex-direction: column;
    }

    nav menu ul li>.sub-menus ul li {
        margin-right: 0;
        border-bottom: 1px solid #ddd;
        padding: 0.5rem 0;
    }

    nav menu ul li>.sub-menus ul li a {
        font-size: 1rem;
        padding-left: 1rem;
    }
}

/* nav menu ul li:hover>.sub-menus, */
nav menu ul li>.sub-menus.show,
nav menu ul li>.sub-menus:hover {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 991px) {

    /* hide all submenus by default */
    nav menu ul li>.sub-menus {
        display: none !important;
    }

    /* show only when .show is added */
    nav menu ul li>.sub-menus.show {
        display: block !important;
        padding-left: 0.125rem;
        padding-right: 0.125rem;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

nav menu ul li>.sub-menus::-webkit-scrollbar {
    width: 8px;
}

nav menu ul li>.sub-menus::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

nav menu ul li>.sub-menus::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

nav menu ul li>.sub-menus::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

nav menu ul li>.sub-menus .menu-title {
    color: #051eeb;
    text-align: center;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

@media (min-width: 992px) {
    nav menu ul li>.sub-menus .menu-title {
        margin-bottom: 1rem;
    }
}

nav menu .mega-menu-card {
    position: relative;
    text-align: center;
    height: 100%;
    background-color: #fff;
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0)), var(--bg-image);
    background-size: 100% 100%;
    background-position: top;
    background-repeat: no-repeat;
    background-blend-mode: normal;
    border: 3px solid #006bbd;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
}

nav menu .mega-menu-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.7);
}

nav menu .mega-menu-card a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0.5rem 0;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    nav menu .mega-menu-card a {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
    }
}

nav menu .mega-menu-card .menu-image {
    width: 50px;
    height: 50px;
    margin-bottom: 0.5rem;
}

@media (min-width: 992px) {
    nav menu .mega-menu-card .menu-image {
        width: 84px;
        height: 84px;
    }
}

nav menu .mega-menu-card .menu-heading {
    font-weight: 700;
    color: #051eeb;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

nav menu .mega-menu-card .menu-tagline {
    color: #051eeb;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.6);
}

nav .container-phone {
    order: 0;
    flex: 0 0 100%;
    max-width: 100%;
    text-align: center;
    background: #153561;
    color: #fff;
}

@media (min-width: 992px) {
    nav .container-phone {
        order: 3;
        flex: 0 0 auto;
        max-width: none;
        background: transparent;
        padding-right: 1.25rem;
    }
}

nav .container-phone .phone-number {
    display: block;
    padding: 0.375rem 0.75rem;
    background-color: #8dc63f;
    color: #000;
    font-size: 1.2rem;
    font-weight: 500;
    cursor: pointer;
}

@media (min-width: 992px) {
    nav .container-phone .phone-number {
        display: inline-block;
        vertical-align: middle;
        border-radius: 1rem;
        cursor: default;
    }
}

footer {
    background: url('../images/footer-background.webp') no-repeat center bottom;
    background-size: cover;
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    font-weight: 500;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

footer h5 {
    font-weight: bold;
    color: #76fdfc;
    margin-bottom: 1rem;
}

footer a {
    color: rgb(248, 249, 250);
    transition: 0.4s;
}

footer a:hover {
    text-decoration: none !important;
    color: #88d0ff;
    transition: color 0s linear;
    -moz-transition: color 0s linear;
    -webkit-transition: color 0s linear;
    -ms-transition: color 0s linear;
}

footer .copyright {
    margin-top: 1.5rem;
    padding: 1rem 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    color: #a6a6a6;
}

@media (min-width: 1200px) {
    .col-xl-custom-5 {
        flex: 0 0 auto;
        width: 20%;
    }
}

/* Telephone Link show normal cursor */
@media (min-width: 992px) {
    a[href^="tel:"] {
        cursor: default;
    }

    footer a.phone-link:hover {
        color: rgb(248, 249, 250);
    }
}

.btn-schedule {
    font-size: 1.1rem;
    font-weight: 700;
    background-color: #f9a11b;
}

.btn-schedule:hover {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgb(249 161 27/1), 0 0 #0000;
}

/* Support Modal Button Styles */
#modal-support .btn-warning {
    background: #f9a11b;
    border-color: #f9a11b;
    color: #1858c3;
    font-weight: 600;
}

#modal-support .btn-warning:hover {
    background: #e8930e;
    border-color: #e8930e;
}

#modal-support .btn-outline-secondary {
    border-color: #1858c3;
    color: #1858c3;
}

#modal-support .btn-outline-secondary:hover {
    background: rgba(24, 88, 195, 0.1);
}