/* ============================================
   KINGSVILLE COFFEE CUP — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection */
::selection {
    background: #e06030;
    color: #FDF8F0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e06030;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c94a1f;
}

/* ============================================
   MARQUEE ANIMATION
   ============================================ */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

.animate-marquee:hover {
    animation-play-state: paused;
}

/* ============================================
   NAVBAR
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

/* ============================================
   MOBILE MENU
   ============================================ */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   (progressive enhancement — content visible
    by default, animated state added by JS)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

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

/* Reduced motion: no transitions */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   UTILITY ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(12deg); }
    50% { transform: translateY(-12px) rotate(12deg); }
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0deg); }
}

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

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

/* ============================================
   IMAGE HOVER EFFECTS
   ============================================ */
img {
    max-width: 100%;
    height: auto;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .animate-marquee {
        animation-duration: 20s;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    #hero h1 {
        font-size: clamp(3rem, 8vw, 5rem);
    }
}

/* ============================================
   FOCUS STYLES (Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #e06030;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    #navbar, .animate-marquee, #mobile-menu {
        display: none !important;
    }
    body {
        background: white !important;
        color: black !important;
    }
}
