/* ============================================
   FROSTY KING — Custom Styles
   Bold Editorial | Burgundy + Blush
   ============================================ */

/* Base Reset & Typography */
*, *::before, *::after {
    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: #781f2a;
    color: #fefcfb;
}

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

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

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

/* Navbar scroll state */
.nav-scrolled {
    background: rgba(254, 252, 251, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(120, 31, 42, 0.08);
}

.nav-scrolled .nav-link {
    color: #781f2a !important;
}

.nav-scrolled .font-serif.text-burgundy-700 {
    color: #781f2a !important;
}

.nav-scrolled #bar1,
.nav-scrolled #bar2,
.nav-scrolled #bar3 {
    background: #781f2a !important;
}

/* Mobile menu active state */
.mobile-menu-open #bar1 {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #bar2 {
    opacity: 0;
}

.mobile-menu-open #bar3 {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.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; }

/* ============================================
   HERO ANIMATIONS
   ============================================ */
.hero-subtitle {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-title {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-desc {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.hero-btn {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.9s forwards;
}

.hero-btn-secondary {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero-image {
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    opacity: 0;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Floating decorative elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delayed {
    animation: float-delayed 8s ease-in-out infinite;
    animation-delay: 1s;
}

/* ============================================
   SECTION ANIMATIONS (Scroll-triggered)
   ============================================ */
.section-label {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-heading {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.section-body {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Intersection Observer classes */
.reveal .section-label { animation: none; opacity: 0; transform: translateY(30px); }
.reveal .section-heading { animation: none; opacity: 0; transform: translateY(30px); }
.reveal .section-body { animation: none; opacity: 0; transform: translateY(30px); }
.reveal .feature-pill { animation: none; opacity: 0; transform: translateY(20px); }
.reveal .menu-card { animation: none; opacity: 0; transform: translateY(30px); }
.reveal .visit-card { animation: none; opacity: 0; transform: translateY(30px); }
.reveal .about-images { animation: none; opacity: 0; transform: translateY(40px); }
.reveal .story-image { animation: none; opacity: 0; transform: translateY(40px); }
.reveal .contact-map { animation: none; opacity: 0; transform: translateY(40px); }
.reveal input,
.reveal textarea,
.reveal button { animation: none; opacity: 0; transform: translateY(20px); }

.reveal.revealed .section-label { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.reveal.revealed .section-heading { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.reveal.revealed .section-body { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }

/* Staggered delays for grid items */
.reveal.revealed .feature-pill:nth-child(1) { animation-delay: 0.3s; }
.reveal.revealed .feature-pill:nth-child(2) { animation-delay: 0.35s; }
.reveal.revealed .feature-pill:nth-child(3) { animation-delay: 0.4s; }
.reveal.revealed .feature-pill:nth-child(4) { animation-delay: 0.45s; }

.reveal.revealed .menu-card:nth-child(1) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.reveal.revealed .menu-card:nth-child(2) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.reveal.revealed .menu-card:nth-child(3) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.reveal.revealed .menu-card:nth-child(4) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }
.reveal.revealed .menu-card:nth-child(5) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards; }
.reveal.revealed .menu-card:nth-child(6) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards; }

.reveal.revealed .visit-card:nth-child(1) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.reveal.revealed .visit-card:nth-child(2) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.reveal.revealed .visit-card:nth-child(3) { animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }

.reveal.revealed .about-images { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.reveal.revealed .story-image { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }
.reveal.revealed .contact-map { animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards; }

.reveal.revealed input { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
.reveal.revealed textarea { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards; }
.reveal.revealed button { animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards; }

/* ============================================
   COMPONENT STYLES
   ============================================ */

/* Section Label */
.section-label {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #b82647;
}

/* Section Heading */
.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.25rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    color: #781f2a;
}

/* Section Body */
.section-body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(120, 31, 42, 0.7);
}

/* Feature Pill */
.feature-pill {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 1.25rem;
    background: rgba(120, 31, 42, 0.08);
    color: #781f2a;
    border-radius: 100px;
    border: 1px solid rgba(120, 31, 42, 0.15);
    transition: all 0.3s ease;
}

.feature-pill:hover {
    background: #781f2a;
    color: #fefcfb;
    border-color: #781f2a;
}

/* Menu Card */
.menu-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.menu-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Visit Card */
.visit-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.visit-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button */
.btn-submit {
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(120, 31, 42, 0.08), transparent);
    transition: left 0.5s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

/* ============================================
   PARALLAX & SCROLL EFFECTS
   ============================================ */
.parallax-slow {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(3rem, 12vw, 5rem);
    }
    
    #hero {
        padding-top: 6rem;
    }
    
    .section-heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width: 640px) {
    .hero-image {
        margin-top: 2rem;
    }
    
    .hero-image img {
        height: 400px !important;
    }
}

/* ============================================
   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;
    }
    
    .animate-float,
    .animate-float-delayed {
        animation: none;
    }
}
