/* =====================================================================
   Veranda Rooftop — QR Menü (/menu/)
   Telefon öncelikli, klasik & kurumsal; ana sitenin renk ve yazı sistemi
   ===================================================================== */

:root {
  --bordo: #7a1c2b;
  --bordo-dark: #5c1420;
  --gold: #b8955a;
  --gold-light: #d9c49a;
  --gold-deep: #8f7142;
  --cream: #ebe5d9;
  --beige: #f5efe4;
  --stamp: #ece4d4;
  --white: #ffffff;
  --text: #2f2a27;
  --text-light: #5a534d;
  --muted: #7d766f;
  --line: #ddd5c6;
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --col: 760px;
  --bar-h: 132px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 8px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Sıva dokusu (ana siteyle aynı) */
.plaster { position: relative; }
.plaster::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Üst bölüm ---------- */
.qm-hero {
  background: var(--bordo);
  color: var(--stamp);
  text-align: center;
  padding: calc(34px + env(safe-area-inset-top)) 16px 30px;
  overflow: hidden;
}
.qm-hero::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(110% 90% at 50% 30%, rgba(255, 255, 255, 0.07), transparent 62%), linear-gradient(180deg, rgba(0, 0, 0, 0.08), transparent 35%, rgba(0, 0, 0, 0.14));
}
.qm-hero-inner { position: relative; z-index: 1; }
.qm-mark { width: 62px; height: 62px; margin: 0 auto 14px; color: var(--stamp); stroke-width: 2.6; }
.qm-logo { width: min(250px, 72vw); height: auto; aspect-ratio: 300 / 110; margin: 0 auto; color: var(--stamp); }
.qm-tag { font-family: var(--font-heading); font-style: italic; color: var(--gold-light); font-size: 1.02rem; margin: 10px 0 0; }

.qm-lang {
  position: absolute; z-index: 2;
  top: calc(14px + env(safe-area-inset-top)); right: 14px;
  display: flex;
  border: 1px solid rgba(236, 228, 212, 0.45);
}
.qm-lang button {
  background: transparent; border: 0;
  min-width: 44px; height: 36px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em;
  color: var(--stamp);
}
.qm-lang button[aria-pressed="true"] { background: var(--stamp); color: var(--bordo); }

/* ---------- Yapışkan gezinme ---------- */
.qm-bar {
  position: sticky; top: 0; z-index: 20;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(34, 28, 25, 0.06);
}
.qm-bar-inner { max-width: var(--col); margin: 0 auto; padding: 10px 12px 0; }
.qm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.qm-tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 58px; padding: 6px 4px;
  background: var(--beige); border: 1px solid var(--line);
  text-align: center;
}
.qm-tab b { font-family: var(--font-heading); font-weight: 400; font-size: 0.95rem; line-height: 1.15; }
.qm-tab small { font-size: 0.6rem; letter-spacing: 0.08em; color: var(--gold-deep); margin-top: 4px; font-weight: 700; white-space: nowrap; }
.qm-tab[aria-selected="true"] { background: var(--bordo); border-color: var(--bordo); color: var(--white); }
.qm-tab[aria-selected="true"] small { color: var(--gold-light); }

.qm-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qm-chips {
  flex: 1; min-width: 0;
  display: flex; gap: 6px;
  overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding-bottom: 10px;
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
  mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.qm-chips::-webkit-scrollbar { display: none; }
.qm-chips:empty { visibility: hidden; }
.qm-chip {
  flex: none; scroll-snap-align: start;
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700;
  padding: 9px 12px; border: 1px solid var(--line); color: var(--text-light);
  white-space: nowrap; background: var(--white);
}
.qm-chip.is-active { border-color: var(--bordo); color: var(--bordo); }
.qm-icon-btn {
  flex: none;
  width: 40px; height: 40px; margin-bottom: 10px;
  display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); color: var(--bordo);
}
.qm-icon-btn svg { width: 18px; height: 18px; }
.qm-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qm-sub.no-chips .qm-chips { display: none; }
.qm-sub.no-chips .qm-icon-btn { flex: 1; width: auto; display: flex; justify-content: flex-start; gap: 10px; padding: 0 12px; color: var(--muted); font-size: 0.9rem; }
.qm-sub.no-chips .qm-icon-btn svg { color: var(--gold-deep); }
.qm-sub.no-chips .qm-search-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

.qm-search { display: flex; align-items: center; gap: 8px; padding: 2px 0 10px; }
.qm-search[hidden] { display: none; }
.qm-search > svg { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-left: 4px; }
.qm-search input {
  flex: 1; min-width: 0; height: 40px;
  border: 0; border-bottom: 1px solid var(--gold); background: transparent;
  font: inherit; font-size: 16px; color: var(--text); padding: 0 4px;
  border-radius: 0;
}
.qm-search input:focus { outline: none; border-bottom-color: var(--bordo); }
.qm-search input::-webkit-search-cancel-button, .qm-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.qm-search .qm-icon-btn { margin-bottom: 0; }
.qm-bar.is-searching .qm-sub { display: none; }

/* ---------- İçerik ---------- */
.qm-main { max-width: var(--col); margin: 0 auto; padding: 26px 12px 8px; min-height: 60vh; }
.qm-cat-head { text-align: center; margin: 4px 0 22px; }
.qm-cat-head h1 { font-family: var(--font-heading); font-weight: 400; font-size: 1.95rem; line-height: 1.15; margin: 0; }
.qm-cat-head .ornament { width: 200px; height: 30px; margin: 10px auto 6px; color: var(--gold); }
.qm-hours { display: inline-flex; align-items: center; gap: 6px; font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; }
.qm-hours svg { width: 14px; height: 14px; }

.qm-group {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 20px 16px 8px;
  margin-bottom: 14px;
  scroll-margin-top: calc(var(--bar-h) + 10px);
}
.qm-group-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.qm-group-title::before, .qm-group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.qm-group-title span { font-family: var(--font-heading); font-weight: 400; font-size: 1.28rem; color: var(--bordo); text-align: center; }

.qm-items { list-style: none; margin: 0; padding: 0; }
.qm-item { padding: 12px 0; border-top: 1px solid #eee7da; }
.qm-item:first-child { border-top: 0; padding-top: 4px; }
.qm-item-head { display: flex; align-items: baseline; gap: 8px; }
.qm-item-name { font-family: var(--font-heading); font-size: 1.06rem; line-height: 1.3; }
.qm-dots { flex: 1; min-width: 14px; border-bottom: 1px dotted #b9b1a6; transform: translateY(-4px); }
.qm-price { font-family: var(--font-heading); font-size: 1.04rem; color: var(--bordo); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.qm-desc { margin: 4px 0 0; font-size: 0.87rem; line-height: 1.55; color: var(--text-light); }
.qm-group.compact .qm-item { padding: 8px 0; }
.qm-group.compact .qm-item-name { font-size: 1rem; }
.qm-crumb { display: block; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 700; margin-bottom: 2px; }

.qm-result-head { text-align: center; margin: 0 0 18px; font-size: 0.9rem; color: var(--text-light); }
.qm-result-head b { color: var(--bordo); font-weight: 700; }
.qm-empty { text-align: center; padding: 40px 12px; color: var(--muted); }

@media (min-width: 620px) {
  .qm-main { padding-top: 34px; }
  .qm-group { padding: 26px 28px 12px; }
  .qm-group.compact .qm-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
  .qm-group.compact .qm-item:nth-child(2) { border-top: 0; padding-top: 4px; }
  .qm-tab b { font-size: 1.05rem; }
  .qm-tab small { font-size: 0.64rem; }
}

/* ---------- Alt bilgi ---------- */
.qm-foot { background: var(--beige); border-top: 1px solid var(--line); margin-top: 22px; }
.qm-foot-inner { max-width: var(--col); margin: 0 auto; padding: 22px 16px calc(84px + env(safe-area-inset-bottom)); text-align: center; }
.qm-foot .ornament { width: 200px; height: 30px; margin: 0 auto 14px; color: var(--gold); }
.qm-note { font-size: 0.84rem; color: var(--text-light); margin: 0 auto 8px; max-width: 520px; }
.qm-hh { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--bordo); margin: 8px 0 18px; }
.qm-hh svg { width: 15px; height: 15px; }
.qm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 420px; margin: 0 auto 14px; }
.qm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; border: 1px solid var(--bordo); color: var(--bordo); background: var(--white);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.qm-btn svg { width: 17px; height: 17px; }
.qm-btn-primary { background: var(--bordo); color: var(--white); }
.qm-review { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text); border-bottom: 1px solid var(--gold); padding: 6px 0 3px; }
.qm-review svg { width: 16px; height: 16px; color: var(--gold-deep); }
.qm-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 10px; font-size: 0.84rem; color: var(--text-light); }
.qm-links a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; }
.qm-links svg { width: 16px; height: 16px; color: var(--gold-deep); }
.qm-copy { font-size: 0.72rem; color: var(--muted); margin: 6px 0 0; }

/* Başa dön */
.qm-top {
  position: fixed; z-index: 30;
  right: calc(14px + env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--bordo); color: var(--white); border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 22px rgba(34, 28, 25, 0.22);
}
.qm-top[hidden] { display: none; }
.qm-top svg { width: 20px; height: 20px; }

@media (max-width: 360px) {
  .qm-tab b { font-size: 0.86rem; }
  .qm-tab small { font-size: 0.56rem; letter-spacing: 0.04em; }
  .qm-item-name { font-size: 1rem; }
}
@media print {
  .qm-bar, .qm-top, .qm-actions, .qm-lang { display: none !important; }
  .qm-group { break-inside: avoid; }
}
