/* =========================================
   Accordions Component
   Consolidated styles for FAQ and Work/Methodology accordions
   ========================================= */

/* 1. FAQ Accordion (Default/Dark) */
/* Used in: Implementation Page, Product Pages */

.faq-list {
    max-width: 100%;
    margin: 0 auto;
}

.faq-list--centered {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: #1e293b;
    /* Dark background from Design System */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Radius medium */
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item:hover {
    border-color: rgba(255, 80, 0, 0.3);
}

.faq-item.active {
    border-color: rgba(255, 80, 0, 0.5);
}

/* Light Variant (for white backgrounds) */
.faq-list--light .faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.faq-list--light .faq-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.faq-list--light .faq-item.active {
    border-color: #ff5000;
    box-shadow: 0 4px 12px rgba(255, 80, 0, 0.1);
}

.faq-list--light .faq-question {
    color: #0f172a;
}

.faq-list--light .faq-question:hover {
    background: #f8fafc;
}

.faq-list--light .faq-answer-content {
    color: #475569;
}

.faq-list--light .faq-answer__list {
    color: #475569;
}

/* Question Header */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: transparent;
    border: none;
    color: white;
    font-size: 18px;
    /* Body large */
    font-weight: 700;
    /* Bold */
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 80, 0, 0.05);
}

.faq-question span {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Orange dot indicator */
.faq-question span::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ff5000;
    /* Primary orange */
    box-shadow: 0 0 10px #ff5000, 0 0 20px rgba(255, 80, 0, 0.4);
    flex-shrink: 0;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: #475569;
    /* Text secondary */
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #ff5000;
    /* Primary orange */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    /* Large enough for content */
}

.faq-answer-content {
    padding: 0 32px 32px 32px;
    color: #cbd5e1;
    /* Light text on dark bg */
    font-size: 15px;
    /* Body standard */
    line-height: 1.7;
}

.faq-answer-content p {
    margin-bottom: 16px;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}

.faq-answer-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    /* Body small */
    color: #94a3b8;
    /* Text muted */
}

.faq-answer-content ul li::before {
    content: '';
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff5000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 2px;
}

.faq-answer__list {
    list-style: disc;
    padding: 0 32px 32px 52px;
    /* Design System: 32px padding inline */
    color: #94a3b8;
    /* Text muted */
    margin: 0;
}

.faq-answer__list li {
    margin-bottom: 8px;
    /* 8px scale */
    font-size: 15px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 20px 24px;
        font-size: 16px;
    }

    .faq-answer-content {
        padding: 0 24px 24px 24px;
    }

    .faq-answer__list {
        padding: 0 24px 24px 40px;
    }
}

/* 2. Work Accordion (Process/Methodology) */
/* Used in: IT Architecture Page */

.work-accordion {
    max-width: 900px;
    margin: 64px auto 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    /* Space between items */
    position: relative;
    z-index: 1;
}

.work-accordion__item {
    background: rgba(255, 255, 255, 0.05);
    /* Subtle glass */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    /* Card radius */
    overflow: hidden;
    transition: all 0.3s ease;
}

.work-accordion__item.is-active {
    background: none;
    /* Brighter when active */
    border-color: rgba(255, 80, 0, 0.3);
    /* Orange border */
    box-shadow: 0 8px 24px rgba(255, 80, 0, 0.05);
    /* Orange glow */
}

.work-accordion__header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 32px;
    /* Standard padding */
    cursor: pointer;
    transition: background 0.3s ease;
}

.work-accordion__number {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    /* Medium radius */
    background: rgba(255, 80, 0, 0.1);
    /* Orange tint */
    border: 2px solid rgba(255, 80, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: #ff5000;
    /* Primary orange */
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.work-accordion__item.is-active .work-accordion__number {
    background: rgba(255, 80, 0, 0.2);
    /* Brighter */
    border-color: #ff5000;
    /* Solid orange */
    box-shadow: 0 0 16px rgba(255, 80, 0, 0.3);
    /* Glow */
}

.work-accordion__title {
    font-size: 20px;
    /* Card title size */
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    /* Light text */
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.work-accordion__icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.work-accordion__item.is-active .work-accordion__icon {
    transform: rotate(45deg);
    /* Plus → X rotation */
}

.work-accordion__icon svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.6);
    transition: stroke 0.3s ease;
}

.work-accordion__item.is-active .work-accordion__icon svg {
    stroke: #ff5000;
    /* Orange when active */
}

.work-accordion__content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.work-accordion__item.is-active .work-accordion__content {
    max-height: 1000px;
}

.work-accordion__body {
    padding: 0 32px 32px;
    padding-left: 100px;
    /* Align with title */
    color: rgba(255, 255, 255, 0.7);
    /* Light text secondary */
    line-height: 1.7;
}

.work-accordion__intro {
    font-size: 16px;
    /* Body default */
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    /* Slightly brighter */
}

.work-accordion__list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.work-accordion__list li {
    font-size: 16px;
    /* Body small */
    padding: 6px 0 6px 24px;
    position: relative;
    color: rgba(255, 255, 255, 0.7);
}

.work-accordion__list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #ff5000;
    /* Primary orange */
    font-weight: 700;
}

.work-accordion__result {
    margin-top: 24px;
    padding: 16px;
    background: rgba(255, 80, 0, 0.05);
    /* Subtle orange tint */
    border-left: 3px solid #ff5000;
    /* Orange accent */
    border-radius: 8px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.work-accordion__result strong {
    color: #ff5000;
    font-weight: 600;
}

/* Work Accordion Responsive */
@media (max-width: 768px) {
    .work-accordion {
        margin-top: 48px;
    }

    .work-accordion__header {
        padding: 20px;
        gap: 16px;
    }

    .work-accordion__body {
        padding: 0 20px 24px;
        padding-left: 20px;
        /* Reset alignment on mobile */
    }

    .work-accordion__number {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .work-accordion__title {
        font-size: 18px;
    }

    .work-accordion__intro {
        font-size: 15px;
    }

    .work-accordion__list li {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .work-accordion {
        gap: 12px;
    }

    .work-accordion__header {
        padding: 16px;
    }

    .work-accordion__number {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .work-accordion__title {
        font-size: 16px;
    }

    .work-accordion__result {
        font-size: 14px;
        padding: 12px;
    }
}

/* =========================================
   FAQ Section Decorative Backgrounds (Demo CTA Style)
   ========================================= */

.faq-section--demo {
    position: relative;
    overflow: hidden;
}

/* Premium Gradient Mesh Background */
.faq-bg__gradient-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 80, 0, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    opacity: 0.8;
    pointer-events: none;
}

/* Animated Glow Orbs */
.faq-bg__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: faq-float 8s ease-in-out infinite;
    pointer-events: none;
}

.faq-bg__orb--1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 80, 0, 0.4) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.faq-bg__orb--2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    bottom: -150px;
    left: -50px;
    animation-delay: 2s;
}

@keyframes faq-float {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Decorative Shapes */
.faq-bg__shape {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.faq-bg__shape--1 {
    width: 120px;
    height: 120px;
    top: 10%;
    left: 5%;
    animation: faq-pulse 4s ease-in-out infinite;
}

.faq-bg__shape--2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 10%;
    background: radial-gradient(circle, rgba(255, 80, 0, 0.1) 0%, transparent 70%);
    animation: faq-pulse 5s ease-in-out infinite 1s;
}

.faq-bg__shape--3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 15%;
    border-color: rgba(139, 92, 246, 0.2);
    animation: faq-pulse 6s ease-in-out infinite 2s;
}

@keyframes faq-pulse {

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

    50% {
        transform: scale(1.2);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .faq-bg__orb--1 {
        width: 300px;
        height: 300px;
    }

    .faq-bg__orb--2 {
        width: 200px;
        height: 200px;
    }
}