/**
 * @file
 * Visual styles for menu.
 */

ul.menu {
  margin-left: 1em; /* LTR */
  padding: 0;
  list-style: none outside;
  text-align: left; /* LTR */
}
[dir="rtl"] ul.menu {
  margin-right: 1em;
  margin-left: 0;
  text-align: right;
}
.menu-item--expanded {
  list-style-type: circle;
  list-style-image: url(../../../../../misc/menu-expanded.png);
}
.menu-item--collapsed {
  list-style-type: disc;
  list-style-image: url(../../../../../misc/menu-collapsed.png); /* LTR */
}
[dir="rtl"] .menu-item--collapsed {
  list-style-image: url(../../../../../misc/menu-collapsed-rtl.png);
}
.menu-item {
  margin: 0;
  padding-top: 0.2em;
}
ul.menu a.is-active {
  color: #000;
}


/* =========================
   HEADER CONTAINER
   ========================= */
header.header {
  width: 100%;
  position: relative;
  z-index: 1;
  min-height: 186px;
  background-color: #fff;
}

header.header.header-top{
    z-index:3;
}

/* فقط در صفحه اصلی - بکگراند تصویر */
.header--home {
  background-image: url(/sites/all/files/Banner-Home-TP.webp); /* مسیر تصویر */
/*  background-size: cover;*/
  background-position: center;
  background-repeat: no-repeat;
  height: 97vh;
  color: white;
  background-attachment: fixed;
  background-size: 100% auto;
}

.header--home::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 3%);
  z-index: -1;
}


/* =========================
   FLEX HEADER LAYOUT
   ========================= */
.flex-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0rem 2rem;
  flex-wrap: wrap;
  background: #fff;
  position: fixed;
  right: 0;
  left: 0;
}

/* لوگو */
.site-branding img {
  max-height: 80px;
  width: auto;
}

/* دکمه موبایل */
.mobile-menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  display: none;
  cursor: pointer;
  color: inherit;
  z-index: 1100;
}

/* ناوبری کلی (منو و حساب کاربری) */
.navigation-wrapper {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-family: 'Days One';
}

/* =========================
   MENUS
   ========================= */
.main-menu nav,
.account-menu {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}

.main-menu a,
.account-menu a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 16px;
}

.main-menu a:hover,
.account-menu a:hover {
  color: #4daec9;
}

/* در صفحه اصلی – سفید */
.header--home .main-menu a,
.header--home .account-menu a,
.header--home .mobile-menu-toggle {
  color: #061c46;
}

.header--home .main-menu a:hover,
.header--home .account-menu a:hover {
  color: #4daec9;
}

.account-menu a.login-menu {
    background: #4daec9;
    color: #ffffff;
    padding: 10px;
    border-radius: 30px;
}

.account-menu a.login-menu:hover {
    color: #fff;
    background: #00c7ff;
}



.layout-main-wrapper.layout-container.clearfix.menu-open::after {
    content: "";
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgb(0 0 0 / 78%);
    z-index: 1;
    top: 0;
    left: 0;
}

/* =========================
   RESPONSIVE - MOBILE
   ========================= */
@media (max-width: 1080px) { /*original = max-width: 768px */
  .mobile-menu-toggle {
    display: block;
  }

  .navigation-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 1rem 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    animation: slideDown 0.3s ease-out;
  }

  .navigation-wrapper.show {
    display: flex;
  }

  .main-menu nav,
  .account-menu {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 1rem;
  }

  .account-menu {
    border-top:1px solid #0000003d;
    padding: 20px 0px;
    align-items: center;
  }

  .main-menu a,
  .account-menu a {
    font-size: 15px;
    color: #333;
  }

  .header--home .navigation-wrapper {
    background: rgba(255, 255, 255, 0.96);
  }

  .header--home .navigation-wrapper a {
    color: #000;
  }
}

@media (max-width: 768px) { /*original = max-width: 768px */
    .header--home {
        background-image: url(/sites/all/files/Banner-Mobile.webp);
        background-attachment: scroll;

    }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

