/* ============================================
   Koupe Dwet Take Out Restaurant — Custom Styles
   ============================================ */

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

body {
    overflow-x: hidden;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F4;
}
::-webkit-scrollbar-thumb {
    background: #7B2D3B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c02245;
}

/* --- Animation Keyframes --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes floatDelay {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.03);
    }
}

/* --- Hero Animations (above fold — always visible) --- */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: floatDelay 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* --- Scroll Reveal (below fold only) --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Start hidden for scroll-reveal elements (progressive enhancement) */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Navbar --- */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #7B2D3B;
    transition: width 0.3s ease;
}

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

/* Dark navbar state */
nav.scrolled .nav-logo-text {
    color: #7B2D3B;
}

nav.scrolled .nav-link {
    color: #5c1f2b;
}

nav.scrolled .nav-link::after {
    background: #c02245;
}

/* --- Mobile Menu --- */
.mobile-menu-link {
    position: relative;
}

/* --- Button Hover Effects --- */
a:hover {
    transition: all 0.3s ease;
}

/* --- Image Hover Zoom Container --- */
.group:hover .group-hover\:scale-110 {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Testimonial Card --- */
.bg-cream {
    transition: box-shadow 0.5s ease;
}

/* --- Selection Color --- */
::selection {
    background: #7B2D3B;
    color: #FDF8F4;
}

/* --- Focus Styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #7B2D3B;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Responsive Tweaks --- */
@media (max-width: 768px) {
    html {
        scroll-behavior: auto;
    }

    #hero {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* --- Print Styles --- */
@media print {
    nav, #mobile-menu-btn, .animate-float, .animate-float-delay {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
    }
}
