/**
 * Título a Dos Colores — front styles
 * Z Digital · Creative Elements widget
 */

.zdt {
    --zdt-p1-color: #151515;
    --zdt-p2-color: #e2711d;
    --zdt-p3-color: #151515;
    --zdt-p1-ga: 90deg;
    --zdt-p2-ga: 90deg;
    --zdt-p3-ga: 90deg;
    --zdt-gap-x: 12px;
    --zdt-gap-y: 0px;
    --zdt-accent-1: #e2711d;
    --zdt-underline: #e2711d;
    --zdt-dur: 700ms;
    --zdt-ease: cubic-bezier(.22, .61, .36, 1);
    width: 100%;
    box-sizing: border-box;
}

.zdt-inner {
    display: inline-block;
    max-width: 100%;
    text-align: inherit;
    box-sizing: border-box;
}

.zdt-title {
    margin: 0;
    padding: 0;
    line-height: 1.1;
}

.zdt-link {
    color: inherit;
    text-decoration: none;
    display: block;
}

.zdt-empty {
    padding: 14px;
    border: 1px dashed #c9ced4;
    border-radius: 6px;
    color: #7a8188;
    font-size: 13px;
    text-align: center;
}

/* ---- parts ---- */

.zdt-part {
    display: inline-block;
    text-shadow: var(--zdt-sh-x, 0) var(--zdt-sh-y, 0) var(--zdt-sh-b, 0) var(--zdt-sh-c, transparent);
    transition: color var(--zdt-dur) var(--zdt-ease);
}

.zdt-p1 {
    color: var(--zdt-p1-color);
}

.zdt-p2 {
    color: var(--zdt-p2-color);
}

.zdt-p3 {
    color: var(--zdt-p3-color);
}

/* one part per line */
.zdt--lines .zdt-part {
    display: block;
}

.zdt--lines .zdt-part + .zdt-part {
    margin-top: var(--zdt-gap-y);
}

/* everything on the same line */
.zdt--inline .zdt-part + .zdt-part {
    margin-left: var(--zdt-gap-x);
}

@media (max-width: 767px) {
    .zdt--stack-m .zdt-part {
        display: block;
        margin-left: 0;
    }

    .zdt--stack-m .zdt-part + .zdt-part {
        margin-top: var(--zdt-gap-y);
    }
}

/* ---- gradient text ---- */

.zdt-grad {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.zdt-grad-p1 {
    background-image: linear-gradient(var(--zdt-p1-ga), var(--zdt-p1-g1, #151515) 0%, var(--zdt-p1-g2, #f6a623) 100%);
}

.zdt-grad-p2 {
    background-image: linear-gradient(var(--zdt-p2-ga), var(--zdt-p2-g1, #e2711d) 0%, var(--zdt-p2-g2, #f6a623) 100%);
}

.zdt-grad-p3 {
    background-image: linear-gradient(var(--zdt-p3-ga), var(--zdt-p3-g1, #151515) 0%, var(--zdt-p3-g2, #f6a623) 100%);
}

/* outline only */
.zdt-hollow {
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ---- eyebrow / accent / subtitle ---- */

.zdt-eyebrow {
    display: block;
    color: #e2711d;
}

.zdt-accent {
    display: block;
    line-height: 0;
}

.zdt-accent i {
    display: inline-block;
    width: 90px;
    height: 5px;
    border-radius: 4px;
    background-color: var(--zdt-accent-1);
    background-image: linear-gradient(90deg, var(--zdt-accent-1) 0%, var(--zdt-accent-2, var(--zdt-accent-1)) 100%);
}

.zdt-sub {
    display: block;
    margin: 16px 0 0;
    color: #5b6169;
}

/* ======================================================================
 * ENTRANCE ANIMATIONS
 * The animated units (.zdt-an) start hidden and are revealed when the widget
 * enters the viewport (class .zdt-in added by the front script). With the
 * script missing, the inline <noscript> rule shows everything.
 * ====================================================================== */

.zdt--anim .zdt-an {
    opacity: 0;
    will-change: opacity, transform, filter;
    transition:
        opacity var(--zdt-dur) var(--zdt-ease),
        transform var(--zdt-dur) var(--zdt-ease),
        filter var(--zdt-dur) var(--zdt-ease),
        clip-path var(--zdt-dur) var(--zdt-ease),
        color .3s var(--zdt-ease);
}

.zdt--anim[data-entrance="fade-up"] .zdt-an {
    transform: translateY(28px);
}

.zdt--anim[data-entrance="fade-down"] .zdt-an {
    transform: translateY(-28px);
}

.zdt--anim[data-entrance="fade-left"] .zdt-an {
    transform: translateX(-40px);
}

.zdt--anim[data-entrance="fade-right"] .zdt-an {
    transform: translateX(40px);
}

.zdt--anim[data-entrance="zoom"] .zdt-an {
    transform: scale(.82);
}

.zdt--anim[data-entrance="blur"] .zdt-an {
    filter: blur(12px);
}

.zdt--anim[data-entrance="curtain"] .zdt-an {
    opacity: 1;
    clip-path: inset(0 0 100% 0);
    transform: translateY(12px);
}

/* revealed state */
.zdt--anim.zdt-in .zdt-an {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: inset(0 0 0 0);
}

/* ---- word / letter split (units built by the front script) ---- */

.zdt-word {
    display: inline-block;
    white-space: pre;
}

.zdt-letter {
    display: inline-block;
    white-space: pre;
}

.zdt--anim[data-entrance="words"] .zdt-part,
.zdt--anim[data-entrance="letters"] .zdt-part {
    opacity: 1;
    transform: none;
    filter: none;
}

.zdt--anim[data-split="up"] .zdt-an.zdt-u {
    transform: translateY(.7em) rotate(2deg);
}

.zdt--anim[data-split="zoom"] .zdt-an.zdt-u {
    transform: scale(.4);
}

.zdt--anim[data-split="blur"] .zdt-an.zdt-u {
    filter: blur(8px);
    transform: scale(1.1);
}

.zdt--anim[data-split="flip"] .zdt-an.zdt-u {
    transform: rotateX(-90deg);
    transform-origin: 50% 100%;
}

.zdt--anim[data-entrance="words"] .zdt-title,
.zdt--anim[data-entrance="letters"] .zdt-title {
    perspective: 600px;
}

/* revealed units (kept after the split rules so they win the cascade) */
.zdt--anim.zdt-in .zdt-an.zdt-u {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ======================================================================
 * HOVER EFFECTS
 * ====================================================================== */

.zdt--hover-swap:hover .zdt-p1 {
    color: var(--zdt-p2-color);
}

.zdt--hover-swap:hover .zdt-p2 {
    color: var(--zdt-p1-color);
}

.zdt--hover-grow .zdt-inner {
    transition: transform .35s var(--zdt-ease);
}

.zdt--hover-grow:hover .zdt-inner {
    transform: scale(1.03);
}

.zdt--hover-underline .zdt-part {
    position: relative;
}

.zdt--hover-underline .zdt-part::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -.08em;
    width: 100%;
    height: .07em;
    background: var(--zdt-underline);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .45s var(--zdt-ease);
}

.zdt--hover-underline:hover .zdt-part::after {
    transform: scaleX(1);
}

.zdt--hover-underline .zdt-part:nth-child(2)::after {
    transition-delay: .08s;
}

.zdt--hover-underline .zdt-part:nth-child(3)::after {
    transition-delay: .16s;
}

.zdt--hover-shine .zdt-title {
    position: relative;
    overflow: hidden;
}

.zdt--hover-shine .zdt-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-18deg);
    opacity: 0;
}

.zdt--hover-shine:hover .zdt-title::before {
    animation: zdt-shine .9s ease forwards;
}

@keyframes zdt-shine {
    0% {
        left: -60%;
        opacity: 1;
    }

    100% {
        left: 120%;
        opacity: 1;
    }
}

/* ---- accessibility: honour reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
    .zdt--anim .zdt-an,
    .zdt--anim .zdt-an.zdt-u {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
        transition: none !important;
    }

    .zdt--hover-shine:hover .zdt-title::before {
        animation: none;
    }
}
