/* =========================================================
   SINDJUS-MA — Fale com o Sindjus 2026
   Página institucional integrada ao layout público 2026.
   ========================================================= */

.sj-contact-page,
.sj-contact-page *,
.sj-contact-page *::before,
.sj-contact-page *::after {
    box-sizing: border-box;
}

.sj-contact-page {
    width: min(1240px, calc(100% - 48px));
    max-width: 1240px;
    margin: 0 auto;
    padding: 44px 0 24px;
    color: #20242b;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.sj-contact-hero {
    display: block;
    float: none;
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0 0 34px;
    padding: 0 0 26px;
    border: 0;
    border-bottom: 1px solid #e6eaf0;
    background: transparent !important;
    color: #20242b;
}

.sj-contact-kicker {
    display: block;
    margin: 0 0 10px;
    color: #03268e;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.sj-contact-hero h1 {
    margin: 0;
    padding: 0;
    color: #20242b;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.03em;
    text-transform: none;
}

.sj-contact-hero p {
    max-width: 780px;
    margin: 15px 0 0;
    color: #687384;
    font-size: 17px;
    line-height: 1.62;
}

.sj-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    width: 100%;
}

.sj-contact-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e6eaf0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 31, 62, .055);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.sj-contact-card:hover {
    transform: translateY(-2px);
    border-color: #d7deea;
    box-shadow: 0 12px 30px rgba(15, 31, 62, .09);
}

.sj-contact-card__image {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f7f9fc;
    text-decoration: none;
}

.sj-contact-card__image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    border: 0;
    transition: transform .2s ease;
}

.sj-contact-card:hover .sj-contact-card__image img {
    transform: scale(1.015);
}

.sj-contact-card__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 22px 24px;
}

.sj-contact-card h2 {
    margin: 0 0 15px;
    color: #20242b;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    text-transform: none;
}

.sj-contact-phone-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
}

.sj-contact-phone {
    display: inline-block;
    margin: 0;
    color: #03268e;
    font-size: 22px;
    line-height: 1.25;
    font-weight: 700;
}

.sj-contact-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sj-contact-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    color: #03268e !important;
    background: #f1f5fb;
    text-decoration: none !important;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

.sj-contact-action svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.sj-contact-action:hover,
.sj-contact-action:focus-visible {
    background: #03268e;
    color: #fff !important;
    transform: translateY(-1px);
    outline: none;
}

.sj-contact-action--whatsapp {
    color: #178a4b !important;
}

.sj-contact-action--whatsapp:hover,
.sj-contact-action--whatsapp:focus-visible {
    background: #178a4b;
    color: #fff !important;
}

.sj-contact-email {
    display: inline-flex;
    align-items: flex-start;
    gap: 7px;
    max-width: 100%;
    margin: 0 0 8px;
    color: #536173 !important;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none !important;
    transition: color .16s ease;
}

.sj-contact-email__icon {
    flex: 0 0 auto;
    width: 18px;
    margin-top: 0;
    color: #7b8796;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
    transition: color .16s ease;
}

.sj-contact-email__text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.sj-contact-email:hover,
.sj-contact-email:focus-visible {
    color: #03268e !important;
    text-decoration: none !important;
}

.sj-contact-email:hover .sj-contact-email__text,
.sj-contact-email:focus-visible .sj-contact-email__text {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.sj-contact-email:hover .sj-contact-email__icon,
.sj-contact-email:focus-visible .sj-contact-email__icon {
    color: #03268e;
}

.sj-contact-note {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: baseline;
    margin: 34px 0 0;
    padding: 18px 20px;
    border-left: 3px solid #ff660a;
    background: #f8fafc;
    color: #536173;
    font-size: 14px;
    line-height: 1.55;
}

.sj-contact-note strong {
    color: #20242b;
}

@media (max-width: 900px) {
    .sj-contact-page {
        width: calc(100% - 36px);
        padding-top: 32px;
    }

    .sj-contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .sj-contact-card__image img {
        height: 220px;
    }
}

@media (max-width: 620px) {
    .sj-contact-page {
        width: calc(100% - 32px);
        padding-top: 26px;
    }

    .sj-contact-hero {
        margin-bottom: 26px;
        padding-bottom: 22px;
    }

    .sj-contact-hero h1 {
        font-size: 32px;
    }

    .sj-contact-hero p {
        font-size: 15px;
    }

    .sj-contact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .sj-contact-card__image img {
        height: auto;
        max-height: 300px;
        object-fit: cover;
    }

    .sj-contact-card__body {
        padding: 20px;
    }

    .sj-contact-phone {
        font-size: 21px;
    }
}


/* Isolamento do cabeçalho editorial contra o header legado do tema. */
.sj-contact-page > .sj-contact-hero,
.sj-contact-page > .sj-contact-hero:hover {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
}

.sj-contact-page > .sj-contact-hero h1 {
    color: #20242b !important;
}

.sj-contact-page > .sj-contact-hero p {
    color: #687384 !important;
}


/* Fale com o Sindjus — refinamento dos contatos v1.3 */
.sj-contact-card__body .sj-contact-email + .sj-contact-email {
    margin-top: -2px;
}

@media (max-width: 480px) {
    .sj-contact-phone-row {
        gap: 8px;
    }

    .sj-contact-phone {
        font-size: 20px;
    }

    .sj-contact-action {
        width: 30px;
        height: 30px;
    }
}

/* =========================================================
   Fale com o Sindjus — cards estáticos v1.4
   Somente as ações de telefone, WhatsApp e e-mail reagem.
   ========================================================= */
.sj-contact-card,
.sj-contact-card:hover,
.sj-contact-card:focus-within {
    transform: none !important;
    translate: none !important;
    box-shadow: 0 8px 24px rgba(15, 31, 62, .06) !important;
    border-color: #e1e6ed !important;
}

.sj-contact-card__image,
.sj-contact-card:hover .sj-contact-card__image,
.sj-contact-card__image img,
.sj-contact-card:hover .sj-contact-card__image img {
    transform: none !important;
    scale: 1 !important;
    filter: none !important;
}

.sj-contact-card {
    transition: none !important;
}

