/* Oficina Latina Solutions — Custom Styles */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

/* Reveal animations — progressive enhancement via JS */
.reveal-item {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal-item {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    }

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

    /* Stagger delays */
    .reveal-item[data-delay="100"] { transition-delay: 0.1s; }
    .reveal-item[data-delay="200"] { transition-delay: 0.2s; }
    .reveal-item[data-delay="300"] { transition-delay: 0.3s; }
    .reveal-item[data-delay="400"] { transition-delay: 0.4s; }
    .reveal-item[data-delay="500"] { transition-delay: 0.5s; }
}

/* Navbar scroll state */
.nav {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(254, 252, 248, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(26, 19, 16, 0.08);
}

/* Nav links underline effect */
.nav-link {
    position: relative;
}

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

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

/* Mobile menu transitions */
#mobileMenu.open {
    opacity: 1;
    pointer-events: auto;
}

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Hero stats counter animation */
.counter {
    display: inline-block;
}

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

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

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

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

/* Selection color */
::selection {
    background: #e9b0a3;
    color: #1a1310;
}

/* Form focus styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Print styles */
@media print {
    .nav,
    #mobileMenu,
    .reveal-item {
        transition: none !important;
    }

    .no-print {
        display: none !important;
    }
}
