/* =====================================================
   NO7 — Hero
   Yükleme ekranı: düz gri (#313131)
   Site ana zemin: turuncu / sarı / beyaz sıcak gradyan
   ===================================================== */

:root {
  --bg: #313131;            /* yükleme ekranı grisi */

  /* sıcak zemin paleti (yedek / ilk değer) */
  --warm-1: #fffdf7;
  --warm-2: #fff0c4;
  --warm-3: #ffd277;
  --warm-4: #ffb04a;

  /* sayfa geneli tema renkleri — içeceğe göre JS ile değişir */
  --page-a: #ffd98a;        /* features gradient start */
  --page-b: #fff8ef;        /* menu solid, features mid */
  --page-c: #ffeccb;        /* about gradient end */
  --page-d: #ffdf9e;        /* contact gradient end */
  --accent: #FF9A2E;
  --accent-dark: #E8590C;
  --theme-accent-rgb: 255, 154, 46;

  /* parlak zeminde koyu yazı */
  --ink: #3a2410;
  --ink-dim: rgba(58, 36, 16, 0.66);

  --text: #f4f1ec;          /* koyu zemin (loader/intro) için açık yazı */
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--warm-3);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;          /* iOS/Android otomatik font büyütmesini kapat */
  text-size-adjust: 100%;
}

/* Menü sayfasından geri dönüşte (skipIntro) gri yükleme/intro ekranını ilk boyamadan önce gizle */
html.skip-intro .loader,
html.skip-intro .intro { display: none !important; }

body { overflow: hidden; }                 /* intro bitene kadar kilitli */
body.is-ready { overflow-y: auto; overflow-x: hidden; }

img { display: block; -webkit-user-drag: none; user-select: none; }

/* =====================================================
   1) YÜKLEME EKRANI  (gri kalır)
   ===================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity 0.7s var(--ease), visibility 0.7s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }

.loader-inner { display: flex; flex-direction: column; align-items: center; }

.loader-logo {
  width: 124px;
  height: 124px;
  object-fit: contain;
  transform-origin: 50% 50%;
  animation: loaderSpin 1.5s linear infinite;   /* kendi etrafında döner */
}
@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* =====================================================
   2) INTRO — FRAME ANİMASYONU
   ===================================================== */
.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  /* Sıcak zemin (site ile birebir aynı) -> kareler çözülmeden önce bile arkadaki site
     ile kusursuz birleşir; "sayfa kendiliğinden açıldı" hissi veren siyah/şeffaf boşluk olmaz. */
  background:
    radial-gradient(125% 105% at 50% 40%,
      var(--warm-1) 0%,
      var(--warm-2) 38%,
      var(--warm-3) 70%,
      var(--warm-4) 100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.75s var(--ease), visibility 0.75s var(--ease);
}
.intro.is-active { opacity: 1; visibility: visible; }
.intro.is-done   { opacity: 0; visibility: hidden; }

.intro-canvas { display: block; width: 100%; height: 100%; }

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text);                 /* açık renk — kahverengi frame'ler üzerinde okunur */
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.scroll-hint.is-visible { opacity: 0.9; }
.scroll-hint__icon { animation: hintBob 1.6s var(--ease) infinite; }
@keyframes hintBob {
  0%, 100% { transform: translateY(0);   opacity: 0.55; }
  50%      { transform: translateY(7px); opacity: 1;    }
}

/* =====================================================
   3) SİTE
   ===================================================== */
.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--warm-2);
  /* site her zaman görünür; intro şeffaf olduğu için kahve ayrılınca arkada bu görünür */
}

/* ---- Navbar (saydam / glassmorphism, parlak zemine uygun) ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(var(--nav-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: max(clamp(20px, 4vw, 56px), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(20px, 4vw, 56px), env(safe-area-inset-right, 0px));
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(120, 70, 20, 0.16);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);             /* kendi GPU katmanı -> Safari/120Hz'de bayat compositing layer sorununu önler */
  opacity: 0;                          /* intro bitene kadar gizli */
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.site.is-revealed .navbar { opacity: 1; }
.navbar.is-hidden { transform: translateY(-100%); opacity: 0 !important; }

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  transform: translateX(-26px);
}
.brand img {
  display: block;
  height: 42px;
  width: auto;
}

.nav { display: flex; gap: clamp(20px, 3vw, 46px); }
.nav__link {
  position: relative;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 2px;
  transition: color 0.3s ease;
  opacity: 0;
  transform: translateX(-22px);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-navigating {
  opacity: 0 !important;
  transform: translateX(-22px) !important;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.nav__link.is-navigating::after { transform: scaleX(0) !important; }

/* Hamburger buton (yalnız mobil) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
/* Açılırken: çizgiler sırayla yukarı kaybolur */
.nav-toggle.is-active span {
  opacity: 0;
  transform: translateY(-18px);
}
.nav-toggle.is-active span:nth-child(1) { transition-delay: 0s; }
.nav-toggle.is-active span:nth-child(2) { transition-delay: 0.08s; }
.nav-toggle.is-active span:nth-child(3) { transition-delay: 0.16s; }
/* Kapanırken: çizgiler ters sırayla yerine döner */
.nav-toggle span:nth-child(1) { transition-delay: 0.45s; }
.nav-toggle span:nth-child(2) { transition-delay: 0.35s; }
.nav-toggle span:nth-child(3) { transition-delay: 0.25s; }

/* Fullscreen mobil overlay */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 248, 239, 0.18);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.nav-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.nav-overlay__close {
  position: absolute;
  top: calc(11px + env(safe-area-inset-top, 0px));
  right: calc(13px + env(safe-area-inset-right, 0px));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
/* Çarpı çizgileri — yukarıdan inip 45°'de durur */
.nav-overlay__close span {
  position: absolute;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.nav-overlay__close span {
  transform: translateY(-20px) rotate(0deg);
}
/* Açılırken: sırayla aşağı inip çarpı oluşturur */
.nav-overlay.is-open .nav-overlay__close span {
  opacity: 1;
}
.nav-overlay.is-open .nav-overlay__close span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  transition-delay: 0.32s;
}
.nav-overlay.is-open .nav-overlay__close span:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
  transition-delay: 0.44s;
}
/* Kapanırken: çizgiler yukarı çıkar (is-open hala aktifken) */
.nav-overlay.is-open.is-closing .nav-overlay__close span {
  opacity: 0;
  transform: translateY(-20px) rotate(0deg);
}
.nav-overlay.is-open.is-closing .nav-overlay__close span:nth-child(1) { transition-delay: 0s; }
.nav-overlay.is-open.is-closing .nav-overlay__close span:nth-child(2) { transition-delay: 0.1s; }
.nav-overlay__menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}
.nav-overlay__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease), color 0.25s ease;
  transition-delay: 0s; /* kapanırken gecikmesiz çıksın */
}
.nav-overlay__link:nth-child(1) { transform: translateX(-40px); }
.nav-overlay__link:nth-child(2) { transform: translateX(40px); }
.nav-overlay__link:nth-child(3) { transform: translateX(-40px); }
.nav-overlay.is-open .nav-overlay__link {
  opacity: 1;
  transform: translateX(0);
}
.nav-overlay.is-open .nav-overlay__link:nth-child(1) { transition-delay: 0.35s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(2) { transition-delay: 0.45s; }
.nav-overlay.is-open .nav-overlay__link:nth-child(3) { transition-delay: 0.55s; }
.nav-overlay__link:hover {
  color: var(--accent-dark);
}

/* =====================================================
   Kategori keşif overlay'i (glass fullscreen, hamburger entegre)
   ===================================================== */
.cat-overlay {
  position: fixed;
  inset: 0;
  z-index: 998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(248, 240, 232, 0.12);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  backdrop-filter: blur(30px) saturate(140%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.cat-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
.cat-overlay__close {
  position: absolute;
  top: 11px;
  right: 13px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: none;
  background: none;
  cursor: pointer;
  padding: 0;
}
.cat-overlay__close span {
  position: absolute;
  width: 22px;
  height: 2.5px;
  background: var(--ink);
  border-radius: 2px;
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  transform: translateY(-20px) rotate(0deg);
}
.cat-overlay.is-open .cat-overlay__close span {
  opacity: 1;
}
.cat-overlay.is-open .cat-overlay__close span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
  transition-delay: 0.32s;
}
.cat-overlay.is-open .cat-overlay__close span:nth-child(2) {
  transform: translateY(0) rotate(-45deg);
  transition-delay: 0.44s;
}
.cat-overlay.is-open.is-closing .cat-overlay__close span {
  opacity: 0;
  transform: translateY(-20px) rotate(0deg);
}
.cat-overlay.is-open.is-closing .cat-overlay__close span:nth-child(1) { transition-delay: 0s; }
.cat-overlay.is-open.is-closing .cat-overlay__close span:nth-child(2) { transition-delay: 0.1s; }

.cat-overlay__inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 22px);
  width: min(960px, 92vw);
  padding: 4px;
}

/* Kartlar: aşağıdan yukarı sırayla belirir */
.cat-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: clamp(14px, 2vw, 20px) 14px clamp(16px, 2vw, 20px);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow: 0 10px 30px rgba(120, 60, 0, 0.10);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.55s var(--ease), opacity 0.55s var(--ease),
              box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.cat-overlay.is-open .cat-link {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cat-overlay.is-open .cat-link:nth-child(1) { transition-delay: 0.10s; }
.cat-overlay.is-open .cat-link:nth-child(2) { transition-delay: 0.17s; }
.cat-overlay.is-open .cat-link:nth-child(3) { transition-delay: 0.24s; }
.cat-overlay.is-open .cat-link:nth-child(4) { transition-delay: 0.31s; }
.cat-overlay.is-open .cat-link:nth-child(5) { transition-delay: 0.38s; }
.cat-overlay.is-open .cat-link:nth-child(6) { transition-delay: 0.45s; }
.cat-link:hover {
  background: rgba(255, 255, 255, 0.30);
  border-color: var(--accent);
  box-shadow: 0 16px 42px rgba(120, 60, 0, 0.18);
  transform: translateY(-4px) scale(1.02);
}
.cat-link__media {
  width: clamp(86px, 12vw, 124px);
  height: clamp(86px, 12vw, 124px);
  display: grid;
  place-items: center;
}
.cat-link__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(120, 60, 0, 0.22));
}
.cat-link__title {
  font-size: clamp(15px, 1.5vw, 20px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.cat-link__desc {
  font-size: clamp(11.5px, 1vw, 13.5px);
  line-height: 1.45;
  color: var(--ink-dim);
  max-width: 22ch;
}
.cat-link.is-selected {
  border-color: var(--accent-dark);
  transform: translateY(-2px) scale(1.03);
}
.cat-link.is-dimmed {
  opacity: 0.25;
  pointer-events: none;
}
/* Kapanırken: kartlar ters sırayla aşağı kaybolur (reverse stagger) */
.cat-overlay.is-open.is-closing .cat-link {
  opacity: 0;
  transform: translateY(22px) scale(0.96);
  transition-duration: 0.35s;
}
.cat-overlay.is-open.is-closing .cat-link:nth-child(1) { transition-delay: 0.25s; }
.cat-overlay.is-open.is-closing .cat-link:nth-child(2) { transition-delay: 0.20s; }
.cat-overlay.is-open.is-closing .cat-link:nth-child(3) { transition-delay: 0.15s; }
.cat-overlay.is-open.is-closing .cat-link:nth-child(4) { transition-delay: 0.10s; }
.cat-overlay.is-open.is-closing .cat-link:nth-child(5) { transition-delay: 0.05s; }
.cat-overlay.is-open.is-closing .cat-link:nth-child(6) { transition-delay: 0s; }
@media (max-width: 720px) {
  .cat-overlay__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(440px, 94vw); }
}
@media (max-width: 380px) {
  .cat-link { padding: 12px 10px 14px; border-radius: 16px; }
  .cat-link__desc { display: none; }
}
.cat-link:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 22px;
}
@media (prefers-reduced-motion: reduce) {
  .cat-link { transition: none; }
}

/* Spinner (seçim sonrası) */
.cat-link__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 240, 232, 0.55);
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}
.cat-link.is-loading .cat-link__loading {
  opacity: 1;
  visibility: visible;
}
.cat-link__spinner {
  width: 24px;
  height: 24px;
  border: 2.5px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Navbar giriş animasyonu (site reveal olunca) */
.site.is-revealed .brand {
  animation: navIn 0.6s var(--ease) 0.05s forwards;
}
.site.is-revealed .nav__link {
  animation: navIn 0.55s var(--ease) forwards;
}
.site.is-revealed .nav__link:nth-child(1) { animation-delay: 0.18s; }
.site.is-revealed .nav__link:nth-child(2) { animation-delay: 0.30s; }
.site.is-revealed .nav__link:nth-child(3) { animation-delay: 0.42s; }
@keyframes navIn {
  to { opacity: 1; transform: translateX(0); }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: min(600px, 100dvh);   /* kısa/yatay ekranlarda taşmayı önler */
  overflow: hidden;
  transition: background 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  /* turuncu / sarı / beyaz sıcak gradyan: merkez ~beyaz, kenarlar turuncu */
  background:
    radial-gradient(125% 105% at 50% 40%,
      var(--warm-1) 0%,
      var(--warm-2) 38%,
      var(--warm-3) 70%,
      var(--warm-4) 100%);
}

/* Yan dekorlar — sarmalayıcı giriş, img sürekli (daha) hareketli */
.side-wrap {
  position: absolute;
  top: 0;
  height: 100%;
  width: clamp(260px, 38vw, 560px);
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  transition: transform 0.6s var(--ease);    /* hızlı çıkış (tek seferlik -> will-change gereksiz) */
}
.side-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
.side-wrap--left  { left: 0;  transform: translateX(-106%); }
.side-wrap--right { right: 0; transform: translateX(106%); }
.side-wrap.is-in {
  transition: transform 0.6s var(--ease);
  transform: translateX(0);
}

.side {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  transform: translateZ(0);          /* sabit GPU katmanı -> Safari ilk boyamada da pürüzsüz */
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}
/* base scale > 1 => hareket ederken kenarda boşluk olmaz */
.side--left  { object-position: left center;  animation: sideFloatL 7s   ease-in-out infinite; }
.side--right { object-position: right center; animation: sideFloatR 8.5s ease-in-out infinite; }
/* PERF: keyframelerde filter:blur ANİMASYONU her karede büyük görseli yeniden rasterize
   ediyordu (özellikle iOS Safari'de ana iş parçacığı kaynaklı ciddi kasma). Yalnızca
   transform animasyonu bırakıldı -> tamamen GPU'da, kasmasız.
   AYRICA: görselleri dışa doğru çek (sol görsel -9% sola, sağ görsel +9% sağa). Böylece
   iç (merkeze bakan) kenarda saydam boşluk oluşur, merkeze süzülen buz küpü artık sert
   bir çizgiyle ikiye bölünmez -> "arada kesilme" kaybolur. (translate %'leri öğenin kendi
   genişliğine göredir; dış kenardaki mango ekran kenarında kalır.) */
@keyframes sideFloatL {
  0%, 100% { transform: translateZ(0) scale(1.04) translate(-6%, 0)    rotate(0deg);    }
  50%      { transform: translateZ(0) scale(1.08) translate(-9%, 2.4%) rotate(-1.1deg); }
}
@keyframes sideFloatR {
  0%, 100% { transform: translateZ(0) scale(1.04) translate(6%, 0)     rotate(0deg);   }
  50%      { transform: translateZ(0) scale(1.08) translate(9%, -2.4%) rotate(1.1deg); }
}
/* hero görünmüyorken (scroll edilmiş) yan dekor animasyonlarını duraklat -> boşuna GPU yok */
.site.hero-off .side--left,
.site.hero-off .side--right { animation-play-state: paused; }

/* Üst başlık — çizginin ve içeceklerin üstünde, navbarın hemen altında */
.hero-title {
  position: absolute;
  left: 50%;
  top: calc(var(--nav-h) + clamp(14px, 3vh, 28px));
  transform: translate(-50%, -8px);
  z-index: 30;            /* içeceklerin (max z~20) üstünde kalsın */
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-align: center;
  opacity: 0;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: 0.5s;
  pointer-events: none;
}
.site.is-revealed .hero-title { opacity: 1; transform: translate(-50%, 0); }

/* Eğik gradyanlı çizgi — bir tık yukarı, altına gezinme alanı için yer açılır */
.wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  overflow: visible;
  transform: translateY(-6%);
}
#wavePath { opacity: 0; }
#wavePath.is-drawing { opacity: 1; }

/* İçecekler */
.drinks {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}
.drink {
  position: absolute;
  top: 0;
  left: 0;
  width: clamp(112px, 13vw, 188px);
  height: auto;
  transform: translate(-50%, -50%);
  /* taban gölge: JS yalnızca merkezdeki içeceğe ayrıca "glow" ekler; diğerlerinde
     inline filter temizlenince bu taban gölge devreye girer (kesintisiz görünüm) */
  filter: drop-shadow(0 16px 22px rgba(120, 60, 0, 0.26));
  will-change: transform;
  opacity: 0;
}

/* içecek gezinme: sol/sağ ok + ortadaki ürün adı (büyük içeceğin altında) */
.drink-controls {
  position: absolute;
  left: 50%;
  top: 70%;               /* büyük içecek png'sinin altına alındı */
  transform: translate(-50%, 0);
  z-index: 32;            /* büyük merkez içeceğinin üstünde; oklar/isim hep görünür-tıklanır */
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  transition-delay: 1.1s;
}
.site.is-revealed .drink-controls { opacity: 1; pointer-events: auto; }

.drink-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(120, 70, 20, 0.28);
  background: rgba(255, 255, 255, 0.4);
  color: var(--ink);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.drink-nav:hover { background: rgba(255, 255, 255, 0.68); transform: translateY(-2px); }
.drink-nav:active { transform: translateY(0) scale(0.94); }

.drink-name {
  position: relative;
  overflow: hidden;
  display: inline-block;
  vertical-align: top;
  min-width: clamp(140px, 18vw, 220px);
  text-align: center;
  font-size: clamp(15px, 1.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.6);
}
.drink-name__text {
  display: block;
  transition: transform 0.42s var(--ease), opacity 0.42s var(--ease);
  white-space: nowrap;
}
.drink-name__text.is-out {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* menü butonu — bir tık yukarı, altına aşağı-kaydırma ipucu sığsın diye */
.menu-btn {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(72px, 11vh, 110px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(14px);
  z-index: 30;
  padding: 14px 38px;
  border-radius: 99px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.36);
  border: 1px solid rgba(120, 70, 20, 0.28);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(120, 70, 20, 0.45);
}
.menu-btn.is-loading {
  pointer-events: none;
}
.menu-btn.is-loading .menu-btn__text {
  opacity: 0;
  transition: opacity 0.35s ease;
}
.menu-btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(120,70,20,0.2);
  border-top-color: var(--accent-dark);
  border-radius: 50%;
  animation: menuSpin 0.7s linear infinite;
  opacity: 1;
  transition: opacity 0.35s ease;
}
.menu-btn.is-loading.is-fading {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.menu-btn.is-loading.is-fading::after {
  opacity: 0;
}
@keyframes menuSpin { to { transform: rotate(360deg); } }
.site.is-revealed .menu-btn {
  animation: menuIn 0.6s var(--ease) 0.9s forwards;
}
@keyframes menuIn {
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* aşağı kaydırma ipucu — dikey üç nokta, sırayla hafifçe yanıp söner */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: calc(clamp(26px, 4.5vh, 42px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s var(--ease);
  transition-delay: 1.2s;
}
.site.is-revealed .scroll-cue { opacity: 1; }
.scroll-cue span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.22;
  animation: cueBlink 1.6s ease-in-out infinite;
}
.scroll-cue span:nth-child(1) { animation-delay: 0s; }
.scroll-cue span:nth-child(2) { animation-delay: 0.22s; }
.scroll-cue span:nth-child(3) { animation-delay: 0.44s; }
@keyframes cueBlink {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  40%      { opacity: 0.9; transform: translateY(3px); }
}

/* Alt bölüm (şimdilik boş) */
.below { min-height: 60vh; background: var(--warm-4); }

/* =====================================================
   ERİŞİLEBİLİRLİK — hareketi azalt
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  .loader-logo,
  .scroll-hint__icon,
  .side--left,
  .side--right,
  .scroll-cue span { animation: none; }
  /* animasyon kapalıyken görseller nötr dursun (mobil contain'de taşma/kırpma olmasın) */
  .side--left,
  .side--right { transform: translateZ(0); }
  .drink-name__text { transition: none; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

/* Tablet */
@media (max-width: 980px) {
  .side-wrap { width: min(44vw, 420px); }   /* büyük tabletlerde merkezi sıkıştırmasın */
  .nav { gap: clamp(16px, 2.6vw, 32px); }
}

/* Mobil */
@media (max-width: 640px) {
  :root { --nav-h: 62px; }
  /* padding shorthand KULLANMA -> üstteki safe-area-inset-top korunur (çentik/Dynamic Island) */
  .navbar {
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
  }
  .brand { font-size: 18px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  /* MOBİL — KESİLME YOK + TAM YÜKSEKLİK (üstte/altta boşluk yok):
     200x600 (1:3) görseller cover ile dikine kesiliyordu. Çözüm: şeridi TAM YÜKSEKLİK ve
     1:3 oranında yap -> 1:3 görsel kutuyu BİREBİR doldurur: ne kırpma, ne bozulma, ne üst/alt
     boşluk. Dış kenara yaslı; iç (merkeze bakan) kısım saydam olduğundan görseller ortada hafif
     örtüşse de merkez temiz kalır ve örtüşme zaten ortadaki içeceğin (z-index 10) arkasında kalır.
     overflow:visible -> hiçbir kenar kırpılmaz. (aspect-ratio: Safari 15+ destekli.) */
  .side-wrap {
    width: auto;
    height: 100%;
    aspect-ratio: 1 / 3;
    overflow: visible;
  }
  .side-wrap--left  { left: 0;  right: auto; -webkit-mask-image: none; mask-image: none; }
  .side-wrap--right { right: 0; left: auto;  -webkit-mask-image: none; mask-image: none; }
  /* cover, oran kutuyla eşit (1:3) olduğu için kırpmaz; tam doldurur. Mobilde float YOK ->
     tam kaplayan görselde herhangi bir transform üst/alt boşluk açar veya kenar kırpardı. */
  .side { width: 100%; height: 100%; object-fit: cover; animation: none; transform: translateZ(0); }
  /* sağdakini biraz sağa, soldakini biraz sola (dışa) kaydır -> ortadaki örtüşme azalır,
     meyveler kenara yaklaşır. Yalnızca YATAY kayma -> üst/alt yine boşluksuz, kesik yok. */
  .side--left  { transform: translateZ(0) translateX(-30%); }
  .side--right { transform: translateZ(0) translateX(30%); }
  .menu-btn { padding: 12px 30px; font-size: 14px; bottom: calc(clamp(70px, 11vh, 96px) + env(safe-area-inset-bottom, 0px)); }
  .loader-logo { width: 100px; height: 100px; }
  .drink { width: clamp(120px, 26vw, 170px); }   /* mobilde 3 içecek +20px */
  .hero-title { font-size: clamp(18px, 5vw, 24px); }
  .wave { transform: translateY(calc(10% - 40px)); }
  #wavePath { stroke-width: 70; }
  .drink-controls { gap: 14px; top: calc(74% - 20px); }   /* 20px yukarı */
  .drink-nav { width: 56px; height: 56px; }
  .drink-nav svg { width: 24px; height: 24px; }
  .drink-name { font-size: 20px; min-width: 120px; }
  .scroll-cue { bottom: calc(clamp(14px, 3.5vh, 24px) + env(safe-area-inset-bottom, 0px)); }

  /* PERF (mobil, özellikle 120Hz ProMotion): backdrop-filter iOS'ta ilk boyamada full-resolution
     backing store oluşturup frame budget'ı aştırır -> kasma. Mobilde tamamen kaldır, solid
     yarı-saydam arka plan kullan. Görsel fark minimum, performans kazancı büyük. */
  .navbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.55);
    border-bottom-color: rgba(120, 70, 20, 0.2);
  }
  .cat-overlay {
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    backdrop-filter: blur(12px) saturate(150%);
  }
  .nav-overlay {
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
  }
}

/* Küçük mobil */
@media (max-width: 380px) {
  .navbar {
    padding-left: max(12px, env(safe-area-inset-left, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
  }
  .brand { font-size: 16px; }
  /* .side-wrap genişliği ≤640 kuralındaki aspect-ratio (tam yükseklik) ile yönetilir */
  .drink-controls { gap: 10px; top: calc(76% - 20px); }
  .drink-name { min-width: 100px; font-size: 17px; }
  .drink-nav { width: 48px; height: 48px; }
  .drink-nav svg { width: 20px; height: 20px; }
}

/* Alçak/yatay ekranlar (yükseklik kısıtlı) */
@media (max-height: 560px) {
  .hero { min-height: 0; }
  .drink { width: clamp(70px, 16vw, 120px); }   /* alçak ekranda taşmasın */
  .scroll-cue { display: none; }            /* yer dar -> menü butonuyla çakışmasın */
  .menu-btn { bottom: clamp(20px, 6vh, 48px); }
  .drink-controls { top: 66%; }
}

/* =====================================================
   ALT SİTE (hero altı bölümler)
   ===================================================== */
html { scroll-behavior: smooth; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.section {
  position: relative;
  padding: clamp(64px, 9vw, 132px) 0;
  scroll-margin-top: var(--nav-h);
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 12px;
}
.section__title {
  font-size: clamp(28px, 4.4vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.section__lead {
  margin-top: 16px;
  max-width: 580px;
  color: var(--ink-dim);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
}

/* ortalı başlıklı bölümler */
.features .wrap,
.menu .wrap { text-align: center; }
.features .section__lead,
.menu .section__lead { margin-left: auto; margin-right: auto; }

/* ---- Scroll reveal ---- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Özellikler ---- */
.features {
  background: linear-gradient(180deg, var(--page-a) 0%, var(--page-b) 42%, var(--page-b) 100%);
  transition: background 0.9s var(--ease);
}
.features__grid {
  margin-top: clamp(34px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 2vw, 26px);
  text-align: left;
}
.feature {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(120, 70, 20, 0.12);
  border-radius: 20px;
  padding: 28px 24px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(150, 80, 10, 0.14);
}
.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
}
.feature__icon svg { width: 28px; height: 28px; }
.feature__title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.feature__text { font-size: 14.5px; line-height: 1.6; color: var(--ink-dim); }
.js .features__grid .feature:nth-child(2) { transition-delay: 0.08s; }
.js .features__grid .feature:nth-child(3) { transition-delay: 0.16s; }
.js .features__grid .feature:nth-child(4) { transition-delay: 0.24s; }

/* ---- Menü ---- */
.menu { background: var(--page-b); transition: background 0.9s var(--ease); }
.menu__grid {
  margin-top: clamp(34px, 5vw, 56px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
  text-align: left;
}
.menu-card {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #ffffff;
  border: 1px solid rgba(120, 70, 20, 0.1);
  border-radius: 18px;
  padding: 20px 22px;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease;
}
.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(150, 80, 10, 0.16);
  border-color: color-mix(in srgb, var(--accent-dark) 65%, transparent);
}
.menu-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  color: var(--accent-dark);
  background: var(--page-b);
}
.menu-card__icon svg { width: 30px; height: 30px; }
.menu-card__body { flex: 1 1 auto; min-width: 0; }
.menu-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.menu-card__title { font-size: 17px; font-weight: 700; color: var(--ink); }
.menu-card__price {
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-dark);
}
.menu-card__desc { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink-dim); }
.js .menu__grid .menu-card:nth-child(2) { transition-delay: 0.06s; }
.js .menu__grid .menu-card:nth-child(3) { transition-delay: 0.12s; }
.js .menu__grid .menu-card:nth-child(4) { transition-delay: 0.06s; }
.js .menu__grid .menu-card:nth-child(5) { transition-delay: 0.12s; }
.js .menu__grid .menu-card:nth-child(6) { transition-delay: 0.18s; }

/* ---- Hakkımızda ---- */
.about { background: linear-gradient(180deg, var(--page-b), var(--page-c)); transition: background 0.9s var(--ease); }
.about__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.about__p { margin-top: 16px; color: var(--ink-dim); font-size: clamp(15px, 1.5vw, 17px); line-height: 1.7; }
.about__points { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.about__points li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; font-size: 15px; }
.about__points .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  flex: 0 0 auto;
}
.about__visual {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  aspect-ratio: 1 / 1;
}
.float-img {
  position: absolute;
  filter: drop-shadow(0 18px 28px rgba(120, 60, 0, 0.22));
}
.float-img--a { width: 58%; left: 21%; top: 16%; animation: fl1 7s   ease-in-out infinite; }  /* mango */
.float-img--b { width: 42%; left: 1%;  top: 52%; animation: fl2 8.4s ease-in-out infinite; }  /* limon */
.float-img--c { width: 24%; left: 4%;  top: 6%;  animation: fl3 6.5s ease-in-out infinite; }  /* nane */
.float-img--d { width: 33%; right: 0;  top: 4%;  animation: fl4 9.2s ease-in-out infinite; }  /* buz */
@keyframes fl1 { 0%,100%{ transform: translateY(0)    rotate(0deg);   } 50%{ transform: translateY(-14px) rotate(-2deg); } }
@keyframes fl2 { 0%,100%{ transform: translateY(0)    rotate(0deg);   } 50%{ transform: translateY(12px)  rotate(3deg);  } }
@keyframes fl3 { 0%,100%{ transform: translateY(0)    rotate(-3deg);  } 50%{ transform: translateY(-10px) rotate(4deg);  } }
@keyframes fl4 { 0%,100%{ transform: translateY(0)    rotate(2deg);   } 50%{ transform: translateY(-12px) rotate(-3deg); } }

/* ---- Hakkımızda carousel ---- */
.carousel {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background: var(--warm-2);
  box-shadow: 0 24px 50px rgba(120, 60, 0, 0.22);
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}
.carousel__slide { flex: 0 0 100%; height: 100%; }
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: none;
  background: none;
  cursor: pointer;
  color: #fff;
  transition: transform 0.25s var(--ease), color 0.25s ease;
  z-index: 2;
}
.carousel__arrow:hover {
  color: var(--accent);
  transform: translateY(-50%) scale(1.12);
}
.carousel__arrow:active { transform: translateY(-50%) scale(0.96); }
.carousel__arrow svg {
  width: 26px; height: 26px;
  fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}
.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }
.carousel__dots {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 9px;
  z-index: 2;
}
.carousel__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  transition: width 0.3s var(--ease), background 0.3s var(--ease);
}
.carousel__dot.is-active {
  width: 26px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
}

/* ---- İletişim ---- */
.contact { background: linear-gradient(180deg, var(--page-c), var(--page-d)); transition: background 0.9s var(--ease); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__list { list-style: none; margin-top: 26px; display: grid; gap: 16px; }
.contact__list li { display: flex; align-items: center; gap: 14px; color: var(--ink); font-size: 15.5px; }
.contact__link { color: inherit; text-decoration: none; }
.contact__link:hover { color: inherit; text-decoration: none; }
.contact__ic {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(120, 70, 20, 0.12);
}
.contact__ic svg { width: 22px; height: 22px; }
.contact__map {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 340px;
}

/* ---- Footer ---- */
.footer { position: relative; z-index: 4; background: #100b08; color: #f4ece0; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: 36px;
}
.footer__logo { display: flex; align-items: center; }
.footer__logo img { display: block; height: 36px; width: auto; }
.footer__tag { margin-top: 12px; max-width: 280px; color: rgba(244, 236, 224, 0.6); font-size: 14.5px; line-height: 1.6; }
.footer__social { display: flex; gap: 12px; margin-top: 20px; }
.footer__social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  color: #f4ece0;
  border: 1px solid rgba(244, 236, 224, 0.2);
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(244, 236, 224, 0.45); transform: translateY(-2px); }
.footer__social svg { width: 19px; height: 19px; }
.footer__col h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; margin-bottom: 16px; }
.footer__col a, .footer__col p { display: block; color: rgba(244, 236, 224, 0.62); font-size: 14.5px; text-decoration: none; margin-bottom: 10px; transition: color 0.25s ease; }
.footer__col a:hover { color: #fff; }
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(20px, 5vw, 64px) 30px;
  border-top: 1px solid rgba(244, 236, 224, 0.12);
  font-size: 13px;
  color: rgba(244, 236, 224, 0.5);
}
.footer__row { display: flex; align-items: center; gap: 6px; }
.footer__row--end { margin-left: auto; }
.footer__bbm-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.footer__bbm {
  display: inline-flex;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(120px);
  transition: none;
}
.footer__bbm.is-visible {
  animation: bbmSlideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.footer__bbm img { display: block; height: 20px; width: auto; transition: filter 0.25s ease; }
.footer__bbm:hover img { filter: brightness(0) invert(1); }
@keyframes bbmSlideIn {
  from { opacity: 0; transform: translateX(120px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ---- Partikül arka plan (temaya göre renk değişen, sürüklenen zerreler) ---- */
#particleCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;                 /* bolum zeminlerinin ustunde, icerigin altinda */
  pointer-events: none;
  opacity: 0;                 /* site acilinca yumusakca belirir */
  transition: opacity 1.2s var(--ease);
}
.site.is-revealed #particleCanvas { opacity: 0.6; }

/* icerik partikullerin ustunde kalsin (partikul yalnizca arka plan katmani) */
.section > .wrap { position: relative; z-index: 2; }

/* ---- Yukarı çık butonu ---- */
.scroll-top {
  position: fixed;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 50;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  color: var(--ink);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s ease;
  box-shadow: 0 4px 16px rgba(120, 70, 20, 0.15);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover {
  background: rgba(255, 255, 255, 0.75);
}
@media (max-width: 640px) {
  .scroll-top { bottom: 22px; right: 16px; width: 44px; height: 44px; }
}

/* ---- Erişilebilirlik yardımcıları ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Görünür klavye odak göstergesi (hover ile uyumlu) */
.nav__link:focus-visible,
.brand:focus-visible,
.footer__social a:focus-visible,
.footer__col a:focus-visible {
  outline: 2px solid var(--accent-dark);
  outline-offset: 3px;
  border-radius: 6px;
}
.btn:focus-visible,
.menu-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(184, 58, 14, 0.7);                                  /* yedek: color-mix desteklenmeyen tarayıcılar */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-dark) 70%, transparent); /* modern tarayıcılar */
}
/* color-mix yoksa kart kenarı yine de belirginleşsin */
@supports not (color: color-mix(in srgb, red, blue)) {
  .menu-card:hover { border-color: var(--accent-dark); }
}

/* Stagger gecikmesi hover geçişine sızmasın */
.js .features__grid .feature:hover,
.js .menu__grid .menu-card:hover { transition-delay: 0s; }

/* =====================================================
   ALT SİTE — RESPONSIVE
   ===================================================== */
@media (max-width: 880px) {
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .about__media { order: -1; }            /* görsel üstte */
  .about__visual { max-width: 360px; }
  .carousel { max-width: 420px; }
  .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .menu__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer__row--end { margin-left: 0; }
  .menu-card { padding: 16px 18px; gap: 14px; }
  .menu-card__icon { width: 50px; height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .float-img { animation: none; }
  html { scroll-behavior: auto; }
}

/* =====================================================
   SAYFA GEÇİŞ ÖRTÜSÜ — inceleyin -> menü geçişinde
   aydınlık hero'dan koyu menü sayfasına yumuşak geçiş
   (siyah/kahverengi flash'ı engeller)
   ===================================================== */
.page-veil {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #1b110b;                 /* menü sayfasının zemini ile aynı */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.42s ease, visibility 0.42s ease;
}
.page-veil.is-active {
  opacity: 1;
  visibility: visible;
}

/* =====================================================
   GERİYE DÖNÜK UYUMLULUK — backdrop-filter desteklenmiyorsa
   (eski Firefox / katı gizlilik modları / Tor) cam yüzeyleri
   okunur kalsın diye opak zemine geç
   ===================================================== */
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .navbar       { background: rgba(255, 252, 246, 0.94); }
  .nav-overlay  { background: rgba(255, 248, 239, 0.98); }
  .cat-overlay  { background: rgba(248, 240, 232, 0.98); }
  .menu-btn     { background: rgba(255, 255, 255, 0.92); }
  .drink-nav    { background: rgba(255, 255, 255, 0.9); }
  .feature      { background: rgba(255, 255, 255, 0.92); }
  .scroll-top   { background: rgba(255, 255, 255, 0.9); }
}


