/* ===== Custom Styles for Destination Cafe ===== */

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

body {
    background-color: #0A0A0A;
    color: #F5EDE0;
}

/* Selection */
::selection {
    background: #C9A84C;
    color: #0A0A0A;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #111111;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #E2C97E;
}

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

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

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

#mobile-menu.open #bar1 {
    transform: rotate(45deg) translate(4px, 4px);
}
#mobile-menu.open #bar2 {
    opacity: 0;
}
#mobile-menu.open #bar3 {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
    margin-left: 0;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

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

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Hero ===== */
#hero {
    position: relative;
}

/* ===== Menu Section ===== */
#menu .border-b {
    border-image: linear-gradient(to right, rgba(201, 168, 76, 0.3), transparent) 1;
}

/* ===== Gallery Hover ===== */
.group:hover .group-hover\:scale-105 {
    transform: scale(1.05);
}

/* ===== Image lazy load placeholder ===== */
img {
    background-color: #1A1A1A;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .reveal,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
        transition: none;
    }
    img {
        transition: none;
    }
}

/* ===== Focus visible ===== */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #C9A84C;
    outline-offset: 4px;
    border-radius: 2px;
}

/* ===== Smooth image loading ===== */
img {
    image-rendering: auto;
}

/* ===== Gold shimmer on hover for CTA ===== */
.bg-dc-gold:hover {
    background: #E2C97E !important;
}

/* ===== Subtle pattern overlay for dark sections ===== */
section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 20% 50%, rgba(196, 98, 58, 0.03) 0%, transparent 60%),
                      radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

section > * {
    position: relative;
    z-index: 1;
}
