/* ==============================
   NACEF CONTABILIDADE
============================== */

.page-template-page-nacef-contabilidade {
    --header-bg: var(--nc-blue);
}

.page-template-page-nacef-contabilidade .site-footer {
    background: var(--nc-blue);
}

.nc-orange {
    color: var(--nc-orange);
}

.nc-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--nc-orange);
    margin-bottom: 12px;
}

/* ── HERO ── */
.nc-hero {
    display: flex;
    min-height: 580px;
    overflow: hidden;
}

/* lado esquerdo — fundo azul com conteúdo */
.nc-hero__left {
    flex: 0 0 58%;
    background: var(--nc-blue);
    padding: 100px 64px 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* lado direito — imagem menor */
.nc-hero__right {
    flex: 0 0 42%;
    position: relative;
    overflow: hidden;
}

.nc-hero__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nc-hero__right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--nc-blue) 0%, rgba(20, 70, 109, .5) 35%, transparent 65%);
    z-index: 1;
    pointer-events: none;
}

.nc-hero__logo {
    margin-bottom: 32px;
}

.nc-hero__logo img {
    height: 60px;
    width: auto;
}

.nc-hero__title {
    font-size: clamp(1.4rem, 2.3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.25;
    margin-bottom: 20px;
    font-family: var(--font-title);
}

.nc-hero__divider {
    width: 56px;
    height: 3px;
    background: var(--nc-orange);
    margin-bottom: 24px;
}

.nc-hero__desc {
    font-size: .95rem;
    color: rgba(255, 255, 255, .82);
    line-height: 1.7;
    margin-bottom: 32px;
}

.nc-hero__btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.nc-btn-primary {
    background: var(--nc-orange);
    color: var(--white);
    border: 2px solid var(--nc-orange);
}

.nc-btn-primary:hover {
    background: var(--nc-orange-lt);
    border-color: var(--nc-orange-lt);
    color: var(--white);
}

.nc-btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, .75);
}

.nc-btn-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
    color: #fff;
}

/* ── SOBRE ── */
.nc-sobre {
    padding: 96px 0;
}

.nc-sobre__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.nc-sobre__text h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-family: var(--font-title);
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.25;
}

.nc-sobre__text p {
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 16px;
}

.nc-sobre__img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* ── SERVIÇOS ── */
.nc-servicos {
    padding: 80px 0;
    background: var(--gray-lt);
}

.nc-servicos__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.nc-servico-card {
    background: var(--white);
    border-radius: 12px;
    padding: 32px 24px;
    border-top: 3px solid var(--nc-orange);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .08);
    transition: box-shadow .3s;
    transform-style: preserve-3d;
}

/* borda superior e ícone intercalam azul/laranja */
.nc-servico-card:nth-child(odd) {
    border-top-color: var(--nc-blue);
}

.nc-servico-card:nth-child(even) {
    border-top-color: var(--nc-orange);
}

.nc-servico-card:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, .12);
}

.nc-servico-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.nc-servico-card:nth-child(odd) .nc-servico-card__icon {
    background: var(--nc-blue);
}

.nc-servico-card:nth-child(even) .nc-servico-card__icon {
    background: var(--nc-orange);
}

/* cards pares (ícone laranja): título e checkmark também laranja */
.nc-servico-card:nth-child(even) h3 {
    color: var(--nc-orange);
}

.nc-servico-card:nth-child(even) .nc-servico-card__list li::before {
    color: var(--nc-orange);
}

.nc-servico-card__icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.nc-servico-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    font-family: var(--font-title);
}

.nc-servico-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nc-servico-card__list li {
    font-size: .875rem;
    color: var(--gray);
    line-height: 1.6;
    padding: 4px 0 4px 20px;
    position: relative;
}

.nc-servico-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--nc-blue);
    font-weight: 700;
}

/* ── ESPECIALIDADES (CARROSSEL AUTOMÁTICO) ── */
.nc-segmentos {
    padding: 80px 0 48px;
    /* overflow removido — o clip é feito pelo __carousel abaixo */
}

.nc-segmentos__carousel {
    width: 100%;
    overflow: hidden;
    margin-top: 48px;
}

.nc-segmentos__track {
    display: flex;
    gap: 0;
    width: max-content;
}

.nc-segmentos__track .nc-segmento-card {
    margin-right: 18px;
}

.nc-segmento-card {
    flex: 0 0 240px;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .07), 0 8px 24px rgba(0, 0, 0, .1);
    transition: box-shadow .3s;
    background: var(--white);
    position: relative;
}

.nc-segmento-card:hover {
    box-shadow: 0 16px 36px rgba(0, 0, 0, .14);
}

.nc-segmento-card__img {
    height: 160px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.nc-segmento-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s;
    display: block;
}

.nc-segmento-card:hover .nc-segmento-card__img img {
    transform: scale(1.06);
}

/* badge fica fora do overflow:hidden, posicionado pelo card pai */
.nc-segmento-card__badge {
    position: absolute;
    top: 136px;
    left: 8px;
    width: 48px;
    height: 48px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
    border: 2px solid var(--nc-orange);
    z-index: 2;
}

.nc-segmento-card__badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.nc-segmento-card__body {
    padding: 32px 16px 18px;
}

.nc-segmento-card__body h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
    font-family: var(--font-title);
}

.nc-segmento-card__body p {
    font-size: .82rem;
    color: var(--gray);
    line-height: 1.5;
}

/* ── PROCESSO ── */
.nc-processo {
    padding: 80px 0;
    background: var(--navy);
}

.nc-processo .section-header h2 {
    color: var(--white);
}

.nc-processo .section-header .nc-label {
    color: var(--nc-orange);
}

.nc-processo__steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 56px;
}

/* número no canto superior esquerdo, ícone e texto centralizados */
.nc-step {
    flex: 1;
    position: relative;
    text-align: center;
    padding: 0 20px;
}

.nc-step__num {
    position: absolute;
    top: 0;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--nc-orange);
    color: var(--white);
    font-weight: 800;
    font-size: .9rem;
    font-family: var(--font-title);
}

.nc-step__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    /* filtro para laranja #ff9c36 */
    filter: brightness(0) saturate(100%) invert(73%) sepia(48%) saturate(902%) hue-rotate(337deg) brightness(101%) contrast(103%);
}

.nc-step__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nc-step h3 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px;
    font-family: var(--font-title);
    text-align: center;
}

.nc-step p {
    font-size: .82rem;
    color: rgba(255, 255, 255, .65);
    line-height: 1.5;
    text-align: center;
}

.nc-step__arrow {
    flex: 0 0 auto;
    align-self: center;
    font-size: 1.5rem;
    color: var(--nc-orange);
    padding: 0 4px;
}

/* ── DIFERENCIAIS ── */
.nc-diferenciais {
    padding: 80px 0;
    background: var(--gray-lt);
}

.nc-diferenciais__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.nc-dif-card {
    background: var(--white);
    border-radius: 12px;
    padding: 24px 16px;
    transform-style: preserve-3d;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .09);
    transition: box-shadow .3s;
}

.nc-dif-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14), 0 2px 8px rgba(0, 0, 0, .06);
}

.nc-dif-card__icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
}

.nc-dif-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform-origin: center;
}

.nc-dif-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
    font-family: var(--font-title);
}

.nc-dif-card p {
    font-size: .875rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ── CTA ── */
.nc-cta {
    display: flex;
    min-height: 420px;
    overflow: hidden;
}

/* lado esquerdo — conteúdo sobre fundo azul */
.nc-cta__left {
    flex: 0 0 50%;
    background: var(--navy);
    padding: 72px 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nc-cta__left h2 {
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    font-family: var(--font-title);
    line-height: 1.25;
}

.nc-cta__left p {
    color: rgba(255, 255, 255, .80);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 36px;
}

.nc-cta__btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* lado direito — imagem com degradê da esquerda para direita */
.nc-cta__right {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.nc-cta__right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nc-cta__right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--navy) 0%, rgba(20, 70, 109, .45) 45%, transparent 75%);
    z-index: 1;
    pointer-events: none;
}

/* ── RESPONSIVO NC ── */
@media (max-width: 1200px) {
    .nc-diferenciais__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .nc-servicos__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nc-diferenciais__grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {
    .nc-sobre__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .nc-sobre__img {
        order: -1;
    }

    .nc-servicos__grid {
        grid-template-columns: 1fr;
    }

    .nc-segmento-card {
        flex: 0 0 230px;
    }

    /* hero empilha em mobile */
    .nc-hero {
        flex-direction: column;
        min-height: auto;
    }

    .nc-hero__left {
        flex: none;
        padding: 80px 32px 56px;
    }

    .nc-hero__right {
        flex: none;
        min-height: 320px;
    }

    .nc-hero__btns {
        flex-direction: column;
    }

    .nc-processo__steps {
        flex-direction: column;
        align-items: center;
    }

    .nc-step__arrow {
        transform: rotate(90deg);
        padding: 0;
    }

    /* CTA — só conteúdo no mobile, sem imagem */
    .nc-cta {
        flex-direction: column;
        min-height: unset;
    }

    .nc-cta__left {
        flex: none;
        width: 100%;
        padding: 56px 32px;
    }

    .nc-cta__right {
        display: none;
    }

    .nc-cta__btns {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .nc-diferenciais__grid {
        grid-template-columns: 1fr;
    }

    .nc-segmento-card {
        flex: 0 0 200px;
    }
}

@media (min-width: 1200px) {
    .nc-cta {
        min-height: 300px;
        max-height: 300px;
        overflow: hidden;
    }

    .nc-cta__left {
        flex: 0 0 44%;
        padding: 48px 56px;
    }

    .nc-cta__left h2 {
        font-size: 1.7rem;
        margin-bottom: 12px;
    }

    .nc-cta__left p {
        font-size: 0.95rem;
        margin-bottom: 28px;
    }
}
