/**
 * Hero Banner Corporativo EMSOFT
 * Referência: desktop 1440px (container 1240px, card flutuante colado à direita).
 *
 * @package emsoft-elements
 */

.emsoft-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 700px;
    padding: 72px 0;
    background-color: #0a2a4a;
    color: #ffffff;
    overflow: hidden;
    isolation: isolate;
}

.emsoft-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: -2;
}

/* Overlay azul-marinho: sólido à esquerda, a revelar a foto à direita */
.emsoft-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg,
            rgba(8, 38, 70, 0.97) 0%,
            rgba(9, 42, 76, 0.90) 40%,
            rgba(9, 42, 76, 0.50) 68%,
            rgba(9, 42, 76, 0.18) 100%),
        linear-gradient(180deg, rgba(6, 24, 38, 0.25) 0%, rgba(6, 24, 38, 0) 40%);
    z-index: -1;
}

.emsoft-hero__grid {
    display: block;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 1290px) {
    .emsoft-hero__grid {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Conteúdo Principal (Esquerda) */
.emsoft-hero__content {
    max-width: 620px;
}

.emsoft-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 26px;
}

.emsoft-hero__eyebrow-line {
    width: 28px;
    height: 1px;
    background-color: #00b4d8;
}

.emsoft-hero__title {
    font-size: clamp(2.6rem, 5.2vw, 4.7rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 24px;
}

.emsoft-hero__title span {
    display: inline;
}

.emsoft-hero__subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

.emsoft-hero__desc {
    font-size: 1.04rem;
    line-height: 1.75;
    max-width: 590px;
    margin: 0 0 36px;
}

/* Ações / Botões */
.emsoft-hero__actions {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 44px;
}

.emsoft-hero__btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 16px 30px;
    border-radius: 2px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast, 180ms ease);
}

.emsoft-hero__btn-primary span {
    transition: transform var(--transition-fast, 180ms ease);
}

.emsoft-hero__btn-primary:hover span {
    transform: translateX(4px);
}

.emsoft-hero__btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition-fast, 180ms ease);
}

.emsoft-hero__btn-secondary span {
    color: #00b4d8;
    transition: transform var(--transition-fast, 180ms ease);
}

.emsoft-hero__btn-secondary:hover {
    color: #38bdf8;
}

.emsoft-hero__btn-secondary:hover span {
    transform: translateY(3px);
}

/* Nota de Rodapé (Trust) */
.emsoft-hero__trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.72);
}

.emsoft-hero__trust-icon {
    color: #00b4d8;
    display: inline-flex;
    font-size: 0.95rem;
}

.emsoft-hero__trust-icon svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

/* Card Flutuante da Próxima Fase: colado à direita, sobre a imagem */
.emsoft-hero__card-wrap {
    position: absolute;
    right: 8px;
    bottom: 135px;
    width: 256px;
    z-index: 2;
}

@media (max-width: 1280px) {
    .emsoft-hero__card-wrap {
        right: 24px;
    }
}

@media (max-width: 1024px) {
    .emsoft-hero__card-wrap {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 40px 24px 0;
    }

    .emsoft-hero {
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        min-height: 0;
    }
}

.emsoft-phase-card {
    width: 100%;
    background-color: #ffffff;
    border-top: 3px solid #00b4d8;
    border-radius: 0;
    box-shadow: 0 24px 48px rgba(6, 24, 38, 0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.emsoft-phase-card__body {
    padding: 24px 28px 20px;
}

.emsoft-phase-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0097d6;
    margin-bottom: 14px;
}

.emsoft-phase-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #00b4d8;
}

.emsoft-phase-card__date {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #082a47;
    margin-bottom: 6px;
}

.emsoft-phase-card__slash {
    color: #00b4d8;
}

.emsoft-phase-card__year {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f4c81;
    margin-bottom: 18px;
}

.emsoft-phase-card__desc {
    font-size: 0.78rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

.emsoft-phase-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 28px;
    padding: 16px 0 22px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #082a47;
    text-decoration: none;
    transition: color var(--transition-fast, 180ms ease);
}

.emsoft-phase-card__footer .arrow {
    color: #0097d6;
    transition: transform var(--transition-fast, 180ms ease);
}

.emsoft-phase-card__footer:hover {
    color: #0097d6;
}

.emsoft-phase-card__footer:hover .arrow {
    transform: translateX(4px);
}

/* ==========================================================================
   Telefone (≤ 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .emsoft-hero {
        padding: 48px 0 40px;
    }

    .emsoft-hero__grid {
        padding: 0 16px;
    }

    .emsoft-hero__eyebrow {
        font-size: 0.62rem;
        margin-bottom: 20px;
    }

    .emsoft-hero__title {
        font-size: clamp(2.3rem, 11vw, 2.9rem);
        line-height: 1.12;
        margin-bottom: 20px;
    }

    .emsoft-hero__subtitle {
        font-size: 1rem;
    }

    .emsoft-hero__desc {
        font-size: 0.88rem;
        line-height: 1.7;
        margin-bottom: 28px;
    }

    .emsoft-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        margin-bottom: 32px;
    }

    .emsoft-hero__btn-primary {
        width: 100%;
        max-width: 360px;
        justify-content: center;
        padding: 16px 24px;
    }

    .emsoft-hero__trust {
        font-size: 0.72rem;
        align-items: flex-start;
    }

    /* Card em linha: etiqueta / data + ano / descrição + link */
    .emsoft-hero__card-wrap {
        margin: 36px 16px 0;
        width: auto;
    }

    .emsoft-phase-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "eyebrow eyebrow"
            "date    year"
            "desc    link";
        column-gap: 16px;
        align-items: end;
        padding: 20px 22px;
        background-color: #eef3f8;
        border-top: 0;
        border-left: 3px solid #00b4d8;
    }

    .emsoft-phase-card__body {
        display: contents;
    }

    .emsoft-phase-card__eyebrow {
        grid-area: eyebrow;
        margin-bottom: 8px;
    }

    .emsoft-phase-card__date {
        grid-area: date;
        font-size: 2.6rem;
        margin: 0 0 12px;
    }

    .emsoft-phase-card__year {
        grid-area: year;
        font-size: 1.5rem;
        margin: 0 0 14px;
        align-self: center;
    }

    .emsoft-phase-card__desc {
        grid-area: desc;
    }

    .emsoft-phase-card__footer {
        grid-area: link;
        margin: 0;
        padding: 0;
        border-top: 0;
        gap: 10px;
        white-space: nowrap;
    }
}

/* Ícones dos botões (editáveis) */
.emsoft-hero__btn-primary span,
.emsoft-hero__btn-secondary span {
    display: inline-flex;
    align-items: center;
    font-size: 0.85em;
}

.emsoft-hero__btn-primary svg,
.emsoft-hero__btn-secondary svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}
