/* ============================================
   FALLS CITY KITCHEN — Custom Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background: rgba(181, 101, 74, 0.4);
    color: #f5efe6;
}

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

#navbar.scrolled {
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 103, 0.1);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.mobile-link {
    position: relative;
}

/* Menu Toggle Animation */
.menu-line {
    transform-origin: center;
}

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

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

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

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

.hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(14, 14, 14, 0.55) 0%,
        rgba(14, 14, 14, 0.3) 40%,
        rgba(14, 14, 14, 0.4) 70%,
        rgba(14, 14, 14, 1) 100%
    );
}

/* Hero Animations */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.hero-title {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.6s;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.9s;
    opacity: 0;
}

.hero-buttons {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-line {
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
        transform-origin: top;
    }
    51% {
        transform-origin: bottom;
    }
    100% {
        opacity: 0;
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* ============================================
   SECTION LABELS
   ============================================ */
.section-label {
    position: relative;
}

/* ============================================
   FEATURES
   ============================================ */
.feature-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   MENU
   ============================================ */
.menu-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(42, 39, 36, 0.6);
}

.menu-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.menu-category {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-category.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   GALLERY
   ============================================ */
.gallery-item {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    cursor: pointer;
}

.gallery-item.visible {
    opacity: 1;
    transform: scale(1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(14, 14, 14, 0);
    transition: background 0.3s ease;
    border-radius: inherit;
}

.gallery-item:hover::after {
    background: rgba(14, 14, 14, 0.2);
}

.gallery-item {
    position: relative;
}

/* ============================================
   FORM STYLES
   ============================================ */
input:focus,
textarea:focus {
    border-color: #b5654a !important;
    box-shadow: 0 0 0 3px rgba(181, 101, 74, 0.15);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .reveal,
    .feature-card,
    .menu-category,
    .gallery-item {
        opacity: 1;
        transform: none;
    }
}
