/* Custom styles for Amor y Pan */

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

/* Scroll reveal base - content always visible by default */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animation class added by JS */
.reveal.animated {
    opacity: 0;
    transform: translateY(30px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    html {
        scroll-behavior: auto;
    }
    .hover\\:scale-105:hover {
        transform: none !important;
    }
}

/* Navbar glass effect */
.nav-glass {
    background: rgba(253, 248, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(6, 78, 59, 0.08);
    box-shadow: 0 1px 20px rgba(6, 78, 59, 0.06);
}

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

/* Mobile menu */
#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Subtle texture for cream sections */
.bg-cream-50 {
    background-image: radial-gradient(ellipse at 20% 50%, rgba(6, 78, 59, 0.02) 0%, transparent 50%),
                      radial-gradient(ellipse at 80% 20%, rgba(217, 119, 6, 0.02) 0%, transparent 50%);
}

/* Selection color */
::selection {
    background: rgba(6, 78, 59, 0.15);
    color: #064E3B;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #064E3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #047857;
}

/* Focus visible styles */
*:focus-visible {
    outline: 2px solid #D97706;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Button press animation */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* Select dropdown arrow */
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23D97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
