/* ========================================
   Chapter II Coffee — Custom Styles
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(232, 115, 74, 0.3);
    color: #f5f5f4;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0a0908;
}
::-webkit-scrollbar-thumb {
    background: #292524;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #44403c;
}

/* Floating Cards Animation */
@keyframes float-1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
}
@keyframes float-2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
}
@keyframes float-3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(0.3deg); }
}

.floating-card {
    will-change: transform;
}
.card-1 { animation: float-1 5s ease-in-out infinite; }
.card-2 { animation: float-2 4.5s ease-in-out infinite; }
.card-3 { animation: float-3 6s ease-in-out infinite; }

/* Reveal Animations (progressive enhancement) */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar transitions */
.nav-scrolled {
    background: rgba(10, 9, 8, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(41, 37, 36, 0.5);
}

.nav-transparent {
    background: transparent !important;
    border-bottom: 1px solid transparent !important;
}

/* Mobile menu */
.mobile-link {
    display: block;
    padding: 0.5rem 0;
    font-size: 1rem;
    font-weight: 400;
    color: #a8a29e;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: #f4845f;
}

.mobile-link:active {
    color: #f4a08a;
}

/* Menu card hover glow */
.group:hover .group-hover\:bg-coral-500\/25 {
    background-color: rgba(232, 115, 74, 0.25);
}

.group:hover .group-hover\:bg-gold-500\/25 {
    background-color: rgba(212, 168, 67, 0.25);
}

/* Image hover zoom container */
.rounded-2xl.overflow-hidden {
    position: relative;
}

.rounded-2xl.overflow-hidden img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Button focus styles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #E8734A;
    outline-offset: 2px;
}

/* Form focus states */
input:focus,
textarea:focus {
    border-color: rgba(232, 115, 74, 0.5) !important;
    box-shadow: 0 0 0 1px rgba(232, 115, 74, 0.2) !important;
}

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

/* Print styles */
@media print {
    nav, #gallery, .floating-card { display: none; }
    body { background: white; color: black; }
}
