/* ============================================
   Happy Chopstix — Custom Styles
   Classic & Elegant · Plum + Amber Palette
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background-color: #D4A574;
    color: #2a1c18;
}

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

::-webkit-scrollbar-track {
    background: #faf5f7;
}

::-webkit-scrollbar-thumb {
    background: #b87a90;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5D4037;
}

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

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
}

/* ---------- Reveal on Scroll ---------- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Navigation ---------- */
.nav-link {
    position: relative;
}

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

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

/* ---------- Navbar Scroll State ---------- */
#navbar.scrolled {
    background: rgba(250, 245, 247, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(93, 64, 55, 0.08);
}

#navbar.scrolled .nav-link {
    color: #5D4037;
}

#navbar.scrolled .font-serif {
    color: #5D4037;
}

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

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s 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; }

/* ---------- Mobile Menu Button ---------- */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

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

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.4) sepia(1) saturate(3) hue-rotate(10deg);
    cursor: pointer;
}

/* ---------- Smooth Image Loading ---------- */
img {
    opacity: 1;
    transition: opacity 0.3s ease;
}

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

/* ---------- Responsive Adjustments ---------- */
@media (max-width: 768px) {
    .font-serif {
        line-height: 1.2;
    }
}

/* ---------- Focus Visible ---------- */
:focus-visible {
    outline: 2px solid #D4A574;
    outline-offset: 2px;
}

/* ---------- Print Styles ---------- */
@media print {
    nav, #mobile-menu, .reveal-on-scroll {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
