/********** Template CSS **********/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

h1, h2, .font-weight-bold { font-weight: 700 !important; }
h3, h4, .font-weight-semi-bold { font-weight: 600 !important; }
h5, h6, .font-weight-medium { font-weight: 500 !important; }

.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn-primary,
.btn-secondary { color: #fff; }

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

/**************************************/
/*********** FIXED NAVBAR *************/
/**************************************/

/************ PERFECT NAVBAR FIX ************/
.custom-navbar {
    padding: 8px 10px;
    height: 72px;
    z-index: 99999;
}

/* Logo */
.nav-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Title */
.nav-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #08328f;
    margin-left: 8px;
    white-space: nowrap;
}

/* Nav Links */
.navbar-nav .nav-link {
    padding: 10px 15px !important;
    font-size: 16px;
    font-weight: 500;
}

/* -------------------------------------------
   FORCE STACKED NAVBAR ON MOBILE
--------------------------------------------*/
/* =========================================================
   FORCE MOBILE NAVBAR TO STACK INTO 3 LINES
   (LOGO -> TITLE -> HAMBURGER)
   Desktop stays perfect.
========================================================= */
@media (max-width: 991px) {

    /* Stack everything vertically */
    .navbar .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
    }

    /* Stack logo + title */
    .navbar-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 10px;
        width: 100%;
    }

    .nav-logo {
        height: 45px;
        margin-bottom: 5px;
    }

    .nav-title {
        font-size: 1.2rem;
        text-align: center;
    }

    /* Hamburger 3rd line */
    .navbar-toggler {
        margin-top: 10px;
    }

    /* Center dropdown */
    #navbarMenu {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .navbar-nav {
        width: 100%;
    }

    .navbar-nav .nav-item {
        margin: 8px 0;
    }
}




/**************************************/
/*********** REST OF TEMPLATE *********/
/**************************************/

.carousel-caption {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 30, 62, .85);
    z-index: 1;
}

@media (max-width: 576px) {
    .carousel-caption h5 {
        font-size: 14px;
        font-weight: 500 !important;
    }
    .carousel-caption h1 {
        font-size: 30px;
        font-weight: 600 !important;
    }
}

.carousel-control-prev,
.carousel-control-next { width: 10%; }

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
}

@media (min-width: 991.98px) {
    .banner {
        position: relative;
        margin-top: -90px;
        z-index: 1;
    }
}

.section-title h5::before,
.section-title h5::after {
    position: absolute;
    content: "";
    height: 3px;
    bottom: 11px;
}

.section-title h5::before {
    width: 45px;
    right: -55px;
    background: var(--primary);
}

.section-title h5::after {
    width: 15px;
    right: -75px;
    background: var(--secondary);
}

.twentytwenty-wrapper { height: 100%; }

.hero-header,
.bg-appointment {
    background-size: cover;
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)),
                url(../img/carousel-1.jpg) center center no-repeat;
}

.appointment-form { background: rgba(6, 163, 218, .7); }

.service-item img,
.service-item .bg-light,
.service-item .bg-light h5,
.team-item .team-text { transition: .5s; }

.service-item:hover img { transform: scale(1.15); }

.team-item .team-text::after,
.service-item .bg-light::after {
    position: absolute;
    content: "";
    top: 50%;
    bottom: 0;
    left: 15px;
    right: 15px;
    border-radius: 100px / 15px;
    box-shadow: 0 0 15px rgba(0,0,0,.7);
    opacity: 0;
    transition: .5s;
    z-index: -1;
}

.team-item:hover .team-text::after,
.service-item:hover .bg-light::after { opacity: 1; }

.bg-offer {
    background: url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.offer-text {
    background: rgba(6, 163, 218, .85);
}

.price-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}

.price-carousel:hover .owl-nav { opacity: 1; }

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
    width: 45px;
    height: 45px;
    color: #fff;
    background: var(--primary);
    font-size: 22px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .5s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.bg-testimonial {
    background: url(../img/carousel-2.jpg) center center no-repeat;
    background-size: cover;
}

.testimonial-carousel { background: rgba(6, 163, 218, .85); }

.testimonial-carousel .owl-nav {
    position: absolute;
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    display: flex;
    justify-content: space-between;
    z-index: 1;
}

.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 46px;
    height: 46px;
    color: #fff;
    background: var(--primary);
    border-radius: 2px;
    font-size: 22px;
    transition: .5s;
}

.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}

.testimonial-carousel .owl-item img {
    width: 120px;
    height: 120px;
}

/*********************************************/
/******** Mobile Responsive Fixes ************/
/*********************************************/

@media (max-width: 768px) {
    h1 { font-size: 28px !important; }
    h2 { font-size: 24px !important; }
    h3 { font-size: 20px !important; }
    p { font-size: 15px; }
}

@media (max-width: 768px) {
    section, .container, .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 767px) {
    .service-item, .team-item {
        margin-bottom: 20px;
    }
    .service-item img {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        padding: 20px;
        text-align: center;
    }
    .carousel-caption h1 {
        font-size: 24px !important;
    }
}

@media (max-width: 480px) {
    .btn-lg, .btn {
        padding: 8px 18px;
        font-size: 14px;
    }
}

@media (max-width: 991px) {
    .offer-text {
        padding: 20px !important;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .testimonial-carousel .owl-nav {
        display: none !important;
    }
}

img, video {
    max-width: 100%;
    height: auto;
}
