/* Custom styles for Waxhaw Creamery */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d4a843;
}

/* Selection color */
::selection {
    background: rgba(212, 168, 67, 0.3);
    color: #fff;
}

/* Scroll reveal base - progressive enhancement */
.scroll-reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Gold gradient text utility */
.text-transparent.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

/* Navbar scroll state */
.navbar-scrolled {
    background: rgba(5, 5, 5, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Card hover effects */
.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

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

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

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

/* Floating card animations */
@media (prefers-reduced-motion: no-preference) {
    .absolute.top-0.right-0 {
        animation: float1 6s ease-in-out infinite;
    }
    .absolute.top-32.left-0 {
        animation: float2 7s ease-in-out infinite;
    }
    .absolute.bottom-8.right-8 {
        animation: float3 5s ease-in-out infinite;
    }
}

@keyframes float1 {
    0%, 100% { transform: rotate(3deg) translateY(0px); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: rotate(-2deg) translateY(0px); }
    50% { transform: rotate(-2deg) translateY(-8px); }
}

@keyframes float3 {
    0%, 100% { transform: rotate(1deg) translateY(0px); }
    50% { transform: rotate(1deg) translateY(-6px); }
}

/* Image aspect ratios */
img {
    max-width: 100%;
    height: auto;
}

/* Prevent layout shift */
.h-56 {
    position: relative;
}

.h-56 img {
    position: absolute;
    inset: 0;
}

/* Print styles */
@media print {
    nav, #contact, button {
        display: none;
    }
    body {
        background: white;
        color: black;
    }
}
