.elementor-3587 .elementor-element.elementor-element-35dd8e7{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-3587 .elementor-element.elementor-element-059b218{width:100%;max-width:100%;}.elementor-3587 .elementor-element.elementor-element-a21485e{--display:flex;--flex-direction:column;--container-widget-width:100%;--container-widget-height:initial;--container-widget-flex-grow:0;--container-widget-align-self:initial;--flex-wrap-mobile:wrap;}.elementor-3587 .elementor-element.elementor-element-8bf1405{--spacer-size:50px;}/* Start custom CSS for html, class: .elementor-element-059b218 *//* ===============================
   HEADER & NAV – DIGI HOLD
=================================*/

/* reset inside header */
.dh-header * {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

.dh-burger,
.dh-sub-toggle {
  -webkit-appearance: none;
  appearance: none;
  border: none !important;
  background: transparent !important;
  padding: 0;
  margin: 0;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.dh-header a:focus,
.dh-header button:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* Elementor / theme menus on mobile را مخفی کن */
@media (max-width: 900px) {
  .elementor-nav-menu,
  .elementor-nav-menu--dropdown,
  .elementor-nav-menu__toggle,
  .elementor-menu-toggle,
  .jet-mobile-menu,
  .jet-mobile-menu__instance,
  .jet-mobile-menu__toggle,
  .mobile-menu,
  .mobile-nav-toggle {
    display: none !important;
  }
}

/* fixed header bar */
.dh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  width: 100%;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 8, 24, 0.96);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* برای این‌که محتوا زیر هدر نرود */
body {
  padding-top: 90px;
}

.dh-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* logo */
.dh-logo img {
  display: block;
  height: 72px;
  width: auto;
}

/* lock scroll when mobile nav is open */
body.dh-nav-open,
html.dh-nav-open {
  overflow: hidden;
  height: 100%;
}

/* =========== DESKTOP NAV =========== */

.dh-nav {
  display: flex;
  align-items: center;
}

.dh-nav-inner {
  display: flex;
  align-items: center;
}

.dh-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 24px;
}

.dh-nav-footer {
  display: none;
}

.dh-link,
.dh-sub-toggle {
  font: inherit;
  color: rgba(242, 244, 255, 0.75);
  text-decoration: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.18s ease;
  background: transparent !important;
}

/* underline فقط وقتی is-active است */
.dh-nav .dh-link,
.dh-nav .dh-sub-toggle {
  display: inline-block;
  position: relative;
  padding-bottom: 4px;
}

.dh-nav .dh-link::after,
.dh-nav .dh-sub-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  transition: width 0.2s ease-out;
}

.dh-link:hover,
.dh-sub-toggle:hover {
  color: #ffffff;
}

/* active state */
.dh-link.is-active::after,
.dh-sub-toggle.is-active::after {
  width: 100%;
}

.dh-nav .dh-link.is-active,
.dh-nav .dh-sub-toggle.is-active {
  color: #ffffff !important;
  font-weight: 700;
}

/* Services arrow icon (desktop base) */
.dh-sub-toggle::before {
  content: "▾";
  display: inline-block;
  margin-right: 8px;
  font-size: 0.9em;
  transform: translateY(-1px);
  color: rgba(148,163,184,0.95);
}

/* dropdown container desktop */
.dh-has-sub {
  position: relative;
}

.dh-sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 230px;
  margin: 0;
  padding: 10px 8px;
  list-style: none;
  background: #020617;
  border-radius: 14px;
  border: 1px solid rgba(148,163,184,0.55);
  box-shadow: 0 18px 40px rgba(0,0,0,0.85);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 1099;
}

.dh-sub-menu .dh-link {
  display: inline-block;
  padding: 8px 10px;
  font-size: 0.9rem;
  border-radius: 8px;
}

/* underline برای زیرمنو */
.dh-sub-menu .dh-link::after {
  content: "";
  position: absolute;
  left: 10px;        /* با padding هماهنگ شود */
  bottom: 3px;
  height: 2px;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #22d3ee, #a855f7);
  transition: width 0.2s ease-out;
}

/* active زیرمنو (از جمله Content Creation) */
.dh-sub-menu .dh-link.is-active::after {
  width: calc(100% - 20px) !important;
}

.dh-sub-menu .dh-link:hover {
  background: rgba(148,163,184,0.20);
  color: #ffffff;
}

.dh-sub-menu .dh-link.is-active {
  color: #ffffff !important;
  font-weight: 600;
}

/* نمایش dropdown روی دسکتاپ با hover */
@media (min-width: 901px) {
  .dh-burger { display: none; }

  .dh-has-sub:hover .dh-sub-menu,
  .dh-has-sub:focus-within .dh-sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
  }
}

/* =========== BURGER ICON =========== */

.dh-burger {
  width: 40px;
  height: 40px;
  position: relative;
  display: none; /* mobile only */
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  z-index: 1200;
}

.dh-burger span {
  position: absolute;
  left: 50%;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: #ffffff;
  transition:
    transform 0.28s ease,
    opacity   0.28s ease,
    top       0.28s ease,
    background 0.28s ease;
}

.dh-burger span:nth-child(1) { top: 9px; }
.dh-burger span:nth-child(2) { top: 15px; }
.dh-burger span:nth-child(3) { top: 21px; }

.dh-burger.is-open span {
  background-image: linear-gradient(90deg, #22d3ee, #a855f7);
  background-color: transparent;
}

.dh-burger.is-open span:nth-child(1) {
  top: 15px;
  transform: translateX(-50%) rotate(45deg);
}
.dh-burger.is-open span:nth-child(2) { opacity: 0; }
.dh-burger.is-open span:nth-child(3) {
  top: 15px;
  transform: translateX(-50%) rotate(-45deg);
}

/* =========== MOBILE NAV =========== */

@media (max-width: 900px) {

  .dh-header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 10px 16px;
  }

  .dh-logo img {
    height: 56px;
  }

  .dh-burger {
    display: flex;
  }

  .dh-nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    padding-right: 24px;
    padding-bottom: 40px;
    padding-left: 24px;
    background: #050816;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex;
    flex-direction: column;
    gap: 32px;
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition:
      transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
      opacity   0.28s ease-out,
      visibility 0.28s ease-out;
    z-index: 1000;
  }

  .dh-nav.is-open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dh-nav-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .dh-nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .dh-link,
  .dh-sub-toggle {
    font-size: 22px;
    font-weight: 600;
    text-align: left;
  }

  /* Services accordion */
  .dh-sub-menu {
    position: static;
    transform: none;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 8px 0 0 18px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
  }

  .dh-has-sub.is-open .dh-sub-menu {
    max-height: 500px;
    opacity: 1;
    visibility: visible;
  }

  .dh-sub-menu .dh-link {
    font-size: 17px;
    padding: 4px 0;
  }

  /* فلش بزرگ‌تر روی موبایل */
  .dh-sub-toggle::before {
    font-size: 1.25em;
  }
  .dh-has-sub.is-open .dh-sub-toggle::before {
    content: "▴";
  }

  /* mobile footer (DIGI HOLD + vertical line) */
  .dh-nav-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
  }

  .dh-nav-footer-logo {
    letter-spacing: 0.3em;
    font-size: 10px;
    text-transform: uppercase;
    color: rgba(241,245,249,0.8);
  }

  .dh-nav-footer-line {
    width: 2px;
    height: 80px;
    background: linear-gradient(180deg, #22d3ee, #a855f7);
    border-radius: 999px;
  }

  body.dh-nav-open {
    overflow: hidden;
    height: 100vh;
    position: fixed;
    width: 100%;
  }
}/* End custom CSS */