/* =========================
   Root Variables
   ========================= */
:root {
    --primary: #4DB6E2;
    --secondary: #76D7C4;
    --success: #A8E6CF;
    --info: #C5CAE9;
    --light: #FFFFFF;
    --dark: #555555;
}

/* =========================
   Typography
   ========================= */
h1, h2, .font-weight-bold {
    font-weight: 700;
    color: var(--dark);
}
h3, h4, .font-weight-semi-bold {
    font-weight: 600;
    color: var(--dark);
}
h5, h6, .font-weight-medium {
    font-weight: 500;
    color: var(--dark);
}

/* =========================
   Buttons
   ========================= */
.btn {
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    transition: .5s;
}
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--light);
}
.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--light);
}
.btn-secondary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-square, .btn-sm-square, .btn-lg-square {
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}
.btn-square { width: 36px; height: 36px; }
.btn-sm-square { width: 28px; height: 28px; }
.btn-lg-square { width: 46px; height: 46px; }

/* =========================
   Navbar
   ========================= */
.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-size: 18px;
    transition: color 0.3s;
}
.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 15px;
}
.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0;
    }
}

/* =========================
   Carousel
   ========================= */
.carousel-caption {
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(36, 47, 64, 0.85);
    z-index: 1;
}
@media (max-width: 576px) {
    .carousel-caption h5 { font-size: 14px; font-weight: 500; }
    .carousel-caption h1 { font-size: 30px; font-weight: 600; }
}
.carousel-control-prev, .carousel-control-next { width: 10%; }
.carousel-control-prev-icon, .carousel-control-next-icon { width: 3rem; height: 3rem; }

/* =========================
   Banner & Section Titles
   ========================= */
@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);
}

/* =========================
   WOW.js Animation Fix
   ========================= */
.wow { visibility: hidden; }

/* =========================
   Hero & Backgrounds
   ========================= */
.hero-header {
    background: linear-gradient(rgba(77, 182, 226, 0.85), rgba(77, 182, 226, 0.85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
    color: var(--light);
}
.bg-appointment {
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}
.appointment-form { background: rgba(245, 238, 194, 0.95); }
.bg-offer {
    background: url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}
.offer-text { background: rgba(212, 175, 55, 0.85); }

/* =========================
   Service & Team Items
   ========================= */
.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; }

/* =========================
   Carousels (Owl)
   ========================= */
.price-carousel .owl-nav,
.testimonial-carousel .owl-nav {
    position: absolute;
    display: flex;
    justify-content: space-between;
    opacity: 0;
    transition: .5s;
}
.price-carousel .owl-nav {
    width: calc(100% + 45px);
    height: 45px;
    top: calc(50% - 22.5px);
    left: -22.5px;
}
.price-carousel:hover .owl-nav { opacity: 1; }
.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next,
.testimonial-carousel .owl-nav .owl-prev,
.testimonial-carousel .owl-nav .owl-next {
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; background: var(--primary);
    border-radius: 2px; font-size: 22px;
    transition: .5s;
}
.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover,
.testimonial-carousel .owl-nav .owl-prev:hover,
.testimonial-carousel .owl-nav .owl-next:hover {
    background: var(--secondary);
}
.testimonial-carousel .owl-nav {
    width: calc(100% + 46px);
    height: 46px;
    top: calc(50% - 23px);
    left: -23px;
    z-index: 1;
}
.testimonial-carousel .owl-item img {
    width: 120px; height: 120px; object-fit: cover;
}

/* =========================
   Testimonial Content
   ========================= */
.testimonial-carousel .testimonial-content {
    display: block;
    text-align: center;
    color: var(--light);
    background: rgba(0, 0, 0, 0.6);
    padding: 20px;
    z-index: 1;
    position: relative;
    border-radius: 8px;
}
.testimonial-carousel .testimonial-content p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--light);
}
.testimonial-carousel .testimonial-content h5 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}
.testimonial-carousel .testimonial-content span {
    font-size: 14px;
    color: var(--info);
}

/* =========================
   Team Section
   ========================= */
.team-section .team-item {
    transition: box-shadow 0.3s, transform 0.3s;
}
.team-section .team-item:hover {
    box-shadow: 0 0.5rem 2rem rgba(13, 110, 253, 0.15);
    transform: translateY(-8px) scale(1.03);
}
.team-section .team-img img {
    object-fit: cover;
    height: 100%; width: 100%;
    transition: transform 0.3s;
}
.team-section .team-item:hover .team-img img { transform: scale(1.05); }
.team-section .team-social {
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}
.team-section .team-item:hover .team-social {
    opacity: 1;
    pointer-events: auto;
}
.team-section .team-social .btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; padding: 0;
}
@media (max-width: 991.98px) {
    .team-section .section-title { margin-bottom: 2rem; }
}

/* =========================
   Newsletter
   ========================= */
.newsletter-box {
    margin-bottom: 0 !important;
    background: var(--info);
    color: var(--dark);
}
.newsletter-box input { border-color: var(--primary); }
.newsletter-box input:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 5px var(--secondary);
}

/* =========================
   Footer
   ========================= */
.footer-section {
    margin-top: -24px !important;
    background: var(--dark);
    color: var(--light);
}
@media (max-width: 767.98px) {
    .footer-section { margin-top: -12px !important; }
}
.footer-section .btn-social {
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.footer-section .btn-social:hover {
    background: #0d6efd;
    color: #fff !important;
    border-color: #0d6efd;
}
.footer-section a { color: var(--primary); }
.footer-section a:hover { color: var(--secondary); }
.footer-section .form-control:focus {
    box-shadow: none;
    border-color: #0d6efd;
}
.footer-section .input-group .form-control,
.footer-section .input-group .btn { font-size: 1rem; }
@media (max-width: 991.98px) {
    .footer-section .newsletter-form { max-width: 100%; }
}

/* =========================
   Miscellaneous
   ========================= */
#scroll-top-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
}
