/* ================================================================
   AI SOLUTIONS TAB SECTION — Home Page
   Left: vertical tab list (problem tabs)
   Right: cream panel with solution content, switches on click
   ================================================================ */

/* ─── SECTION ──────────────────────────────────────────────── */
.ai-tabs-section {
    background: var(--creo-dark);
    padding: var(--space-15) 0;
    position: relative;
}

/* ─── SECTION HEADER ────────────────────────────────────────── */
.ai-tabs-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.ai-tabs-header .badge {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(255, 106, 0, 0.1);
    color: var(--creo-accent-hover);
    border: 1px solid rgba(255, 106, 0, 0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: var(--space-3);
}

.ai-tabs-header h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--creo-white);
    line-height: 1.1;
    margin-bottom: var(--space-4);
}

.ai-tabs-header .subtitle {
    max-width: 680px;
    margin: 0 auto;
    font-size: 17px;
    line-height: 1.7;
    color: rgba(239, 229, 207, 0.65);
}

/* ─── TWO-COLUMN TAB LAYOUT ─────────────────────────────────── */
.ai-tabs-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-6);
    align-items: stretch;
    /* both columns the same height */
}

/* ─── LEFT: TAB LIST ─────────────────────────────────────────── */
.ai-tab-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* 16px gap between tabs */
    height: 100%;
    justify-content: space-between;
    /* distribute tabs to fill full height */
}

.ai-tab {
    display: flex;
    align-items: center;
    flex: 1;
    /* equal height for every tab */
    width: 100%;
    padding: 0 22px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(239, 229, 207, 0.5);
    border: none;
    border-left: 4px solid transparent;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: var(--transition-base);
    min-height: 64px;
}

.ai-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--creo-light);
}

/* Active tab: cream background + dark text */
.ai-tab.is-active {
    background: var(--creo-light);
    border-left-color: var(--creo-accent-hover);
    color: var(--creo-dark) !important;
    font-weight: 900;
}

/* ─── RIGHT: PANELS ──────────────────────────────────────────── */
.ai-tab-panels {
    position: relative;
}

.ai-tab-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.ai-tab-panel.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    position: relative;
    inset: auto;
}

/* ─── PANEL CARD ─────────────────────────────────────────────── */
.ai-panel-card {
    background: var(--creo-light);
    border-radius: 20px;
    padding: var(--space-8);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.35);
    height: 100%;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Icon + Title row */
.ai-panel__icon-title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.ai-panel__icon {
    width: 44px;
    height: 44px;
    background: var(--creo-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--creo-light);
}

.ai-panel__icon svg {
    color: var(--creo-light);
}

.ai-panel__icon-title h3 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--creo-dark);
    margin: 0;
    line-height: 1.1;
}

/* Description */
.ai-panel__desc {
    font-size: 15px;
    line-height: 1.75;
    color: rgba(11, 23, 61, 0.72);
    margin-bottom: var(--space-6);
    flex: 1;
}

/* Business Impact label */
.ai-panel__impact-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(11, 23, 61, 0.45);
    margin-bottom: var(--space-3);
}

/* Pills row */
.ai-panel__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    border-top: 1px solid rgba(11, 23, 61, 0.12);
    padding-top: var(--space-4);
}

.ai-panel__pill {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--creo-dark);
}

.ai-panel__pill svg {
    color: var(--creo-accent-hover);
    flex-shrink: 0;
}

/* ─── MOBILE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .ai-tabs-layout {
        grid-template-columns: 1fr;
    }

    .ai-tab-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        height: auto;
        justify-content: flex-start;
    }

    .ai-tab {
        flex: 1 1 auto;
        min-width: 130px;
        border-left: none;
        border-bottom: 3px solid transparent;
        border-radius: var(--radius-sm);
        padding: 12px 16px;
        font-size: 11px;
        text-align: center;
        justify-content: center;
    }

    .ai-tab.is-active {
        border-left-color: transparent;
        border-bottom-color: var(--creo-accent-hover);
    }

    .ai-tab-panels {
        min-height: auto;
    }
}