/* =============================================================================
   STUDIO — Interior Design Portfolio
   Sade, minimal, responsive statik site stilleri.
   Renk/font ayarları için :root değişkenlerini düzenleyin.
   ============================================================================= */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #8a8a8a;
  --color-line: #ececec;
  --color-accent: #1a1a1a;      /* Vurgu (düğme/link hover) */
  --max-width: 1140px;
  /* Gövde metni: Cormorant Garamond (Google Fonts, index.html'de yüklenir).
     400/500/600 ağırlıkları mevcuttur. */
  --font-body: "Cormorant Garamond", Georgia, serif;
  /* Başlıklar: Jost (Google Fonts, index.html'de yüklenir).
     400/500/600 ağırlıkları (400/500 italic dahil) mevcuttur. */
  --font-display: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --header-h: 76px;
  /* Özel kuş şeklinde imleç — tıklanabilir öğelerde de (logo, düğmeler, linkler)
     tarayıcının varsayılan el/işaretçi imlecine dönmemesi için tek yerden
     tanımlanır ve cursor:pointer kullanılan her yerde bunun yerine kullanılır.
     Yalnızca SVG cursor desteği olan tarayıcılarda (Chrome/Edge/Firefox) görünür;
     desteklemeyenlerde (ör. Safari) otomatik olarak normal ok imlecine düşer. */
  --cursor-bird: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M15 15.4c1.6-3.1 4.3-5.7 7.6-6.6-2.3 1.9-4 4.2-5.3 6.8 2.5-1.2 5-1.5 7.8-1-3 1.1-5.5 3-7.3 5.6L16 25L14.2 20.2c-1.8-2.6-4.3-4.5-7.3-5.6 2.8-.5 5.3-.2 7.8 1-1.3-2.6-3-4.9-5.3-6.8 3.3.9 6 3.5 7.6 6.6z' fill='%231a1a1a'/%3E%3C/svg%3E") 15 15, auto;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

html, body { overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  padding-top: var(--header-h); /* sabit (fixed) menü çubuğu için yer açar */
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  cursor: var(--cursor-bird);
}

/* Lightbox veya mobil menü açıkken arka planın kaymasını engeller */
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a, button { touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.1em; }

/* Bazı tarayıcılar linklerde/düğmelerde varsayılan el imlecini body'den
   miras alınan özel imlecin önüne geçirebiliyor; burada açıkça eziyoruz. */
a, button { cursor: var(--cursor-bird); }

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

.section { padding: 96px 0; }

/* Sekmeli gezinme: menüden tıklanan bölüm gösterilir, diğerleri gizlenir
   (kaydırma yok, bkz. js/main.js showPage). Home sekmesi Hero+Manifesto'yu
   birlikte kapsar — ikisi de data-page="home" taşır. */
main [data-page] { display: none; }
main [data-page].is-active-page { display: block; }

.section-label {
  display: inline-block;
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

h1, h2, h3 { font-weight: 600; line-height: 1.2; margin: 0 0 0.4em; }

.heading-display {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.btn {
  display: inline-block;
  border: 1px solid var(--color-text);
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.btn:hover { background: var(--color-accent); color: #fff; }

/* ------------------------------- Header ------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  line-height: 1;
  flex-shrink: 0;
}
.logo-dy { font-weight: 600; }
.logo-studio { font-weight: 400; font-style: italic; margin-left: 6px; }

/* Açılır menü paneli — artık ekran genişliğinden bağımsız, her zaman hamburger
   düğmesiyle açılıp kapanan dikey bir panel (bkz. .nav-toggle) */
.primary-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  width: min(78vw, 320px);
  height: calc(100vh - var(--header-h));
  height: calc(100dvh - var(--header-h)); /* iOS Safari adres çubuğu boşluğunu düzeltir */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  padding: 40px 32px;
  background: #fff;
  border-left: 1px solid var(--color-line);
  transform: translateX(105%);
  transition: transform 0.32s ease;
  z-index: 90;
}
.primary-nav.is-open { transform: translateX(0); }
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav ul li a {
  display: block;
  padding: 10px 0;
  font-size: 18px;
  white-space: nowrap;
  position: relative;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 0; height: 1px;
  background: var(--color-text);
  transition: width 0.25s;
}
.primary-nav a:hover::after,
.primary-nav a.is-active::after { width: 100%; }

/* Menü açıkken arkadaki içeriği karartır — metnin panelin altında "kesilmiş"
   gibi görünmesini engeller, menünün bir katman olarak üstte olduğunu netleştirir */
.nav-backdrop {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  z-index: 80;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* Dil değiştirici */
.lang-switch { display: flex; gap: 4px; margin-top: 8px; }
.lang-btn {
  background: none;
  border: none;
  cursor: var(--cursor-bird);
  font: inherit;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--color-muted);
  padding: 10px 12px;
  transition: color 0.2s;
}
.lang-btn:hover { color: var(--color-text); }
.lang-btn.is-active { color: var(--color-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }

/* Hamburger — artık ekran boyutundan bağımsız her zaman görünür, menü çubuğunun yerini alır.
   44x44 dokunma alanı (Apple/Google önerisi) */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: none; border: none; cursor: var(--cursor-bird);
  padding: 10px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--color-text);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* -------------------------------- Hero -------------------------------- */
.hero {
  padding: clamp(90px, 16vh, 170px) 0;
  border-bottom: 1px solid var(--color-line);
}
.hero-inner { max-width: 760px; }
.hero-tagline {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.2px;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: #444;
  margin-bottom: 32px;
}

/* ------------------------------ Manifesto ------------------------------ */
.manifesto-block { max-width: 760px; margin: 0 auto; text-align: center; }
.manifesto-block .heading-display { margin: 6px 0 20px; }
.manifesto-block p { color: #333; }

/* -------------------------------- Studio ------------------------------- */
.studio-text { max-width: 680px; }
.studio-text .heading-display { margin-top: 8px; }
.studio-text p { color: #333; text-align: justify; font-size: 0.95rem; }

/* Kurucu Hakkında satırı — fotoğraf her zaman solda, metin sağda, ekran
   boyutu ne olursa olsun (alt alta dizilmeye asla geçmez, bkz. Responsive). */
.founder-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}
.studio-photo img {
  width: 100%;
  filter: grayscale(100%);
  transition: filter 0.4s;
}
.studio-photo img:hover { filter: grayscale(0%); }
.founder-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--color-text);
  margin: 0 0 4px;
}
.founder-text h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 10px; }
.founder-text p { color: #333; text-align: justify; font-size: 0.95rem; }

/* --------------------------- Approach / Expertise ----------------------- */
.approach-header, .expertise-header { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.approach-header .heading-display { margin-top: 6px; }
.expertise-header .heading-display { margin-top: 4px; }

/* Yaklaşım: Uzmanlık ile aynı ince çizgili liste görünümü */
.item-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
}
.item-card {
  padding: 34px 30px;
  border-bottom: 1px solid var(--color-line);
}
.item-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.item-card p { color: #444; font-size: 0.95rem; margin: 0; }

/* Uzmanlık: kart yerine ince çizgili liste görünümü */
.expertise-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  max-width: 960px;
  margin: 0 auto;
  border-top: 1px solid var(--color-line);
}
.expertise-item {
  padding: 34px 30px;
  border-bottom: 1px solid var(--color-line);
}
.expertise-item h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 10px; }
.expertise-item p { color: #555; font-size: 0.95rem; margin: 0; }

/* ------------------------------ Projects ------------------------------ */
.projects { background: #fafafa; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head .heading-display { margin-top: 4px; }
.section-sub { color: var(--color-muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  position: relative;
  border: none;
  padding: 0;
  margin: 0;
  cursor: var(--cursor-bird);
  background: #000;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  font: inherit;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.4s;
}
.project-card:hover img { transform: scale(1.06); opacity: 0.82; }
.project-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 18px 20px;
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.5px;
  text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.project-card:hover .project-caption,
.project-card:focus-visible .project-caption { opacity: 1; transform: translateY(0); }
.project-card:focus-visible { outline: 2px solid var(--color-text); outline-offset: 3px; }

/* Dokunmatik ekranlarda (fare/hover yok) başlık her zaman görünür kalsın */
@media (hover: none) {
  .project-caption { opacity: 1; transform: none; }
}

/* ------------------------------- Contact ------------------------------ */
.contact-info {
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .contact-info { transform: translateX(60px); }
}
.contact-info .section-label,
.contact-info .heading-display {
  display: block;
  text-align: center;
}
.contact-info .heading-display { margin-top: 4px; }
.contact-location { font-size: 1.1rem; color: #333; margin-bottom: 22px; text-align: left; }

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.contact-links a {
  display: inline-block;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--color-line);
  padding: 6px 0;
  transition: border-color 0.25s;
}
.contact-links a:hover { border-color: var(--color-text); }
.contact-links a.is-disabled {
  cursor: default;
  color: var(--color-muted);
  border-bottom-style: dashed;
}
.contact-links a.is-disabled:hover { border-color: var(--color-line); }

/* ------------------------------- Footer ------------------------------- */
.site-footer {
  border-top: 1px solid var(--color-line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-nav { display: flex; gap: 28px; }
.footer-nav a { display: inline-block; padding: 6px 0; font-size: 14px; color: var(--color-muted); }
.footer-nav a:hover { color: var(--color-text); }
.footer-copy { margin: 0; font-size: 13px; color: var(--color-muted); }

/* ------------------------------ Lightbox ------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(0, 0, 0, 0.88);
}
.lightbox.is-open { display: flex; }
.lightbox-content {
  margin: 0;
  max-width: 900px;
  width: 100%;
  text-align: center;
}
.lightbox-content img {
  max-height: 72vh;
  width: auto;
  margin: 0 auto;
  border-radius: 2px;
}
.lightbox-content figcaption { color: #fff; margin-top: 18px; }
.lightbox-content h3 { font-size: 1.25rem; margin-bottom: 6px; font-weight: 600; }
.lightbox-content p { color: #bdbdbd; margin: 0; }
.lightbox-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none; border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: var(--cursor-bird);
}

/* --------------------------- Bölüm Sırası Editörü ----------------------- */
.layout-editor {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.5);
}
.layout-editor.is-open { display: flex; }
.layout-editor-panel {
  background: #fff;
  width: 100%;
  max-width: 380px;
  padding: 32px 28px;
  border-radius: 4px;
}
.layout-editor-panel h3 { margin-bottom: 6px; }
.layout-editor-hint { color: var(--color-muted); font-size: 13px; margin-bottom: 20px; }

.layout-editor-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.layout-editor-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--color-line);
  border-radius: 3px;
  background: #fafafa;
  font-size: 14px;
  cursor: grab;
  user-select: none;
}
.layout-editor-list li.dragging { opacity: 0.4; }
.drag-handle { color: var(--color-muted); font-size: 16px; line-height: 1; }

.layout-editor-password { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.layout-editor-password label { font-size: 13px; color: var(--color-muted); }
.layout-editor-password input {
  border: 1px solid var(--color-line);
  padding: 10px 12px;
  font: inherit;
  border-radius: 3px;
}

.layout-editor-msg { min-height: 18px; font-size: 13px; color: #b3261e; margin: 10px 0 4px; }
.layout-editor-msg.is-success { color: #1a7a3c; }

.layout-editor-actions { display: flex; justify-content: flex-end; gap: 20px; margin-top: 14px; }
.layout-editor-actions #layoutCancelBtn {
  background: none;
  border: none;
  cursor: var(--cursor-bird);
  font: inherit;
  color: var(--color-muted);
}
.layout-editor-actions #layoutCancelBtn:hover { color: var(--color-text); }

/* ------------------------------ Yukarı çık düğmesi ----------------------- */
.back-to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  line-height: 1;
  cursor: var(--cursor-bird);
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

/* ------------------------------ Site Ayarları --------------------------- */
.site-settings {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 250;
}
.site-settings-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-line);
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  font-size: 18px;
  cursor: var(--cursor-bird);
}
.site-settings-menu {
  display: none;
  position: absolute;
  right: 0;
  bottom: 54px;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  min-width: 220px;
}
.site-settings-menu.is-open { display: block; }
.site-settings-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  background: none;
  border: none;
  font: inherit;
  font-size: 13px;
  cursor: var(--cursor-bird);
  border-bottom: 1px solid var(--color-line);
}
.site-settings-menu button:last-child { border-bottom: none; }
.site-settings-menu button:hover { background: #fafafa; }

/* ============================ Responsive ============================== */
@media (max-width: 880px) {
  /* Fotoğraf küçük ekranlarda da hep solda kalır, sadece oranı daralır */
  .founder-row { grid-template-columns: 180px 1fr; gap: 28px; }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .item-list, .expertise-list { grid-template-columns: 1fr; }
  /* Mobilde başlık/alt metindeki manuel satır aralarının (<br>) tek satıra
     sığması için yazı boyutu biraz küçültülür. */
  .hero-name { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }
}

@media (max-width: 720px) {
  .lightbox { padding: 16px; }
  .lightbox-content img { max-height: 60vh; }

  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-caption { opacity: 1; transform: none; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { gap: 20px; }
  .section { padding: 56px 0; }
  .hero { padding-top: 64px; padding-bottom: 64px; }
  /* En dar telefonlarda fotoğraf hâlâ solda ama daha görünür bir boyutta kalır */
  .founder-row { grid-template-columns: 140px 1fr; gap: 16px; margin-top: 32px; }
}

/* Hareket azaltma tercihi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
