/* Hasankeyf Cittaslow — Tasarım Sistemi
   Palet: bazalt kahve / kireçtaşı / Dicle camgöbeği / Artuklu tuğla kili
   İmza öğe: "arch-frame" — Artuklu kemerini anımsatan sivri kemer çerçevesi */

:root {
  --basalt: #2c241d;
  --basalt-soft: #55483d;
  --limestone: #f1ebe0;
  --limestone-deep: #e4dbc9;
  --dicle: #16606b;
  --dicle-deep: #0e4750;
  --clay: #b0552b;
  --reed: #6f7f4c;
  --gold: #c29a4e;
  --white: #fdfcf9;
  --radius: 10px;
  --wrap: 1120px;
  --font-display: 'Marcellus', 'Georgia', serif;
  --font-body: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  color: var(--basalt);
  background: var(--limestone);
  line-height: 1.65;
  font-size: 1.0625rem;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--dicle); }
h1, h2, h3, .h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; color: var(--basalt); }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3, .h3 { font-size: 1.2rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 3.5rem 1.25rem; }
.center { text-align: center; }
.muted { color: var(--basalt-soft); }
.lead { font-size: 1.15rem; max-width: 46em; color: var(--basalt-soft); }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: .78rem; font-weight: 600; color: var(--clay); margin-bottom: .75rem; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--dicle); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip-link:focus { left: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Başlık / gezinme ---------- */
.site-header { background: var(--white); border-bottom: 3px double var(--limestone-deep); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .65rem; padding-bottom: .65rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--basalt); }
.brand-logo { height: 38px; width: auto; object-fit: contain; }
.brand-text strong { font-family: var(--font-display); font-size: 1.25rem; display: block; line-height: 1.1; }
.brand-text em { font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dicle); }

.site-nav ul { list-style: none; display: flex; gap: .25rem; align-items: center; }
.site-nav a, .sub-toggle {
  display: block; padding: .55rem .8rem; text-decoration: none; color: var(--basalt);
  font-weight: 500; font-size: .95rem; background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  border-radius: 6px;
}
.site-nav a:hover, .sub-toggle:hover, .site-nav a[aria-current="page"] { color: var(--dicle-deep); background: var(--limestone); }
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--white);
  border: 1px solid var(--limestone-deep); border-radius: var(--radius); box-shadow: 0 10px 24px rgba(44,36,29,.12);
  padding: .4rem; display: none; flex-direction: column; gap: 0;
}
.has-sub.open .sub { display: flex; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--basalt); margin: 5px 0; transition: transform .2s; }

/* ---------- İmza öğe: kemer çerçeve ---------- */
.arch-frame {
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(22,96,107,.10), transparent 55%),
    linear-gradient(180deg, var(--limestone-deep), var(--limestone));
  border-bottom: 3px double var(--gold);
}
.hero-inner, .tiftik-hero .hero-inner { padding: 4.5rem 1.25rem 4rem; max-width: 800px; position: relative; }
.hero-inner::before {
  content: ""; position: absolute; inset: 1.2rem auto auto 0; width: 64px; height: 84px;
  border: 2px solid var(--clay); border-bottom: 0;
  border-radius: 50% 50% 0 0 / 68% 68% 0 0; opacity: .5;
}
.hero-inner > * { position: relative; }
.hero h1, .tiftik-hero h1 { margin: .25rem 0 1rem; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.arch-underline h1, .arch-underline { position: relative; }
.page-head { margin-bottom: 2rem; }
.page-head h1 { padding-bottom: .8rem; margin-bottom: .8rem; position: relative; }
.page-head h1::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 88px; height: 10px;
  border: 2px solid var(--clay); border-bottom: 0; border-radius: 44px 44px 0 0 / 20px 20px 0 0; opacity: .65;
}
.arch-frame-sm { border: 1px solid var(--limestone-deep); border-top: 3px double var(--gold); border-radius: var(--radius); padding: 1.2rem; background: var(--white); }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-block; background: var(--dicle); color: #fff; text-decoration: none;
  padding: .7rem 1.4rem; border-radius: 999px; border: 2px solid var(--dicle);
  font-weight: 600; font-size: .95rem; cursor: pointer; font-family: var(--font-body);
  transition: background .15s, color .15s;
}
.btn:hover { background: var(--dicle-deep); border-color: var(--dicle-deep); }
.btn-ghost { background: transparent; color: var(--dicle); }
.btn-ghost:hover { background: var(--dicle); color: #fff; }
:focus-visible { outline: 3px solid var(--clay); outline-offset: 2px; }

/* ---------- Bölümler & kartlar ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-title { margin: 2.4rem 0 1.2rem; }
.more { font-weight: 600; text-decoration: none; }
.more:hover { text-decoration: underline; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none;
  color: var(--basalt); border: 1px solid var(--limestone-deep); display: flex; flex-direction: column;
  transition: transform .15s, box-shadow .15s;
}
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(44,36,29,.12); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clay); font-weight: 600; margin-bottom: .35rem; }

.band { background: var(--dicle); color: #fff; }
.band-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.6rem 1.25rem; flex-wrap: wrap; }
.band h2 { color: #fff; margin-bottom: .4rem; }
.band .btn { background: var(--white); color: var(--dicle-deep); border-color: var(--white); }
.band .btn:hover { background: var(--limestone); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.list-item {
  display: flex; gap: 1rem; padding: .8rem .2rem; text-decoration: none; color: var(--basalt);
  border-bottom: 1px solid var(--limestone-deep); align-items: baseline;
}
.list-item time { color: var(--clay); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.list-item:hover span { color: var(--dicle-deep); }

.photo-strip { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; }
.photo-strip img { aspect-ratio: 1; object-fit: cover; border-radius: 6px; }

/* ---------- Gezinme yolu ---------- */
.breadcrumbs { font-size: .88rem; padding-top: 1rem; color: var(--basalt-soft); display: flex; gap: .5rem; flex-wrap: wrap; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- İçerik sayfaları ---------- */
.prose-page { max-width: 860px; }
.page-hero { border-radius: var(--radius); margin-bottom: 1.6rem; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose table { margin-bottom: 1.1rem; }
.prose h2, .prose h3 { margin: 1.8rem 0 .7rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose img { border-radius: var(--radius); margin: 1rem 0; }
.prose blockquote { border-left: 4px solid var(--gold); padding: .4rem 0 .4rem 1.1rem; color: var(--basalt-soft); font-style: italic; }

/* ---------- Kriter analizi ---------- */
.status-summary { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.status-chip { padding: .55rem 1.1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--limestone-deep); font-size: .92rem; }
.status-chip strong { font-size: 1.1rem; margin-right: .3rem; }
.status-chip.met strong { color: var(--reed); }
.status-chip.partial strong { color: var(--gold); }
.status-chip.inprogress strong { color: var(--clay); }

.criteria-cat { background: var(--white); border: 1px solid var(--limestone-deep); border-radius: var(--radius); margin-bottom: 1rem; }
.criteria-cat summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; list-style: none; }
.criteria-cat summary::-webkit-details-marker { display: none; }
.criteria-cat summary h2 { font-size: 1.15rem; }
.criteria-cat[open] summary { border-bottom: 1px solid var(--limestone-deep); }
.criteria-cat > p { padding: .9rem 1.3rem 0; }
.count { font-size: .82rem; color: var(--basalt-soft); white-space: nowrap; }
.criteria-list { list-style: none; padding: .6rem 1.3rem 1.2rem; }
.crit { display: flex; gap: .9rem; padding: .8rem 0; border-bottom: 1px dashed var(--limestone-deep); align-items: flex-start; }
.crit:last-child { border-bottom: 0; }
.crit .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: .45rem; flex: 0 0 auto; }
.crit.met .dot { background: var(--reed); }
.crit.partial .dot { background: var(--gold); }
.crit.inprogress .dot { background: var(--clay); }
.crit > div { flex: 1; }
.crit p { font-size: .93rem; color: var(--basalt-soft); }
.crit-status { font-size: .8rem; font-weight: 600; color: var(--basalt-soft); white-space: nowrap; margin-top: .3rem; }

/* ---------- Ürün sayfası ---------- */
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.product-gallery .main { grid-column: 1 / -1; }
.product-gallery a { display: block; border-radius: var(--radius); overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.producer-box { margin-top: 1.8rem; }
.producer-box h2 { margin-bottom: .5rem; }
.producer-box .btn { margin-top: .8rem; }

/* ---------- Tiftik aşamaları ---------- */
.stepper { list-style: none; max-width: 760px; margin: 0 auto; position: relative; }
.stepper::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--gold), var(--clay)); opacity: .5; }
.step { display: flex; gap: 1.4rem; padding-bottom: 2.6rem; position: relative; }
.step-marker {
  width: 44px; height: 54px; flex: 0 0 auto; background: var(--white);
  border: 2px solid var(--clay); border-radius: 22px 22px 6px 6px / 30px 30px 6px 6px;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 1.2rem; color: var(--clay); z-index: 1;
}
.step-body { flex: 1; }
.step-body img { border-radius: var(--radius); margin-top: .9rem; }

/* ---------- Video facade ---------- */
.video-facade { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/9; background: var(--basalt); margin-top: .9rem; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-facade .play {
  position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%;
  border: 0; background: rgba(22,96,107,.92); color: #fff; font-size: 1.5rem; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s;
}
.video-facade .play:hover { transform: scale(1.08); }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Haberler / etkinlikler ---------- */
.filter-row { display: flex; gap: .5rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.chip {
  padding: .4rem 1rem; border-radius: 999px; text-decoration: none; font-size: .9rem; font-weight: 600;
  background: var(--white); color: var(--basalt); border: 1px solid var(--limestone-deep);
}
.chip.on, .chip:hover { background: var(--dicle); color: #fff; border-color: var(--dicle); }
.pager { display: flex; gap: .4rem; margin-top: 2rem; }

.past-list { list-style: none; }
.past-list li { border-bottom: 1px dashed var(--limestone-deep); }
.past-list a { display: block; padding: .7rem .2rem; text-decoration: none; color: var(--basalt-soft); }
.past-list a:hover { color: var(--dicle-deep); }
.past-list time { color: var(--clay); font-weight: 600; margin-right: .5rem; font-size: .9rem; }

.event-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.2rem; margin-bottom: 1.8rem; }
.event-meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--clay); font-weight: 700; margin-bottom: .2rem; }

/* ---------- Takvim ---------- */
.calendar { background: var(--white); border: 1px solid var(--limestone-deep); border-radius: var(--radius); padding: 1.2rem; margin-bottom: 2.4rem; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.cal-head h2 { font-size: 1.2rem; }
.cal-head button { background: var(--limestone); border: 1px solid var(--limestone-deep); border-radius: 6px; width: 38px; height: 38px; cursor: pointer; font-size: 1rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; text-align: center; color: var(--basalt-soft); padding: .3rem 0; }
.cal-cell { min-height: 62px; border: 1px solid var(--limestone-deep); border-radius: 6px; padding: .25rem .35rem; font-size: .82rem; background: var(--limestone); }
.cal-cell.other { opacity: .35; }
.cal-cell.today { border-color: var(--dicle); border-width: 2px; }
.cal-cell .d { font-weight: 600; }
.cal-event { display: block; margin-top: .2rem; background: var(--dicle); color: #fff; border-radius: 4px; padding: .1rem .3rem; font-size: .72rem; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event:hover { background: var(--dicle-deep); }

/* ---------- Masonry / lightbox ---------- */
.masonry { columns: 4 220px; column-gap: .7rem; }
.masonry a { display: block; margin-bottom: .7rem; border-radius: 8px; overflow: hidden; }
.masonry img { width: 100%; height: auto; display: block; transition: transform .2s; }
.masonry a:hover img { transform: scale(1.03); }

.lightbox {
  position: fixed; inset: 0; background: rgba(30,25,20,.92); z-index: 100;
  display: none; align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.on { display: flex; }
.lightbox img { max-width: min(1200px, 92vw); max-height: 88vh; width: auto; height: auto; border-radius: 6px; }
.lightbox .close { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; cursor: pointer; line-height: 1; }

/* ---------- Formlar ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.5rem; }
.contact-form label, .newsletter-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 1rem; }
.contact-form input, .contact-form textarea, .newsletter-form input[type="email"] {
  width: 100%; padding: .7rem .9rem; margin-top: .3rem; border: 1px solid var(--limestone-deep);
  border-radius: 8px; font: inherit; background: var(--white);
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--dicle); outline: none; }
.map-holder { margin-top: 1.2rem; border-radius: var(--radius); overflow: hidden; }
.flash { padding: .9rem 1.2rem; border-radius: 8px; margin-bottom: 1.4rem; font-weight: 500; }
.flash.ok { background: #e7efdd; color: #3c4d22; border: 1px solid #c4d4a6; }
.flash.err { background: #f6e2d8; color: #7a2e10; border: 1px solid #e4bfa9; }

/* ---------- Altbilgi ---------- */
.site-footer { background: var(--basalt); color: var(--limestone); margin-top: 3rem; border-top: 4px double var(--gold); }
.footer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 3rem 1.25rem 2rem; }
.footer-name { font-family: var(--font-display); font-size: 1.2rem; margin-top: .8rem; }
.footer-logo-chip { display: inline-block; background: var(--limestone); padding: .55rem .9rem; border-radius: 10px; }
.footer-logo { height: 40px; width: auto; object-fit: contain; display: block; }
.footer-title { font-size: 1rem; color: var(--gold); margin-bottom: .7rem; }
.site-footer .muted { color: #b8ac9c; }
.site-footer a { color: var(--limestone); }
.social a { margin-right: 1rem; }
.newsletter-form .kvkk { display: flex; gap: .5rem; font-weight: 400; font-size: .82rem; align-items: flex-start; margin: .7rem 0; }
.newsletter-form .kvkk input { width: auto; margin-top: .2rem; }
.footer-bottom {
  border-top: 1px solid #443a30; padding: 1.1rem 1.25rem; font-size: .85rem; color: #b8ac9c;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem;
}
.footer-bottom .credit { font-size: .82rem; }
.footer-bottom .credit a { color: #d9d0c0; font-weight: 600; }
.footer-bottom .credit a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-strip { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--limestone-deep); padding: .8rem 1.25rem 1.2rem; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .sub { position: static; box-shadow: none; border: 0; padding-left: 1rem; }
  .card-grid, .two-col, .contact-grid, .product-grid { grid-template-columns: 1fr; }
  .photo-strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .band-inner { flex-direction: column; align-items: flex-start; }
  .section { padding: 2.4rem 1.25rem; }
  .product-gallery { grid-template-columns: repeat(3, 1fr); }
}
.site-nav .sub{
    display:none !important;
}

.site-nav .has-sub.open>.sub{
    display:flex !important;
}