/* ============================================================ */
/* ===== style.css - فایل اصلی و یکپارچه ===== */
/* ============================================================ */

/* ===== فونت ===== */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ===== متغیرها ===== */
:root {
  --green-jade: #2A9D8F;
  --green-dark: #2E8B57;
  --green-light: #E8F5E9;
  --red-ashura: #C41E3A;
  --gold: #F4D03F;
  --white: #FFFFFF;
  --cream: #F9F6EE;
  --gray-light: #F0EFEB;
  --gray-mid: #D0CCC5;
  --text-dark: #1a2a1e;
  --text-mid: #4a5a4e;
  --text-light: #8a9a8e;
  --font-main: 'Vazirmatn', 'IRANSans', 'Tahoma', sans-serif;
  --shadow-sm: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(42,157,143,0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --gap: 16px;
}

/* ===== ریست ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--cream);
  color: var(--text-dark);
  direction: rtl;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 70px;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; outline: none; }
button { cursor: pointer; }

/* ============================================================ */
/* ===== هدر (چسبنده به بالا) ===== */
/* ============================================================ */
.header {
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 12px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--green-jade);
}
.header .brand a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}
.header .brand a::after { display: none !important; }
.header .brand .logo-img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}
.header .brand .logo-img:hover { transform: scale(1.05); }
.header .brand .site-name {
  font-weight: 900;
  font-size: 22px;
  background: linear-gradient(135deg, var(--green-jade), var(--green-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header .nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.header .nav .search-box {
  display: flex;
  align-items: center;
  background: var(--gray-light);
  border-radius: 50px;
  padding: 3px 6px 3px 3px;
  border: 1px solid transparent;
  transition: 0.3s;
}
.header .nav .search-box:focus-within {
  border-color: var(--green-jade);
  background: var(--white);
}
.header .nav .search-box input {
  background: none;
  border: none;
  padding: 6px 12px;
  font-size: 13px;
  width: 140px;
  outline: none;
  font-family: inherit;
  color: var(--text-dark);
}
.header .nav .search-box input::placeholder { color: var(--text-light); }
.header .nav .search-box button {
  background: none;
  border: none;
  color: var(--green-jade);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 10px;
}
.header .nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header .nav-menu li { position: relative; }
.header .nav-menu li a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 30px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.header .nav-menu li a::after { display: none !important; }
.header .nav-menu li a:hover {
  background: var(--green-light);
  color: var(--green-jade);
}
.header .nav-menu li a.active {
  background: var(--green-jade);
  color: #fff;
}
.header .nav-menu li a i.fa-chevron-down {
  font-size: 10px;
  margin-right: 2px;
}
.header .nav-menu .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: var(--white);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid var(--green-light);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 999;
  list-style: none;
}
.header .nav-menu .dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.header .nav-menu .dropdown-menu li { display: block; }
.header .nav-menu .dropdown-menu li a {
  padding: 8px 20px;
  border-radius: 0;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-mid);
  transition: all 0.2s ease;
}
.header .nav-menu .dropdown-menu li a:hover {
  background: var(--green-light);
  color: var(--text-dark);
}
.header .nav .login-btn {
  background: var(--green-jade);
  border: none;
  border-radius: 50px;
  padding: 7px 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s ease;
  text-decoration: none !important;
}
.header .nav .login-btn::after { display: none !important; }
.header .nav .login-btn:hover {
  background: var(--red-ashura);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(196,30,58,0.2);
}
@media (max-width: 992px) {
  .header { padding: 8px 16px; }
  .header .nav-menu { flex-wrap: wrap; gap: 2px; }
  .header .nav-menu li a { padding: 5px 10px; font-size: 12px; }
  .header .nav .search-box input { width: 100px; font-size: 12px; }
}
@media (max-width: 768px) {
  .header .nav-menu { display: none; }
  .header .nav .search-box { order: 2; }
  .header .nav .login-btn { order: 3; }
}

/* ============================================================ */
/* ===== فوتر (چسبیده به پایین) ===== */
/* ============================================================ */
.footer {
  background: var(--white);
  border-top: 2px solid var(--green-jade);
  padding: 30px 20px 16px;
  margin-top: auto;
  width: 100%;
}
.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 30px;
  align-items: start;
}
.footer-brand { text-align: center; }
.footer-brand .footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 6px;
}
.footer-brand .footer-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-dark);
  display: block;
}
.footer-brand .footer-desc {
  font-size: 13px;
  color: var(--text-mid);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 20px;
}
.footer-links a {
  color: var(--text-mid);
  font-size: 14px;
  transition: 0.3s;
  text-decoration: none !important;
}
.footer-links a::after { display: none !important; }
.footer-links a:hover { color: var(--green-jade); }
.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green-light);
  color: var(--green-jade);
  font-size: 18px;
  transition: all 0.3s ease;
}
.footer-social a:hover {
  background: var(--green-jade);
  color: #fff;
  transform: translateY(-3px);
}
.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--green-light);
  text-align: center;
  font-size: 13px;
  color: var(--text-light);
}
.footer-bottom strong { color: var(--text-dark); }
@media (max-width: 768px) {
  .footer-content { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .footer-links { justify-content: center; }
  .footer-social { justify-content: center; }
}

/* ============================================================ */
/* ===== منوی پایین (موبایل) ===== */
/* ============================================================ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  background: var(--white);
  box-shadow: 0 -4px 30px rgba(0,0,0,0.06);
  border-top: 1px solid var(--green-light);
  padding: 6px 12px 10px;
  z-index: 200;
  justify-content: space-around;
  align-items: center;
}
.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-light);
  font-size: 10px;
  transition: all 0.3s ease;
  padding: 4px 8px;
  border-radius: 12px;
  text-decoration: none !important;
}
.bottom-nav a i { font-size: 22px; }
.bottom-nav a:hover { color: var(--green-jade); }
.bottom-nav a.active {
  color: var(--red-ashura);
  background: rgba(196,30,58,0.06);
}
.bottom-nav a::after { display: none !important; }
@media (max-width: 768px) { .bottom-nav { display: flex !important; } }
@media (min-width: 769px) { .bottom-nav { display: none !important; } }

/* ============================================================ */
/* ===== اسلایدر ===== */
/* ============================================================ */
.slider-section {
  position: relative;
  height: 450px;
  overflow: hidden;
  margin: 16px 16px 24px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}
.slider-slide {
  position: absolute;
  top: 0; right: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
  display: flex;
  align-items: flex-end;
  padding: 40px 50px;
  background-size: cover;
  background-position: center;
}
.slider-slide.active { opacity: 1; }
.slider-slide .content {
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  padding: 22px 32px;
  border-radius: 18px;
  border-right: 5px solid var(--gold);
  max-width: 500px;
  box-shadow: var(--shadow-sm);
}
.slider-slide .content h2 {
  font-size: 28px;
  color: #fff;
  margin-bottom: 4px;
}
.slider-slide .content h2 span { color: var(--gold); }
.slider-slide .content p {
  font-size: 16px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.slider-slide .content a {
  display: inline-block;
  padding: 8px 28px;
  background: var(--gold);
  color: #1a2a1e;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none !important;
}
.slider-slide .content a:hover {
  background: var(--red-ashura);
  color: #fff;
  transform: translateY(-2px);
}
.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 5;
}
.slider-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: 0.3s;
}
.slider-dots span.active {
  background: var(--gold);
  width: 32px;
  border-radius: 10px;
}
@media (max-width: 768px) {
  .slider-section { height: 300px; margin: 12px 12px 18px; border-radius: 18px; }
  .slider-slide { padding: 24px 30px; }
  .slider-slide .content { padding: 16px 22px; max-width: 100%; }
  .slider-slide .content h2 { font-size: 20px; }
  .slider-slide .content p { font-size: 14px; }
}
@media (max-width: 420px) {
  .slider-section { height: 240px; }
  .slider-slide .content h2 { font-size: 16px; }
  .slider-slide .content p { font-size: 12px; }
}

/* ============================================================ */
/* ===== کارت‌ها (آمار و عملیات) ===== */
/* ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto 32px;
  padding: 0 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--green-jade);
  transition: 0.3s;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.stat-card .number { font-size: 32px; font-weight: 900; color: var(--red-ashura); display: block; }
.stat-card .label { font-size: 14px; color: var(--text-mid); }

.operations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.op-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-bottom: 3px solid var(--green-jade);
  transition: 0.3s;
}
.op-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.op-card .op-name { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.op-card .op-count { font-size: 13px; color: var(--red-ashura); font-weight: 500; }
@media (max-width: 768px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
  .stat-card { padding: 14px 8px; }
  .stat-card .number { font-size: 24px; }
  .stat-card .label { font-size: 12px; }
  .operations { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0 12px; }
  .op-card { padding: 14px 8px; }
  .op-card .op-name { font-size: 15px; }
  .op-card .op-count { font-size: 12px; }
}
@media (max-width: 420px) {
  .stat-card .number { font-size: 20px; }
  .stat-card { padding: 10px 6px; }
}

/* ============================================================ */
/* ===== جستجوی پیشرفته ===== */
/* ============================================================ */
.search-advanced {
  background: var(--white);
  border-radius: 24px;
  padding: 20px 24px;
  max-width: 1100px;
  margin: 0 auto 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-light);
}
.search-advanced select {
  background: var(--gray-light);
  border: 1px solid var(--gray-mid);
  border-radius: 50px;
  padding: 9px 16px;
  color: var(--text-dark);
  font-size: 13px;
  font-family: inherit;
  outline: none;
  min-width: 110px;
  cursor: pointer;
  transition: 0.3s;
}
.search-advanced select:focus { border-color: var(--green-jade); }
.search-advanced .search-btn {
  background: var(--green-jade);
  border: none;
  border-radius: 50px;
  padding: 9px 28px;
  color: var(--white);
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  font-size: 14px;
}
.search-advanced .search-btn:hover { background: var(--red-ashura); }
@media (max-width: 768px) {
  .search-advanced { padding: 14px 16px; gap: 8px; border-radius: 18px; }
  .search-advanced select { min-width: 80px; padding: 6px 10px; font-size: 12px; flex: 1 1 45%; }
  .search-advanced .search-btn { padding: 7px 20px; font-size: 13px; flex: 1 1 100%; }
}

/* ============================================================ */
/* ===== کاروسل ===== */
/* ============================================================ */
.carousel-section {
  max-width: 1200px;
  margin: 0 auto 50px;
  padding: 0 16px;
}
.carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 10px 4px 30px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--green-jade) var(--green-light);
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--green-jade); border-radius: 10px; }
.carousel-item {
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  scroll-snap-align: start;
  transition: all 0.4s ease;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-light);
  position: relative;
  overflow: hidden;
}
.carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red-ashura));
  opacity: 0;
  transition: opacity 0.4s ease;
}
.carousel-item:hover::before { opacity: 1; }
.carousel-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}
.carousel-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
}
.carousel-item:hover img { border-color: var(--gold); }
.carousel-item .name { font-size: 17px; font-weight: 700; color: var(--text-dark); }
.carousel-item .detail { font-size: 13px; color: var(--text-mid); margin-top: 2px; }
.carousel-item .badge {
  display: inline-block;
  font-size: 11px;
  background: var(--red-ashura);
  color: #fff;
  padding: 2px 14px;
  border-radius: 30px;
  margin-top: 4px;
}
@media (max-width: 768px) {
  .carousel-item { min-width: 140px; padding: 14px; }
  .carousel-item img { height: 100px; }
  .carousel-item .name { font-size: 14px; }
}
@media (max-width: 420px) {
  .carousel-item { min-width: 120px; padding: 10px; }
  .carousel-item img { height: 80px; }
  .carousel-item .name { font-size: 12px; }
  .carousel-item .detail { font-size: 10px; }
}

/* ============================================================ */
/* ===== نقشه ===== */
/* ============================================================ */
.map-section {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.map-placeholder {
  background: linear-gradient(145deg, var(--green-light), var(--white));
  border: 1px solid var(--gray-mid);
  border-radius: 24px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-mid);
  position: relative;
  overflow: hidden;
}
.map-placeholder .map-overlay {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(6px);
  padding: 10px 18px;
  border-radius: 16px;
  font-size: 13px;
  color: var(--text-dark);
  border-right: 3px solid var(--red-ashura);
}
.map-placeholder .map-overlay strong { color: var(--red-ashura); }
@media (max-width: 768px) {
  .map-placeholder { height: 200px; border-radius: 18px; }
  .map-placeholder .map-overlay { font-size: 11px; padding: 8px 14px; bottom: 10px; right: 10px; }
}

/* ============================================================ */
/* ===== یادبودها ===== */
/* ============================================================ */
.memorials {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 0 16px;
}
.memorials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.memorial-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--green-light);
  transition: all 0.3s ease;
  height: 100%;
}
.memorial-item:hover {
  border-color: var(--green-jade);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.memorial-item .icon { font-size: 22px; color: var(--red-ashura); flex-shrink: 0; }
.memorial-item .text { font-size: 14px; color: var(--text-mid); line-height: 1.6; }
.memorial-item .text strong { color: var(--text-dark); }
@media (max-width: 600px) {
  .memorials-grid { grid-template-columns: 1fr; }
}

/* ============================================================ */
/* ===== استایل‌های عمومی ===== */
/* ============================================================ */
.section-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 1px;
}
.section-title span { color: var(--red-ashura); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--green-light); }
::-webkit-scrollbar-thumb { background: var(--green-jade); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--red-ashura); }