/**
 * Spotlights Component
 * Alternating image + text blocks for showcasing key items.
 * Scoped under .feature-stack-section
 */

/* Section Container */
.feature-stack-section {
    width: var(--container-width);
    max-width: var(--container-max-width, 76.5rem);
    margin: 0 auto;
    background: white;
}

/* Collapse spacing between consecutive spotlight sections */
.feature-stack-section + .feature-stack-section {
    padding-top: 0;
}

/* Feature Stack Container */
.feature-stack-section .feature-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
}

/* Individual Feature Block */
.feature-stack-section .feature-item {
    display: flex;
    gap: var(--space-xl);
    align-items: flex-start;
}

/* Alternate layout - image on right */
.feature-stack-section .feature-item.reverse {
    flex-direction: row-reverse;
}

/* Feature Image Column */
.feature-stack-section .feature-item-image {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-stack-section .feature-item-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Feature PDF Column */
.feature-stack-section .feature-item-pdf {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-stack-section .feature-item-pdf object {
    width: 100%;
    height: 500px;
    display: block;
}

/* Feature Video Column */
.feature-stack-section .feature-item-video {
    flex: 0 0 35%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-stack-section .feature-item-video iframe {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    display: block;
    border: 0;
}

/* Media Shadow Variants */
.feature-stack-section .shadow-none img,
.feature-stack-section .shadow-none object,
.feature-stack-section .shadow-none iframe {
    box-shadow: none;
}

.feature-stack-section .shadow-subtle img,
.feature-stack-section .shadow-subtle object,
.feature-stack-section .shadow-subtle iframe {
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.1);
}

.feature-stack-section .shadow-medium img,
.feature-stack-section .shadow-medium object,
.feature-stack-section .shadow-medium iframe {
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.2);
}

.feature-stack-section .shadow-strong img,
.feature-stack-section .shadow-strong object,
.feature-stack-section .shadow-strong iframe {
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3);
}

/* Feature Content Column */
.feature-stack-section .feature-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-stack-section .feature-item-content::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.08);
}

/* Feature Title */
.feature-stack-section .feature-item-title {
    font-size: clamp(1.5rem, 1.2rem + 0.625vw, 1.75rem);
    font-weight: 600;
    color: #000;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Feature Description */
.feature-stack-section .feature-item-description {
    font-size: 1rem;
    line-height: 1.6;
    letter-spacing: 0.1px;
    color: #000;
    margin: 0;
}

/* Button Container */
.feature-stack-section .button-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-top: var(--space-md);
    width: auto;
    justify-content: flex-start;
}

/* Refined Button Base */
.feature-stack-section .refined-btn {
    font-family: var(--font-family-primary);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.25s ease;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    padding: 8px 16px;
    min-height: 42px;
}

/* Button hover overlay */
.feature-stack-section .refined-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-stack-section .refined-btn:hover::before {
    opacity: 1;
}

/* Primary Button */
.feature-stack-section .btn-primary {
    color: #fff;
    background-color: #2274ae;
    border: 2px solid #2274ae;
}

.feature-stack-section .btn-primary::before {
    background-color: #005587;
}

.feature-stack-section .btn-primary:hover {
    border-color: #005587;
}

/* Secondary Button (Outline) */
.feature-stack-section .btn-secondary {
    color: #2274ae;
    background-color: transparent;
    border: 2px solid #2274ae;
}

.feature-stack-section .btn-secondary::before {
    background-color: #2274ae;
}

.feature-stack-section .btn-secondary:hover {
    color: #fff;
}

.feature-stack-section .btn-secondary:hover .icon-transition {
    filter: brightness(0) invert(1);
}

/* Button Icon */
.feature-stack-section .icon-transition {
    width: 18px;
    height: 18px;
    margin-left: 4px;
}

/* Button Text */
@media (min-width: 960px) {
    .feature-stack-section .btn-text {
        font-weight: 500;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .feature-stack-section .feature-item,
    .feature-stack-section .feature-item.reverse {
        flex-direction: column;
        gap: var(--space-lg);
        padding-bottom: var(--space-lg);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    }

    .feature-stack-section .feature-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .feature-stack-section .feature-item-content::before {
        display: none;
    }

    .feature-stack-section .feature-item-image,
    .feature-stack-section .feature-item-pdf,
    .feature-stack-section .feature-item-video {
        flex: 1;
        width: 100%;
    }

    .feature-stack-section .feature-stack {
        gap: var(--space-lg);
    }

    .feature-stack-section {
        padding: var(--space-xl) 0;
    }
}

@media (max-width: 580px) {
    .feature-stack-section {
        padding: var(--space-lg) 0;
    }

    .feature-stack-section .button-container {
        flex-direction: column;
        width: 100%;
    }

    .feature-stack-section .refined-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .feature-stack-section .refined-btn {
        font-size: 15px;
        letter-spacing: 0;
        padding: 8px 14px;
        min-height: 40px;
    }
}
