/* TEMEL AYARLAR */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #111111;
  --text: #f5f1e8;
  --muted: #bdb5aa;
  --coffee: #b19b76;
  --waffle: #e3b341;
  --tantuni: #ef6659;
  --border: rgba(255,255,255,.10);
}
[hidden] { display: none !important; }
body {
  font-family: system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  isolation: isolate;
}
/* Gerçek mekan fotoğrafı: düşük kontrastlı dekoratif arka plan */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17,13,10,.80), #111111 95%),
              url("assets/mekan.webp") center 35% / cover no-repeat;
}
/* MEVCUT AÇILIŞ ANİMASYONU — JavaScript kodu değiştirilmez */
.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0b0b0b;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: introExit 2s ease-in-out forwards;
}
.intro-logo {
  width: 260px;
  max-width: 65vw;
  height: auto;
  animation: logoReveal 1.8s ease-in-out forwards;
}
@keyframes logoReveal {
  0% { opacity: 0; transform: scale(.85); filter: blur(10px); }
  40%, 75% { opacity: 1; transform: scale(1); filter: blur(0); }
  100% { opacity: 0; transform: scale(1.08); }
}
@keyframes introExit {
  0%, 75% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}
/* KARŞILAMA ALANI */
.hero {
  padding: 35px 20px 22px;
  text-align: center;
}
.header-logo {
  width: 150px;
  max-width: 45vw;
  height: auto;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(27px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -.6px;
  margin-bottom: 8px;
}
.hero p { font-size: 15px; color: var(--muted); line-height: 1.65; }
.container { width: min(1100px, 92%); margin: 12px auto 30px; }
/* MARKA KARTLARI */
.brand-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
  animation: fadeIn .5s ease;
}
.brand-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  border-radius: 20px;
  padding: 23px 44px 23px 23px;
  min-height: 305px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  cursor: pointer;
  background: #241b14;
  border: 1px solid var(--accent);
  box-shadow: 0 12px 30px rgba(0,0,0,.28);
  transition: transform .25s ease, box-shadow .25s ease;
}
.coffee-card { --accent: #c8ad86; --photo: url("assets/coffee.webp"); --photo-position: center 72%; }
.waffle-card { --accent: #e3b341; --photo: url("assets/waffle.webp"); --photo-position: center 65%; }
.tantuni-card { --accent: #ef6659; --photo: url("assets/tantuni-durum.webp"); --photo-position: center; }
.brand-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--photo);
  background-size: cover;
  background-position: var(--photo-position);
  transition: transform .45s ease;
}
.brand-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 12%, rgba(18,12,8,.25) 45%, rgba(20,13,9,.96) 87%);
}
@media (hover: hover) {
  .brand-card:hover { transform: translateY(-4px); box-shadow: 0 17px 34px rgba(0,0,0,.4); }
  .brand-card:hover::before { transform: scale(1.04); }
}
.brand-card:active { transform: scale(.98); }
.brand-card:focus-visible, .back-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.brand-label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 8px;
}
.brand-card h2 { font-size: clamp(19px, 2.1vw, 24px); font-weight: 650; margin-bottom: 6px; line-height: 1.2; }
.brand-card p { font-size: 13px; color: #eee6db; line-height: 1.4; }
.card-arrow {
  position: absolute;
  right: 13px;
  bottom: 24px;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  font-size: 19px;
  line-height: 1;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(20,13,9,.5);
}
/* GERİ DÖN BUTONU VE MENÜLER */
.back-button {
  background: #1d1d1d;
  color: var(--coffee);
  border: 1px solid var(--border);
  padding: 13px 20px;
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
  margin-bottom: 20px;
}
.menu-panel { animation: fadeIn .4s ease; }
.menu-header { text-align: center; padding: 20px 0 30px; }
.menu-header h3 { font-size: 32px; margin-bottom: 8px; color: var(--accent); }
.menu-header p { color: var(--muted); }
#coffee { --accent: var(--coffee); }
#waffle { --accent: var(--waffle); }
#tantuni { --accent: var(--tantuni); }
.menu-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.menu-category { background: #191919; border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.menu-category h4 { color: var(--accent); font-size: 19px; margin-bottom: 15px; }
.menu-category ul { list-style: none; }
.menu-category li { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.menu-category li:last-child { border-bottom: none; }
.menu-category li strong { white-space: nowrap; color: var(--accent); }
footer { text-align: center; padding: 20px; font-size: 11px; line-height: 1.8; color: #aaa; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
/* TELEFON: fotoğraf sağda, yazılar solda, kartlar alt alta */
@media (max-width: 900px) {
  .brand-selector, .menu-grid { grid-template-columns: 1fr; }
  .brand-selector { gap: 12px; }
  .brand-card { min-height: 145px; padding: 16px 43% 16px 17px; justify-content: center; }
  .brand-card::before { left: 38%; }
  .brand-card::after { background: linear-gradient(90deg, #20170f 0%, #20170f 34%, rgba(32,23,15,.90) 43%, rgba(32,23,15,.12) 72%, rgba(32,23,15,.18) 100%); }
  .coffee-card { --photo-position: center 68%; }
  .waffle-card { --photo-position: center 69%; }
  .tantuni-card { --photo-position: 45% center; }
  .brand-card h2 { font-size: 20px; }
  .card-arrow { right: 12px; bottom: 12px; }
}
@media (max-width: 600px) {
  .hero { padding: 24px 16px 16px; }
  .header-logo { width: 112px; margin-bottom: 10px; }
  .hero p { font-size: 13px; }
  .container { margin-top: 8px; }
  .brand-card { min-height: 126px; border-radius: 16px; }
  .brand-card h2 { font-size: 18px; }
  .brand-label { font-size: 10px; letter-spacing: 1.2px; }
  .brand-card p { font-size: 12px; }
  .menu-category { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-screen { display: none; }
  * { animation: none !important; transition: none !important; }
}
