/* Single-page navigation & scroll behavior */
html {
    scroll-behavior: smooth;
}

#clients,
#clients .intro,
#clients .sectors,
#clients .mobile-list {
    font-family: 'Inter', sans-serif;
}

section[id]:not(#home) {
    scroll-margin-top: 70px;
}

.navbar.fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
}

/* Remove gap between navbar and hero carousel */
#home.hero-carousel-section {
    margin-top: 0;
    padding-top: 0;
}

#home .carousel,
#home .carousel-inner,
#home .carousel-item,
#home .carousel-image {
    margin-top: 0;
    padding-top: 0;
}

/* Offset hero text below fixed navbar without pushing the image down */
#home .carousel-content {
    padding-top: calc(60px + 1rem);
}

.page-section-hero .hero-carousel-section {
    margin-top: 0;
}

#contact.contact-page {
    padding-top: 5rem;
}

@media (max-width: 991.98px) {
    section[id]:not(#home) {
        scroll-margin-top: 65px;
    }
}

#mumbaiMapHome,
#mumbaiMapNetwork {
    height: 600px;
    width: 100%;
    border-radius: 8px;
}

@media (max-width: 768px) {
    #home .hero-title {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    #mumbaiMapHome,
    #mumbaiMapNetwork {
        height: 400px !important;
    }

    #home .carousel-content {
        padding-top: calc(60px + 0.5rem);
    }
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffaa21 0%, #ff9a00 100%);
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(255, 170, 33, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 6px 20px rgba(255, 170, 33, 0.55);
    color: #fff;
}

.back-to-top:focus-visible {
    outline: 2px solid #ffaa21;
    outline-offset: 3px;
}

@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}
