/* ============================================
   SPANKY'S — Café & Bar
   Custom Styles & Animations
   ============================================ */

/* Base Reset & Typography */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #d4572a;
    color: #FDF9F0;
}

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

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

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

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

/* ============================================
   Navigation
   ============================================ */
#navbar {
    transition: background-color 0.5s ease, box-shadow 0.5s ease, padding 0.5s ease;
}

#navbar.scrolled {
    background-color: rgba(253, 249, 240, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(60, 36, 21, 0.08);
}

#navbar.scrolled .font-serif {
    color: #d4572a;
}

#navbar.scrolled a:not(.bg-terracotta-600) {
    color: rgba(60, 36, 21, 0.8) !important;
}

/* ============================================
   Hero Section
   ============================================ */
#hero {
    position: relative;
}

#hero .lg\\:col-span-7 {
    will-change: transform;
}

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

.absolute.-bottom-6.-left-6 {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   Section Reveal Animations
   (Progressive Enhancement — hidden by default)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    
    .reveal.hidden-reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* ============================================
   Button & Link Hover Effects
   ============================================ */
a {
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   Image Hover Zoom
   ============================================ */
.group:hover .group-hover\\:scale-105 {
    transform: scale(1.05);
}

/* ============================================
   Mobile Menu
   ============================================ */
#mobile-menu {
    animation: slideDown 0.3s ease;
}

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

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 767px) {
    .font-serif {
        line-height: 1.15;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
    
    #hero h1 span {
        display: block;
        margin-top: 0.25rem;
    }
    
    .lg\\:col-start-9 {
        margin-top: 2rem;
    }
    
    .absolute.-bottom-6.-left-6 {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    #hero h1 {
        font-size: 3.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    #navbar,
    .absolute.bottom-8,
    #mobile-menu {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .bg-cream,
    .bg-white,
    .bg-sand-50 {
        background: #fff !important;
    }
}
