:root {
  --bg: #fbf6ec;
  --bg-2: #f4ead6;
  --surface: #ffffff;
  --surface-2: #fdf8ef;
  --text: #2a2320;
  --text-soft: #6b5f54;
  --gold: #c99a2e;
  --gold-bright: #e0b23f;
  --pom: #b02e34;
  --turq: #2a8f8a;
  --border: #e6d8bf;
  --shadow: 0 18px 40px -20px rgba(80, 55, 20, 0.35);
  --thread: rgba(201, 154, 46, 0.55);
}
[data-theme="dark"] {
  --bg: #16110f;
  --bg-2: #1e1815;
  --surface: #221b17;
  --surface-2: #2a211c;
  --text: #f3e9db;
  --text-soft: #b3a08c;
  --gold: #e6b74a;
  --gold-bright: #f5cf6e;
  --pom: #d9585e;
  --turq: #4fc6c0;
  --border: #3a2e26;
  --shadow: 0 24px 55px -22px rgba(0, 0, 0, 0.8);
  --thread: rgba(230, 183, 74, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Manrope', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background .5s ease, color .5s ease;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: #16110f; }

.app { min-height: 100vh; }

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background .5s ease;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 74px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand-mark { color: var(--gold); font-size: 1.5rem; transform: rotate(0deg); }
.brand-text { display: flex; flex-direction: column; line-height: .95; }
.brand-top { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.35rem; letter-spacing: .5px; }
.brand-bot { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1rem; color: var(--gold); }
.brand.small { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; gap: 8px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  text-decoration: none; color: var(--text-soft); font-weight: 500; font-size: .92rem;
  letter-spacing: .3px; position: relative; transition: color .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--gold); transition: width .3s;
}
.nav-links a:hover::after { width: 100%; }
.fav-badge {
  font-size: .78rem; color: var(--pom); font-weight: 600;
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 10px;
}
.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-toggle { background: none; border: none; cursor: pointer; padding: 0; }
.toggle-track {
  display: block; width: 54px; height: 28px; border-radius: 20px;
  background: var(--surface-2); border: 1px solid var(--border);
  position: relative; transition: background .4s;
}
.toggle-knob {
  position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: .8rem;
  background: var(--gold-bright); color: #16110f;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), background .4s;
}
.toggle-knob.is-dark { transform: translateX(26px); background: #4a3a5c; color: #f5cf6e; }

.burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
.burger span { width: 22px; height: 2px; background: var(--text); transition: .3s; }

/* ---- Buttons ---- */
.btn {
  font-family: 'Manrope', sans-serif; font-weight: 600; font-size: .92rem;
  padding: 13px 28px; border-radius: 40px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, box-shadow .3s, background .3s; letter-spacing: .3px;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a120a; box-shadow: 0 8px 24px -8px var(--gold);
}
.btn-primary.faved { background: linear-gradient(135deg, var(--pom), #7f2124); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn.full { width: 100%; }

/* ---- Hero ---- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 60% at 15% 80%, color-mix(in srgb, var(--pom) 18%, transparent), transparent 70%),
    linear-gradient(160deg, var(--bg), var(--bg-2));
}
.hero-content {
  position: relative; z-index: 2; max-width: 1200px; margin: 0 auto;
  padding: 0 24px; width: 100%;
}
.hero-eyebrow {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.3rem;
  color: var(--gold); letter-spacing: 2px; margin-bottom: 18px;
  opacity: 0; animation: fadeUp .8s .1s forwards;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(2.8rem, 8vw, 6rem); line-height: .95; margin-bottom: 24px;
}
.hero-title span { display: block; opacity: 0; animation: fadeUp .9s forwards; }
.hero-title .line1 { animation-delay: .2s; }
.hero-title .line2 { animation-delay: .38s; color: var(--gold); font-style: italic; }
.hero-title .line3 { animation-delay: .56s; }
.hero-sub {
  max-width: 480px; color: var(--text-soft); font-size: 1.08rem; line-height: 1.7;
  margin-bottom: 34px; font-weight: 300;
  opacity: 0; animation: fadeUp .9s .74s forwards;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp .9s .9s forwards; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--text-soft); font-size: .7rem; letter-spacing: 3px; text-transform: uppercase;
  opacity: 0; animation: fadeUp 1s 1.2s forwards;
}
.hero-scroll span::after {
  content: ''; display: block; width: 1px; height: 30px; margin: 8px auto 0;
  background: var(--gold); animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Saffron threads ---- */
.threads { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.thread {
  position: absolute; top: -30px; width: 2px; height: 26px; border-radius: 2px;
  background: linear-gradient(var(--thread), transparent);
  animation: drift linear infinite; opacity: .6;
}
@keyframes drift {
  0% { transform: translateY(-30px) rotate(0deg); opacity: 0; }
  15% { opacity: .7; }
  100% { transform: translateY(105vh) rotate(180deg); opacity: 0; }
}

/* ---- Section heads ---- */
.section-head { text-align: center; margin-bottom: 40px; }
.section-kicker {
  font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 1.15rem;
  color: var(--gold); letter-spacing: 2px; display: block; margin-bottom: 8px;
}
.section-kicker.center, .section-kicker.left { display: block; }
.section-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1;
}
.section-title.center { text-align: center; }
.gold-rule {
  width: 60px; height: 2px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.gold-rule.left { margin-left: 0; background: linear-gradient(90deg, var(--gold), transparent); }
.gold-rule.center { margin: 18px auto 0; }

/* ---- Menu ---- */
.menu-section { max-width: 1200px; margin: 0 auto; padding: 100px 24px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.pill {
  font-family: 'Manrope', sans-serif; font-weight: 500; font-size: .9rem;
  padding: 9px 20px; border-radius: 30px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-soft);
  transition: all .25s;
}
.pill:hover { color: var(--text); border-color: var(--gold); }
.pill.active {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a120a; border-color: transparent; box-shadow: 0 6px 18px -8px var(--gold);
}

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s;
  opacity: 0; animation: cardIn .6s forwards;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.card:hover { transform: translateY(-8px); box-shadow: 0 30px 55px -25px rgba(0,0,0,.5); }
.card-img-wrap { position: relative; aspect-ratio: 1/1; overflow: hidden; background: var(--bg-2); }
.card-img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s, transform .6s; }
.card-img.loaded { opacity: 1; }
.card:hover .card-img { transform: scale(1.06); }
.img-skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, var(--bg-2) 30%, var(--surface-2) 50%, var(--bg-2) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.star-badge {
  position: absolute; top: 12px; left: 12px; z-index: 3;
  background: color-mix(in srgb, var(--pom) 92%, black); color: #fff;
  font-size: .68rem; font-weight: 600; padding: 5px 11px; border-radius: 20px;
  letter-spacing: .4px;
}
.star-badge.inline { position: static; display: inline-block; margin-bottom: 8px; }
.heart {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(6px);
  color: var(--pom); font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: transform .2s, background .2s;
}
.heart:hover { transform: scale(1.15); }
.heart.on { background: var(--pom); color: #fff; animation: pop .35s; }
@keyframes pop { 0%{transform:scale(1);} 40%{transform:scale(1.3);} 100%{transform:scale(1);} }

.card-body { padding: 20px 22px 24px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dish-en { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.5rem; line-height: 1.1; }
.dish-fa { font-size: .82rem; color: var(--gold); font-weight: 500; }
.dish-fa.big { font-size: 1rem; display: block; margin-bottom: 4px; }
.price {
  font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 1.5rem;
  color: var(--gold); white-space: nowrap;
}
.price.big { font-size: 2rem; }
.dish-desc { color: var(--text-soft); font-size: .92rem; line-height: 1.6; margin: 12px 0 16px; font-weight: 300; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 500;
  color: var(--text-soft); background: var(--surface-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 20px;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; }

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(10,7,5,.7);
  backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn .25s;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  max-width: 820px; width: 100%; max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; position: relative;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7); animation: modalIn .4s cubic-bezier(.2,.9,.3,1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close {
  position: absolute; top: 14px; right: 16px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(6px);
  color: var(--text); font-size: 1.5rem; line-height: 1;
}
.modal-img { background: var(--bg-2); }
.modal-img img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.modal-body { padding: 34px 32px; }
.modal-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.2rem; line-height: 1; margin-bottom: 14px; }
.modal-desc { color: var(--text-soft); line-height: 1.75; margin-bottom: 20px; font-weight: 300; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }

/* ---- About ---- */
.about { max-width: 1200px; margin: 0 auto; padding: 60px 24px 100px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.section-title.left { text-align: left; }
.about-text p { color: var(--text-soft); line-height: 1.8; margin-top: 18px; font-weight: 300; }
.about-stats { display: flex; gap: 36px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 2.4rem; color: var(--gold); }
.stat-label { font-size: .82rem; color: var(--text-soft); }
.about-tile { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1/1; box-shadow: var(--shadow); }
.about-tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(45deg, transparent, transparent 18px, color-mix(in srgb, var(--gold) 8%, transparent) 18px, color-mix(in srgb, var(--gold) 8%, transparent) 19px);
  border: 3px solid color-mix(in srgb, var(--gold) 40%, transparent);
  border-radius: 20px;
}

/* ---- Reserve ---- */
.reserve { padding: 60px 24px 110px; display: flex; justify-content: center; }
.reserve-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 24px;
  padding: 48px 44px; max-width: 560px; width: 100%; box-shadow: var(--shadow);
  position: relative;
  background-image: radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--gold) 8%, transparent), transparent 40%);
}
.form { display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-size: .82rem; color: var(--text-soft); font-weight: 500; flex: 1; }
.form-row { display: flex; gap: 14px; }
.form input, .form select {
  font-family: 'Manrope', sans-serif; font-size: .95rem; padding: 12px 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); transition: border .25s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--gold); }
.toast {
  margin-top: 20px; padding: 14px 18px; border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--turq) 18%, var(--surface)); border: 1px solid var(--turq);
  color: var(--text); font-size: .92rem; animation: fadeUp .4s;
}

/* ---- Footer ---- */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 60px 24px 30px; }
.footer-grid {
  max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
}
.footer-grid h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; margin-bottom: 12px; color: var(--gold); }
.footer-grid p { color: var(--text-soft); font-size: .9rem; margin-bottom: 6px; font-weight: 300; }
.footer-note { color: var(--text-soft); margin-top: 10px; max-width: 280px; }
.footer-bar {
  max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: .82rem; color: var(--text-soft);
}
.remix-link { color: var(--gold); text-decoration: none; font-weight: 600; }
.remix-link:hover { text-decoration: underline; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .modal { grid-template-columns: 1fr; }
  .modal-img img { max-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .burger { display: flex; }
  .nav-links {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 24px; transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .35s, opacity .35s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .form-row { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 24px; }
  .reserve-card { padding: 36px 24px; }
}