:root {
  --ink: #24201d;
  --muted: #786f68;
  --cream: #f7f2e9;
  --paper: #fffdf8;
  --coffee: #5b3426;
  --coffee-dark: #2d1a15;
  --terracotta: #c66d47;
  --sage: #71806a;
  --line: rgba(54, 39, 31, .12);
  --shadow: 0 20px 60px rgba(62, 36, 24, .12);
  --radius-lg: 34px;
  --radius-md: 24px;
  --radius-sm: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, rgba(198, 109, 71, .12), transparent 22rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.app-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  position: relative;
  min-height: 600px;
  color: #fffaf4;
  background-color: #2e1d17;
  background-image:
    linear-gradient(90deg, rgba(30, 17, 12, .89) 0%, rgba(40, 24, 18, .68) 46%, rgba(40, 24, 18, .22) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center 42%;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: 68px;
  background: var(--cream);
  clip-path: ellipse(58% 54% at 50% 100%);
  z-index: -1;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; }
.brand-logo {
  width: 184px;
  height: 56px;
  display: block;
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(19, 10, 7, .18);
}
.brand-logo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.brand-mark {
  width: 54px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}
.brand-mark span {
  font: italic 700 29px/1 Georgia, serif;
  transform: translateY(-1px);
}
.brand-copy strong { display: block; font: 600 22px/1.1 Georgia, serif; letter-spacing: .02em; }
.brand-copy small { display: block; margin-top: 5px; color: rgba(255,255,255,.66); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.pill-link {
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
  font-size: 13px;
}
.pill-link.primary { color: var(--coffee-dark); background: #fff8ef; border-color: #fff8ef; font-weight: 700; }
.hero-content { padding: 95px 0 130px; max-width: 690px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f5c7ad;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 {
  max-width: 650px;
  margin: 18px 0;
  font: 500 clamp(46px, 7vw, 82px)/.98 Georgia, "Times New Roman", serif;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero-text { max-width: 580px; margin: 0; color: rgba(255,255,255,.76); font-size: clamp(16px, 2vw, 19px); line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 34px; color: rgba(255,255,255,.78); font-size: 13px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 9px; }
.hero-meta i { width: 6px; height: 6px; border-radius: 50%; background: #f3b28d; box-shadow: 0 0 0 5px rgba(243,178,141,.14); }

.menu-main { position: relative; z-index: 2; padding: 8px 0 90px; }
.menu-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  align-items: end;
  margin: 32px 0 34px;
}
.section-kicker { margin: 0 0 10px; color: var(--terracotta); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.menu-head h2, .section-heading h2 { margin: 0; font: 500 clamp(34px, 4.8vw, 52px)/1.06 Georgia, serif; letter-spacing: -.03em; }
.search-box {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,253,248,.9);
  box-shadow: 0 12px 35px rgba(72,45,33,.06);
}
.search-box span { color: var(--terracotta); font-size: 22px; line-height: 1; }
.search-box input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder { color: #9c938d; }
.category-nav-wrap { position: sticky; top: 0; z-index: 20; margin-inline: -12px; padding: 10px 12px 14px; background: linear-gradient(var(--cream) 76%, rgba(247,242,233,0)); }
.category-nav { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-chip {
  flex: 0 0 auto;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: .2s ease;
}
.category-chip:hover, .category-chip.active { color: #fff; border-color: var(--coffee); background: var(--coffee); transform: translateY(-1px); }

.featured { margin-top: 26px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.section-heading p { max-width: 450px; margin: 0; color: var(--muted); line-height: 1.65; }
.featured-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.featured-card {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius-lg);
  color: #fff;
  box-shadow: var(--shadow);
  background: #3b241b center/cover no-repeat;
}
.featured-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 24%, rgba(23,13,9,.88) 100%); }
.featured-card::after { content: "Öne çıkan"; position: absolute; top: 18px; left: 18px; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--coffee-dark); font-size: 10px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.featured-info { position: relative; z-index: 1; width: 100%; padding: 24px; }
.featured-info small { color: #efb99d; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.featured-line { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: 8px; }
.featured-line h3 { margin: 0; font: 500 25px/1.1 Georgia, serif; }
.price { flex: 0 0 auto; font-size: 17px; font-weight: 900; white-space: nowrap; }

.menu-sections { display: grid; gap: 32px; margin-top: 58px; }
.menu-section { scroll-margin-top: 88px; border-radius: var(--radius-lg); background: rgba(255,253,248,.72); border: 1px solid rgba(74,49,37,.08); overflow: hidden; }
.category-cover {
  min-height: 210px;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  background: #422a20 center/cover no-repeat;
}
.category-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(25,14,10,.82), rgba(25,14,10,.24)); }
.category-copy { position: relative; z-index: 1; }
.category-copy small { color: rgba(255,255,255,.68); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.category-copy h2 { margin: 7px 0 5px; font: 500 clamp(31px, 5vw, 46px)/1 Georgia, serif; }
.category-copy p { margin: 0; color: rgba(255,255,255,.76); }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 28px 24px; column-gap: 34px; }
.product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 128px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.product-card:nth-last-child(-n+2) { border-bottom: 0; }
.product-image { width: 88px; aspect-ratio: 1; border-radius: 19px; object-fit: cover; box-shadow: 0 9px 24px rgba(60,37,27,.11); }
.product-image.is-fallback { padding: 6px; object-fit: contain; background: #fff; }
.product-info { min-width: 0; }
.product-title-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.product-info h3 { margin: 0; font: 600 18px/1.25 Georgia, serif; }
.tag { padding: 5px 8px; border-radius: 999px; background: #f2dfd3; color: #9a4c2d; font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.product-info p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.allergens { display: block; margin-top: 7px; color: #9a9089; font-size: 10px; }
.product-card .price { align-self: start; padding-top: 3px; color: var(--coffee); font-size: 15px; }
.empty-state { display: none; padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state.show { display: block; }
.empty-state strong { display: block; margin-bottom: 8px; color: var(--ink); font: 500 25px Georgia, serif; }

.footer { color: #f5eee8; background: var(--coffee-dark); }
.footer-inner { display: grid; grid-template-columns: 1.1fr .9fr .8fr; gap: 50px; padding: 62px 0 48px; }
.footer .brand { margin-bottom: 18px; }
.footer-tagline { margin: 0 0 6px; color: rgba(255,255,255,.82); font: 600 14px Georgia, serif; }
.footer-note { max-width: 430px; color: rgba(255,255,255,.55); font-size: 13px; line-height: 1.75; }
.footer h3 { margin: 0 0 16px; color: #d69a7b; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; }
.footer p, .footer a { margin: 7px 0; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.6; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; padding: 22px 0 30px; border-top: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.38); font-size: 11px; }
.back-top { position: fixed; z-index: 40; right: 18px; bottom: 18px; width: 48px; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--terracotta); color: #fff; box-shadow: 0 12px 28px rgba(117,60,37,.32); cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 900px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-card:first-child { grid-row: span 2; }
  .products { grid-template-columns: 1fr; }
  .product-card:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .product-card:last-child { border-bottom: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 540px); }
  .hero { min-height: 560px; background-position: 56% center; }
  .hero::after { height: 42px; clip-path: ellipse(72% 55% at 50% 100%); }
  .topbar { padding-top: 18px; }
  .brand-mark { width: 45px; }
  .brand-logo { width: 150px; height: 46px; border-radius: 11px; }
  .brand-copy strong { font-size: 18px; }
  .brand-copy small { display: none; }
  .pill-link { min-height: 38px; padding: 0 12px; }
  .pill-link.hide-mobile { display: none; }
  .hero-content { padding: 88px 0 105px; }
  .hero h1 { font-size: clamp(43px, 13vw, 64px); }
  .hero-text { font-size: 15px; line-height: 1.65; }
  .hero-meta { display: grid; gap: 12px; }
  .menu-main { padding-top: 0; }
  .menu-head { grid-template-columns: 1fr; gap: 22px; margin-top: 26px; }
  .menu-head h2, .section-heading h2 { font-size: 37px; }
  .category-nav-wrap { margin-inline: -14px; padding-inline: 14px; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; font-size: 13px; }
  .featured-grid { grid-template-columns: 1fr; gap: 14px; }
  .featured-card, .featured-card:first-child { min-height: 270px; grid-row: auto; }
  .menu-sections { margin-top: 42px; gap: 22px; }
  .menu-section { border-radius: 27px; }
  .category-cover { min-height: 175px; padding: 22px; }
  .products { padding: 8px 18px 18px; }
  .product-card { grid-template-columns: 68px minmax(0, 1fr) auto; gap: 12px; min-height: 111px; padding: 15px 0; }
  .product-image { width: 68px; border-radius: 15px; }
  .product-info h3 { font-size: 16px; }
  .product-info p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 11px; }
  .product-card .price { font-size: 13px; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
  .footer-about { grid-column: auto; }
  .footer-bottom { display: block; line-height: 1.8; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
