/* ============================================
   Company Coffee — 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: #f5f5f4;
}
::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* Selection */
::selection {
    background: #d4a574;
    color: #1a2d4a;
}

/* Navbar */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(26, 45, 74, 0.08);
}

#navbar.scrolled .font-display {
    color: #1a2d4a;
}

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open {
    opacity: 1;
    pointer-events: all;
}

/* Hero image hover */
#hero .relative.rounded-3xl {
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.absolute.-top-4.-right-4 {
    animation: float 4s ease-in-out infinite 1s;
}

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

/* Section reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-stagger.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.reveal-stagger.revealed > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }

/* Menu card hover */
#menu .bg-white.rounded-3xl,
#menu .bg-navy-800.rounded-3xl {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

#menu .bg-white.rounded-3xl:hover,
#menu .bg-navy-800.rounded-3xl:hover {
    transform: translateY(-4px);
}

/* Gallery images */
#gallery img {
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Button focus */
a:focus-visible, button:focus-visible {
    outline: 2px solid #d4a574;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal, .reveal-stagger > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .absolute.-bottom-6.-left-6,
    .absolute.-top-4.-right-4 {
        animation: none;
    }
    #gallery img {
        transition: none;
    }
}

/* Tablet */
@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    .absolute.-bottom-6.-left-6 {
        display: none;
    }
}

/* Small phones */
@media (max-width: 380px) {
    #hero h1 {
        font-size: 2.25rem;
    }

    .font-display.text-4xl {
        font-size: 2rem;
    }
}
