/* =========================================================
   TaminYar Brand UI Fix
   ========================================================= */

:root {
  --ty-green: #24b85a;
  --ty-green-dark: #138947;
  --ty-green-soft: #eaf9ef;
  --ty-navy: #062a4b;
  --ty-navy-soft: #123e66;
  --ty-border: rgba(6, 42, 75, 0.09);
  --ty-shadow: 0 14px 34px rgba(6, 42, 75, 0.10);
}

/* لوگوی هدر */
.site-header .brand > img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex: 0 0 52px;
  filter: drop-shadow(0 5px 10px rgba(6, 42, 75, 0.10));
}

/* دکمه همبرگری */
.menu-toggle {
  position: relative;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(6, 42, 75, 0.10);
  border-radius: 14px;
  background: #fff;
  color: var(--ty-navy);
  box-shadow: 0 8px 24px rgba(6, 42, 75, 0.10);
  cursor: pointer;
  z-index: 1002;
  -webkit-tap-highlight-color: transparent;
}

/* سه خط آیکن همبرگر */
.menu-toggle::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--ty-navy);
  box-shadow:
    0 -7px 0 var(--ty-navy),
    0 7px 0 var(--ty-navy);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.menu-toggle::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: transparent;
  transition:
    transform 0.25s ease,
    background 0.25s ease;
}

.menu-toggle:hover {
  background: var(--ty-green-soft);
  border-color: rgba(36, 184, 90, 0.25);
}

/* تبدیل همبرگر به ضربدر هنگام بازشدن */
.menu-toggle[aria-expanded="true"]::before {
  box-shadow: none;
  transform: rotate(45deg);
  background: var(--ty-navy);
}

.menu-toggle[aria-expanded="true"]::after {
  background: var(--ty-navy);
  transform: rotate(-45deg);
}

/* منوی موبایل */
@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex !important;
  }

  .nav-links {
    z-index: 1001;
  }

  .nav-links.open {
    display: flex;
    animation: tyMenuOpen 0.24s ease both;
  }
}

@keyframes tyMenuOpen {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* کارت‌های امکانات */
.feature-card {
  isolation: isolate;
  border: 1px solid var(--ty-border);
  box-shadow: 0 8px 26px rgba(6, 42, 75, 0.055);
}

.feature-card > * {
  position: relative;
  z-index: 2;
}

.feature-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 150px;
  height: 150px;
  top: -90px;
  right: -90px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(36, 184, 90, 0.13),
    rgba(36, 184, 90, 0)
  );
  transition: transform 0.35s ease;
}

.feature-card:hover::before {
  transform: scale(1.35);
}

/* آیکن‌های امکانات */
.feature-icon {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 19px;
  color: var(--ty-navy);
  background:
    linear-gradient(
      145deg,
      rgba(36, 184, 90, 0.18),
      rgba(255, 255, 255, 0.96)
    );
  border: 1px solid rgba(36, 184, 90, 0.20);
  box-shadow:
    0 12px 24px rgba(6, 42, 75, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  transition:
    transform 0.28s ease,
    color 0.28s ease,
    background 0.28s ease,
    box-shadow 0.28s ease;
}

.feature-icon::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 34px;
  left: -13px;
  bottom: -15px;
  border-radius: 50%;
  background: rgba(36, 184, 90, 0.12);
}

.feature-icon svg {
  position: relative;
  z-index: 2;
  width: 31px;
  height: 31px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s ease;
}

.feature-card:hover .feature-icon {
  color: #fff;
  background: linear-gradient(
    145deg,
    var(--ty-green),
    var(--ty-green-dark)
  );
  border-color: transparent;
  transform: translateY(-5px) rotate(-2deg);
  box-shadow: 0 16px 30px rgba(36, 184, 90, 0.25);
}

.feature-card:hover .feature-icon svg {
  transform: scale(1.08);
}

.feature-card h3 {
  color: var(--ty-navy);
}

/* آیکن کارت‌های شناور کنار موبایل */
.floating-card .icon {
  color: var(--ty-navy);
  background: linear-gradient(
    145deg,
    rgba(36, 184, 90, 0.20),
    #fff
  );
  border: 1px solid rgba(36, 184, 90, 0.20);
}

/* لوگوی فوتر */
.footer-brand .brand > img {
  width: 122px;
  height: auto;
  max-height: 170px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.20));
}

.footer-brand .brand > span {
  display: none;
}

@media (max-width: 700px) {
  .site-header .brand > img {
    width: 45px;
    height: 45px;
    flex-basis: 45px;
  }

  .site-header .brand > span {
    font-size: 15px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .feature-icon {
    width: 58px;
    height: 58px;
    border-radius: 17px;
  }

  .feature-icon svg {
    width: 29px;
    height: 29px;
  }

  .footer-brand .brand > img {
    width: 110px;
  }
}
