/* Pearl's Place — Custom Styles */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Scroll Reveal Animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(85, 40, 61, 0.08);
}

.nav-scrolled .nav-link {
    color: rgb(125, 54, 87) !important;
}

.nav-scrolled .logo-text {
    color: rgb(46, 17, 31) !important;
}

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

::-webkit-scrollbar-track {
    background: rgb(250, 245, 247);
}

::-webkit-scrollbar-thumb {
    background: rgb(206, 164, 183);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(154, 69, 110);
}

/* Selection color */
::selection {
    background: rgb(253, 214, 163);
    color: rgb(46, 17, 31);
}

/* Image aspect ratio helpers */
.aspect-card {
    aspect-ratio: 4 / 3;
}

/* Subtle pattern for hero background */
.hero-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(253, 214, 163, 0.08) 1px, transparent 0);
    background-size: 40px 40px;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgb(251, 191, 36);
    outline-offset: 2px;
    border-radius: 4px;
}

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

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

/* Smooth image loading */
img {
    loading: lazy;
}

img[loading="eager"] {
    loading: eager;
}

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