/* ============================================
   Silver Spoon Cafe — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: #C9A84C;
    border-radius: 3px;
}

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: transparent;
    transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 rgba(10, 22, 40, 0.08);
}

.nav-text {
    color: #0A1628;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-text {
    color: #0A1628;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #C9A84C;
    transition: width 0.3s ease;
}

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

#navbar.scrolled .nav-link {
    color: #0A1628;
}

#navbar.scrolled .nav-link:hover {
    color: #C9A84C;
}

#navbar.scrolled .nav-link::after {
    background: #C9A84C;
}

/* ============================================
   Mobile Menu
   ============================================ */
.menu-line {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#menu-btn.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(3px, -3px);
}

.mobile-link {
    position: relative;
}

/* ============================================
   Hero
   ============================================ */
@keyframes scroll {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(1.5); opacity: 0.5; }
}

.animate-scroll {
    animation: scroll 2s ease-in-out infinite;
    transform-origin: top;
}

/* ============================================
   Menu Items
   ============================================ */
.menu-item {
    position: relative;
    padding-left: 0;
    transition: transform 0.3s ease;
}

.menu-item:hover {
    transform: translateX(4px);
}

.menu-item:not(:last-child) {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ============================================
   Reveal Animations (Progressive Enhancement)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal:nth-child(2) { transition-delay: 0.1s; }
    .reveal:nth-child(3) { transition-delay: 0.2s; }
    .reveal:nth-child(4) { transition-delay: 0.3s; }
}

/* Always visible for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus,
select:focus {
    border-color: #C9A84C !important;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    html {
        font-size: 15px;
    }

    .font-serif {
        line-height: 1.2;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    html {
        font-size: 16px;
    }
}
