﻿/* =========================================================
   BHAL PROFESSIONAL HERO SLIDER
   ========================================================= */
/* ---------------------------------------------------------
   MAIN SLIDER
--------------------------------------------------------- */
.bhal-hero-slider {
    padding: 0 !important;
    position: relative;
    overflow: hidden;
}

.bhal-slider {
    position: relative;
    width: 100%;
    height: min(760px, calc(100vh - 80px));
    min-height: 610px;
    overflow: hidden;
    background: #111;
}


/* ---------------------------------------------------------
   INDIVIDUAL SLIDE
--------------------------------------------------------- */

.bhal-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    z-index: 1;
    overflow: hidden;
}

    .bhal-slide.active {
        opacity: 1;
        visibility: visible;
        z-index: 2;
    }


/* ---------------------------------------------------------
   MEDIA
--------------------------------------------------------- */

.bhal-slide-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.bhal-slide-image,
.bhal-slide-video-element {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ---------------------------------------------------------
   IMAGE DEFAULT
--------------------------------------------------------- */

.bhal-slide-image {
    transform: scale(1.05);
}


/* ---------------------------------------------------------
   DARK OVERLAY
--------------------------------------------------------- */

.bhal-slide-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient( 90deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.67) 35%, rgba(0, 0, 0, 0.34) 65%, rgba(0, 0, 0, 0.18) 100% );
}


/* ---------------------------------------------------------
   SLIDE CONTENT
--------------------------------------------------------- */

.bhal-slide .container {
    position: relative;
    z-index: 5;
    height: 100%;
    display: flex;
    align-items: center;
}

.bhal-slide-content {
    width: 720px;
    max-width: 70%;
    padding-top: 25px;
    color: #fff;
}


/* ---------------------------------------------------------
   SMALL LABEL
--------------------------------------------------------- */

.bhal-slide-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 8px 16px;
    border-left: 3px solid var(--accent-color);
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   HEADING
--------------------------------------------------------- */

.bhal-slide-content h1 {
    margin: 0 0 22px;
    color: #fff;
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.06;
    font-weight: 700;
    letter-spacing: -1.5px;
}

    .bhal-slide-content h1 strong {
        color: var(--accent-color);
        font-weight: 700;
    }


/* ---------------------------------------------------------
   DESCRIPTION
--------------------------------------------------------- */

.bhal-slide-content p {
    max-width: 650px;
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 17px;
    line-height: 1.75;
}


/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */

.bhal-slide-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.bhal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 25px;
    border-radius: 2px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-decoration: none;
    transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

    .bhal-btn:hover {
        transform: translateY(-2px);
    }

.bhal-btn-primary {
    background: var(--accent-color);
    color: var(--contrast-color);
    border: 1px solid var(--accent-color);
}

    .bhal-btn-primary:hover {
        color: var(--contrast-color);
        filter: brightness(1.08);
    }

.bhal-btn-outline {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

    .bhal-btn-outline:hover {
        color: #fff;
        background: rgba(255, 255, 255, 0.13);
        border-color: #fff;
    }

/* =========================================================
   BHAL SLIDE TRANSITIONS
   ========================================================= */
/* =========================================================
   SLIDE 1
   LEFT → RIGHT
   ========================================================= */
.bhal-slide:nth-child(1) {
    clip-path: inset(0 100% 0 0);
    opacity: 1;
    visibility: visible;
    transition: clip-path 1.25s cubic-bezier(.77, 0, .18, 1), opacity 0.2s ease;
}

.bhal-slide:nth-child(1).active {
    clip-path: inset(0 0 0 0);
    opacity: 1;
    visibility: visible;
}

.bhal-slide:nth-child(1) .bhal-slide-image {
    transform: scale(1.08) translateX(45px);
    transition: transform 1.4s cubic-bezier(.2, .65, .25, 1);
}

.bhal-slide:nth-child(1).active .bhal-slide-image {
    transform: scale(1.05) translateX(0);
}


/* =========================================================
   SLIDE 2
   RIGHT → LEFT
   ========================================================= */

.bhal-slide:nth-child(2) {
    clip-path: inset(0 0 0 100%);
    opacity: 1;
    visibility: visible;
    transition: clip-path 1.25s cubic-bezier(.77, 0, .18, 1), opacity 0.2s ease;
}

    .bhal-slide:nth-child(2).active {
        clip-path: inset(0 0 0 0);
        opacity: 1;
        visibility: visible;
    }

    .bhal-slide:nth-child(2) .bhal-slide-image {
        transform: scale(1.08) translateX(-45px);
        transition: transform 1.4s cubic-bezier(.2, .65, .25, 1);
    }

    .bhal-slide:nth-child(2).active .bhal-slide-image {
        transform: scale(1.05) translateX(0);
    }

/* =========================================================
   SLIDE 3 — CENTER SPLIT OPEN
   50% LEFT + 50% RIGHT
   ========================================================= */

.bhal-slide:nth-child(3) {
    clip-path: polygon( 50% 0%, 50% 0%, 50% 100%, 50% 100% );
    opacity: 0;
    visibility: hidden;
    transition: clip-path 1.25s cubic-bezier(.77, 0, .18, 1), opacity .15s ease;
}


    /* OPEN FROM EXACT CENTER */

    .bhal-slide:nth-child(3).active {
        clip-path: polygon( 0% 0%, 100% 0%, 100% 100%, 0% 100% );
        opacity: 1;
        visibility: visible;
    }


/* =========================================================
   SLIDE 4 — CENTER SPLIT OPEN
   50% TOP + 50% BOTTOM
   ========================================================= */

.bhal-slide:nth-child(4) {
    clip-path: polygon( 0% 50%, 100% 50%, 100% 50%, 0% 50% );
    opacity: 0;
    visibility: hidden;
    transition: clip-path 1.25s cubic-bezier(.77, 0, .18, 1), opacity .15s ease;
}


    /* OPEN FROM EXACT HORIZONTAL CENTER */

    .bhal-slide:nth-child(4).active {
        clip-path: polygon( 0% 0%, 100% 0%, 100% 100%, 0% 100% );
        opacity: 1;
        visibility: visible;
    }

/* =========================================================
   SLIDE 5+
   CINEMATIC FADE
   ========================================================= */
.bhal-slide:nth-child(n+5) {
    opacity: 1;
    visibility: visible;
    transition: opacity 1s ease;
}

    .bhal-slide:nth-child(n+5).active {
        opacity: 1;
        visibility: visible;
    }

    .bhal-slide:nth-child(n+5) .bhal-slide-image {
        transform: scale(1.10);
        transition: transform 7s cubic-bezier(.2, .65, .25, 1);
    }

    .bhal-slide:nth-child(n+5).active .bhal-slide-image {
        transform: scale(1);
    }


/* =========================================================
   CONTENT ANIMATION
========================================================= */

.bhal-slide-content > * {
    opacity: 0;
    transform: translateY(35px);
}

.bhal-slide.active .bhal-slide-content > * {
    opacity: 1;
    transform: translateY(0);
}

.bhal-slide.active .bhal-slide-label {
    transition: opacity 0.65s ease 0.25s, transform 0.65s cubic-bezier(.2, .65, .25, 1) 0.25s;
}

.bhal-slide.active h1 {
    transition: opacity 0.75s ease 0.38s, transform 0.75s cubic-bezier(.2, .65, .25, 1) 0.38s;
}

.bhal-slide.active p {
    transition: opacity 0.75s ease 0.52s, transform 0.75s cubic-bezier(.2, .65, .25, 1) 0.52s;
}

.bhal-slide.active .bhal-slide-buttons {
    transition: opacity 0.75s ease 0.66s, transform 0.75s cubic-bezier(.2, .65, .25, 1) 0.66s;
}


/* =========================================================
   ARROWS
========================================================= */

.bhal-slider-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 50%;
    background: rgba(0,0,0,0.22);
    backdrop-filter: blur(5px);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

    .bhal-slider-arrow:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
        transform: translateY(-50%) scale(1.06);
    }

.bhal-slider-prev {
    left: 28px;
}

.bhal-slider-next {
    right: 28px;
}


/* =========================================================
   DOTS
========================================================= */

.bhal-slider-dots {
    position: absolute;
    left: 50%;
    bottom: 38px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 9px;
    transform: translateX(-50%);
}

.bhal-slider-dot {
    position: relative;
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,0.42);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.35s ease, background 0.3s ease;
}

    .bhal-slider-dot.active {
        width: 58px;
        background: rgba(255,255,255,0.92);
    }

        .bhal-slider-dot.active::after {
            content: "";
            position: absolute;
            inset: 0;
            background: var(--accent-color);
            transform-origin: left center;
            transform: scaleX(0);
            animation: bhalDotProgress 7s linear forwards;
        }

@keyframes bhalDotProgress {
    to {
        transform: scaleX(1);
    }
}


/* =========================================================
   PROGRESS BAR
========================================================= */

.bhal-slider-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    z-index: 10;
    background: rgba(255,255,255,0.12);
}

    .bhal-slider-progress span {
        display: block;
        width: 0;
        height: 100%;
        background: var(--accent-color);
        transition: width 0.1s linear;
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1199px) {

    .bhal-slider {
        min-height: 580px;
    }

    .bhal-slide-content {
        max-width: 76%;
    }

        .bhal-slide-content h1 {
            font-size: clamp(40px, 5.5vw, 62px);
        }
}


@media (max-width: 991px) {

    .bhal-slider {
        height: 650px;
        min-height: 560px;
    }

    .bhal-slide-content {
        max-width: 82%;
    }

        .bhal-slide-content h1 {
            font-size: 48px;
        }

        .bhal-slide-content p {
            font-size: 16px;
        }

    .bhal-slider-arrow {
        width: 42px;
        height: 42px;
    }

    .bhal-slider-prev {
        left: 18px;
    }

    .bhal-slider-next {
        right: 18px;
    }
}


@media (max-width: 767px) {

    .bhal-slider {
        height: 680px;
        min-height: 620px;
    }

    .bhal-slide-overlay {
        background: linear-gradient( 180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.72) 52%, rgba(0,0,0,0.88) 100% );
    }

    .bhal-slide .container {
        align-items: flex-end;
        padding-bottom: 105px;
    }

    .bhal-slide-content {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
    }

    .bhal-slide-label {
        margin-bottom: 15px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .bhal-slide-content h1 {
        margin-bottom: 17px;
        font-size: 38px;
        line-height: 1.08;
        letter-spacing: -0.8px;
    }

    .bhal-slide-content p {
        margin-bottom: 24px;
        font-size: 15px;
        line-height: 1.6;
    }

    .bhal-slide-buttons {
        gap: 9px;
    }

    .bhal-btn {
        min-height: 44px;
        padding: 0 17px;
        font-size: 12px;
    }

    .bhal-slider-arrow {
        display: none;
    }

    .bhal-slider-dots {
        bottom: 43px;
    }
}


@media (max-width: 480px) {

    .bhal-slider {
        height: 660px;
        min-height: 600px;
    }

    .bhal-slide-content h1 {
        font-size: 32px;
    }

    .bhal-slide-content p {
        font-size: 14px;
    }

    .bhal-slide-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .bhal-btn {
        min-width: 170px;
    }

    .bhal-slider-dots {
        bottom: 38px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .bhal-slide,
    .bhal-slide-image,
    .bhal-slide-video-element,
    .bhal-slide-content > *,
    .bhal-slider-dot {
        transition: none !important;
        animation: none !important;
    }
}


/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    position: relative;
    padding: 120px 0;
    background-color: var(--background-color);
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url("../img/construction/showcase-5.webp");
        background-size: cover;
        background-position: center;
        opacity: 0.05;
        z-index: 0;
    }

    .hero .container {
        position: relative;
        z-index: 1;
    }

    .hero .hero-content {
        margin-bottom: 30px;
    }

        .hero .hero-content .subtitle {
            display: inline-block;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            color: var(--accent-color);
            margin-bottom: 15px;
            letter-spacing: 1px;
            position: relative;
            padding-left: 25px;
        }

            .hero .hero-content .subtitle::before {
                content: "";
                position: absolute;
                left: 0;
                top: 50%;
                width: 15px;
                height: 2px;
                background-color: var(--accent-color);
                transform: translateY(-50%);
            }

        .hero .hero-content h1 {
            font-size: 48px;
            font-weight: 700;
            margin-bottom: 20px;
            line-height: 1.2;
        }

@media (max-width: 992px) {
    .hero .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .hero .hero-content h1 {
        font-size: 32px;
    }
}

.hero .hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.hero .hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 576px) {
    .hero .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }
}

.hero .hero-buttons .btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--accent-color);
    color: var(--contrast-color);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .hero .hero-buttons .btn-primary:hover {
        background-color: color-mix(in srgb, var(--accent-color), black 15%);
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.hero .hero-buttons .btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background-color: transparent;
    color: var(--default-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 70%);
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .hero .hero-buttons .btn-secondary:hover {
        background-color: color-mix(in srgb, var(--default-color), transparent 95%);
        border-color: var(--default-color);
        transform: translateY(-3px);
    }

.hero .trust-badges {
    display: flex;
    gap: 30px;
}

@media (max-width: 768px) {
    .hero .trust-badges {
        flex-wrap: wrap;
        gap: 20px;
    }
}

.hero .trust-badges .badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .hero .trust-badges .badge-item i {
        font-size: 32px;
        color: var(--accent-color);
    }

    .hero .trust-badges .badge-item .badge-text {
        display: flex;
        flex-direction: column;
    }

        .hero .trust-badges .badge-item .badge-text .count {
            font-size: 24px;
            font-weight: 700;
            color: var(--heading-color);
            line-height: 1;
        }

        .hero .trust-badges .badge-item .badge-text .label {
            font-size: 14px;
            color: color-mix(in srgb, var(--default-color), transparent 30%);
        }

.hero .hero-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

    .hero .hero-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        transition: transform 0.5s ease;
    }

    .hero .hero-image:hover img {
        transform: scale(1.05);
    }

    .hero .hero-image .image-badge {
        position: absolute;
        bottom: 30px;
        left: 30px;
        background-color: var(--accent-color);
        color: var(--contrast-color);
        padding: 15px 20px;
        border-radius: 4px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

        .hero .hero-image .image-badge span {
            display: block;
            font-weight: 700;
            font-size: 18px;
        }

        .hero .hero-image .image-badge p {
            margin: 0;
            font-size: 14px;
            opacity: 0.9;
        }

@media (max-width: 992px) {
    .hero {
        padding: 80px 0;
    }

        .hero .hero-content {
            margin-bottom: 50px;
        }
}



/* =========================================================
   BHAL CONTENT VISIBILITY FIX
   TEST / SAFE OVERRIDE
========================================================= */

main.main > section:not(.bhal-hero-slider) {
    position: relative;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto;
    min-height: 0;
}

    main.main > section:not(.bhal-hero-slider) [data-aos] {
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }

.about,
.services,
.projects,
.certifications,
.testimonials,
.team,
.call-to-action {
    display: block !important;
    visibility: visible !important;
}

    .about *,
    .services *,
    .projects *,
    .certifications *,
    .testimonials *,
    .team *,
    .call-to-action * {
        visibility: visible;
    }

