/* Custom Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Quicksand:wght@400;500;600;700&display=swap');

/* Custom Properties */
:root {
    --color-coral-50: #fff5f0;
    --color-coral-100: #ffe4d6;
    --color-coral-200: #ffc4a8;
    --color-coral-300: #ff9f73;
    --color-coral-400: #ff7a45;
    --color-coral-500: #ff6b35;
    --color-coral-600: #e55a28;
    --color-cream-50: #fefdfb;
    --color-cream-100: #fdf8f0;
    --color-cream-200: #faf0e0;
    --color-charcoal-50: #f8f7f5;
    --color-charcoal-100: #f0eeeb;
    --color-charcoal-200: #e2ded8;
    --color-charcoal-300: #c8c2b8;
    --color-charcoal-400: #a09888;
    --color-charcoal-500: #857d6f;
    --color-charcoal-600: #6b6358;
    --color-charcoal-700: #524b43;
    --color-charcoal-800: #3d3730;
    --color-charcoal-900: #2a2520;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Quicksand', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fredoka', sans-serif;
}

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

::-webkit-scrollbar-track {
    background: var(--color-cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-coral-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-coral-500);
}

/* Selection Color */
::selection {
    background: var(--color-coral-200);
    color: var(--color-charcoal-900);
}

/* Animation Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Utility Classes */
.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-soft {
    animation: pulse-soft 2s ease-in-out infinite;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Card Hover Effects */
.menu-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-card:hover {
    transform: translateY(-8px);
}

/* Button Focus States */
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--color-coral-300);
    outline-offset: 2px;
}

/* Input Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Mobile Menu Animation */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 300px;
}

/* Image Loading Placeholder */
img {
    background: linear-gradient(90deg, var(--color-cream-100) 25%, var(--color-cream-200) 50%, var(--color-cream-100) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

img[src] {
    animation: none;
    background: none;
}
