/* ===================================================================
   Ciğerci Hacı Baba — Stil Dosyası
   =================================================================== */

:root {
  --primary: #9e2a2b;
  --primary-dark: #7c2021;
  --primary-light: #c0392b;
  --cream: #f6f1e9;
  --cream-dark: #efe7da;
  --ink: #241d1a;
  --text: #36302c;
  --muted: #7a716a;
  --white: #ffffff;
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, .08);
  --shadow-md: 0 12px 30px rgba(0, 0, 0, .12);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --header-h: 78px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.ico { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: .92rem;
  letter-spacing: .3px; padding: 13px 26px; border-radius: 50px;
  border: 2px solid transparent; cursor: pointer; transition: all .25s var(--ease);
  text-transform: uppercase; white-space: nowrap;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(158, 42, 43, .3); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(158, 42, 43, .4); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn--ghost:hover { background: #fff; color: var(--primary); border-color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #e9e2da; font-size: .82rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.topbar__info { display: flex; gap: 26px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 7px; color: #d9cfc6; transition: color .2s; }
.topbar__item:hover { color: #fff; }
.topbar__item .ico { width: 15px; height: 15px; }
.topbar__social { display: flex; gap: 6px; }
.topbar__soc { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #d9cfc6; transition: all .2s; }
.topbar__soc:hover { background: var(--primary); color: #fff; }
.topbar__soc .ico { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, .06); transition: box-shadow .3s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; }
.brand__logo { width: 54px; height: 54px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__top { font-family: "Playfair Display", serif; font-weight: 800; font-size: 1.15rem; color: var(--primary); letter-spacing: 1px; }
.brand__bottom { font-family: "Playfair Display", serif; font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: 2px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav__list { display: flex; gap: 26px; }
.nav__link {
  position: relative; font-weight: 500; font-size: .95rem; color: var(--text);
  padding: 6px 0; transition: color .2s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--primary); transition: width .25s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--primary); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { width: 26px; height: 3px; background: var(--ink); border-radius: 3px; transition: all .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - var(--header-h) - 40px);
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: url("../images/hero.jpg") center/cover no-repeat fixed;
  color: #fff; padding: 90px 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 10, .55) 0%, rgba(20, 12, 10, .7) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 4px; font-size: .82rem; font-weight: 500;
  color: #f3d9b0; margin-bottom: 18px;
}
.hero__title {
  font-family: "Playfair Display", serif; font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1.05; margin-bottom: 18px;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .4);
}
.hero__subtitle { font-size: clamp(1rem, 2.4vw, 1.3rem); font-weight: 300; color: #f1e9e2; margin-bottom: 36px; }
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 2px solid rgba(255, 255, 255, .6); border-radius: 50%; color: #fff;
  animation: bob 1.8s var(--ease) infinite;
}
.hero__scroll svg { width: 22px; height: 22px; fill: currentColor; }
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- Sections / Headings ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--cream-dark); }
.section-head { text-align: center; margin-bottom: 54px; }
.section-head__kicker {
  display: inline-block; text-transform: uppercase; letter-spacing: 3px;
  font-size: .8rem; font-weight: 600; color: var(--primary); margin-bottom: 10px;
}
.section-head__title {
  font-family: "Playfair Display", serif; font-weight: 700;
  font-size: clamp(1.9rem, 4.5vw, 2.9rem); color: var(--ink);
}
.section-head__divider {
  display: block; width: 80px; height: 3px; margin: 18px auto 0;
  background: var(--primary); border-radius: 3px; position: relative;
}
.section-head__divider::before, .section-head__divider::after {
  content: ""; position: absolute; top: 50%; width: 30px; height: 1px; background: rgba(158, 42, 43, .4);
}
.section-head__divider::before { right: 100%; margin-right: 10px; }
.section-head__divider::after { left: 100%; margin-left: 10px; }

/* ---------- Story ---------- */
.story__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; }
.story__media { position: relative; display: flex; justify-content: center; }
.story__circle {
  width: 320px; height: 320px; border-radius: 50%; background: #fff; padding: 18px;
  box-shadow: var(--shadow-md); border: 4px solid rgba(158, 42, 43, .15); display: grid; place-items: center;
}
.story__circle img { width: 100%; height: 100%; object-fit: contain; }
.story__badge {
  position: absolute; bottom: 8px; right: 30px; background: var(--primary); color: #fff;
  border-radius: var(--radius); padding: 14px 20px; text-align: center; box-shadow: var(--shadow-md);
}
.story__badge strong { display: block; font-family: "Playfair Display", serif; font-size: 1.7rem; line-height: 1; }
.story__badge span { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.story__text p { margin-bottom: 16px; color: var(--muted); }
.story__list { margin: 22px 0 28px; display: grid; gap: 12px; }
.story__list li { position: relative; padding-left: 32px; font-weight: 500; color: var(--text); }
.story__list li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px;
  background: var(--primary); color: #fff; border-radius: 50%; display: grid; place-items: center;
  font-size: .8rem; font-weight: 700;
}

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 70px; }
.card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card__img { aspect-ratio: 4 / 3; overflow: hidden; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { padding: 24px 24px 28px; text-align: center; }
.card__title {
  font-family: "Playfair Display", serif; font-size: 1.4rem; color: var(--primary);
  margin-bottom: 10px; text-transform: uppercase; letter-spacing: .5px;
}
.card__desc { color: var(--muted); font-size: .94rem; }

/* ---------- Menu list ---------- */
.menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; }
.menu__cat {
  font-family: "Playfair Display", serif; font-size: 1.35rem; color: var(--ink);
  padding-bottom: 12px; margin-bottom: 18px; border-bottom: 2px solid rgba(158, 42, 43, .25);
}
.menu__items li { display: flex; align-items: baseline; gap: 8px; padding: 9px 0; }
.menu__name { font-weight: 500; color: var(--text); }
.menu__name small { color: var(--muted); font-weight: 400; }
.menu__dots { flex: 1; border-bottom: 1px dotted rgba(0, 0, 0, .25); transform: translateY(-4px); }
.menu__price { font-weight: 700; color: var(--primary); }
.menu__note { text-align: center; margin-top: 30px; font-size: .85rem; color: var(--muted); font-style: italic; }

/* ---------- Gallery ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1 / 1;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.gallery__item::after {
  content: "+"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(158, 42, 43, .55); color: #fff; font-size: 2.4rem; font-weight: 300;
  opacity: 0; transition: opacity .3s;
}
.gallery__item:hover img { transform: scale(1.12); }
.gallery__item:hover::after { opacity: 1; }

/* ---------- Reservation ---------- */
.reserve__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.reserve__form {
  background: #fff; padding: 34px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field label small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #e2d9cd; border-radius: 10px;
  font-family: inherit; font-size: .95rem; color: var(--text); background: #fdfbf8;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(158, 42, 43, .12);
}
.field textarea { resize: vertical; }
.form-feedback { margin-top: 14px; text-align: center; font-weight: 500; min-height: 1.2em; }
.form-feedback.success { color: #1f7a3d; }
.form-feedback.error { color: var(--primary); }

/* İletişim & Konum */
.contact__grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: stretch; }
.reserve__location { display: flex; flex-direction: column; gap: 22px; }
.map { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); height: 100%; min-height: 320px; }
.contact__grid .map { min-height: 360px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-list { display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 16px 18px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.contact-list .ico { width: 26px; height: 26px; fill: var(--primary); margin-top: 2px; }
.contact-list strong { display: block; color: var(--ink); font-size: .95rem; }
.contact-list span, .contact-list a { color: var(--muted); font-size: .9rem; }
.contact-list a:hover { color: var(--primary); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c9bfb6; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer__logo { width: 88px; margin-bottom: 16px; background: #fff; border-radius: 50%; padding: 6px; }
.footer__brand p { font-size: .92rem; margin-bottom: 18px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: all .25s; }
.footer__social a:hover { background: var(--primary); transform: translateY(-3px); }
.footer__social .ico { width: 18px; height: 18px; }
.footer__col h4 { color: #fff; font-family: "Playfair Display", serif; font-size: 1.15rem; margin-bottom: 18px; }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a, .footer__col li { font-size: .92rem; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 20px 0; }
.footer__bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.footer__bottom p { font-size: .85rem; }
.footer__admin { color: #8d827a; border-bottom: 1px dotted rgba(255,255,255,.25); margin-left: 6px; }
.footer__admin:hover { color: #fff; }
.footer__credit { color: #8d827a; }
.footer__credit a { color: #c9bfb6; border-bottom: 1px dotted rgba(255,255,255,.25); transition: color .2s, border-color .2s; }
.footer__credit a:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .9);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 22px; right: 30px; background: none; border: none; color: #fff; font-size: 3rem; line-height: 1; cursor: pointer; }

/* ---------- WhatsApp FAB ---------- */
.fab-whatsapp {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
  transition: transform .25s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.1); }
.fab-whatsapp svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Scroll reveal (yalnızca JS varsa gizle) ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 980px) {
  .story__grid { grid-template-columns: 1fr; gap: 40px; }
  .story__media { order: -1; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .reserve__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .topbar__item--hide { display: none; }
  .nav {
    position: fixed; top: var(--header-h); right: 0; height: calc(100vh - var(--header-h));
    width: min(80vw, 320px); background: #fff; flex-direction: column; align-items: flex-start;
    justify-content: flex-start; gap: 0; padding: 26px; box-shadow: var(--shadow-lg);
    transform: translateX(100%); transition: transform .35s var(--ease); overflow-y: auto;
  }
  .nav.open { transform: translateX(0); }
  .nav__list { flex-direction: column; gap: 4px; width: 100%; }
  .nav__list li { width: 100%; }
  .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid #f0e9df; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 20px; width: 100%; }
  .hamburger { display: flex; }
  .cards { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; margin-bottom: 56px; }
  .menu { grid-template-columns: 1fr; gap: 30px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .hero { background-attachment: scroll; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .topbar__info { gap: 0; }
  .brand__bottom { font-size: 1.15rem; }
  .brand__top { font-size: 1rem; }
  .brand__logo { width: 46px; height: 46px; }
  .field-row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom .container { justify-content: center; text-align: center; }
  .reserve__form { padding: 24px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
