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

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

body {
    overflow-x: hidden;
}

/* Navbar */
.navbar-scrolled #navbar {
    background: rgba(250, 245, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(107, 47, 91, 0.08);
}

.navbar-scrolled .nav-logo-text {
    color: #6B2F5B;
}

.navbar-scrolled .nav-link {
    color: #6B2F5B;
}

/* Mobile Menu */
.mobile-menu-open #mobile-menu {
    opacity: 1;
    pointer-events: all;
}

.menu-open .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    width: 1.25rem;
}

/* Floating Card Animations */
@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); }
    50% { transform: translateY(-15px); }
}

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

.floating-card {
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.card-coffee {
    animation: float-1 6s ease-in-out infinite;
}

.card-pastry {
    animation: float-2 5s ease-in-out infinite;
    animation-delay: -1s;
}

.card-award {
    animation: float-3 7s ease-in-out infinite;
    animation-delay: -2s;
}

.card-hours {
    animation: float-4 5.5s ease-in-out infinite;
    animation-delay: -0.5s;
}

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

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

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

/* Menu Card Hover */
.menu-card {
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* Scroll Reveal (below fold only) */
.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);
}

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

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

/* Selection */
::selection {
    background: #6B2F5B;
    color: #fffbeb;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #6B2F5B;
}

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #6B2F5B;
    outline-offset: 2px;
    border-radius: 4px;
}
