/* ============================================================
   TIMDARA SOLVISTA — scenario.css
   Brand palette applied throughout
   ============================================================ */

/* ── Scenario Demo Section ──────────────────────────────────── */
.scenario-demo {
    padding: 80px 0;
    background: #FAF8F5;
}

/* ── Industry Tabs ──────────────────────────────────────────── */
.industry-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(13, 31, 60, 0.12);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: white;
    border: 1px solid rgba(13, 31, 60, 0.15);
    border-bottom: none;
    font-size: 16px;
    font-weight: 500;
    color: #4A3F35;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 5px;
}

.tab-btn.active {
    color: #fff;
    background-color: #0D1F3C;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #E8540A;
    border-radius: 3px 3px 0 0;
}

.tab-btn:hover {
    color: #E8540A;
    background-color: rgba(232, 84, 10, 0.05);
}

/* ── Demo Container ─────────────────────────────────────────── */
.demo-container {
    display: grid;
    grid-template-columns: 250px 1fr 300px;
    gap: 30px;
    align-items: start;
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(13, 31, 60, 0.08);
    border-top: 3px solid #E8540A;
}

/* ── Left Function List ─────────────────────────────────────── */
.function-list {
    background: #F4F1EC;
    border-radius: 10px;
    padding: 20px;
    height: 500px;
    overflow-y: auto;
}

.function-list .function-icon {
    width: 20px;
    height: auto;
    margin: 0 5px;
}

.function-list h3 {
    margin-bottom: 20px;
    color: #0D1F3C;
    font-size: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(232, 84, 10, 0.25);
}

.function-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4A3F35;
}

.function-item.active {
    background: #0D1F3C;
    color: white;
}

.function-item:hover {
    background: rgba(232, 84, 10, 0.08);
    color: #E8540A;
}

.function-item.active:hover {
    background: #132947;
    color: white;
}

.function-item i {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ── Centre Demo Preview ────────────────────────────────────── */
.demo-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.phone-mockup {
    position: relative;
    width: 278px;
    height: 500px;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #F4F1EC;
    border-radius: 30px;
    padding: 10px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ── Right Function Details ─────────────────────────────────── */
.function-details {
    padding: 20px 0;
}

.function-details h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0D1F3C;
    position: relative;
    padding-bottom: 10px;
}

.function-details h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, #E8540A, #C8860A);
    border-radius: 2px;
}

.function-description p {
    margin-bottom: 15px;
    color: #4A3F35;
    line-height: 1.6;
}

.function-description ul {
    margin: 15px 0;
    padding-left: 20px;
}

.function-description li {
    margin-bottom: 8px;
    color: #4A3F35;
    position: relative;
}

.function-description li::before {
    content: '✓';
    color: #E8540A;
    font-weight: bold;
    margin-right: 8px;
}

/* ── Contact Button ─────────────────────────────────────────── */
.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 25px;
    background: linear-gradient(135deg, #E8540A, #FF6B1A);
    color: white;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 15px;
    border: 2px solid #E8540A;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.contact-btn:hover {
    background: transparent;
    color: #E8540A;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(232, 84, 10, 0.25);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
    .demo-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .function-list {
        height: auto;
        max-height: 300px;
    }
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 768px) {
    .industry-tabs {
        flex-direction: column;
        align-items: center;
    }
    .tab-btn {
        width: 100%;
        text-align: center;
        margin: 5px 0;
    }
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    .demo-container {
        padding: 15px;
    }
}