/* L & K Cafe - Custom Styles */

/* Base typography refinements */
h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Smooth image loading */
img {
    image-rendering: auto;
    image-rendering: -webkit-optimize-contrast;
}

/* Selection color */
::selection {
    background-color: #ff6a3e;
    color: white;
}

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

/* Navbar scroll state */
.navbar-scrolled {
    background-color: rgba(246, 246, 247, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(18, 17, 21, 0.08);
}

/* Mobile menu open state */
.mobile-menu-open #mobile-menu {
    transform: translateX(0);
}

.mobile-menu-open #bar1 {
    transform: translateY(5px) rotate(45deg);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.5rem;
}

/* Product card hover */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* Custom button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for sections */
.section-pattern {
    background-image: radial-gradient(circle at 1px 1px, rgba(18, 17, 21, 0.03) 1px, transparent 0);
    background-size: 24px 24px;
}

/* Hero image parallax feel (CSS only) */
@supports (background-attachment: fixed) {
    .hero-bg-fixed {
        background-attachment: fixed;
    }
}

/* 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;
    }
    
    .reveal-up {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Print styles */
@media print {
    nav,
    #hero .scroll-indicator,
    .reveal-up {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-charcoal-900 {
        background-color: #f5f5f5 !important;
    }
}

/* High contrast mode support */
@media (forced-colors: active) {
    .bg-coral-600 {
        background-color: ButtonText;
    }
    
    .text-coral-600 {
        color: ButtonText;
    }
}

/* Tablet and up adjustments */
@media (min-width: 768px) {
    .font-serif-display {
        font-feature-settings: 'salt', 'calt';
    }
}
