/* =========================================================================
   Öykü Kirman İç Mimarlık — site stilleri
   Mobil öncelikli (360px taban) · geniş masaüstü düzeni (1440px+)
   ========================================================================= */

/* ---------------------------------------------------------------- Tokens */
:root {
  --ink: #17150f;
  --ink-2: #332e25;
  --stone: #625c51;
  --stone-2: #6f685c;
  --line: #ddd5c7;
  --line-soft: #eae4d9;
  --paper: #f8f5f0;
  --paper-2: #f1ece3;
  --paper-3: #e9e2d6;
  --card: #fffdfa;
  --brass: #85611f;
  --brass-2: #b89055;
  --white: #fff;
  --ok: #2f6b4f;
  --err: #a23b2b;

  --font-display: Georgia, "Iowan Old Style", "Times New Roman", "Noto Serif", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --step--1: clamp(0.82rem, 0.8rem + 0.1vw, 0.88rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.45rem, 1.3rem + 0.75vw, 1.9rem);
  --step-3: clamp(1.8rem, 1.5rem + 1.5vw, 2.7rem);
  --step-4: clamp(2.15rem, 1.6rem + 2.8vw, 4rem);
  --step-5: clamp(2.5rem, 1.7rem + 4vw, 5.2rem);

  --gutter: 20px;
  --maxw: 1280px;
  --maxw-wide: 1600px;
  --maxw-prose: 44rem;
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(23, 21, 15, 0.06), 0 4px 14px rgba(23, 21, 15, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 21, 15, 0.07), 0 18px 40px rgba(23, 21, 15, 0.09);
  --bar-h: 64px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: light;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 1200px) {
  :root { --gutter: 48px; }
}

/* ------------------------------------------------------------ Temel sıfır */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, video, svg { max-width: 100%; display: block; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.018em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
p { margin: 0 0 1em; }

a { color: inherit; text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brass); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: var(--radius);
}

::selection { background: var(--brass); color: var(--white); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 8px; top: -60px;
  z-index: 200; background: var(--ink); color: var(--paper);
  padding: 12px 18px; border-radius: var(--radius);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* --------------------------------------------------------------- Düzen */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: var(--maxw-wide); }
.wrap-prose { max-width: var(--maxw-prose); }

.section { padding-block: clamp(48px, 7vw, 108px); }
.section-tight { padding-block: clamp(36px, 5vw, 72px); }
.section-alt { background: var(--paper-2); }
.section-ink { background: var(--ink); color: var(--paper); }
.section-ink h2, .section-ink h3 { color: var(--paper); }

.stack > * + * { margin-top: var(--stack-gap, 1rem); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid > * { min-width: 0; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 700px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------- Tipografik  */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--brass);
  flex: none;
}
.eyebrow-plain::before { display: none; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  font-family: var(--font-display);
}
.muted { color: var(--stone); }
.small { font-size: var(--step--1); }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* -------------------------------------------------------------- Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.2s var(--ease);
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--brass); color: var(--white); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--brass); color: var(--white); }
.btn-wa { background: #1a7a43; color: #fff; }
.btn-wa:hover { background: #14633a; color: #fff; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 0.88rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: border-color 0.25s var(--ease), gap 0.25s var(--ease);
}
.link-arrow::after { content: "→"; transition: transform 0.25s var(--ease); }
.link-arrow:hover { border-color: var(--brass); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80; /* açık menü panelinin (70) üstünde: kapatma düğmesi hep erişilebilir */
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--bar-h);
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 0 1 auto;
  min-width: 0;
}
.brand-mark {
  width: auto;
  height: 40px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-name {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 0.9rem;
  line-height: 1.1;
  letter-spacing: 0.2em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.58rem;
  letter-spacing: 0.34em;
  color: var(--stone);
  white-space: nowrap;
}
@media (max-width: 359px) {
  .brand-name { font-size: 0.8rem; letter-spacing: 0.14em; }
}

.nav-desktop { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 48px; height: 48px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: calc(var(--bar-h) + 24px) var(--gutter) 32px;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.4s var(--ease), visibility 0.4s;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav-panel.is-open { transform: translateY(0); visibility: visible; }
.nav-panel a {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 7vw, 2.4rem);
  text-decoration: none;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.nav-panel a .idx {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  color: var(--stone-2);
}
.nav-panel a[aria-current="page"] { color: var(--brass); }
.nav-panel-foot {
  margin-top: auto;
  padding-top: 28px;
  display: grid;
  gap: 12px;
}
.nav-panel-foot .contact-line {
  display: flex; align-items: center; justify-content: flex-start; gap: 12px;
  min-height: 48px;
  padding: 8px 0;
  border-bottom: 0;
  font-family: var(--font-sans);
  font-size: 1rem; text-decoration: none;
}
body.nav-open .site-header { background: var(--paper); border-bottom-color: var(--line); }

body.nav-open { overflow: hidden; }

@media (min-width: 1040px) {
  .nav-toggle { display: none; }
  .nav-panel { display: none; }
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 34px);
  }
  .nav-desktop a {
    text-decoration: none;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 500;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
  }
  .nav-desktop a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--brass);
    transition: width 0.3s var(--ease);
  }
  .nav-desktop a:hover::after,
  .nav-desktop a[aria-current="page"]::after { width: 100%; }
  .nav-desktop a[aria-current="page"] { color: var(--brass); }
  .header-cta { display: inline-flex !important; }
  .brand-mark { height: 46px; }
  .brand-name { font-size: 1rem; }
  .brand-sub { font-size: 0.62rem; }
}
.header-cta { display: none; }

/* --------------------------------------------------- Mobil alt eylem çubuğu */
.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 55;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.action-bar .btn { min-height: 48px; padding-inline: 16px; font-size: 0.9rem; }
.action-bar .icon-btn {
  width: 52px;
  padding-inline: 0;
}
@media (min-width: 1040px) { .action-bar { display: none; } }

body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 1040px) { body { padding-bottom: 0; } }

/* --------------------------------------------------- Masaüstü WhatsApp FAB */
.wa-fab {
  display: none;
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 56;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1a7a43;
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px) scale(1.04); background: #14633a; }
.wa-fab svg { width: 28px; height: 28px; }
@media (min-width: 1040px) { .wa-fab { display: inline-flex; } }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  isolation: isolate;
}
.hero-media {
  position: relative;
  min-height: 72svh;
  display: grid;
  overflow: hidden;
  max-width: 1680px;      /* çok geniş ekranlarda fotoğrafı aşırı büyütme */
  margin-inline: auto;
}
/* Görsel akıştan çıkarılır: dikey fotoğrafın doğal yüksekliği kahramanı uzatmasın */
.hero-media picture {
  position: absolute;
  inset: 0;
}
.hero-media picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Metin okunurluğu: üstte başlık çubuğu, altta metin bloğu için koyulaşan perde */
  background:
    linear-gradient(180deg, rgba(14, 13, 9, 0.5) 0%, rgba(14, 13, 9, 0.34) 26%, rgba(14, 13, 9, 0.66) 56%, rgba(14, 13, 9, 0.88) 100%);
  z-index: 1;
}
@media (min-width: 900px) {
  .hero-media::after {
    background:
      linear-gradient(90deg, rgba(14, 13, 9, 0.72) 0%, rgba(14, 13, 9, 0.38) 46%, rgba(14, 13, 9, 0.04) 74%),
      linear-gradient(180deg, rgba(14, 13, 9, 0.3) 0%, rgba(14, 13, 9, 0.06) 40%, rgba(14, 13, 9, 0.62) 100%);
  }
}
.hero-body {
  position: relative;
  grid-area: 1 / 1;
  z-index: 2;
  align-self: end;
  width: 100%;
  padding-block: clamp(28px, 6vw, 72px);
}
.hero h1 {
  color: var(--white);
  font-size: var(--step-5);
  max-width: 17ch;
  margin-bottom: 16px;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.32);
}
.hero-sub {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--step-1);
  font-family: var(--font-display);
  margin-bottom: 26px;
}
.hero .eyebrow { color: #ecd9b6; }
.hero .eyebrow::before { background: #ecd9b6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; min-width: 150px; }
@media (min-width: 700px) {
  .hero-actions .btn { flex: 0 0 auto; }
}
.hero-meta {
  display: none;
  margin-top: 40px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  gap: 40px;
  color: rgba(255, 255, 255, 0.88);
}
.hero-meta div { display: grid; gap: 2px; }
.hero-meta dt { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass-2); }
.hero-meta dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
@media (min-width: 900px) {
  .hero-media { min-height: min(86svh, 880px); }
  .hero h1 { max-width: 13ch; }
  .hero-sub { max-width: 40ch; }
  .hero-meta { display: flex; }
}

/* ------------------------------------------------------------ Manifesto */
.manifesto {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}
@media (min-width: 900px) {
  .manifesto { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .manifesto-side { position: sticky; top: 110px; }
}
.manifesto-quote {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 1rem;
}
.manifesto-body p { color: var(--ink-2); }

/* -------------------------------------------------------------- Projeler */
.project-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 760px) {
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .project-grid { grid-template-columns: repeat(12, 1fr); gap: clamp(32px, 2.6vw, 64px) clamp(24px, 2vw, 48px); }
  .project-grid > .project-card { grid-column: span 6; }
  .project-grid > .project-card.is-wide { grid-column: span 12; }
  .project-grid > .project-card.is-tall { grid-column: span 5; }
  .project-grid > .project-card.is-offset { grid-column: span 7; }
  .project-grid > .project-card.is-narrow { grid-column: span 5; }
  .project-grid > .project-cta.is-7 { grid-column: span 7; }
  .project-grid > .project-cta.is-5 { grid-column: span 5; }
  .project-grid > .project-cta.is-12 { grid-column: span 12; min-height: 0; }
}
@media (min-width: 760px) and (max-width: 1199px) {
  .project-grid > .project-cta { grid-column: 1 / -1; min-height: 0; }
}
/* Çok projeli listede ilk kartlardan sonrası: üç kolonlu sık ızgara */
.project-grid-more { margin: clamp(48px, 6vw, 96px) 0 clamp(20px, 2.4vw, 32px); }
.project-grid.project-grid-compact { gap: clamp(28px, 3vw, 44px) clamp(20px, 2vw, 36px); }
@media (min-width: 560px) {
  .project-grid.project-grid-compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .project-grid.project-grid-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.project-grid.project-grid-compact > .project-card { grid-column: auto; }
.project-card.is-compact .project-figure { aspect-ratio: 4 / 3; }
.project-card.is-compact .project-body { padding-top: 14px; }
.project-card.is-compact .project-title { font-size: var(--step-1); }
.project-card.is-compact .project-summary {
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.project-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: clamp(26px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: 300px;
  align-self: stretch;
}
.project-cta h3 { color: var(--white); font-size: var(--step-3); margin: 0; max-width: 16ch; }
.project-cta p { color: rgba(248, 245, 240, 0.76); margin: 0; max-width: 44ch; }
.project-cta .eyebrow { color: var(--brass-2); margin: 0; }
.project-cta .eyebrow::before { background: var(--brass-2); }
.project-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.project-card { position: relative; }
.project-card a { text-decoration: none; display: block; }
.project-figure {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
}
.project-card.is-tall .project-figure { aspect-ratio: 3 / 4; }
.project-card.is-wide .project-figure { aspect-ratio: 16 / 9; }
.project-figure img, .project-figure picture {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.6s var(--ease);
}
.project-card a:hover .project-figure img { transform: scale(1.04); }
.project-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(16, 14, 10, 0.42) 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.project-card a:hover .project-figure::after { opacity: 1; }

.project-body { padding-top: 18px; display: grid; gap: 6px; }
.project-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.project-kicker span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--stone-2); }
.project-title {
  font-family: var(--font-display);
  font-size: var(--step-2);
  line-height: 1.15;
  margin: 0;
}
.project-card a:hover .project-title { color: var(--brass); }
.project-summary { color: var(--stone); font-size: 0.97rem; margin: 4px 0 0; }

/* Proje listesi filtreleri */
.filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }
.filters a {
  flex: none;
  padding: 10px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  background: var(--white);
  white-space: nowrap;
}
.filters a[aria-current="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* --------------------------------------------------------- Proje detayı */
.pd-hero {
  background: var(--ink);
  color: var(--paper);
}
.pd-hero-media {
  width: 100%;
  max-height: 78svh;
  overflow: hidden;
}
.pd-hero-media img { width: 100%; height: 100%; object-fit: cover; max-height: 78svh; }
.pd-hero-media.is-capped { margin-inline: auto; }
.pd-split { display: grid; gap: clamp(22px, 4vw, 64px); padding-block: clamp(20px, 3vw, 44px); }
.pd-split-media { border-radius: var(--radius); overflow: hidden; background: var(--paper-3); max-height: 82svh; }
.pd-split-media img { width: 100%; height: 100%; object-fit: cover; max-height: 82svh; }
@media (min-width: 900px) {
  .pd-split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr); align-items: center; }
  .pd-split-media { justify-self: end; width: 100%; max-width: 520px; }
}
.pd-head { padding-block: clamp(28px, 4vw, 56px); }
.pd-head h1 { font-size: var(--step-4); margin-bottom: 10px; }
.pd-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 28px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .pd-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pd-meta dt {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--stone-2); margin-bottom: 4px;
}
.pd-meta dd { margin: 0; font-family: var(--font-display); font-size: 1.1rem; }

/* Galeri: satırlar alt alta; her satırda kareler en-boy oranıyla orantılı genişlik alır
   (aynı yükseklik, kırpma yok). Dar ekranda kareler tam genişlikte alt alta dizilir. */
.gallery { --gallery-gap: clamp(12px, 1.6vw, 22px); display: grid; gap: var(--gallery-gap); }
.gallery-row { display: grid; gap: var(--gallery-gap); width: 100%; margin-inline: auto; }
.gallery-item {
  position: relative;
  margin: 0;
  background: var(--paper-3);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: var(--r, 1.33);
}
@media (min-width: 700px) {
  .gallery-row { display: flex; align-items: flex-start; }
  .gallery-row > .gallery-item { flex: var(--r, 1.33) 1 0%; min-width: 0; }
  .gallery-row.is-partial { margin-inline: 0; max-width: none !important; }
  .gallery-row.is-partial > .gallery-item {
    flex: 0 1 calc(var(--u, 2) / 6 * 100% - var(--gallery-gap) * (6 - var(--u, 2)) / 6);
    max-width: calc(var(--w, 2000) * 1.25px);   /* düşük çözünürlüklü kareyi büyütme */
  }
}
.gallery-item picture { display: block; width: 100%; height: 100%; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 26px 16px 12px;
  font-size: 0.8rem;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(16, 14, 10, 0.72));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery-item:hover figcaption, .gallery-item:focus-within figcaption { opacity: 1; }
.gallery-tag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 253, 250, 0.92);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 13, 10, 0.94);
  display: none;
  place-items: center;
  padding: 16px;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(100%, 1400px);
  max-height: 86svh;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-caption {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 14px;
  max-width: 60ch;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
}
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255, 255, 255, 0.24); }

/* ------------------------------------------------------------- Hizmetler */
.service-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  gap: 8px;
  padding: clamp(22px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  position: relative;
  transition: padding-inline 0.35s var(--ease), background 0.35s var(--ease);
}
@media (min-width: 900px) {
  .service-row {
    grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 1.1fr) 2.5rem;
    align-items: baseline;
    gap: 28px;
  }
  .service-row:hover { padding-inline: 18px; background: var(--white); }
}
.service-no {
  font-size: 0.72rem; letter-spacing: 0.18em; color: var(--stone-2);
  font-variant-numeric: tabular-nums;
}
.service-name { font-family: var(--font-display); font-size: var(--step-2); margin: 0; }
.service-row:hover .service-name { color: var(--brass); }
.service-desc { color: var(--stone); margin: 0; font-size: 0.97rem; }
.service-go { color: var(--brass); justify-self: end; transition: transform 0.3s var(--ease); }
.service-row:hover .service-go { transform: translateX(6px); }

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
}
.card-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 16px;
  color: var(--brass);
  font-family: var(--font-display);
}

/* ---------------------------------------------------------------- Süreç */
.process { counter-reset: step; display: grid; gap: clamp(22px, 3vw, 36px); }
@media (min-width: 760px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step { position: relative; padding-top: 26px; border-top: 1px solid var(--line); }
.process-step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: -0.78em;
  left: 0;
  background: var(--paper);
  padding-right: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--brass);
  font-variant-numeric: tabular-nums;
}
.section-alt .process-step::before { background: var(--paper-2); }
.process-step h3 { font-size: var(--step-1); margin-bottom: 8px; }
.process-step p { color: var(--stone); font-size: 0.95rem; margin: 0; }

/* ----------------------------------------------------------------- Blog */
.post-grid { display: grid; gap: clamp(26px, 3vw, 44px); }
@media (min-width: 700px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.post-figure {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.post-figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.post-card:hover .post-figure img { transform: scale(1.04); }
.post-figure-placeholder {
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: clamp(16px, 2vw, 26px);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(154, 115, 54, 0.16), transparent 60%),
    linear-gradient(140deg, #26221a 0%, var(--ink) 100%);
  color: var(--paper);
}
.post-figure-placeholder img { height: 46px; width: auto; opacity: 0.92; }
.post-figure-placeholder span {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.25;
  color: rgba(248, 245, 240, 0.9);
  max-width: 22ch;
}
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--stone-2);
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  background: var(--paper-3);
  color: var(--ink-2);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.1em;
}
.post-card .post-title { font-size: var(--step-1); margin: 0 0 8px; line-height: 1.25; }
.post-card:hover .post-title { color: var(--brass); }
.post-card p { color: var(--stone); font-size: 0.95rem; margin: 0; }

/* Yazı sayfası */
.article-head { padding-top: clamp(28px, 4vw, 56px); }
.article-head h1 { font-size: var(--step-4); max-width: 22ch; }
.article-cover {
  margin-block: clamp(24px, 3vw, 44px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-3);
}
.article-layout { display: grid; gap: clamp(28px, 4vw, 64px); }
@media (min-width: 1100px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 17rem; align-items: start; }
  .article-aside { position: sticky; top: 108px; }
}
.toc { border-left: 2px solid var(--line); padding-left: 18px; }
.toc p { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-2); margin-bottom: 12px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.toc a { font-size: 0.92rem; text-decoration: none; color: var(--stone); line-height: 1.35; display: block; }
.toc a:hover, .toc a.is-active { color: var(--brass); }
.toc li.lvl-3 { padding-left: 14px; font-size: 0.88rem; }

.prose { font-size: 1.06rem; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-size: var(--step-2);
  margin-top: 2em;
  margin-bottom: 0.5em;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.prose h3 {
  font-size: var(--step-1);
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  color: var(--ink);
  scroll-margin-top: 100px;
}
.prose p { margin-block: 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 0 1.2em; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--brass); }
.prose blockquote {
  margin: 1.8em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink);
}
.prose blockquote p:last-child { margin-bottom: 0; }
.prose img { border-radius: var(--radius); margin-block: 1.6em; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 0.85rem; color: var(--stone-2); margin-top: 8px; text-align: center; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); }
.prose a:hover { color: var(--brass); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.2em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--paper-2); font-weight: 600; }
.prose code {
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.92em;
}

.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 36px; }
.share-row span { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-2); }

/* ----------------------------------------------------------------- Form */
.form-grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .form-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.field { display: grid; gap: 7px; min-width: 0; }
.field > label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  font: inherit;
  font-size: 1rem; /* iOS yakınlaştırmasını engeller */
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236f685c' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(154, 115, 54, 0.14);
}
.field .hint { font-size: 0.82rem; color: var(--stone-2); }
.field .error { font-size: 0.85rem; color: var(--err); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--stone);
  line-height: 1.5;
}
.check input[type="checkbox"] {
  width: 22px; height: 22px;
  min-height: 22px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--brass);
}
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid;
  margin-bottom: 20px;
  font-size: 0.95rem;
}
.alert-error { background: #fdf1ef; border-color: #e7c3bb; color: #7d2b1d; }
.alert-ok { background: #eef6f1; border-color: #b9d9c8; color: #1f5740; }

/* Seçim kartları (mekân türü) */
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 760px) { .choice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 56px;
  padding: 12px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 0.92rem;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.choice:has(input:focus-visible) { outline: 2px solid var(--brass); outline-offset: 2px; }

/* ------------------------------------------------------------ CTA bandı */
.cta-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 64px);
  display: grid;
  gap: 24px;
}
@media (min-width: 900px) {
  .cta-band { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 48px; }
}
.cta-band h2 { color: var(--white); font-size: var(--step-3); margin-bottom: 10px; }
.cta-band p { color: rgba(248, 245, 240, 0.78); margin: 0; }
.cta-actions { display: grid; gap: 12px; }
@media (min-width: 520px) { .cta-actions { grid-auto-flow: column; justify-content: start; } }
@media (min-width: 900px) { .cta-actions { justify-content: end; } }

/* --------------------------------------------------------------- Footer */
.site-footer {
  background: var(--ink);
  color: rgba(248, 245, 240, 0.74);
  padding-block: clamp(44px, 6vw, 84px) 28px;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer .footer-title {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 16px;
}
.site-footer a { color: rgba(248, 245, 240, 0.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--brass-2); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-links a { display: inline-block; padding-block: 7px; }
.footer-brand .brand-name { color: var(--paper); }
.footer-brand .brand-sub { color: rgba(248, 245, 240, 0.6); }
.footer-note {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(248, 245, 240, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(248, 245, 240, 0.56);
}

/* --------------------------------------------------------- Yardımcılar */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

.pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span {
  min-width: 46px; min-height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.92rem;
  background: var(--white);
}
.pagination [aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: var(--stone-2);
  padding-top: 18px;
  list-style: none; margin: 0 0 6px; padding-left: 0;
}
.breadcrumb li { display: flex; gap: 8px; align-items: center; }
.breadcrumb li + li::before { content: "/"; color: var(--line); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brass); }

.pager {
  display: grid; gap: 16px;
  padding-block: clamp(28px, 4vw, 52px);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { text-decoration: none; display: grid; gap: 4px; }
.pager .dir { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--stone-2); }
.pager .name { font-family: var(--font-display); font-size: var(--step-1); }
.pager a:hover .name { color: var(--brass); }
.pager .next { text-align: right; }

.stat-row { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--line); padding-top: 16px; }
.stat b { display: block; font-family: var(--font-display); font-size: var(--step-2); font-weight: 400; }
.stat span { font-size: 0.85rem; color: var(--stone); }

details.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.3;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--brass);
  transition: transform 0.3s var(--ease);
  font-family: var(--font-sans);
  line-height: 1;
}
details.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq-item .faq-body { padding-bottom: 22px; color: var(--stone); max-width: 70ch; }
details.faq-item .faq-body p:last-child { margin-bottom: 0; }

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

@media print {
  .site-header, .action-bar, .wa-fab, .site-footer, .cta-band { display: none !important; }
  body { padding: 0; background: #fff; }
}
