/* ========================================================
   Karnataka Hangers - Pure Frontend Enhancements CSS
   Separate CSS file for standalone Vanilla JS components:
   Floating Button, Vanilla Carousel, Lightbox & Interactions
======================================================== */

/* Floating Call Button */
.floating-call-btn {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background-color: #28a745;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    text-decoration: none;
    animation: callPulse 1.5s infinite;
}

.floating-call-btn:hover {
    background-color: #1e7e34;
    color: #fff;
}

/* Pulse Animation */
@keyframes callPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Back to top smooth show */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 80px;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* Vanilla Carousel */
.vanilla-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0 20px 0;
}
.vanilla-carousel-track {
    display: flex;
    transition: transform 0.45s ease-in-out;
    will-change: transform;
    user-select: none;
    margin: 0 -12px;
}
.vanilla-carousel-slide {
    flex: 0 0 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 12px;
}
@media (min-width: 550px) {
    .vanilla-carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}
@media (min-width: 992px) {
    .vanilla-carousel-slide {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
@media (min-width: 1200px) {
    .vanilla-carousel-slide {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
.vanilla-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
}
.vanilla-carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.vanilla-carousel-dot.active {
    background-color: #004aad;
    transform: scale(1.3);
}

/* Mobile submenus */
@media (max-width: 991.98px) {
    .main-nav .has-submenu .submenu {
        display: none;
        transition: max-height 0.35s ease;
    }
    .main-nav .has-submenu .submenu.show-submenu {
        display: block !important;
    }
}

/* Lightbox Modal */
.vanilla-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.vanilla-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.vanilla-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.vanilla-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}
.vanilla-lightbox-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #ffffff;
    font-size: 36px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 100000;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}
.vanilla-lightbox-close:hover {
    color: #f9c74f;
    transform: scale(1.1);
}
.vanilla-lightbox-prev,
.vanilla-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 100000;
}
.vanilla-lightbox-prev:hover,
.vanilla-lightbox-next:hover {
    background: #004aad;
    color: #ffffff;
}
.vanilla-lightbox-prev {
    left: 20px;
}
.vanilla-lightbox-next {
    right: 20px;
}
.vanilla-lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.55);
    padding: 4px 14px;
    border-radius: 20px;
}
