/* ============================================================
   JCAutomatismos Theme — Full Stylesheet
   ============================================================ */

/* ---- CSS Variables (overridden by dynamic inline style) ---- */
:root {
    --jc-primary:       #3d8c40;
    --jc-primary-dark:  #2d6e30;
    --jc-dark:          #1a1a1a;
    --jc-light:         #f8f9fa;
    --jc-text:          #333333;
    --jc-muted:         #6c757d;
    --jc-border:        #e0e0e0;
    --jc-heading-font:  "Inter", sans-serif;
    --jc-body-font:     "Inter", sans-serif;
    --jc-radius:        50px;
    --jc-radius-lg:     50px;
    --jc-shadow:        0 4px 24px rgba(0,0,0,.08);
    --jc-shadow-hover:  0 8px 40px rgba(0,0,0,.14);
    --jc-transition:    all .25s ease;
    --jc-header-h:      86px;
}

/* ---- Base Reset & Typography ---- */
*,*::before,*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--jc-body-font);
    color: var(--jc-text);
    background-color: #fff;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Corta elementos que transbordam lateralmente (animações Elementor fadeInLeft/Right)
   sem criar scroll interno nem partir position:sticky */
.jc-main { overflow-x: clip; padding-top: var(--jc-header-h); }

/* Slider: secção arranca atrás do navbar, texto empurrado abaixo do header */
.dl-slider { margin-top: calc(-1 * var(--jc-header-h)); }
.slider-content-wrap { padding-top: var(--jc-header-h); }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--jc-heading-font);
    font-weight: 700;
    line-height: 1.25;
    color: var(--jc-dark);
}

a {
    color: var(--jc-primary);
    text-decoration: none;
    transition: var(--jc-transition);
}
a:hover { color: var(--jc-primary-dark); }

img { max-width: 100%; height: auto; display: block; }

/* Imagens inline em contextos de texto (menus, badges, flags WPML) */
.nav-link img,
.navbar-nav img,
.dropdown-item img { display: inline-block; vertical-align: middle; }

.wpml-ls-flag {
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: -0.1em;
    margin-right: 6px;
}

/* ---- Ícones SVG jc_icon() ---- */
.jc-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    color: currentColor;
}

/* ---- Bootstrap col-xl-20 (5-col grid) ---- */
.col-xl-20 {
    flex: 0 0 auto;
}
@media (min-width: 1200px) {
    .col-xl-20 { width: 20%; }
}

/* ---- Utility ---- */
.jc-section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--jc-primary);
    margin-bottom: .6rem;
}

.jc-section-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--jc-dark);
    margin-bottom: 1rem;
}

.jc-section-desc {
    font-size: 1.0625rem;
    color: var(--jc-muted);
    max-width: 640px;
    margin: 0 auto;
}

.jc-section-header { margin-bottom: 3rem; }

/* ---- Buttons ---- */
.jc-btn {
    padding: .7rem 1.75rem;
    font-weight: 600;
    font-size: .9375rem;
    letter-spacing: .03em;
    border-radius: var(--jc-radius);
    transition: var(--jc-transition);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.jc-btn--primary {
    background-color: var(--jc-primary);
    border: 2px solid var(--jc-primary);
    color: #fff;
}
.jc-btn--primary:hover {
    background-color: var(--jc-primary-dark);
    border-color: var(--jc-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61,140,64,.35);
}

.jc-btn--outline-primary {
    background-color: transparent;
    border: 2px solid var(--jc-primary);
    color: var(--jc-primary);
}
.jc-btn--outline-primary:hover {
    background-color: var(--jc-primary);
    color: #fff;
    transform: translateY(-1px);
}

.jc-btn--outline-white {
    background-color: transparent;
    border: 2px solid rgba(255,255,255,.8);
    color: #fff;
}
.jc-btn--outline-white:hover {
    background-color: rgba(255,255,255,.12);
    border-color: #fff;
    color: #fff;
    transform: translateY(-1px);
}

.jc-btn--whatsapp {
    background-color: #25d366;
    border: 2px solid #25d366;
    color: #fff;
}
.jc-btn--whatsapp:hover {
    background-color: #1da851;
    border-color: #1da851;
    color: #fff;
    transform: translateY(-1px);
}

/* ============================================================
   NAVBAR / HEADER
   ============================================================ */
.jc-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background: rgba(255,255,255,.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow .3s ease, background .3s ease;
}

/* Admin bar — desktop (32px) */
.admin-bar .jc-header {
    top: 32px;
}

/* Admin bar — mobile: a barra do WP não é fixed em mobile, logo o header cola ao topo */
@media screen and (max-width: 782px) {
    .admin-bar .jc-header {
        top: 0;
    }
}

.jc-header.scrolled {
    box-shadow: 0 2px 24px rgba(0,0,0,.12);
}

#jc-navbar {
    padding: .75rem 0;
}

.jc-logo { display: flex; align-items: center; }
.jc-logo__img { height: 52px; width: auto; }
.jc-logo__text {
    font-family: var(--jc-heading-font);
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--jc-dark);
    letter-spacing: -.01em;
}
.jc-logo__text span { color: var(--jc-primary); }

.jc-nav .nav-link {
    font-size: .9rem;
    font-weight: 600;
    color: var(--jc-dark);
    padding: .5rem .9rem;
    position: relative;
    transition: color .2s ease;
}

.jc-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .9rem;
    right: .9rem;
    height: 2px;
    background: var(--jc-primary);
    transform: scaleX(0);
    transition: transform .25s ease;
    border-radius: 1px;
}

.jc-nav .nav-link:hover,
.jc-nav .nav-link:focus,
.jc-nav .nav-link.active,
.jc-nav .current-menu-item > .nav-link {
    color: var(--jc-primary);
}

.jc-nav .nav-link:hover::after,
.jc-nav .current-menu-item > .nav-link::after {
    transform: scaleX(1);
}

.jc-navbar-toggler {
    border: 1.5px solid rgba(61,140,64,.28);
    border-radius: 10px;
    padding: .45rem .6rem;
    background: transparent;
    line-height: 1;
    transition: background .2s, border-color .2s;
}
.jc-navbar-toggler:focus {
    outline: none;
    box-shadow: none;
    border-color: var(--jc-primary);
}
.jc-navbar-toggler:hover,
.jc-navbar-toggler[aria-expanded="true"] {
    background: rgba(61,140,64,.08);
    border-color: var(--jc-primary);
}
.jc-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath stroke='%233d8c40' stroke-linecap='round' stroke-width='2' d='M3 6h18M3 12h18M3 18h18'/%3e%3c/svg%3e");
    width: 1.375rem;
    height: 1.375rem;
}

.jc-header__phone {
    font-size: .875rem;
    font-weight: 600;
    color: var(--jc-dark);
    text-decoration: none;
    gap: .4rem;
}
.jc-header__phone i { color: var(--jc-primary); }
.jc-header__phone:hover { color: var(--jc-primary); }

/* Desktop nav */
@media (min-width: 992px) {
    #jcNavDesktop { align-items: center; }
    .jc-nav {
        flex: 1 1 auto;
        justify-content: center;
        margin: 0 !important;
    }
    .jc-header__actions { flex: 0 0 auto; }
    /* Hover abre submenu com animação */
    .jc-nav .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: jcDropIn .18s ease forwards;
    }
    /* Oculta o botão chevron no desktop */
    .jc-nav__toggle { display: none; }
}

@keyframes jcDropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes jcMobileDropIn {
    from { opacity: 0; transform: translateY(-18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes jcMobileDropOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-18px); }
}

/* ============================================================
   OFFCANVAS MENU
   ============================================================ */
.jc-offcanvas {
    --bs-offcanvas-width: min(360px, 100vw);
    --bs-offcanvas-bg: var(--jc-dark);
    --bs-offcanvas-color: rgba(255,255,255,.9);
    --bs-offcanvas-zindex: 9999;
    z-index: 9999 !important;
}
.offcanvas-backdrop {
    z-index: 9998 !important;
}

/* Botão chevron (base — mobile) */
.jc-nav__toggle {
    background: none;
    border: none;
    padding: .3rem .6rem;
    color: rgba(255,255,255,.65);
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.jc-nav__toggle i { display: inline-block; transition: transform .2s ease; }
.jc-nav__toggle:hover { color: #fff; }

/* Mobile (<992px): painel deslizante escuro */
@media (max-width: 991.98px) {
    .jc-offcanvas__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,.1);
        flex-shrink: 0;
    }
    .jc-offcanvas__close {
        background: none;
        border: none;
        color: rgba(255,255,255,.75);
        font-size: 1.2rem;
        line-height: 1;
        padding: .4rem .5rem;
        cursor: pointer;
        transition: color .2s;
    }
    .jc-offcanvas__close:hover { color: #fff; }
    .jc-offcanvas__body {
        display: flex;
        flex-direction: column;
        padding: .75rem 1.25rem 1.25rem;
        overflow-y: auto;
    }
    /* Nav links: brancos sobre fundo escuro */
    .jc-offcanvas .navbar-nav { width: 100%; margin: 0; }
    .jc-offcanvas .nav-link {
        color: rgba(255,255,255,.85);
        padding: .75rem 0;
        border-bottom: 1px solid rgba(255,255,255,.07);
    }
    .jc-offcanvas .nav-link::after { display: none; }
    .jc-offcanvas .nav-link:hover,
    .jc-offcanvas .nav-link.active { color: var(--jc-primary); }
    /* Itens com submenu */
    .jc-nav .nav-item.dropdown {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
    }
    .jc-nav .nav-item.dropdown > .nav-link { flex: 1; }
    .jc-nav .nav-item.dropdown > .dropdown-menu {
        flex-basis: 100%;
        width: 100%;
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255,255,255,.06);
        padding: .25rem 0 .25rem 1rem;
    }
    .jc-nav .nav-item.is-open > .jc-nav__toggle i { transform: rotate(180deg); }
    .jc-nav .nav-item.is-open > .dropdown-menu {
        display: block;
        animation: jcMobileDropIn .3s ease forwards;
    }
    .jc-nav .nav-item.is-closing > .dropdown-menu {
        display: block;
        animation: jcMobileDropOut .22s ease forwards;
    }
    /* Dropdown items */
    .jc-offcanvas .dropdown-item { color: rgba(255,255,255,.75); padding: .4rem .5rem; }
    .jc-offcanvas .dropdown-item:hover,
    .jc-offcanvas .dropdown-item:focus { color: #fff; background: rgba(255,255,255,.1); }
    /* Ações (telefone + CTA) no fundo do painel */
    .jc-offcanvas__actions {
        border-top: 1px solid rgba(255,255,255,.1);
        padding-top: 1.25rem;
        margin-top: auto;
        display: flex;
        flex-direction: column;
        gap: .75rem;
    }
    .jc-offcanvas .jc-header__phone { color: rgba(255,255,255,.85); }
    .jc-offcanvas .jc-header__phone:hover { color: #fff; }
    .jc-offcanvas .jc-header__cta { justify-content: center; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.jc-hero {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    margin-top: calc(-1 * var(--jc-header-h)); /* cancela o padding-top do .jc-main */
    padding-top: var(--jc-header-h); /* mantém o conteúdo abaixo do navbar */
    background-color: #2a3a2b;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.jc-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26,26,26,.72) 0%, rgba(26,26,26,.4) 100%);
    pointer-events: none;
    opacity: 55%;
}

.jc-hero__content {
    position: relative;
    z-index: 1;
    padding: 5rem 0;
}

.jc-hero__label {
    display: inline-block;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1rem;
}

.jc-hero__heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 12px rgba(0,0,0,.3);
}

.jc-hero__sub {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255,255,255,.9);
    margin-bottom: 2rem;
    text-shadow: 0 1px 6px rgba(0,0,0,.2);
}

.jc-hero__buttons { gap: 1rem; }

/* ============================================================
   STATS BAR
   ============================================================ */
.jc-stats-bar {
    background: #eef6f6;
    padding: 1.25rem 0;
}

.jc-stats-bar__row {
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    flex-wrap: wrap;
}

.jc-stats-bar__item {
    display: flex;
    align-items: center;
    gap: .875rem;
    padding: .875rem 2rem;
    flex: 1 1 0;
    min-width: 180px;
}

.jc-stats-bar__item + .jc-stats-bar__item {
    border-left: 1px solid #D0D0D0;
}

.jc-stats-bar__icon {
    color: var(--jc-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.jc-stats-bar__text {
    display: flex;
    flex-direction: column;
}
.jc-stats-bar__text strong {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--jc-dark);
    line-height: 1.3;
}
.jc-stats-bar__text span {
    font-size: .8125rem;
    color: var(--jc-muted);
}

@media (max-width: 767.98px) {
    .jc-stats-bar__row { justify-content: flex-start; }
    .jc-stats-bar__item { flex: 1 1 calc(50% - 1px); min-width: 160px; padding: .75rem 1.25rem; }
    .jc-stats-bar__item:nth-child(odd) { border-left: none; }
    .jc-stats-bar__item:nth-child(3) { border-top: 1px solid #D0D0D0; }
    .jc-stats-bar__item:nth-child(4) { border-top: 1px solid #D0D0D0; }
}

@media (max-width: 399.98px) {
    .jc-stats-bar__item { flex: 1 1 100%; border-left: none !important; border-top: 1px solid #D0D0D0; }
    .jc-stats-bar__item:first-child { border-top: none; }
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.jc-services {
    padding: 5rem 0;
}

/* Header: alinhado à esquerda, linha decorativa à direita */
.jc-services__header {
    position: relative;
    margin-bottom: 2.5rem;
}

.jc-services__header-text { max-width: 520px; }

.jc-services__header .jc-section-label::before,
.jc-process__header .jc-section-label::before,
.jc-why-us__inner .jc-section-label::before,
.jc-projects-preview .jc-section-label::before,
.jc-brands__label .jc-section-label::before {
    content: '';
    display: inline-block;
    vertical-align: middle;
    width: 48px;
    height: 2px;
    background: var(--jc-primary);
    border-radius: 1px;
    margin-right: .75rem;
}
.jc-services__desc {
    font-size: .9375rem;
    color: var(--jc-muted);
    margin-bottom: 0;
    max-width: 480px;
}

/* Grid com colunas dinâmicas */
.jc-services__grid {
    display: grid;
    gap: 1.25rem;
}
.jc-services__grid--cols-1 { grid-template-columns: 1fr; }
.jc-services__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.jc-services__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.jc-services__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.jc-services__grid--cols-5 { grid-template-columns: repeat(5, 1fr); }

/* Card */
.jc-service-card {
    background-color: #EDF6F4;
    border: 1px solid #D0D0D0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .25s ease, transform .25s ease;
}
.jc-service-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,.1);
    transform: translateY(-3px);
}

.jc-service-card__img {
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}
.jc-service-card__img img {
    width: 100%;
    height: 180px !important;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .4s ease;
}
.jc-service-card:hover .jc-service-card__img img { transform: scale(1.05); }

.jc-service-card__body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.jc-service-card__icon {
    color: var(--jc-primary);
    margin-bottom: .75rem;
    display: flex;
    align-items: center;
}

.jc-service-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--jc-dark);
    margin-bottom: .5rem;
    line-height: 1.3;
}

.jc-service-card__desc {
    font-size: .85rem;
    color: var(--jc-muted);
    flex: 1;
    margin-bottom: 1rem;
    line-height: 1.55;
}

.jc-service-card__link {
    color: var(--jc-primary);
    font-weight: 600;
    font-size: .8125rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    text-decoration: none;
    margin-top: auto;
    transition: gap .2s ease, color .2s ease;
}
.jc-service-card__link:hover { color: var(--jc-primary-dark); gap: .6rem; }
.jc-service-card__link .jc-icon { flex-shrink: 0; }

/* Responsive: colunas máximas por breakpoint */
@media (max-width: 1199.98px) {
    .jc-services__grid--cols-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991.98px) {
    .jc-services__grid--cols-5,
    .jc-services__grid--cols-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767.98px) {
    .jc-services__grid--cols-5,
    .jc-services__grid--cols-4,
    .jc-services__grid--cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 399.98px) {
    .jc-services__grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   WHY US
   ============================================================ */
.jc-why-us {
    background: var(--jc-light);
    overflow: hidden;
}

.jc-why-us__image-col {
    min-height: 480px;
    overflow: hidden;
}

.jc-why-us__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jc-why-us__image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 480px;
    background: linear-gradient(135deg, #2d6e30, #3d8c40);
}

.jc-why-us__content {
    display: flex;
    align-items: center;
}

.jc-why-us__inner {
    padding: 4rem 3rem 4rem 4rem;
    max-width: 560px;
}

.jc-why-us__heading {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800;
    color: var(--jc-dark);
    margin-bottom: 1rem;
}

.jc-why-us__text {
    color: var(--jc-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.jc-why-us__bullet {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .4rem 0;
    font-size: .9rem;
    color: var(--jc-dark);
    font-weight: 500;
}
.jc-why-us__bullet i {
    color: var(--jc-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

@media (max-width: 991.98px) {
    .jc-why-us__inner { padding: 3rem 1.5rem; max-width: 100%; }
    .jc-why-us__image-col { min-height: auto; }
}

/* ============================================================
   AUTOMATION BANNER  (banner compacto horizontal)
   ============================================================ */
.jc-auto-banner {
    background-color: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.jc-auto-banner__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,10,10,.78);
    pointer-events: none;
    z-index: 2;
}

/* Row principal — flexbox horizontal */
.jc-auto-banner__inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    z-index: 2; /* acima da imagem (z-index: 1) */
    min-height: 220px;
}

/* ── Esquerda ── */
.jc-auto-banner__left {
    flex: 0 0 340px;
    max-width: 340px;
    padding: 2.25rem 2rem 2.25rem 0;
    border-right: 1px solid rgba(255,255,255,.12);
}

.jc-auto-banner__label {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--jc-primary);
    margin-bottom: .6rem;
}

.jc-auto-banner__heading {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin-bottom: .6rem;
}

.jc-auto-banner__heading br { display: block; }

.jc-auto-banner__sub {
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    line-height: 1.55;
    margin-bottom: 1.1rem;
}

.jc-auto-banner__btn {
    font-size: .8125rem;
    padding: .5rem 1.25rem;
}

/* ── Features (3 colunas) ── */
.jc-auto-banner__features {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
}

.jc-auto-banner__feat {
    flex: 1;
    padding: 2rem 1.75rem;
    text-align: center;
}

.jc-auto-banner__feat--divider {
    border-left: 1px solid rgba(255,255,255,.12);
}

.jc-auto-banner__feat-icon {
    font-size: 2rem;
    color: #fff;
    margin-bottom: .6rem;
    line-height: 1;
}

.jc-auto-banner__feat-title {
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: .4rem;
}

.jc-auto-banner__feat-desc {
    font-size: .8rem;
    color: rgba(255,255,255,.58);
    margin-bottom: 0;
    line-height: 1.5;
}

/* ── Imagem produto — cola à ponta direita, largura automática pela altura ── */
.jc-auto-banner__product {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    display: flex;          /* flex container: dá altura resolvida ao img */
    align-items: stretch;   /* img estica até à altura total do div */
    pointer-events: none;
    z-index: 1;
}

/* Gradiente: cor do banner → transparente, da esq para dir.
   --jc-auto-bg é sobrescrita pelo selector do Elementor quando bg_color muda. */
.jc-auto-banner { --jc-auto-bg: #1a1a1a; }
.jc-auto-banner__product::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--jc-auto-bg) 0%, transparent 55%);
    z-index: 2;
    pointer-events: none;
}

.jc-auto-banner__product img {
    display: block;
    height: 100%;
    width: auto;
    flex-shrink: 0;
    max-height: 100%; /* garante que não ultrapassa o div */
}

/* ── Responsive ── */
@media (max-width: 1199.98px) {
    .jc-auto-banner__left { flex: 0 0 260px; max-width: 260px; }
}

@media (max-width: 991.98px) {
    .jc-auto-banner__inner {
        flex-wrap: wrap;
        min-height: auto;
        padding-right: 0;
    }
    .jc-auto-banner__left {
        flex: 0 0 100%;
        max-width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.12);
        padding: 2rem 0 1.5rem;
    }
    .jc-auto-banner__features { width: 100%; }
    /* Manter imagem visível no tablet como fundo decorativo */
    .jc-auto-banner__product {
        width: 60%;
    }
    .jc-auto-banner__product::before {
        background: linear-gradient(to right, var(--jc-dark, #1a1a1a) 15%, transparent 70%);
    }
}

@media (max-width: 575.98px) {
    /* Features ficam lado a lado mesmo em mobile pequeno */
    .jc-auto-banner__feat { padding: 1.25rem .65rem; }
    .jc-auto-banner__feat-icon { font-size: 1.5rem; margin-bottom: .4rem; }
    .jc-auto-banner__feat-title { font-size: .62rem; letter-spacing: .08em; }
    .jc-auto-banner__feat-desc { font-size: .73rem; }
    /* Esconder imagem em ecrãs muito pequenos para clareza */
    .jc-auto-banner__product { display: none; }
}

/* ============================================================
   RECENT PROJECTS
   ============================================================ */
.jc-projects-preview {
    padding: 5rem 0;
    background: #fff;
}

.jc-projects-preview__all-link {
    font-size: .875rem;
    font-weight: 700;
    color: var(--jc-primary);
    letter-spacing: .02em;
    text-decoration: none;
    transition: gap .2s ease, color .2s ease;
    gap: .5rem;
}
.jc-projects-preview__all-link:hover { color: var(--jc-primary-dark); gap: .8rem; }

/* Masonry grid — 3 columns × 2 rows */
.jc-masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.jc-masonry-item {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--jc-radius);
    background: var(--jc-light);
}

.jc-masonry-item:nth-child(1) { aspect-ratio: 4/3; }
.jc-masonry-item:nth-child(4) { aspect-ratio: 4/3; }

.jc-masonry-item__link {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.jc-masonry-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.jc-masonry-item:hover .jc-masonry-item__img {
    transform: scale(1.07);
}

.jc-masonry-item__img--placeholder {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    display: block;
}

.jc-masonry-item__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,26,26,.75) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity .3s ease;
}
.jc-masonry-item:hover .jc-masonry-item__overlay { opacity: 1; }

.jc-masonry-item__title {
    color: #fff;
    font-weight: 700;
    font-size: .9375rem;
    font-family: var(--jc-heading-font);
}

@media (max-width: 767.98px) {
    .jc-masonry-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479.98px) {
    .jc-masonry-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   BRANDS SECTION
   ============================================================ */
.jc-brands {
    padding: 1.5rem 0;
    background: var(--jc-light);
}

.jc-brands__label {
    margin-bottom: .6rem;
}
.jc-brands__label span {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--jc-primary);
}

/* Desktop: itens dividem a largura toda em partes iguais */
.jc-brands__row {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.jc-brands__item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .6rem .75rem;
    min-width: 0;
    text-decoration: none;
    position: relative;
    transition: opacity .25s, transform .25s;
}
/* Separador vertical */
.jc-brands__item + .jc-brands__item::before {
    content: '';
    position: absolute;
    left: 0; top: 15%; height: 70%; width: 1px;
    background: rgba(0,0,0,.13);
}
a.jc-brands__item:hover { opacity: .65; transform: scale(1.04); }

/* Clone só existe para o marquee mobile — escondido no desktop */
.jc-brands__clone { display: none; }

.jc-brands__text {
    font-size: 1.1875rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--jc-dark);
    font-family: var(--jc-heading-font);
    white-space: nowrap;
}

.jc-brands__img {
    height: 36px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* Grayscale nas imagens */
.jc-brands--grayscale .jc-brands__img {
    filter: grayscale(100%);
    opacity: .55;
    transition: filter .3s, opacity .3s;
}
.jc-brands--grayscale .jc-brands__item:hover .jc-brands__img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Mobile: marquee contínuo */
@media (max-width: 767.98px) {
    .jc-brands { overflow: hidden; }

    .jc-brands__row {
        width: max-content;
        flex-wrap: nowrap;
        animation: jc-brands-marquee 24s linear infinite;
    }
    .jc-brands__row:hover { animation-play-state: paused; }

    .jc-brands__item {
        flex: none;
        padding: .5rem 1.5rem;
    }
    .jc-brands__clone { display: flex; }
    .jc-brands__text { font-size: 1.0625rem; }
}

@keyframes jc-brands-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.jc-process {
    padding: 5rem 0;
    background: #fff;
}

.jc-process__header {
    margin-bottom: 2.5rem;
}

/* Row dos 4 passos — flexbox com divisores */
.jc-process__row {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

/* Cada passo: ícone à esquerda + texto à direita */
.jc-process__step {
    flex: 1;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: .5rem 2rem .5rem 0;
}

/* Divisor vertical entre passos */
.jc-process__step--divider {
    border-right: 1px solid var(--jc-border, #e0e0e0);
    margin-right: 2rem;
}

/* Círculo outline com ícone */
.jc-process__icon {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 2px solid var(--jc-primary);
    color: var(--jc-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Número pequeno acima do título */
.jc-process__number {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--jc-primary);
    margin-bottom: .3rem;
    opacity: .8;
}

.jc-process__title {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--jc-dark);
    margin: 0 0 .4rem;
    line-height: 1.3;
}

.jc-process__desc {
    font-size: .8125rem;
    color: var(--jc-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .jc-process__row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .jc-process__step {
        flex: 0 0 calc(50% - .75rem);
        border-right: none;
        margin-right: 0;
        padding-right: 0;
    }
    .jc-process__step--divider { border-right: none; margin-right: 0; }
}

@media (max-width: 575.98px) {
    .jc-process__step { flex: 0 0 100%; }
}

/* ============================================================
   CONTACT BAR
   ============================================================ */
.jc-contact-bar {
    padding-block: 1.25rem;
    background: #edf6f4;
}
.jc-contact-bar--border-top {
    border-top: 1px solid rgba(0,0,0,.08);
}
.jc-contact-bar {
    --jc-cb-sep: rgba(0,0,0,.12);
}
.jc-contact-bar__inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
}
.jc-contact-bar__sep {
    width: 1px;
    align-self: stretch;
    min-height: 2rem;
    background: var(--jc-cb-sep);
    flex-shrink: 0;
}
.jc-contact-bar__intro {
    display: flex;
    flex-direction: column;
    min-width: 140px;
}
.jc-contact-bar__title {
    font-family: var(--jc-heading-font);
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--jc-primary);
    line-height: 1.2;
}
.jc-contact-bar__subtitle {
    font-size: .8rem;
    color: #888;
    margin-top: .2rem;
}
.jc-contact-bar__item {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
    color: inherit;
    transition: color .2s;
}
a.jc-contact-bar__item:hover { color: var(--jc-primary-dark); }
a.jc-contact-bar__item:hover .jc-contact-bar__text strong { color: var(--jc-primary-dark); }
.jc-contact-bar__icon {
    font-size: 1.25rem;
    color: var(--jc-primary);
    flex-shrink: 0;
    line-height: 1;
}
.jc-contact-bar__text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.jc-contact-bar__text strong {
    font-size: .9rem;
    font-weight: 600;
    color: var(--jc-primary);
}
.jc-contact-bar__label {
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #888;
}
.jc-contact-bar__item--social { flex-direction: column; align-items: flex-start; gap: .3rem; }
.jc-contact-bar__social-icons { display: flex; gap: .6rem; }
.jc-contact-bar__social-icons a {
    font-size: 1.25rem;
    color: var(--jc-primary);
    transition: color .2s;
    text-decoration: none;
}
.jc-contact-bar__social-icons a:hover { color: var(--jc-primary-dark); }

@media (max-width: 767.98px) {
    .jc-contact-bar__inner { gap: 1rem 1.5rem; }
    .jc-contact-bar__title { font-size: .9375rem; }
}
@media (max-width: 575.98px) {
    .jc-contact-bar__inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.jc-cta-banner {
    position: relative;
    background-color: var(--jc-dark);
    min-height: 180px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Full-height image on the right, same technique as jc-auto-banner__product */
.jc-cta-banner__img {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    overflow: hidden;
    z-index: 0;
}

/* Ponta a ponta: imagem cobre o banner todo */
.jc-cta-banner__img--full {
    left: 0;
    width: 100%;
}

/* Lado direito: como automation banner */
.jc-cta-banner__img--right {
    width: 50%;
}

.jc-cta-banner__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Gradiente: escurece a esquerda para o conteúdo ficar legível */
.jc-cta-banner__img--full::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--jc-dark, #1a1a1a) 0%, rgba(26,26,26,.6) 40%, transparent 75%);
    z-index: 1;
}

.jc-cta-banner__img--right::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--jc-dark, #1a1a1a) 0%, transparent 65%);
    z-index: 1;
}

/* Overlay oculto por defeito — controlável via slider Elementor */
.jc-cta-banner__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0);
    pointer-events: none;
    z-index: 1;
}

/* Inner container: text left, buttons right */
.jc-cta-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem 2.5rem;
    padding: 2.25rem 0;
    position: relative;
    z-index: 2;
    width: 100%;
}

.jc-cta-banner__text { flex: 1 1 320px; }

.jc-cta-banner__heading {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: .3rem;
    line-height: 1.25;
}

.jc-cta-banner__sub {
    font-size: .9375rem;
    color: rgba(255,255,255,.75);
    margin-bottom: 0;
}

/* Button row */
.jc-cta-banner__buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .625rem;
    flex: 0 0 auto;
}

/* Outline white buttons (phone + whatsapp) */
.jc-cta-banner__btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.55);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.jc-cta-banner__btn-outline:hover {
    background: rgba(255,255,255,.1);
    border-color: #fff;
    color: #fff;
}

/* ============================================================
   JC GALLERY GRID  (widget jc-gallery-grid)
   ============================================================ */

.jcg-item {
    overflow: hidden;
    position: relative;
    /* border-radius definido via <style> scoped */
}

.jcg-item__link {
    display: block;
    overflow: hidden;
    position: relative;
    width: 100%;
    text-decoration: none;
    /* aspect-ratio definido via <style> scoped no modo grid */
}

/* Grid uniforme: imagem preenche o espaço do aspect-ratio */
.jcg-grid--uniform .jcg-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}

/* Masonry: imagem à altura natural */
.jcg-grid--masonry .jcg-item__img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease;
}

.jcg-item:hover .jcg-item__img {
    transform: scale(1.07);
}

/* Overlay — fundo e cor definidos via <style> scoped, opacity aqui */
.jcg-item__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: .9rem 1.1rem;
    opacity: 0;
    transition: opacity .3s ease;
}

.jcg-item:hover .jcg-item__overlay {
    opacity: 1;
}

.jcg-item__title {
    font-weight: 700;
    font-size: .9375rem;
    font-family: var(--jc-heading-font);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================
   FOOTER
   ============================================================ */
.jc-footer {
    background: var(--jc-footer-bg, #111111);
    color: rgba(255,255,255,.75);
    padding: 0;
}

.jc-footer__top {
    padding: 5rem 0 4rem;
}

.jc-footer__col { max-width: var(--jc-footer-col-max-width, 280px); }
.jc-footer__logo-img { height: 56px; width: auto; }
.jc-footer__logo-text {
    font-family: var(--jc-heading-font);
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
}

.jc-footer__desc {
    font-size: .9375rem;
    color: rgba(255,255,255,.65);
    max-width: 300px;
    line-height: 1.65;
}

.jc-footer__hours { font-size: .875rem; }
.jc-footer__hours-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .2rem 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.jc-footer__hours-row span:first-child { color: rgba(255,255,255,.5); }
.jc-footer__hours-row span:last-child { color: #fff; font-weight: 600; }

.jc-footer__heading {
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-bottom: .75rem;
    border-bottom: 2px solid var(--jc-primary);
    display: inline-block;
}

.jc-footer__menu { margin: 0; padding: 0; list-style: none; }
.jc-footer__menu ul { margin: 0; padding: 0 0 0 1rem; list-style: none; }
.jc-footer__menu li { margin-bottom: .6rem; }
.jc-footer__menu a {
    color: rgba(255,255,255,.65);
    font-size: .9rem;
    text-decoration: none;
    transition: color .2s ease, padding-left .2s ease;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}
.jc-footer__menu a::before {
    content: '›';
    color: var(--jc-primary);
    font-weight: 700;
    font-size: 1.1em;
}
.jc-footer__menu a:hover { color: #fff; padding-left: 4px; }

.jc-footer__contacts { margin: 0; padding: 0; }
.jc-footer__contacts li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .2rem 0;
    font-size: .9rem;
    color: rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.jc-footer__contacts li:last-child { border-bottom: none; }
.jc-footer__contacts i {
    color: var(--jc-primary);
    font-size: 1rem;
    flex-shrink: 0;
    margin-top: .15rem;
}
.jc-footer__contacts a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
}
.jc-footer__contacts a:hover { color: #fff; }

.jc-footer__map { border-radius: var(--jc-radius); overflow: hidden; }

.jc-footer__map-ph {
    height: 180px;
    background: rgba(255,255,255,.05);
    border-radius: var(--jc-radius);
    gap: .75rem;
    color: rgba(255,255,255,.4);
    font-size: 1.5rem;
    border: 1px dashed rgba(255,255,255,.12);
}
.jc-footer__map-ph span { font-size: .875rem; letter-spacing: .05em; }

.jc-footer__socials a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.65);
    font-size: 1.1rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
    text-decoration: none;
}
.jc-footer__socials a:hover {
    background: var(--jc-primary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── widget-comp-contact no footer ── */
.jc-footer .widget-comp-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}
.jc-footer .widget-comp-contact li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .55rem 0;
    font-size: .875rem;
    color: rgba(255,255,255,.65);
    border-bottom: 1px solid rgba(255,255,255,.06);
    line-height: 1.5;
}
.jc-footer .widget-comp-contact li:last-child { border-bottom: none; }
.jc-footer .widget-comp-contact svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: .2rem;
    color: var(--jc-primary);
    fill: currentColor;
}
.jc-footer .widget-comp-contact span { flex: 1; }
.jc-footer .widget-comp-contact b {
    color: #fff;
    font-weight: 600;
}
.jc-footer .widget-comp-contact.light a {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    transition: color .2s;
}
.jc-footer .widget-comp-contact.light a:hover { color: #fff; }

/* Footer bottom bar */
.jc-footer__bottom {
    background: var(--jc-footer-bottom-bg, #0d0d0d);
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.07);
    font-size: .875rem;
    color: rgba(255,255,255,.45);
}

.jc-footer__bottom-links { gap: .75rem; display: flex; flex-wrap: wrap; align-items: center; padding: 0; margin: 0; }
.jc-footer__bottom-links li { display: inline-block; list-style: none; }
.jc-footer__bottom-links a {
    color: rgba(255,255,255,.45);
    text-decoration: none;
    transition: color .2s ease;
}
.jc-footer__bottom-links a:hover { color: #fff; }
.jc-footer__bottom-links li + li::before {
    content: '·';
    margin-right: .75rem;
    color: rgba(255,255,255,.25);
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.jc-page-hero--inner {
    background: linear-gradient(135deg, var(--jc-dark), #2a3a2b);
    padding: 7rem 0 3rem;
    margin-top: calc(-1 * var(--jc-header-h)); /* cancela o padding-top do .jc-main */
}
.jc-page-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: .75rem;
    font-weight: 800;
}
.jc-breadcrumb {
    font-size: .875rem;
    color: rgba(255,255,255,.6);
}
.jc-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; }
.jc-breadcrumb a:hover { color: #fff; }
.jc-breadcrumb span { color: rgba(255,255,255,.45); margin: 0 .4rem; }

/* ============================================================
   PROSE (content pages)
   ============================================================ */
.jc-prose {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--jc-text);
}
.jc-prose h2,.jc-prose h3,.jc-prose h4 { margin-top: 2rem; margin-bottom: .75rem; }
.jc-prose p { margin-bottom: 1.25rem; }
.jc-prose ul,.jc-prose ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.jc-prose li { margin-bottom: .4rem; }
.jc-prose a { color: var(--jc-primary); text-decoration: underline; }
.jc-prose img { border-radius: var(--jc-radius); margin: 1.5rem 0; }
.jc-prose blockquote {
    border-left: 4px solid var(--jc-primary);
    padding-left: 1.25rem;
    color: var(--jc-muted);
    font-style: italic;
    margin: 1.5rem 0;
}

/* ============================================================
   404 PAGE
   ============================================================ */
.jc-404 {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}
.jc-404__inner { max-width: 600px; margin: 0 auto; }
.jc-404__number {
    font-size: 10rem;
    font-weight: 900;
    color: rgba(61,140,64,.12);
    line-height: 1;
    font-family: var(--jc-heading-font);
    letter-spacing: -.05em;
}
.jc-404__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--jc-dark);
    margin-bottom: 1rem;
}
.jc-404__desc { color: var(--jc-muted); font-size: 1.0625rem; }

/* ============================================================
   POST CARDS (index / archive)
   ============================================================ */
.jc-post-card {
    border-radius: var(--jc-radius-lg);
    overflow: hidden;
    box-shadow: var(--jc-shadow);
    transition: transform .3s ease, box-shadow .3s ease;
    background: #fff;
}
.jc-post-card:hover { transform: translateY(-4px); box-shadow: var(--jc-shadow-hover); }
.jc-post-card__thumb { overflow: hidden; aspect-ratio: 16/9; }
.jc-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.jc-post-card:hover .jc-post-card__thumb img { transform: scale(1.05); }
.jc-post-card__body { padding: 1.5rem; }
.jc-post-card__meta { font-size: .8125rem; color: var(--jc-muted); margin-bottom: .6rem; }
.jc-post-card__title { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.jc-post-card__title a { color: var(--jc-dark); }
.jc-post-card__title a:hover { color: var(--jc-primary); }
.jc-post-card__excerpt { font-size: .9rem; color: var(--jc-muted); margin-bottom: 1rem; }

/* ============================================================
   SIDEBAR
   ============================================================ */
.jc-sidebar .widget { background: var(--jc-light); border-radius: var(--jc-radius); padding: 1.5rem; margin-bottom: 2rem; }
.jc-sidebar .widget-title { font-size: 1rem; font-weight: 700; color: var(--jc-dark); margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--jc-primary); }

/* ============================================================
   SCROLL ANIMATION
   ============================================================ */
[data-jc-animate] {
    opacity: 0;
    transition: opacity .6s ease, transform .6s ease;
}
[data-jc-animate="fade-up"]    { transform: translateY(32px); }
[data-jc-animate="fade-down"]  { transform: translateY(-32px); }
[data-jc-animate="fade-left"]  { transform: translateX(32px); }
[data-jc-animate="fade-right"] { transform: translateX(-32px); }
[data-jc-animate="fade"]       { transform: none; }

[data-jc-animate].jc-animated {
    opacity: 1;
    transform: none;
}

/* ============================================================
   ELEMENTOR SCOPED OVERRIDES
   ============================================================ */
.elementor-widget-jc-hero .jc-hero { margin-top: 0; }

/* Elementor removes padding from first section */
.elementor-section.elementor-section-full_width { padding: 0; }

/* Ensure our components look right inside Elementor */
.elementor .jc-stats-bar,
.elementor .jc-services,
.elementor .jc-why-us,
.elementor .jc-auto-banner,
.elementor .jc-process,
.elementor .jc-brands { margin: 0; }

/* ============================================================
   WORDPRESS PAGINATION
   ============================================================ */
.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 .75rem;
    border: 1px solid var(--jc-border);
    border-radius: var(--jc-radius);
    color: var(--jc-dark);
    font-weight: 600;
    text-decoration: none;
    transition: var(--jc-transition);
    margin: 0 2px;
}
.nav-links .page-numbers:hover { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }
.nav-links .page-numbers.current { background: var(--jc-primary); border-color: var(--jc-primary); color: #fff; }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */
@media (max-width: 1199.98px) {
    .jc-why-us__inner { padding: 3rem 2.5rem; }
}

@media (max-width: 991.98px) {
    .jc-main { --jc-header-h: 72px; }
    .jc-hero { min-height: 520px; }
    .jc-services { padding: 4rem 0; }
    .jc-process-step--connector::after { display: none; }
    .jc-auto-banner__left { padding: 1.75rem 0 1.25rem; }
    .jc-cta-banner__inner { flex-direction: column; align-items: flex-start; gap: 1.25rem; padding-block: 1.75rem; }
    .jc-cta-banner__text { flex: none; width: 100%; } /* flex-basis:320px tornava-se min-height em column mode */
    .jc-cta-banner__img--right { width: 45%; }
}

@media (max-width: 767.98px) {
    .jc-hero { min-height: 280px; }
    .elementor-663 .elementor-element-e444565 .jc-hero { min-height: 480px; }
    .jc-hero__content { padding: 3rem 1rem; } /* +1rem horizontal: evita texto colado às margens */
    .jc-stats-bar { padding: 2rem 0; }
    .jc-services { padding: 3rem 0; }
    .jc-why-us__inner { padding: 2.5rem 1.25rem; }
    .jc-footer__top { padding: 3rem 0 2rem; --bs-gutter-x: 1.5rem; }
    .jc-brands__grid { gap: 1rem 2rem; }
    .jc-process { padding: 3rem 0; }
    .jc-404__number { font-size: 7rem; }
    .jc-cta-banner__img--right { width: 35%; }
    .jc-cta-banner__inner { padding-block: 1.5rem; }

    /* Setas do owl-carousel dentro do viewport — evitam overflow horizontal */
    .owl-carousel .owl-nav div.owl-prev,
    .owl-carousel:hover .owl-nav div.owl-prev { left: 0 !important; }
    .owl-carousel .owl-nav div.owl-next,
    .owl-carousel:hover .owl-nav div.owl-next { right: 0 !important; }
}

@media (max-width: 479.98px) {
    .jc-hero { min-height: 220px; }
    .jc-hero__heading { font-size: 1.75rem; }
    .jc-hero__content { padding-inline: 1.25rem; }
    .jc-hero__buttons { flex-direction: column; }
    .jc-btn { justify-content: center; width: 100%; }
    .jc-cta-banner__img--right { display: none; }
    .jc-cta-banner__inner { padding-inline: 1rem; padding-block: 1.5rem; align-items: center; text-align: center; }
    .jc-cta-banner__buttons { flex-direction: column; align-items: stretch; width: 100%; }
    .jc-cta-banner__buttons .jc-btn { justify-content: center; }
    .jc-footer__bottom .d-flex { gap: .75rem; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
    .jc-header,.jc-footer,.jc-cta-banner { display: none; }
    .jc-hero { min-height: auto; padding: 1rem 0; }
    .jc-hero__overlay { display: none; }
    .jc-hero__heading,.jc-hero__sub { color: #000; text-shadow: none; }
}
