/* ============================================
   CA Cafe — Custom Styles
   Fresh & Airy | Plum + Amber Palette
   ============================================ */

/* --- Global --- */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: #d4a3b8;
    color: #2e1220;
}

/* --- Floating Card Animations --- */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

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

.floating-card-delayed {
    animation: float-delayed 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* --- Navbar Scroll State --- */
.nav-scrolled {
    background-color: rgba(250, 245, 247, 0.95) !important;
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 20px rgba(118, 49, 82, 0.08);
}

.nav-scrolled .nav-link {
    color: #7a3152 !important;
}

.nav-scrolled .nav-link:hover {
    color: #a85478 !important;
}

/* --- Mobile Menu --- */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #a85478, #fbbf24);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* --- Button Hover Effects --- */
a[href="#menu"],
a[href="#visit"],
a[href="#contact"] {
    position: relative;
}

/* --- Form Focus Styles --- */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(168, 84, 120, 0.15);
}

/* --- Image Hover --- */
img {
    transition: transform 0.5s ease;
}

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

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

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

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

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .floating-card-delayed {
        display: none;
    }
}

/* --- Print Styles --- */
@media print {
    nav, .floating-card, .floating-card-delayed, #contactForm {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
}
