/* ══════════════════════════════════════════════
   Freeze — Cafés & Bars
   Custom styles for the Tunkhannock café & bar
   ══════════════════════════════════════════════ */

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

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

body {
    margin: 0;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #FDF8F0;
}
::-webkit-scrollbar-thumb {
    background: #e3b4a0;
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d94f24;
}

/* ── Selection ── */
::selection {
    background: #f9d7cc;
    color: #6b2717;
}

/* ── Navigation ── */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.nav-link {
    position: relative;
}

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

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

/* ── Buttons ── */
.cta-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cta-btn:hover::before {
    opacity: 1;
}

.cta-primary {
    background: linear-gradient(135deg, #d94f24 0%, #c43d1a 100%);
}

.cta-primary:hover {
    background: linear-gradient(135deg, #e3663f 0%, #d94f24 100%);
}

.cta-primary-rev {
    background: linear-gradient(135deg, #ffffff 0%, #fef2ee 100%);
    color: #c43d1a;
}

.cta-primary-rev:hover {
    background: linear-gradient(135deg, #fff8f5 0%, #ffffff 100%);
}

/* ── Hero ── */
.hero-bg {
    will-change: transform;
}

.hero-content {
    padding-top: 80px;
}

.hero-headline {
    text-shadow: 0 2px 40px rgba(0,0,0,0.3);
}

.hero-eyebrow {
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* ── Intro Strip ── */
.intro-strip span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

/* ── Section Headers ── */
.section-eyebrow {
    letter-spacing: 0.2em;
}

.section-title {
    letter-spacing: -0.02em;
}

.section-subtitle {
    line-height: 1.7;
}

/* ── Menu Tabs ── */
.menu-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    background: transparent;
    color: #78716c;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-tab:hover {
    color: #d94f24;
    border-color: #f9d7cc;
    background: #fdf0eb;
}

.menu-tab.active {
    background: #d94f24;
    color: #ffffff;
    border-color: #d94f24;
    box-shadow: 0 4px 12px rgba(217, 79, 36, 0.3);
}

.menu-tab.active:hover {
    background: #c43d1a;
    border-color: #c43d1a;
    color: #ffffff;
}

/* ── Menu Cards ── */
.menu-item-card {
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #f5f5f4;
    background: #ffffff;
    transition: all 0.3s ease;
}

.menu-item-card:hover {
    border-color: #f9d7cc;
    box-shadow: 0 8px 30px rgba(217, 79, 36, 0.08);
    transform: translateY(-2px);
}

/* ── Gallery ── */
.gallery-item {
    height: 220px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .gallery-item {
        height: 280px;
    }
    .gallery-item.row-span-2 {
        height: 568px;
    }
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.05);
}

/* ── Input Fields ── */
.input-field {
    background: #fafaf9;
}

.input-field:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(217, 79, 36, 0.1);
}

.input-field::placeholder {
    color: #a8a29e;
}

/* ── Reveal Animations ── */
.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-right {
    opacity: 0;
    transform: translateX(32px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translate(0, 0);
}

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

/* ── Mobile Menu ── */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
}

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

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

/* ── Hero entrance (pure CSS, no JS dependency) ── */
@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroScale {
    from {
        transform: scale(1.05);
    }
    to {
        transform: scale(1);
    }
}

.hero-bg {
    animation: heroScale 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hero-scrim {
    animation: heroFadeUp 0.8s ease forwards;
}

.hero-eyebrow {
    animation: heroFadeUp 0.7s 0.2s ease both;
}

.hero-headline {
    animation: heroFadeUp 0.7s 0.35s ease both;
}

.hero-subtext {
    animation: heroFadeUp 0.7s 0.5s ease both;
}

.hero-ctas {
    animation: heroFadeUp 0.7s 0.65s ease both;
}

.hero-scroll {
    animation: heroFadeUp 0.7s 0.9s ease both;
}

/* ── 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-up,
    .reveal-left,
    .reveal-right {
        opacity: 1;
        transform: none;
    }

    .gallery-img {
        transition: none;
    }

    .gallery-item:hover .gallery-img {
        transform: none;
    }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero-headline {
        font-size: 2.75rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .menu-item-card {
        padding: 1.125rem;
    }
}

@media (min-width: 641px) and (max-width: 767px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}
