.mdhb-header {
  position: relative;
  z-index: 9999;
  width: 100%;
  color: var(--mdhb-text-color);
  font-family: inherit;
}

.mdhb-container {
  width: min(100% - 32px, var(--mdhb-max-width));
  margin: 0 auto;
}

.mdhb-topbar {
  background: var(--mdhb-topbar-bg);
  padding: var(--mdhb-topbar-padding) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mdhb-topbar-grid {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr) auto auto;
  gap: 26px;
  align-items: center;
  min-height: var(--mdhb-topbar-min-height);
}

.mdhb-logo,
.mdhb-mobile-logo,
.mdhb-partner-logo {
  display: block;
  max-width: 100%;
  height: auto;
}

.mdhb-logo {
  max-height: var(--mdhb-logo-max-height);
  width: auto;
}

.mdhb-mobile-logo {
  max-height: var(--mdhb-mobile-logo-max-height);
  width: auto;
}

.mdhb-partners {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mdhb-partner-intro {
  font-size: 14px;
  line-height: 1.3;
  color: rgba(0, 0, 0, 0.68);
}

.mdhb-partner-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.mdhb-partner-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mdhb-partner-logo {
  max-height: var(--mdhb-partner-logo-height);
  width: auto;
  object-fit: contain;
}

.mdhb-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.mdhb-contact-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.mdhb-contact-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  line-height: 1.25;
}

.mdhb-contact-content strong {
  font-size: 14px;
  line-height: 1.2;
}

.mdhb-icon {
  width: 26px;
  height: 26px;
  color: var(--mdhb-accent);
  flex: 0 0 26px;
}

.mdhb-icon svg,
.mdhb-social-link svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mdhb-socials {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.mdhb-social-link {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
}

.mdhb-social-link--whatsapp { background: #25d366; }
.mdhb-social-link--instagram { background: #e1306c; }
.mdhb-social-link--facebook { background: #3b5998; }
.mdhb-social-link--tiktok { background: #111111; }
.mdhb-social-link--youtube { background: #cc0000; }

.mdhb-menubar {
  background: var(--mdhb-menu-bg);
}

.mdhb-menubar-inner {
  min-height: var(--mdhb-menu-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.mdhb-mobile-brand,
.mdhb-mobile-toggle,
.mdhb-mobile-drawer {
  display: none;
}

.mdhb-desktop-nav {
  flex: 1 1 auto;
  min-width: 0;
}

.mdhb-menu,
.mdhb-mobile-menu,
.mdhb-menu ul,
.mdhb-mobile-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mdhb-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: var(--mdhb-menu-gap-current);
}

.mdhb-menu > li {
  position: relative;
}

.mdhb-menu > li > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--mdhb-menu-height);
  padding: 0 var(--mdhb-menu-link-padding-current);
  color: var(--mdhb-menu-text-color);
  text-decoration: none;
  font-size: var(--mdhb-menu-font-size-current);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}

.mdhb-menu > li > a::before {
  content: '';
  position: absolute;
  left: calc(var(--mdhb-menu-link-padding-current) + 4px);
  right: calc(var(--mdhb-menu-link-padding-current) + 4px);
  bottom: 16px;
  height: 3px;
  background: #ffffff;
  opacity: 0;
  transform: scaleX(.7);
  transform-origin: center;
  transition: opacity .2s ease, transform .2s ease;
}

.mdhb-menu > li:hover > a::before,
.mdhb-menu > li:focus-within > a::before,
.mdhb-menu > li.current-menu-item > a::before,
.mdhb-menu > li.current-menu-ancestor > a::before,
.mdhb-menu > li.current_page_item > a::before,
.mdhb-menu > li.current_page_ancestor > a::before {
  opacity: 1;
  transform: scaleX(1);
}

.mdhb-menu > li.menu-item-has-children > a {
  padding-right: calc(var(--mdhb-menu-link-padding-current) + 18px);
}

.mdhb-menu > li.menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: calc(var(--mdhb-menu-link-padding-current) - 2px);
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.mdhb-menu li ul {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--mdhb-menu-bg);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  z-index: 30;
}

.mdhb-menu li:hover > ul,
.mdhb-menu li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mdhb-menu li ul li {
  position: relative;
}

.mdhb-menu li ul ul {
  top: 0;
  left: 100%;
}

.mdhb-menu li ul a {
  position: relative;
  display: block;
  padding: 16px 42px 16px 22px;
  color: #ffffff;
  text-decoration: none;
  line-height: 1.35;
  font-size: 16px;
  transition: background-color .2s ease, color .2s ease;
}

.mdhb-menu li ul li + li > a {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mdhb-menu li ul a:hover,
.mdhb-menu li ul a:focus,
.mdhb-menu li ul li.current-menu-item > a,
.mdhb-menu li ul li.current-menu-ancestor > a,
.mdhb-menu li ul li.current_page_item > a,
.mdhb-menu li ul li.current_page_ancestor > a {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mdhb-menu li ul .menu-item-has-children > a::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.mdhb-mobile-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.mdhb-mobile-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--mdhb-menu-text-color);
  transition: transform .2s ease, opacity .2s ease;
}

.mdhb-mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mdhb-mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mdhb-mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mdhb-mobile-drawer {
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mdhb-mobile-drawer[hidden] {
  display: none !important;
}

.mdhb-mobile-drawer.is-open {
  display: block !important;
}

.mdhb-mobile-nav {
  padding: 18px 0 8px;
}

.mdhb-mobile-menu > li > a {
  display: block;
  padding: 14px 0;
  text-decoration: none;
  color: #111;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.mdhb-mobile-menu > li.current-menu-item > a,
.mdhb-mobile-menu > li.current-menu-ancestor > a {
  color: var(--mdhb-menu-bg);
  font-weight: 600;
}

.mdhb-mobile-menu .menu-item-has-children > ul {
  margin: 8px 0 12px;
  padding: 0;
  background: var(--mdhb-menu-bg);
  border-radius: 4px;
  overflow: hidden;
}

.mdhb-mobile-menu .menu-item-has-children > ul a {
  display: block;
  padding: 12px 16px;
  color: #ffffff;
  text-decoration: none;
}

.mdhb-mobile-menu .menu-item-has-children > ul li + li a {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mdhb-mobile-cta-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 10px 0 20px;
}

.mdhb-mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.mdhb-mobile-cta--primary {
  background: var(--mdhb-menu-bg);
  color: #fff;
}

.mdhb-mobile-cta--secondary {
  background: #f2f4f8;
  color: #111;
}

body.mdhb-mobile-menu-open {
  overflow: hidden;
}

@media (max-width: 1500px) {
  .mdhb-topbar-grid {
    grid-template-columns: 220px 1fr;
  }

  .mdhb-contact-row,
  .mdhb-socials {
    grid-column: 1 / -1;
  }

  .mdhb-socials {
    justify-content: flex-start;
  }
}
