/* Shared site header — Akyol Endüstri */
:root {
  --akyol-header-bg: rgba(36, 68, 102, 0.96);
  --akyol-header-border: rgba(168, 198, 230, 0.28);
}

body.akyol-has-fixed-header {
  padding-top: 84px;
}

.akyol-site-header {
  background-color: var(--akyol-header-bg);
  backdrop-filter: blur(10px);
  color: #fff;
  padding: 0.18rem 1.5%;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--akyol-header-border);
  box-sizing: border-box;
}

.akyol-site-header .brand-logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  margin-left: -4px;
  flex: 0 0 auto;
  transition: transform 0.3s ease;
}

.akyol-site-header .brand-logo-link:hover {
  transform: scale(1.02);
}

.akyol-site-header .brand-logo-link picture {
  display: block;
  line-height: 0;
}

.akyol-site-header .header-logo {
  height: 56px;
  width: auto;
  max-width: min(230px, 38vw);
  display: block;
  object-fit: contain;
  object-position: left center;
  transform: none;
  image-rendering: auto;
}

.akyol-site-header .nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  margin-left: 12px;
}

.akyol-site-header .nav-toggle {
  display: none;
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex: 0 0 auto;
}

.akyol-site-header .nav-toggle:hover,
.akyol-site-header .nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: none;
}

.akyol-site-header nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}

.akyol-site-header .nav-item {
  position: relative;
}

.akyol-site-header .nav-link,
.akyol-site-header .nav-drop-btn {
  color: #e8eef8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.akyol-site-header .nav-drop-btn .nav-caret {
  font-size: 0.65rem;
  opacity: 0.75;
  transition: transform 0.2s ease;
}

.akyol-site-header .nav-item.is-open .nav-caret,
.akyol-site-header .nav-item:hover .nav-caret {
  transform: rotate(180deg);
}

.akyol-site-header .nav-link:hover,
.akyol-site-header .nav-drop-btn:hover,
.akyol-site-header .nav-item.is-open > .nav-drop-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(168, 198, 230, 0.28);
}

.akyol-site-header .nav-link-accent {
  border-color: rgba(59, 164, 255, 0.45);
  background: rgba(47, 125, 225, 0.16);
}

/* Hover köprüsü: buton ile kutu arası boşlukta menü kapanmasın */
.akyol-site-header .nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  display: none;
}

.akyol-site-header .nav-item:hover::after,
.akyol-site-header .nav-item.is-open::after {
  display: block;
}

.akyol-site-header .nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  padding: 8px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #d7e3f0;
  box-shadow: 0 18px 40px rgba(16, 32, 54, 0.18);
  display: none;
  z-index: 1200;
}

.akyol-site-header .nav-item.is-open > .nav-dropdown,
.akyol-site-header .nav-item:hover > .nav-dropdown {
  display: block;
}

@media (hover: none) {
  .akyol-site-header .nav-item:hover > .nav-dropdown {
    display: none;
  }
  .akyol-site-header .nav-item.is-open > .nav-dropdown {
    display: block;
  }
}

.akyol-site-header .nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #1e3a5c;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: transparent;
}

.akyol-site-header .nav-dropdown a i {
  width: 1.1em;
  color: #2f7de1;
  text-align: center;
}

.akyol-site-header .nav-dropdown a:hover {
  background: #eaf2fb;
  color: #0f2740;
}

.akyol-site-header .lang-switch {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.akyol-site-header .lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(168, 198, 230, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.akyol-site-header .lang-switch-btn:hover,
.akyol-site-header .lang-switch.is-open .lang-switch-btn {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(168, 198, 230, 0.55);
}

.akyol-site-header .lang-switch-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
  display: block;
}

.akyol-site-header .lang-switch-btn .nav-caret {
  font-size: 0.65rem;
  opacity: 0.8;
  transition: transform 0.2s ease;
}

.akyol-site-header .lang-switch.is-open .lang-switch-btn .nav-caret {
  transform: rotate(180deg);
}

.akyol-site-header .lang-switch::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  display: none;
}

.akyol-site-header .lang-switch.is-open::after {
  display: block;
}

.akyol-site-header .lang-switch-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #d7e3f0;
  box-shadow: 0 16px 36px rgba(16, 32, 54, 0.18);
  display: none;
  z-index: 1300;
}

.akyol-site-header .nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  flex: 0 1 220px;
  min-width: 150px;
  max-width: 260px;
}

.akyol-site-header .nav-search-box {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(168, 198, 230, 0.35);
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.akyol-site-header .nav-search:focus-within .nav-search-box {
  border-color: rgba(168, 198, 230, 0.7);
  background: rgba(255, 255, 255, 0.14);
}

.akyol-site-header .nav-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 10px;
  outline: none;
}

.akyol-site-header .nav-search input::placeholder {
  color: rgba(232, 238, 248, 0.65);
}

.akyol-site-header .nav-search button[type="submit"] {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: rgba(47, 125, 225, 0.35);
  color: #fff;
  width: 36px;
  height: 34px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.akyol-site-header .nav-search button[type="submit"]:hover {
  background: rgba(47, 125, 225, 0.55);
}

.akyol-site-header .nav-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 280px;
  max-height: min(360px, 70vh);
  overflow-y: auto;
  padding: 6px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #d7e3f0;
  box-shadow: 0 16px 36px rgba(16, 32, 54, 0.2);
  display: none;
  z-index: 1400;
}

.akyol-site-header .nav-search-results.is-open {
  display: block;
}

.akyol-site-header .nav-search-item {
  display: block;
  width: 100%;
  text-align: left;
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 8px;
  padding: 9px 11px;
  cursor: pointer;
  font: inherit;
  color: #1e3a5c;
}

.akyol-site-header .nav-search-item:hover,
.akyol-site-header .nav-search-item:focus-visible {
  background: #eaf2fb;
  outline: none;
}

.akyol-site-header .nav-search-item strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #12304a;
}

.akyol-site-header .nav-search-item span {
  display: block;
  margin-top: 2px;
  font-size: 0.75rem;
  color: #5b7390;
  font-weight: 500;
}

.akyol-site-header .nav-search-empty,
.akyol-site-header .nav-search-hint {
  padding: 10px 11px;
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

html[dir="rtl"] .akyol-site-header .lang-switch-menu {
  right: auto;
  left: 0;
}

html[dir="rtl"] .akyol-site-header .nav-dropdown {
  left: auto;
  right: 0;
}

html[dir="rtl"] .akyol-site-header .nav-right {
  margin-left: 0;
  margin-right: 12px;
}

html[dir="rtl"] .akyol-site-header .lang-switch {
  margin-left: 0;
  margin-right: auto;
}

html[dir="rtl"] .akyol-site-header .header-logo {
  object-position: right center;
}

html[dir="rtl"] .akyol-site-header .nav-search-results {
  left: auto;
  right: 0;
}

@media (max-width: 900px) {
  html[dir="rtl"] .akyol-site-header .nav-right {
    margin-right: 0;
  }
  html[dir="rtl"] .akyol-site-header .lang-switch {
    margin-right: 0;
  }
}


.akyol-site-header .lang-switch.is-open .lang-switch-menu {
  display: block;
}

.akyol-site-header .lang-switch-menu a.lang-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #1e3a5c;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  border: none;
  background: transparent;
  letter-spacing: 0;
}

.akyol-site-header .lang-switch-menu a.lang-btn img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
  display: block;
}

.akyol-site-header .lang-switch-menu a.lang-btn:hover {
  background: #eaf2fb;
  color: #0f2740;
}

.akyol-site-header .lang-switch-menu a.lang-btn.is-active {
  background: #e3eefb;
  color: #12304a;
  box-shadow: inset 0 0 0 1px rgba(47, 125, 225, 0.28);
}

@media (min-width: 901px) and (max-width: 1280px) {
  .akyol-site-header .header-logo {
    height: 52px;
    width: auto;
    max-width: min(220px, 34vw);
  }
  .akyol-site-header .nav-right {
    gap: 8px;
  }
  .akyol-site-header .nav-link,
  .akyol-site-header .nav-drop-btn {
    padding: 9px 12px;
    font-size: 0.9rem;
  }
  .akyol-site-header .nav-search {
    flex-basis: 170px;
    min-width: 130px;
    max-width: 190px;
  }
  .akyol-site-header .nav-search input {
    font-size: 0.78rem;
    padding: 7px 8px;
  }
  .akyol-site-header .nav-search-results {
    min-width: 260px;
  }
}

@media (min-width: 1281px) and (max-width: 1500px) {
  .akyol-site-header {
    padding: 0.18rem 1% 0.18rem 1.5%;
  }
  .akyol-site-header .header-logo {
    height: 54px;
    width: auto;
    max-width: min(230px, 36vw);
  }
  .akyol-site-header .nav-right {
    margin-left: 8px;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  body.akyol-has-fixed-header {
    padding-top: 64px;
  }

  .akyol-site-header {
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    padding: 6px 3%;
  }

  .akyol-site-header .brand-logo-link {
    margin-left: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .akyol-site-header .header-logo {
    height: 42px;
    width: auto;
    max-width: min(180px, 55vw);
    transform: none;
  }

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

  .akyol-site-header .nav-right {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 3% 14px;
    margin-left: 0;
    background: rgba(36, 68, 102, 0.98);
    border-bottom: 1px solid var(--akyol-header-border);
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
    display: none;
    z-index: 1001;
  }

  .akyol-site-header .nav-right.is-open {
    display: flex;
  }

  .akyol-site-header nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .akyol-site-header .nav-item {
    width: 100%;
  }

  .akyol-site-header .nav-link,
  .akyol-site-header .nav-drop-btn {
    width: 100%;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 0.92rem;
    border: 1px solid rgba(168, 198, 230, 0.22);
    background: rgba(255, 255, 255, 0.04);
  }

  .akyol-site-header .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.96);
  }

  .akyol-site-header .nav-item:hover > .nav-dropdown {
    display: none;
  }

  .akyol-site-header .nav-item.is-open > .nav-dropdown,
  .akyol-site-header .nav-item.is-open:hover > .nav-dropdown {
    display: block;
  }

  .akyol-site-header .nav-item::after,
  .akyol-site-header .lang-switch::after {
    display: none !important;
  }

  .akyol-site-header .nav-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    order: -1;
  }

  .akyol-site-header .nav-search-results {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 6px;
    max-height: 240px;
    box-shadow: none;
  }

  .akyol-site-header .nav-search input {
    padding: 11px 12px;
    font-size: 0.9rem;
  }

  .akyol-site-header .nav-search button[type="submit"] {
    width: 44px;
    height: 40px;
  }

  .akyol-site-header .lang-switch {
    margin-left: 0;
    width: 100%;
  }

  .akyol-site-header .lang-switch-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 12px 14px;
  }

  .akyol-site-header .lang-switch-menu {
    position: static;
    width: 100%;
    margin-top: 4px;
    box-shadow: none;
  }
}
