:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --text: #2a2420;
  --muted: #6f655c;
  --accent: #a4472b;       /* Diyarbakır toprağı / kiremit */
  --accent-soft: #f1ddd3;
  --line: #e4dbcf;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
a { color: inherit; }

/* Menü */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(16px, calc((100% - var(--max)) / 2));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: "Fraunces", serif; font-size: 1.4rem; text-decoration: none; }
.nav nav { display: flex; gap: 20px; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.nav nav a:hover, .nav nav a.active { color: var(--accent); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: transform .25s; }
section[id] { scroll-margin-top: 64px; }

/* Giriş */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(64px, 12vw, 140px) 16px clamp(48px, 8vw, 96px);
}
.eyebrow { color: var(--accent); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); max-width: 14ch; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.lead.narrow { max-width: 56ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 500;
  border: 1px solid var(--accent); transition: transform .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--accent); }

/* Bölümler */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 16px; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 28px; }
.section-head h2 { margin: 0; }

.empty-note { color: var(--muted); }

/* Galeri */
.gallery { columns: 3 280px; column-gap: 20px; }
.art {
  position: relative; margin: 0 0 20px; break-inside: avoid; cursor: zoom-in;
  background: var(--surface); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 8px 24px rgba(60,40,20,.06);
}
.art img { width: 100%; transition: transform .4s; }
.art:hover img { transform: scale(1.03); }
.art figcaption { padding: 12px 14px; font-size: .88rem; color: var(--muted); }
.art figcaption strong { color: var(--text); font-weight: 600; }
.badge {
  position: absolute; top: 12px; left: 12px;
  padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600;
}
.badge.satilik { background: var(--accent); color: #fff; }
.badge.satildi { background: rgba(255,255,255,.9); color: var(--muted); }

/* Hakkımda */
.about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--accent-soft); }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img.empty { display: none; }
.about:has(.about-img.empty) { grid-template-columns: minmax(0, 720px); }
.facts { list-style: none; padding: 0; margin: 24px 0 0; border-top: 1px solid var(--line); }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts span { display: inline-block; width: 110px; color: var(--muted); font-size: .9rem; }

/* Destek kartları */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 32px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.25rem; }
.card p { color: var(--muted); margin: 0 0 16px; }
.link { color: var(--accent); font-weight: 600; text-decoration: none; }

/* İletişim */
.contact { text-align: center; }
.contact .lead { margin: 0 auto; }
.contact-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

.footer { text-align: center; padding: 32px 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

/* Büyük görüntüleme */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20,16,12,.94); padding: 16px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 90vw; text-align: center; }
.lightbox img { max-height: 80vh; margin: 0 auto; border-radius: 6px; }
.lightbox figcaption { color: #e9e2d8; margin-top: 12px; font-size: .95rem; }
.lightbox button {
  position: absolute; background: none; border: 0; color: #fff;
  font-size: 2.6rem; cursor: pointer; padding: 8px 16px; opacity: .8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 8px; right: 8px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }

/* Hareket */
.hero > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.hero > :nth-child(2) { animation-delay: .12s; }
.hero > :nth-child(3) { animation-delay: .24s; }
.hero > :nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.card { transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(60,40,20,.10); }

.lightbox:not([hidden]) img { animation: zoom .35s ease both; }
@keyframes zoom { from { opacity: 0; transform: scale(.96); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Telefon */
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 4px 16px 12px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(60,40,20,.08);
  }
  .nav.open nav { display: flex; }
  .nav nav a { padding: 14px 0; font-size: 1.05rem; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav nav a:last-child { border-bottom: 0; }
  .nav.open .menu-btn span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav.open .menu-btn span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

  .section { padding: 48px 16px; }
  .hero { padding-top: 48px; }
  .hero-actions .btn { flex: 1; text-align: center; }

  .gallery { columns: 2; column-gap: 12px; }
  .art { margin-bottom: 12px; border-radius: 10px; }
  .art figcaption { padding: 8px 10px; font-size: .78rem; line-height: 1.45; }
  .badge { top: 8px; left: 8px; padding: 2px 8px; font-size: .68rem; }

  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-img { max-width: 320px; }
  .facts span { display: block; width: auto; font-size: .8rem; }

  .contact-links .btn { flex: 1 1 100%; }

  .lightbox img { max-height: 72vh; }
  .lb-prev, .lb-next { top: auto; bottom: 12px; }
  .lb-prev { left: 24%; }
  .lb-next { right: 24%; }
}
