/* ==========================================================================
   Global header v2 — dropdowns + language switcher
   Loaded on every page (after main.css).
   ========================================================================== */

.hm-header .hm-nav { display: flex; align-items: center; gap: 24px; }

.hm-dd { position: relative; }
.hm-dd__toggle {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .84rem;
  font-weight: 600;
  color: #0B1220;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: .01em;
}
.hm-dd__toggle:hover { color: #0F766E; }
.hm-dd__caret {
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform .18s ease;
}
.hm-dd.is-open .hm-dd__caret { transform: rotate(180deg); }

.hm-dd__panel {
  position: absolute;
  top: calc(100% + 16px);
  left: -16px;
  width: 336px;
  background: #fff;
  border: 1px solid #E8E5DF;
  border-radius: 10px;
  box-shadow: 0 22px 54px rgba(11, 18, 32, .14);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 10001;
}
.hm-dd.is-open .hm-dd__panel,
.hm-dd:hover .hm-dd__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hm-dd__link {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  color: #0B1220 !important;
}
.hm-dd__link:hover { background: #F7F6F3; }
.hm-dd__label { display: block; font-size: .92rem; font-weight: 700; }
.hm-dd__desc { display: block; margin-top: 3px; font-size: .78rem; line-height: 1.5; color: #6B7280; }

/* language switcher */
.hm-lang { position: relative; }
.hm-lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid #E8E5DF;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease;
}
.hm-lang__btn:hover { border-color: #0F766E; color: #0F766E; }
.hm-lang.is-open .hm-lang__btn { border-color: #0F766E; color: #0F766E; }

.hm-lang__panel {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 188px;
  background: #fff;
  border: 1px solid #E8E5DF;
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(11, 18, 32, .14);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 10001;
}
.hm-lang.is-open .hm-lang__panel,
.hm-lang:hover .hm-lang__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.hm-lang__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: .85rem;
  color: #374151 !important;
  text-decoration: none !important;
}
.hm-lang__link:hover { background: #F7F6F3; }
.hm-lang__link.is-active { background: #F3FAF8; font-weight: 700; }
.hm-lang__code {
  font-family: "Consolas", "Space Mono", monospace;
  font-size: .7rem;
  letter-spacing: .1em;
  color: #0F766E;
  width: 22px;
}

/* mobile menu groups */
.hm-mobile__group {
  margin: 20px 0 6px;
  font-family: "Consolas", "Space Mono", monospace;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0F766E;
}
.hm-mobile__langs { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 6px; }
.hm-mobile__langs a {
  padding: 7px 14px;
  border: 1px solid #E8E5DF;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-decoration: none !important;
  color: #374151 !important;
}
.hm-mobile__langs a.is-active { background: #0F766E; border-color: #0F766E; color: #fff !important; }

@media (max-width: 1180px) {
  .hm-dd__panel { width: 300px; }
}

@media (max-width: 1024px) {
  .hm-header .hm-nav { display: none; }
  .hm-lang { display: none; }
}

.hm-mobile { padding-bottom: 96px; }
.hm-mobile a.hm-mobile__cta { display: block; margin: 20px 0 10px; border-bottom: 0; padding: 15px 18px; border-radius: 8px; background: #0F766E; color: #fff !important; text-align: center; font-weight: 700; text-decoration: none !important; }
.hm-mobile a.hm-mobile__cta:hover { background: #0C625B; }

.hm-mobile { max-height: calc(100vh - 110px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 760px) { .hm-mobile { max-height: calc(100vh - 64px); } }
