/* ==========================================================
   atincsay.com — stil
   Design export'undaki görsel dil, değişkenlere çevrildi.
   ========================================================== */

:root {
  /* Renkler */
  --bg:         #f8f7f4;
  --ink:        #14130f;
  --muted:      #57544c;
  --faint:      #7a776e;
  --line:       #dedbd3;
  --line-soft:  #e4e1d9;
  --rule:       #cfccc4;

  --dark-bg:    #14130f;
  --dark-ink:   #f3f1ec;
  --dark-muted: rgba(243,241,236,0.72);
  --dark-faint: rgba(243,241,236,0.55);
  --dark-line:  rgba(243,241,236,0.35);

  /* Tipografi */
  --sans:  Jost, Helvetica, Arial, sans-serif;
  --serif: Newsreader, Georgia, 'Times New Roman', serif;
  --mono:  ui-monospace, Menlo, Consolas, monospace;

  /* Ölçü */
  --pad-x:  clamp(20px, 4vw, 64px);
  --pad-y:  clamp(72px, 11vw, 160px);
  --maxw:   1500px;
}

/* ---------- Temel ---------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--ink); text-decoration: none; transition: color .18s ease, opacity .18s ease; }
a:hover { color: var(--muted); }

img { display: block; max-width: 100%; }

h1, h2, h3 { margin: 0; font-weight: 300; }

p { margin: 0; text-wrap: pretty; }

input, select, textarea, button { font-family: inherit; }

/* Klavye erişilebilirliği */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* Fotoğraf koruma — seçme ve sürüklemeyi kapat (metin serbest kalır) */
.hero img, .hero__img,
.page-hero img, .page-hero__img,
.card img,
.shot img,
.lightbox img,
figure img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

/* ---------- Yardımcı tipografi ---------- */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
}

.lead {
  font-family: var(--serif);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.42;
  font-weight: 300;
}

.body-text {
  font-size: 15px;
  line-height: 1.85;
  color: var(--muted);
}

.rule-link {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
  align-self: flex-start;
}

/* ---------- Üst menü (iç sayfalar) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line-soft);
  padding: 18px var(--pad-x);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.logo {
  display: block;
  height: clamp(56px, 6vw, 76px);
  width: auto;
  overflow: visible;
}

.logo--genis { height: clamp(60px, 7vw, 88px); }

.brand:hover .logo { opacity: 0.72; transition: opacity .18s ease; }

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 1.9vw, 30px);
  font-size: clamp(12px, 1.05vw, 14px);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav a { opacity: 0.75; }
.nav a:hover { opacity: 1; color: var(--ink); }
.nav a[aria-current="page"] { opacity: 1; }
.nav a.alt { padding-left: 2px; }
.nav a.alt::before { content: "— "; }

/* Hamburger butonu — masaüstünde gizli */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--ink);
  margin-left: auto;
  transition: transform .25s ease, opacity .2s ease, width .25s ease;
}
.site-header--over .nav-toggle span { background: #fff; }

/* Menüyü hero üstünde beyaz göster */
.site-header--over {
  position: relative;
  background: transparent;
  backdrop-filter: none;
  border: 0;
  padding: clamp(20px, 3vw, 40px) var(--pad-x);
}
.site-header--over .brand,
.site-header--over .nav a { color: #fff; }
.site-header--over .nav a {
  opacity: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.site-header--over .nav a:hover { opacity: 0.75; }
.site-header--over .logo { filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5)); }

/* ---------- Hero (ana sayfa) ---------- */
.hero {
  position: relative;
  height: 86vh;
  min-height: 520px;
  max-height: 900px;
  width: 100%;
  overflow: hidden;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
              rgba(0,0,0,0.46) 0%,
              rgba(0,0,0,0.18) 18%,
              rgba(0,0,0,0.02) 42%,
              rgba(0,0,0,0.48) 100%);
}

.hero__text {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(36px, 7vh, 88px);
  padding: 0 var(--pad-x);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero__title {
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(30px, 4.6vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.005em;
  max-width: 20ch;
  text-wrap: balance;
}

.hero__sub {
  max-width: 520px;
  color: rgba(255,255,255,0.9);
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
}

/* Sayfa başlığı (hizmet sayfaları) */
.page-hero {
  position: relative;
  height: clamp(440px, 74vh, 780px);
  min-height: 440px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 4vw, 64px);
  overflow: hidden;
  background: var(--dark-bg);
}

.page-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
}

.page-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.page-hero__title {
  position: relative;
  color: #f6f4ef;
  font-family: var(--serif);
  font-size: clamp(30px, 5.4vw, 72px);
  line-height: 1.04;
  max-width: 900px;
}

/* ---------- Bölüm iskeleti ---------- */
main { flex: 1; }

.section { padding: var(--pad-y) var(--pad-x); }
.section--tight { padding-top: 0; }
.section--wide  { max-width: var(--maxw); margin-inline: auto; }

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section__note {
  max-width: 420px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Hizmet kartları ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}

.card { display: flex; flex-direction: column; gap: 18px; }

.card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.card:hover img { opacity: 0.9; }

.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.card__title {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.card__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- Galeriler ---------- */
/* Duzenli izgara — hepsi esit kutu, merkezden kirpma (object-position). */
.grid,
.grid--loose,
.grid--personal {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 24px);
}

.grid--loose   { grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 32px); }
.grid--personal { grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }

.shot-fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shot {
  border: 0;
  padding: 0;
  background: none;
  cursor: zoom-in;
  width: 100%;
  display: block;
}

.shot img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;   /* merkezden kirp — ust/alt esit korunur */
  transition: opacity .2s ease;
}

.shot:hover img { opacity: 0.82; }

figure { margin: 0; }

figcaption {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Boş galeri uyarısı (fotoğraf klasörü boşken) */
.gallery-empty {
  border: 1px dashed var(--line);
  padding: 40px;
  text-align: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* ---------- Koyu bölüm ---------- */
.dark {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding: clamp(96px, 15vw, 220px) var(--pad-x);
}

.dark .eyebrow { color: var(--dark-faint); }
.dark .body-text { color: var(--dark-muted); }
.dark figcaption { color: var(--dark-faint); }
.dark a { color: var(--dark-ink); }
.dark a:hover { color: var(--dark-muted); }
.dark .rule-link { border-bottom-color: var(--dark-line); }

.dark__inner {
  max-width: 1400px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 112px);
}

.dark__title {
  font-family: var(--serif);
  font-size: clamp(30px, 4.4vw, 60px);
  line-height: 1.12;
}

/* ---------- Hakkımda / iki sütun ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
  max-width: 1400px;
  margin-inline: auto;
}

.stack { display: flex; flex-direction: column; gap: 26px; }

.quote {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 34px);
  line-height: 1.42;
  font-weight: 300;
}

/* Sayılar */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat__num {
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  font-weight: 300;
}

.stat__label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- İletişim CTA ---------- */
.cta {
  border-top: 1px solid var(--line);
  padding-top: clamp(48px, 7vw, 96px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.cta__title {
  font-family: var(--serif);
  font-size: clamp(28px, 4.6vw, 64px);
  line-height: 1.08;
  max-width: 16ch;
}

.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(15px, 1.3vw, 18px);
}

.contact-lines a {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  align-self: flex-start;
}

/* ---------- Form ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-width: 560px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

.field > span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--faint);
}

.field input,
.field select,
.field textarea {
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  padding: 10px 0;
  font-size: 16px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  border-radius: 0;
  transition: border-color .18s ease;
}

.field textarea { resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-bottom-color: var(--ink); }

.btn {
  cursor: pointer;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 16px 34px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  min-height: 48px;
  transition: background .18s ease;
}

.btn:hover { background: #33302a; }

.form-note { font-size: 14px; color: var(--muted); }
.form-error { font-size: 14px; color: #8a3b2f; }

/* ---------- Alt bilgi ---------- */
.site-footer {
  padding: clamp(28px, 4vw, 48px) var(--pad-x);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--faint);
}

.site-footer a { color: var(--faint); }
.site-footer a:hover { color: var(--ink); }

.site-footer__links {
  display: flex;
  gap: 24px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(10,10,8,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 72px);
  cursor: zoom-out;
}

.lightbox[open],
.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: 0;
  color: rgba(243,241,236,0.7);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 44px;
  padding: 0 8px;
}

.lightbox__close:hover { color: #fff; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  /* Hamburger görünür olsun */
  .nav-toggle { display: flex; }

  /* Menü: tam ekran açılır panel, başlangıçta gizli */
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: clamp(18px, 4vh, 32px);
    padding: clamp(64px, 12vh, 120px) var(--pad-x);
    background: var(--bg);
    font-size: 17px;
    letter-spacing: 0.06em;
    text-transform: none;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    z-index: 50;
    overflow-y: auto;
  }

  .nav a {
    opacity: 1;
    color: var(--ink);
    text-shadow: none;
    font-weight: 400;
  }
  .nav a[aria-current="page"] { color: var(--muted); }
  .nav a.alt::before { content: ""; }

  /* Hero üzerindeki menü de açılınca aynı açık panel olur */
  .site-header--over .nav a { color: var(--ink); text-shadow: none; }

  /* Açık durum */
  .nav.is-open { transform: translateX(0); }

  /* Açıkken hamburger çarpıya dönüsün (üst menü siyah zeminde değil, panelin içinde) */
  .nav-toggle.is-active span { background: var(--ink); }
  .nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.is-active span:nth-child(2) { opacity: 0; width: 0; }
  .nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Panel açıkken arka plan kaymasın */
  body.menu-acik { overflow: hidden; }

  /* Dar ekranda galeri sutunlarini azalt */
  .grid,
  .grid--personal { grid-template-columns: repeat(2, 1fr); }
  .grid--loose { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .grid,
  .grid--personal { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .hero { height: 72vh; min-height: 440px; }
}

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