/**
 * Reiko Animations CSS v2 — premium
 * Carregar APÓS style.min.css. Prefixo .rk- pra zero colisão.
 */

/* ============================================================
 * 0. REDUCE-MOTION FAILSAFE
 * ============================================================ */
.rk-reduce-motion [data-reveal],
.rk-reduce-motion [data-wordmark],
.rk-reduce-motion .rk-word-inner,
.rk-reduce-motion .rk-img-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    clip-path: none !important;
}
.rk-reduce-motion [data-wordmark] span {
    opacity: 1;
    transform: none;
    filter: none;
}
.rk-reduce-motion .rk-curtain,
.rk-reduce-motion .rk-scroll-progress,
.rk-reduce-motion .rk-cursor {
    display: none !important;
}

/* ============================================================
 * 1. PAGE INTRO CURTAIN — abre revelando conteudo
 * Cortina horizontal: superior sobe, inferior desce
 * Logo "Reiko" no meio com fade
 * ============================================================ */
.rk-curtain {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
}
.rk-curtain-half {
    position: absolute;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(180deg, #0a1520 0%, #050b13 100%);
    transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}
.rk-curtain-top { top: 0; transform: translateY(0); }
.rk-curtain-bottom { bottom: 0; transform: translateY(0); }

.rk-curtain-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    align-items: baseline;
    gap: 0.02em;
    font-family: inherit;
    font-weight: 900;
    font-size: clamp(56px, 10vw, 120px);
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.rk-curtain-logo > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40%);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.rk-curtain-r { transition-delay: 0ms !important; }
.rk-curtain-e { transition-delay: 60ms !important; }
.rk-curtain-i { transition-delay: 120ms !important; }
.rk-curtain-k { transition-delay: 180ms !important; }
.rk-curtain-o { transition-delay: 240ms !important; }
.rk-curtain-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c4b94a;
    margin-left: 4px;
    transition-delay: 320ms !important;
}

.rk-curtain-active .rk-curtain-logo { opacity: 1; }
.rk-curtain-active .rk-curtain-logo > span {
    opacity: 1;
    transform: translateY(0);
}

.rk-curtain-out .rk-curtain-top { transform: translateY(-100%); }
.rk-curtain-out .rk-curtain-bottom { transform: translateY(100%); }
.rk-curtain-out .rk-curtain-logo {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ============================================================
 * 2. SCROLL PROGRESS BAR
 * ============================================================ */
.rk-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #c4b94a 0%, #e8d97a 50%, #c4b94a 100%);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 50; /* fica abaixo de menus mobile (1000+) e modais */
    pointer-events: none;
    box-shadow: 0 0 12px rgba(196, 185, 74, 0.5);
    transition: transform 0.08s linear;
}

/* ============================================================
 * GUARD — desabilita TODAS as anims dentro de header/menu mobile
 * (evita bug visual no accordion de servicos mobile)
 * ============================================================ */
header [data-reveal],
header [data-tilt],
header [data-magnetic],
header .rk-word,
header .rk-word-inner,
header [data-wordmark],
header [data-wordmark] > span,
.mobile-menu [data-reveal],
.mobile-menu [data-tilt],
.mobile-menu [data-magnetic],
.mobile-menu .rk-word,
.mobile-menu .rk-word-inner,
.mobile-menu [data-wordmark],
.mobile-menu [data-wordmark] > span {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    clip-path: none !important;
    will-change: auto !important;
}
header [data-cursor-glow]::before,
header [data-cursor-glow]::after,
.mobile-menu [data-cursor-glow]::before,
.mobile-menu [data-cursor-glow]::after {
    display: none !important;
}
.mobile-menu, .mobile-menu * {
    /* z-index alto pra ficar acima da scroll-progress */
}
.rk-curtain {
    pointer-events: none !important;
}

/* ============================================================
 * SECTORS GRID — substitui logos de clientes por grid confidencial
 * Design premium: 6 cards, icone dourado, numero grande, hover 3D leve
 * ============================================================ */
.rk-sectors-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 640px;
    margin: 18px auto 0;
    padding: 10px 18px;
    background: rgba(196, 185, 74, 0.06);
    border: 1px solid rgba(196, 185, 74, 0.18);
    border-radius: 999px;
    color: #506172;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: left;
}
.rk-sectors-subtitle svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #a99e35;
}
.rk-sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    max-width: 1160px;
    margin: 48px auto 40px;
    padding: 0 16px;
}
.rk-sector-card {
    position: relative;
    background: linear-gradient(160deg, #ffffff 0%, #fafbfc 100%);
    border: 1px solid rgba(10, 21, 32, 0.06);
    border-radius: 18px;
    padding: 28px 24px 26px;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
}
.rk-sector-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #c4b94a 50%, transparent);
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.rk-sector-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 100% 0%, rgba(196, 185, 74, 0.08), transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}
.rk-sector-card:hover {
    transform: translateY(-6px);
    border-color: rgba(196, 185, 74, 0.28);
    box-shadow:
        0 24px 50px rgba(10, 21, 32, 0.10),
        0 6px 16px rgba(10, 21, 32, 0.05);
}
.rk-sector-card:hover::before { opacity: 1; transform: translateY(0); }
.rk-sector-card:hover::after { opacity: 1; }
.rk-sector-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(196, 185, 74, 0.12), rgba(91, 138, 138, 0.10));
    border: 1px solid rgba(196, 185, 74, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a99e35;
    margin-bottom: 18px;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease,
                color 0.4s ease;
}
.rk-sector-card:hover .rk-sector-icon {
    transform: scale(1.08) rotate(-3deg);
    background: linear-gradient(135deg, rgba(196, 185, 74, 0.20), rgba(91, 138, 138, 0.15));
    color: #8a8025;
}
.rk-sector-icon svg { width: 24px; height: 24px; }
.rk-sector-number {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #0a1520;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #0a1520 0%, #506172 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.rk-sector-title {
    font-size: 15.5px;
    font-weight: 800;
    letter-spacing: -0.005em;
    color: #0a1520;
    margin: 0 0 6px;
    line-height: 1.25;
}
.rk-sector-desc {
    font-size: 13.5px;
    color: #6b7a89;
    line-height: 1.55;
    margin: 0;
}
@media (max-width: 900px) {
    .rk-sectors-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .rk-sector-card { padding: 24px 20px 22px; }
    .rk-sector-number { font-size: 38px; }
}
@media (max-width: 520px) {
    .rk-sectors-grid { grid-template-columns: 1fr; }
    .rk-sectors-subtitle { font-size: 12.5px; padding: 10px 14px; }
}

/* ============================================================
 * PRICE CHIP — faixa de investimento no hero das service pages
 * ============================================================ */
.rk-price-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0 10px;
    padding: 10px 18px;
    background: rgba(196, 185, 74, 0.10);
    border: 1px solid rgba(196, 185, 74, 0.35);
    border-radius: 999px;
    color: #e8e2b0;
    font-size: 14px;
    line-height: 1.4;
}
.rk-price-chip svg { width: 17px; height: 17px; flex-shrink: 0; color: #c4b94a; }
.rk-price-chip strong { color: #f2edc4; font-weight: 800; }
@media (max-width: 600px) {
    .rk-price-chip { font-size: 13px; padding: 9px 14px; }
}

/* ============================================================
 * COMPROMISSOS REIKO — strip de risk reversal nas service pages
 * ============================================================ */
.rk-commits {
    padding: 44px 24px;
    background: linear-gradient(180deg, #0a1520 0%, #0e1c2a 100%);
    border-top: 1px solid rgba(196, 185, 74, 0.12);
    border-bottom: 1px solid rgba(196, 185, 74, 0.12);
}
.rk-commits-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.rk-commit {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.rk-commit-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(196, 185, 74, 0.12);
    border: 1px solid rgba(196, 185, 74, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4b94a;
    margin-bottom: 6px;
}
.rk-commit-icon svg { width: 20px; height: 20px; }
.rk-commit strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.rk-commit span {
    color: rgba(238, 241, 245, 0.62);
    font-size: 13px;
    line-height: 1.5;
}
@media (max-width: 900px) {
    .rk-commits-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .rk-commits-inner { grid-template-columns: 1fr; gap: 20px; }
}

/* ============================================================
 * RESULTADOS ANÔNIMOS — teaser público no portfolio
 * ============================================================ */
.rk-results {
    padding: 60px 24px 30px;
    background: linear-gradient(180deg, #f7f9fb 0%, #ffffff 100%);
}
.rk-results-inner { max-width: 1160px; margin: 0 auto; text-align: center; }
.rk-results-title {
    font-size: clamp(24px, 3.6vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a1520;
    margin: 0 0 8px;
}
.rk-results-sub {
    color: #6b7a89;
    font-size: 14.5px;
    margin: 0 0 34px;
}
.rk-results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: left;
}
.rk-result-card {
    background: #ffffff;
    border: 1px solid rgba(10, 21, 32, 0.07);
    border-radius: 16px;
    padding: 24px 22px;
    transition: transform 0.45s cubic-bezier(0.16,1,0.3,1), box-shadow 0.45s cubic-bezier(0.16,1,0.3,1), border-color 0.3s;
}
.rk-result-card:hover {
    transform: translateY(-5px);
    border-color: rgba(196, 185, 74, 0.3);
    box-shadow: 0 20px 44px rgba(10, 21, 32, 0.09);
}
.rk-result-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5B8A8A;
    background: rgba(91, 138, 138, 0.10);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.rk-result-num {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    color: #0a1520;
    margin-bottom: 6px;
}
.rk-result-num em { font-style: normal; color: #a99e35; }
.rk-result-desc { color: #506172; font-size: 13.5px; line-height: 1.55; margin: 0; }
@media (max-width: 900px) { .rk-results-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rk-results-grid { grid-template-columns: 1fr; } }

/* ============================================================
 * OVERRIDE FORTE — zerar TODAS as sombras pesadas do portfolio
 * Especificidade alta + body prefix pra ganhar de qualquer outra
 * O CSS legado tinha sombras 30px × 80px que vazavam pra fora.
 * ============================================================ */
body .portfolio-stage-thumb,
body .portfolio-stage-thumb:hover,
body .portfolio-stage,
body .portfolio-stage-inner,
body .portfolio-stage-inner.is-changing,
body .portfolio-stage-card,
body .portfolio-stage-head,
body .portfolio-stage-narrative,
body .portfolio-stage-metrics-wrap,
body .portfolio-stage-stack-wrap,
body .portfolio-showcase,
body .portfolio-showcase-container,
body .portfolio-split,
body .portfolio-list-wrap,
body .portfolio-list,
body .portfolio-list-header,
body .portfolio-list-item,
body .portfolio-extras,
body .portfolio-extras-container,
body .portfolio-extra-card,
body .portfolio-cta-final {
    box-shadow: none !important;
    filter: none !important;
}

/* Sombra leve só no card branco principal (sutil, profissional) */
body .portfolio-stage-inner {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

/* ============================================================
 * 3. CURSOR FOLLOWER — REMOVIDO a pedido do user
 * ============================================================ */
.rk-cursor { display: none !important; }

/* ============================================================
 * 4. SCROLL REVEAL — mais forte e elegante
 * ============================================================ */
.rk-anim-ready [data-reveal] {
    opacity: 0;
    transition:
        opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--rk-reveal-delay, 0ms),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--rk-reveal-delay, 0ms),
        filter 0.95s cubic-bezier(0.16, 1, 0.3, 1) var(--rk-reveal-delay, 0ms);
    will-change: opacity, transform;
}
.rk-anim-ready [data-reveal="up"]    { transform: translateY(48px); }
.rk-anim-ready [data-reveal="down"]  { transform: translateY(-48px); }
.rk-anim-ready [data-reveal="left"]  { transform: translateX(-60px); }
.rk-anim-ready [data-reveal="right"] { transform: translateX(60px); }
.rk-anim-ready [data-reveal="scale"] { transform: scale(0.86); }
.rk-anim-ready [data-reveal="zoom"]  { transform: scale(1.1); }
.rk-anim-ready [data-reveal="blur"]  { filter: blur(14px); transform: translateY(30px); }
.rk-anim-ready [data-reveal="fade"]  { transform: none; }

.rk-anim-ready [data-reveal].rk-revealed {
    opacity: 1;
    transform: none;
    filter: none;
}

/* ============================================================
 * 5. SPLIT TEXT — REMOVIDO (cortava descendentes j/g/ç nos títulos)
 * Failsafe: se algum HTML antigo ainda tiver .rk-word, renderiza normal.
 * ============================================================ */
.rk-word, .rk-word-inner {
    display: inline !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    overflow: visible !important;
    transition: none !important;
}

/* ============================================================
 * 6. IMAGE CURTAIN REVEAL — clip-path cresce
 * ============================================================ */
.rk-img-reveal {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1.2s cubic-bezier(0.76, 0, 0.24, 1);
    will-change: clip-path;
}
.rk-img-reveal.rk-img-revealed {
    clip-path: inset(0 0 0 0);
}

/* ============================================================
 * 7. WORDMARK — letras letra-por-letra
 * ============================================================ */
[data-wordmark] {
    display: inline-flex;
    gap: 0.02em;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
}
[data-wordmark] > span {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.5em) rotate(10deg);
    filter: blur(12px);
    transition:
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--rk-wm-delay, 0ms),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1) var(--rk-wm-delay, 0ms),
        filter 0.8s cubic-bezier(0.16, 1, 0.3, 1) var(--rk-wm-delay, 0ms);
}
[data-wordmark].rk-wm-on > span {
    opacity: 1;
    transform: translateY(0) rotate(0);
    filter: blur(0);
}

.rk-hero-mark {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    bottom: 6%;
    right: 4%;
    font-size: clamp(80px, 16vw, 260px);
    line-height: 0.85;
    color: rgba(196, 185, 74, 0.08);
    font-weight: 900;
    letter-spacing: -0.04em;
    -webkit-text-stroke: 1px rgba(196, 185, 74, 0.28);
            text-stroke: 1px rgba(196, 185, 74, 0.28);
    user-select: none;
    mix-blend-mode: screen;
}
@media (max-width: 768px) {
    .rk-hero-mark {
        bottom: 4%;
        right: 4%;
        font-size: 64px;
    }
}

/* ============================================================
 * 8. MAGNETIC
 * ============================================================ */
[data-magnetic] {
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

/* ============================================================
 * 9. TILT 3D com glow interno
 * ============================================================ */
[data-tilt] {
    transform-style: preserve-3d;
    will-change: transform;
    position: relative;
    isolation: isolate;
}
.rk-tilt-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--rk-glow-x, 50%) var(--rk-glow-y, 50%),
        rgba(196, 185, 74, 0.18),
        rgba(196, 185, 74, 0.04) 30%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}
[data-tilt].rk-tilt-active .rk-tilt-glow {
    opacity: 1;
}

/* ============================================================
 * 10. CURSOR GLOW SECTIONS
 * ============================================================ */
[data-cursor-glow] {
    position: relative;
    isolation: isolate;
}
[data-cursor-glow]::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        520px circle at var(--rk-glow-x, 50%) var(--rk-glow-y, 50%),
        rgba(196, 185, 74, 0.22),
        rgba(196, 185, 74, 0.06) 32%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}
[data-cursor-glow].rk-glow-on::before { opacity: 1; }

/* ============================================================
 * 11. RIPPLE EFFECT
 * ============================================================ */
.rk-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
    transform: scale(0);
    animation: rk-ripple-anim 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: none;
    z-index: 0;
}
@keyframes rk-ripple-anim {
    to {
        transform: scale(1);
        opacity: 0;
    }
}

/* ============================================================
 * 12. VIEW TRANSITIONS — REMOVIDO a pedido do user
 * ============================================================ */

/* ============================================================
 * 13. TECH MARQUEE
 * ============================================================ */
.rk-marquee {
    overflow: hidden;
    width: 100%;
    padding: 18px 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.04));
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    position: relative;
}
.rk-marquee-track {
    display: inline-flex;
    gap: 56px;
    white-space: nowrap;
    animation: rk-marquee-scroll 42s linear infinite;
    will-change: transform;
}
.rk-marquee:hover .rk-marquee-track {
    animation-play-state: paused;
}
.rk-marquee-item {
    font-size: 13px;
    font-weight: 700;
    color: rgba(196, 185, 74, 0.82);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: inline-flex;
    align-items: center;
    gap: 56px;
    transition: color 0.3s ease, transform 0.3s ease;
}
.rk-marquee-item:hover {
    color: #e8d97a;
    transform: scale(1.08);
}
.rk-marquee-item::after {
    content: "•";
    color: rgba(255,255,255,0.2);
    font-size: 14px;
    line-height: 1;
}
@keyframes rk-marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.rk-reduce-motion .rk-marquee-track {
    animation: none;
    transform: translateX(0) !important;
}

/* ============================================================
 * 14. CARD HOVER REFINADO
 * ============================================================ */
.rk-card-hover {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.3s ease;
}
.rk-card-hover:hover {
    transform: translateY(-8px);
    box-shadow:
        0 28px 60px rgba(0,0,0,0.25),
        0 8px 20px rgba(0,0,0,0.12),
        0 0 0 1px rgba(196, 185, 74, 0.15);
}

/* ============================================================
 * 15. CTA SWEEP DOURADO
 * ============================================================ */
.rk-cta-sweep {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.rk-cta-sweep::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.25) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 1;
}
.rk-cta-sweep:hover::after {
    transform: translateX(100%);
}

/* ============================================================
 * 16. HEADER SCROLLED STATE (apenas sombra — sem backdrop-filter)
 *
 * IMPORTANTE: backdrop-filter cria um novo containing block que
 * prende elementos position:fixed descendentes (como o mobile-menu)
 * DENTRO do header. Por isso usamos só box-shadow aqui.
 * ============================================================ */
.rk-header-scrolled header,
.rk-header-scrolled .header,
.rk-header-scrolled nav.main-nav {
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.15),
        0 1px 0 rgba(196, 185, 74, 0.08);
}

/* ============================================================
 * 17. LINK HOVER UNDERLINE — desenha da esquerda
 * ============================================================ */
.rk-link-underline {
    position: relative;
    display: inline-block;
}
.rk-link-underline::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s cubic-bezier(0.76, 0, 0.24, 1);
}
.rk-link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================================
 * 18. PARALLAX — elementos com transform aplicado por JS
 * ============================================================ */
[data-parallax] {
    will-change: transform;
}

/* ============================================================
 * 19. SECTION SHIMMER — REMOVIDO
 * O mesh gradient com mix-blend-mode: screen estava vazando
 * visualmente nos elementos abaixo do hero (portfolio stage).
 * Mantido apenas o cursor-glow ::before que só aparece no hover.
 * ============================================================ */

/* ============================================================
 * 20. SAVE-DATA (conexões lentas) — desliga animações pesadas
 * ============================================================ */
@media (prefers-reduced-data: reduce) {
    .rk-marquee-track { animation: none; }
    [data-tilt] { transform: none !important; }
    [data-cursor-glow]::before,
    [data-cursor-glow]::after { display: none; }
    .rk-cursor { display: none; }
    .rk-scroll-progress { display: none; }
}

/* ============================================================
 * 21. FLOATING FAB / WhatsApp button — pulsing aura
 * ============================================================ */
.whatsapp-float, .floating-whatsapp, .wa-fab {
    position: relative;
    isolation: isolate;
}
.whatsapp-float::before,
.floating-whatsapp::before,
.wa-fab::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    border: 2px solid rgba(37, 211, 102, 0.5);
    opacity: 0;
    animation: rk-aura-pulse 2.4s ease-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes rk-aura-pulse {
    0%   { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.5); }
}
.rk-reduce-motion .whatsapp-float::before,
.rk-reduce-motion .floating-whatsapp::before,
.rk-reduce-motion .wa-fab::before {
    animation: none;
    opacity: 0;
}

/* ============================================================
 * WHATSAPP BUBBLE — canto inferior direito, todas as páginas
 * ============================================================ */
.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 980; /* abaixo do mobile-menu (999) e modais; acima do conteúdo */
    display: flex;
    align-items: center;
    gap: 0;
    height: 60px;
    width: 60px;
    padding: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #25D366 0%, #1ebe5d 100%);
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.42), 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease, bottom 0.35s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    overflow: hidden;
    white-space: nowrap;
}
.whatsapp-float svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    margin: 0 14px;
}
.whatsapp-float-label {
    font-size: 14.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    max-width: 0;
    opacity: 0;
    padding-right: 0;
    transition: max-width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
    .whatsapp-float:hover {
        width: auto;
        transform: translateY(-3px);
        box-shadow: 0 16px 36px rgba(37, 211, 102, 0.5), 0 3px 8px rgba(0, 0, 0, 0.2);
    }
    .whatsapp-float:hover .whatsapp-float-label {
        max-width: 220px;
        opacity: 1;
        padding-right: 22px;
    }
}
.whatsapp-float:active { transform: scale(0.96); }

/* Empurra o "voltar ao topo" pra cima do bubble */
#backToTop {
    bottom: 96px;
    right: 26px;
    transition: bottom 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
}

/* Quando o banner LGPD está visível, sobe o bubble pra não ficar atrás */
.lgpd-banner:not(.hidden):not([hidden]) ~ .whatsapp-float,
body.lgpd-visible .whatsapp-float {
    bottom: 22px;
}

@media (max-width: 640px) {
    .whatsapp-float { right: 16px; bottom: 16px; height: 56px; width: 56px; }
    .whatsapp-float svg { width: 30px; height: 30px; margin: 0 13px; }
    #backToTop { bottom: 84px; right: 18px; width: 44px; height: 44px; }
}
