/* ==========================================
   HEADER & NAVBAR STYLES
   ========================================== */

.site-header {
  background-color: var(--surface-color, #ffffff);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

/* ۲. کانتینر اصلی هدر */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative; /* برای اطمینان بیشتر */
}
.logo-container img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* دکمه همبرگری مدرن */
.menu-toggle {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--text-color);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.2s ease,
    color 0.2s ease;
}

.menu-toggle:active {
  transform: scale(0.9);
}

/* منوی کشویی موبایل */
/* ۳. استایل منوی کشویی موبایل */
.main-nav {
  display: block;
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background-color: #ffffff; /* رنگ سفید کدر و غیرشفاف */
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  padding: 0.75rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
  z-index: 2000; /* اولویت نمایش بسیار بالا */

  /* حالت اولیه مخفی */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ۴. حالت فعال شدن منوی موبایل (وقتی روی همبرگری کلیک می‌شود) */
.main-nav.active {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

.nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link i {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

/* حالت Hover برای لینک‌ها */
.nav-link:hover {
  background-color: rgba(37, 99, 235, 0.05);
  color: var(--primary-color);
}

.nav-link:hover i {
  color: var(--primary-color);
}

/* --- مشخص کردن دقیق گزینه فعال (Active state) --- */
.nav-link.active {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--primary-color);
  font-weight: 700;
  border-right: 4px solid var(--primary-color);
  border-top-right-radius: 2px;
  border-bottom-right-radius: 2px;
}

.nav-link.active i {
  color: var(--primary-color);
}

/* Responsive Desktop */
@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    border: none;
    padding: 0;
    box-shadow: none;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .nav-list {
    flex-direction: row;
    gap: 0.5rem;
    padding: 0;
  }

  .nav-link.active {
    border-right: none;
    border-bottom: 3px solid var(--primary-color);
    border-radius: 4px 4px 0 0;
  }
}

/* ==========================================
   FOOTER STYLES (مدرن و جذاب)
   ========================================== */
.site-footer {
  background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
  color: #f8fafc;
  padding: 3rem 1.25rem 1.5rem;
  margin-top: auto;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-brand {
  text-align: center;
}

.footer-brand h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.88rem;
}

/* کارت‌های ارتباطی فوتر */
.footer-phones {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  width: 100%;
  max-width: 480px;
}

.phone-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  text-decoration: none;
  color: #f1f5f9;
  transition: all 0.25s ease;
}

.phone-card:hover {
  background: rgba(37, 99, 235, 0.15);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.phone-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.phone-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.2);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.phone-label {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.phone-label span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.phone-number {
  direction: ltr;
  font-family: monospace, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

/* بخش شبکه‌های اجتماعی با آیکون‌های SVG */
.social-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.social-title {
  font-size: 0.85rem;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 9px;
}

.social-icon-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* سفید کردن کامل آیکون‌های SVG مشکی روی زمینه مشکی/تیره */
  filter: brightness(0) invert(1);
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}

.social-icon-btn:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.social-icon-btn:hover img {
  /* حالت افکت هنگام هاور (کمی بزرگتر) */
  transform: scale(1.1);
}
/* جداکننده کپی رایت */
.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 0.5rem 0;
}

.copyright {
  font-size: 0.8rem;
  color: #64748b;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-phones {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================
   BUTTON STYLES (دکمه ثبت و پرداخت)
   ========================================== */

button#btn-pay-laser,
#btn-pay-laser {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 1.5rem !important;
  max-width: 380px !important;
  width: 100% !important;

  /* اصلاح فونت و خوانایی متن */
  font-family:
    "Vazirmatan", "IRANSans", "Segoe UI", Tahoma, sans-serif !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  text-align: center !important;

  /* چیدمان آیکون و متن در مرکز */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;

  /* استایل ظاهری */
  padding: 12px 24px !important;
  border-radius: 10px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2) !important;
}

button#btn-pay-laser:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3) !important;
}

button#btn-pay-laser:active {
  transform: translateY(0) !important;
}
