/* Custom styles for Custer's Cookie Corner */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #fdf8f4;
}
::-webkit-scrollbar-thumb {
    background: #c9b99a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #722F37;
}

/* Floating card animations */
.floating-card-1 {
    animation: float1 6s ease-in-out infinite;
}
.floating-card-2 {
    animation: float2 7s ease-in-out infinite;
}
.floating-card-3 {
    animation: float3 5s ease-in-out infinite;
}

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

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

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

/* Reveal animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transition */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(114, 47, 55, 0.08);
}

.nav-transparent {
    background: transparent !important;
}

.nav-transparent .font-playfair,
.nav-transparent .font-cormorant,
.nav-transparent .menu-line {
    color: #fefcfb;
}

/* Mobile menu */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* Button hover effects */
a {
    text-decoration: none;
}

/* Image loading placeholder */
img {
    background: linear-gradient(135deg, #f5e0cc 0%, #fce7eb 100%);
}

/* Selection color */
::selection {
    background: #722F37;
    color: #fefcfb;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #722F37;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Hero text shadow for readability */
#hero h1 {
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

#hero p {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.2);
}

/* Decorative divider */
.divider-ornament {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.divider-ornament::before,
.divider-ornament::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e8c4b8, transparent);
}
