/* ==========================================
   1. GLOBAL VARIABLES & OVERRIDES
   ========================================== */
:root {
    --primary: #00A896;                 /* Exact Teal Green */
    --secondary: #028090;               /* Darker Teal for hover effect */
    --light: #E6F6F5;                   /* Soft Teal background tint */
    --dark: #091E3E;
    --bs-primary: #00A896 !important;
    --bs-secondary: #028090 !important;
}

/* Force Bootstrap Primary Utility Overrides */
.text-primary,
h1.text-primary,
h2.text-primary,
h3.text-primary,
p.text-primary,
i.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #FFFFFF !important;
}

.btn-primary:hover {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.bg-secondary, 
.appointment-section, 
div[class*="bg-"][style*="background"], 
.py-5.bg-secondary {
    background-color: var(--secondary) !important;
}
/* ==========================================
   2. HEADER & NAVBAR FIXES
   ========================================== */
.navbar-brand img,
img.logo-enhanced {
    height: 60px !important;
    max-height: 60px !important;
    width: auto !important;
    max-width: 200px !important;
    object-fit: contain !important;
    mix-blend-mode: multiply;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
    height: 60px !important;
    padding: 0 !important;
}

.navbar-brand h1 {
    font-size: 1.25rem !important;
    color: var(--primary) !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.navbar-light .navbar-nav .nav-link {
    font-family: 'Jost', sans-serif;
    padding: 20px 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--dark) !important;
    white-space: nowrap !important;
    outline: none;
    transition: .5s;
}

.sticky-top.navbar-light .navbar-nav .nav-link {
    padding: 20px 12px !important;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

.navbar .btn-primary {
    margin-right: 0 !important;
}

/* Topbar Angled Shape Styling */
.top-shape {
    background-color: var(--primary) !important;
    height: 100%;
    position: relative;
}

.top-shape::before {
    position: absolute;
    content: "";
    width: 35px;
    height: 100%;
    top: 0;
    left: -17px;
    background: var(--primary);
    transform: skew(40deg);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link,
    .sticky-top.navbar-light .navbar-nav .nav-link {
        padding: 10px 0 !important;
    }
}

/* ==========================================
   3. BASE TYPOGRAPHY & BUTTONS
   ========================================== */
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-secondary {
    color: #FFFFFF;
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-secondary:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-square { width: 36px; height: 36px; padding: 0; text-align: center; }
.btn-sm-square { width: 28px; height: 28px; padding: 0; text-align: center; }
.btn-lg-square { width: 46px; height: 46px; padding: 0; text-align: center; }

/* ==========================================
   4. COMPONENTS & HERO SECTIONS
   ========================================== */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 30px;
    bottom: 30px;
    z-index: 99;
}

.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 {
    position: absolute;
    content: "";
    width: 45px;
    height: 3px;
    right: -55px;
    bottom: 11px;
    background: var(--primary);
}

.section-title h5::after {
    position: absolute;
    content: "";
    width: 15px;
    height: 3px;
    right: -75px;
    bottom: 11px;
    background: var(--secondary);
}

.twentytwenty-wrapper { height: 100%; }

/* Hero Headers & Background Overlays */
.hero-header,
.hero-about,
.bg-appointment,
.bg-offer,
.bg-testimonial {
    background-size: cover;
}

.hero-header,
.hero-about,
.bg-appointment { 
    background: linear-gradient(rgba(9, 30, 62, .85), rgba(9, 30, 62, .85)), url(../img/carousel-1.jpg) center center no-repeat; 
}

.hero-about {
    min-height: 320px;
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.bg-offer { background: url(../img/carousel-1.jpg) center center no-repeat; }
.bg-testimonial { background: url(../img/carousel-2.jpg) center center no-repeat; }

.appointment-form { background: rgba(0, 168, 150, .7); }
.offer-text { background: rgba(0, 168, 150, .85); }
.testimonial-carousel { background: rgba(0, 168, 150, .85); }

/* Card & Service Hover Animations */
.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; }

.price-carousel .owl-nav,
.testimonial-carousel .owl-nav {
    position: absolute;
    display: flex;
    justify-content: space-between;
}

.price-carousel .owl-nav {
    width: calc(100% + 45px); height: 45px;
    top: calc(50% - 22.5px); left: -22.5px;
    opacity: 0; transition: .5s;
}

.price-carousel:hover .owl-nav { opacity: 1; }

.testimonial-carousel .owl-nav {
    width: calc(100% + 46px); height: 46px;
    top: calc(50% - 23px); left: -23px;
    z-index: 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 {
    position: relative;
    width: 45px; height: 45px;
    display: flex; align-items: center; justify-content: center;
    color: #FFFFFF;
    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-item img {
    width: 120px;
    height: 120px;
}