:root {
    --glass-border: rgba(61, 56, 48, 0.05);
    --shadow-soft: 0 20px 40px -15px rgba(61, 56, 48, 0.08);
}

body {
    background-color: #f6f7f2;
    color: #3d3830;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-4px);
    box-shadow: 0 30px 50px -15px rgba(61, 56, 48, 0.12);
}

.glass-card-dark {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
}

.glass-card-dark:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 30px 50px -15px rgba(0, 0, 0, 0.4);
}

.logo-container {
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-container:hover {
    transform: scale(1.02);
}

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.grid-bg {
    background-image: radial-gradient(rgba(152, 162, 133, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* Ticker para as bandeiras da marca */
.scrolling-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: #98a28a;
    color: #f6f7f2;
    padding: 12px 0;
}

.scrolling-text {
    display: inline-block;
    animation: scroll 35s linear infinite;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Base custom utilities */
.text-balance {
    text-wrap: balance;
}

/* Navigation fade transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #3d3830;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Before / After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 32px;
    touch-action: pan-y;
    /* Permite scroll vertical, previne horizontal durante o arraste */
    user-select: none;
    -webkit-user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.ba-before {
    z-index: 5;
}

.ba-after {
    z-index: 10;
    clip-path: inset(0 50% 0 0);
    /* Oculta a metade direita (que mostra o 'antes') */
}

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #f6f7f2;
    z-index: 20;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.ba-handle::after {
    content: '< >';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #98a28a;
    color: #98a28a;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(61, 56, 48, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -1px;
}

/* Manifesto Styles */
.manifesto-bg {
    background-color: #3d3830;
    color: #f6f7f2;
}

.text-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.flag-card {
    border-bottom: 1px solid rgba(61, 56, 48, 0.1);
    transition: all 0.3s ease;
}

.flag-card:hover {
    background-color: #98a28a;
    color: #f6f7f2;
    padding-left: 20px;
}

/* Mobile Scroll Reveal Effects */
@media (max-width: 1023px) {
    .is-active.group img {
        mix-blend-mode: normal !important;
        opacity: 1 !important;
        transform: scale(1) !important;
    }

    .is-active.group div[class*="bg-gradient-to-t"] {
        opacity: 0.95 !important;
    }

    /* Para os cards de tecnologia/corporal (light cards) */
    .is-active.group.bg-white {
        border-color: rgba(152, 162, 138, 0.4) !important;
        box-shadow: 0 30px 60px -15px rgba(61, 56, 48, 0.15) !important;
    }

    .is-active.group img.grayscale {
        filter: grayscale(0) !important;
        transform: scale(1) !important;
    }
}

/* ===== EQUIPE CAROUSEL INFINITO (Mobile) ===== */
#equipe-carousel {
    -webkit-overflow-scrolling: touch;
}

.equipe-carousel-track {
    animation: none;
}

#equipe-carousel::-webkit-scrollbar {
    display: none;
}

#equipe-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* ===== REVEAL SYSTEM (Elegant Entrance) ===== */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(30px);
}

.reveal-down {
    transform: translateY(-30px);
}

.reveal-left {
    transform: translateX(30px);
}

.reveal-right {
    transform: translateX(-30px);
}

.revealed {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Staggered Delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Glass Reveal para Cards */
.glass-reveal {
    backdrop-filter: blur(0px);
    background: rgba(255, 255, 255, 0);
    transition: all 1.5s ease;
}

.revealed.glass-reveal {
    backdrop-filter: blur(10px);
}