/* Custom styles for Donut Delite */

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

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

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

::-webkit-scrollbar-thumb {
    background: #d95a42;
    border-radius: 5px;
}

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

/* Animation for scroll reveal (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }
    
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure mobile menu is accessible */
#mobile-menu {
    display: none;
}

#mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease-out;
}

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

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

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

/* Prevent layout shift */
img {
    object-fit: cover;
}

/* Navbar scroll effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Hover effects for cards */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom selection color */
::selection {
    background-color: #f7d1c9;
    color: #70281d;
}

/* Ensure contrast on all backgrounds */
.bg-sand-50 {
    background-color: #fefdfb;
}

.bg-sand-100 {
    background-color: #fdf9f0;
}

/* Button hover states */
button, a {
    transition: all 0.2s ease-in-out;
}

/* Form styles (if needed) */
input, textarea {
    border: 2px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #d95a42;
    box-shadow: 0 0 0 3px rgba(217, 90, 66, 0.1);
}
