/* Curtain Wall Page Refined Styles */

@import url('template-windows.css');

/* ========== General Layout ========== */
.section-padding {
    padding: 80px 0;
}

.text-orange {
    color: #ff9900;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 2.2rem;
}

/* ========== Hero Carousel ========== */
.curtain-wall-hero-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: 0;
}

.cw-carousel-container {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.cw-carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.cw-carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.cw-carousel-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.cw-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cw-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.cw-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.cw-slide-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.cw-slide-text {
    text-align: center;
    color: #fff;
    padding: 20px;
}

.cw-slide-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cw-slide-button {
    display: inline-block;
    padding: 14px 40px;
    border: 2px solid #fff;
    color: #fff;
    border-radius: 30px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.cw-slide-button:hover {
    background: #fff;
    color: #333;
    transform: translateY(-2px);
}

/* Navigation Arrows - Bottom Right */
.cw-carousel-nav {
    position: absolute;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    padding: 0;
}

.cw-carousel-nav:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.1);
}

.cw-carousel-nav:active {
    transform: scale(0.95);
}

.cw-carousel-nav svg {
    width: 24px;
    height: 24px;
}

.cw-carousel-prev {
    right: 90px;
}

.cw-carousel-next {
    right: 30px;
}

/* Indicators - Bottom */
.cw-carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.cw-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.cw-indicator:hover {
    background-color: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.cw-indicator.active {
    background-color: #fff;
    border-color: #fff;
    width: 32px;
    border-radius: 6px;
}

/* Hero Carousel Responsive */
@media (max-width: 1024px) {
    .cw-carousel-container {
        height: 500px;
    }

    .cw-slide-title {
        font-size: 3rem;
    }

    .cw-carousel-prev {
        right: 80px;
        bottom: 20px;
    }

    .cw-carousel-next {
        right: 20px;
        bottom: 20px;
    }

    .cw-carousel-indicators {
        bottom: 20px;
    }
}

@media (max-width: 768px) {
    .cw-carousel-container {
        height: 450px;
    }

    .cw-slide-title {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }

    .cw-slide-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .cw-carousel-nav {
        width: 40px;
        height: 40px;
    }

    .cw-carousel-nav svg {
        width: 20px;
        height: 20px;
    }

    .cw-carousel-prev {
        right: 65px;
        bottom: 20px;
    }

    .cw-carousel-next {
        right: 15px;
        bottom: 20px;
    }

    .cw-carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .cw-indicator {
        width: 10px;
        height: 10px;
    }

    .cw-indicator.active {
        width: 24px;
    }
}

@media (max-width: 480px) {
    .cw-carousel-container {
        height: 400px;
    }

    .cw-slide-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .cw-slide-button {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .cw-carousel-nav {
        width: 35px;
        height: 35px;
    }

    .cw-carousel-nav svg {
        width: 18px;
        height: 18px;
    }

    .cw-carousel-prev {
        right: 60px;
        bottom: 15px;
    }

    .cw-carousel-next {
        right: 10px;
        bottom: 15px;
    }

    .cw-carousel-indicators {
        bottom: 15px;
        gap: 6px;
    }
}

/* ========== Gallery ========== */
.cw-gallery-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    overflow-x: auto;
}

/* ========== Text Only Section ========== */
.cw-text-only-section {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.cw-text-only-section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
}

.cw-text-only-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.gallery-item {
    flex: 1;
    min-width: 200px;
}

.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ========== Split Layouts ========== */
.cw-split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.cw-split-layout.reverse-layout {
    flex-direction: row-reverse;
}

.cw-media-col {
    flex: 1;
}

.cw-media-col img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.cw-text-col {
    flex: 1;
}

.cw-text-col p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

/* Video Placeholders */
.video-placeholder {
    position: relative;
    cursor: pointer;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff9900;
}

/* Installation Banner (Reused) */
.cw-section-header-banner {
    background: #ff9900;
    padding: 15px 0;
    color: #fff;
    margin-bottom: 40px;
}

.cw-section-header-banner h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Products Grid */
.cw-products-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    text-align: center;
}

.cw-product-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.cw-product-card h4 {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-top: 15px;
}

.cw-product-card small {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Bottom CTA */
.cw-bottom-cta {
    background: #ff9900;
    padding: 60px 0;
    color: #fff;
    margin-top: 60px;
}

.cw-cta-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cw-cta-flex h2 {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.cw-cta-btn {
    background: #fff;
    color: #ff9900;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.cw-cta-btn:hover {
    background: #333;
    color: #fff;
}

/* WhatsApp Float */
.whatsapp-float {
    text-align: right;
    margin-top: 10px;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    background: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

.whatsapp-btn i {
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 992px) {

    .cw-split-layout,
    .cw-split-layout.reverse-layout {
        flex-direction: column;
        text-align: center;
    }

    .cw-gallery-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .gallery-item {
        flex: 0 0 45%;
        margin-bottom: 15px;
    }

    .cw-products-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .cw-cta-flex {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .cw-products-grid-3col {
        grid-template-columns: 1fr;
    }
}