/* Base & utilities */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: #F59E0B;
    color: #1a0d20;
}

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

/* Only apply hidden state when JS adds the class and motion is preferred */
@media (prefers-reduced-motion: no-preference) {
    .reveal.is-hidden {
        opacity: 0;
        transform: translateY(30px);
    }
}

/* Navbar transition states */
.nav-scrolled {
    background: rgba(26, 13, 32, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a0d20;
}
::-webkit-scrollbar-thumb {
    background: #5B2C6F;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #7c3aed;
}

/* Subtle grain texture overlay for hero */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

/* Product card hover glow */
.group:hover .bg-plum-100,
.group:hover .bg-amber-100 {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.group .w-10 {
    transition: transform 0.3s ease;
}

/* Button focus visible */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #F59E0B;
    outline-offset: 2px;
}

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

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

/* Subtle parallax for hero on scroll */
#hero .absolute.inset-0 img {
    will-change: transform;
}

/* Counter animation helper */
.font-serif.text-3xl {
    transition: opacity 0.3s ease;
}

/* Smooth image loading */
img {
    image-rendering: -webkit-optimize-contrast;
}

/* Print styles */
@media print {
    nav, #contact, #hero::before {
        display: none;
    }
    body {
        color: #000;
        background: #fff;
    }
}
