/*
 * design-industries.css
 * Horizontal accordion industries section for design.html
 * All classes namespaced with "di-" prefix to avoid global conflicts
 */

/* ══ SECTION WRAPPER ══ */
.di-section {
    position: relative;
    padding: 110px 64px 0;
    background: var(--creo-light);
    overflow: hidden;
}

.di-section::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(90deg,
            transparent,
            transparent calc(8.33% - 1px),
            rgba(11, 23, 61, 0.04) calc(8.33% - 1px),
            rgba(11, 23, 61, 0.04) 8.33%);
}

.di-inner {
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ══ TOP ROW ══ */
.di-top-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 56px;
}

.di-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(11, 23, 61, 0.22);
    border-radius: 100px;
    padding: 7px 18px;
    margin-bottom: 22px;
    background: rgba(239, 229, 207, 0.8);
    width: fit-content;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--creo-dark);
}

.di-headline {
    font-size: clamp(38px, 5vw, 68px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: var(--creo-dark);
    font-family: var(--font-display);
}

.di-headline em {
    font-style: italic;
    color: var(--creo-accent);
}

.di-right-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.di-subtext {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(11, 23, 61, 0.5);
    max-width: 400px;
}

.di-hint {
    font-size: 12px;
    font-weight: 600;
    color: rgba(11, 23, 61, 0.35);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* ══ ACCORDION WRAPPER ══ */
.di-acc-wrap {
    display: flex;
    gap: 10px;
    height: 540px;
}

/* ── SINGLE PANEL ── */
.di-panel {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    cursor: pointer;
    flex: 1;
    transition: flex 0.6s cubic-bezier(0.76, 0, 0.24, 1), box-shadow 0.4s ease;
    min-width: 0;
}

.di-panel.active {
    flex: 4;
    box-shadow: 0 28px 70px rgba(11, 23, 61, 0.18);
    cursor: default;
}

/* ── Background image ── */
.di-panel-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.5s ease;
    filter: brightness(0.45) saturate(1.2);
}

.di-panel:hover .di-panel-img {
    filter: brightness(0.5) saturate(1.2);
}

.di-panel.active .di-panel-img {
    transform: scale(1.04);
    filter: brightness(0.35) saturate(1.1);
}

/* ── Animated gradient overlay ── */
.di-panel-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(11, 23, 61, 0.3) 0%,
            rgba(11, 23, 61, 0.7) 40%,
            rgba(255, 117, 31, 0.35) 80%,
            rgba(11, 23, 61, 0.9) 100%);
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.di-panel.active .di-panel-grad {
    opacity: 1;
    animation: diGradShift 8s ease infinite;
}

@keyframes diGradShift {
    0% {
        background-position: 0% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

/* dark base overlay */
.di-panel-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 23, 61, 0.97) 0%, rgba(11, 23, 61, 0.6) 45%, rgba(11, 23, 61, 0.2) 100%);
}

/* ── Collapsed state: number ── */
.di-panel-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(48px, 5vw, 80px);
    font-weight: 900;
    letter-spacing: -0.06em;
    color: rgba(255, 255, 255, 0.18);
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-display);
}

.di-panel.active .di-panel-num {
    opacity: 0;
}

/* ── Collapsed vertical label ── */
.di-panel-label {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    transform-origin: center center;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    transition: opacity 0.3s;
    pointer-events: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.di-panel.active .di-panel-label {
    opacity: 0;
}

/* ── Active content ── */
.di-panel-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
    pointer-events: none;
}

.di-panel.active .di-panel-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.di-panel-tag {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--creo-accent);
    margin-bottom: 10px;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.di-panel-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 12px;
    max-width: 400px;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
    font-family: var(--font-display);
}

.di-panel-desc {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 18px;
    max-width: 420px;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.di-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.di-pill {
    padding: 5px 13px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.di-pill:hover {
    border-color: var(--creo-accent);
    color: var(--creo-accent);
    background: rgba(255, 117, 31, 0.1);
}

.di-panel-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    text-decoration: none;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 100px;
    background: var(--creo-accent);
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-body);
}

.di-panel-cta:hover {
    background: var(--creo-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(255, 117, 31, 0.4);
}

.di-panel-cta:hover svg {
    transform: translateX(4px);
}

.di-panel-cta svg {
    transition: transform 0.2s;
}

/* ── Indicator dot ── */
.di-panel-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s, transform 0.3s;
}

.di-panel.active .di-panel-dot {
    background: var(--creo-accent);
    transform: scale(1.3);
}

.di-panel:hover:not(.active) .di-panel-dot {
    background: rgba(255, 255, 255, 0.5);
}

/* ══ BOTTOM CTA ══ */
.di-bottom-cta {
    margin-top: 12px;
    background: var(--creo-dark);
    border-radius: 22px;
    padding: 36px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.di-bottom-cta::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 117, 31, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.di-cta-eyebrow {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(239, 229, 207, 0.35);
    margin-bottom: 8px;
}

.di-cta-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 6px;
    font-family: var(--font-display);
}

.di-cta-title em {
    font-style: italic;
    color: var(--creo-accent);
}

.di-cta-sub {
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(239, 229, 207, 0.45);
    max-width: 500px;
}

.di-cta-btn {
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #fff;
    background: var(--creo-accent);
    border: none;
    padding: 14px 28px;
    border-radius: 100px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
}

.di-cta-btn:hover {
    background: var(--creo-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 117, 31, 0.4);
}

.di-cta-btn:hover svg {
    transform: translateX(4px);
}

.di-cta-btn svg {
    transition: transform 0.2s;
}

.di-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #fff;
    opacity: 0.8;
    animation: diPdot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes diPdot {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 900px) {
    .di-section {
        padding: 72px 24px 0;
    }

    .di-top-row {
        grid-template-columns: 1fr;
    }

    .di-acc-wrap {
        flex-direction: column;
        height: auto;
    }

    .di-panel {
        flex: none;
        height: 100px;
        transition: height 0.5s cubic-bezier(0.76, 0, 0.24, 1);
    }

    .di-panel.active {
        flex: none;
        height: 480px;
        box-shadow: 0 20px 50px rgba(11, 23, 61, 0.18);
    }

    .di-panel-label {
        transform: translateX(-50%);
        bottom: 20px;
        writing-mode: initial;
        font-size: 10px;
    }

    .di-bottom-cta {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 28px 24px;
    }
}