:root {
  --bg: #14100c;
  --bg-2: #1c1712;
  --panel: #221c16;
  --cream: #f4ece0;
  --cream-dim: #c9bca9;
  --muted: #8a7d6b;
  --gold: #c9a227;
  --gold-soft: #e0c97a;
  --line: rgba(201, 162, 39, 0.22);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --serif: "Cormorant Garamond", "Noto Serif Georgian", serif;
  --serif-ge: "Noto Serif Georgian", "Cormorant Garamond", serif;
  --sans: "Manrope", "Noto Serif Georgian", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* film grain texture */
.grain {
  position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--bg); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s ease, border-color .4s ease, padding .4s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(20, 16, 12, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 22px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  transition: padding .4s ease;
}
.site-header.scrolled .header-inner { padding: 14px 40px; }
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-mark {
  font-family: var(--serif); font-size: 28px; font-weight: 600; letter-spacing: 2px;
  color: var(--cream);
}
.brand-sub { font-family: var(--serif-ge); font-size: 18px; color: var(--gold); }
.nav { display: flex; gap: 38px; }
.nav a {
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-dim);
  position: relative; padding: 4px 0; transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .35s ease;
}
.nav a:hover { color: var(--cream); }
.nav a:hover::after { width: 100%; }
.header-right { display: flex; align-items: center; gap: 22px; }
.lang-switch { display: flex; gap: 4px; border: 1px solid var(--line); border-radius: 30px; padding: 4px; }
.lang-switch button {
  background: none; border: none; color: var(--muted); font-family: var(--sans);
  font-size: 12px; letter-spacing: 1px; padding: 4px 11px; border-radius: 20px; cursor: pointer;
  transition: all .25s;
}
.lang-switch button.active { background: var(--gold); color: var(--bg); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.burger span { width: 24px; height: 2px; background: var(--cream); transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(201,162,39,0.18), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(120,60,20,0.25), transparent 50%),
    linear-gradient(160deg, #1a140e 0%, #0f0b08 100%);
  background-size: cover; background-position: center;
  transform: scale(1.05);
}
.hero-bg.has-img { background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,11,8,0.4) 0%, rgba(15,11,8,0.75) 100%); }
.hero-content { position: relative; z-index: 2; max-width: 760px; padding: 0 24px; }
.hero-eyebrow {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-soft);
  margin-bottom: 24px; opacity: 0; animation: fadeUp .9s ease .2s forwards;
}
.hero-title {
  font-family: var(--serif); font-size: clamp(64px, 12vw, 150px); font-weight: 500;
  line-height: .92; letter-spacing: 2px; color: var(--cream);
  opacity: 0; animation: fadeUp 1s ease .4s forwards;
}
.hero-title span { font-family: var(--serif-ge); color: var(--gold); display: block; font-size: .42em; letter-spacing: 6px; margin-top: 10px; font-weight: 400; }
.hero-lead {
  font-size: clamp(16px, 2.2vw, 21px); color: var(--cream-dim); margin: 30px auto 40px; max-width: 540px;
  font-weight: 300; opacity: 0; animation: fadeUp 1s ease .6s forwards;
}
.btn {
  display: inline-block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 42px; border-radius: 2px; transition: all .35s ease; cursor: pointer; border: 1px solid var(--gold);
}
.btn-gold { background: var(--gold); color: var(--bg); opacity: 0; animation: fadeUp 1s ease .8s forwards; }
.btn-gold:hover { background: transparent; color: var(--gold-soft); }
.hero-scroll { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); width: 1px; height: 56px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2s ease infinite; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px);} to {opacity:1; transform: none;} }
@keyframes scrollPulse { 0%,100%{opacity:.3; transform: translateX(-50%) scaleY(.7);} 50%{opacity:1; transform: translateX(-50%) scaleY(1);} }

/* ---------- Sections ---------- */
section { padding: 110px 40px; max-width: 1280px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 60px; }
.section-kicker { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 14px; }
.section-title { font-family: var(--serif); font-size: clamp(38px, 6vw, 64px); font-weight: 500; line-height: 1; }

/* ---------- Menu ---------- */
.menu-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 56px; }
.menu-tabs button {
  background: none; border: 1px solid var(--line); color: var(--cream-dim); font-family: var(--sans);
  font-size: 13px; letter-spacing: 1.5px; padding: 11px 22px; border-radius: 30px; cursor: pointer; transition: all .3s;
}
.menu-tabs button:hover { color: var(--cream); border-color: var(--gold); }
.menu-tabs button.active { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 26px; }
.dish-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
  cursor: pointer; transition: transform .4s ease, box-shadow .4s ease, border-color .4s;
  display: flex; flex-direction: column;
}
.dish-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.dish-thumb {
  height: 200px; background: var(--bg-2); background-size: cover; background-position: center; position: relative;
}
.dish-thumb.no-img { display: flex; align-items: center; justify-content: center; }
.dish-thumb.no-img::after { content: "OtsY"; font-family: var(--serif); font-size: 30px; color: rgba(201,162,39,.25); letter-spacing: 3px; }
.dish-sig { position: absolute; top: 12px; left: 12px; background: var(--gold); color: var(--bg); font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; border-radius: 2px; }
.dish-info { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.dish-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.dish-name { font-family: var(--serif); font-size: 25px; font-weight: 500; line-height: 1.15; }
.dish-name-ge { font-family: var(--serif-ge); font-weight: 500; }
.dish-price { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); white-space: nowrap; }
.dish-price small { font-size: 13px; color: var(--muted); }
.dish-desc { color: var(--cream-dim); font-size: 14.5px; margin-top: 10px; flex: 1; }
.dish-badges { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.badge { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border: 1px solid var(--line); border-radius: 20px; color: var(--muted); }
.badge.veg { color: #8fbf6f; border-color: rgba(143,191,111,.4); }
.badge.gf { color: #d4a96a; border-color: rgba(212,169,106,.4); }

.menu-cat-title { font-family: var(--serif); font-size: 30px; color: var(--gold-soft); margin: 0 0 24px; text-align: center; }
.loading { text-align: center; color: var(--muted); padding: 60px; }

/* ---------- About ---------- */
.about-section { padding-top: 60px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-text .section-head { text-align: left; }
.about-text .section-kicker { text-align: left; }
.about-text .section-title { text-align: left; margin-bottom: 26px; }
.about-text p { color: var(--cream-dim); font-size: 17px; line-height: 1.8; }
.about-figure {
  height: 460px; border-radius: 6px; border: 1px solid var(--line);
  background:
    radial-gradient(circle at 40% 30%, rgba(201,162,39,0.18), transparent 60%),
    linear-gradient(150deg, #241c14, #15100b);
  background-size: cover; background-position: center; box-shadow: var(--shadow);
}

/* ---------- Visit ---------- */
.visit-section { background: var(--bg-2); max-width: 100%; padding: 110px 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.visit-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.visit-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 56px; }
.visit-card h3 { font-family: var(--serif); font-size: 22px; color: var(--gold-soft); margin-bottom: 12px; font-weight: 500; }
.visit-card p { color: var(--cream-dim); font-size: 16px; }
.visit-card a:hover { color: var(--gold); }
.visit-social { margin-top: 50px; display: flex; gap: 18px; justify-content: center; }
.visit-social a { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); border: 1px solid var(--line); padding: 12px 26px; border-radius: 30px; transition: .3s; }
.visit-social a:hover { background: var(--gold); color: var(--bg); }

/* ---------- Footer ---------- */
.site-footer { max-width: 100%; padding: 36px 40px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; }
.admin-link { letter-spacing: 1px; text-transform: uppercase; font-size: 12px; transition: color .3s; }
.admin-link:hover { color: var(--gold); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,6,4,0.8); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; z-index: 2; background: var(--panel); border: 1px solid var(--gold);
  border-radius: 8px; max-width: 560px; width: 100%; overflow: hidden; box-shadow: var(--shadow);
  animation: fadeUp .4s ease;
}
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 3; background: rgba(0,0,0,.4); color: var(--cream); border: none; width: 38px; height: 38px; border-radius: 50%; font-size: 26px; cursor: pointer; line-height: 1; }
.modal-img { height: 280px; background: var(--bg-2); background-size: cover; background-position: center; }
.modal-img.no-img { display: flex; align-items: center; justify-content: center; }
.modal-img.no-img::after { content: "OtsY"; font-family: var(--serif); font-size: 44px; color: rgba(201,162,39,.25); letter-spacing: 4px; }
.modal-info { padding: 30px 34px 36px; }
.modal-tags { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.modal-info h3 { font-family: var(--serif); font-size: 34px; font-weight: 500; margin-bottom: 12px; }
.modal-info p { color: var(--cream-dim); font-size: 16px; line-height: 1.7; }
.modal-price { font-family: var(--serif); font-size: 28px; color: var(--gold-soft); margin-top: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 72%; max-width: 320px; background: var(--bg-2); flex-direction: column; padding: 100px 40px; gap: 26px; transition: right .4s ease; border-left: 1px solid var(--line); }
  .nav.open { right: 0; }
  .burger { display: flex; z-index: 101; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-figure { height: 320px; }
  .visit-cards { grid-template-columns: 1fr; }
  section { padding: 80px 24px; }
  .header-inner { padding: 18px 24px; }
  .site-header.scrolled .header-inner { padding: 12px 24px; }
}
@media (max-width: 520px) {
  .menu-grid { grid-template-columns: 1fr; }
  .lang-switch button { padding: 4px 8px; font-size: 11px; }
  .site-footer { flex-direction: column; gap: 14px; text-align: center; }
}
