/* ============================================
   Construction Projects Section
   Brand: navy (#2c364f), gold (#b18f2e)
   ============================================ */

/* --- Section --- */
.construction-projects {
    background:
        radial-gradient(circle at 20% 50%, rgba(44, 54, 79, 0.08), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(44, 54, 79, 0.08), transparent 50%),
        #f4f5f7;
    padding: 30px 0 40px;
}

/* --- Section Title --- */
.projects-section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.title-dark {
    color: var(--primary-color);
}

.title-accent {
    color: var(--accent-color);
}

.title-rule {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 1rem;
}

/* --- Filter Tabs --- */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem !important;
}

.project-tab {
    padding: 8px 32px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #999;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-tab:hover {
    color: var(--primary-color);
}

.project-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* --- Carousel Wrapper --- */
.project-carousel-wrap {
    position: relative;
}

/* --- Card Row (2 cards side by side) --- */
.project-card-row {
    display: flex;
    gap: 30px;
    padding: 0 300px;
}

.project-card-row-centered {
    justify-content: center;
}

/* --- Individual Card --- */
.project-card {
    flex: 1;
    max-width: 50%;
}

.project-card-row-centered .project-card {
    flex: 0 1 50%;
}

/* Card Image */
.project-card-image {
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder */
.project-card-placeholder {
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-card-placeholder span {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Card Info — sits below the image, outside the card */
.project-card-info {
    padding: 12px 4px 0;
}

.project-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.project-card-type {
    font-family: 'Lato', sans-serif;
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0;
    line-height: 1.3;
}

/* --- Carousel Controls --- */
.project-carousel-wrap .carousel-control-prev,
.project-carousel-wrap .carousel-control-next {
    width: 44px;
    height: 44px;
    top: 40%;
    transform: translateY(-50%);
    opacity: 1;
    position: absolute;
}

.project-carousel-wrap .carousel-control-prev {
    left: -50px;
}

.project-carousel-wrap .carousel-control-next {
    right: -50px;
}

.project-carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.project-carousel-arrow:hover {
    background-color: var(--accent-color);
}

.project-carousel-arrow i {
    color: #fff;
    font-size: 1.1rem;
}

.project-carousel-wrap .carousel-control-prev-icon,
.project-carousel-wrap .carousel-control-next-icon {
    display: none;
}

/* --- Constrain card height to fit viewport --- */
@media (min-width: 768px) {
    .project-card-image {
        /* Scale to screen — leaves room for title, tabs, card info */
        max-height: calc(100vh - var(--navbar-height) - 250px);
    }
}

/* ============================================
   Design-Build Trust Section
   ============================================ */

.construction-trust {
    background-color: var(--primary-color);
    padding: 80px 0;
    color: #fff;
}

.trust-text-col {
    padding-right: 40px;
}

.trust-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.trust-accent {
    color: var(--accent-color);
}

.trust-text-col p {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

/* --- Photo Montage: crossfading slideshow --- */
.trust-montage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
}

.montage-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.montage-img.active {
    opacity: 1;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .project-card-row {
        padding: 0 40px;
    }

    .project-carousel-wrap .carousel-control-prev {
        left: -10px;
    }

    .project-carousel-wrap .carousel-control-next {
        right: -10px;
    }

    .project-carousel-arrow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 991.98px) {
    .trust-text-col {
        padding-right: 15px;
        margin-bottom: 2rem;
    }

    .trust-title {
        font-size: 2rem;
    }

}

/* ============================================
   Why Choose ZLD — Hover-to-reveal text
   ============================================ */

.construction-feature p {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin 0.4s ease;
    margin-bottom: 0;
}

.construction-feature:hover p {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 1rem;
}

/* On touch devices, tap toggles via JS-added class */
.construction-feature.is-active p {
    max-height: 200px;
    opacity: 1;
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .construction-trust {
        padding: 50px 0;
    }

    .trust-title {
        font-size: 1.75rem;
    }

    .projects-section-title {
        font-size: 1.8rem;
    }

    .project-card-row {
        flex-direction: column;
        gap: 20px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-card-row-centered .project-card {
        flex: 1;
    }

    .project-card-image {
        aspect-ratio: 4 / 3;
    }

    .project-tab {
        padding: 8px 20px;
        font-size: 0.85rem;
    }

    .project-card-info {
        padding: 10px 4px 0;
    }

    .project-card-title {
        font-size: 1.1rem;
    }

    .project-carousel-wrap .carousel-control-prev,
    .project-carousel-wrap .carousel-control-next {
        top: auto;
        bottom: -50px;
        transform: none;
    }

    .project-carousel-wrap .carousel-control-prev {
        left: calc(50% - 54px);
    }

    .project-carousel-wrap .carousel-control-next {
        right: calc(50% - 54px);
    }
}
