.elementor-109 .elementor-element.elementor-element-80165f5{--display:flex;--margin-top:0px;--margin-bottom:0px;--margin-left:0px;--margin-right:0px;--padding-top:0px;--padding-bottom:0px;--padding-left:0px;--padding-right:0px;}.elementor-109 .elementor-element.elementor-element-80165f5.e-con{--align-self:flex-start;}.elementor-109 .elementor-element.elementor-element-40fce9a{width:100%;max-width:100%;border-style:none;}.elementor-109 .elementor-element.elementor-element-40fce9a:hover{border-style:none;}.elementor-theme-builder-content-area{height:400px;}.elementor-location-header:before, .elementor-location-footer:before{content:"";display:table;clear:both;}@media(max-width:767px){.elementor-109 .elementor-element.elementor-element-40fce9a{width:100%;max-width:100%;}}/* Start custom CSS for html, class: .elementor-element-40fce9a *//* =========================
   MAH HEADER – FINAL ACTION BAR
   Unified segmented control
   ========================= */

/* variables (همان رنگ‌های قبلی) */
:root{
  --nav-bg: #031826;
  --cta-bg: #f1d7b0;
  --cta-text: #000;
  --max-w: 1200px;
}

/* ===== action bar container ===== */
.mahHdr__bottom{
  display: flex !important;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  align-items: stretch;
  gap: 0;                         /* چسبیده */
  border-radius: 12px;
  overflow: hidden;               /* یکپارچه */
  box-sizing: border-box;
  background: var(--cta-bg);      /* بک یکدست زیر دکمه‌ها */
}

/* ===== each button ===== */
.mahHdr__chip--bar{
  flex: 1 1 0%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 52px;
  font-weight: 900;
  font-size: clamp(12px, 1.6vw, 17px);
  white-space: nowrap;
  background: transparent;        /* رنگ از کانتینر میاد */
  color: var(--cta-text);
  border: none;
  margin: 0;
  cursor: pointer;
  box-sizing: border-box;
  transition: background .14s ease, color .14s ease, transform .14s ease;
  min-width: 0;
}

/* ===== dividers between buttons ===== */
.mahHdr__chip--bar + .mahHdr__chip--bar{
  border-left: 1px solid rgba(0,0,0,.18);
}

/* ===== outer corners only ===== */
.mahHdr__chip--bar:first-child{
  border-radius: 12px 0 0 12px;
}
.mahHdr__chip--bar:last-child{
  border-radius: 0 12px 12px 0;
}

/* ===== hover / focus (رنگ‌ها معکوس مثل قبل) ===== */
.mahHdr__chip--bar:hover,
.mahHdr__chip--bar:focus{
  background: var(--nav-bg);
  color: #fff;
  transform: translateY(-2px);
}

/* soften divider on hover */
.mahHdr__chip--bar:hover + .mahHdr__chip--bar{
  border-left-color: rgba(255,255,255,.35);
}

/* ===== phone number LTR safe ===== */
.mahHdr__ltr{
  direction: ltr;
}

/* =========================
   Responsive tuning
   ========================= */
@media (max-width: 980px){
  .mahHdr__chip--bar{
    height: 44px;
    padding: 0 12px;
    font-size: clamp(11px, 2.8vw, 15px);
  }
}

@media (max-width: 420px){
  .mahHdr__chip--bar{
    padding: 0 10px;
    font-size: 11px;
    letter-spacing: -0.2px;
  }
}

/* =========================
   MOBILE MENU — OVERLAY (NO REFLOW)
   ========================= */

@media (max-width: 980px){

  /* هدر ارتفاع ثابت دارد */
  .mahHdr{
    position: fixed;
  }

  /* منوی موبایل از جریان صفحه خارج می‌شود */
  .mahHdr__nav{
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    z-index: calc(var(--z) + 100);
    display: none;
    box-shadow: 0 18px 40px rgba(0,0,0,.45);
  }

  /* فقط هنگام باز شدن نمایش داده شود */
  .mahHdr.is-mobile-open .mahHdr__nav{
    display: block;
  }

}


/* ========= Fix: center hover dropdown (desktop) + stable mobile behavior ========= */

/* ensure the trigger is the positioning context (no layout change otherwise) */
.mahHdr__item--hasDrop {
  position: relative; /* safe — only sets positioning context */
  z-index: calc(var(--z) + 10); /* keep above other header bits */
}

/* center the dropdown under its trigger on desktop.
   We use left:50% + translateX(-50%) so it centers relative to the trigger. */
.mahHdr__item--hasDrop > .mahHdr__drop {
  /* only minimal, targeted overrides — won't change other sizing rules */
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) translateY(8px) !important;
  transform-origin: top center !important;
  /* keep width limits already set, otherwise fall back to existing width rules */
  max-width: min(980px, calc(100vw - 24px));
}

/* small invisible bridge so mouse can travel from trigger -> dropdown without closing */
.mahHdr__item--hasDrop::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;               /* ناحیهٔ امن — اگر لازم بود عدد را 10–18 تغییر بده */
  background: transparent;
  pointer-events: auto;       /* اجازه می‌دهد موس روی این ناحیه عبور کند */
}

/* =========================
   MOBILE DROPDOWN — no empty gap when closed
   ========================= */
@media (max-width: 980px){

  /* حالت بسته: هیچ فضایی نگیرد */
  .mahHdr__item--hasDrop > .mahHdr__drop{
    position: static !important;
    display: none !important;     /*کلید حل مشکل فاصله */
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    transform: none !important;
  }

  /* فقط با کلیک باز شود */
  #mahServicesBtn[aria-expanded="true"] + .mahHdr__drop{
    display: block !important;    /* فضا فقط اینجا ایجاد می‌شود */
    margin-top: 8px;
  }

  /* شبکهٔ داخلی */
  .mahHdr__dropGrid{
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .mahHdr__dropCol{
    padding: 10px !important;
    border-radius: 8px !important;
  }

}/* End custom CSS */