/***************** ROOT COLORS *****************/
:root {
    --primary: #06A3DA;
    --secondary: #F57E57;
    --light: #EEF9FF;
    --dark: #091E3E;
}

/***************** RESET *****************/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

body {
    font-family: 'Jost', sans-serif;
    overflow-x: hidden;
}

/***************** TYPOGRAPHY *****************/
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; }

/***************** BUTTONS *****************/
.btn {
    font-weight: 600;
    transition: .4s;
}

.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);
}

/***************** SPINNER *****************/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: .5s;
}

#spinner.show {
    opacity: 1;
    visibility: visible;
}

/***************** BACK TO TOP *****************/
.back-to-top {
    position: fixed;
    display: none;
    right: 20px;
    bottom: 20px;
    z-index: 999;
}

/***************** NAVIGATION *****************/
.navbar-light .navbar-nav .nav-link {
    padding: 18px 15px;
    font-size: 17px;
    font-family: 'Jost', sans-serif;
    color: var(--dark);
    transition: .3s;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

/********* MOBILE NAVBAR FIX *********/
@media (max-width: 991px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
        text-align: center;
        font-size: 16px;
    }
}

/***************** CAROUSEL *****************/
.carousel-caption {
    background: rgba(0, 0, 0, .65);
    left: 0; right: 0; top: 0; bottom: 0;
}

.carousel-control-prev, .carousel-control-next {
    width: 10%;
}

.carousel-caption h1 {
    font-size: clamp(24px, 5vw, 55px);
}

.carousel-caption h5 {
    font-size: clamp(14px, 3vw, 20px);
}

/***************** HERO + BG *****************/
.hero-header,
.bg-appointment {
    background: linear-gradient(rgba(9,30,62,.85), rgba(9,30,62,.85)), 
    url('../img/carousel-1.jpg') center/cover no-repeat;
}

/***************** SECTION TITLE *****************/
.section-title h5 {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
}

.section-title h5:before,
.section-title h5:after {
    content: "";
    position: absolute;
    height: 3px;
    bottom: 0;
}

.section-title h5:before {
    width: 35px;
    left: 100%;
    margin-left: 10px;
    background: var(--primary);
}

.section-title h5:after {
    width: 20px;
    left: calc(100% + 50px);
    background: var(--secondary);
}

/***************** SERVICE ITEMS *****************/
.service-item {
    overflow: hidden;
    border-radius: 10px;
    background: #fff;
    transition: .4s;
}

.service-item img {
    transition: .4s;
}

.service-item:hover img {
    transform: scale(1.10);
}

/***************** OFFER SECTION *****************/
.bg-offer {
    background: url('../img/carousel-1.jpg') center/cover no-repeat;
}

.offer-text {
    background: rgba(6,163,218,.85);
}

/***************** TEAM SECTION *****************/
.team-item {
    overflow: hidden;
    border-radius: 10px;
    transition: .4s;
}

.team-text {
    transition: .4s;
}

/***************** TESTIMONIAL *****************/
.bg-testimonial {
    background: url('../img/carousel-2.jpg') center/cover no-repeat;
}

.testimonial-carousel img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
}

@media (max-width: 576px) {
    .testimonial-carousel img {
        width: 70px !important;
        height: 70px !important;
    }
}

/***************** GLOBAL 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; line-height: 23px; }
    
    .service-item, 
    .team-item, 
    .offer-text {
        margin-bottom: 25px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    body { font-size: 14px; }

    .btn-lg-square {
        width: 40px; height: 40px;
    }

    .carousel-caption {
        padding: 15px;
    }
}

/***************** NO OVERFLOW *****************/
html, body {
    overflow-x: hidden !important;
}
