/* ==========================================================================
   Casa Della Pasta Fresca — stil
   Renk paleti flyer'dan: koyu zeytin yeşili · altın · krem
   ========================================================================== */

:root {
  --ink:        #10201A;
  --ink-2:      #16291F;
  --ink-3:      #1D3427;
  --line:       #2C4636;
  --gold:       #C9A24B;
  --gold-soft:  #E7CE8E;
  --cream:      #F4EEDF;
  --cream-dim:  #C6BFAC;
  --paper:      #FAF6EA;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5vw, 64px);
  --max: 1120px;
  --r: 14px;
  --dock-h: 64px;
}

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

/* display kuralları hidden'ı ezmesin — eksik iletişim bilgileri gerçekten gizlensin */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
@media (min-width: 860px) { body { padding-bottom: 0; } }

img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 20px; font-weight: 500;
}
.skip:focus { left: 0; }

:where(a, button, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --------------------------------- tipografi ---------------------------- */

.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 .35em;
  letter-spacing: .01em;
}
.h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  margin: 0 0 .6em;
  color: var(--gold-soft);
}
.eyebrow {
  font-family: var(--sans);
  font-size: .74rem;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .9em;
}
.lede {
  color: var(--cream-dim);
  max-width: 56ch;
  margin: 0 auto;
  font-size: 1.02rem;
}
.section-head { text-align: center; margin-bottom: clamp(28px, 5vw, 52px); }

section { padding: clamp(56px, 9vw, 110px) var(--pad); }
section > * { max-width: var(--max); margin-inline: auto; }

/* --------------------------------- butonlar ----------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn--sm { padding: 11px 22px; font-size: .75rem; }

/* --------------------------------- topbar ------------------------------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--pad);
  background: transparent;
  transition: background .35s, box-shadow .35s, padding .35s;
}
.topbar.is-stuck {
  background: rgba(16, 32, 26, .93);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-block: 10px;
}
.topbar__brand { display: flex; align-items: center; min-height: 36px; text-decoration: none; }
/* Sayfa başındayken hero'daki logo zaten markayı taşıyor; isim ancak
   çubuk yapıştıktan sonra beliriyor. */
.topbar__name {
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .04em;
  opacity: 0; transition: opacity .35s;
}
.topbar.is-stuck .topbar__name { opacity: 1; }
@media (max-width: 520px) { .topbar__name { font-size: .92rem; } }

.topbar__nav { display: flex; gap: clamp(14px, 3vw, 30px); }
.topbar__nav a {
  text-decoration: none; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--cream); opacity: .82;
}
.topbar__nav a:hover { opacity: 1; color: var(--gold-soft); }
@media (max-width: 640px) { .topbar__nav { display: none; } }

/* ---------------------------------- hero -------------------------------- */

.hero {
  position: relative;
  min-height: calc(100svh - var(--dock-h));
  display: grid; place-items: center;
  padding: 96px var(--pad) 72px;
  text-align: center;
  overflow: hidden;
}
/* max-width:none — `section > *` kuralı bu absolute katmanı da 1120px'e
   sıkıştırıp arka plan görselini ortada şerit haline getiriyordu. */
.hero__media { position: absolute; inset: 0; z-index: 0; max-width: none; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(115% 85% at 50% 46%, rgba(16,32,26,.42) 0%, rgba(16,32,26,.80) 62%, var(--ink) 100%),
    linear-gradient(to bottom, rgba(16,32,26,.80) 0%, rgba(16,32,26,.20) 26%, transparent 42%),
    linear-gradient(to top, var(--ink) 3%, transparent 46%);
}
.hero__inner { position: relative; z-index: 1; max-width: 700px; }
/* Logo krem kağıt zeminli renkli bir amblem — flyer'daki gibi koyu zemin
   üstünde açık madalyon olarak duruyor. */
.hero__logo img, .footer__logo img { width: 100%; height: auto; display: block; }
.hero__logo {
  width: min(370px, 76vw);
  margin: 0 auto clamp(18px, 4vw, 30px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 55px rgba(0, 0, 0, .5);
}
.hero__tagline {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 3.6vw, 1.7rem);
  font-weight: 500; font-style: italic;
  color: var(--cream);
  margin: 0 0 .5em;
}
.hero__place {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 clamp(24px, 5vw, 38px);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero__status {
  margin: 22px 0 0; font-size: .82rem; letter-spacing: .08em; color: var(--cream-dim);
}
.hero__status b { font-weight: 500; }
.hero__status .dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #7BC47F; margin-right: 7px; vertical-align: middle;
}
.hero__status.is-closed .dot { background: #C4736B; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; translate: -50% 0; z-index: 1;
  width: 26px; height: 42px; border: 1px solid var(--line); border-radius: 999px;
}
.hero__scroll span {
  position: absolute; top: 9px; left: 50%; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: var(--gold);
  animation: scrolldot 1.9s ease-in-out infinite;
}
@keyframes scrolldot { 0%,100% { opacity:0; transform: translate(-50%, 0); } 45% { opacity:1; transform: translate(-50%, 12px); } }
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* --------------------------------- strip -------------------------------- */

.strip { padding-block: clamp(34px, 5vw, 54px); background: var(--ink-2); border-block: 1px solid var(--line); }
/* margin shorthand'lerinde inline değeri hep `auto` kalmalı — aksi halde
   `section > *` kuralından gelen ortalama eziliyor ve blok sola yapışıyor. */
.strip__list {
  list-style: none; margin: 0 auto; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px 18px;
  text-align: center;
}
@media (min-width: 760px) { .strip__list { grid-template-columns: repeat(4, 1fr); } }
.strip__list b {
  display: block; font-family: var(--serif); font-size: 1.22rem; font-weight: 600; color: var(--gold-soft);
}
.strip__list span { font-size: .84rem; color: var(--cream-dim); }

/* -------------------------------- sipariş ------------------------------- */

.order { text-align: center; background: var(--ink); }
.order__grid {
  display: grid; gap: 12px; margin-top: 32px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.order__card {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 20px 18px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--ink-2);
  text-decoration: none; font-weight: 500; letter-spacing: .04em;
  transition: border-color .25s, background .25s, transform .2s;
}
.order__card:hover { transform: translateY(-3px); background: var(--ink-3); }
.order__card .swatch { width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* ---------------------------------- menü -------------------------------- */

.menu { background: var(--ink-2); border-block: 1px solid var(--line); }

/* Şerit kenardan kenara; içindeki satır ise container hizasında kalıyor.
   Dolguyu doğrudan şeride verirsek butonlar ekran kenarına hizalanıp
   menü içeriğiyle aynı eksene oturmuyor. */
.menu__tabs {
  position: sticky; top: 56px; z-index: 30; /* 56px = yapışkan topbar yüksekliği */
  max-width: none;
  margin: 0 calc(var(--pad) * -1) 34px;
  padding: 12px var(--pad);
  background: rgba(22, 41, 31, .94);
  backdrop-filter: blur(10px);
  border-block: 1px solid var(--line);
}
.menu__tabs__row {
  display: flex; gap: 8px; overflow-x: auto;
  max-width: var(--max); margin-inline: auto;
  scrollbar-width: none;
}
.menu__tabs__row::-webkit-scrollbar { display: none; }
.menu__tabs button {
  flex: none;
  padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--cream-dim);
  font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.menu__tabs button:hover { color: var(--cream); }
.menu__tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* .cat da bir <section> — genel `section { padding }` kuralını sıfırlamazsak
   kategoriler içeri kayıyor ve aralarında 220px'lik ölü boşluk oluşuyor.
   scroll-margin: topbar (56) + yapışkan sekmeler (~58) kadar pay bırakıyor. */
.cat { padding: 0; margin-bottom: clamp(44px, 7vw, 72px); scroll-margin-top: 128px; }
.cat:last-of-type { margin-bottom: 0; }

.cat__head { display: grid; gap: 20px; align-items: center; margin-bottom: 30px; }
.cat__title { font-family: var(--serif); font-size: clamp(1.7rem, 4vw, 2.3rem); font-weight: 600; margin: 0; }
.cat__sub { font-style: italic; color: var(--gold); font-family: var(--serif); font-size: 1.05rem; margin: 0; }
/* Kırpma yok: görseller kendi doğal oranlarında duruyor. aspect-ratio +
   object-fit:cover kombinasyonu kadrajı kesip amatör gösteriyordu. */
.cat__img {
  width: 100%; max-width: 480px; height: auto;
  display: block; margin: 0 auto 26px;
  border-radius: var(--r);
}
@media (min-width: 720px) {
  .cat__head { grid-template-columns: 1fr 340px; }
  .cat__img { max-width: 340px; margin: 0; grid-row: 1; grid-column: 2; }
}

/* Kolonlar bağımsız aksın: grid olsaydı yan yana hücreler eşit yüksekliğe
   zorlanır, kısa ürünlerin altında boşluk kalırdı. */
.items { list-style: none; margin: 0; padding: 0; }
@media (min-width: 900px) { .items { column-count: 2; column-gap: 48px; } }

.item {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 16px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(44, 70, 54, .55);
  break-inside: avoid;
}
.item__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; margin: 0; line-height: 1.3; }
.item__prices { text-align: right; }
.item__price {
  display: block;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 600; color: var(--gold);
  white-space: nowrap;
}
/* porsiyon etiketi fiyatın yanında kalsın — alta düşerse satır iki katına çıkıyor */
.item__price small {
  font-family: var(--sans); font-size: .66rem; letter-spacing: .08em;
  color: var(--cream-dim); font-weight: 400; margin-left: 7px;
}
.item__desc { grid-column: 1 / -1; margin: 0; font-size: .88rem; color: var(--cream-dim); line-height: 1.55; }

.cat__note {
  margin: 22px 0 0; padding: 14px 18px;
  border-left: 2px solid var(--gold);
  background: rgba(201, 162, 75, .07);
  font-size: .86rem; color: var(--cream-dim); font-style: italic;
}
.menu__foot { text-align: center; margin: clamp(40px, 6vw, 64px) auto 0; font-size: .8rem; color: var(--cream-dim); }

/* --------------------------------- galeri ------------------------------- */

.gallery { background: var(--ink); }
.gallery__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .gallery__grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.gallery__grid button {
  padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--ink-2); cursor: zoom-in; line-height: 0;
}
.gallery__grid img {
  width: 100%; height: auto; aspect-ratio: 1; object-fit: cover;
  transition: transform .5s ease, opacity .3s;
}
.gallery__grid button:hover img { transform: scale(1.06); opacity: .9; }
.gallery__cta { text-align: center; margin: 32px auto 0; }

/* -------------------------------- iletişim ------------------------------ */

.contact { background: var(--ink-2); border-top: 1px solid var(--line); }
.contact__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  padding: 26px 24px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--ink);
}
.card p { margin: 0 0 .6em; color: var(--cream-dim); }
.card__actions { margin: 18px 0 0; }

.linklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.linklist a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.linklist a:hover { color: var(--gold-soft); border-color: var(--gold); }

.hours { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours td { padding: 6px 0; color: var(--cream-dim); border-bottom: 1px solid rgba(44,70,54,.5); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }
.hours tr.is-today td { color: var(--gold-soft); font-weight: 500; }

.map { margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.map iframe { width: 100%; height: 340px; border: 0; filter: grayscale(.3) contrast(1.05); }

/* --------------------------------- footer ------------------------------- */

.footer {
  padding: clamp(44px, 7vw, 72px) var(--pad) clamp(44px, 7vw, 60px);
  text-align: center; background: var(--ink); border-top: 1px solid var(--line);
}
.footer__logo {
  width: min(210px, 56vw); margin: 0 auto 24px;
  border-radius: 12px; overflow: hidden;
}
.footer__meta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-size: .84rem; color: var(--cream-dim); margin: 0 0 10px; }
.footer__meta a { color: var(--gold-soft); text-decoration: none; }
.footer__copy { font-size: .76rem; color: var(--cream-dim); opacity: .6; margin: 0; }

/* ---------------------------------- dock -------------------------------- */

.dock {
  position: fixed; inset: auto 0 0 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(16, 32, 26, .96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 860px) { .dock { display: none; } }
.dock a {
  display: grid; place-items: center; gap: 3px;
  height: var(--dock-h);
  text-decoration: none; color: var(--cream-dim);
  font-size: .64rem; letter-spacing: .08em; text-transform: uppercase;
}
.dock a:active { color: var(--gold); }
.dock svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------- lightbox ------------------------------ */

.lightbox {
  border: 0; padding: 0; max-width: 100vw; max-height: 100vh;
  width: 100%; height: 100%;
  background: rgba(10, 20, 16, .96);
}
.lightbox::backdrop { background: rgba(10, 20, 16, .9); }
.lightbox img { width: 100%; height: 100%; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(16,32,26,.8); color: var(--cream);
  font-size: 26px; line-height: 1; cursor: pointer;
}

/* -------------------------------- reveal -------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }
