/* ==========================================================================
   Luka Cafe Bistro — QR menü (mobil öncelikli)
   Her başlık kendi renginde bir "sayfa"; renkler orijinal sitenin paletinden.
   ========================================================================== */

:root {
  --cream: #FAF6F0;
  --linen: #F3E8D3;
  --sand: #DECBA3;
  --gold: #CFA24F;
  --olive: #8F8B66;
  --night: #4F4D35;
  --charcoal: #26241F;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Satoshi", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --maxw: 1040px;
  --bar-h: 60px;
  --page-r: 28px;          /* sayfaların yuvarlak üst köşesi */
  --radius: 18px;

  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);

  --z-page: 1;
  --z-bar: 40;
  --z-pill: 45;
  --z-grain: 50;
  --z-search: 60;
  --z-sheet: 70;
}
@media (min-width: 900px) { :root { --bar-h: 72px; --page-r: 40px; } }

/* ---- Tonlar: her biri kendi metin renkleriyle, kontrast ≥ 4.5 ---- */
[data-tone] { background: var(--bg); color: var(--ink); }
[data-tone="cream"] { --bg: var(--cream); --ink: #26241F; --muted: #6A6358; --accent: #7A6128; --wash: rgba(38, 36, 31, .06); }
[data-tone="linen"] { --bg: var(--linen); --ink: #26241F; --muted: #625A4D; --accent: #6E5620; --wash: rgba(38, 36, 31, .07); }
[data-tone="sand"]  { --bg: var(--sand);  --ink: #221F1A; --muted: #4E483E; --accent: #4F3E14; --wash: rgba(34, 31, 26, .08); }
[data-tone="gold"]  { --bg: var(--gold);  --ink: #1F1D18; --muted: #3D3830; --accent: #221F19; --wash: rgba(31, 29, 24, .1); }
[data-tone="olive"] { --bg: var(--olive); --ink: #171612; --muted: #24221B; --accent: #171612; --wash: rgba(23, 22, 18, .1); }
[data-tone="night"] { --bg: var(--night); --ink: #F6EFE2; --muted: #CFC6AE; --accent: #E2BE74; --wash: rgba(246, 239, 226, .1); }

/* ---- Temel ---- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--bar-h) + 8px);
  background: var(--cream);
}
body {
  margin: 0;
  background: var(--cream);
  color: #26241F;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }
svg { display: block; }
::selection { background: var(--gold); color: var(--charcoal); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.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;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--cream);
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.grain {
  position: fixed; inset: -50%; z-index: var(--z-grain); pointer-events: none;
  opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.text-btn {
  appearance: none; background: none; border: 0; padding: 4px 0; cursor: pointer;
  font-size: 14px; font-weight: 500;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}

/* ---- El çizimi ikonlar ---- */
.ico { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
/* Sayfa göründüğünde kendini çizer */
.draw .ico * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw.in .ico * { animation: ink 1.6s var(--ease) forwards; }
.draw.in .ico *:nth-child(2) { animation-delay: .12s; }
.draw.in .ico *:nth-child(3) { animation-delay: .24s; }
.draw.in .ico *:nth-child(4) { animation-delay: .36s; }
.draw.in .ico *:nth-child(n+5) { animation-delay: .48s; }
@keyframes ink { to { stroke-dashoffset: 0; } }

/* ==========================================================================
   HEADER — logo · arama · hamburger
   ========================================================================== */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-bar);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background-color .45s var(--ease), color .45s var(--ease);
}
.bar__row {
  height: var(--bar-h);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.bar__logo { width: 60px; color: inherit; }
.bar__logo svg { width: 100%; height: auto; overflow: visible; }
@media (min-width: 900px) { .bar__logo { width: 74px; } }
.bar__actions { display: flex; gap: 2px; margin-right: -10px; }
.bar__btn {
  appearance: none; border: 0; background: none; cursor: pointer;
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  transition: transform .2s var(--ease), background-color .2s;
}
.bar__btn:active { transform: scale(.9); background: var(--wash); }
.bar__btn svg, .search__row > svg, .sheet__close svg, .pill__chev {
  width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
}

/* ==========================================================================
   SEÇKİ
   ========================================================================== */
.picks {
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin: 0 auto;
  padding: calc(var(--bar-h) + 20px) var(--gutter) calc(var(--page-r) + 56px);
}
.picks__title {
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(64px, 18vw, 140px); line-height: .9; letter-spacing: -.045em;
  font-variation-settings: "opsz" 144;
  margin: 0 0 20px -.04em;
  animation: rise 1s .05s var(--ease) both;
}
.picks__grid {
  display: grid; gap: 12px;
  grid-auto-flow: column; grid-auto-columns: 82%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1);
  padding: 0 var(--gutter) 20px;
  scroll-padding-inline: var(--gutter);
}
.picks__grid::-webkit-scrollbar { display: none; }
@media (min-width: 900px) {
  .picks__grid {
    overflow: visible; margin-inline: 0; padding: 0;
    grid-auto-flow: row; grid-template-columns: 1.3fr 1fr 1fr;
  }
  .pick:first-child { grid-row: span 2; }
}

.pick {
  position: relative; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 380px; padding: 22px 22px 20px;
  border-radius: var(--radius);
  text-decoration: none; overflow: hidden; isolation: isolate;
  box-shadow: 0 22px 44px -30px rgba(79, 77, 53, .6);
  transition: transform .5s var(--ease-spring);
  animation: rise .9s var(--ease) both;
}
.pick:nth-child(2) { animation-delay: .08s; }
.pick:nth-child(3) { animation-delay: .16s; }
.pick:nth-child(4) { animation-delay: .24s; }
.pick:nth-child(5) { animation-delay: .32s; }
.pick:active { transform: scale(.98); }
@media (hover: hover) { .pick:hover { transform: translateY(-5px); } }
.pick[data-tone="cream"] { background: #FFFCF7; }
@media (min-width: 900px) { .pick { min-height: 300px; } .pick:first-child { min-height: 440px; } }

.pick__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pick__kicker { font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pick__cat { display: block; margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); }
.pick .ico { width: 64px; height: 64px; flex: none; margin: -6px -4px 0 0; stroke-width: 1.9; }
.pick:first-child .ico { width: 84px; height: 84px; }

.pick__name {
  font-family: var(--serif); font-weight: 350;
  font-size: clamp(34px, 9vw, 46px); line-height: 1; letter-spacing: -.02em;
  font-variation-settings: "opsz" 144; text-wrap: balance;
}
.pick:first-child .pick__name { font-size: clamp(64px, 17vw, 120px); font-style: italic; font-weight: 300; }
.pick__desc { margin-top: 10px; color: var(--muted); font-size: 14px; max-width: 30ch; }
.pick__foot { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.pick__price { font-family: var(--serif); font-size: 26px; font-variant-numeric: tabular-nums lining-nums; }
.pick__go { font-size: 13px; font-weight: 500; color: var(--muted); }
.pick__mark { position: absolute; right: -16%; bottom: 14%; width: 96%; opacity: .07; z-index: -1; transform: rotate(-8deg); }
.pick__price small, .item__price small { font-family: var(--sans); font-size: .6em; margin-left: 1px; opacity: .75; }

/* ==========================================================================
   RENK SAYFALARI
   ========================================================================== */
.page {
  position: relative;
  z-index: var(--z-page);
  margin-top: calc(var(--page-r) * -1);
  border-radius: var(--page-r) var(--page-r) 0 0;
  box-shadow: 0 -14px 30px -22px rgba(38, 36, 31, .45);
  padding: clamp(36px, 8vw, 72px) 0 calc(var(--page-r) + clamp(56px, 10vw, 104px));
}
.page__inner { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.page__head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px 16px;
  margin-bottom: clamp(32px, 7vw, 64px);
}
.page__no {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.page__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(48px, 13vw, 104px); line-height: .92; letter-spacing: -.04em;
  font-variation-settings: "opsz" 144;
  text-wrap: balance; hyphens: manual;
}
.page__head .ico { width: clamp(92px, 26vw, 150px); height: auto; aspect-ratio: 1; color: var(--ink); margin-bottom: 4px; stroke-width: 1.35; }
.page__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; margin-top: 6px; }
.page__count { font-size: 14px; color: var(--muted); }
.note { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--accent); }

/* Bir sayfadaki alt kategoriler */
.cat + .cat { margin-top: clamp(48px, 9vw, 80px); }
.cat__title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-family: var(--serif); font-weight: 400; font-style: italic;
  font-size: clamp(28px, 7vw, 40px); line-height: 1.05; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.cat__title span { font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--muted); white-space: nowrap; }
.cat .note { margin: -6px 0 14px; display: block; }

/* Ürünler: çizgisiz, boşlukla ayrılır */
.items { list-style: none; margin: 0; padding: 0; column-gap: 64px; }
@media (min-width: 900px) { .items--two { columns: 2; } }
.item { break-inside: avoid; padding: 10px 0 12px; border-radius: 10px; }
.item__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.item__label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; }
.item__name { font-weight: 500; font-size: 17px; line-height: 1.3; }
.item__size { font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.item__tag { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--accent); white-space: nowrap; }
.item__price { flex: none; font-family: var(--serif); font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.item__desc { margin-top: 3px; color: var(--muted); font-size: 14px; line-height: 1.45; max-width: 46ch; text-wrap: pretty; }
.item__extra { margin-top: 4px; font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--accent); }
.item__opts { margin: 9px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.item__opts li { font-size: 12px; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--wash); }
.item mark { background: var(--gold); color: var(--charcoal); border-radius: 2px; padding: 0 2px; }
.item.is-flash { animation: flash 2.2s var(--ease); }
@keyframes flash { 0%, 35% { background: var(--wash); box-shadow: 0 0 0 10px var(--wash); } 100% { background: transparent; box-shadow: 0 0 0 10px transparent; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.colophon {
  position: relative; z-index: var(--z-page);
  margin-top: calc(var(--page-r) * -1);
  border-radius: var(--page-r) var(--page-r) 0 0;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
.colophon__inner { max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: clamp(56px, 10vw, 120px) var(--gutter) 0; }
.colophon__logo { width: min(100%, 760px); height: auto; overflow: visible; }
.colophon__line { margin-top: 28px; font-family: var(--serif); font-weight: 300; font-size: clamp(36px, 9vw, 64px); letter-spacing: -.02em; color: var(--accent); }
.colophon__grid { margin-top: 44px; display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.colophon__grid .text-btn { justify-self: start; color: var(--ink); margin-top: 8px; }
.colophon__fine { margin-top: 28px; font-size: 12px; color: var(--muted); }

/* ==========================================================================
   YÜZEN KATEGORİ BUTONU
   ========================================================================== */
.pill {
  position: fixed; z-index: var(--z-pill);
  left: 50%; bottom: calc(16px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px;
  max-width: calc(100% - 32px);
  height: 52px; padding: 0 16px 0 10px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: #26241F; color: #F6EFE2;
  box-shadow: 0 14px 30px -12px rgba(38, 36, 31, .55);
  font-size: 15px; font-weight: 500;
  transition: transform .35s var(--ease-spring), opacity .3s var(--ease), background-color .4s, color .4s;
}
.pill.is-away { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.pill:active { transform: translateX(-50%) scale(.96); }
.pill[data-on="night"] { background: var(--cream); color: #26241F; }
.pill__icon {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  transition: background-color .4s;
}
.pill__icon .ico { width: 24px; height: 24px; stroke-width: 3.6; }
.pill__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill__chev { width: 18px; height: 18px; opacity: .7; }

/* ==========================================================================
   KATEGORİ PANELİ (alttan açılır)
   ========================================================================== */
.sheet { position: fixed; inset: 0; z-index: var(--z-sheet); }
.sheet__backdrop {
  position: absolute; inset: 0; background: rgba(23, 22, 18, .45);
  animation: fade .3s var(--ease);
}
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 26px 26px 0 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom));
  animation: up .45s var(--ease);
}
@media (min-width: 700px) {
  .sheet__panel { left: 50%; right: auto; bottom: 24px; width: 640px; transform: translateX(-50%); border-radius: 26px; animation: upc .45s var(--ease); }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes upc { from { transform: translate(-50%, 40px); opacity: 0; } }
.sheet__grip { width: 40px; height: 4px; border-radius: 4px; background: var(--wash); margin: 0 auto 8px; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; padding: 4px 4px 14px; }
.sheet__head h2 { font-family: var(--serif); font-weight: 350; font-style: italic; font-size: 30px; letter-spacing: -.02em; }
.sheet__close { appearance: none; border: 0; background: var(--wash); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.sheet__close svg { width: 18px; height: 18px; }

.sheet__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile {
  position: relative;
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 116px; padding: 14px;
  border-radius: 16px; text-decoration: none;
  transition: transform .25s var(--ease);
}
.tile:active { transform: scale(.97); }
.tile[data-tone="cream"] { box-shadow: inset 0 0 0 1px rgba(38, 36, 31, .1); }
.tile .ico { width: 40px; height: 40px; stroke-width: 2.6; }
.tile__name { font-family: var(--serif); font-size: 20px; line-height: 1.1; letter-spacing: -.01em; }
.tile__count { display: block; margin-top: 2px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.tile[aria-current="true"]::after {
  content: ""; position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: currentColor;
}

/* ==========================================================================
   ARAMA
   ========================================================================== */
.search {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-search);
  box-shadow: 0 20px 40px -30px rgba(79, 77, 53, .5);
  animation: drop .3s var(--ease);
}
@keyframes drop { from { transform: translateY(-100%); } }
.search__row {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  height: var(--bar-h); padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 12px;
}
.search input {
  flex: 1; min-width: 0; appearance: none; border: 0; background: transparent; outline: none;
  font-family: var(--serif); font-weight: 300; font-size: 24px; color: var(--ink);
}
.search input::placeholder { color: var(--muted); opacity: .75; }
.search input::-webkit-search-cancel-button { display: none; }
.search__count { font-size: 13px; color: var(--muted); white-space: nowrap; }
.search__close { appearance: none; border: 0; background: none; cursor: pointer; padding: 8px 0; font-size: 14px; font-weight: 500; }

.is-searching .picks { display: none; }
.is-searching .menu { padding-top: calc(var(--bar-h) + var(--page-r) + 12px); }
.is-searching .page__head { display: none; }

.empty {
  max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto;
  padding: calc(var(--bar-h) + 40px) var(--gutter) 160px;
  display: grid; gap: 12px; justify-items: start; color: #6A6358;
}
.empty__big { font-family: var(--serif); font-size: clamp(64px, 18vw, 140px); line-height: 1; color: #26241F; font-weight: 300; }

/* ==========================================================================
   Hareket
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.is-searching .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .draw .ico * { stroke-dashoffset: 0; }
}
