/* ============================================
   Folly Fossils N Art — Custom Styles
   ============================================ */

/* Base & Typography */
html {
    scroll-behavior: smooth;
}

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

/* Scroll Reveal (progressive enhancement — only active when JS runs) */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-scrolled .nav-link {
    color: #475569 !important;
}

.nav-scrolled .nav-link:hover {
    color: #0d9488 !important;
}

.nav-scrolled #navbar a .font-display,
.nav-scrolled .font-display {
    color: #1e293b !important;
}

/* Mobile menu transitions */
#mobile-menu {
    transition: opacity 0.3s ease, transform 0.3s ease, pointer-events 0.3s ease;
}

#mobile-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Selection color */
::selection {
    background: #ccfbf1;
    color: #134e4a;
}

/* Focus styles */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Smooth image loading */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Button hover glow */
button:hover,
a:hover {
    transition: all 0.2s ease;
}

/* Card image zoom container */
.group:hover .group-hover\:scale-105 {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Subtle pulse for CTA */
@keyframes pulse-subtle {
    0%, 100% { box-shadow: 0 4px 20px rgba(13, 148, 136, 0.2); }
    50% { box-shadow: 0 4px 30px rgba(13, 148, 136, 0.35); }
}

/* Map container aspect ratio */
iframe {
    border-radius: 0 0 1rem 1rem;
}

/* Print styles */
@media print {
    nav, #mobile-menu, .scroll-reveal { display: none !important; }
    body { color: #000; background: #fff; }
    a { color: #000; }
}
