/* Custom styles for Zaro's Cafe */

:root {
    --color-burgundy-950: #3f071b;
    --color-burgundy-900: #701637;
    --color-burgundy-800: #84163b;
    --color-burgundy-700: #a11743;
    --color-burgundy-600: #c52155;
    --color-burgundy-200: #f9cfd8;
    --color-blush-50: #fef7f5;
    --color-blush-100: #fdeee9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

::-webkit-scrollbar-thumb {
    background: #c52155;
    border-radius: 4px;
}

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

/* Smooth transitions for all interactive elements */
a, button {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Navigation transitions */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c52155;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-link.active {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Image hover effects */
img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Section spacing */
section {
    position: relative;
}

/* Typography refinements */
.font-serif {
    letter-spacing: -0.01em;
}

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

/* Reduced motion preference */
@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;
    }
}

/* Fade-in animations for scroll sections */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Stagger children animations */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-children.animated > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.animated > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children.animated > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children.animated > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children.animated > *:nth-child(5) { transition-delay: 0.4s; }

.stagger-children.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    .font-serif {
        letter-spacing: 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    html {
        font-size: 17px;
    }
}

@media (min-width: 1025px) {
    html {
        font-size: 18px;
    }
}

/* Loading state for images */
img {
    background-color: #fdeee9;
}
