/* =========================================
   ÜST BİLGİ (HEADER) - KAPSÜL VE ÜST BOŞLUK YAPISI
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  padding: 20px 0 0;
  background: transparent !important;
  transition: padding 300ms ease, top 300ms ease;
}

body.admin-bar .site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

.site-header:not(.is-scrolled) .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: min(1180px, calc(100% - 48px));
  height: 76px; 
  margin-inline: auto;
  padding: 0 24px;
  border: 1px solid rgba(23, 40, 59, 0.12);
  border-radius: 22px;
  background: rgba(35, 38, 43, 0.78) !important;
  box-shadow: 0 14px 38px rgba(16, 38, 59, 0.08);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transition: all 300ms ease;
}

.site-header.is-scrolled {
  padding: 12px 0 0;
}

.site-header.is-scrolled .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: min(1180px, calc(100% - 48px));
  height: 76px; 
  margin-inline: auto;
  padding: 0 24px;
  border: 1px solid rgba(38, 39, 43, 0.14);
  border-radius: 22px;
  background: rgba(35, 38, 43, 0.58) !important;
  box-shadow: 0 14px 38px rgba(16, 38, 59, 0.09);
  backdrop-filter: blur(18px) saturate(145%);
}

.site-header__inner::before {
  position: absolute;
  top: -1px;
  left: 20%;
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent, #c4cad1), transparent);
  content: "";
  pointer-events: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.brand__seal {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.brand__logo {
  display: block;
  height: 100%;
  max-height: 44px;
  width: auto;
  object-fit: contain;
  background: transparent;
  transform: none !important;
  filter: brightness(0) invert(1);
  transition: filter 300ms ease;
}

html[data-theme="light"] .site-header .brand__logo {
  filter: none !important;
}

.site-header.is-scrolled .brand__logo {
  filter: none;
}

/* =========================================
   MENÜ VE ETKİLEŞİM ELEMANLARI
   ========================================= */
.nav-panel {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}

.site-header .nav-menu {
  display: flex;
  align-items: center;
  gap: 23px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header:not(.is-scrolled) .nav-menu > li > a {
  position: relative;
  display: inline-block;
  padding-bottom: 2px;
  color: #eef0f3 !important;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none !important;
  transition: color 250ms ease;
}

.site-header.is-scrolled .nav-menu > li > a {
  color: #b5bbc3 !important;
}

.site-header:not(.is-scrolled) .nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #eef0f3;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header.is-scrolled .nav-menu > li > a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #b5bbc3;
  transition: width 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.site-header .nav-menu > li > a:hover::after,
.site-header .nav-menu .current-menu-item > a::after {
  width: 100%;
}

.site-header .nav-menu > li > a:hover {
  color: inherit !important;
}

.site-header .nav-appointment {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  border-radius: 999px;
  background: linear-gradient(135deg, #b5bbc3 0%, #6d747e 100%) !important;
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled .nav-appointment {
  border-color: rgba(38, 39, 43, 0.2) !important;
}

.site-header .nav-appointment:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(38, 39, 43, 0.3);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header:not(.is-scrolled) .theme-toggle,
.site-header:not(.is-scrolled) .menu-toggle {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  cursor: pointer;
}

.site-header.is-scrolled .theme-toggle,
.site-header.is-scrolled .menu-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.45);
  color: #b5bbc3;
}

.site-header:not(.is-scrolled) .theme-toggle,
.site-header:not(.is-scrolled) .menu-toggle {
  border-color: rgba(23, 40, 59, 0.16);
  background: rgba(255, 255, 255, 0.58);
  color: #eef0f3;
}

.site-header .menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.site-header .menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header .menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header .menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.site-header .menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* =========================================
   HERO ALANI ÜST BOŞLUK
   ========================================= */
#acs-home .acs-hero,
#acs-about .acs-about-hero {
  margin-top: 0 !important;
  padding-top: 140px !important;
}

/* =========================================
   KOYU TEMA (DARK MODE) AYARLARI
   ========================================= */
html[data-theme="dark"] .site-header:not(.is-scrolled) .site-header__inner {
  border-color: rgba(201, 207, 215, 0.3);
  background: rgba(15, 17, 21, 0.5) !important;
}

html[data-theme="dark"] .site-header.is-scrolled .site-header__inner {
  border-color: rgba(201, 207, 215, 0.25);
  background: rgba(15, 15, 15, 0.58) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .site-header:not(.is-scrolled) .brand__logo {
  filter: brightness(0) invert(0.88) !important;
}

html[data-theme="dark"] .site-header:not(.is-scrolled) .nav-menu > li > a {
  color: #f1f3f5 !important;
}

html[data-theme="dark"] .site-header:not(.is-scrolled) .nav-menu > li > a::after {
  background: #c4cad1;
}

html[data-theme="dark"] .site-header:not(.is-scrolled) .theme-toggle,
html[data-theme="dark"] .site-header:not(.is-scrolled) .menu-toggle {
  border-color: rgba(201, 207, 215, 0.3);
  background: rgba(201, 207, 215, 0.07);
  color: #f1f3f5;
}

html[data-theme="dark"] .brand__logo {
  filter: brightness(0) invert(0.88);
}

html[data-theme="dark"] .site-header .nav-menu > li > a {
  color: #f1f3f5 !important;
}

html[data-theme="dark"] .site-header .nav-menu > li > a::after {
  background: #c4cad1;
}

html[data-theme="dark"] .site-header .nav-appointment {
  border-color: #c4cad1 !important;
  background: var(--quantum-gradient, linear-gradient(135deg, #282c32 0%, #c4cad1 24%, #e2e6eb 44%, #7a828c 84%, #1e2126 100%)) !important;
  color: #1e2126 !important;
}

html[data-theme="dark"] .site-header .theme-toggle,
html[data-theme="dark"] .site-header .menu-toggle {
  border-color: rgba(201, 207, 215, 0.3);
  background: rgba(201, 207, 215, 0.07);
  color: #e0e4e8;
}

/* =========================================
   MOBİL UYUMLULUK
   ========================================= */
@media (max-width: 920px) {
  .site-header__inner {
    height: 70px;
    width: calc(100% - 28px);
    padding: 0 14px;
  }

  .brand__seal {
    height: 40px;
  }

  .brand__logo {
    max-height: 36px;
  }

  .site-header .menu-toggle {
    display: flex;
  }

  .site-header .nav-panel {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border: 1px solid var(--line, rgba(0,0,0,0.1));
    border-radius: 18px;
    background: var(--surface, #ffffff);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999999 !important;
  }

  .site-header .nav-panel.is-open {
    display: flex;
  }
  
  .site-header .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
  }
  
  .site-header .nav-menu > li > a {
    color: #b5bbc3 !important;
    font-size: 14px;
  }

  html[data-theme="dark"] .site-header .nav-menu > li > a {
    color: #f1f3f5 !important;
  }

  .site-header .nav-appointment {
    width: 100%;
    justify-content: center;
  }
}

/* Footer Genel Ayarları */
  .site-footer {
    padding: 70px 20px 15px; 
    box-sizing: border-box;
    font-family: inherit;
  }
  
  .site-footer__main {
    display: flex;
    flex-wrap: wrap; 
    gap: 40px;
    justify-content: space-between;
    max-width: 1200px; 
    margin: 0 auto; 
  }
  
  /* 1. Sütun: Logo, Hakkımızda, Sosyal Medya */
  .site-footer__brand { 
    flex: 1 1 280px; 
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .site-footer__brand img {
    max-width: 150px; 
    height: auto;
  }
  .site-footer__brand p {
    margin: 0; 
    font-size: 15px; /* 14'ten 15'e çıkarıldı */
    line-height: 1.6;
    color: inherit;
  }
  
  /* Sosyal Medya İkonları */
  .social-icons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
  }
  .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px; /* İkonlar da hafif büyütüldü (36'dan 38'e) */
    height: 38px;
    border-radius: 50%;
    background-color: rgba(100, 110, 120, 0.1);
    color: #b9bfc6;
    transition: all 0.3s ease;
  }
  .social-icons a svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
  }
  .social-icons a:hover {
    background-color: #aeb4bc;
    color: #fff !important;
  }


  /* 2. Sütun: Hızlı Menü & 3. Sütun: Çalışma Saatleri */
  .site-footer__links,
  .site-footer__hours { 
    flex: 1 1 160px; 
    display: flex; 
    flex-direction: column; 
    gap: 16px; /* 12'den 16'ya çıkarıldı (Dikeyde daha dolgun durması için) */
    font-size: 15px; /* 14'ten 15'e çıkarıldı */
  }
  
  /* 4. Sütun: İletişim */
  .site-footer__contact { 
    flex: 1 1 260px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; /* 10'dan 12'ye çıkarıldı */
    font-size: 15px; /* 14'ten 15'e çıkarıldı */
  }

  /* Ortak Başlık Sınıfı */
  .footer-title {
    font-size: 15px; /* 14'ten 15'e çıkarıldı */
    font-weight: 700; 
    letter-spacing: 1px; 
    color: #aeb4bc;
    margin: 0 0 8px 0; /* Başlık altı boşluğu artırıldı */
  }

  /* Ortak Link Ayarları */
  .site-footer a {
    text-decoration: none; 
    font-weight: 500;
    color: inherit; 
    transition: all 0.3s ease;
  }
  .site-footer__links a:hover,
  .site-footer__contact a[href^="tel"]:hover,
  .site-footer__contact a[href^="mailto"]:hover {
    opacity: 0.7;
  }
  
  .site-footer p {
    margin: 0;
    line-height: 1.6;
  }

  /* Harita / Yol Tarifi Butonu Tasarımı */
  .map-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 11px 18px; /* Buton da uyum için çok hafif büyütüldü */
    background-color: transparent;
    border: 1px solid #aeb4bc;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600 !important;
    max-width: fit-content;
  }
  .map-btn:hover {
    background-color: #aeb4bc;
    color: #fff !important;
  }

  /* Footer Alt (Copyright) Kısmı */
  .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px;
    margin: 30px auto 0; 
    max-width: 1200px;
    padding-top: 15px;
    border-top: 1px solid rgba(100, 110, 120, 0.2);
    font-size: 13px;
  }
  .site-footer__bottom p { margin: 0; }
  .site-footer__bottom a { opacity: 0.8; }
  .site-footer__bottom a:hover { opacity: 1; }

  /* Dark Tema (Karanlık Mod) Renk Ayarları */
  html[data-theme="dark"] .site-footer { color: #f3f4f6 !important; }
  html[data-theme="dark"] .site-footer a { color: #f3f4f6 !important; }
  html[data-theme="dark"] .site-footer a:hover { color: #c4cad1 !important; }
  html[data-theme="dark"] .footer-title { color: #afb5bc !important; }
  html[data-theme="dark"] .site-footer__brand img {
    filter: brightness(0) invert(1);
  }
  
  html[data-theme="dark"] .social-icons a {
    background-color: rgba(255, 255, 255, 0.1);
    color: #f3f4f6;
  }
  html[data-theme="dark"] .social-icons a:hover {
    background-color: #c4cad1;
    color: #191c20 !important;
  }

  html[data-theme="dark"] .map-btn {
    border-color: #c4cad1;
    color: #c4cad1 !important;
  }
  html[data-theme="dark"] .map-btn:hover {
    background-color: #c4cad1;
    color: #191c20 !important; 
  }
