/* ══════════════════════════════════════════════════════════════
   کوچ — استایل اختصاصی صفحه «خانه» (index.css)
   پیش‌نیاز: assets/css/base.css
   ══════════════════════════════════════════════════════════════ */

/* ═══ هیرو خانه ═══ */
.hhero { position: relative; overflow: hidden; background:
  radial-gradient(600px 380px at 85% -5%, rgba(46,196,182,.16), transparent 62%),
  radial-gradient(700px 460px at 8% 12%, rgba(242,184,75,.14), transparent 60%),
  radial-gradient(520px 520px at 50% 110%, rgba(25,55,109,.1), transparent 60%); }
.hhero-grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: linear-gradient(rgba(11,36,71,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(11,36,71,.055) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
html[data-theme="dark"] .hhero-grid-bg { background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); }
.blob { position: absolute; border-radius: 50%; filter: blur(100px); pointer-events: none; animation: blob-move 12s ease-in-out infinite; }
.blob-a { width: 320px; height: 320px; left: -96px; top: 40px; background: rgba(46,196,182,.15); }
.blob-b { width: 380px; height: 380px; right: -80px; bottom: 0; background: rgba(242,184,75,.15); animation-delay: -6s; }
@keyframes blob-move { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(24px,-20px) scale(1.06); } 66% { transform: translate(-18px,16px) scale(.97); } }

.hhero-inner { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 56px; padding-bottom: 40px; }
.hhero-text h1 { margin-top: 24px; font-size: clamp(2.2rem, 4.6vw, 3.3rem); font-weight: 900; line-height: 1.5; letter-spacing: -.02em; text-wrap: balance; }
.hhero-text h1 .hl { position: relative; display: inline-block; background: linear-gradient(to left, var(--teal-deep), var(--teal), var(--teal-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-theme="dark"] .hhero-text h1 .hl { background: linear-gradient(to left, var(--teal-bright), var(--teal)); -webkit-background-clip: text; background-clip: text; }
.hhero-text h1 .hl svg { position: absolute; bottom: -4px; right: 0; width: 100%; height: 12px; }
.hhero-text > p { margin-top: 22px; max-width: 560px; font-size: 16px; line-height: 2.1; color: var(--muted); }
.hhero-text > p strong { color: var(--ink); }
.hhero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hhero-trust { margin-top: 34px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hhero-trust .trust-rate { font-size: 13px; font-weight: 600; color: var(--muted); line-height: 1.8; }
.hhero-trust .trust-rate .stars { gap: 3px; }
.hhero-trust .trust-rate strong { color: var(--ink); font-weight: 900; margin-right: 6px; }
.hhero-trust .trust-sep { width: 1px; height: 40px; background: var(--line); }
.hhero-trust .trust-note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.hhero-trust .trust-shield { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(16,185,129,.1); color: #059669; }
html[data-theme="dark"] .hhero-trust .trust-shield { color: #34d399; }

.hhero-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.hv-ring { position: absolute; top: -32px; right: -32px; width: 144px; height: 144px; border-radius: 50%; border: 2px dashed rgba(242,184,75,.5); animation: spin 22s linear infinite; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.hv-main { position: relative; overflow: hidden; border-radius: 32px; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(11,36,71,.22); margin: 0; }
.hv-main > img { width: 100%; aspect-ratio: 4/4.1; object-fit: cover; }
.hv-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,36,71,.7), transparent 55%); pointer-events: none; }
.hv-info { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(16px); border-radius: 18px; padding: 14px 16px; }
.hv-info-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold); color: var(--primary); flex-shrink: 0; }
.hv-info-text { line-height: 1.6; }
.hv-info-text strong { display: block; font-size: 14px; font-weight: 900; color: #fff; }
.hv-info-text small { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); }
.hv-live { margin-right: auto; background: rgba(52,211,153,.2); border: 1px solid rgba(110,231,183,.3); color: #a7f3d0; font-size: 12px; font-weight: 900; border-radius: 999px; padding: 6px 12px; }
.hv-card { position: absolute; display: flex; align-items: center; gap: 12px; background: color-mix(in srgb, var(--card) 95%, transparent); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; box-shadow: var(--shadow-lg); backdrop-filter: blur(8px); z-index: 3; }
.hv-card strong { display: block; font-size: 20px; font-weight: 900; line-height: 1.4; }
.hv-card small { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.hv-exp { top: 32px; right: -16px; animation: float-y 6s ease-in-out infinite; }
.hv-ok { bottom: 110px; left: -12px; animation: float-y-soft 5s ease-in-out infinite; animation-delay: -2.5s; }
.hv-card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0; }
.hv-dark { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; }
.hv-teal { background: linear-gradient(135deg, var(--teal), #14a89a); color: #fff; }
.pulse-ring { animation: pulse-ring 2.6s infinite; }
@keyframes float-y { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes float-y-soft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pulse-ring { 0% { box-shadow: 0 0 0 0 rgba(46,196,182,.45); } 70% { box-shadow: 0 0 0 14px rgba(46,196,182,0); } 100% { box-shadow: 0 0 0 0 rgba(46,196,182,0); } }
.hhero-stats-wrap { position: relative; padding-bottom: 24px; }

/* ═══ المان جدید: مسیریاب هوشمند مهاجرت (Quick Route Navigator) ═══ */
.quick-route-section {
  position: relative;
  z-index: 5;
  margin-top: -15px;
  padding-bottom: 48px;
}

.quick-route-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 20px 40px rgba(11, 36, 71, 0.08);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quick-route-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.route-title-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.route-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(46, 196, 182, 0.12);
  color: var(--teal-deep);
}

html[data-theme="dark"] .route-badge {
  color: var(--teal-bright);
}

.quick-route-header h3 {
  font-size: 18px;
  font-weight: 900;
  color: var(--ink);
  margin: 0;
}

.quick-route-header p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
}

.route-selector-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.route-tab {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--bg);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  position: relative;
}

.route-tab:hover, .route-tab.active {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 6%, var(--card));
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(46, 196, 182, 0.18);
}

.flag-img-wrap {
  width: 38px;
  height: 26px;
  border-radius: 6px;
  overflow: hidden;
  display: inline-block;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.08);
}

.flag-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.route-tab .country-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--ink);
}

.route-tab .route-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ═══ تنظیم فواصل بیشتر کادرهای پایین ═══ */
.route-details-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  background: color-mix(in srgb, var(--primary) 3%, var(--card));
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 22px 32px;
  gap: 40px; /* افزایش فاصله چشمگیر کادرها از هم */
}

.route-detail-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

/* خط جداساز عمودی ظریف بین کادرها */
.route-detail-item:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: -20px;
  top: 15%;
  height: 70%;
  width: 1px;
  background-color: var(--line);
}

.detail-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.detail-value {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}

.text-success {
  color: #059669 !important;
}

html[data-theme="dark"] .text-success {
  color: #34d399 !important;
}

.route-cta-btn {
  border-radius: 12px;
  padding: 10px 20px;
  white-space: nowrap;
}

/* ═══ چرا کوچ ═══ */
.why-grid { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 56px; }
.why-media { position: relative; }
.why-main-img { overflow: hidden; border-radius: 30px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 0; }
.why-main-img img { width: 100%; aspect-ratio: 4/4.2; object-fit: cover; transition: transform .7s cubic-bezier(.22,1,.36,1); }
.why-main-img:hover img { transform: scale(1.05); }
.why-badge { position: absolute; bottom: -24px; right: 24px; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px 22px; box-shadow: var(--shadow-lg); }
.why-badge strong { font-size: 32px; font-weight: 900; color: var(--teal-deep); line-height: 1; }
html[data-theme="dark"] .why-badge strong { color: var(--teal-bright); }
.why-badge span { font-size: 12px; font-weight: 800; line-height: 1.8; color: var(--muted); }
.why-text > .sec-title { margin-top: 16px; text-align: right; }
.why-text > p { margin-top: 16px; font-size: 15.5px; line-height: 2.1; color: var(--muted); }

/* ═══ اسلایدر نظرات ═══ */
.tslider { margin-top: 48px; position: relative; }
.tslides { display: flex; overflow: hidden; border-radius: 28px; }
.tslide { flex: 0 0 100%; background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 44px; text-align: center; box-shadow: var(--shadow); transition: transform .6s cubic-bezier(.22,1,.36,1), opacity .6s; margin: 0; }
.tslide blockquote { margin: 20px auto 0; max-width: 640px; font-size: 16.5px; font-weight: 700; line-height: 2.2; text-wrap: balance; }
.tslide figcaption { margin-top: 12px; font-size: 13.5px; font-weight: 800; }
.tslide figcaption span { font-weight: 600; color: var(--muted); }
.testimonial-icon { display: grid; place-items: center; width: 56px; height: 56px; margin-inline: auto; border-radius: 16px; background: linear-gradient(135deg, var(--gold), #e8930c); color: var(--primary); box-shadow: 0 12px 28px rgba(242,184,75,.3); }
.testimonial-icon svg { transform: scaleX(-1); fill: currentColor; }
.tslide .stars-center { margin-top: 16px; }
.tslider-nav { margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.tdots { display: flex; gap: 8px; }
.tdots button { width: 10px; height: 10px; border-radius: 99px; border: none; background: var(--line); transition: all .3s; padding: 0; }
.tdots button.active { width: 32px; background: linear-gradient(to left, var(--teal), var(--teal-deep)); }

/* ═══ ریسپانسِو ═══ */
@media (max-width: 1100px) {
  .hhero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hhero-text > p { max-width: none; }
  .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-main-img img { aspect-ratio: 16/10; }
  .route-selector-tabs { grid-template-columns: repeat(2, 1fr); }
  .route-details-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .route-detail-item:not(:last-of-type)::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hv-exp { right: 8px; }
  .hv-ok { left: 8px; }
  .tslide { padding: 32px 22px; }
  .why-badge { right: 12px; }
  .route-selector-tabs { grid-template-columns: 1fr; }
  .route-details-strip {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px;
  }
  .route-cta-btn { width: 100%; text-align: center; justify-content: center; }
}

/* ═══ Migration Route Popup ═══ */
.route-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.route-modal.active { display: flex; }

.route-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 18, 38, .65);
  backdrop-filter: blur(6px);
}

.route-modal-box {
  position: relative;
  width: min(560px, calc(100% - 32px));
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 28px;
  padding: 32px;
  border: 1px solid var(--line);
  box-shadow: 0 30px 90px rgba(0,0,0,.25);
  z-index: 2;
  animation: routeModalIn .3s ease;
}

@keyframes routeModalIn {
  from { opacity:0; transform:translateY(20px) scale(.96); }
  to { opacity:1; transform:none; }
}

.route-modal-close {
  position:absolute;
  left:18px;
  top:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:rgba(11,36,71,.08);
  font-size:28px;
  cursor:pointer;
}

.route-modal-head {
  display:flex;
  align-items:center;
  gap:16px;
  margin-bottom:22px;
}

.route-modal-head h3 {
  margin:0;
  font-size:24px;
  font-weight:900;
}

.route-modal-flag {
  width:52px;
  height:36px;
  border-radius:8px;
  background-size:cover;
  background-position:center;
}

.route-modal-content {
  line-height:2;
}

.route-modal-info {
  display:grid;
  gap:14px;
}

.route-modal-info div {
  padding:14px;
  background:var(--bg);
  border-radius:14px;
  border:1px solid var(--line);
}

.route-modal-info strong {
  display:block;
  margin-bottom:5px;
}

.route-modal-btn {
  margin-top:24px;
  width:100%;
  justify-content:center;
}
