/*
 * ai-industries.css
 * AI Solutions page — Industries accordion section
 * All classes namespaced with "aii-" prefix to avoid any conflict with design.html's "di-" classes
 * Design: DARK theme — navy background, white/orange palette
 */

/* ══ SECTION WRAPPER ══ */
.aii-section {
    position: relative;
    padding: 110px 64px 110px;
    background: #06091A;
    overflow: hidden;
}

.aii-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent calc(8.33% - 1px),
        rgba(255, 255, 255, 0.02) calc(8.33% - 1px),
        rgba(255, 255, 255, 0.02) 8.33%
    );
}

/* Radial orange accent glow bottom right */
.aii-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 600px;
    height: 600px;
    pointer-events: none;
    background: radial-gradient(circle at 80% 80%, rgba(255, 117, 31, 0.07) 0%, transparent 60%);
    z-index: 0;
}

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

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

.aii-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 100px;
    padding: 7px 18px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.04);
    width: fit-content;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--creo-accent);
}

.aii-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--creo-accent);
}

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

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

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

.aii-subtext {
    font-size: 14.5px;
    font-weight: 400;
    line-height: 1.75;
    color: rgba(239, 229, 207, 0.45);
    max-width: 400px;
}

.aii-hint {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.aii-hint svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

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

/* ── SINGLE PANEL ── */
.aii-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;
}

.aii-panel.active {
    flex: 4;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
    cursor: default;
}

/* ── Background image ── */
.aii-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.35) saturate(1.2);
}

.aii-panel:hover .aii-panel-img {
    filter: brightness(0.42) saturate(1.2);
}

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

/* ── Animated gradient overlay ── */
.aii-panel-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(6, 9, 26, 0.5) 0%,
        rgba(6, 9, 26, 0.75) 40%,
        rgba(255, 117, 31, 0.4) 80%,
        rgba(6, 9, 26, 0.95) 100%
    );
    background-size: 300% 300%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

@keyframes aiiGradShift {
    0%   { background-position: 0% 0%; }
    50%  { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

/* ── Dark base overlay ── */
.aii-panel-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(6, 9, 26, 0.98) 0%,
        rgba(6, 9, 26, 0.65) 40%,
        rgba(6, 9, 26, 0.25) 100%
    );
}

/* ── Collapsed state: number ── */
.aii-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.12);
    transition: opacity 0.3s;
    white-space: nowrap;
    pointer-events: none;
    font-family: var(--font-display);
}

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

/* ── Collapsed vertical label ── */
.aii-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.6);
    white-space: nowrap;
    transition: opacity 0.3s;
    pointer-events: none;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

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

/* ── Active content ── */
.aii-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;
}

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

.aii-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.5);
}

.aii-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.6);
    font-family: var(--font-display);
}

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

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

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

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

.aii-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);
    box-shadow: 0 8px 24px rgba(255, 117, 31, 0.35);
}

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

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

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

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

.aii-panel.active .aii-panel-dot {
    background: var(--creo-accent);
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(255, 117, 31, 0.5);
}

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

/* ══ BOTTOM CTA ══ */
.aii-bottom-cta {
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 22px;
    padding: 36px 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

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

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

.aii-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);
}

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

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

.aii-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;
    box-shadow: 0 8px 28px rgba(255, 117, 31, 0.3);
}

.aii-cta-btn:hover {
    background: var(--creo-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(255, 117, 31, 0.45);
}

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

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

.aii-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: aiiPdot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes aiiPdot {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50%       { transform: scale(1.5); opacity: 0.35; }
}

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

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

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

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

    .aii-panel.active {
        flex: none;
        height: 480px;
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    }

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

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

@media (max-width: 640px) {
    .aii-section {
        padding: 56px 20px 56px;
    }

    .aii-panel.active {
        height: 420px;
    }

    .aii-panel-content {
        padding: 24px;
    }
}
