/* ========================================
   Cafe Supremo — Custom Styles
   Premium Dark Luxury Theme
   ======================================== */

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

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

body {
    overflow-x: hidden;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0d0a08;
}
::-webkit-scrollbar-thumb {
    background: #3d2e28;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #4a3830;
}

/* --- Selection --- */
::selection {
    background: rgba(196, 112, 79, 0.3);
    color: #faf5f0;
}

/* --- Hero floating cards --- */
.card-float {
    animation: float1 6s ease-in-out infinite;
}
.card-float-2 {
    animation: float2 7s ease-in-out infinite;
}
.card-float-3 {
    animation: float4 5.5s ease-in-out infinite;
}
.card-float-4 {
    animation: float3 6.5s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}
@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-14px); }
}
@keyframes float4 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* --- Navbar --- */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 10, 8, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 180, 144, 0.06), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- Tab buttons --- */
.tab-btn {
    color: #dcc4a8;
    background: transparent;
}
.tab-btn.active {
    color: #0d0a08;
    background: linear-gradient(135deg, #c4704f, #d4896a);
    box-shadow: 0 4px 15px rgba(196, 112, 79, 0.3);
}
.tab-btn:not(.active):hover {
    color: #faf5f0;
    background: rgba(212, 180, 144, 0.08);
}

/* --- Menu hover lines --- */
.menu-panel > div > div:first-child h3 span,
.menu-panel > div:last-child h3 span {
    transition: width 0.3s ease;
}

/* --- Reveal animations (progressive enhancement) --- */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        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);
    }
}

/* Fallback: always visible if JS disabled or reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* --- Mobile menu --- */
#mobile-menu {
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Form focus styles --- */
input:focus, select:focus, textarea:focus {
    outline: none;
}

/* --- Image hover containers --- */
.rounded-2xl.overflow-hidden,
.aspect-\[4\/5\].rounded-3xl.overflow-hidden {
    position: relative;
    overflow: hidden;
}

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
    .card-float, .card-float-2, .card-float-3, .card-float-4 {
        animation: none;
    }
}

/* --- Subtle grain texture overlay --- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    z-index: 9999;
}
