:root {
  --font1: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: "Jost", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --brand: #8F654E;
  --brand-dark: #000000;
  --brand-black: #000000;
  --brand-red: #8F654E;
  --brand-red-dark: #000000;
  --text-dark: #0e0e0e;
  --text-muted: #5e5e5e;
  --border-color: #e5e2dc;
  --container-w: 1280px;
  --header-h: 72px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font1);
  padding: 0;
  margin: 0;
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
}

body.page-inner {
  padding-top: var(--header-h, 72px);
}

body.page-home {
  padding-top: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
}

body.menu-open {
  overflow: hidden;
}

/* ==========================================================================
   HEADER - Sabit (Fixed), Beyaz Zemin, Şık Kurumsal Hiyerarşi
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #ebe7df;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  max-width: var(--container-w);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  justify-self: start;
  text-decoration: none;
}

.site-header .logo img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ---------- Yatay menü ---------- */
.site-header .main-nav {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.site-header .main-nav ul#main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mobile-logo-item {
  display: none;
}

/* Menüdeki ilk sayfa (Home) gizli; ana sayfaya logodan gidilir. 1. sıra mobil logo li'si olduğu için Home 2. çocuk */
.site-header .main-nav ul#main-menu>li:nth-child(2) {
  display: none;
}

.site-header .main-nav ul li {
  position: relative;
}

.site-header .main-nav ul#main-menu>li>a {
  position: relative;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 400;
  color: var(--text-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-header .main-nav ul#main-menu>li>a:hover,
.site-header .main-nav ul#main-menu>li>a:focus-visible {
  color: var(--brand, #8F654E);
}

.site-header .main-nav ul#main-menu>li>a.nav-link.active {
  font-weight: 600;
  color: var(--brand, #8F654E);
}

/* Alt menü paneli */
.site-header .nav-submenu>a::after {
  content: "";
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.site-header .nav-submenu>ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  margin: 4px 0 0;
  padding: 8px;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.10);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all 0.2s ease;
}

.site-header .nav-submenu:hover>ul,
.site-header .nav-submenu:focus-within>ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-header .nav-submenu>ul a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 6px;
}

.site-header .nav-submenu>ul a:hover {
  background: #f4f2ee;
}

/* ---------- Araçlar ---------- */
.header-tools {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
  color: var(--text-dark);
}

.lang-switch>i {
  font-size: 20px;
}

.lang-list {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lang-list a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.lang-list a:hover,
.lang-list a:focus-visible {
  background: #f4f2ee;
}

.header-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 20px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.header-icon-btn:hover,
.header-icon-btn:focus-visible {
  background: #f4f2ee;
}

/* Hamburger yalnızca tablet/mobil */
.site-header .menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: var(--text-dark);
  cursor: pointer;
}

.menu-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.site-header .menu-toggle .bar {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.site-header .menu-toggle.is-active .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.site-header .menu-toggle.is-active .bar:nth-child(2) {
  opacity: 0;
}

.site-header .menu-toggle.is-active .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 38, 48, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.nav-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   TABLET / MOBİL: menü soldan açılan panele döner
   ========================================================================== */
@media (max-width: 1100px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0 16px;
  }

  .site-header .menu-toggle {
    display: inline-flex;
  }

  .site-header .main-nav ul#main-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 86%;
    max-width: 360px;
    height: 100vh;
    padding: 24px 24px 48px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    background: #ffffff;
    box-shadow: 4px 0 24px rgba(15, 38, 48, 0.2);
    transition: left 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
  }

  .site-header .main-nav ul#main-menu.is-active {
    left: 0;
  }

  .mobile-logo-item {
    display: block;
    margin-bottom: 20px;
  }

  .mobile-logo-item img {
    height: 34px;
    width: auto;
  }

  .site-header .main-nav ul#main-menu>li>a {
    height: auto;
    padding: 14px 4px;
    font-size: 16px;
    border-bottom: 1px solid #f0eeea;
  }

  .site-header .nav-submenu>a {
    justify-content: space-between;
  }

  .site-header .nav-submenu>a::after {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
  }

  .site-header .nav-submenu.submenu-open>a::after {
    transform: rotate(45deg);
  }

  .site-header .nav-submenu>ul {
    position: static;
    min-width: 0;
    max-height: 0;
    margin: 0;
    padding: 0 0 0 16px;
    overflow: hidden;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 0.35s ease;
  }

  .site-header .nav-submenu.submenu-open>ul {
    max-height: 600px;
  }
}

@media (max-width: 576px) {
  .site-header .logo img {
    height: 32px;
  }
}

/* ==========================================================================
   ŞEFFAF / ETKİLEŞİMLİ HEADER (Anasayfa)
   Normalde: Transparan zemin, beyaz logo & beyaz menü
   Hover veya Scroll (aşağı inince): Beyaz zemin, orijinal renkli logo, koyu menü
   ========================================================================== */
.site-header.header-transparent {
  position: fixed;
  background: transparent;
  border-bottom: none;
  box-shadow: none;
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

/* Hover, Focus-Within VEYA Scroll (Aşağı İnince) Durumu */
.site-header.header-transparent:hover,
.site-header.header-transparent:focus-within,
.site-header.header-transparent.is-scrolled {
  background: #ffffff;
  border-bottom: 1px solid #ebe7df;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* Logo Geçişi */
.site-header.header-transparent .logo:not(.mobil-logo) img {
  transition: filter 0.3s ease;
}

/* Normal transparan haldeyken (hover veya scroll DEĞİLKEN) */
.site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .logo:not(.mobil-logo) img {
  filter: brightness(0) invert(1);
}

.site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .lang-switch,
.site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .header-icon-btn,
.site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .menu-toggle {
  color: #ffffff;
}

.site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .lang-list a:hover,
.site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .header-icon-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

@media (min-width: 1101px) {
  .site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .main-nav ul#main-menu>li>a {
    color: #ffffff;
  }

  .site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .main-nav ul#main-menu>li>a:hover,
  .site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .main-nav ul#main-menu>li>a:focus-visible {
    color: rgba(255, 255, 255, 0.82);
  }

  .site-header.header-transparent:not(:hover):not(:focus-within):not(.is-scrolled) .main-nav ul#main-menu>li>a.active {
    color: #ffffff;
    font-weight: 600;
  }
}

/* WhatsApp Floating Button */
a.WhatsApp1 {
  display: flex;
  background: #2eb843;
  width: 50px;
  height: 50px;
  position: fixed;
  bottom: 24px;
  left: 24px;
  border-radius: 50%;
  color: #fff;
  align-items: center;
  justify-content: center;
  animation: whatsapp infinite 2s linear;
  z-index: 999;
}

a.WhatsApp1 svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

@keyframes whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 184, 67, 0.6);
  }

  50% {
    box-shadow: 0 0 0 10px rgba(46, 184, 67, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(46, 184, 67, 0);
  }
}

@media (max-width: 1024px) {
  a.WhatsApp1 {
    bottom: 60px;
  }
}

.mobilbuttonlar {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}