/* ==========================================================================
   NK Cerasus Yapı — ana stil dosyası
   Açık krem zemin; logo yalnızca açık zemin üzerinde, orijinal renkleriyle.
   ========================================================================== */

:root {
  --cream: #f5f2ec;
  --cream-2: #ece8e0;
  --stone: #e4dfd6;
  --white: #ffffff;
  --ink: #1f2220;
  --text: #4a4d49;
  --muted: #7c7f79;
  --line: #d9d4ca;
  --dark: #1c1f1e;
  --charcoal: #292d2e;
  --orange: #e7792b;       /* logo turuncusu */
  --accent: #c9742f;       /* vurgu (butonlar, rakamlar) */
  --accent-text: #a95b22;  /* küçük yazılarda okunabilir ton */

  --font: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --header-h: 96px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 5%; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 300;
  background: var(--ink); color: var(--cream); padding: 10px 16px;
}
.skip-link:focus { top: 16px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.mark-d { fill: var(--charcoal); }
.mark-o { fill: var(--orange); }

.photo { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Ortak öğeler ---------- */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-text);
}
.eyebrow-line { display: inline-flex; align-items: center; gap: 16px; }
.eyebrow-line::after { content: ""; width: 44px; height: 1px; background: var(--line); }

.title {
  font-weight: 400; font-size: clamp(26px, 2.5vw, 36px); line-height: 1.3; letter-spacing: -.01em;
  margin-top: 16px;
}

.circle-link {
  display: inline-flex; align-items: center; gap: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent);
}
.circle-link::after {
  content: "→"; width: 38px; height: 38px; display: grid; place-items: center; flex: none;
  border: 1px solid currentColor; border-radius: 50%; font-size: 15px; letter-spacing: 0;
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.circle-link:hover::after { background: var(--accent); border-color: var(--accent); color: var(--white); transform: translateX(3px); }
.circle-link-light { color: var(--white); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 18px; margin-top: 26px;
  padding: 11px 22px; border: 1px solid var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  transition: background .25s, color .25s;
}
.btn-outline::after { content: "→"; color: var(--accent); transition: transform .25s var(--ease); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline:hover::after { transform: translateX(3px); }

.btn-accent {
  display: inline-flex; align-items: center; justify-content: center; gap: 18px;
  padding: 15px 30px; background: var(--accent); color: var(--white);
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  transition: background .25s;
}
.btn-accent::after { content: "→"; font-size: 16px; transition: transform .25s var(--ease); }
.btn-accent:hover { background: var(--accent-text); }
.btn-accent:hover::after { transform: translateX(3px); }

.note { font-size: 10.5px; line-height: 1.6; color: var(--muted); }
.note:empty { display: none; }

.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Logo (verilen cerasus-sade.svg çizimleri) ---------- */
.word { fill: #080909; }
.brand { display: inline-flex; align-items: center; gap: 16px; }
.brand-mark { width: 35px; height: 60px; flex: none; }
.brand-word { width: 170px; height: 24px; flex: none; }
.brand-stacked svg { display: block; width: 186px; height: 131px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(245, 242, 236, .96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: clamp(22px, 3.4vw, 56px); }
.main-nav a {
  position: relative; display: block; padding: 8px 0;
  font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: color .25s;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
  transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover { color: var(--accent-text); }
.main-nav a.is-active { color: var(--accent-text); }
.main-nav a.is-active::after, .main-nav a:hover::after { transform: scaleX(1); }

.menu-btn {
  position: relative; width: 72px; height: 44px; padding: 0 0 0 28px; margin-left: clamp(16px, 2vw, 32px);
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end; gap: 6px;
  background: none; border: 0;
}
.menu-btn::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.menu-btn span { display: block; width: 28px; height: 1.5px; background: var(--ink); transition: width .25s; }
.menu-btn span:nth-child(2) { width: 22px; }
.menu-btn:hover span { width: 28px; background: var(--accent); }

/* ---------- Yan menü ---------- */
.panel-overlay {
  position: fixed; inset: 0; z-index: 150; background: rgba(28, 31, 30, .45);
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160;
  width: min(420px, 100%); padding: 96px 48px 40px; overflow-y: auto;
  background: var(--cream); transform: translateX(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility .45s;
  display: flex; flex-direction: column; gap: 48px;
}
body.panel-open { overflow: hidden; }
body.panel-open .panel { transform: none; visibility: visible; }
body.panel-open .panel-overlay { opacity: 1; visibility: visible; }
.panel-close {
  position: absolute; right: 24px; top: 22px; width: 44px; height: 44px;
  display: grid; place-items: center; background: none; border: 0;
}
.panel-close svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.panel-nav a {
  display: flex; justify-content: space-between; align-items: center; padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px; font-weight: 300; letter-spacing: -.01em; transition: color .25s, padding .25s var(--ease);
}
.panel-nav a::after { content: "→"; font-size: 15px; color: var(--accent); }
.panel-nav a:hover { color: var(--accent-text); padding-left: 6px; }
.panel-contact ul { margin-top: 16px; display: grid; gap: 12px; font-size: 14px; }
.panel-contact li { display: flex; gap: 12px; align-items: flex-start; }
.panel-contact .icon { color: var(--accent); margin-top: 4px; }
.panel-contact a:hover { color: var(--accent-text); }

/* ---------- Giriş ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--dark); color: var(--white);
  min-height: clamp(520px, calc(100vh - var(--header-h)), 760px);
  display: flex; align-items: center;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide.is-active img { animation: heroZoom 8s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(20, 22, 21, .9) 0%, rgba(20, 22, 21, .7) 30%, rgba(20, 22, 21, .15) 62%, rgba(20, 22, 21, 0) 100%);
}
.hero-inner { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero-content {
  max-width: 520px; padding-left: 30px; border-left: 1px solid rgba(255, 255, 255, .3);
  animation: fadeUp 1s var(--ease) both .15s;
}
.hero .eyebrow { color: var(--orange); }
.hero-title {
  margin-top: 18px; font-weight: 300; font-size: clamp(36px, 4.4vw, 60px); line-height: 1.12; letter-spacing: -.01em;
}
.hero-title em { font-style: normal; color: var(--orange); }
.hero-rule { width: 200px; height: 1px; border: 0; margin: 30px 0 24px; background: rgba(255, 255, 255, .35); }
.hero-text { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .88); max-width: 300px; }
.hero .circle-link { margin-top: 28px; color: var(--orange); }

.hero-controls {
  position: absolute; z-index: 2; right: 5%; bottom: 32px;
  display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .8); font-size: 13px; letter-spacing: .1em;
}
.hero-controls b { font-weight: 500; font-size: 20px; color: var(--white); }
.hero-controls button {
  width: 34px; height: 34px; border: 0; background: none; color: var(--white); font-size: 22px; line-height: 1;
  transition: color .25s;
}
.hero-controls button:hover { color: var(--orange); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- Hakkımızda ---------- */
.about { padding: 56px 0 40px; }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr auto; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.about-img { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: var(--stone); }
.about-text { margin-top: 20px; font-size: 14px; line-height: 1.85; color: var(--text); max-width: 460px; }
.stats { align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-left: clamp(28px, 4vw, 60px); border-left: 1px solid var(--line); }
.stats:empty { display: none; }
.stat-value { font-size: clamp(28px, 2.6vw, 36px); font-weight: 400; line-height: 1; color: var(--accent); }
.stat-label { margin-top: 6px; font-size: 13px; color: var(--ink); }

/* ---------- Uzmanlık alanları ---------- */
.expertise { padding: 40px 0 44px; }
.expertise-grid { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.expertise-head .title::after { content: ""; display: block; width: 26px; height: 2px; margin-top: 22px; background: var(--accent); }
.expertise-list { display: grid; grid-template-columns: repeat(5, 1fr); }
.expertise-item {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 8px 14px; border-left: 1px solid var(--line);
}
.expertise-item:first-child { border-left: 0; }
.expertise-item .icon { width: 44px; height: 44px; stroke-width: 1.1; color: var(--ink); transition: color .3s, transform .3s var(--ease); }
.expertise-item:hover .icon { color: var(--accent); transform: translateY(-3px); }
.expertise-item h3 { font-size: 12.5px; font-weight: 500; line-height: 1.45; max-width: 150px; }
.expertise-item p { font-size: 12px; line-height: 1.6; color: var(--muted); max-width: 170px; }

/* ---------- Seçili projeler ---------- */
.projects-band { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.projects-intro {
  position: relative; display: flex; align-items: center; color: var(--white);
  background: var(--dark) center right / cover no-repeat;
}
.projects-intro::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20, 22, 21, .92) 0%, rgba(20, 22, 21, .72) 55%, rgba(20, 22, 21, .35) 100%);
}
.projects-intro-inner { position: relative; padding: 56px 10% 56px max(5%, calc((100vw - 1280px) / 2 + 64px)); max-width: 640px; }
.projects-intro .eyebrow { color: var(--orange); }
.projects-intro .title { color: var(--white); font-weight: 300; font-size: clamp(26px, 2.6vw, 38px); }
.projects-intro .circle-link { margin-top: 26px; font-size: 11px; }
.projects-intro .note { margin-top: 22px; color: rgba(255, 255, 255, .55); max-width: 340px; }

.projects-slider { position: relative; display: flex; align-items: center; gap: 16px; padding: 40px 24px; background: var(--cream-2); min-width: 0; }
.slider-track {
  flex: 1; min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 10px); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-btn {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--accent); border-radius: 50%; background: transparent; color: var(--accent);
  transition: background .25s, color .25s, opacity .25s;
}
.slider-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.slider-btn:hover { background: var(--accent); color: var(--white); }
.slider-btn:disabled { opacity: .3; pointer-events: none; }

.card { scroll-snap-align: start; display: block; padding: 0; border: 0; background: none; text-align: left; min-width: 0; }
.card-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.card-img img { transition: transform .7s var(--ease); }
.card:hover .card-img img { transform: scale(1.05); }
.card-title { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; font-weight: 500; }
.card-title::after { content: "→"; color: var(--accent); transition: transform .25s var(--ease); }
.card:hover .card-title::after { transform: translateX(3px); }
.card-cat { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

/* ---------- İletişim çağrısı ---------- */
.cta { position: relative; overflow: hidden; padding: 56px 0; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: clamp(24px, 4vw, 56px); flex-wrap: wrap; }
.cta-copy { padding-left: clamp(24px, 4vw, 56px); border-left: 1px solid var(--line); }
.cta-copy h2 { font-size: clamp(20px, 1.9vw, 26px); font-weight: 400; }
.cta-copy p { margin-top: 6px; font-size: 14px; color: var(--text); }
.cta .btn-accent { margin-right: auto; }
.cta-art {
  position: absolute; right: 2%; bottom: -6px; width: min(300px, 32vw); height: auto;
  fill: none; stroke: #b9b3a7; stroke-width: .8; opacity: .8;
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--cream-2); font-size: 13px; color: var(--text); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 26px; padding-bottom: 22px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 14px 36px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }
.footer-contact .icon { color: var(--accent); width: 16px; height: 16px; margin-top: 4px; }
.footer-contact a:hover { color: var(--accent-text); }
.social { display: flex; gap: 10px; }
.social:empty { display: none; }
.social a {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; transition: border-color .25s, color .25s;
}
.social a:hover { border-color: var(--accent); color: var(--accent-text); }
.social .icon { width: 15px; height: 15px; }
.panel .social { margin-top: 24px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 16px; padding-bottom: 18px; border-top: 1px solid var(--line);
  font-size: 11px; letter-spacing: .04em; color: var(--muted);
}
.footer-bottom a:hover { color: var(--accent-text); }

/* ---------- Projeler sayfası ---------- */
.page-head { padding-top: 72px; padding-bottom: 40px; }
.page-head h1 { font-weight: 300; font-size: clamp(34px, 4vw, 54px); line-height: 1.15; margin-top: 16px; }
.page-lead { margin-top: 14px; max-width: 560px; color: var(--text); }
.projects-page { padding-bottom: 64px; }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.projects-page .note { margin-top: 32px; }

/* ---------- Proje detay penceresi ---------- */
.project-modal {
  width: min(960px, calc(100% - 32px)); max-height: calc(100vh - 48px);
  padding: 0; border: 0; background: var(--cream); color: var(--ink); overflow-y: auto;
  box-shadow: 0 40px 120px rgba(28, 31, 30, .3);
}
.project-modal::backdrop { background: rgba(28, 31, 30, .55); backdrop-filter: blur(3px); }
.project-modal[open] { animation: fadeUp .35s var(--ease); }
.modal-close {
  position: absolute; right: 14px; top: 14px; z-index: 3;
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--cream); border: 0; border-radius: 50%;
}
.modal-close svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }
.modal-media { position: relative; aspect-ratio: 16 / 8; overflow: hidden; background: var(--stone); }
.modal-thumbs { display: flex; gap: 8px; padding: 12px 40px 0; overflow-x: auto; }
.modal-thumbs button { flex: none; width: 88px; height: 60px; padding: 0; border: 1px solid transparent; background: none; opacity: .6; }
.modal-thumbs button[aria-current="true"] { border-color: var(--accent); opacity: 1; }
.modal-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 32px 40px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 44px; }
.modal-content > div:only-child { grid-column: 1 / -1; }
.modal-content h2 { font-weight: 400; font-size: 30px; margin: 10px 0 14px; }
.modal-content p { color: var(--text); }
.modal-specs { margin: 0; border-top: 1px solid var(--line); align-self: start; }
.modal-specs div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.modal-specs dt { font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.modal-specs dd { margin: 0; font-weight: 500; text-align: right; }

/* Görsel girilmemişse gösterilen yer tutucu */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--stone); }
.ph svg { height: 36%; width: auto; aspect-ratio: 203 / 348; opacity: .85; }

/* ---------- Yükleme hatası ---------- */
.load-error {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300; max-width: 640px; margin: 0 auto;
  background: var(--white); border-left: 3px solid var(--accent);
  padding: 16px 20px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.35); font-size: 14px;
}

/* ---------- Görünme animasyonu ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Duyarlı tasarım ---------- */
@media (max-width: 1120px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 48px; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .main-nav { display: none; }
  .menu-btn { margin-left: auto; }
  .projects-band { grid-template-columns: 1fr; }
  .projects-intro-inner { padding: 64px 5%; }
}

@media (max-width: 720px) {
  :root { --header-h: 76px; }
  body { font-size: 14.5px; }
  .brand { gap: 12px; }
  .brand-mark { width: 27px; height: 46px; }
  .brand-word { width: 128px; height: 18px; }
  .brand-stacked svg { width: 150px; height: 106px; }
  .menu-btn { width: 52px; padding-left: 16px; }

  .hero { min-height: 560px; align-items: flex-end; }
  .hero::after { background: linear-gradient(0deg, rgba(20, 22, 21, .92) 0%, rgba(20, 22, 21, .7) 50%, rgba(20, 22, 21, .25) 100%); }
  .hero-inner { padding-bottom: 88px; }
  .hero-content { padding-left: 20px; }
  .hero-controls { left: 5%; right: auto; bottom: 24px; }

  .about { padding-top: 40px; }
  .about-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; justify-content: space-between; }
  .stat-label { font-size: 12px; }

  .expertise-list { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .expertise-item, .expertise-item:first-child { border-left: 0; padding: 0 8px; }
  .expertise-item:last-child { grid-column: 1 / -1; }

  .projects-slider { padding: 32px 5%; }
  .slider-track { grid-auto-columns: 82%; }
  .slider-btn { display: none; }

  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-copy { padding-left: 0; border-left: 0; }
  .cta .btn-accent { margin-right: 0; }
  .cta-art { width: 200px; opacity: .5; }

  .projects-grid { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; padding: 26px 22px 30px; gap: 22px; }
  .modal-thumbs { padding: 12px 22px 0; }
  .panel { padding: 88px 28px 32px; }
}
