/**
 * Listagem pública de empresas — empresas.php
 * Escopo: body.el-page / .el-*
 * #10254A · #EF5425 · #F6F8FB
 */
body.el-page {
    --el-navy: #10254A;
    --el-orange: #EF5425;
    --el-bg: #F6F8FB;
    --el-card: #ffffff;
    --el-muted: #6b7a90;
    --el-border: #e6ebf2;
    --el-radius: 12px;
    --el-shadow: 0 1px 2px rgba(16, 37, 74, 0.04), 0 4px 12px rgba(16, 37, 74, 0.05);
    background: var(--el-bg);
}

.el-shell {
    max-width: 960px;
}

.el-hero {
    background: var(--el-card);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    box-shadow: var(--el-shadow);
    padding: 1.35rem 1.4rem 1.25rem;
    margin: 1.1rem 0 1.15rem;
}

.el-hero__title {
    margin: 0 0 0.3rem;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--el-navy);
    line-height: 1.25;
}

.el-hero__sub {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    color: var(--el-muted);
    line-height: 1.45;
    max-width: 36rem;
}

.el-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.el-search__input {
    box-sizing: border-box;
    flex: 1 1 14rem;
    width: auto;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 0.95rem;
    border: 1px solid var(--el-border);
    border-radius: 10px;
    background: #fff;
    color: var(--el-navy);
    font-size: 0.95rem;
    line-height: 1.25;
    -webkit-appearance: none;
    appearance: none;
}

.el-search__input:focus {
    outline: none;
    border-color: rgba(16, 37, 74, 0.35);
    box-shadow: 0 0 0 3px rgba(16, 37, 74, 0.08);
}

.el-search__btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 1.15rem;
    border-radius: 10px;
    border: 1px solid transparent;
    background: var(--el-orange);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.el-search__btn:hover {
    background: #d9481f;
    color: #fff;
}

.el-search__clear {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    height: 48px;
    min-height: 48px;
    padding: 0 0.95rem;
    border-radius: 10px;
    border: 1px solid var(--el-border);
    background: #fff;
    color: var(--el-navy);
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.2;
    text-decoration: none;
}

.el-search__clear:hover {
    border-color: var(--el-navy);
    color: var(--el-navy);
}

.el-results-meta {
    margin: 0 0 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--el-navy);
}

.el-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.el-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem 1.15rem;
    align-items: center;
    background: var(--el-card);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    box-shadow: var(--el-shadow);
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.el-card:hover {
    border-color: rgba(16, 37, 74, 0.2);
    box-shadow: 0 2px 12px rgba(16, 37, 74, 0.07);
    color: inherit;
    text-decoration: none;
}

.el-card__logo {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    border: 1px solid var(--el-border);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.el-card__logo img,
.el-card__logo picture,
.el-card__logo .empresa-imagem {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.el-card__logo picture {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

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

.el-card__body {
    min-width: 0;
}

.el-card__name {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--el-navy);
    line-height: 1.3;
}

.el-card__selo {
    display: inline-block !important;
    position: relative;
    width: 1.25em;
    height: 1.25em;
    margin-left: 0.3rem;
    font-size: 0.9em !important;
    line-height: 1.25em;
    vertical-align: -0.08em;
    white-space: nowrap;
}

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

.el-card__selo .fa-stack-2x {
    font-size: 1.25em;
    top: 0;
    line-height: inherit;
    color: #2f6fed;
}

.el-card__selo .fa-stack-1x {
    font-size: 0.55em;
    top: 50%;
    line-height: 1;
    transform: translateY(-50%);
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
}

.el-card__loc {
    margin: 0 0 0.4rem;
    font-size: 0.88rem;
    color: var(--el-muted);
}

.el-card__loc i {
    color: var(--el-orange);
    margin-right: 0.25rem;
}

.el-card__vagas {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--el-navy);
}

.el-card__vagas--zero {
    color: #4d5d73;
    font-weight: 500;
}

.el-card__side {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.45rem;
    min-width: 9.5rem;
}

.el-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    text-align: center;
    line-height: 1.2;
}

.el-btn--primary {
    background: var(--el-navy);
    color: #fff;
}

.el-card:hover .el-btn--primary {
    background: #0c1c38;
    color: #fff;
}

.el-btn--msg {
    background: #f7f9fc;
    color: var(--el-navy);
    border-color: rgba(16, 37, 74, 0.1);
}

.el-btn--msg:hover {
    background: #f1f5fa;
    color: var(--el-navy);
    border-color: rgba(16, 37, 74, 0.18);
}

.el-btn--msg-premium {
    background: var(--el-orange);
    color: #fff;
}

.el-btn--msg-premium:hover {
    background: #d9481f;
    color: #fff;
}

.el-empty {
    text-align: center;
    padding: 2.25rem 1.25rem;
    background: var(--el-card);
    border: 1px solid var(--el-border);
    border-radius: var(--el-radius);
    color: var(--el-muted);
}

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

.el-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    margin: 1.25rem 0 0.5rem;
    padding: 0;
}

.el-pager a,
.el-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(--el-border);
    background: #fff;
    color: var(--el-navy);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

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

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

.el-pager .is-disabled span {
    opacity: 0.45;
}

.el-foot-meta {
    text-align: center;
    color: var(--el-muted);
    font-size: 0.82rem;
    margin: 0.75rem 0 1.5rem;
}

@media (max-width: 767.98px) {
    .el-hero {
        padding: 0.95rem 0.95rem 0.9rem;
        margin: 0.7rem 0 0.85rem;
    }

    .el-hero__title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .el-hero__sub {
        margin-bottom: 0.85rem;
        font-size: 0.9rem;
    }

    .el-search {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 0.5rem;
    }

    /*
     * Bugfix: em coluna, flex-basis 14rem virava ALTURA (~224px)
     * e flex-grow:1 esticava o input verticalmente.
     */
    .el-search__input {
        flex: 0 0 auto;
        align-self: stretch;
        width: 100%;
        max-width: 100%;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
        padding: 0 0.9rem;
        font-size: 0.95rem;
        line-height: 1.25;
    }

    .el-search__btn,
    .el-search__clear {
        flex: 0 0 auto;
        width: 100%;
        height: 50px;
        min-height: 50px;
        max-height: 50px;
    }

    .el-list {
        gap: 0.65rem;
    }

    .el-card {
        grid-template-columns: auto 1fr;
        gap: 0.65rem 0.8rem;
        padding: 0.8rem 0.85rem;
    }

    .el-card__logo {
        width: 60px;
        height: 60px;
    }

    .el-card__name {
        font-size: 0.98rem;
        margin-bottom: 0.22rem;
    }

    .el-card__loc {
        margin-bottom: 0.3rem;
    }

    .el-card__side {
        grid-column: 1 / -1;
        min-width: 0;
        flex-direction: column;
        gap: 0.4rem;
        margin-top: 0.1rem;
    }

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

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