/* No:24 Pub Beşiktaş — black and white from the roundel, orange from the menu drawings. */

:root {
  --black: #000;
  --white: #fff;
  --accent: #b4451a;        /* the ink of the menu drawings */
  --accent-press: #9c3a14;
  --bg: #fff;
  --fg: #141414;
  --field: #f0efed;
  --muted: #5b5b5b;
  --accent-text: #a63f17;

  --display: "Rokkitt", "Rockwell", Georgia, serif;
  --text: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --tools-h: 128px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0d;
    --fg: #f1f1f1;
    --field: #1a1a1a;
    --muted: #a8a8a8;
    --accent-text: #e5733f;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tools-h) + 8px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.55 var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; line-height: 0.98; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--accent); color: #fff; padding: 12px 16px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  font: 600 1rem/1 var(--text); text-decoration: none;
  transition: transform 140ms var(--ease-out), background-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-light { background: #fff; color: #000; }
.btn-ghost { background: #222; color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-accent:hover { background: var(--accent-press); }
  .btn-light:hover { background: #e8e8e8; }
  .btn-ghost:hover { background: #333; }
}

/* ---------- hero ---------- */
.hero { background: var(--black); color: var(--white); overflow: hidden; }
.bar { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; font-weight: 600; font-size: 0.9375rem; }
.bar a { text-decoration: none; padding-block: 12px; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.bar a:hover { text-decoration-line: underline; }
.bar-links { display: flex; gap: clamp(20px, 3vw, 40px); }
.bar-call { font-variant-numeric: tabular-nums; }

.hero-grid { display: grid; gap: 28px; padding-block: clamp(12px, 3vw, 40px) clamp(36px, 5vw, 72px); }
.hero-logo img { width: min(84vw, 380px); filter: invert(1); }
.hero h1 { font-size: clamp(2.6rem, 1.7rem + 3.9vw, 5.6rem); line-height: 0.92; letter-spacing: -0.03em; max-width: 12ch; }
.lede { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: #ececec; max-width: 36ch; }
.hero .actions { margin-top: 28px; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
  .hero-logo img { width: 100%; max-width: 620px; }
}

.marquee { padding-block: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 48px); overflow: hidden; }
.marquee-track { display: flex; gap: clamp(36px, 5vw, 72px); width: max-content; animation: marquee 70s linear infinite; }
.marquee img { height: clamp(64px, 8vw, 104px); width: auto; filter: brightness(0) invert(1); }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(18px, 2.5vw, 36px))); } }

/* ---------- signature recipes ---------- */
.signs { background: var(--accent); color: #fff; padding-block: clamp(72px, 10vw, 160px); }
.signs h2 { font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.75rem); max-width: 14ch; }
.signs-lede { margin-top: 18px; font-size: 1.125rem; max-width: 40ch; }
.signs-grid { display: grid; gap: clamp(48px, 6vw, 88px); margin-top: clamp(48px, 6vw, 88px); }
.sign { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: clamp(20px, 3vw, 40px); align-items: end; }
.sign-ill img { width: 100%; max-height: 300px; object-fit: contain; object-position: left bottom; filter: brightness(0) invert(1); }
.sign h3 { font-size: clamp(3.4rem, 2rem + 6vw, 7.5rem); font-weight: 900; line-height: 0.86; letter-spacing: -0.04em; margin-top: 6px; }
.sign-desc { margin-top: 14px; font-size: 1rem; line-height: 1.5; max-width: 34ch; }
.sign-price { margin-top: 18px; font: 800 clamp(2rem, 1.6rem + 1.5vw, 3rem)/1 var(--display); }
@media (min-width: 900px) {
  .signs-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .sign { grid-template-columns: 1fr; align-items: start; gap: 28px; }
  .sign-ill img { height: 260px; width: auto; max-height: none; }
  .sign-desc { font-size: 1.125rem; }
}

/* ---------- sticky tools ---------- */
.menu-anchor { scroll-margin-top: 0; }
.tools { position: sticky; top: 0; z-index: 20; background: var(--bg); transition: box-shadow 200ms ease; }
.tools.stuck { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12); } /* taste-skill-ignore: sticky bar floats over the menu */
.tools-row { display: grid; gap: 10px; padding-block: 12px; }
.search { position: relative; display: block; }
.search input {
  width: 100%; height: 48px; border: 0; border-radius: 0; margin: 0;
  padding: 0 14px 0 46px; background: var(--field); color: var(--fg);
  font: 500 1rem var(--text); appearance: none;
}
.search input::placeholder { color: var(--muted); }
.search::before {
  content: ""; position: absolute; left: 15px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
  background: var(--fg);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search input::-webkit-search-cancel-button { cursor: pointer; }
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 14px;
  background: var(--field); color: var(--fg); text-decoration: none; white-space: nowrap;
  font-weight: 600; font-size: 0.9375rem;
  transition: background-color 150ms ease, color 150ms ease, transform 120ms var(--ease-out);
}
.chip:active { transform: scale(0.97); }
.chip[aria-current="true"] { background: var(--fg); color: var(--bg); }
@media (min-width: 900px) {
  .tools-row { grid-template-columns: 320px 1fr; align-items: center; gap: 16px; }
  .chips { margin-inline: 0; padding-inline: 0; }
}

.menu-note { color: var(--muted); font-size: 0.9375rem; }
.menu-note[hidden] { display: none; }
@media (min-width: 900px) { .menu-note { grid-column: 1 / -1; } }
.empty { padding-block: 48px 120px; font-size: 1.25rem; font-weight: 500; max-width: 34ch; }

/* ---------- menu groups ---------- */
.group { padding-block: clamp(40px, 5vw, 80px) clamp(56px, 7vw, 120px); }
.group-mutfak { background: var(--field); padding-top: clamp(64px, 7vw, 120px); }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: clamp(24px, 4vw, 56px); }
.group-note { color: var(--muted); font-size: 0.9375rem; }
.group-title {
  font-size: clamp(4rem, 16.5vw, 15rem); font-weight: 900; line-height: 0.84; letter-spacing: -0.045em;
}

.cat { padding-block: clamp(32px, 3.5vw, 56px); scroll-margin-top: calc(var(--tools-h) + 8px); }
.cat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.cat-head h3 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.75rem); }
.cat-count { margin-top: 6px; color: var(--muted); font-size: 0.9375rem; font-weight: 500; }
.cat-ill { flex: none; }
.cat-ill img { height: clamp(84px, 22vw, 120px); width: auto; }

.items { display: grid; }
.item { display: grid; grid-template-columns: 1fr auto; column-gap: 20px; padding-block: 11px; break-inside: avoid; }
.item-name { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.item-price { font-weight: 700; font-size: 1.0625rem; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.35; }
.item-desc { grid-column: 1 / -1; margin-top: 3px; color: var(--muted); font-size: 0.9375rem; line-height: 1.45; max-width: 62ch; }
.ask { color: var(--muted); font-weight: 500; font-size: 0.875rem; }
.item[hidden], .sub[hidden], .cat[hidden], .group[hidden], .signs[hidden] { display: none; }

.sub + .sub { margin-top: 28px; }
.sub h4 { font-size: 1.625rem; font-weight: 700; color: var(--accent-text); margin-bottom: 4px; }

.cats { display: grid; }
@media (min-width: 900px) {
  .cats { grid-template-columns: repeat(6, 1fr); column-gap: clamp(40px, 5vw, 80px); }
  .span-6 { grid-column: span 6; }
  .span-3 { grid-column: span 3; }
  .span-2 { grid-column: span 2; }
  .cat-head { margin-bottom: 24px; }
  .cat-ill img { height: clamp(110px, 10vw, 150px); }
  .items.cols-2, .items.cols-3 { display: block; columns: 2; column-gap: 56px; }
  .subs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 56px; }
  .sub + .sub { margin-top: 0; }
  .span-2 .cat-head h3 { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem); }
}
@media (min-width: 1200px) {
  .items.cols-3 { columns: 3; }
  .subs-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- visit ---------- */
.visit { background: var(--black); color: var(--white); padding-block: clamp(72px, 10vw, 160px); }
.visit-grid { display: grid; gap: 40px; }
.visit h2 { font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.75rem); line-height: 0.92; letter-spacing: -0.03em; max-width: 9ch; }
.visit-addr { margin-top: 18px; font-size: 1.125rem; color: #ececec; max-width: 30ch; }
.visit-phone { display: inline-block; margin-top: 28px; font: 800 clamp(2rem, 1.5rem + 2vw, 3.25rem)/1 var(--display); text-decoration: none; }
.visit-phone:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; }
.visit .actions { margin-top: 32px; }
.visit-map iframe { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; filter: grayscale(1) contrast(1.05); background: #1a1a1a; }
@media (min-width: 900px) {
  .visit-grid { grid-template-columns: 5fr 7fr; align-items: center; gap: clamp(48px, 6vw, 96px); }
  .visit-map iframe { aspect-ratio: auto; height: clamp(420px, 40vw, 560px); }
}

/* ---------- footer ---------- */
.foot { padding-block: clamp(64px, 8vw, 120px); }
.foot-grid { display: grid; gap: 36px; align-items: end; }
.foot-logo { width: clamp(220px, 40vw, 460px); }
.foot-text { display: grid; gap: 14px; font-size: 1rem; max-width: 40ch; }
.foot-text a { font-weight: 600; }
.foot-small { color: var(--muted); font-size: 0.875rem; }
.foot-top { justify-self: start; font-weight: 600; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: auto 1fr; gap: clamp(48px, 6vw, 96px); } }
@media (prefers-color-scheme: dark) { .foot-logo { filter: invert(1); } }

/* ---------- motion (content stays visible without script) ---------- */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
.js .cat-ill img, .js .sign-ill img { clip-path: inset(100% 0 0 0); transition: clip-path 800ms var(--ease-out); }
.js .in .cat-ill img, .js .in.sign-ill img, .js .in .sign-ill img { clip-path: inset(0 0 0 0); }
.js .hero-logo img { opacity: 0; transform: scale(0.96); animation: logo-in 900ms var(--ease-out) 80ms forwards; }
.js .hero-copy > * { opacity: 0; transform: translateY(18px); animation: rise 700ms var(--ease-out) forwards; }
.js .hero-copy > :nth-child(1) { animation-delay: 260ms; }
.js .hero-copy > :nth-child(2) { animation-delay: 340ms; }
.js .hero-copy > :nth-child(3) { animation-delay: 420ms; }
@keyframes logo-in { to { opacity: 1; transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }
.searching .reveal { opacity: 1; transform: none; transition: none; }
.searching .cat-ill img { clip-path: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .js .reveal { transform: none; transition: opacity 300ms ease; }
  .js .cat-ill img, .js .sign-ill img { clip-path: none; transition: none; }
  .js .hero-logo img, .js .hero-copy > * { transform: none; animation: fade 400ms ease forwards; }
  @keyframes fade { to { opacity: 1; } }
  .btn:active, .chip:active { transform: none; }
}
