/* ============================================================
   Solutions Showcase — Frontend Styles
   ============================================================
   Typography inherits from the theme's style.css.
   Button styles use .common_btn from style.css.
   ============================================================ */

/* ── Wrapper ── */
.ss-showcase-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--ss-gap, 0px);
}

/* ── Section ── */
.ss-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ── Background ── */
.ss-section-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.ss-section-bg-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.ss-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

/* ── Content ── */
.ss-section-content {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 80px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.ss-section-inner {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

/* ── Heading ── */
.ss-section-heading {
    color: #ffffff;
    margin: 0 0 12px;
    /* Typography inherited from theme h2 */
}

/* ── Description ── */
.ss-section-description {
    color: #ffffff;
    margin: 0 0 32px;
    /* Typography inherited from theme p */
}

/* ── Buttons Container ── */
.ss-section-buttons {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    margin-top: 30px;
    width: 100%;
}

/* Ensure buttons take equal space */
.ss-section-buttons .cpg-btn {
    flex: 1;
    width: 100% !important;
    max-width: 280px !important;
    min-height: 67px !important;
}

/* ── Scroll Animation (optional) ── */
.ss-section[data-ss-anim="fade-in"] {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.ss-section[data-ss-anim="slide-up"] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ss-section.ss-animated {
    opacity: 1 !important;
    transform: none !important;
}

/* ============================================================
   Responsive — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
    .ss-section {
        min-height: 650px;
    }

    .ss-section-content {
        padding: 60px 40px;
    }

    /* Stack buttons vertically on tablet and below */
    .ss-section-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .ss-section-buttons .cpg-btn {
        width: 100% !important;
        max-width: 280px !important;
        min-height: 67px !important;
    }

    .ss-section-buttons .cpg-btn .cpg-btn-text {
        white-space: normal;
        line-height: 1.2;
    }
}

/* ============================================================
   Responsive — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
    .ss-section {
        min-height: 550px;
    }

    .ss-section-content {
        padding: 50px 24px;
    }

    .ss-section-inner {
        text-align: center;
    }

    .ss-section-heading {
        margin-bottom: 8px;
    }

    .ss-section-description {
        margin-bottom: 24px;
    }
}

/* ============================================================
   Scroll Animation — IntersectionObserver driven
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .ss-section[data-ss-anim] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}