/* Ortalık Konya — QR menü
   Kurumsal renkler: siyah #000000, kırmızı #C31721, beyaz #FFFFFF */

:root {
  --bg: #f3f0e7;
  --paper: #fbf9f3;
  --ink: #17130f;
  --muted: #6e6459;
  --red: #c31721;
  --bordo: #7a1520;
  --black: #0c0b0a;
  --line: rgba(23, 19, 15, 0.14);
  --hairline: rgba(23, 19, 15, 0.08);
  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bar-h: 116px;
  --wrap: 720px;
  --price-col: 4.4rem;
}

* { box-sizing: border-box; }

/* Bileşenlerin display kuralları [hidden]'ı ezmesin */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(255, 253, 248, 0.9), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(195, 23, 33, 0.04), transparent 70%);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--black);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  background-image: radial-gradient(90% 70% at 50% 30%, #1b1715 0%, #0c0b0a 70%);
  color: #f3eee4;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 4rem 1.25rem;
  text-align: center;
}

.hero .orn {
  position: absolute;
  width: clamp(110px, 26vw, 210px);
  opacity: 0.5;
  pointer-events: none;
}
.orn-tl { top: 2%; left: 2%; }
.orn-tr { top: 2%; right: 2%; transform: scaleX(-1); }
.orn-bl { bottom: 2%; left: 2%; transform: scaleY(-1); }
.orn-br { bottom: 2%; right: 2%; transform: scale(-1); }

.hero-in { position: relative; z-index: 1; }

.hero-logo {
  width: clamp(190px, 52vw, 290px);
  margin: 0 auto;
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-tag {
  margin: 1.4rem 0 0;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  text-transform: uppercase;
  color: rgba(243, 238, 228, 0.72);
  animation: rise 0.9s 0.1s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}

.hero-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.9rem auto 2.2rem;
  max-width: 320px;
  animation: rise 0.9s 0.18s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-rule span { flex: 1; height: 1px; background: rgba(243, 238, 228, 0.28); }
.hero-rule img { width: 74px; opacity: 0.85; }

.hero-cta {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  border: 1px solid rgba(243, 238, 228, 0.4);
  border-radius: 999px;
  color: #f3eee4;
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
  animation: rise 0.9s 0.26s cubic-bezier(0.2, 0.7, 0.3, 1) both;
}
.hero-cta:hover,
.hero-cta:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ----------------------------------------------------------- sticky bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(251, 249, 243, 0.94);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.6rem 1rem 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.brand img { width: auto; height: 30px; }
.brand span {
  display: flex;
  flex-direction: column;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1;
}
.brand small {
  font-family: var(--sans);
  font-size: 0.52rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.search {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}
.search svg {
  position: absolute;
  left: 0.7rem;
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  font: inherit;
  font-size: 0.86rem;
  color: var(--ink);
  background: rgba(23, 19, 15, 0.04);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.5rem 2rem 0.5rem 2.1rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { border-color: var(--red); background: #fff; }
.search input::-webkit-search-cancel-button { display: none; }

#qClear {
  position: absolute;
  right: 0.35rem;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 19, 15, 0.1);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.cats-btn {
  flex: none;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--hairline);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.cats-btn svg { width: 18px; height: 18px; }
.cats-btn:hover { background: var(--bordo); border-color: var(--bordo); color: #fff; }

.chips {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 0 1rem 0.6rem;
  max-width: var(--wrap);
  margin: 0 auto;
  scroll-padding-inline: 1rem;
}
.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: none;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.on { background: var(--bordo); border-color: var(--bordo); color: #fbf9f3; }

.chip-sep {
  flex: none;
  align-self: center;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(23, 19, 15, 0.3);
  padding: 0 0.35rem 0 0.15rem;
  white-space: nowrap;
}

/* -------------------------------------------------------------- menu */

main {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0.5rem 1rem 3rem;
}

.cat {
  scroll-margin-top: calc(var(--bar-h) + 10px);
  padding-top: 2.6rem;
}

.cat-head {
  position: relative;
  text-align: center;
  padding: 0 3.5rem 1.1rem;
}
.cat-head .kicker {
  display: block;
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.cat-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.45rem, 5.6vw, 1.95rem);
  letter-spacing: 0.015em;
  color: var(--bordo);
}
.cat-art {
  position: absolute;
  right: 0;
  bottom: 0.2rem;
  width: clamp(52px, 15vw, 78px);
  opacity: 0.24;
  pointer-events: none;
  user-select: none;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.35rem 1.1rem;
  box-shadow: 0 1px 2px rgba(23, 19, 15, 0.03);
  outline: 1px solid var(--hairline);
  outline-offset: 4px;
}

.item { padding: 0.95rem 0; border-top: 1px dashed var(--hairline); }
.item:first-child { border-top: 0; }

.row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}
.row .name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--ink);
}
.lead {
  flex: 1;
  min-width: 0.75rem;
  align-self: flex-end;
  margin-bottom: 0.32em;
  border-bottom: 1px dotted rgba(23, 19, 15, 0.28);
}
/* Sabit genişlikte fiyat sütunu: tüm rakamlar her kategoride aynı hizadan başlar */
.price {
  flex: none;
  width: var(--price-col);
  text-align: left;
  white-space: nowrap;
  letter-spacing: 0.01em;
  color: var(--bordo);
  font-variant-numeric: tabular-nums;
}

.row .price {
  font-size: 0.86rem;
  font-weight: 600;
}

.desc {
  margin: 0.3rem 0 0;
  font-size: 0.79rem;
  font-weight: 300;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.vars { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.vars li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.16rem 0;
}
.vars .vlabel {
  font-size: 0.76rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.vars .lead { border-bottom-color: rgba(23, 19, 15, 0.18); }
.vars .price { font-size: 0.8rem; font-weight: 500; }

.note {
  display: flex;
  gap: 0.5rem;
  margin: 0.75rem 0.2rem 0;
  font-size: 0.72rem;
  font-weight: 300;
  line-height: 1.5;
  color: var(--bordo);
}
.note::before { content: "✦"; opacity: 0.7; }

mark {
  background: rgba(195, 23, 33, 0.14);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

.empty {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ------------------------------------------------------------- footer */

.foot {
  position: relative;
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
  border-top: 1px solid var(--line);
  background: rgba(251, 249, 243, 0.6);
}
.foot-orn { width: 96px; margin: 0 auto 1.5rem; opacity: 0.5; }
.foot-logo { width: 118px; margin: 0 auto 1.4rem; }

.foot-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.4rem;
}
.foot-info a,
.foot-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.83rem;
}
.foot-info a:hover { color: var(--red); }
.foot-info svg { width: 15px; height: 15px; color: var(--bordo); }

.foot-notes {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.foot-notes li { font-size: 0.72rem; font-weight: 300; color: var(--muted); }

.foot-copy {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(23, 19, 15, 0.35);
}

/* --------------------------------------------------------- back to top */

.totop {
  position: fixed;
  right: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 30;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--bordo);
  color: #fbf9f3;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(12, 11, 10, 0.22);
  animation: pop 0.25s ease both;
}
.totop svg { width: 18px; height: 18px; }

@keyframes pop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}

/* -------------------------------------------------------- category sheet */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 11, 10, 0.5);
  backdrop-filter: blur(3px);
  animation: fade 0.2s ease both;
}

.sheet-panel {
  width: min(var(--wrap), 100%);
  max-height: 86svh;
  overflow-y: auto;
  background: var(--paper);
  border-radius: 18px 18px 0 0;
  padding: 0 1.25rem calc(1.5rem + env(safe-area-inset-bottom));
  animation: up 0.28s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

.sheet-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0 0.8rem;
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.sheet-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--bordo);
}
#sheetClose {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 19, 15, 0.06);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.sheet-group { margin-top: 1.2rem; }
.sheet-group h3 {
  margin: 0 0 0.6rem;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}
.sheet-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem;
}
.sheet-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.82rem;
}
.sheet-links a:hover { border-color: var(--bordo); color: var(--bordo); }
.sheet-links b {
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }

/* ------------------------------------------------------------ responsive */

@media (min-width: 700px) {
  .cat-head { padding-bottom: 1.4rem; }
  .card { padding: 0.5rem 1.6rem; }
  .row .name { font-size: 1.1rem; }
  .desc { font-size: 0.83rem; }
  .foot-info { flex-direction: row; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .bar, .totop, .sheet, .hero-cta, .skip { display: none !important; }
  body { background: #fff; }
  .hero { min-height: auto; page-break-after: always; }
  .cat { page-break-inside: avoid; padding-top: 1.5rem; }
  .card { outline: 0; box-shadow: none; }
}
