/* ═══════════════════════════════════════════════════════════
   OYDE — Main Stylesheet
   Theme: Central Asian warmth × modern minimalism
═══════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────── */
:root {
  /* Gold — sampled from logo lettering */
  --gold:        #C8A44E;
  --gold-light:  #DFC07A;
  --gold-dark:   #967828;

  /* Forest green — sampled from logo background */
  --forest:      #1E4632;
  --forest-deep: #0F2219;   /* body background */
  --forest-card: #172E22;   /* card surface     */
  --forest-mid:  #1A3828;   /* header / drawer  */

  /* Accent kept for badges */
  --terra:       #B85C38;
  --emerald:     #2D6A4F;

  /* Text */
  --cream:       #F0E6CB;
  --cream-dim:   rgba(240,230,203,.60);

  /* Aliases used throughout */
  --warmwood:    var(--forest-mid);
  --warmwood-2:  var(--forest-deep);
  --card-bg:     var(--forest-card);
  --card-border: rgba(200,164,78,.18);

  --radius-card: 16px;
  --radius-img:  12px;
  --nav-h:       108px;
  --fab-size:    52px;
  --transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--warmwood-2); color: var(--cream); font-family: 'Inter', sans-serif; }
img  { display: block; max-width: 100%; }
a    { color: inherit; text-decoration: none; }

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 2px; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15,34,25,.98) 0%, rgba(15,34,25,.94) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 8px;
  gap: 12px;
}

/* Logo centered, lang on the right */
.header-logo-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  /* shift logo slightly left to visually center against the lang button */
  margin-left: 44px;
}

.header-lang {
  flex: 0 0 auto;
}

.header-logo {
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(200,164,78,.20));
}

.header-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.header-tagline {
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .7;
}

/* ══════════════════════════════════════════════════════════
   CATEGORY NAV
══════════════════════════════════════════════════════════ */
.cat-nav {
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 10px;
}
.cat-nav::-webkit-scrollbar { display: none; }

.cat-nav__track {
  display: flex;
  gap: 8px;
  width: max-content;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--card-border);
  background: rgba(201,151,58,.06);
  color: var(--cream-dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  white-space: nowrap;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.cat-pill--active,
.cat-pill:hover {
  background: rgba(201,151,58,.18);
  border-color: var(--gold);
  color: var(--gold-light);
}

/* ══════════════════════════════════════════════════════════
   FEATURED STRIP
══════════════════════════════════════════════════════════ */
.section-eyebrow {
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  padding-left: 2px;
}

.featured-strip { padding: 16px 16px 8px; }

.featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 140px;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.featured-card:active { transform: scale(.97); }

.featured-card__img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}
.featured-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,151,58,.06);
}

.featured-card__body {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.featured-card__name {
  font-size: 12px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.featured-card__price {
  font-size: 12px;
  color: var(--gold);
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════
   MENU SECTIONS
══════════════════════════════════════════════════════════ */
.menu-main { padding-top: 8px; padding-bottom: 16px; }

.menu-section { margin-bottom: 28px; }

/* Section divider header */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  margin-bottom: 16px;
}
.section-header__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--card-border) 40%, transparent);
}
.section-header__title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}

/* ══════════════════════════════════════════════════════════
   DISH CARDS
══════════════════════════════════════════════════════════ */
.dish-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.dish-card {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  background: var(--card-bg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: -1px;
  transition: background var(--transition);
  opacity: 0;       /* animated in by GSAP */
  transform: translateY(12px);
}
.dish-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image wrapper */
.dish-card__img-wrap {
  flex: 0 0 88px;
  height: 88px;
  border-radius: var(--radius-img);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.dish-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.dish-card__img-wrap:hover .dish-card__img { transform: scale(1.06); }

.dish-card__img--empty {
  width: 100%;
  height: 100%;
  background: rgba(201,151,58,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-img);
}

/* Badges */
.badge-cluster {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 999px;
  line-height: 1.4;
}
.badge--new   { background: var(--emerald);  color: #fff; }
.badge--spicy { background: transparent; font-size: 13px; padding: 0; }
.badge--veg   { background: transparent; font-size: 13px; padding: 0; }

/* Info block */
.dish-card__info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  min-width: 0;
}

.dish-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.dish-card__name {
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--cream);
  line-height: 1.3;
}

.dish-card__price {
  font-size: 15px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.dish-card__currency {
  font-size: 11px;
  font-weight: 400;
  color: var(--gold-dark);
}

.dish-card__desc {
  font-size: 12px;
  color: var(--cream-dim);
  line-height: 1.5;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-badge {
  font-size: 11px;
  color: var(--gold-light);
  font-style: italic;
}

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 40vh;
  text-align: center;
  gap: 8px;
}

/* ══════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════ */
.site-footer {
  background: linear-gradient(180deg, #112b1c 0%, #0a1a11 100%);
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.footer-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

/* Brand */
.footer-brand { text-align: center; }

.footer-logo {
  height: 72px;
  object-fit: contain;
  margin: 0 auto 4px;
  filter: drop-shadow(0 2px 12px rgba(200,164,78,.30));
}

.footer-est {
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--gold-dark);
  margin-top: 4px;
}

/* Info rows */
.footer-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(200,164,78,.08);
  color: var(--cream-dim);
  font-size: 13.5px;
  text-decoration: none;
  transition: color var(--transition);
}
.footer-row:first-child { border-top: 1px solid rgba(200,164,78,.08); }
a.footer-row:hover { color: var(--gold-light); }

.footer-icon {
  flex: 0 0 18px;
  text-align: center;
  color: var(--gold);
  font-size: 13px;
  margin-top: 2px;
}

/* ── Language switcher (shared) ─────────────────────────── */
.lang-switcher { position: relative; }

.lang-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--card-border);
  background: rgba(200,164,78,.06);
  color: var(--cream);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: .04em;
  transition: background var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.lang-trigger:hover                          { border-color: var(--gold); background: rgba(200,164,78,.12); }
.lang-switcher.is-open .lang-trigger         { border-color: var(--gold); background: rgba(200,164,78,.12); }
.lang-trigger__label                         { min-width: 22px; }
.lang-trigger__caret {
  font-size: 9px;
  color: var(--gold-dark);
  transition: transform var(--transition);
}
.lang-switcher.is-open .lang-trigger__caret  { transform: rotate(180deg); }

/* Dropdown — opens downward (header) */
.lang-dropdown {
  position: absolute;
  right: 0;
  min-width: 180px;
  background: #172e22;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 200;
}

/* default: opens downward */
.lang-dropdown--down {
  top: calc(100% + 8px);
  transform: translateY(-6px);
}
.lang-switcher.is-open .lang-dropdown--down {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  background: transparent;
  border: none;
  color: var(--cream-dim);
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid rgba(200,164,78,.08);
  transition: background var(--transition), color var(--transition);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover      { background: rgba(200,164,78,.1); color: var(--cream); }
.lang-option--active    { color: var(--gold-light); }
.lang-option__code      { font-weight: 700; letter-spacing: .06em; min-width: 28px; }
.lang-option__name      { opacity: .65; font-size: 12px; }

/* Copyright */
.footer-copy {
  font-size: 11px;
  color: var(--cream-dim);
  opacity: .4;
  text-align: center;
  letter-spacing: .03em;
}

.footer-dev {
  font-size: 11px;
  color: var(--cream-dim);
  opacity: .35;
  text-align: center;
  letter-spacing: .02em;
}

.footer-dev__link {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-dev__link:hover { color: var(--gold-light); opacity: 1; }

/* ══════════════════════════════════════════════════════════
   FANCYBOX OVERRIDES
══════════════════════════════════════════════════════════ */
.fancybox__container { --fancybox-bg: rgba(20,10,2,.97); }
.fancybox__caption   { font-family: 'Playfair Display', serif; color: var(--cream-dim); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (min-width: 600px) {
  .dish-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
  }
  .dish-card { border: 1px solid var(--card-border); border-radius: 0; }
}

@media (min-width: 900px) {
  .dish-list { grid-template-columns: repeat(3, 1fr); }
  .header-inner { padding: 12px 32px 10px; }
  .header-logo  { height: 72px; }
  .menu-main { max-width: 960px; margin: 0 auto; }
}

/* ══════════════════════════════════════════════════════════
   LOADING SHIMMER
══════════════════════════════════════════════════════════ */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 25%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.6s infinite;
}

/* ══════════════════════════════════════════════════════════
   SCROLL-TO-TOP (appears after scrolling down)
══════════════════════════════════════════════════════════ */
#scroll-top {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  right: 20px;
  z-index: 99;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201,151,58,.15);
  border: 1px solid var(--card-border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition), transform var(--transition);
  pointer-events: none;
}
#scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ══════════════════════════════════════════════════════════
   FIXED BOTTOM ACTION BUTTONS — Call & WhatsApp
══════════════════════════════════════════════════════════ */
.fixed-actions {
  position: fixed;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
  right: 18px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.fixed-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 14px;
  height: 48px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,.40);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  white-space: nowrap;
}
.fixed-btn:active { transform: scale(.94); }
.fixed-btn:hover  { filter: brightness(1.1); box-shadow: 0 6px 24px rgba(0,0,0,.5); }

.fixed-btn i { font-size: 17px; }

/* WhatsApp */
.fixed-btn--wa {
  background: #25D366;
  color: #fff;
}

/* Call */
.fixed-btn--call {
  background: var(--gold);
  color: #0a1a0d;
}
