/*
 * Hero da home (Jobster, hero "boxed"): o tema só mostra os cards informativos (ex.: "Currículum en PDF") acima de
 * 1456px (`.pxp-hero-boxed-info-cards{display:none}` até 1456px) e esconde a coluna inteira da direita abaixo de 1200px
 * (`.d-none.d-xl-block`). Em notebook (1366) sobra só o círculo vazio e no celular nada. Aqui o card grande volta nos dois
 * casos, sem editar o tema. O card pequeno e a lista de números (que repetem texto de demonstração) ficam escondidos
 * nessas larguras, onde não há espaço para eles.
 */
@media screen and (min-width: 1200px) and (max-width: 1456px) {
    .pxp-hero-boxed .pxp-hero-boxed-info-cards {
        display: block;
    }
    .pxp-hero-boxed .pxp-hero-boxed-info-card-small,
    .pxp-hero-boxed .pxp-hero-boxed-info-list-container {
        display: none;
    }
    .pxp-hero-boxed .pxp-hero-boxed-info-card-big {
        right: 40px;
        top: 0;
    }
    .pxp-hero-boxed .pxp-hero-boxed-info-card-big.pxp-animate-info-card {
        opacity: 1;
    }
}

@media screen and (max-width: 1199px) {
    /* A coluna da direita é `d-none` no tema: só o card entra, sem os círculos decorativos. */
    .pxp-hero-boxed .pxp-hero-boxed-content .d-none.d-xl-block {
        display: block !important;
        margin-top: 24px;
    }
    .pxp-hero-boxed .pxp-hero-boxed-circulars,
    .pxp-hero-boxed .pxp-hero-boxed-icon-circles,
    .pxp-hero-boxed .pxp-hero-boxed-info-card-small,
    .pxp-hero-boxed .pxp-hero-boxed-info-list-container {
        display: none !important;
    }
    .pxp-hero-boxed .pxp-hero-boxed-info-cards {
        display: block;
        position: static;
    }
    .pxp-hero-boxed .pxp-hero-boxed-info-card-big {
        position: static;
        max-width: 260px;
        padding-top: 60px;
        margin: 0;
    }
    .pxp-hero-boxed .pxp-hero-boxed-info-card-big.pxp-animate-info-card {
        opacity: 1;
    }
}

/*
 * Cadastro: o Personas só cadastra candidato (ver guard_user_signup em class-jobster-customizations.php). O campo
 * "Nombre de la empresa" do modal e da página de cadastro nunca deve aparecer, nem por um instante antes de o JS do
 * tema escolher o tipo.
 */
.pxp-signup-modal-company-fields,
.pxp-signup-page-company-fields {
    display: none !important;
}

/*
 * Card pequeno do hero ("Gratis"): o tema não dá respiro à direita do rótulo e o texto encosta na borda. O card só
 * aparece acima de 1456px (o tema o esconde até lá), então a regra vale só nessa faixa; o card grande não muda.
 */
@media screen and (min-width: 1457px) {
    .pxp-hero-boxed .pxp-hero-boxed-info-card-small-title {
        padding-right: 28px;
    }
}

/*
 * Botão de convite do hero (assets/js/hero-cta.js): botão do tema (pxp-section-cta), microcópia e link de login.
 */
.rh-hero-cta {
    margin-top: 28px;
}
.rh-hero-cta .rh-hero-cta-btn {
    display: inline-block;
    padding: 14px 32px;
}
.rh-hero-cta .rh-hero-cta-note {
    margin: 12px 0 4px;
    font-size: 15px;
    opacity: .85;
}
.rh-hero-cta .rh-hero-cta-login {
    display: inline-block;
    color: var(--pxpMainColor);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding: 6px 0;
}
.rh-hero-cta .rh-hero-cta-login:hover {
    color: var(--pxpMainColorDark);
}
.rh-hero-cta a:focus-visible {
    outline: 3px solid var(--pxpMainColor);
    outline-offset: 3px;
}
.rh-hero-cta .rh-hero-cta-btn:focus-visible {
    outline-color: var(--pxpMainColorDark);
}
@media screen and (max-width: 575px) {
    .rh-hero-cta .rh-hero-cta-btn {
        display: block;
        text-align: center;
    }
}

/*
 * L4b: seções novas da home abaixo do hero (blocos núcleo gravados no post_content por docs/db-changes/l4b-home-blocks.php):
 * "Cómo funciona", "Qué incluye tu currículum" e a faixa de privacidade. Tudo sob .rh-l4b. Os ícones são Font Awesome 6
 * (o plugin já o carrega) por CSS em .rh-icon, para o post_content não precisar de HTML solto. Contraste: texto #14266B/#1F2937/#4B5563
 * sobre #E8EEF7/branco (todos acima de 7:1, AA e AAA). O Jobster envolve cada bloco de página em .pxp-container, então aqui
 * não há largura própria.
 */
.rh-l4b .rh-home-section {
    margin-top: 80px;
    text-align: center;
}
.rh-l4b h2.wp-block-heading {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 0 0 40px;
}
.rh-l4b .rh-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--pxpMainColorLight);
}
.rh-l4b .rh-icon::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    color: var(--pxpMainColor);
    content: "\f234";
    content: "\f234" / "";
}
.rh-l4b .rh-ico-user-plus::before { content: "\f234"; content: "\f234" / ""; }
.rh-l4b .rh-ico-pen-to-square::before { content: "\f044"; content: "\f044" / ""; }
.rh-l4b .rh-ico-file-arrow-down::before { content: "\f56d"; content: "\f56d" / ""; }
.rh-l4b .rh-ico-lock::before { content: "\f023"; content: "\f023" / ""; }
.rh-l4b .rh-steps.wp-block-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0;
}
.rh-l4b .rh-steps > .wp-block-column {
    flex-basis: auto;
    margin: 0;
}
.rh-l4b .rh-steps h3.wp-block-heading {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 600;
    color: #1F2937;
}
.rh-l4b .rh-steps p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: #4B5563;
}
.rh-l4b .rh-how-cta {
    margin-top: 40px;
}
.rh-l4b .rh-how-cta .rh-start-cta {
    display: inline-block;
    padding: 14px 32px;
}
.rh-l4b .rh-how-cta a:focus-visible {
    outline: 3px solid var(--pxpMainColorDark);
    outline-offset: 3px;
}
.rh-l4b ul.rh-includes-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.rh-l4b ul.rh-includes-list > li {
    margin: 0;
    padding: 10px 22px;
    border-radius: 999px;
    background: var(--pxpMainColorLight);
    color: var(--pxpMainColorDark);
    font-size: 18px;
    font-weight: 500;
}
.rh-l4b ul.rh-includes-list > li::before {
    margin-right: 10px;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 15px;
    content: "\f00c";
    content: "\f00c" / "";
}
.rh-l4b .rh-privacy {
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--pxpMainColorLight);
}
/* O WordPress põe .wp-block-group__inner-container dentro do grupo em temas clássicos: o flex vale para os dois casos. */
.rh-l4b .rh-privacy,
.rh-l4b .rh-privacy > .wp-block-group__inner-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.rh-l4b .rh-privacy .rh-icon {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    margin: 0;
    background: #fff;
}
.rh-l4b .rh-privacy .rh-icon::before {
    font-size: 20px;
}
.rh-l4b .rh-privacy p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #1F2937;
    text-align: left;
}
@media screen and (max-width: 767px) {
    .rh-l4b .rh-home-section {
        margin-top: 56px;
    }
    .rh-l4b h2.wp-block-heading {
        font-size: 30px;
        margin-bottom: 28px;
    }
    .rh-l4b .rh-steps.wp-block-columns {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .rh-l4b .rh-how-cta .rh-start-cta {
        display: block;
        text-align: center;
    }
    .rh-l4b .rh-privacy,
    .rh-l4b .rh-privacy > .wp-block-group__inner-container {
        flex-direction: column;
        text-align: center;
    }
    .rh-l4b .rh-privacy p {
        text-align: center;
    }
}

/*
 * #80 (textos finais do jurídico, docs/db-changes/l80-home-legal-blocks.php): o complemento da faixa de privacidade (duas linhas de
 * texto ao lado do ícone) e a seção "Tu currículum, en manos de RH Empresa". Mesmo padrão visual das seções L4b.
 */
.rh-l4b .rh-privacy-text,
.rh-l4b .rh-privacy-text > .wp-block-group__inner-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}
.rh-l4b .rh-privacy a,
.rh-l4b .rh-companies a {
    color: #14266B;
    text-decoration: underline;
}
.rh-l4b .rh-privacy a:focus-visible,
.rh-l4b .rh-companies a:focus-visible {
    outline: 3px solid #14266B;
    outline-offset: 2px;
}
.rh-l4b .rh-companies p {
    max-width: 760px;
    margin: 0 auto 16px;
    font-size: 18px;
    line-height: 1.6;
    color: #1F2937;
}
.rh-l4b .rh-companies p.rh-companies-note {
    font-size: 15px;
    color: #4B5563;
}
@media screen and (max-width: 767px) {
    .rh-l4b .rh-privacy-text,
    .rh-l4b .rh-privacy-text > .wp-block-group__inner-container {
        text-align: center;
    }
    .rh-l4b .rh-companies p {
        font-size: 16px;
    }
}
