/* Custom styles for Murillo's Financial Center */

:root {
    --burgundy-50: #fdf2f4;
    --burgundy-100: #fce7eb;
    --burgundy-200: #fad0d9;
    --burgundy-300: #f5a8bc;
    --burgundy-400: #ed708e;
    --burgundy-500: #e03d5e;
    --burgundy-600: #c42444;
    --burgundy-700: #a11733;
    --burgundy-800: #841631;
    --burgundy-900: #71162e;
    --burgundy-950: #3d0712;
}

* {
    scroll-behavior: smooth;
}

html {
    scroll-padding-top: 80px;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveal delays */
.scroll-reveal:nth-child(1) { transition-delay: 0.05s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.15s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.25s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.35s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.45s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.55s; }

/* Floating card animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(0.5deg); }
}

.floating-card-1 {
    animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
    animation: float-slow 7s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-card-3 {
    animation: float 5.5s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-card-4 {
    animation: float-slow 6.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(254, 246, 246, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(132, 22, 49, 0.08);
}

.nav-scrolled .font-serif {
    color: #841631 !important;
}

.nav-scrolled .text-stone-500 {
    color: #6b7280 !important;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .floating-card-1,
    .floating-card-2,
    .floating-card-3,
    .floating-card-4 {
        animation: none;
    }

    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
    background: #d4a8a8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c42444;
}

/* Selection color */
::selection {
    background: rgba(132, 22, 49, 0.15);
    color: #3d0712;
}
