/* ============================================
   Ruth's Kitchen LLC — Custom Styles
   ============================================ */

/* 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 {
    overflow-x: hidden;
}

/* Selection Color */
::selection {
    background-color: #c9724e;
    color: #fff;
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    color: #fff;
}

#navbar.scrolled {
    background: rgba(252, 250, 247, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #1c1917;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

#navbar.scrolled .menu-line {
    background: #1c1917;
}

/* Menu Lines Animation */
.menu-line {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

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

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
    width: 1.5rem;
}

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

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ============================================
   Hero Animations
   ============================================ */
.hero-tag {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
}

.hero-title {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

.hero-subtitle {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.7s both;
}

.hero-cta {
    animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.9s both;
}

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

/* ============================================
   Buttons
   ============================================ */
.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 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::after {
    opacity: 1;
}

/* ============================================
   Tag Labels
   ============================================ */
.tag-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #c9724e;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

/* ============================================
   Form Styles
   ============================================ */
.form-input {
    transition: border-color 0.3s ease;
}

.form-input::placeholder {
    color: #d4d1cc;
    font-weight: 300;
}

.form-input:focus {
    border-color: #c9724e !important;
}

/* ============================================
   Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    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; }

/* Staggered feature reveals */
section:has(.grid) .reveal:nth-child(1) { transition-delay: 0.05s; }
section:has(.grid) .reveal:nth-child(2) { transition-delay: 0.15s; }
section:has(.grid) .reveal:nth-child(3) { transition-delay: 0.25s; }

/* ============================================
   Image Hover Container
   ============================================ */
.aspect-\[4\/5\] img,
.aspect-\[4\/3\] img {
    will-change: transform;
}

/* ============================================
   Parallax Hero Image
   ============================================ */
#heroImage {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 767px) {
    .font-heading font-light.text-5xl {
        font-size: 2.5rem;
        line-height: 1.05;
    }
}

/* ============================================
   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 {
        opacity: 1;
        transform: none;
    }
    
    #heroImage {
        transform: none !important;
    }
}

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

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

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

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

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