/* Custom styles for Raspas & More */

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

/* Scroll reveal base - content visible by default */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Scroll reveal for above-fold content (no animation needed) */
.scroll-reveal[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal[data-reveal] {
        opacity: 1;
        transform: translateY(0);
    }
    html {
        scroll-behavior: auto;
    }
}

/* Navbar styles */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

#navbar.scrolled .font-display {
    color: rgb(140, 37, 37) !important;
}

/* Hero section adjustments */
#hero {
    scroll-margin-top: 0;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #c43b3b, #f54d74);
    border-radius: 4px;
}

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

/* Selection color */
::selection {
    background: #f9c5c5;
    color: #5a1818;
}

/* Mobile menu transitions */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Pulse animation for badge */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: soft-pulse 2s ease-in-out infinite;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #ffe8ec 0%, #fde4e4 100%);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #c43b3b;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile menu active link */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #c43b3b, #f54d74);
    transition: width 0.3s ease;
}

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

/* Map container responsive */
#visit iframe {
    border-radius: 1.5rem;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.75rem;
    }
    
    #hero h1 span {
        font-size: 2.5rem;
    }
}
