/**
 * Perfil público da empresa — empresa_apresentacao.php
 * Escopo: body.ea-page / .ea-*
 * Identidade: #10254A · #EF5425 (institucional, sem hero azul cheio)
 */
body.ea-page {
    --ea-navy: #10254A;
    --ea-orange: #EF5425;
    --ea-muted: #6b7a90;
    --ea-border: #e6ebf2;
    --ea-bg: #f6f8fb;
    --ea-card: #ffffff;
    --ea-radius: 12px;
    --ea-shadow: 0 1px 2px rgba(16, 37, 74, 0.04), 0 4px 14px rgba(16, 37, 74, 0.05);
    background: var(--ea-bg);
}

.ea-shell {
    max-width: 1040px;
}

.ea-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 1rem 0 0.35rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ea-navy);
    text-decoration: none;
}

.ea-back:hover {
    color: var(--ea-orange);
    text-decoration: underline;
}

/* —— Perfil / hero institucional —— */
.ea-profile {
    background: var(--ea-card);
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius);
    box-shadow: var(--ea-shadow);
    padding: 1.5rem 1.65rem;
    margin: 1rem 0 1.35rem;
}

.ea-profile__grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.35rem 1.5rem;
    align-items: center;
}

.ea-profile__logo {
    width: 112px;
    height: 112px;
    border-radius: 14px;
    border: 1px solid var(--ea-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.ea-profile__logo img,
.ea-profile__logo picture,
.ea-profile__logo .empresa-imagem-detalhe {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.ea-profile__logo picture {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ea-profile__logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ea-navy);
    background: rgba(16, 37, 74, 0.06);
    font-size: 2.4rem;
}

.ea-profile__main {
    min-width: 0;
}

.ea-profile__name-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    margin: 0 0 0.45rem;
}

.ea-profile__name {
    margin: 0;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--ea-navy);
}

.ea-profile__selo {
    /* Inline ao lado do nome (dentro do h1) */
    display: inline-block !important;
    position: relative;
    width: 1.35em;
    height: 1.35em;
    margin-left: 0.35rem;
    font-size: 0.95em !important;
    line-height: 1.35em;
    vertical-align: -0.08em;
    white-space: nowrap;
}

.ea-profile__selo .fa-stack-1x,
.ea-profile__selo .fa-stack-2x {
    position: absolute;
    left: 0;
    width: 100%;
    text-align: center;
}

.ea-profile__selo .fa-stack-2x {
    font-size: 1.35em;
    top: 0;
    line-height: inherit;
}

.ea-profile__selo .fa-stack-1x {
    font-size: 0.55em;
    top: 50%;
    line-height: 1;
    transform: translateY(-50%);
}

.ea-profile__selo .fa-certificate {
    color: #2f6fed;
}

.ea-profile__selo .selo-verificado-check {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.ea-profile__loc {
    margin: 0 0 0.65rem;
    color: var(--ea-muted);
    font-size: 0.95rem;
}

.ea-profile__loc i {
    color: var(--ea-orange);
    margin-right: 0.3rem;
}

.ea-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ea-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    border: 1px solid var(--ea-border);
    background: #f8fafc;
    color: var(--ea-navy);
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.ea-social a:hover {
    border-color: rgba(239, 84, 37, 0.45);
    color: var(--ea-orange);
    background: #fff;
}

.ea-profile__cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    min-width: 11.5rem;
}

.ea-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
}

.ea-btn--primary {
    background: var(--ea-orange);
    color: #fff;
}

.ea-btn--primary:hover {
    background: #d9481f;
    color: #fff;
}

.ea-btn--outline {
    background: #fff;
    color: var(--ea-navy);
    border-color: var(--ea-border);
}

.ea-btn--outline:hover {
    border-color: var(--ea-navy);
    color: var(--ea-navy);
}

/* Basic — recurso Premium bloqueado (não “botão desabilitado”) */
a.ea-msg-premium,
a.ea-msg-premium:link,
a.ea-msg-premium:visited,
a.ea-msg-premium:hover,
a.ea-msg-premium:focus {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    width: 100%;
    max-width: 16rem;
    margin-left: auto;
    padding: 0.7rem 0.9rem;
    border-radius: 10px;
    border: 1px solid rgba(16, 37, 74, 0.08);
    background: #f7f9fc;
    color: var(--ea-navy) !important;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
}

a.ea-msg-premium:hover,
a.ea-msg-premium:focus {
    background: #f1f5fa;
    border-color: rgba(16, 37, 74, 0.14);
    color: var(--ea-navy) !important;
}

.ea-msg-premium__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ea-navy);
    line-height: 1.25;
}

.ea-msg-premium__label i {
    font-size: 0.85rem;
    opacity: 0.85;
    color: var(--ea-navy);
}

.ea-msg-premium__hint {
    display: block;
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    font-weight: 500;
    color: var(--ea-muted);
}

.ea-btn--ghost {
    background: #f3f6fa;
    color: var(--ea-navy);
    border-color: rgba(16, 37, 74, 0.18);
}

.ea-btn--ghost:hover {
    background: #e9eef5;
    border-color: rgba(16, 37, 74, 0.32);
    color: var(--ea-navy);
}

.ea-cta-hint {
    margin: 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--ea-muted);
    text-align: center;
    max-width: 12rem;
}

/* —— Seções —— */
.ea-section {
    background: var(--ea-card);
    border: 1px solid var(--ea-border);
    border-radius: var(--ea-radius);
    box-shadow: var(--ea-shadow);
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.ea-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ea-border);
}

.ea-section__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ea-navy);
}

.ea-section__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.6rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(16, 37, 74, 0.08);
    color: var(--ea-navy);
    font-size: 0.78rem;
    font-weight: 700;
}

.ea-section__body {
    padding: 1.15rem 1.25rem 1.35rem;
}

.ea-about {
    margin: 0;
    max-width: 42rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #334155;
    white-space: pre-wrap;
    word-break: break-word;
}

/* —— Vagas —— */
.ea-vaga-destaque {
    margin: 0 1.25rem 0.85rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(239, 84, 37, 0.28);
    border-radius: 10px;
    background: rgba(239, 84, 37, 0.04);
}

.ea-vaga-destaque__label {
    display: inline-block;
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ea-orange);
}

.ea-vaga-list {
    list-style: none;
    margin: 0;
    padding: 0 1.25rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ea-vaga {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--ea-border);
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ea-vaga:hover {
    border-color: rgba(16, 37, 74, 0.22);
    box-shadow: 0 2px 10px rgba(16, 37, 74, 0.06);
    color: inherit;
}

.ea-vaga__body {
    min-width: 0;
    flex: 1;
}

.ea-vaga__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ea-navy);
    line-height: 1.3;
}

.ea-vaga__title .ea-fire {
    color: #d9481f;
    margin-right: 0.25rem;
}

.ea-vaga__meta {
    margin: 0 0 0.25rem;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.4;
}

.ea-vaga__salario {
    margin: 0;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ea-navy);
}

.ea-vaga__salario--mute {
    font-weight: 500;
    color: var(--ea-muted);
}

.ea-vaga__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.45rem;
}

.ea-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(16, 37, 74, 0.07);
    color: var(--ea-navy);
}

.ea-chip--urgent {
    background: rgba(239, 84, 37, 0.12);
    color: #c43a14;
}

.ea-vaga__cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    border: 1px solid rgba(16, 37, 74, 0.18);
    background: #fff;
    color: var(--ea-navy);
    font-size: 0.84rem;
    font-weight: 700;
    pointer-events: none;
}

.ea-vaga:hover .ea-vaga__cta {
    border-color: var(--ea-orange);
    color: var(--ea-orange);
}

.ea-empty {
    text-align: center;
    padding: 2.25rem 1.25rem;
    color: var(--ea-muted);
}

.ea-empty__icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 0.85rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(16, 37, 74, 0.07);
    color: var(--ea-navy);
    font-size: 1.25rem;
}

.ea-empty__title {
    margin: 0 0 0.35rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--ea-navy);
}

.ea-empty__sub {
    margin: 0 auto;
    max-width: 26rem;
    font-size: 0.9rem;
    line-height: 1.45;
}

/* —— Paginação —— */
.ea-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0 1.25rem 1.35rem;
}

.ea-pager a,
.ea-pager span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--ea-border);
    background: #fff;
    color: var(--ea-navy);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.ea-pager a:hover {
    border-color: var(--ea-orange);
    color: var(--ea-orange);
}

.ea-pager .is-active span {
    background: var(--ea-navy);
    border-color: var(--ea-navy);
    color: #fff;
}

.ea-pager .is-disabled span {
    opacity: 0.45;
    cursor: default;
}

.ea-page-foot {
    height: 1.5rem;
}

/* —— Mobile (acabamento: hero + cards mais compactos) —— */
@media (max-width: 767.98px) {
    .ea-back {
        margin: 0.75rem 0 0.2rem;
    }

    .ea-profile {
        padding: 0.9rem 1rem 1rem;
        margin: 0.55rem 0 0.85rem;
    }

    .ea-profile__grid {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        gap: 0.55rem;
    }

    .ea-profile__logo {
        width: 96px;
        height: 96px;
        border-radius: 12px;
    }

    .ea-profile__logo-fallback {
        font-size: 2rem;
    }

    .ea-profile__main {
        width: 100%;
    }

    .ea-profile__name-row {
        justify-content: center;
        margin: 0 0 0.28rem;
        gap: 0.35rem 0.5rem;
    }

    .ea-profile__name {
        font-size: 1.28rem;
        line-height: 1.2;
    }

    .ea-profile__loc {
        margin: 0 0 0.35rem;
        font-size: 0.9rem;
    }

    .ea-social {
        justify-content: center;
        gap: 0.35rem;
        margin-top: 0.1rem;
    }

    .ea-social a {
        width: 2.15rem;
        height: 2.15rem;
    }

    .ea-profile__cta {
        width: 100%;
        min-width: 0;
        margin-top: 0.2rem;
        gap: 0.28rem;
    }

    a.ea-msg-premium,
    a.ea-msg-premium:link,
    a.ea-msg-premium:visited {
        max-width: none;
        margin-left: 0;
    }

    .ea-btn {
        width: 100%;
        min-height: 44px;
    }

    .ea-cta-hint {
        max-width: none;
        font-size: 0.7rem;
    }

    .ea-section {
        margin-bottom: 1rem;
    }

    .ea-section__head {
        padding: 0.85rem 1.05rem;
    }

    .ea-section__head,
    .ea-section__body {
        padding-left: 1.05rem;
        padding-right: 1.05rem;
    }

    .ea-section__body {
        padding-top: 1rem;
        padding-bottom: 1.1rem;
    }

    .ea-vaga-destaque {
        margin: 0 1.05rem 0.7rem;
        padding: 0.7rem 0.85rem;
    }

    .ea-vaga-list {
        margin: 0 1.05rem;
        padding: 0 0 0.95rem;
        gap: 0.6rem;
    }

    .ea-vaga {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
        padding: 0.8rem 0.9rem;
    }

    .ea-vaga__title {
        margin: 0 0 0.28rem;
        font-size: 0.98rem;
    }

    .ea-vaga__meta {
        margin: 0 0 0.2rem;
        font-size: 0.84rem;
    }

    .ea-vaga__chips {
        margin-top: 0.35rem;
    }

    .ea-vaga__cta {
        width: 100%;
        min-height: 45px;
        height: 45px;
        padding: 0.4rem 0.85rem;
        pointer-events: none;
    }

    .ea-pager {
        padding: 0 1.05rem 1.15rem;
        gap: 0.4rem;
    }

    .ea-pager a,
    .ea-pager span {
        min-width: 44px;
        min-height: 44px;
    }
}
