/* Explain: CSS for 3D tilt effects on hero image and parallax background orbs. */
/* Efeitos 3D e movimento — Ouro BR
   Inclinação leve e brilho dourado que acompanham o cursor na imagem
   principal, brilhos de fundo em parallax e entradas suaves na rolagem.
   Tudo discreto, leve e opcional (respeita "reduzir movimento"). */

.tilt-scene {
    perspective: 1100px;
}

.tilt-card {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.tilt-card.is-active {
    transition: transform 140ms ease-out;
}

.tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(
        circle at var(--mx, 50%) var(--my, 50%),
        rgba(242, 222, 159, 0.55),
        rgba(184, 145, 47, 0.18) 36%,
        rgba(184, 145, 47, 0) 62%
    );
    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 420ms ease;
    transform: translateZ(36px);
}

.tilt-card.is-active .tilt-glow {
    opacity: 1;
}

.hero-orb {
    position: absolute;
    z-index: 0;
    border-radius: 999px;
    filter: blur(4px);
    opacity: 0.45;
    pointer-events: none;
    will-change: transform;
}

.hero-orb--1 {
    top: 10%;
    right: 6%;
    width: 92px;
    height: 92px;
    background: radial-gradient(circle at 32% 30%, rgba(242, 222, 159, 0.95), rgba(184, 145, 47, 0.28) 55%, rgba(184, 145, 47, 0) 74%);
}

.hero-orb--2 {
    bottom: 8%;
    left: 3%;
    width: 138px;
    height: 138px;
    background: radial-gradient(circle at 36% 34%, rgba(231, 206, 134, 0.8), rgba(184, 145, 47, 0.2) 58%, rgba(184, 145, 47, 0) 76%);
}

.has-reveal [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 720ms ease, transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}

.has-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 767px) {
    .tilt-card {
        transform: none;
    }

    .tilt-glow {
        display: none;
    }

    .hero-orb--1 {
        width: 68px;
        height: 68px;
    }

    .hero-orb--2 {
        width: 104px;
        height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tilt-card,
    .tilt-glow,
    .hero-orb {
        transform: none !important;
        transition: none !important;
    }

    .has-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}