/* === Base & Utilities === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(196, 97, 58, 0.3);
    color: #e8d5c0;
}

/* === Scrollbar === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a120e;
}
::-webkit-scrollbar-thumb {
    background: #3d2e24;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c8956c;
}

/* === Navbar === */
.nav-scrolled {
    background: rgba(13, 10, 7, 0.92) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(200, 149, 108, 0.08);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .font-display {
    color: #e8d5c0 !important;
}

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

.menu-line.active:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
}
.menu-line.active:nth-child(2) {
    opacity: 0;
}
.menu-line.active:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 1.5rem;
}

/* === Hero Image Float === */
.hero-image-float {
    animation: float 6s ease-in-out infinite;
}

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

/* === Scroll Reveal (progressive enhancement) === */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
        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);
    }
    .reveal-delay-1 { transition-delay: 0.1s; }
    .reveal-delay-2 { transition-delay: 0.2s; }
    .reveal-delay-3 { transition-delay: 0.3s; }
    .reveal-delay-4 { transition-delay: 0.4s; }
}

/* === Menu Item Hover === */
.menu-item-row {
    transition: all 0.3s ease;
}
.menu-item-row:hover {
    padding-left: 8px;
}
.menu-item-row:hover .menu-item-name {
    color: #c8956c;
}

/* === Gallery Hover === */
.gallery-item {
    overflow: hidden;
}
.gallery-item img {
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-item:hover img {
    transform: scale(1.05);
}

/* === Input Focus === */
input:focus, textarea:focus, select:focus {
    background: rgba(26, 18, 14, 0.8);
}

/* === Button Ripple === */
.btn-primary {
    position: relative;
    overflow: hidden;
}
.btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.btn-primary:hover::after {
    opacity: 1;
}

/* === Decorative Divider === */
.section-divider {
    background: linear-gradient(90deg, transparent, rgba(200, 149, 108, 0.15), transparent);
    height: 1px;
}

/* === Gold Accent Line === */
.gold-line {
    background: linear-gradient(90deg, #c8956c, #d4a853, #c8956c);
    height: 2px;
    border-radius: 1px;
}

/* === Form Success Animation === */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.form-success-animate {
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* === Responsive Adjustments === */
@media (max-width: 768px) {
    .hero-image-float {
        animation: none;
    }
}
</style>
