/*
Theme Name: Chairo Custom Theme
Description: Tema customizado para WordPress Headless
Version: 1.0
Author: Chairo
*/


html {
    overflow-x: clip;
    background-color: #F9F2EA;
}

/* Elementor injeta overflow-x:hidden no body, o que força overflow-y:auto
   e desloca seções full-bleed (100vw) em relação ao conteúdo centrado. */
body {
    overflow-x: visible !important;
    background-color: #F9F2EA;
    font-family: Inter, sans-serif;
}



.cmplz-cookiebanner {
    top: auto !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border-radius: 0 !important;
    transform: none !important;
}

.cmplz-cookiebanner .cmplz-header {
    margin-bottom: 4px !important;
}

.cmplz-cookiebanner .cmplz-body {
    min-width: 0 !important;
    max-height: none !important;
}

.cmplz-cookiebanner .cmplz-title {
    font-size: 14px !important;
}

.cmplz-cookiebanner .cmplz-message,
.cmplz-cookiebanner .cmplz-description {
    font-size: 13px !important;
    line-height: 1.35 !important;
}

.cwe-whatsapp {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 10020;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(145deg, #5be584 0%, #25d366 46%, #128c7e 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(18, 140, 126, 0.38);
}

.cwe-whatsapp svg {
    display: block;
    width: 30px;
    height: 30px;
    flex: none;
}

.cwe-whatsapp:hover,
.cwe-whatsapp:focus-visible {
    color: #fff;
    background: linear-gradient(145deg, #7dff9e 0%, #2fe070 46%, #159a8a 100%);
}

body:has(.cmplz-cookiebanner) .cwe-whatsapp {
    bottom: 88px;
}

@media (max-width: 767px) {
    .cwe-whatsapp {
        right: 12px;
        bottom: 12px;
        width: 52px;
        height: 52px;
    }
}

.nojq {
    z-index: 99999999 !important;
}

.fade-up,
.fade-down,
.fade-left,
.fade-in,
.blur-in,
.blur-up,
.blur-down {
    --motion-delay: 0s;
    --motion-duration: 1.05s;
    --motion-distance:0px;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    opacity: 1;
    will-change: opacity, transform, filter;
    transition:
        opacity var(--motion-duration) var(--motion-ease) var(--motion-delay),
        transform var(--motion-duration) var(--motion-ease) var(--motion-delay),
        filter var(--motion-duration) var(--motion-ease) var(--motion-delay);
}

.fade-up {
    transform: translate3d(0, var(--motion-distance), 0);
}

.fade-down {
    transform: translate3d(0, calc(var(--motion-distance) * -1), 0);
}

.fade-left {
    transform: translate3d(calc(var(--motion-distance) * -1), 0, 0);
}

.fade-in {
    transform: none;
}

.blur-in {
    filter: blur(18px);
    transform: none;
}

.blur-up {
    filter: blur(18px);
    transform: translate3d(0, var(--motion-distance), 0);
}

.blur-down {
    filter: blur(18px);
    transform: translate3d(0, calc(var(--motion-distance) * -1), 0);
}

.fade-up.is-visible,
.fade-down.is-visible,
.fade-left.is-visible,
.fade-in.is-visible,
.blur-in.is-visible,
.blur-up.is-visible,
.blur-down.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
}

.delay-1 { --motion-delay: 0.22s; }
.delay-2 { --motion-delay: 0.48s; }
.delay-3 { --motion-delay: 0.74s; }
.delay-4 { --motion-delay: 1.00s; }
.delay-5 { --motion-delay: 1.26s; }
.delay-6 { --motion-delay: 1.40s; }

.motion-fast {
    --motion-duration: 0.75s;
}

.motion-slow {
    --motion-duration: 1.45s;
}

.motion-slower {
    --motion-duration: 1.8s;
}

.motion-small {
    --motion-distance: 16px;
}

.motion-large {
    --motion-distance: 55px;
}

.image-button,
.degrade-button {
    position: relative !important;
    width: max-content !important;
    max-width: max-content !important;
    margin-right: 62px;
    overflow: visible !important;
}

/* Mobile: botão + seta (::after) não podem ultrapassar a largura útil. */
@media (max-width: 767px) {
    .image-button,
    .degrade-button {
        width: auto !important;
        max-width: calc(100% - 60px) !important;
        box-sizing: border-box;
    }

    .image-button a,
    .degrade-button a {
        max-width: 100%;
        box-sizing: border-box;
        padding-right: 22px !important;
        padding-left: 24px !important;
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }

    .image-button::after,
    .degrade-button::after {
        width: 46px;
        height: 46px;
        left: calc(100% + 6px);
        background-size: 16px 16px;
    }
}

/*
 * Footer Elementor: <strong> órfãos envolvem containers e forçam largura
 * maior que o viewport no mobile (espaço em branco / página “deslocada”).
 *
 * .bg-dg-footer pode estar e-con-full (sem .e-con-inner) OU e-con-boxed.
 * Em ambos: vídeo/overlay full-bleed; conteúdo limitado a --content-width.
 */
.elementor-location-footer {
    position: relative;
    z-index: 5;
    overflow-x: clip;
}

.elementor-location-footer .e-con,
.elementor-location-footer .e-con-inner {
    min-width: 0;
}

.elementor-location-footer .e-con-boxed > .e-con-inner {
    width: 100%;
    max-width: var(--content-width, min(100%, 1140px));
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    box-sizing: border-box;
}

.elementor-location-footer strong:has(> .elementor-element) {
    display: contents;
}

.elementor-location-footer .elementor-widget__width-initial {
    max-width: min(100%, 360px) !important;
}

.elementor-location-footer .bg-dg-footer {
    --cwe-footer-content-max: var(--content-width, min(100%, 1140px));
    position: relative;
    overflow: hidden;
    isolation: isolate;
    width: 100%;
    max-width: none;
}

/*
 * Conteúdo (CTA / colunas): filhos diretos OU dentro de <strong>
 * (display:contents não faz o seletor > enxergar os netos no DOM).
 */
.elementor-location-footer .bg-dg-footer > .e-con,
.elementor-location-footer .bg-dg-footer > .elementor-element.e-con,
.elementor-location-footer .bg-dg-footer > strong > .e-con,
.elementor-location-footer .bg-dg-footer > strong > .elementor-element.e-con {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--cwe-footer-content-max);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 1.5rem);
    box-sizing: border-box;
}

.elementor-location-footer .bg-dg-footer > .elementor-background-video-container {
    inset: 0;
    left: 0;
    width: 100%;
    max-width: none;
    transform: none;
    z-index: 0;
}

/*
 * Elementor marca o bg-video como .elementor-hidden-mobile e não
 * ativa o src no JS quando "Play on Mobile" está off. Forçar no footer.
 */
@media (max-width: 767px) {
    .elementor-location-footer .bg-dg-footer .elementor-background-video-container.elementor-hidden-mobile {
        display: block !important;
    }
}

.elementor-location-footer .bg-dg-footer .elementor-background-video-hosted {
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none;
    transform: none !important;
    object-fit: cover;
}

.elementor-location-footer .bg-dg-footer::before,
.elementor-location-footer .bg-dg-footer > .elementor-background-video-container::before {
    z-index: 0;
    background-image: linear-gradient(
        rgb(249, 242, 234) 0%,
        rgb(249, 242, 234) 20%,
        rgba(20, 18, 16, 0.42) 40%,
        rgba(20, 18, 16, 0.88) 58%,
        rgba(20, 18, 16, 0.96) 100%
    ) !important;
}

.elementor-location-footer .bg-dg-footer .elementor-background-video-container {
    z-index: 0;
}

.image-button .elementor-widget-container,
.degrade-button .elementor-widget-container {
    overflow: visible !important;
}

.image-button a,
.degrade-button a {
    display: inline-flex !important;
    align-items: center;
    height: 52px;
    padding: 0 28px 0 32px !important;
    border: 0;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #5f93b4 0%, #c42318 78%) !important;
    background-image: linear-gradient(90deg, #5f93b4 0%, #c42318 78%) !important;
    color: #f7f2ea !important;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: 1;
    text-transform: uppercase;
    box-shadow: none;
    transition: filter 0.25s ease;
}

.image-button::after,
.degrade-button::after {
    content: "";
    position: absolute !important;
    left: calc(100% + 8px);
    top: 50%;
    width: 52px;
    height: 52px;
    display: block;
    border-radius: 50%;
    background-color: #d2262a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7'/%3E%3Cpath d='M9 7h8v8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
    transform: translateY(-50%);
    transform-origin: center;
    pointer-events: none;
    z-index: 10;
    filter: none;
    transition: transform 0.25s ease;
}

.image-button:hover a,
.image-button:focus-within a,
.degrade-button:hover a,
.degrade-button:focus-within a {
    transform: none;
    filter: brightness(1.06);
    background-position: center;
    box-shadow: none;
}

.image-button:hover::after,
.image-button:focus-within::after,
.degrade-button:hover::after,
.degrade-button:focus-within::after {
    transform: translate(3px, calc(-50% - 3px));
    filter: none;
}

.image-button:active a,
.degrade-button:active a {
    transform: scale(0.98);
}

.image-button:active::after,
.degrade-button:active::after {
    transform: translateY(-50%) scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
    .fade-up,
    .fade-down,
    .fade-left,
    .fade-in,
    .blur-in,
    .blur-up,
    .blur-down,
    .image-button a,
    .degrade-button a,
    .image-button::after,
    .degrade-button::after {
        transition: none !important;
    }

    .fade-up,
    .fade-down,
    .fade-left,
    .fade-in,
    .blur-in,
    .blur-up,
    .blur-down {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        will-change: auto;
    }
}

.elementor-heading-title .cwe-privacidade-footer-link {
    color: inherit !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}
