
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/********** Template CSS **********/
:root {
    --primary: #cc0606;
    --light: #F0FBFC;
    --dark: #571616;
}

.fw-medium {
    font-weight: 600 !important;
}

.fw-semi-bold {
    font-weight: 700 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#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;
}


/*** Button ***/
.btn {
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 0px;
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.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  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar .nav-item .dropdown-menu {
        display: block;
        margin-top: 0;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .dropdown-menu.fade-down {
        top: 100%;
        transform: rotateX(-75deg);
        transform-origin: 0% 0%;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        transform: rotateX(0deg);
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header carousel ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 6%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 10;
}

/* Common Button Style */
.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(139, 30, 30, 0.9); /* LOGO DARK RED */
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 28px rgba(139, 30, 30, 0.35);
}

/* Hover Effect */
.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: #C0392B; /* SOFT RED */
    transform: scale(1.1);
}

/* Active / Click Effect */
.header-carousel .owl-nav .owl-prev:active,
.header-carousel .owl-nav .owl-next:active {
    background: #6E1414; /* DEEP RED */
    transform: scale(0.95);
    box-shadow: 0 6px 18px rgba(110, 20, 20, 0.5);
}

/* Remove Focus Outline */
.header-carousel .owl-nav button:focus {
    outline: none;
    box-shadow: none;
}



/*** Section Title ***/
.section-title {
    position: relative;
    display: inline-block;
    text-transform: uppercase;
}

.section-title::before {
    position: absolute;
    content: "";
    width: calc(100% + 80px);
    height: 2px;
    top: 4px;
    left: -40px;
    background: var(--primary);
    z-index: -1;
}

.section-title::after {
    position: absolute;
    content: "";
    width: calc(100% + 120px);
    height: 2px;
    bottom: 5px;
    left: -60px;
    background: var(--primary);
    z-index: -1;
}

.section-title.text-start::before {
    width: calc(100% + 40px);
    left: 0;
}

.section-title.text-start::after {
    width: calc(100% + 60px);
    left: 0;
}



/*** Team ***/
.team-item img {
    transition: .5s;
}

.team-item:hover img {
    transform: scale(1.1);
} */




/*** Footer ***/
.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: normal;
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}

.footer .footer-menu a {
    margin-right: 15px;
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, .1);
}

.footer .footer-menu a:last-child {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
}

/* service section */
.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-item {
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.4s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15, 32, 65, 0.08);
}

.service-item:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #f0f6ff, #ffffff);
}

.service-icon {
    color: #c92039;
    transition: 0.3s;
}

.service-item:hover .service-icon {
    color: #fd0d0d;
}

.service-title {
    color: #410f0f;
    font-weight: 600;
}

.service-text {
    color: #6c757d;
    font-size: 15px;
    line-height: 1.6;
}


.back-to-top {
    background: #960303 !important;   /* Teal */
    color: #ffffff !important;
    border-radius: 50%;
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    transition: all 0.35s ease;
}


/* Hover */
.back-to-top:hover {
    background: #410f0f !important;   /* Dark Blue */
    color: #ffffff !important;
    transform: translateY(-4px);
}

/* Active (Click) */
.back-to-top:active {
    background: #fd0d0d !important;   /* Blue */
    box-shadow: 0 5px 15px rgba(253, 13, 13, 0.6);
    transform: scale(0.95);
}

/* Icon size */
.back-to-top i {
    font-size: 20px;
}


        

.service-section {
    background: #f8faff;
    padding-bottom: 100px;
}

.about-section {
    background: #f8faff;
    padding-top: 100px;
}

/* Desktop width control */
@media (min-width: 1200px) {
    .service-section .container {
        max-width: 1200px;
    }
}

/* Custom WhatsApp Tooltip */
.whatsapp-float-container {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.whatsapp-tooltip {
    background-color: #2b2b2b;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-left: 15px; /* Margin to the left of the button, wait... */
    position: relative;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
    visibility: hidden;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.whatsapp-float-container.right-side {
    left: auto;
    right: 40px;
    bottom: 110px; /* Above back-to-top */
}

.whatsapp-float-container.right-side .whatsapp-tooltip {
    margin-left: 0;
    margin-right: 15px;
    transform: translateX(20px);
}

.whatsapp-float-container.right-side .whatsapp-tooltip::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -6px; /* Arrow pointing right */
    transform: translateY(-50%);
    border-width: 6px 0 6px 6px;
    border-style: solid;
    border-color: transparent transparent transparent #2b2b2b;
}

.whatsapp-float-container:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.whatsapp-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float-btn:hover {
    transform: scale(1.1);
    color: #FFF;
}

/* Quick Action Bar */
.quick-action-bar {
    display: none;
    z-index: 1000;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.quick-action-btn:hover {
    color: #fff;
    opacity: 0.9;
}

/* Button Colors */
.btn-apply { background-color: #8B1E1E; }
.btn-call { background-color: #202a5b; }
.btn-whatsapp { background-color: #25d366; }
.btn-prospectus { background-color: #f39c12; }
.btn-directions { background-color: #3498db; }

/* Desktop View (Vertical Side Strip) */
@media (min-width: 769px) {
    .quick-action-bar {
        display: flex;
        flex-direction: column;
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
        border-radius: 0 10px 10px 0;
    }
    
    .quick-action-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        position: relative;
    }
    
    .quick-action-btn:first-child {
        border-top-right-radius: 10px;
    }
    
    .quick-action-btn:last-child {
        border-bottom-right-radius: 10px;
    }

    .quick-action-btn span {
        position: absolute;
        left: 50px;
        background: #333;
        color: #fff;
        padding: 15px 20px;
        border-radius: 0 4px 4px 0;
        white-space: nowrap;
        font-size: 14px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        transform: translateX(-10px);
        z-index: -1;
    }
    
    .quick-action-btn:hover span {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        z-index: 1001;
    }
}

/* Mobile View (Bottom Bar) */
@media (max-width: 768px) {
    .quick-action-bar {
        display: flex;
        flex-direction: row;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
    }
    
    .quick-action-btn {
        flex: 1;
        flex-direction: column;
        padding: 10px 0;
        font-size: 11px;
        line-height: 1.2;
    }
    
    .quick-action-btn i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .quick-action-btn span {
        display: block;
    }

    /* Hide the old floating WhatsApp button on mobile to prevent clutter */
    .whatsapp-float-container {
        display: none !important;
    }
    
    /* Make sure body doesn't get covered by the bottom bar */
    body {
        padding-bottom: 60px;
    }
}
