/* ============================================================
   AJANS — Ana stil dosyası
   ------------------------------------------------------------
   ★★★ MARKA RENKLERİNİ DEĞİŞTİRMEK İÇİN SADECE AŞAĞIDAKİ
       ":root" BLOĞUNU DÜZENLEYİN. Tüm site otomatik uyum sağlar.
   ============================================================ */

:root {
  /* ---- MARKA RENKLERİ (değiştirilecek tek yer) ---- */
  --brand-1: #4f46e5;          /* Ana renk   — butonlar, linkler, vurgular */
  --brand-2: #9333ea;          /* İkincil    — degradelerin bitiş rengi   */
  --accent:  #06b6d4;          /* Vurgu      — ikinci degrade, rozetler   */

  /* Degradeler — yukarıdaki 3 renkten türetilir, dokunmanıza gerek yok */
  --gradient-1: linear-gradient(120deg, var(--brand-1) 0%, var(--brand-2) 100%);
  --gradient-2: linear-gradient(120deg, var(--brand-1) 0%, var(--accent) 100%);

  /* ---- METİN VE ZEMİN ---- */
  --ink:        #0f172a;       /* Başlıklar */
  --body:       #52607a;       /* Gövde metni */
  --muted:      #8b96ab;       /* Soluk metin */
  --line:       #e6e9f0;       /* Çizgiler, kenarlıklar */
  --bg:         #ffffff;       /* Sayfa zemini */
  --bg-alt:     #f7f8fc;       /* Açık gri bölümler */
  --bg-dark:    #0b1020;       /* Koyu zemin (footer vb.) */

  /* ---- TİPOGRAFİ ---- */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* ---- ÖLÇÜLER ---- */
  --radius:     16px;
  --radius-sm:  10px;
  --container:  1200px;
  --section-y:  clamp(64px, 9vw, 120px);
  --shadow:     0 10px 30px rgba(15, 23, 42, .07);
  --shadow-lg:  0 24px 60px rgba(15, 23, 42, .13);
  --header-h:   76px;
}


/* ============================================================
   TEMEL SIFIRLAMA
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

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

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

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

a { color: var(--brand-1); text-decoration: none; transition: color .2s; }
a:hover { color: var(--brand-2); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .6em;
  font-weight: 700;
  letter-spacing: -.02em;
}

p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--brand-1); color: #fff; padding: 12px 20px;
}
.skip-link:focus { left: 0; }

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

.section    { padding: var(--section-y) 0; }
.section-alt{ background: var(--bg-alt); }
.pt-0       { padding-top: 0; }
.mb-0       { margin-bottom: 0; }


/* ============================================================
   BAŞLIK BLOKLARI
   ============================================================ */
.eyebrow {
  font-family: var(--font-head);
  font-size: 14.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--gradient-1);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin: 0 0 14px;
}

.section-title { font-size: clamp(26px, 3.3vw, 40px); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .section-lead { font-size: 18px; color: var(--muted); margin: 0; }

.text-invert       { color: #fff; }
.text-invert-soft  { color: rgba(255,255,255,.82); }
.band .eyebrow     { background: none; -webkit-text-fill-color: rgba(255,255,255,.8); color: rgba(255,255,255,.8); }


/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  padding: 15px 32px;
  border: 2px solid transparent; border-radius: 100px;
  cursor: pointer; text-align: center;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary {
  background: var(--gradient-1); color: #fff;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--brand-1) 35%, transparent);
}
.btn-primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 14px 32px color-mix(in srgb, var(--brand-1) 45%, transparent);
}
.btn-ghost {
  background: transparent; color: #fff; border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-sm    { padding: 11px 24px; font-size: 14px; }
.btn-block { width: 100%; }

.band .btn-primary,
.cta-strip .btn-primary { background: #fff; color: var(--brand-1); box-shadow: var(--shadow); }
.band .btn-primary:hover,
.cta-strip .btn-primary:hover { color: var(--brand-2); }

.link-arrow { font-weight: 600; font-size: 15px; }
.link-arrow::after { content: " →"; transition: margin .2s; display: inline-block; }
.link-arrow:hover::after { margin-left: 5px; }


/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(15,23,42,.06);
}
.header-inner { display: flex; align-items: center; gap: 32px; }

.logo { position: relative; display: inline-flex; align-items: center; margin-right: auto; }
.logo-img { height: 46px; width: auto; display: block; transition: opacity .3s; }

/* Koyu başlıkta beyaz logo görünür; sayfa kaydırılıp başlık
   beyazladığında yerini lacivert versiyon alır. */
.logo-koyu {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%); opacity: 0;
}
.site-header.scrolled .logo-acik { opacity: 0; }
.site-header.scrolled .logo-koyu { opacity: 1; }

.main-nav ul { display: flex; gap: 30px; }
.main-nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.9); position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 2px; background: var(--gradient-1); transition: width .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.site-header.scrolled .main-nav a { color: var(--body); }
.site-header.scrolled .main-nav a:hover,
.site-header.scrolled .main-nav a.active { color: var(--brand-1); }

.nav-toggle {
  display: none; width: 44px; height: 44px; padding: 0;
  background: none; border: 0; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav-toggle span {
  display: block; height: 2px; width: 24px; margin: 0 auto;
  background: #fff; border-radius: 2px; transition: .3s;
}
.site-header.scrolled .nav-toggle span,
.site-header.nav-open .nav-toggle span { background: var(--ink); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: min(100vh, 860px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 100px;
  background: var(--bg-dark);
  overflow: hidden;
  text-align: center;
}
.hero-bg { position: absolute; inset: 0; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
}
.blob-1 { width: 620px; height: 620px; top: -220px; left: -140px; background: var(--brand-1); }
.blob-2 { width: 560px; height: 560px; bottom: -240px; right: -120px; background: var(--brand-2); }
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 72%);
}
.hero-inner { position: relative; max-width: 900px; }

.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  font-weight: 800; color: #fff; margin-bottom: 24px;
}
.rotator { display: inline-block; position: relative; }
.rotator-word {
  background: var(--gradient-2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
  transition: opacity .35s, transform .35s;
}
.rotator-word.out { opacity: 0; transform: translateY(-14px); }

/* Açık zeminli bölüm başlıklarında marka degradesi kullanılır — hero'daki
   camgöbeğine giden degrade açık zeminde yeterince okunaklı değil.
   DİKKAT: "background" kısayolu background-clip'i sıfırlar, yazı degrade
   bir bloğa dönüşür. Bu yüzden yalnızca background-image değiştiriliyor. */
.section-title .rotator-word { background-image: var(--gradient-1); }

/* Daktilo efekti — genişliği JS sabitler, harfler soldan doldurur.
   İmleç .rotator üzerinde duruyor; .rotator-word içine konsaydı
   background-clip:text yüzünden görünmeyebilirdi. */
.rotator[data-efekt="yazi"] {
  text-align: left;
  transition: min-width .38s ease;   /* kelime değişirken kutu yumuşak genişler */
}
.rotator[data-efekt="yazi"]::after {
  content: "";
  display: inline-block;
  width: 3px; height: .95em;
  margin-left: 4px;
  vertical-align: -.12em;
  background: var(--brand-2);
  animation: imlecYanip 1.05s steps(1) infinite;
}
@keyframes imlecYanip {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .rotator[data-efekt="yazi"]::after { display: none; }
}

.hero-lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: rgba(255,255,255,.75);
  max-width: 620px; margin: 0 auto 38px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* "Aşağı Kaydır" yazısı + fare ikonu, ikisi birlikte sayfada ortalanır */
.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 14px;
  color: rgba(255,255,255,.62); white-space: nowrap;
  transition: color .25s;
}
.scroll-hint:hover { color: #fff; }
.scroll-text {
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase;
}
.scroll-mouse {
  position: relative; display: block; flex: none;
  width: 26px; height: 42px;
  border: 2px solid currentColor; border-radius: 20px;
}
.scroll-mouse span {
  position: absolute; top: 8px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px; background: currentColor;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}


/* ============================================================
   IZGARALAR
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.align-center { align-items: center; }


/* ============================================================
   HAKKIMIZDA
   ============================================================ */
.check-list { margin: 0 0 28px; }
.check-list li { position: relative; padding-left: 34px; margin-bottom: 12px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient-1); color: #fff;
  font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}

/* Görsel çerçevesi — data-img'deki dosya arka plan olarak yüklenir.
   Dosya yoksa degrade zemin görünür (şu anki durum). */
.media-frame {
  position: relative;
  aspect-ratio: 3 / 2;              /* raporlama.jpg ile birebir — kırpma olmaz */
  border-radius: var(--radius);
  background: var(--gradient-1) center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}
.media-badge {
  position: absolute; right: -18px; bottom: 34px;
  background: #fff; border-radius: var(--radius-sm);
  padding: 18px 26px; box-shadow: var(--shadow-lg); text-align: center;
}
.media-badge strong {
  display: block; font-family: var(--font-head);
  font-size: 30px; color: var(--ink); line-height: 1;
}
.media-badge span { font-size: 13px; color: var(--muted); }


/* ============================================================
   HİZMET KARTLARI
   ============================================================ */
/* Hizmet açıklamaları uzun olduğu için 2 sütun — 4 sütunda kartlar
   aşırı dar ve uzun kalıyordu. */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 28px;
  transition: transform .28s, box-shadow .28s, border-color .28s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px;
  border-radius: 14px; background: var(--gradient-1); color: #fff;
}
.card-icon svg { width: 26px; height: 26px; }
.card-title { font-size: 19px; margin-bottom: 10px; }
.card p { margin: 0; font-size: 15.5px; }


/* ============================================================
   RENKLİ ŞERİTLER (sayılar / referanslar)
   ============================================================ */
.band { background: var(--gradient-1); position: relative; overflow: hidden; }
.band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.16), transparent 45%);
  pointer-events: none;
}
.band > .container { position: relative; z-index: 1; }

.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.counter-num {
  display: block; font-family: var(--font-head); font-weight: 800;
  font-size: clamp(36px, 4.6vw, 56px); color: #fff; line-height: 1;
}
.counter-label { color: rgba(255,255,255,.82); font-size: 15px; }


/* ============================================================
   EKİP
   ============================================================ */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.member { text-align: center; }
.member-photo {
  position: relative; aspect-ratio: 1;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
  background: var(--gradient-2) center/cover no-repeat;
}
.member-social {
  position: absolute; inset: auto 0 0 0;
  display: flex; justify-content: center; gap: 10px; padding: 18px;
  background: linear-gradient(transparent, rgba(11,16,32,.75));
  opacity: 0; transform: translateY(12px); transition: .3s;
}
.member:hover .member-social { opacity: 1; transform: none; }
.member-social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
}
.member-social a:hover { background: var(--brand-1); color: #fff; }
.member-name { font-size: 19px; margin-bottom: 2px; }
.member-role { color: var(--muted); font-size: 14.5px; margin: 0; }


/* ============================================================
   CTA ŞERİDİ
   ============================================================ */
/* Üstündeki gri bölümden ayrılması için üst boşluk gerekiyor */
.cta-strip { padding: clamp(56px, 7vw, 96px) 0 var(--section-y); }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  background: var(--gradient-2);
  border-radius: var(--radius);
  padding: clamp(34px, 5vw, 56px);
  /* Bu kutu hem .container hem görünür kart olduğu için, container'ın
     kenar boşluğu kartın iç boşluğu tarafından eziliyordu; kart ekranın
     iki kenarına yapışıyordu. Genişliği elle içeri alıyoruz. */
  width: calc(100% - 48px);
  max-width: calc(var(--container) - 48px);
  margin-inline: auto;
}
.cta-inner .section-title { color: #fff; font-size: clamp(24px, 2.6vw, 34px); }
.cta-inner p { color: rgba(255,255,255,.85); }
/* Metin uzun olduğu için buton alta kaymasın: yazı esner, buton sağda sabit kalır */
.cta-inner > div { flex: 1 1 480px; }
.cta-inner .btn { flex: none; }


/* ============================================================
   PORTFOLYO
   ============================================================ */
.filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px; margin-bottom: 40px;
}
.filter {
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  padding: 10px 22px; border-radius: 100px;
  border: 1px solid var(--line); background: #fff; color: var(--body);
  cursor: pointer; transition: .25s;
}
.filter:hover { border-color: var(--brand-1); color: var(--brand-1); }
.filter.active { background: var(--gradient-1); border-color: transparent; color: #fff; }

.portfolio { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.work {
  position: relative; aspect-ratio: 4 / 3.4; overflow: hidden;
  border-radius: var(--radius);
  background: var(--gradient-1) center/cover no-repeat;
  display: flex; align-items: flex-end;
  transition: transform .3s, opacity .3s;
}
.work::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 35%, rgba(11,16,32,.85));
  opacity: .75; transition: opacity .3s;
}
.work:hover::before { opacity: .95; }
.work:hover { transform: translateY(-5px); }
.work-body { position: relative; padding: 24px; }
.work-title { color: #fff; font-size: 17px; margin: 0 0 3px; }
.work-cat { color: rgba(255,255,255,.72); font-size: 13.5px; margin: 0; }
.work.hidden { display: none; }


/* ============================================================
   REFERANS SLIDER
   ============================================================ */
.slider { max-width: 860px; margin: 0 auto; overflow: hidden; }
.slider-track { display: flex; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.quote {
  flex: 0 0 100%; margin: 0; padding: 0 8px;
  text-align: center; color: #fff;
}
.quote p {
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(18px, 2.2vw, 25px); line-height: 1.55;
  color: #fff; margin-bottom: 28px;
}
.quote footer { display: flex; align-items: center; justify-content: center; gap: 14px; }
.quote-avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.25) center/cover no-repeat;
  border: 2px solid rgba(255,255,255,.5); flex: none;
}
.quote footer span { text-align: left; }
.quote footer strong { display: block; font-family: var(--font-head); font-size: 16px; }
.quote footer small { color: rgba(255,255,255,.75); font-size: 13.5px; }

.slider-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 34px; }
.slider-nav button {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer; transition: .25s;
}
.slider-nav button:hover { background: #fff; color: var(--brand-1); }
.slider-dots { display: flex; gap: 8px; }
.slider-dots button {
  width: 9px; height: 9px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.4); border: 0; cursor: pointer; transition: .25s;
}
.slider-dots button.active { background: #fff; width: 26px; border-radius: 5px; }


/* ============================================================
   BLOG
   ============================================================ */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.post {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .28s, box-shadow .28s;
}
.post:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-media {
  display: block; aspect-ratio: 16 / 10;
  background: var(--gradient-2) center/cover no-repeat;
}
.post-body { padding: 26px; }
.post-meta { font-size: 13px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.post-title { font-size: 19px; margin-bottom: 10px; }
.post-title a { color: var(--ink); }
.post-title a:hover { color: var(--brand-1); }
/* Önizleme yazının ilk cümlesi. Cümle uzunlukları farklı olduğu için
   3 satırda kesiliyor, böylece kartlar aynı düzende kalıyor. */
.post-body p {
  font-size: 15.5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ============================================================
   BLOG YAZI SAYFASI (blog-*.html)
   ============================================================ */
.yazi-ust {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding: calc(var(--header-h) + 54px) 0 42px;
}
.yazi-ust-inner { max-width: 900px; }

.geri-link {
  display: inline-block; margin-bottom: 20px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
}
.geri-link:hover { transform: translateX(-3px); }

.yazi-meta {
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px;
}
.yazi-baslik { font-size: clamp(27px, 3.8vw, 44px); margin: 0; }

.yazi-govde { max-width: 900px; }
.yazi-kapak {
  display: block; width: 100%; border-radius: var(--radius);
  margin: -22px 0 44px; box-shadow: var(--shadow-lg);
}

.yazi-icerik { padding-bottom: 20px; }
.yazi-icerik h2 { font-size: clamp(20px, 2.3vw, 26px); margin: 42px 0 14px; }
.yazi-icerik p  { font-size: 17px; line-height: 1.8; }
.yazi-icerik ul { margin: 0 0 1.3em; }
.yazi-icerik li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 17px; line-height: 1.7;
}
.yazi-icerik li::before {
  content: ""; position: absolute; left: 5px; top: 12px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-1);
}

/* Yazı sonundaki yönlendirme kutusu */
.yazi-cta {
  margin: 20px 0 var(--section-y);
  background: var(--gradient-1); border-radius: var(--radius);
  padding: clamp(30px, 4vw, 44px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 26px; flex-wrap: wrap;
}
.yazi-cta h2 { color: #fff; font-size: clamp(21px, 2.3vw, 27px); margin: 0 0 6px; }
.yazi-cta p  { color: rgba(255,255,255,.85); margin: 0; }
.yazi-cta .btn { flex: none; background: #fff; color: var(--brand-1); box-shadow: var(--shadow); }
.yazi-cta .btn:hover { color: var(--brand-2); }

/* İç sayfalarda koyu hero olmadığı için başlık en baştan beyaz durur */
body.ic-sayfa { padding-top: 0; }


/* ============================================================
   MÜŞTERİ LOGOLARI
   ============================================================ */
/* Her logoya eşit genişlikte bir yuva veriliyor ve logo bu yuvanın
   içine sığdırılıyor (object-fit). Böylece kaç logo eklerseniz ekleyin
   satırlar ortalanmış ve dengeli kalır — sabit sütun sayısına bağlı değil. */
.client-logos {
  display: flex; flex-wrap: wrap;
  justify-content: center; align-items: center;
  gap: clamp(24px, 2.4vw, 32px) clamp(20px, 2vw, 26px);
}

/* Logolar farklı en/boy oranlarında geliyor. Sabit yükseklik vermek yerine
   ortak bir kutuya sığdırıyoruz: geniş logolar genişlikten, kare logolar
   yükseklikten sınırlanıyor — böylece optik ağırlıkları dengeleniyor.
   Renkli görünmelerini isterseniz aşağıdaki "filter" satırını silin. */
.client-logo {
  flex: 0 0 clamp(104px, 11vw, 140px);
  /* img bir "replaced element" olduğundan varsayılan min-width:auto,
     doğal genişliğini alt sınır yapıp flex-basis'i eziyor. Sıfırlıyoruz. */
  min-width: 0;
  height: 52px;
  object-fit: contain;          /* yuvaya sığar, oranı bozulmaz, ortalanır */
  filter: grayscale(1);
  opacity: .62;
  transition: filter .3s, opacity .3s, transform .3s;
}
.client-logo:hover { filter: none; opacity: 1; transform: translateY(-3px); }

/* Dar ekranlarda satır başına logo sayısını sabitliyoruz:
   7 logo -> 4+3 -> 2+2+2+1. Son satır her zaman ortalanır. */
@media (max-width: 900px) {
  .client-logo { flex: 0 0 calc((100% - 78px) / 4); }
}
/* Mobilde logolar tek satırda yana kayar. JS listeyi bir kez kopyalar,
   kopya sayesinde kayma kesintisiz döner; mesafe ve süre de JS'in
   ölçtüğü gerçek genişliğe göre ayarlanır. */
@media (max-width: 560px) {
  .client-logo { flex: 0 0 calc((100% - 22px) / 2); height: 44px; }

  #referanslar .container { overflow: hidden; }
  .client-logos.kayar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    width: max-content;
    animation: logoKay var(--kaydir-sure, 24s) linear infinite;
  }
  .client-logos.kayar .client-logo { flex: 0 0 118px; height: 42px; }
}
@keyframes logoKay {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--kaydir-mesafe, -50%)); }
}


/* ============================================================
   SIKÇA SORULAN SORULAR (akordiyon)
   ============================================================ */
/* Hero ile aynı doku: koyu zemin + iki bulanık renk lekesi + ince ızgara.
   Düz koyu zemin fazla sert kalıyordu. */
.section-dark {
  position: relative;
  background: var(--bg-dark);
  overflow: hidden;
}
.section-dark::before,
.section-dark::after { content: ""; position: absolute; inset: 0; pointer-events: none; }

/* Renk lekeleri — parlak merkezleri kadraj dışında kalsın diye
   köşelerin biraz ötesine konumlandırıldı, yoğunlukları düşük tutuldu. */
.section-dark::before {
  background:
    radial-gradient(680px 680px at 2% -12%,
      color-mix(in srgb, var(--brand-1) 34%, transparent), transparent 70%),
    radial-gradient(620px 620px at 98% 110%,
      color-mix(in srgb, var(--brand-2) 30%, transparent), transparent 70%);
}

/* Izgara — kenarlara doğru silinir */
.section-dark::after {
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 75%);
}

/* İçerik lekelerin üstünde kalsın */
.section-dark > .container { position: relative; z-index: 1; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }

.faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius);
  transition: background .3s, border-color .3s;
}
.faq-item:hover  { border-color: rgba(255,255,255,.2); }
.faq-item.acik   { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.faq-item h3     { margin: 0; font-size: inherit; font-weight: inherit; }

.faq-soru {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; text-align: left; cursor: pointer;
  background: none; border: 0;
  padding: clamp(20px, 2.4vw, 26px) clamp(20px, 2.6vw, 30px);
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(15.5px, 1.5vw, 18px); line-height: 1.45; color: #fff;
}

/* + işareti; açılınca 135° dönerek × olur */
.faq-ikon { position: relative; width: 18px; height: 18px; flex: none; transition: transform .3s; }
.faq-ikon::before, .faq-ikon::after {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 2px; border-radius: 2px; background: var(--accent);
  transform: translateY(-50%);
}
.faq-ikon::after { transform: translateY(-50%) rotate(90deg); }
.faq-item.acik .faq-ikon { transform: rotate(135deg); }

/* Açılma animasyonu: satır yüksekliğini 0fr'den 1fr'ye geçiriyoruz.
   Böylece cevap ne kadar uzun olursa olsun yükseklik hesabı gerekmez. */
.faq-cevap {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.acik .faq-cevap { grid-template-rows: 1fr; }
.faq-cevap > div { overflow: hidden; }
.faq-cevap p {
  margin: 0;
  padding: 0 clamp(20px, 2.6vw, 30px) clamp(22px, 2.4vw, 28px);
  color: rgba(255,255,255,.62); font-size: 16px;
}


/* ============================================================
   İLETİŞİM
   ============================================================ */
.contact-grid { align-items: start; }

/* İletişim kutucukları — hepsi tıklanabilir (mail, arama, WhatsApp, Instagram) */
.contact-cards { display: grid; gap: 14px; align-content: start; }
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 17px 20px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.contact-card-icon {
  flex: none; width: 48px; height: 48px; border-radius: 13px;
  background: var(--gradient-1); color: #fff;
  display: grid; place-items: center;
}
.contact-card-icon svg { width: 22px; height: 22px; }
.contact-card-text { min-width: 0; }
.contact-card-text small {
  display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px;
}
.contact-card-text strong {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 16.5px; color: var(--ink); line-height: 1.3;
  overflow-wrap: anywhere;        /* uzun e-posta adresi taşmasın */
}

.contact-form {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow);
}
.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label {
  display: block; font-family: var(--font-head); font-weight: 600;
  font-size: 14px; color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 15.5px; color: var(--ink);
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg-alt); transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-1); background: #fff;
}
.field input.invalid, .field textarea.invalid { border-color: #e11d48; }

.hp { position: absolute; left: -9999px; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 22px; }
.check input { margin-top: 4px; accent-color: var(--brand-1); flex: none; }

.form-status { margin: 16px 0 0; font-size: 14.5px; text-align: center; min-height: 22px; }
.form-status.ok  { color: #0f9d58; }
.form-status.err { color: #e11d48; }


/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.62); padding-top: 72px; }
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr;
  gap: 40px; padding-bottom: 52px;
}
.footer-brand p { font-size: 15px; margin: 18px 0 22px; max-width: 340px; }
.footer-tagline {
  font-family: var(--font-head); font-size: 12px; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin: 14px 0 0 !important;
}

.footer-title {
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
  color: #fff; margin: 0 0 18px;
}
.footer-col a, .footer-col li { color: rgba(255,255,255,.62); font-size: 15px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  color: #fff; display: grid; place-items: center;
  transition: background .25s, border-color .25s, transform .25s;
}
.socials a svg { width: 19px; height: 19px; }
.socials a:hover {
  background: var(--gradient-1); border-color: transparent;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  border-top: 1px solid rgba(255,255,255,.1);
  /* Alt boşluk, sayfa sonuna gelindiğinde yüzen butonların (sohbet ve
     yukarı çık) bu satırdaki yazıları örtmemesi için geniş bırakıldı. */
  padding-top: 24px; padding-bottom: 96px;
  font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; gap: 22px; }
.footer-bottom a { color: rgba(255,255,255,.62); }
.footer-bottom a:hover { color: #fff; }


/* ============================================================
   YUKARI ÇIK BUTONU
   ============================================================ */
/* Sağ altı sohbet menüsü kullandığı için bu buton sola alındı */
.to-top {
  position: fixed; left: 24px; bottom: 24px; z-index: 90;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--gradient-1); color: #fff; font-size: 20px; cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }


/* ============================================================
   YÜZEN İLETİŞİM MENÜSÜ
   ============================================================ */
.chat-widget {
  position: fixed; right: 24px; bottom: 24px; z-index: 96;
  display: flex; flex-direction: column; align-items: flex-end; gap: 14px;
}

.chat-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }

.chat-item {
  display: flex; align-items: center; gap: 12px;
  /* Kapalıyken görünmez VE klavyeyle odaklanılamaz olmalı;
     bunu sağlayan şey visibility (opacity tek başına yetmez). */
  visibility: hidden; opacity: 0;
  transform: translateY(14px) scale(.92);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.chat-widget.acik .chat-item {
  visibility: visible; opacity: 1; transform: none;
}
/* Alttan üste doğru sırayla açılsın */
.chat-widget.acik .chat-item:nth-child(3) { transition-delay: .04s; }
.chat-widget.acik .chat-item:nth-child(2) { transition-delay: .10s; }
.chat-widget.acik .chat-item:nth-child(1) { transition-delay: .16s; }

.chat-label {
  background: #fff; border: 1px solid var(--line);
  padding: 9px 17px; border-radius: 100px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--ink); white-space: nowrap;
  box-shadow: 0 6px 18px rgba(15,23,42,.10);
}

.chat-ico {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,.18);
  transition: transform .25s;
}
.chat-ico svg { width: 23px; height: 23px; }
.chat-item:hover .chat-ico { transform: scale(1.08); }

.chat-ico-ig  { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.chat-ico-tel { background: var(--gradient-1); }
.chat-ico-wa  { background: #25d366; }

.chat-fab {
  width: 60px; height: 60px; padding: 0;
  border: 0; border-radius: 50%; cursor: pointer;
  background: var(--gradient-1); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--brand-1) 45%, transparent);
  transition: transform .3s, box-shadow .3s;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab:active { transform: scale(.97); }

/* İki ikon üst üste durur, açılınca yer değiştirirler */
.chat-ikon {
  grid-area: 1 / 1; width: 27px; height: 27px;
  transition: opacity .25s, transform .3s;
}
.chat-ikon-kapat { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chat-widget.acik .chat-ikon-sohbet { opacity: 0; transform: rotate(90deg) scale(.6); }
.chat-widget.acik .chat-ikon-kapat  { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .to-top { left: 16px; bottom: 16px; }
  .chat-fab { width: 54px; height: 54px; }
  .chat-ico { width: 46px; height: 46px; }
}


/* ============================================================
   GİRİŞ ANİMASYONLARI
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .grid-2, .team, .posts, .counters { grid-template-columns: 1fr; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .media-frame { aspect-ratio: 4 / 3; }
  .media-badge { right: 20px; }

  /* Mobil menü */
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; box-shadow: var(--shadow-lg);
    max-height: 0; overflow: hidden; transition: max-height .35s ease;
  }
  .site-header.nav-open { background: #fff; box-shadow: 0 1px 0 var(--line); }
  .site-header.nav-open .logo-acik { opacity: 0; }
  .site-header.nav-open .logo-koyu { opacity: 1; }
  .logo-img { height: 40px; }
  .site-header.nav-open .main-nav { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav a { display: block; padding: 14px 0; color: var(--body); border-bottom: 1px solid var(--line); }
  .main-nav a::after { display: none; }
  .header-cta { display: none; }

  /* Dikey düzende flex-basis GENİŞLİĞE değil YÜKSEKLİĞE uygulanır;
     480px'lik taban kartın içinde dev bir boşluk açıyordu. */
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .cta-inner > div { flex: 0 1 auto; }

  /* Hakkımızda'daki buton ortalansın */
  #hakkimizda .reveal > .btn { display: flex; width: fit-content; margin-inline: auto; }

  /* İletişimde önce form, sonra kutucuklar */
  .contact-form { order: -1; }
}

@media (max-width: 620px) {
  /* Hero mobilde ekranı tam doldurmasına gerek yok; 100vh'de içerik
     429px kalıp üstte ve altta büyük boşluk bırakıyordu. */
  .hero { min-height: 78vh; padding: calc(var(--header-h) + 34px) 0 104px; }

  /* Başlık mobilde "Markanızı geleceğe / taşıyoruz" olarak iki satırda kalsın.
     10.05 sayısı, en uzun satır olan "Markanızı geleceğe" metninin
     genişlik/punto oranıdır (ölçülerek bulundu). 52px = sağ+sol kenar boşluğu.
     Dönen kelimeleri değiştirirseniz bu sayıyı da güncellemeniz gerekir. */
  .hero-title { font-size: min(40px, calc((100vw - 52px) / 10.05)); }

  .cards, .portfolio, .field-row { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
}


/* ============================================================
   HAREKET AZALTMA TERCİHİ
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
