/* ===================================
   Mountie Cafe — Custom Styles
   =================================== */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf7f0;
}
::-webkit-scrollbar-thumb {
    background: #8fb982;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3d7a2e;
}

/* Selection */
::selection {
    background: #3d7a2e;
    color: #fdfcfa;
}

/* Focus */
:focus-visible {
    outline: 3px solid #8fb982;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Nav scroll state */
.navbar-scrolled {
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

/* Hero image zoom on scroll */
.hero-bg {
    will-change: transform;
}

/* Button ripple effect */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

/* Card hover lift */
.card-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Menu item hover */
.menu-item-row {
    transition: background-color 0.2s ease;
}
.menu-item-row:hover {
    background-color: rgba(143, 185, 130, 0.06);
}

/* Image hover zoom */
.img-zoom {
    overflow: hidden;
    border-radius: 1rem;
}
.img-zoom img {
    transition: transform 0.6s ease;
}
.img-zoom:hover img {
    transform: scale(1.05);
}

/* Mobile menu animation */
.mobile-menu-enter {
    animation: slideDown 0.3s ease forwards;
}
.mobile-menu-exit {
    animation: slideUp 0.2s ease forwards;
}

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

/* Scroll Reveal (progressive enhancement) */
.reveal-item {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-scroll-enabled .reveal-item {
    opacity: 0;
    transform: translateY(24px);
}

.js-scroll-enabled .reveal-item.revealed {
    opacity: 1;
    transform: none;
}

/* Stagger children */
.js-scroll-enabled .reveal-item:nth-child(1) { transition-delay: 0.05s; }
.js-scroll-enabled .reveal-item:nth-child(2) { transition-delay: 0.1s; }
.js-scroll-enabled .reveal-item:nth-child(3) { transition-delay: 0.15s; }
.js-scroll-enabled .reveal-item:nth-child(4) { transition-delay: 0.2s; }
.js-scroll-enabled .reveal-item:nth-child(5) { transition-delay: 0.25s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal-item,
    .js-scroll-enabled .reveal-item {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .img-zoom img { transition: none; }
    .animate-bounce { animation: none; }
}

/* Mobile specific */
@media (max-width: 767px) {
    .font-display {
        line-height: 1.2;
    }
}
