/* =========================================================================
   site-extensions.css  —  Girder'da karşılığı olmayan public parçalar
   CLAUDE.md §3(c): YALNIZCA Girder'ın :root değişkenleri (renk, font, boşluk)
   kullanılır. style.css'e dokunulmaz. fonts.css/style.css/theme-overrides'tan
   SONRA yüklenir.
   ========================================================================= */

/* =====================================================================
   HEADER — scroll shrink
   Girder zaten .is-stuck'a box-shadow ekliyor.
   Biz ek olarak header__bar'ın padding'ini küçültüyoruz.
   ===================================================================== */
.header__bar {
  transition: padding-block .28s var(--ease), min-height .28s var(--ease);
}
.header.is-stuck .header__bar {
  padding-block: .45rem;
  min-height: 56px;
}

/* =====================================================================
   MOBILE MENÜ — tam ekran panel
   Girder 980px'de 84vw sağ panel açıyor. Biz 600px altında tam ekran.
   ===================================================================== */
@media (max-width: 600px) {
  .nav {
    width: 100%;
    border-left: none;
    border-top: 4px solid var(--hivis);
  }
}

/* =====================================================================
   HERO — başlık load animasyonu
   .reveal IntersectionObserver'la tetiklenir; hero zaten görünürde olduğu
   için .hero__inner içeriğine CSS @keyframes animasyonu uygularız.
   ===================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero__inner > * {
    animation: hero-fadein .85s var(--ease) both;
  }
  .hero__inner > *:nth-child(2) { animation-delay: .18s; }
  .hero__inner > *:nth-child(3) { animation-delay: .34s; }
}
@keyframes hero-fadein {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* =====================================================================
   SABIT WhatsApp butonu
   ===================================================================== */
.wa-btn {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: clamp(1rem, 3vw, 2rem);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--hivis);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  box-shadow: var(--shadow-m);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.wa-btn:hover  { background: var(--hivis-deep); color: #fff; transform: translateY(-2px); }
.wa-btn:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

/* =====================================================================
   HERO CAROUSEL — göstergeler Girder accent rengiyle
   ===================================================================== */
.hero-carousel .carousel-indicators [data-bs-target] { background-color: var(--surface); }
.hero-carousel .carousel-indicators .active         { background-color: var(--hivis); }

/* =====================================================================
   HERO BAŞLIĞI — Girder .hero h1 stiline eşdeğer özel div
   ===================================================================== */
.hero .hero__baslik {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: .96;
  text-transform: uppercase;
  letter-spacing: .005em;
  color: #fff;
  margin: 0 0 1.2rem;
  max-width: 15ch;
}

/* =====================================================================
   KARTLAR — görsel yoksa şık placeholder
   .svc__media ve .proj zaten aspect-ratio:4/3 alıyor (Girder).
   Görsel olmayınca graphite-2 arka planı görünür; biz üstüne ikon ekleriz.
   ===================================================================== */
.svc__media--bos::before,
.proj--bos::before {
  content: "\F1DD";            /* bi-image Bootstrap Icons unicode */
  font-family: "bootstrap-icons";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 3rem;
  color: var(--steel-mute);
  opacity: .45;
  z-index: 0;
}

/* =====================================================================
   PROJe DETAY — galeri grid görselleri tutarlı oran
   ===================================================================== */
#projeGaleri figure {
  overflow: hidden;
  border-radius: var(--r);
  background: var(--concrete-2);
}
#projeGaleri figure a {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
#projeGaleri figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
#projeGaleri figure:hover img { transform: scale(1.06); }

/* Proje bilgi kutusu ikonu rengi */
.footer__contact li i.bi { color: var(--amber); }

/* =====================================================================
   SAYAÇLAR — animasyon sırasında renk geçişi (JS counter.js ile)
   ===================================================================== */
.stat-strip .st b i { transition: color .3s var(--ease); }

/* =====================================================================
   İLETİŞİM — hızlı eylem butonları
   ===================================================================== */
.iletisim-butonlar {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.iletisim-btn {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.1rem;
  border-radius: var(--r);
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--steel);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
}
.iletisim-btn i.bi {
  font-size: 1.35rem;
  color: var(--hivis);
  flex-shrink: 0;
}
.iletisim-btn:hover {
  border-color: var(--hivis);
  background: var(--concrete-2);
  color: var(--steel);
  transform: translateY(-2px);
}
.iletisim-btn:focus-visible { outline: 2px solid var(--hivis); outline-offset: 2px; }
.iletisim-btn small {
  display: block;
  font-size: .78rem;
  font-weight: 400;
  color: var(--steel-mute);
  margin-top: .1rem;
}


/* ---- Demo bandı ---- */
.demo-bant {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--hivis);
  color: #fff;
  text-align: center;
  font-size: .78rem;
  padding: .4rem 1rem;
  letter-spacing: .01em;
}

/* =====================================================================
   SECTION-HEAD ACCENT — marka imzası
   Her bölüm başlığının üstünde 48×3px hi-vis çizgi.
   İnşaat sınır işareti; tüm bölümlerde tekrarlayarak marka DNA'sı olur.
   ===================================================================== */
.section-head :is(h1, h2):not(.visually-hidden)::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--hivis);
  margin: 0 auto 1.1rem;
}

/* =====================================================================
   FİLTRE BUTONLARI — mobilde yatay kaydırmalı chip şeridi
   ===================================================================== */
@media (max-width: 640px) {
  .filters {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    gap: .45rem;
    padding-bottom: .6rem;
    padding-inline: .25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
  }
  .filters::-webkit-scrollbar { display: none; }
  .filter { flex-shrink: 0; }
}

/* =====================================================================
   WHATSAPP BUTONU — demo bant aktifken yukarı kaydır
   ===================================================================== */
body:has(.demo-bant) .wa-btn {
  bottom: calc(clamp(1rem, 3vw, 2rem) + 2.4rem);
}

/* =====================================================================
   İLETİŞİM FORMU — iOS zoom önleme (< 16px input zoom yapar)
   ===================================================================== */
@media (max-width: 600px) {
  .quote input,
  .quote textarea,
  .quote select {
    font-size: max(16px, 1em);
  }
}

/* =====================================================================
   PROJE KARTLARI — başlık link hover
   ===================================================================== */
.proj__body .h3 a {
  text-decoration: none;
  transition: color .2s var(--ease);
}
.proj__body .h3 a:hover { color: var(--hivis); }

/* =====================================================================
   MOBİL GENEL — 360/390px düzenlemeleri
   ===================================================================== */
@media (max-width: 420px) {
  .section { padding-block: clamp(2rem, 8vw, 3.5rem); }
  .hero__baslik { font-size: clamp(2rem, 10vw, 3.2rem); }
}
