/* =========================================================
   Çay Çene Kıraathanesi — Yapım aşamasında
   Beyaz zemin · kırmızı / antrasit tema
   ========================================================= */

:root {
  --bg: #ffffff;           /* beyaz */
  --bg-2: #ececee;
  --surface: #f4f4f5;
  --border: rgba(43, 45, 49, .10);

  --text: #2b2d31;         /* antrasit */
  --text-dim: #5f6268;
  --tea: #d7263d;          /* kırmızı */
  --tea-deep: #a8192c;
  --tea-light: #e8475a;
  --label: #c21f35;        /* küçük etiketler */
  --steel: #3a3d42;        /* çizgiler, tabak */
  --line: rgba(43, 45, 49, .12);
  --card: #ffffff;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 50% 38% at 50% 20%, rgba(215, 38, 61, .07), transparent 72%),
    radial-gradient(ellipse 40% 35% at 6% 92%, rgba(43, 45, 49, .04), transparent 70%),
    radial-gradient(ellipse 40% 35% at 96% 68%, rgba(215, 38, 61, .04), transparent 70%),
    /* çini motifi */
    repeating-conic-gradient(from 45deg at 50% 50%, rgba(43, 45, 49, .022) 0 25%, transparent 0 50%);
  background-size: auto, auto, auto, 56px 56px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* kağıt dokusu */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 0;
}

/* ---------- üst şerit ---------- */
.top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--label);
}
.top__line { flex: 1; height: 1px; background: var(--line); }

/* ---------- sahne ---------- */
.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---------- bardak ---------- */
.glass { margin: 8px 0 4px; }
.glass__svg {
  width: 156px;
  height: auto;
  overflow: visible;
  filter: drop-shadow(0 16px 24px rgba(215, 38, 61, .22));
}
.glass__outline {
  fill: rgba(43, 45, 49, .02);
  stroke: rgba(43, 45, 49, .55);
  stroke-width: 1.6;
}
.glass__rim {
  fill: #fff;
  stroke: rgba(43, 45, 49, .55);
  stroke-width: 1.4;
}
.saucer {
  fill: #f1f1f2;
  stroke: var(--steel);
  stroke-width: 1.4;
}
.saucer__in { fill: none; stroke: rgba(43, 45, 49, .2); stroke-width: 1; }

/* çay dolumu: JS --fill değişkenini 0..1 arası günceller */
.tea, .tea__surface {
  transform: translateY(calc((1 - var(--fill, .85)) * 150px));
  transition: transform 2.4s cubic-bezier(.22, .8, .2, 1);
}
.tea__surface { animation: slosh 4s ease-in-out infinite; transform-origin: center; }

@keyframes slosh {
  0%, 100% { rx: 44; }
  50% { rx: 41; }
}

/* buhar */
.steam__p {
  stroke: rgba(43, 45, 49, .3);
  stroke-width: 3;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  opacity: 0;
  animation: steam 3.6s ease-in-out infinite;
}
.s2 { animation-delay: 1.2s; }
.s3 { animation-delay: 2.4s; }

@keyframes steam {
  0%   { stroke-dashoffset: 60; opacity: 0; transform: translateY(6px); }
  30%  { opacity: .9; }
  100% { stroke-dashoffset: -60; opacity: 0; transform: translateY(-14px); }
}

/* ---------- yazılar ---------- */
.eyebrow {
  margin: 18px 0 0;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(215, 38, 61, .07);
  border: 1px solid rgba(215, 38, 61, .3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--label);
}

.brand {
  margin: 14px 0 0;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(64px, 14vw, 148px);
  line-height: .92;
  letter-spacing: -.02em;
  font-variation-settings: "opsz" 144;
  display: flex;
  gap: .22em;
  flex-wrap: wrap;
  justify-content: center;
}
.brand__a { color: var(--text); }
.brand__b {
  font-style: italic;
  font-weight: 700;
  color: var(--tea);
  background: linear-gradient(180deg, var(--tea-light) 0%, var(--tea) 55%, var(--tea-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 520px;
  margin: 22px 0 0;
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
}

/* ---------- demlenme ---------- */
.brew {
  width: min(420px, 100%);
  margin-top: 34px;
  padding: 18px 20px 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(43, 45, 49, .07);
  text-align: left;
}
.brew__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--label);
}
.brew__pct {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--tea);
  font-variant-numeric: tabular-nums;
}
.brew__bar {
  position: relative;
  height: 10px;
  margin-top: 10px;
  border-radius: 99px;
  background: var(--bg-2);
  overflow: hidden;
}
.brew__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--tea-deep), var(--tea) 60%, var(--tea-light));
  box-shadow: 0 0 10px rgba(215, 38, 61, .3);
  transition: width 2.4s cubic-bezier(.22, .8, .2, 1);
}
.brew__fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }

.brew__note {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-dim);
  min-height: 1.6em;
}

/* ---------- menü ---------- */
.menu {
  list-style: none;
  margin: 64px 0 0;
  padding: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.menu__item {
  padding: 26px 24px 28px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.menu__item:nth-child(1) { background: rgba(215, 38, 61, .06); border-color: rgba(215, 38, 61, .25); }
.menu__item:nth-child(2) { background: var(--text); border-color: var(--text); }
.menu__item:nth-child(2) .menu__title { color: #fff; }
.menu__item:nth-child(2) .menu__text { color: #c4c6ca; }
.menu__item:nth-child(2) .menu__no { color: var(--tea-light); }
.menu__item:nth-child(3) { background: var(--surface); }
.menu__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--tea);
}
.menu__title {
  margin: 6px 0 8px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  color: var(--text);
}
.menu__text {
  margin: 0;
  font-size: 15px;
  color: var(--text-dim);
}

/* ---------- adres ---------- */
.visit {
  margin-top: 40px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(43, 45, 49, .07);
}
.visit__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(215, 38, 61, .08);
  color: var(--tea);
}
.visit__label {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--label);
}
.visit__addr {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-style: normal;
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
}
.visit__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 99px;
  background: var(--tea);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.visit__btn:hover { background: var(--tea-deep); transform: translateY(-1px); }
.visit__btn:focus-visible { outline: 3px solid var(--tea-light); outline-offset: 2px; }

/* ---------- söz ---------- */
.quote {
  margin: 48px 0 0;
  max-width: 640px;
  text-align: center;
}
.quote p {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.45;
  color: var(--text);
  transition: opacity .6s ease;
}
.quote p.is-hidden { opacity: 0; }

/* ---------- alt bilgi ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 22px 16px 30px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  max-width: 1080px;
  width: calc(100% - 48px);
  margin: 0 auto;
}
.foot__dot { color: var(--tea); }
.foot__social a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  margin-left: 6px;
}
.foot__social a:hover { border-color: var(--tea); }

/* ---------- giriş animasyonu ---------- */
.hero > *, .menu, .visit, .quote {
  animation: rise .9s cubic-bezier(.22, .8, .2, 1) both;
}
.hero > :nth-child(2) { animation-delay: .1s; }
.hero > :nth-child(3) { animation-delay: .18s; }
.hero > :nth-child(4) { animation-delay: .26s; }
.hero > :nth-child(5) { animation-delay: .34s; }
.menu  { animation-delay: .45s; }
.visit { animation-delay: .52s; }
.quote { animation-delay: .6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- mobil ---------- */
@media (max-width: 760px) {
  .top { padding: 20px 16px 0; gap: 12px; letter-spacing: .24em; }
  .stage { padding: 16px 16px 32px; }
  .glass__svg { width: 120px; }
  .menu { grid-template-columns: 1fr; margin-top: 44px; gap: 12px; }
  .menu__item { padding: 22px 20px; }
  .visit { grid-template-columns: auto 1fr; padding: 20px; gap: 16px; }
  .visit__btn { grid-column: 1 / -1; justify-content: center; }
  .visit__addr { font-size: 18px; }
  .foot { width: calc(100% - 32px); flex-direction: column; gap: 4px; }
  .foot__dot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .steam__p { opacity: .5; stroke-dashoffset: 0; }
}
