/* ============================================
   CALIFORNIA KITCHEN — Premium Dark Luxury
   ============================================ */

/* CSS Custom Properties */
:root {
    --color-emerald-950: #052e16;
    --color-dark-950: #0a0a0a;
    --color-dark-900: #111111;
    --color-dark-800: #1a1a1a;
    --color-gold-400: #e2bc5a;
    --color-gold-500: #d4a03f;
    --color-cream-50: #fefdf8;
    --color-cream-100: #fdf9ef;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}

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

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

body {
    background-color: var(--color-dark-950);
    color: var(--color-cream-50);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-dark-950);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-500/30);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-500/50);
}

/* Selection */
::selection {
    background: var(--color-gold-500/30);
    color: var(--color-cream-50);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-reserve {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--color-gold-500) 0%, var(--color-gold-400) 100%);
    color: var(--color-dark-950);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-reserve::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-gold-400) 0%, #f0d48a 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-reserve:hover::before {
    opacity: 1;
}

.btn-reserve:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(212, 160, 63, 0.2), 0 8px 20px rgba(212, 160, 63, 0.1);
}

.btn-reserve span,
.btn-reserve svg {
    position: relative;
    z-index: 1;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--color-gold-400);
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 1px solid var(--color-gold-500/40);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline:hover {
    background: var(--color-gold-500/10);
    border-color: var(--color-gold-400);
    transform: translateY(-2px);
}

/* ============================================
   INPUTS
   ============================================ */
.input-field {
    background: var(--color-dark-950);
    border: 1px solid rgba(212, 160, 63, 0.15);
    border-radius: 2px;
    padding: 0.875rem 1rem;
    color: var(--color-cream-50);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    transition: all 0.3s ease;
    outline: none;
}

.input-field::placeholder {
    color: rgba(253, 249, 239, 0.25);
}

.input-field:hover {
    border-color: rgba(212, 160, 63, 0.35);
}

.input-field:focus {
    border-color: var(--color-gold-500);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 160, 63, 0.1);
}

/* ============================================
   NAVIGATION
   ============================================ */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 63, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold-400);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-gold-400);
}

/* Mobile Menu */
#mobile-menu {
    z-index: 50;
}

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

.mobile-link {
    position: relative;
}

.menu-line {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-bg {
    will-change: transform;
}

.hero-img {
    transition: transform 8s ease;
}

.hero-bg:hover .hero-img {
    transform: scale(1.02);
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-up {
    animation-name: fadeUp;
    animation-duration: 0.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    animation-iteration-count: 1;
}

/* Reveal on Scroll */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   MENU ITEMS
   ============================================ */
.group/item:hover .font-display {
    color: var(--color-gold-400);
    transition: color 0.3s ease;
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    overflow: hidden;
    border-radius: 2px;
}

.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ============================================
   DIVIDER
   ============================================ */
.divider-gold {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-500), transparent);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
    
    .btn-reserve,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
    
    .hero-cta {
        flex-direction: column;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }
}

/* Focus visible */
*:focus-visible {
    outline: 2px solid var(--color-gold-500);
    outline-offset: 2px;
}
