/* ==========================================================================
   Widget: EMSOFT Destaque Solução (Solution Highlight)
   ========================================================================== */

.emsoft-sol-highlight {
    position: relative;
    background-color: #f8fafc;
    padding-top: 6rem;
    padding-bottom: 6rem;
    text-align: center;
    overflow: hidden;
}

.emsoft-sol-highlight__inner {
    position: relative;
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.emsoft-sol-highlight__tag-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

/* Alinhamento dinâmico da tag com base no alinhamento da secção */
.emsoft-sol-highlight[style*="text-align: left"] .emsoft-sol-highlight__tag-wrap {
    justify-content: flex-start;
}
.emsoft-sol-highlight[style*="text-align: right"] .emsoft-sol-highlight__tag-wrap {
    justify-content: flex-end;
}
.emsoft-sol-highlight[style*="text-align: center"] .emsoft-sol-highlight__tag-wrap {
    justify-content: center;
}

.emsoft-sol-highlight__heading {
    margin: 0 auto;
    max-width: 44rem;
    font-family: var(--font-display, Georgia, serif);
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-ink-900, #131f34);
    transition: color 0.25s ease;
}

@media (min-width: 640px) {
    .emsoft-sol-highlight__heading {
        font-size: 2.25rem;
    }
}

.emsoft-sol-highlight__desc {
    margin: 1.25rem auto 0 auto;
    max-width: 38rem;
    line-height: 1.65;
    font-size: 1.0625rem;
    color: var(--color-slate-600, #475569);
    transition: color 0.25s ease;
}

/* Botão de Ação / Vídeo */
.emsoft-sol-highlight__btn {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    cursor: pointer;
    background-color: var(--color-accent-500, #f59e0b);
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-white, #ffffff);
    box-shadow: 0 10px 15px -3px rgba(245, 158, 11, 0.25);
    transition: all 0.25s ease;
    text-decoration: none;
    line-height: 1.2;
}

.emsoft-sol-highlight__btn:hover {
    background-color: var(--color-accent-600, #d97706);
    transform: translateY(-2px);
    box-shadow: 0 14px 20px -3px rgba(245, 158, 11, 0.35);
}

/* Caixa e Glifo do Ícone */
.emsoft-sol-highlight__btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

.emsoft-sol-highlight__btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
    display: block;
    transition: all 0.25s ease;
}

.emsoft-sol-highlight__btn-icon i {
    line-height: 1;
    display: inline-block;
}

/* Modal / Popup de Vídeo */
.emsoft-modal-lock {
    overflow: hidden;
}

.emsoft-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background-color: rgba(15, 23, 42, 0.85);
    padding: 1.25rem;
    box-sizing: border-box;
    transition: opacity 0.3s ease;
}

.emsoft-video-modal.is-open {
    display: flex;
}

.emsoft-video-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
}

.emsoft-video-modal__close {
    position: absolute;
    top: -2.75rem;
    right: 0;
    display: inline-flex;
    height: 2.25rem;
    width: 2.25rem;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9999px;
    background-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.emsoft-video-modal__close:hover {
    background-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.05);
}

.emsoft-video-modal__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000000;
    overflow: hidden;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.55);
}

.emsoft-video-modal__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.emsoft-video-modal__empty {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #e2e8f0;
    font-size: 0.9375rem;
}
