/*
Theme Name: Block Kilit Kurumsal Tema By Tolga
Theme URI: https://blockkilit.com
Author: Özel Tasarım
Description: Logo ortalı, menü logo altında ve slider üzerinde şeffaf çalışan özel header teması.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: ozel-kurumsal-tema
*/

/* Reset & Temel Stiller */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

img {
  max-width: 100%;
  height: auto;
}

/* --- Header Yapısı --- */
.site-header.transparent-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: transparent;
  padding: 30px 0 15px 0;
}

/* Ana sayfa dışında: normal (şeffaf olmayan) sabit renkli header.
   position: static olduğu için altındaki içeriğin üzerine binmez,
   akışın doğal bir parçası olarak yer kaplar. */
.site-header.solid-header {
  position: static;
  width: 100%;
  z-index: 999;
  background: #16161a;
  padding: 18px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}

/* --- Üst satır: dil açılır menüsü + logo + mobil menü butonu ---
   Grid ile: yan sütunlar (sol/sağ) eşit 1fr olduğundan, içerikleri
   farklı genişlikte olsa bile logo her zaman gerçek ortada kalır. */
.site-header__top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.site-header__side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-header__side--left {
  justify-self: start;
}

.site-header__side--right {
  justify-self: end;
}

.site-header__top .site-logo {
  justify-self: center;
  margin-bottom: 0;
}

/* --- Logo Stilleri --- */
.site-logo {
  text-align: center;
}

.site-logo img,
.site-logo .custom-logo {
  max-height: 85px;
  width: auto;
  height: auto;
  display: block;
}

.site-logo__text {
  display: inline-block;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.site-logo__text a {
  color: #ffffff;
  text-decoration: none;
}

.solid-header .site-logo__text a {
  color: #ffffff;
}

/* --- Navigasyon Stilleri --- */
.main-navigation {
  width: 100%;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.nav-menu li {
  position: relative;
}

.nav-menu li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.nav-menu li a:hover {
  color: #007bff;
}

/* --- Dil Açılır Menüsü (dropdown) --- */
.lang-dropdown {
  position: relative;
}

.lang-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  padding: 7px 10px;
  color: #ffffff;
}

.lang-dropdown__current {
  font-size: 18px;
  line-height: 1;
}

.lang-dropdown__caret {
  color: #ffffff;
  transition: transform 0.2s ease;
}

.lang-dropdown.is-open .lang-dropdown__caret {
  transform: rotate(180deg);
}

.lang-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 170px;
  background: #1c1c1f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 6px;
  list-style: none;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 1002;
}

.lang-dropdown.is-open .lang-dropdown__menu {
  display: block;
}

.lang-dropdown__menu li + li {
  margin-top: 2px;
}

.lang-dropdown__menu .lang-flag {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 10px;
  border-radius: 4px;
  font-size: 14px;
  color: #ffffff;
  text-align: left;
}

.lang-dropdown__menu .lang-flag span {
  font-size: 18px;
  line-height: 1;
}

.lang-dropdown__menu .lang-flag:hover {
  background: rgba(255, 255, 255, 0.12);
}

.lang-dropdown__menu .lang-flag--reset {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px 4px 0 0;
  margin-bottom: 4px;
  padding-bottom: 10px;
}

/* Sağ tarafta (mobil, hamburger yanında) açıldığında menü sağa taşmasın. */
.site-header__side--right .lang-dropdown__menu {
  left: auto;
  right: 0;
}

/* Masaüstünde: logonun solunda / header'ın sol kenarına yakın görünür */
.lang-dropdown--desktop {
  display: flex;
}

/* Mobilde (hamburger yanında) görünür; masaüstünde gizli, bkz. medya sorgusu altında. */
.lang-dropdown--mobile {
  display: none;
}

/* --- Mobil Menü Butonu (hamburger) --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.25);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #ffffff;
  margin: 0 auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Katmanlı Hero Slider ---
   Katman sırası (arkadan öne): 1) hero-slider__bg (sırayla geçen
   arka plan görselleri, crossfade)  2) hero-slider__front (sabit
   ön plan görseli)  3) hero-slider__content (başlık/açıklama)
   En üstte ise header.php içindeki .transparent-header (z-index:999)
   kalır; bu dosyada dokunulmadı. */
.hero-slider {
  position: relative;
  height: 100vh; /* eski tarayıcılar için yedek değer */
  height: 100dvh; /* mobil tarayıcı adres çubuğuna göre gerçek görünür yükseklik */
  overflow: hidden;
}

/* Katman 1: arkada sırayla geçen görseller */
.hero-slider__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero-slide.is-active {
  opacity: 1;
}

/* Hiç görsel seçilmemişse görünecek yer tutucu (bozuk görünmesin diye) */
.hero-slide--placeholder {
  background-image: linear-gradient(135deg, #1b1b1d 0%, #3a3a3d 100%);
}

/* Katman 2: en önde, alt kısma tam genişlikte oturan sabit görsel */
.hero-slider__front {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 100%;
  line-height: 0; /* img altında boşluk kalmasın */
}

.hero-slider__front img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 85vh;
  max-height: 85dvh;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 600px) {
  /* Yüklenen görselin kendi içinde boşluk (beyaz alan) olsa bile,
     mobilde sabit ve öngörülebilir bir bant yüksekliği kullanılır;
     görsel bu bandı "cover" ile doldurur (gerekirse kırpar), böylece
     slider hiçbir zaman ekrandan taşmaz. */
  .hero-slider__front {
    height: 20%;
    min-height: 90px;
    max-height: 190px;
  }

  .hero-slider__front img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center bottom;
  }
}

/* --- Hero'nun altında devam eden sayfa içeriği --- */
.site-main {
  background: #ffffff;
  color: #1b1b1d;
}

.site-main__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

.site-main .entry-title {
  font-size: 32px;
  margin-bottom: 20px;
}

.site-main .entry-content {
  font-size: 17px;
  line-height: 1.7;
}

.site-main .entry-content img {
  max-width: 100%;
  height: auto;
}

/* --- Footer --- */
.site-footer {
  background: #c81324; /* Kırmızı üst alan */
  color: #ffffff;
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 36px;
  display: grid;
  grid-template-columns: 1fr 0.85fr 1.35fr; /* İletişim (3. sütun) diğerlerinden büyük */
  gap: 32px;
}

.site-footer__title {
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.site-footer__col p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.site-footer__contact {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__contact li {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__contact a,
.site-footer__col ul a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}

.site-footer__contact a:hover,
.site-footer__col ul a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col ul li {
  padding: 4px 0;
}

/* --- Sosyal medya: yazı değil logo ikon --- */
.site-footer__social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.site-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.site-footer__social-link:hover {
  background: #ffffff;
  color: #c81324;
  border-color: #ffffff;
}

/* --- İletişim haritası --- */
.site-footer__map {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  line-height: 0;
  filter: grayscale(0.15);
}

.site-footer__map iframe {
  display: block;
  width: 100%;
}

/* --- Alt copyright şeridi: beyaz --- */
.site-footer__bottom {
  background: #ffffff;
  padding: 18px 20px;
  text-align: center;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 13px;
  color: #4b4b4d;
}

.site-footer__bottom a {
  color: #1b1b1d;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__bottom a:hover {
  color: #c81324;
  text-decoration: underline;
}

.site-footer__heart {
  color: #c81324;
}

@media (max-width: 800px) {
  .site-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .site-footer__social {
    justify-content: center;
  }
}

/* --- Responsive / Mobil Uyumluluk --- */
@media (max-width: 991px) {
  .site-header.transparent-header {
    padding: 15px 0;
  }
}

/* Menü, 860px altında hamburger menüye dönüşür */
@media (max-width: 860px) {
  /* Grid düzeni korunuyor: masaüstü dil menüsü gizlenince logo yine
     ortada kalır; mobil dil menüsü ise hamburger'ın yanında görünür. */
  .lang-dropdown--desktop {
    display: none;
  }

  .lang-dropdown--mobile {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .main-navigation {
    display: none;
    width: 100%;
    margin-top: 14px;
    background: rgba(17, 17, 18, 0.92);
    border-radius: 6px;
    padding: 10px 16px;
  }

  .main-navigation.is-open {
    display: block;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-menu li:last-child {
    border-bottom: none;
  }

  .nav-menu li a {
    display: block;
    padding: 12px 4px;
    font-size: 14px;
  }
}

/* Hero slider, küçük ekranlarda tam ekran yüksekliği yerine daha
   kısa ve oranlı bir alan kaplar. height (min-height değil) ve dvh
   birimi kullanılır - böylece mobil tarayıcının adres çubuğu
   açılıp kapandığında bölüm ekrana sığmayacak şekilde büyümez. */
@media (max-width: 860px) {
  .hero-slider {
    height: 65vh;
    height: 65dvh;
  }
}

@media (max-width: 480px) {
  .hero-slider {
    height: 55vh;
    height: 55dvh;
  }

  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}