/* ═════════════════════════════════════════════════════════════════
   KASHGAR — Premium Uyghur Restaurant QR Menu
   Mobile-first · Elegant · Warm · Authentic
   ═════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────────── */
:root {
  --cream: #faf5ef;
  --cream2: #f3ece2;
  --cream3: #e8ddd0;
  --warm-white: #fdfaf6;
  --brown-deep: #1a0f0a;
  --brown: #2d1a10;
  --brown-mid: #4a3025;
  --brown-light: #6b5950;
  --brown-faint: #8c7b72;
  --gold: #b8864e;
  --gold-light: #c49a6c;
  --gold-pale: #dcc5a8;
  --gold-dim: rgba(184, 134, 78, 0.12);
  --gold-glow: rgba(184, 134, 78, 0.2);
  --terracotta: #9b5a3a;
  --terracotta-dim: rgba(155, 90, 58, 0.08);
  --white: #ffffff;
  --border: #e0d5c7;
  --border-light: #ede4d8;
  --shadow-sm: 0 1px 3px rgba(26, 15, 10, 0.06);
  --shadow-md: 0 8px 30px rgba(26, 15, 10, 0.08);
  --shadow-lg: 0 20px 50px rgba(26, 15, 10, 0.12);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; -webkit-tap-highlight-color: transparent; scroll-padding-top: 80px; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--brown);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font: inherit; background: none; }

/* ── Utility ────────────────────────────────────────────────── */
.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container, .container-sm { padding: 0 40px; }}

.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--brown-deep);
  margin-bottom: 40px;
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  transition: all 0.35s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
@media (min-width: 768px) { .nav-inner { padding: 0 40px; }}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  font-style: italic;
  color: var(--cream);
  transition: color 0.35s;
  letter-spacing: -0.01em;
}
.nav.scrolled .nav-logo { color: var(--brown-deep); }
.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) { .nav-links { display: flex; }}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s;
  letter-spacing: 0.01em;
}
.nav.scrolled .nav-links a { color: var(--brown-light); }
.nav-links a:hover { color: var(--gold); }
.nav.scrolled .nav-links a:hover { color: var(--gold); }
.nav-links a.active { color: var(--gold); }

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 36px; height: 36px;
  align-items: center;
  justify-content: center;
  z-index: 101;
}
@media (min-width: 768px) { .nav-toggle { display: none; }}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--cream);
  transition: all 0.3s ease;
  border-radius: 2px;
}
.nav.scrolled .nav-toggle span { background: var(--brown-deep); }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(26, 15, 10, 0.96);
  backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--cream);
  font-style: italic;
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,15,10,0.55) 0%, rgba(26,15,10,0.3) 50%, rgba(26,15,10,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 600px;
}
.hero-logo {
  width: 240px; height: auto;
  max-height: 200px;
  margin: 0 auto 20px;
  object-fit: contain;
  filter: drop-shadow(0 3px 16px rgba(0,0,0,0.45));
}
@media (min-width: 768px) {
  .hero-logo { width: 340px; max-height: 260px; }
}
.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
}
.halal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.12);
}
.halal-badge svg {
  opacity: 0.8;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 600;
  font-style: italic;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 0.02em;
  margin: 0;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.35s var(--ease-out);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
}
.hero-cta:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}
.hero-cta svg {
  transition: transform 0.3s var(--ease-out);
}
.hero-cta:hover svg {
  transform: translateY(4px);
}

/* ── About ──────────────────────────────────────────────────── */
.about {
  padding: 0;
}
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .about-wrapper {
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
  }
}
.about-image {
  order: 2;
  overflow: hidden;
  min-height: 280px;
}
@media (min-width: 768px) {
  .about-image { order: 1; min-height: 100%; }
}
.about-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}
.about-copy {
  order: 1;
  padding: 56px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 768px) {
  .about-copy { order: 2; padding: 72px 56px; }
}
.about-text p {
  font-size: 0.95rem;
  color: var(--brown-light);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-text p:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .about-text p { font-size: 1rem; }}

.about-trust {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--brown-mid);
  line-height: 1.5;
}
.trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Image Divider ─────────────────────────────────────────── */
.img-divider {
  position: relative;
  height: 200px;
  overflow: hidden;
}
@media (min-width: 768px) { .img-divider { height: 280px; }}
.img-divider img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
.img-divider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,15,10,0.2) 0%, transparent 40%, transparent 60%, rgba(26,15,10,0.3) 100%);
}
.img-divider-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 4vw, 1.8rem);
  font-style: italic;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.03em;
}

/* ── Menu Section ───────────────────────────────────────────── */
.menu-section {
  padding: 80px 0;
  background: var(--warm-white);
}
@media (min-width: 768px) { .menu-section { padding: 120px 0; }}

/* Category nav pills */
.menu-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 48px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}
.menu-cats::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .menu-cats {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }
}
.menu-cat {
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  color: var(--brown-light);
  background: transparent;
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.menu-cat:hover {
  border-color: var(--gold);
  color: var(--brown);
}
.menu-cat.active {
  background: var(--brown-deep);
  color: var(--cream);
  border-color: var(--brown-deep);
}

/* Category block */
.menu-category {
  margin-bottom: 64px;
  scroll-margin-top: 100px;
}
.menu-category:last-child { margin-bottom: 0; }
.cat-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  font-style: italic;
  color: var(--brown-deep);
  text-align: center;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cat-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}
.cat-divider span {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold-light);
  position: relative;
}
.cat-divider span::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* Menu items */
.menu-items {
  max-width: 640px;
  margin: 0 auto;
}
.menu-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.menu-item:last-child { border-bottom: none; }
.menu-item:hover {
  padding-left: 8px;
}
.mi-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}
.mi-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown-deep);
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .mi-name { font-size: 1.3rem; }}
.mi-price {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
  font-style: italic;
}
.mi-desc {
  font-size: 0.82rem;
  color: var(--brown-light);
  line-height: 1.6;
  max-width: 480px;
}
@media (min-width: 768px) { .mi-desc { font-size: 0.86rem; }}

/* ── Allergen ───────────────────────────────────────────────── */
.allergen-section {
  padding: 32px 0;
  text-align: center;
  background: var(--cream2);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.allergen-text {
  font-size: 0.78rem;
  color: var(--brown-faint);
  line-height: 1.7;
  font-style: italic;
}

/* ── Gallery ────────────────────────────────────────────────── */
.gallery-section {
  padding: 80px 0;
}
@media (min-width: 768px) { .gallery-section { padding: 120px 0; }}
.gallery-section .section-label,
.gallery-section h2 { text-align: center; }
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 40px;
  padding: 0 8px;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 24px;
  }
}
@media (min-width: 1024px) {
  .gallery-grid {
    gap: 20px;
    padding: 0 40px;
  }
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
  position: relative;
  aspect-ratio: 4/3;
}
@media (min-width: 640px) {
  .gallery-item { border-radius: 14px; aspect-ratio: 3/4; }
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Hours grid ────────────────────────────────────────────── */
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 24px;
  font-size: 0.85rem;
  color: var(--brown-light);
}
.hours-grid span:nth-child(odd) {
  font-weight: 600;
  color: var(--brown);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-style: italic;
}
.hours-grid span:nth-child(even) {
  text-align: right;
}

/* ── Google Maps ───────────────────────────────────────────── */
.contact-map {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 280px;
  box-shadow: var(--shadow-lg);
  background: var(--cream2);
}
.contact-map iframe {
  display: block;
}

/* ── WhatsApp Float ────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 24px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  transition: all 0.3s var(--ease-out);
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}
@media (min-width: 768px) {
  .whatsapp-float { bottom: 36px; right: 40px; width: 62px; height: 62px; }
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.05); }

/* ── Contact ────────────────────────────────────────────────── */
.contact-section {
  padding: 80px 0;
  background: var(--warm-white);
}
@media (min-width: 768px) { .contact-section { padding: 120px 0; }}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }}
.contact-block { margin-bottom: 28px; }
.contact-block:last-child { margin-bottom: 32px; }
.contact-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  font-style: italic;
  color: var(--brown-deep);
  margin-bottom: 6px;
}
.contact-block p {
  font-size: 0.9rem;
  color: var(--brown-light);
  line-height: 1.8;
}
.contact-block a {
  color: var(--gold);
  transition: color 0.2s;
  font-weight: 500;
}
.contact-block a:hover { color: var(--brown-deep); }
.maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--brown-deep);
  color: var(--cream);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s var(--ease-out);
  letter-spacing: 0.01em;
}
.maps-btn:hover {
  background: var(--brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-image {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--brown-deep);
  padding: 56px 0 28px;
  color: rgba(255,255,255,0.5);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; justify-content: space-between; gap: 60px; }}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  font-style: italic;
  color: var(--cream);
  display: block;
  margin-bottom: 8px;
}
.footer-brand p { font-size: 0.8rem; line-height: 1.7; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
@media (min-width: 768px) { .footer-links { gap: 32px; }}
.footer-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color 0.25s;
}
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}

/* ── Back to top ────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brown-deep);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--gold); transform: translateY(-2px); }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 380px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-sub { font-size: 0.9rem; }
  .mi-name { font-size: 1.05rem; }
  .mi-price { font-size: 1rem; }
  .cat-title { font-size: 1.5rem; }
  .menu-cats { gap: 6px; }
  .menu-cat { padding: 8px 16px; font-size: 0.72rem; }
}
