/* ═══════════════════════════════════════════
   KULEALTI — Mobil (iOS / Safari için özel)
   Buzlu cam, safe-area, dvh, scroll-snap
   ═══════════════════════════════════════════ */

:root {
  --bordo-950: #2b0d17;
  --bordo-900: #3a1220;
  --bordo-800: #4a1727;
  --gold: #c9a45c;
  --gold-light: #e6cf9a;
  --gold-dark: #a5813f;
  --cream: #f1ebe1;
  --cream-dim: #d9d0c1;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --tabbar-h: calc(58px + env(safe-area-inset-bottom));
  --topbar-h: calc(52px + env(safe-area-inset-top));
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  background: var(--bordo-900);
  color: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none; /* Safari lastik etkisi sayfa dışına taşmasın */
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a, button { touch-action: manipulation; }

section[id], header[id] { scroll-margin-top: var(--topbar-h); }

/* ── Buzlu cam üst çubuk ── */
.m-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--topbar-h);
  padding: env(safe-area-inset-top) 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(43, 13, 23, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 0.5px solid rgba(201, 164, 92, 0.35);
}
.m-logo { height: 24px; width: auto; }

.m-res-pill {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bordo-950);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 55%, var(--gold-light));
  padding: 0.45rem 1rem;
  border-radius: 100px; /* iOS hap buton */
  box-shadow: 0 4px 14px rgba(201, 164, 92, 0.3);
  transition: transform 0.2s var(--ease);
}
.m-res-pill:active { transform: scale(0.94); }

/* ── Butonlar — dokunma hedefi ≥44pt ── */
.m-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.8rem;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.m-btn:active { transform: scale(0.96); }
.m-btn-gold {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 55%, var(--gold-light));
  color: var(--bordo-950);
  box-shadow: 0 8px 22px rgba(201, 164, 92, 0.28);
}
.m-btn-ghost {
  border: 1px solid rgba(241, 235, 225, 0.45);
  color: var(--cream);
  background: rgba(43, 13, 23, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ── Ana kaydırma + yumuşak bölüm yaslama ── */
.m-scroll {
  scroll-snap-type: y proximity;
}
.m-hero, .m-section { scroll-snap-align: start; }

/* ── HERO ── */
.m-hero {
  position: relative;
  min-height: 100dvh; /* dinamik viewport — Safari araç çubuğuna uyum */
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.m-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.8s ease, transform 7s ease-out;
}
.m-hero-img.is-active { opacity: 1; transform: scale(1); z-index: 1; }
.m-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg,
    rgba(43,13,23,0.55) 0%,
    rgba(43,13,23,0.28) 28%,
    rgba(43,13,23,0.5) 50%,
    rgba(43,13,23,0.88) 72%,
    rgba(43,13,23,0.97) 100%);
}
.m-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 1.4rem calc(var(--tabbar-h) + 3.2rem);
}
.m-hero-body .m-kicker {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.m-kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.m-hero-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 10.5vw, 3.8rem);
  letter-spacing: 0.16em;
  margin-right: -0.16em;
  line-height: 1;
  background: linear-gradient(120deg, var(--gold-dark) 0%, var(--gold-light) 45%, var(--cream) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 3px 16px rgba(0, 0, 0, 0.55));
}
.m-hero-line { width: 190px; margin: 1rem auto 0.8rem; }
.m-hero-sub {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cream);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.m-hero-actions {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.7rem;
}
.m-hero-chevron {
  position: absolute;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 0.8rem);
  width: 10px;
  height: 10px;
  border-right: 1.6px solid var(--gold);
  border-bottom: 1.6px solid var(--gold);
  transform: translateX(-50%) rotate(45deg);
  animation: mChev 1.8s ease-in-out infinite;
  z-index: 2;
}
@keyframes mChev {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0) rotate(45deg); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px) rotate(45deg); }
}

/* ── Bölümler ── */
.m-section {
  padding: calc(var(--topbar-h) + 0.8rem) 1.3rem 2.6rem;
  text-align: center;
  content-visibility: auto; /* ekran dışı bölümleri Safari boyamasın */
  contain-intrinsic-size: auto 720px;
}
.m-section-dark { background: var(--bordo-950); }
.m-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 2.1rem;
  letter-spacing: 0.13em;
  line-height: 1.1;
}
.m-line { width: 160px; margin: 0.9rem auto 1.4rem; }
.m-text {
  color: var(--cream-dim);
  font-size: 1.02rem;
  max-width: 34rem;
  margin: 0 auto 1.4rem;
}
.m-text strong { color: var(--gold-light); font-weight: 500; }
.m-text em { color: var(--cream); }

.m-card-photo {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}
.m-card-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.m-badges {
  display: flex;
  justify-content: center;
  gap: 1.8rem;
  margin-top: 1.6rem;
}
.m-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.m-badge img, .m-badge svg {
  height: 38px;
  width: auto;
  color: var(--gold);
}
.m-badge img {
  filter: brightness(0) invert(71%) sepia(38%) saturate(478%) hue-rotate(1deg) brightness(0.98);
}
.m-badge span {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* ── Yatay snap karusel (momentum + merkez yaslama) ── */
.m-carousel {
  display: flex;
  gap: 12px;
  margin: 0 -1.3rem;
  padding: 0.2rem 1.3rem 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.m-carousel::-webkit-scrollbar { display: none; }
.m-carousel img {
  flex: 0 0 auto;
  width: 78vw;
  max-width: 380px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  scroll-snap-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
}
.m-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0.4rem 0 1rem;
}
.m-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(217, 208, 193, 0.35);
  transition: background 0.3s, transform 0.3s;
}
.m-dots span.on {
  background: var(--gold);
  transform: scale(1.25);
}
.m-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-light);
  max-width: 30rem;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Menü kartı ── */
.m-menu-card {
  background: rgba(241, 235, 225, 0.04);
  border: 1px solid rgba(201, 164, 92, 0.22);
  border-radius: 18px;
  padding: 1.6rem 1.3rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}
.m-menu-icon {
  height: 46px;
  width: auto;
  filter: brightness(0) invert(71%) sepia(38%) saturate(478%) hue-rotate(1deg) brightness(0.98);
}
.m-menu-card p { color: var(--cream-dim); font-size: 0.98rem; }
.m-pdf-link {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Galeri: 2 sütun, temiz bitiş ── */
.m-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.m-gallery figure {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
}
.m-gallery figure.mg-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}
.m-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-gallery figure:active img { opacity: 0.75; }

/* ── iOS listesi (iletişim) ── */
.m-list {
  background: rgba(241, 235, 225, 0.045);
  border: 1px solid rgba(201, 164, 92, 0.2);
  border-radius: 16px;
  overflow: hidden;
  text-align: left;
}
.m-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 58px;
  padding: 0.65rem 1rem;
  transition: background 0.2s;
}
.m-row:active { background: rgba(201, 164, 92, 0.12); }
.m-row + .m-row { border-top: 0.5px solid rgba(201, 164, 92, 0.18); }
.m-row-static:active { background: none; }
.m-row-icon {
  flex: 0 0 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(201, 164, 92, 0.14);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.m-row-icon svg { width: 18px; height: 18px; }
.m-row-body { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.m-row-body strong { font-weight: 500; font-size: 0.95rem; color: var(--cream); }
.m-row-body em { font-style: normal; font-size: 0.78rem; color: var(--cream-dim); }
.m-row-go { color: rgba(217, 208, 193, 0.5); font-size: 1.4rem; font-family: var(--font-serif); }

/* ── Form ── */
.m-form {
  margin-top: 1.2rem;
  background: rgba(241, 235, 225, 0.045);
  border: 1px solid rgba(201, 164, 92, 0.2);
  border-radius: 16px;
  padding: 1.2rem 1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
  text-align: left;
}
.m-form h3 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}
.m-form input, .m-form textarea {
  width: 100%;
  font-size: 16px; /* iOS odak zumunu önler */
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--cream);
  background: rgba(43, 13, 23, 0.55);
  border: 1px solid rgba(241, 235, 225, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  resize: vertical;
}
.m-form input:focus, .m-form textarea:focus { border-color: var(--gold); }
.m-form input::placeholder, .m-form textarea::placeholder { color: rgba(217, 208, 193, 0.55); }
.m-form-thanks { color: var(--gold-light); font-style: italic; text-align: center; }

/* ── Footer ── */
.m-footer {
  text-align: center;
  padding: 2.2rem 1.3rem calc(var(--tabbar-h) + 1.6rem);
  background: var(--bordo-950);
  border-top: 1px solid rgba(201, 164, 92, 0.2);
}
.m-footer-logo { height: 26px; width: auto; margin: 0 auto 0.6rem; }
.m-footer p { font-family: var(--font-serif); font-style: italic; color: var(--cream-dim); font-size: 0.95rem; }
.m-copy { font-family: var(--font-sans) !important; font-style: normal !important; font-size: 0.72rem !important; letter-spacing: 0.08em; opacity: 0.6; margin-top: 0.5rem; }
.m-desktop-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(217, 208, 193, 0.55);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ── Alt sekme çubuğu (buzlu cam + safe area) ── */
.m-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  height: var(--tabbar-h);
  padding: 4px 0.3rem env(safe-area-inset-bottom);
  display: flex;
  background: rgba(43, 13, 23, 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  backdrop-filter: saturate(160%) blur(20px);
  border-top: 0.5px solid rgba(201, 164, 92, 0.35);
}
.m-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: rgba(217, 208, 193, 0.7);
  transition: color 0.25s, transform 0.15s;
}
.m-tab:active { transform: scale(0.92); }
.m-tab svg { width: 22px; height: 22px; }
.m-tab span {
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.m-tab.active { color: var(--gold-light); }
.m-tab.active svg { color: var(--gold); }

/* ── Menü defteri (tam ekran) ── */
.m-book {
  position: fixed;
  inset: 0;
  z-index: 300;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(201,164,92,0.08), transparent 60%),
    var(--bordo-950);
  display: none;
  flex-direction: column;
  overscroll-behavior: contain;
}
.m-book.open { display: flex; }
body.m-book-open { overflow: hidden; }
body.m-book-open .m-tabbar { display: none; }
.m-book-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 0.6rem) 1rem 0.6rem;
  background: rgba(43, 13, 23, 0.65);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 0.5px solid rgba(201, 164, 92, 0.3);
}
.m-book-close {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  background: none;
  border: 1px solid rgba(201, 164, 92, 0.5);
  border-radius: 100px;
  padding: 0.5rem 1rem;
}
.m-book-close:active { background: var(--gold); color: var(--bordo-950); }
.m-book-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem;
  min-height: 0;
}
.m-book-page {
  position: relative;
  perspective: 2200px;
  touch-action: pan-y;
}
.m-book-base, .m-flip-face {
  border-radius: 8px;
  overflow: hidden;
  background: #efe9df;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}
.m-book-base { position: absolute; inset: 0; }
.m-book-base canvas, .m-flip-face canvas { width: 100%; height: 100%; display: block; }
.m-flip-leaf {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  z-index: 5;
  will-change: transform;
  transition: transform 0.8s cubic-bezier(0.35, 0.05, 0.2, 1);
}
.m-flip-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.m-flip-face.back { transform: rotateY(180deg); }
.m-book-loading {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  color: var(--cream-dim);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}
.m-book-loading span {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(201, 164, 92, 0.25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: mSpin 0.9s linear infinite;
}
@keyframes mSpin { to { transform: rotate(360deg); } }
.m-book-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  padding: 0.5rem 0 calc(env(safe-area-inset-bottom) + 0.7rem);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--cream-dim);
}
.m-book-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(201, 164, 92, 0.4);
  background: none;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1;
  padding-bottom: 4px;
}
.m-book-nav:disabled { opacity: 0.25; }
.m-book-nav:active:not(:disabled) { background: var(--gold); color: var(--bordo-950); }

/* ── Lightbox ── */
.m-lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(23, 6, 12, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  overscroll-behavior: contain;
}
.m-lightbox.open { display: flex; }
body.m-lb-open { overflow: hidden; }
.m-lightbox img {
  max-width: 96vw;
  max-height: 82dvh;
  object-fit: contain;
  border-radius: 6px;
}
.m-lb-close {
  position: absolute;
  top: calc(env(safe-area-inset-top) + 0.6rem);
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(241, 235, 225, 0.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--cream);
  font-size: 1.5rem;
  line-height: 1;
}
.m-lb-counter {
  position: absolute;
  bottom: calc(env(safe-area-inset-bottom) + 1.2rem);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  color: var(--cream-dim);
}

/* ── Hareket azaltma ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .m-hero-chevron { animation: none; }
  .m-flip-leaf { transition: none; }
  /* fotoğraflar arası geçiş (crossfade) korunur — yalnızca yakınlaşma efekti kapanır */
  .m-hero-img { transition: opacity 1.2s ease; transform: none !important; }
}
