/**
 * Expertise Block Styles
 *
 * Split layout with floating stats card
 */

/* ==========================================================================
   Section Container
   ========================================================================== */

.lspa-expertise {
    padding: var(--lspa-space-4xl) 0;
    background-color: var(--lspa-gray-100);
    overflow: hidden;
}

.lspa-expertise__container {
    max-width: var(--lspa-container-xl);
    margin: 0 auto;
    padding: 0 var(--lspa-space-lg);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lspa-space-3xl);
    align-items: center;
}

/* ==========================================================================
   Visual / Image Column
   ========================================================================== */

.lspa-expertise__visual {
    position: relative;
}

.lspa-expertise__image-wrapper {
    position: relative;
    z-index: 1;
}

/* Decorative accent shape behind image */
.lspa-expertise__accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 60%;
    height: 60%;
    background: linear-gradient(135deg, var(--lspa-secondary-light) 0%, var(--lspa-secondary) 100%);
    border-radius: var(--lspa-radius-2xl);
    opacity: 0.3;
    z-index: -1;
}

.lspa-expertise__image {
    width: 100%;
    height: auto;
    border-radius: var(--lspa-radius-xl);
    box-shadow: var(--lspa-shadow-xl);
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Placeholder for preview */
.lspa-expertise__image-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--lspa-gray-200) 0%, var(--lspa-gray-300) 100%);
    border-radius: var(--lspa-radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--lspa-space-md);
    color: var(--lspa-gray-500);
}

.lspa-expertise__image-placeholder svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.lspa-expertise__image-placeholder span {
    font-size: var(--lspa-text-sm);
    font-weight: 500;
}

/* ==========================================================================
   Floating Stats Card
   ========================================================================== */

.lspa-expertise__stats-card {
    position: absolute;
    bottom: -30px;
    right: -40px;
    background: var(--lspa-white);
    border-radius: var(--lspa-radius-xl);
    padding: var(--lspa-space-lg) var(--lspa-space-xl);
    display: flex;
    align-items: center;
    gap: var(--lspa-space-lg);
    box-shadow: var(--lspa-shadow-xl);
    z-index: 10;
}

.lspa-expertise__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-width: 100px;
}

.lspa-expertise__stat-number {
    font-family: var(--lspa-font-heading);
    font-size: var(--lspa-text-3xl);
    font-weight: 800;
    color: var(--lspa-primary);
    line-height: 1;
    margin-bottom: var(--lspa-space-xs);
}

.lspa-expertise__stat-label {
    font-size: var(--lspa-text-sm);
    color: var(--lspa-gray-600);
    line-height: 1.2;
}

.lspa-expertise__stat-divider {
    width: 1px;
    height: 50px;
    background: var(--lspa-gray-200);
}

/* ==========================================================================
   Content Column
   ========================================================================== */

.lspa-expertise__content {
    padding-left: var(--lspa-space-xl);
}

/* Pill / Label */
.lspa-expertise__pill {
    display: inline-block;
    padding: var(--lspa-space-xs) var(--lspa-space-md);
    background: var(--lspa-secondary-light);
    color: var(--lspa-primary);
    font-size: var(--lspa-text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--lspa-radius-full);
    margin-bottom: var(--lspa-space-md);
}

/* Title */
.lspa-expertise__title {
    font-size: clamp(1.75rem, 3vw, var(--lspa-text-4xl));
    font-weight: 800;
    color: var(--lspa-primary);
    line-height: 1.15;
    margin-bottom: var(--lspa-space-lg);
}

.lspa-expertise__title .lspa-highlight {
    color: var(--lspa-secondary);
    position: relative;
}

/* Subtitle */
.lspa-expertise__subtitle {
    font-size: var(--lspa-text-lg);
    color: var(--lspa-gray-600);
    line-height: 1.7;
    margin-bottom: var(--lspa-space-xl);
}

/* ==========================================================================
   Features List
   ========================================================================== */

.lspa-expertise__features {
    list-style: none;
    margin: 0 0 var(--lspa-space-xl);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--lspa-space-md);
}

.lspa-expertise__feature {
    display: flex;
    align-items: center;
    gap: var(--lspa-space-md);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: var(--animation-delay, 0s);
}

.lspa-expertise__feature-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lspa-secondary);
    transition: transform var(--lspa-transition-fast);
}

.lspa-expertise__feature-icon svg {
    width: 100%;
    height: 100%;
}

.lspa-expertise__feature:hover .lspa-expertise__feature-icon {
    transform: scale(1.1);
}

.lspa-expertise__feature-text {
    font-size: var(--lspa-text-lg);
    font-weight: 600;
    color: var(--lspa-primary);
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.lspa-expertise__cta {
    margin-top: var(--lspa-space-xl);
}

.lspa-expertise__button {
    display: inline-flex;
    align-items: center;
    gap: var(--lspa-space-sm);
    padding: var(--lspa-space-md) var(--lspa-space-xl);
    background: var(--lspa-primary);
    color: var(--lspa-white);
    font-size: var(--lspa-text-base);
    font-weight: 600;
    border-radius: var(--lspa-radius-lg);
    text-decoration: none;
    transition: all var(--lspa-transition-fast);
}

.lspa-expertise__button:hover {
    background: var(--lspa-primary-dark);
    color: var(--lspa-white);
    transform: translateY(-2px);
    box-shadow: var(--lspa-shadow-lg);
}

.lspa-expertise__button-icon {
    width: 18px;
    height: 18px;
    transition: transform var(--lspa-transition-fast);
}

.lspa-expertise__button:hover .lspa-expertise__button-icon {
    transform: translateX(4px);
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1024px) {
    .lspa-expertise__container {
        grid-template-columns: 1fr;
        gap: var(--lspa-space-2xl);
    }

    .lspa-expertise__visual {
        order: 1;
    }

    .lspa-expertise__content {
        order: 2;
        padding-left: 0;
        text-align: center;
    }

    .lspa-expertise__features {
        align-items: center;
    }

    .lspa-expertise__stats-card {
        right: 50%;
        transform: translateX(50%);
        bottom: -20px;
    }

    .lspa-expertise__cta {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .lspa-expertise {
        padding: var(--lspa-space-2xl) 0;
    }

    .lspa-expertise__accent {
        width: 40%;
        height: 40%;
    }

    .lspa-expertise__stats-card {
        padding: var(--lspa-space-md) var(--lspa-space-lg);
        gap: var(--lspa-space-md);
    }

    .lspa-expertise__stat {
        min-width: 80px;
    }

    .lspa-expertise__stat-number {
        font-size: var(--lspa-text-2xl);
    }

    .lspa-expertise__stat-label {
        font-size: var(--lspa-text-xs);
    }

    .lspa-expertise__feature-text {
        font-size: var(--lspa-text-base);
    }

    .lspa-expertise__subtitle {
        font-size: var(--lspa-text-base);
    }
}

@media (max-width: 480px) {
    .lspa-expertise__stats-card {
        flex-direction: column;
        gap: var(--lspa-space-sm);
        padding: var(--lspa-space-md);
    }

    .lspa-expertise__stat-divider {
        width: 50px;
        height: 1px;
    }

    .lspa-expertise__button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   Editor Preview Styles
   ========================================================================== */

.editor-styles-wrapper .lspa-expertise__feature {
    animation: none;
    opacity: 1;
}
