/* ====== RESET & BASE ====== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; }

/* ====== SCROLL PROGRESS ====== */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, #a13a1f, #c8a366);
  z-index: 9999; transition: width 0.1s linear;
}

/* ====== NAV ====== */
#main-nav {
  background: transparent;
  backdrop-filter: blur(0);
}
#main-nav.scrolled {
  background: rgba(244, 234, 213, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(35, 24, 16, 0.06);
}
#main-nav.scrolled .logo-mark { transform: scale(0.95); }
#main-nav:not(.scrolled) a[href^="#"],
#main-nav:not(.scrolled) button#hamburger span {
  color: #f4ead5 !important;
}
#main-nav:not(.scrolled) a[href^="#"].link-elegant { color: #f4ead5; }
#main-nav:not(.scrolled) .text-ink { color: #f4ead5; }
#main-nav:not(.scrolled) a[href^="tel:"] { color: #c8a366 !important; }
#main-nav:not(.scrolled) #hamburger span { background: #f4ead5 !important; }
#main-nav:not(.scrolled) .font-serif,
#main-nav:not(.scrolled) .text-terracotta { color: #c8a366 !important; }

.link-elegant {
  position: relative;
  padding-bottom: 3px;
  transition: color 0.25s ease;
}
.link-elegant::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1.5px;
  background: #a13a1f;
  transition: width 0.35s cubic-bezier(0.2, 0.8, 0.4, 1);
}
.link-elegant:hover::after { width: 100%; }
#main-nav:not(.scrolled) .link-elegant::after { background: #c8a366; }

#mobile-menu.open { max-height: 500px; }

/* ====== HERO ====== */
.hero-bg {
  background:
    linear-gradient(135deg, rgba(26, 12, 8, 0.6) 0%, rgba(26, 12, 8, 0.85) 100%),
    radial-gradient(ellipse at top, #5a2510 0%, #2a110a 60%, #0f0704 100%);
  position: relative;
}
.hero-texture {
  background-image:
    radial-gradient(circle at 20% 30%, rgba(200, 163, 102, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(161, 58, 31, 0.15) 0%, transparent 40%),
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' seed='3'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.7  0 0 0 0 0.4  0 0 0 0.12 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: 0.6;
}
.hero-vignette {
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.scroll-hint { animation: softFloat 2.5s ease-in-out infinite; }
@keyframes softFloat {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50% { transform: translate(-50%, 8px); opacity: 1; }
}

/* ====== FADE INS ====== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}
.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }
.fade-in-delay-4 { animation-delay: 0.8s; }
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ====== REVEAL ON SCROLL ====== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.3, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* ====== MARQUEE ====== */
.marquee {
  animation: marquee 40s linear infinite;
  will-change: transform;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ====== PAPER TEXTURE ====== */
.paper-texture {
  background-image:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'><filter id='p'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' seed='2'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.35  0 0 0 0 0.2  0 0 0 0.08 0'/></filter><rect width='300' height='300' filter='url(%23p)'/></svg>");
  pointer-events: none;
}

/* ====== STORY CARD / FRAME ====== */
.story-frame {
  position: relative;
  padding: 20px;
  background: #f4ead5;
  box-shadow:
    0 2px 0 #d8c79c,
    0 30px 60px -20px rgba(35,24,16,0.35),
    0 10px 30px -10px rgba(161,58,31,0.25);
  transform: rotate(-1.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.story-card:hover .story-frame { transform: rotate(0deg) scale(1.02); }
.frame-inner {
  border: 1px solid #c8a366;
  padding: 6px;
  position: relative;
}
.frame-inner::before, .frame-inner::after {
  content: '';
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid #c8a366;
}
.frame-inner::before { top: -6px; left: -6px; border-right: none; border-bottom: none; }
.frame-inner::after { bottom: -6px; right: -6px; border-left: none; border-top: none; }

/* ====== DISH CARDS ====== */
.dish-card {
  background: #faf6ec;
  border: 1px solid rgba(35, 24, 16, 0.08);
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}
.dish-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 40px -20px rgba(35, 24, 16, 0.25), 0 8px 15px -8px rgba(161, 58, 31, 0.2);
}
.dish-visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.dish-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.3) 100%);
}
.dish-body {
  padding: 1.5rem 1.75rem 1.75rem;
  flex: 1;
}

/* ====== MENU SECTION ====== */
.menu-section-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(200, 163, 102, 0.3);
}
.menu-ornament {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #c8a366 0%, transparent 100%);
  margin-left: auto;
  max-width: 100%;
  position: relative;
}
.menu-ornament::after {
  content: '✦';
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-55%);
  color: #c8a366;
  font-size: 10px;
}

.menu-item {
  transition: transform 0.3s ease;
}
.menu-item:hover { transform: translateX(4px); }
.menu-dots {
  flex: 1;
  height: 1px;
  background-image: linear-gradient(to right, rgba(200, 163, 102, 0.4) 50%, transparent 50%);
  background-size: 6px 1px;
  background-repeat: repeat-x;
  position: relative;
  top: -3px;
}

/* ====== GALLERY ====== */
.gallery-item {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}
.gallery-item.tall { aspect-ratio: 3 / 5; }
.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 1rem;
  position: relative;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.gallery-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.08) 0%, transparent 60%);
}
.gallery-placeholder::after {
  content: '';
  position: absolute; inset: 0;
  background:
    url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.15 0'/></filter><rect width='200' height='200' filter='url(%23g)'/></svg>");
  mix-blend-mode: multiply;
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }
.gallery-label {
  position: relative;
  z-index: 2;
  color: rgba(244, 234, 213, 0.9);
  font-family: 'Italianno', cursive;
  font-size: 1.75rem;
  line-height: 1;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }

/* ====== SOCIAL BUTTONS ====== */
.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  background: #faf6ec;
  border: 1px solid rgba(35, 24, 16, 0.1);
  color: #231810;
  transition: all 0.3s ease;
  text-decoration: none;
}
.social-btn:hover {
  background: #231810;
  color: #c8a366;
  border-color: #231810;
  transform: translateY(-2px);
}

/* ====== FORM ====== */
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #3a2b20;
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #faf6ec;
  border: 1px solid rgba(35, 24, 16, 0.15);
  font-family: inherit;
  font-size: 0.95rem;
  color: #231810;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  border-radius: 2px;
}
.form-input:focus {
  outline: none;
  border-color: #a13a1f;
  box-shadow: 0 0 0 3px rgba(161, 58, 31, 0.12);
}
.guest-btn {
  width: 44px; height: 44px;
  background: #faf6ec;
  border: 1px solid rgba(35, 24, 16, 0.15);
  font-weight: 600;
  transition: all 0.2s ease;
  border-radius: 2px;
}
.guest-btn:hover { border-color: #a13a1f; color: #a13a1f; }
.guest-btn.active {
  background: #a13a1f;
  color: #f4ead5;
  border-color: #a13a1f;
}

/* ====== FLOATING CTA ====== */
#floating-cta.show {
  opacity: 1;
  pointer-events: auto;
  animation: subtlePulse 2.5s ease-in-out infinite;
}
@keyframes subtlePulse {
  0%, 100% { box-shadow: 0 10px 30px -5px rgba(161, 58, 31, 0.5); }
  50% { box-shadow: 0 10px 40px -5px rgba(161, 58, 31, 0.8); }
}

/* ====== UTILS ====== */
em { font-style: italic; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #ebe0c8; }
::-webkit-scrollbar-thumb { background: #a13a1f; border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: #7a2a14; }

@media (max-width: 768px) {
  .story-frame { transform: rotate(0deg); }
  .story-frame svg text[font-size="90"] { font-size: 70px; }
}
