/********** Custom CSS — Blend Design Studio **********/

/* Offset anchored sections so the sticky navbar doesn't cover the heading */
#home,
#about,
#services,
#gallery,
#contact {
    scroll-margin-top: 90px;
}

html {
    scroll-behavior: smooth;
}

/* Hero heading a touch smaller on the smallest screens for readability */
@media (max-width: 576px) {
    .header-carousel .display-3 {
        font-size: 2.1rem;
    }
}

/* Keep every hero slide the exact same height, regardless of each photo's
   own aspect ratio, by cropping with object-fit instead of letting img-fluid
   scale to its natural height. */
.header-carousel .owl-carousel-item {
    position: relative;
    height: 650px;
    overflow: hidden;
}

.header-carousel .owl-carousel-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        height: 500px;
    }
}

@media (max-width: 576px) {
    .header-carousel .owl-carousel-item {
        height: 420px;
    }
}


/*** Gallery ***/
.gallery-grid .gallery-item {
    overflow: hidden;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    height: 280px;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .5s;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-grid .gallery-item::after {
    content: "\f00e";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    color: #fff;
    font-size: 1.5rem;
    opacity: 0;
    transition: .4s;
    background: rgba(0, 0, 0, 0.35);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-grid .gallery-item:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.lightbox-overlay.show {
    display: flex;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
}


/*** Footer column spacing ***/
.footer .row.g-5 > [class*="col-"] {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (max-width: 991px) {
    .footer .row.g-5 > [class*="col-"] {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/*** Call / WhatsApp floating buttons ***/
.fixed-button {
    position: fixed;
    bottom: 25px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    z-index: 999;
    transition: .3s;
}

.fixed-button:hover {
    color: #fff;
    transform: scale(1.08);
}

.call-button {
    background: var(--primary);
    left: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.whatsapp-button {
    background: #25D366;
    right: 25px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Keep the back-to-top button clear of the WhatsApp button */
.back-to-top {
    right: 25px !important;
    bottom: 95px !important;
}

@media (max-width: 576px) {
    .fixed-button {
        bottom: 20px;
    }

    .call-button {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
        left: 18px;
    }

    .whatsapp-button {
        right: 18px;
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }

    .back-to-top {
        right: 18px !important;
        bottom: 82px !important;
    }
}

