/* ==========================================================
   Bizim Mahalle Restoran — ortak stil dosyası
   Renkler ve yazılar logodan: siyah yazı, alev kırmızısı,
   beyaz; fotoğraflardaki taş zeminle uyumlu açık gri.
   ========================================================== */

:root {
  --coal: #171717;        /* logo siyahı */
  --coal-2: #222121;
  --ink: #1d1d1d;
  --muted: #66686b;
  --fire: #d42a20;        /* logodaki alev kırmızısı */
  --fire-deep: #ac1f17;
  --stone: #f3f2ef;       /* taş gri zemin */
  --paper: #ffffff;
  --line: #e2e1dd;
  --wa: #1d9e52;

  --display: "Marcellus", "Optima", "Candara", serif;
  --body: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;

  --max: 1200px;
  --radius: 6px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.12;
  margin: 0 0 .45em;
}
h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
h3 { font-size: 1.45rem; }

/* Logodaki kırmızı çizgiden gelen başlık işareti */
.rule::before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--fire);
  margin-bottom: 22px;
}
.rule.center::before { margin-left: auto; margin-right: auto; }

:focus-visible { outline: 3px solid var(--fire); outline-offset: 3px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font: 700 .98rem/1 var(--body);
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--fire); color: #fff; }
.btn-primary:hover { background: var(--fire-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--coal); border-color: #fff; }
.btn-outline { border-color: var(--coal); color: var(--coal); }
.btn-outline:hover { background: var(--coal); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #16813f; }
.btn-block { width: 100%; }

/* ---------- Üst menü ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background-color .25s, box-shadow .25s;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: inline-block; line-height: 0; text-decoration: none; }
.brand .logo { height: 36px; width: auto; }
.brand .logo-dark { display: none; }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; font-size: .96rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a:not(.btn):hover { border-bottom-color: var(--fire); }
.nav-links .btn { padding: 12px 22px; }

.site-header.solid, .site-header.always-solid { background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.site-header.solid .logo-light { display: none; }
.site-header.solid .logo-dark { display: block; }
.site-header.solid .nav-links a:not(.btn) { color: var(--ink); }
.site-header.solid .nav-toggle { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #fff; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ---------- Hero: tam ekran yemek fotoğrafı ---------- */
.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--coal);
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 7s ease-out;
}
.hero-slides img.on { opacity: 1; transform: scale(1); }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(23, 23, 23, .55) 0%, rgba(23, 23, 23, 0) 22%),
    linear-gradient(90deg, rgba(23, 23, 23, .86) 0%, rgba(23, 23, 23, .55) 48%, rgba(23, 23, 23, .15) 100%);
}
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 150px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); max-width: 13ch; margin-bottom: 22px; }
.hero-lead { font-size: 1.15rem; max-width: 46ch; color: rgba(255, 255, 255, .85); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-info {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 48px;
  margin-top: 72px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  font-size: .95rem;
}
.hero-info small { display: block; color: rgba(255, 255, 255, .6); font-size: .82rem; margin-bottom: 2px; }
.hero-info a { color: #fff; text-decoration: none; }
.hero-info a:hover { text-decoration: underline; }

.open-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #9a9a9a; margin-right: 8px; vertical-align: 1px; }
.is-open .open-dot { background: #3ccf78; box-shadow: 0 0 0 4px rgba(60, 207, 120, .2); }

/* ---------- Hikâye ---------- */
.story { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.story-photo { position: relative; }
.story-photo img { width: 100%; aspect-ratio: 803 / 508; object-fit: cover; border-radius: var(--radius); }
.story-photo .inset {
  position: absolute;
  right: -36px;
  bottom: -48px;
  width: 46%;
  border: 8px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .35);
}
.story-text .slogan {
  font: 400 clamp(1.5rem, 2.6vw, 2rem)/1.3 var(--display);
  color: var(--fire);
  margin: 0 0 24px;
}
.story-text p { color: #3a3a3a; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.facts b { display: block; font: 400 1.25rem var(--display); }
.facts span { color: var(--muted); font-size: .92rem; }

/* ---------- Kategoriler ---------- */
.cats-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: 44px; }
.cats-head h2 { margin: 0; }
.cat-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
  min-height: 600px;
}
.cat {
  position: relative;
  display: flex;
  align-items: flex-end;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--coal);
  min-height: 240px;
}
.cat:first-child { grid-row: span 2; }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.cat:hover img { transform: scale(1.04); }
.cat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(23, 23, 23, .82) 0%, rgba(23, 23, 23, 0) 55%); }
.cat-body { position: relative; z-index: 1; padding: 24px 26px; width: 100%; display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.cat h3 { margin: 0; font-size: 1.7rem; }
.cat:first-child h3 { font-size: 2.3rem; }
.cat span { font-size: .92rem; color: rgba(255, 255, 255, .85); white-space: nowrap; }

/* ---------- Ustanın tavsiyesi ---------- */
.board { background: var(--paper); }
.board-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.board-list { columns: 2; column-gap: 56px; }
.dish-row { break-inside: avoid; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dish-line { display: flex; align-items: baseline; gap: 10px; }
.dish-line strong { font: 400 1.3rem/1.2 var(--display); }
.dish-line .dots { flex: 1; min-width: 16px; border-bottom: 1px dotted #b9b8b3; transform: translateY(-5px); }
.dish-line .price { font-weight: 800; color: var(--fire); white-space: nowrap; }
.dish-row p { margin: 4px 0 0; color: var(--muted); font-size: .94rem; }

/* ---------- Fotoğraf bandı ---------- */
.band { position: relative; height: clamp(260px, 34vw, 460px); overflow: hidden; background: var(--coal); }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Mahallede neler var ---------- */
.amenities { background: var(--coal); color: #fff; }
.amenities .lead { color: rgba(255, 255, 255, .7); }
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 56px; }
.amenity svg { width: 38px; height: 38px; color: var(--fire); margin-bottom: 18px; }
.amenity h3 { font-size: 1.35rem; margin-bottom: 8px; }
.amenity p { margin: 0; color: rgba(255, 255, 255, .68); font-size: .96rem; }
.amenities .btn-row { margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .14); display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.amenities .btn-row span { color: rgba(255, 255, 255, .65); }

/* ---------- Rezervasyon ---------- */
.reserve-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.reserve-photo { margin-top: 36px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.reserve-photo img { width: 100%; height: 100%; object-fit: cover; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; margin-bottom: 18px; }
.steps li::before {
  content: counter(s);
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1.5px solid var(--fire);
  color: var(--fire);
  border-radius: 50%;
  font: 400 1.15rem var(--display);
}
.steps strong { display: block; font-weight: 700; }
.steps span { color: var(--muted); font-size: .95rem; }
.call-line { margin-top: 28px; color: var(--muted); }
.call-line a { display: inline-block; font: 400 1.6rem var(--display); color: var(--ink); text-decoration: none; }
.call-line a:hover { color: var(--fire); }

.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 44px;
  border-top: 4px solid var(--fire);
  box-shadow: 0 30px 60px -44px rgba(0, 0, 0, .4);
}
.form-card h3 { font-size: 1.9rem; margin-bottom: 26px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: .9rem; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: 500 1rem var(--body);
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  transition: border-color .15s;
  appearance: none;
  -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231d1d1d' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--ink); }
.field.invalid input,
.field.invalid select { border-color: var(--fire); }
.field .err { color: var(--fire); font-size: .86rem; font-weight: 700; display: none; }
.field.invalid .err { display: block; }

.guest-picker { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.guest-picker button { width: 48px; height: 48px; flex: none; border: 0; background: transparent; cursor: pointer; font-size: 1.4rem; color: var(--fire); }
.guest-picker button:hover { background: var(--stone); }
.guest-picker input { border: 0 !important; text-align: center; font-weight: 800; padding: 0; -moz-appearance: textfield; }
.guest-picker input::-webkit-inner-spin-button,
.guest-picker input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); font-weight: 400 !important; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--fire); flex: none; }

.form-success { padding: 8px 0; }
[hidden] { display: none !important; }
.form-success .tick { width: 60px; height: 60px; border-radius: 50%; background: rgba(29, 158, 82, .12); color: var(--wa); display: grid; place-items: center; margin-bottom: 20px; }
.form-success .tick svg { width: 28px; height: 28px; }
.form-success p { color: var(--muted); }

/* ---------- İletişim ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; align-items: stretch; }
.contact-list { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-list li { display: grid; grid-template-columns: 8rem 1fr; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.contact-list b { font-weight: 700; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { color: var(--fire); text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 460px; background: var(--stone); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; display: block; filter: grayscale(.35); }

/* ---------- Alt bilgi ---------- */
.site-footer { background: var(--coal); color: rgba(255, 255, 255, .65); padding: 72px 0 28px; font-size: .95rem; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-footer .brand .logo { height: 44px; margin-bottom: 18px; }
.site-footer nav { display: flex; gap: 30px; flex-wrap: wrap; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--fire); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; font-size: .88rem; }

/* ---------- WhatsApp butonu ---------- */
.wa-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--wa); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(29, 158, 82, .38);
}
.wa-float svg { width: 30px; height: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slides img { transition: none; transform: none; }
  .cat img { transition: none; }
}

/* ---------- Duyarlı düzen ---------- */
@media (max-width: 1040px) {
  .story-grid, .board-grid, .reserve-grid, .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  .story-photo { margin-right: 36px; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed;
    inset: 80px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    padding: 8px 24px 24px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, .12);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav-links a:not(.btn) { display: block; color: var(--ink) !important; padding: 15px 0; border-bottom: 1px solid var(--line) !important; font-size: 1.05rem; }
  .nav-links .btn { margin-top: 18px; width: 100%; }
  .nav-open { background: var(--paper); }
  .nav-open .logo-light { display: none; }
  .nav-open .logo-dark { display: block; }
  .nav-open .nav-toggle { color: var(--ink); }
  .nav-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .cat-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; min-height: 0; }
  .cat:first-child { grid-column: 1 / -1; grid-row: auto; min-height: 320px; }
  .board-list { columns: 1; }
  .hero-info { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
}

@media (max-width: 600px) {
  .section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .brand .logo { height: 28px; }
  .hero { min-height: 88svh; }
  .hero-slides img { object-position: 60% center; }
  .hero::after { background: linear-gradient(0deg, rgba(23, 23, 23, .92) 0%, rgba(23, 23, 23, .6) 55%, rgba(23, 23, 23, .45) 100%); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-info { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .story-photo .inset { right: -20px; bottom: -32px; }
  .facts { grid-template-columns: 1fr; gap: 14px; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-body { flex-direction: column; align-items: flex-start; gap: 4px; }
  .cat:first-child h3 { font-size: 2rem; }
  .amenity-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-card { padding: 28px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 0; }
  .map, .map iframe { min-height: 320px; }
}

/* ---------- Erişilebilirlik ve yardımcılar ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 12px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.link { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.again { margin-top: 20px; }
.form-alert { background: rgba(212, 42, 32, .08); color: var(--fire-deep); border-left: 3px solid var(--fire); padding: 12px 14px; border-radius: var(--radius); font-weight: 600; font-size: .95rem; }
.footer-address { font-style: normal; font-size: .9rem; max-width: 46ch; color: rgba(255, 255, 255, .55); }
.addr { font-style: normal; color: #3a3a3a; }
.site-header.always-solid { position: sticky; }
.menu-page .wa-float { display: none; }

/* ---------- SSS ---------- */
.faq { background: var(--paper); border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font: 400 1.25rem/1.35 var(--display);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.6rem var(--body); color: var(--fire); transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: #3a3a3a; max-width: 64ch; }

/* ---------- İzinle yüklenen harita (KVKK) ---------- */
.map { position: relative; display: grid; }
.map-consent { display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 32px; min-height: 460px; background: var(--stone) url("../img/genis-meze.jpg") center / cover; position: relative; }
.map-consent::before { content: ""; position: absolute; inset: 0; background: rgba(243, 242, 239, .9); }
.map-consent > * { position: relative; max-width: 36ch; }
.map-consent p { margin: 0; color: var(--muted); }

/* ---------- KVKK ve hata sayfaları ---------- */
.legal { background: var(--paper); min-height: 60vh; }
.legal-inner { max-width: 760px; }
.legal-inner h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal-inner h2 { font-size: 1.45rem; margin-top: 1.6em; }
.legal-inner p { color: #3a3a3a; }
.legal-meta { margin-top: 40px; font-size: .9rem; color: var(--muted) !important; }
.error-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

@media (max-width: 1040px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .map-consent { min-height: 320px; } }