/* Hermet header — topbar + ana şerit */

.hermet-header {
  position: relative;
  z-index: 91;
  background: #fff;
}

/* —— Topbar —— */
.hermet-header__topbar {
  background: linear-gradient(90deg, #012b6e 0%, #014a9c 55%, #012b6e 100%);
  color: rgba(255, 255, 255, 0.92);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.hermet-header__topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px clamp(16px, 4vw, 32px);
  min-height: 48px;
}

.hermet-header__topbar-left {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 32px);
  min-width: 0;
  flex: 1 1 auto;
}

.hermet-header__tagline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}

.hermet-header__tagline-accent {
  flex-shrink: 0;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #5eb3ff, rgba(255, 255, 255, 0.5));
}

.hermet-header__topbar-contacts {
  display: none;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .hermet-header__topbar-contacts {
    display: flex;
  }
}

.hermet-header__topbar-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.hermet-header__topbar-contacts a:hover {
  color: #fff;
}

.hermet-header__topbar-contacts i {
  font-size: 15px;
  opacity: 0.9;
}

.hermet-header__topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.hermet-header__social {
  display: none;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 992px) {
  .hermet-header__social {
    display: flex;
  }
}

.hermet-header__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.hermet-header__social a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
}

/* Lang — topbar */
.hermet-lang-switch--topbar {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hermet-lang-switch--topbar li {
  margin: 0;
  padding: 0;
  border: none !important;
}

.hermet-lang-switch--topbar .hermet-lang-switch__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none !important;
  color: rgba(255, 255, 255, 0.75);
  opacity: 1;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.hermet-lang-switch--topbar .hermet-lang-switch__link:hover {
  color: #fff;
}

.hermet-lang-switch--topbar .hermet-lang-switch__link.is-active {
  background: #fff;
  color: var(--bultax-base, #012b6e);
}

/* —— Main bar —— */
.hermet-header__main {
  position: relative;
  background: #fff;
  box-shadow: 0 1px 0 rgba(1, 43, 110, 0.06);
}

.hermet-header__accent {
  height: 3px;
  background: linear-gradient(90deg, var(--bultax-base, #012b6e) 0%, #3d8fd9 50%, var(--bultax-base, #012b6e) 100%);
}

.hermet-header__container {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(12px, 2vw, 28px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 14px clamp(16px, 4vw, 32px);
  min-height: 84px;
}

.hermet-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}

.hermet-header__brand-mark {
  flex-shrink: 0;
  width: 4px;
  height: 44px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--bultax-base, #012b6e), #3d8fd9);
}

.hermet-header__brand img {
  display: block;
  width: auto;
  max-width: min(168px, 36vw);
  height: auto;
  max-height: 44px;
  object-fit: contain;
}

/* —— Nav —— */
.hermet-header__nav {
  min-width: 0;
  display: none;
  justify-self: center;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 1200px) {
  .hermet-header__nav {
    display: block;
  }
}

@media (min-width: 1200px) and (max-width: 1380px) {
  .hermet-header .main-menu .main-menu__list {
    gap: 0 12px;
  }

  .hermet-header .main-menu .main-menu__list > li > a {
    font-size: 14px;
  }

  .hermet-header__brand img {
    max-width: 148px;
    max-height: 40px;
  }

  .hermet-header__cta {
    padding: 11px 16px;
    font-size: 14px;
  }
}

.hermet-header .main-menu .main-menu__list,
.hermet-header .main-menu .main-menu__list ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hermet-header .main-menu .main-menu__list {
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0 clamp(10px, 1.15vw, 22px);
  width: 100%;
}

.hermet-header .main-menu .main-menu__list > li {
  padding: 0;
  position: relative;
  flex-shrink: 0;
}

.hermet-header .main-menu .main-menu__list > li + li {
  margin-left: 0 !important;
}

.hermet-header .main-menu .main-menu__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 0;
  font-family: var(--bultax-heading-font, "Barlow", sans-serif);
  font-size: clamp(14px, 0.95vw, 16px);
  font-weight: 600;
  line-height: 1.25;
  color: #1e293b;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
  overflow: visible;
  position: relative;
}

.hermet-header .main-menu .main-menu__list > li > a::before,
.hermet-header .main-menu .main-menu__list > li > a::after {
  display: none !important;
}

.hermet-header .main-menu .main-menu__list > li > a:hover {
  color: var(--bultax-base, #012b6e);
}

.hermet-header .main-menu .main-menu__list > li > a:hover::after {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bultax-base, #012b6e);
  border-radius: 2px;
  transform: none;
  width: auto;
  top: auto;
}

.hermet-header .main-menu .main-menu__list > li.current > a {
  color: var(--bultax-base, #012b6e);
}

.hermet-header .main-menu .main-menu__list > li.current > a::after {
  display: block !important;
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--bultax-base, #012b6e);
  border-radius: 2px;
}

.hermet-header__chevron {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-top: 1px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.6;
}

.hermet-header .main-menu .main-menu__list li ul {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  padding: 8px;
  flex-direction: column;
  align-items: stretch;
  background: #fff;
  border: 1px solid rgba(1, 43, 110, 0.1);
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(1, 43, 110, 0.14);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 100;
}

.hermet-header .main-menu .main-menu__list li:hover > ul {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.hermet-header .main-menu .main-menu__list li ul li a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  white-space: nowrap;
}

.hermet-header .main-menu .main-menu__list li ul li a:hover {
  background: rgba(1, 43, 110, 0.06);
  color: var(--bultax-base, #012b6e);
}

/* —— Actions —— */
.hermet-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hermet-header__cta {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--bultax-base, #012b6e);
  color: #fff !important;
  font-family: var(--bultax-heading-font, "Barlow", sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 16px rgba(1, 43, 110, 0.28);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

@media (min-width: 768px) {
  .hermet-header__cta:not(.hermet-header__cta--drawer) {
    display: inline-flex;
  }
}

.hermet-header__cta:hover {
  background: #013d8f;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(1, 43, 110, 0.34);
}

.hermet-header__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.hermet-header__cta:hover .hermet-header__cta-icon {
  transform: translateX(2px);
}

.hermet-header__cta--drawer {
  display: none;
}

.hermet-header__toggle.mobile-nav__btn {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--bultax-base, #012b6e) 0%, #014a9c 100%);
  box-shadow: 0 4px 14px rgba(1, 43, 110, 0.28);
  cursor: pointer;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 5px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hermet-header__toggle.mobile-nav__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(1, 43, 110, 0.36);
}

.hermet-header__toggle.mobile-nav__btn span {
  display: block;
  width: 20px !important;
  height: 2.5px;
  margin: 0 !important;
  background-color: #fff !important;
  border-radius: 2px;
  flex-shrink: 0;
}

.hermet-header__toggle.mobile-nav__btn span:nth-child(2) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.hermet-header__toggle.mobile-nav__btn:hover span {
  background-color: #fff !important;
}

@media (min-width: 1200px) {
  .hermet-header__toggle.mobile-nav__btn {
    display: none !important;
  }
}

/* Tablet / mobil: tagline gizle; logo sol, hamburger sağ */
@media (max-width: 1199px) {
  .hermet-header__tagline {
    display: none;
  }

  .hermet-header__container {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .hermet-header__brand {
    grid-column: 1;
    justify-self: start;
  }

  .hermet-header__nav {
    display: none;
  }

  .hermet-header__actions {
    grid-column: 2;
    justify-self: end;
    margin-left: 0 !important;
  }

  .hermet-header__toggle.mobile-nav__btn {
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  .hermet-header__topbar-inner {
    padding-top: 8px;
    padding-bottom: 8px;
    min-height: 40px;
    gap: 10px;
  }

  .hermet-header__topbar-left {
    flex: 1 1 auto;
    min-width: 0;
  }

  /* Mobilde topbar: sol telefon, sağ dil seçici */
  .hermet-header__topbar-contacts {
    display: flex;
    gap: 0;
    min-width: 0;
  }

  .hermet-header__topbar-contact--email {
    display: none;
  }

  .hermet-header__topbar-contacts a {
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
    min-width: 0;
  }

  .hermet-header__topbar-contacts a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .hermet-header__topbar-contacts i {
    flex-shrink: 0;
    font-size: 14px;
  }

  .hermet-header__container {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hermet-header__brand img {
    max-width: min(148px, 42vw);
    max-height: 40px;
  }

  .hermet-header__brand-mark {
    height: 38px;
  }
}

/* Sticky */
.hermet-header.sticky-header--cloned {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0.35s ease;
}

.hermet-header.sticky-header--cloned.active {
  transform: translateY(0);
  visibility: visible;
  box-shadow: 0 8px 30px rgba(1, 43, 110, 0.1);
}

.hermet-header.sticky-header--cloned .hermet-header__topbar {
  display: none;
}

.hermet-header.sticky-header--cloned .hermet-header__container {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.hermet-header.sticky-header--cloned .hermet-header__brand img {
  max-height: 40px;
}

.hermet-header.sticky-header--cloned .hermet-header__brand-mark {
  height: 38px;
}
