/* Ajustes de layout globais para evitar overflow lateral e vertical indesejado */
html {
    overflow-x: hidden;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Ajustes tipográficos originais */
.tan-garland-style {
    font-family: 'Fraunces', serif;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.theme-transition {
    transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Textura sutil do papel artesanal brasileiro */
.noise-texture {
    position: relative;
}

.noise-texture::before {
    content: "";
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    z-index: 10;
}

#logo-text {
    width: 130px;
}

/* Cursor Personalizado Fluido (Bossa Sensorial) */
#custom-cursor {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #e75d0b;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: multiply;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    opacity: 0;
}

/* Efeito de revelar ao scroll */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-element.active {
    opacity: 1;
    transform: translateY(0);
}

/* Animações e Efeitos Ambientais para Bossa & Brisa */
.swaying-leaves {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100vh;
    background: radial-gradient(circle, rgba(59, 81, 41, 0.08) 0%, transparent 70%);
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10,90 Q40,40 90,10 M20,80 Q50,50 80,30' stroke='black' stroke-width='4' fill='none'/%3E%3C/svg%3E");
    animation: sway 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
    transform-origin: top right;
    display: none;
    max-width: 100vw;
    overflow: hidden;
}

@keyframes sway {
    0% {
        transform: rotate(0deg) scale(1);
    }

    100% {
        transform: rotate(8deg) scale(1.05);
    }
}

/* Efeito de Fumaça Sutil para o Cafezinho */
.steam-container {
    display: none;
    position: absolute;
    bottom: 45%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
    pointer-events: none;
}

.steam-particle {
    width: 3px;
    height: 25px;
    background: linear-gradient(to top, rgba(231, 93, 11, 0.2), transparent);
    margin: 0 4px;
    display: inline-block;
    border-radius: 50%;
    animation: rise 3s ease-in-out infinite;
    filter: blur(2px);
}

.steam-particle:nth-child(2) {
    animation-delay: 0.8s;
}

.steam-particle:nth-child(3) {
    animation-delay: 1.5s;
}

@keyframes rise {
    0% {
        transform: translateY(10px) scaleX(0.5);
        opacity: 0;
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px) scaleX(1.2);
    }

    100% {
        transform: translateY(-35px) scaleX(0.3);
        opacity: 0;
    }
}

/* Bolhas para o Drink */
.bubble-container {
    display: none;
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.bubble {
    position: absolute;
    bottom: -20px;
    background-color: rgba(231, 93, 11, 0.15);
    border-radius: 50%;
    animation: float-up 6s infinite ease-in;
}

@keyframes float-up {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }

    50% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-110vh) translateX(30px);
        opacity: 0;
    }
}

/* ANIMAÇÕES EXCLUSIVAS DE LINHA FINA (FINE LINE ART) */
@keyframes drawIn {
    to {
        stroke-dashoffset: 0;
    }
}

.fine-line-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawIn 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Ondas Fluidas em Maresia */
@keyframes waveMotion {

    0%,
    100% {
        transform: translateY(0) scaleY(1);
    }

    50% {
        transform: translateY(4px) scaleY(0.95);
    }
}

.marine-wave {
    animation: waveMotion 5s ease-in-out infinite;
}

/* Balanço Elegante do Coqueiro */
@keyframes palmSway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(3deg) translateX(2px);
    }
}

.palm-sway {
    animation: palmSway 7s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Slosh do Drink ao carregar/loop */
@keyframes sloshDrink {

    0%,
    100% {
        transform: rotate(0deg) skewX(0deg);
    }

    50% {
        transform: rotate(-2deg) skewX(-2deg);
    }
}

.drink-liquid {
    transform-origin: center bottom;
    animation: sloshDrink 6s ease-in-out infinite;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Colher mexendo em movimento orbital */
@keyframes stirSpoon {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-8px, 6px) rotate(-6deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.spoon-stir {
    animation: stirSpoon 5s ease-in-out infinite;
    transform-origin: top center;
}

/* Ingredientes flutuando e emergindo */
@keyframes floatIngredient {

    0%,
    100% {
        transform: translateY(15px);
        opacity: 0.1;
    }

    50% {
        transform: translateY(-8px);
        opacity: 0.95;
    }
}

.feijoada-meat-1 {
    animation: floatIngredient 6s ease-in-out infinite;
}

.feijoada-meat-2 {
    animation: floatIngredient 6s ease-in-out infinite;
    animation-delay: 2s;
}

.feijoada-leaf {
    animation: floatIngredient 6s ease-in-out infinite;
    animation-delay: 4s;
}

/* Fumaça do Café Flutuando */
@keyframes floatSmoke {
    0% {
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(4px) scaleX(0.95);
    }

    30% {
        opacity: 0.8;
    }

    70% {
        opacity: 0.4;
    }

    100% {
        stroke-dashoffset: -160;
        opacity: 0;
        transform: translateY(-24px) scaleX(1.05);
    }
}

.coffee-smoke-line {
    stroke-dasharray: 80;
    animation: floatSmoke 6s linear infinite;
}

.smoke-1 {
    animation-delay: 0.5s;
}

.smoke-2 {
    animation-delay: 2.5s;
}

.smoke-3 {
    animation-delay: 4.5s;
}

.cursor-hover-active { transform: translate(-50%, -50%) scale(1.5) !important; background-color: var(--vibrantOrange, #FF5B00) !important; }

/* Marquee Animation Fallback */
@keyframes marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}
