/* =============================================
   NOVA VAKIL – Global Stylesheet
   Font: Vazirmatn | RTL | Persian
   ============================================= */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0B1F3A;
  --navy-light: #12305a;
  --navy-mid: #0f2848;
  --emerald: #1F7A63;
  --emerald-light: #238f74;
  --gold:   #C6A75C;
  --gold-light: #d4b96e;
  --white:  #ffffff;
  --bg-light: #F6F8FA;
  --text-primary: #0B1F3A;
  --text-secondary: #4A5568;
  --text-muted: #718096;
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(11,31,58,0.06);
  --shadow-md: 0 4px 20px rgba(11,31,58,0.10);
  --shadow-lg: 0 8px 40px rgba(11,31,58,0.14);
  --radius: 12px;
  --transition: 0.4s ease-out;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', sans-serif;
  direction: rtl;
  color: var(--text-primary);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* --- Container --- */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section Padding --- */
.section-pad { padding: 80px 0; }
.bg-light { background: var(--bg-light); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Vazirmatn', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  padding: 12px 28px;
  font-size: 15px;
}
.btn-primary:hover {
  background: var(--emerald-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(31,122,99,0.35);
}

.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-lg { padding: 15px 36px; font-size: 16px; }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  padding: 12px 24px;
  font-size: 15px;
}
.btn-whatsapp:hover {
  background: #20be5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.35);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 13px 28px;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
}

/* --- Section Header --- */
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block;
  background: rgba(31,122,99,0.08);
  color: var(--emerald);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.section-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

/* Page hero — label/title on dark background */
.page-hero .section-label {
  background: rgba(198,167,92,0.15);
  color: var(--gold);
  border: 1px solid rgba(198,167,92,0.3);
}
.page-hero-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.3;
}

/* =============================================
   HEADER — Two-Tier
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  transition: box-shadow 0.3s;
  overflow: visible;
}
.site-header.scrolled { box-shadow: var(--shadow-md); }

/* ── Top Bar ────────────────────────────────── */
.header-topbar {
  background: var(--navy-mid);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  font-size: 12.5px;
}
.topbar-start,
.topbar-end {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.topbar-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.72);
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}
.topbar-link:hover { color: var(--gold-light); }
.topbar-link svg { flex-shrink: 0; opacity: 0.85; }
.topbar-link--wa:hover { color: #5fe89a; }
.topbar-divider {
  width: 1px;
  height: 14px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.topbar-track {
  color: var(--gold-light);
  font-weight: 600;
}
.topbar-track:hover { color: var(--white); }

/* ── Main Nav Row ───────────────────────────── */
.header-main {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  position: relative;
  z-index: 2;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 3;
}
.logo-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 72px;
  overflow: visible;
}
.logo-mark img {
  margin-top: 18px;
  margin-right: 8px;
  margin-bottom: -28px;
  height: 96px;
  width: auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(11,31,58,0.12));
}
.logo-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.25;
  white-space: nowrap;
}
.logo-sub {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 400;
  line-height: 1.35;
  margin-top: 2px;
}

.main-nav { flex: 1; min-width: 0; }
.nav-list {
  display: flex;
  list-style: none;
  gap: 2px;
  justify-content: center;
  align-items: center;
}
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.25s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-item.is-open > .nav-link { color: var(--navy); background: var(--bg-light); }
.nav-arrow { font-size: 10px; transition: transform 0.25s; opacity: 0.6; }
.nav-item:hover .nav-arrow,
.nav-item.is-open .nav-arrow { transform: rotate(180deg); }

/* Simple dropdown (fallback) */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 210px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease-out;
  z-index: 200;
}
.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.2s;
}
.dropdown a:hover { background: var(--bg-light); color: var(--navy); }

/* Mega menu — خدمات */
.has-mega { position: static; }
.mega-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  padding-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.25s ease-out, visibility 0.25s ease-out, transform 0.25s ease-out;
  z-index: 200;
  pointer-events: none;
}
/* پل نامرئی بین لینک و پنل — جلوگیری از بسته شدن ناگهانی */
.mega-dropdown::before {
  content: '';
  display: block;
  height: 18px;
  width: 100%;
}
.nav-item.has-mega:hover .mega-dropdown,
.nav-item.has-mega.is-open .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s;
}
.nav-item.has-mega.is-closing .mega-dropdown {
  transition-delay: 0.28s;
}
.mega-dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1240px;
  margin: 0 auto;
}
.mega-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-light);
  transition: background 0.2s;
}
.mega-col:hover { background: rgba(31,122,99,0.05); }
.mega-cat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.mega-col--legal .mega-cat-head { border-bottom-color: var(--navy); }
.mega-col--immigration .mega-cat-head { border-bottom-color: var(--emerald); }
.mega-col--registration .mega-cat-head { border-bottom-color: var(--gold); }
.mega-col--notary .mega-cat-head { border-bottom-color: #8a6c2e; }
.mega-col--translation .mega-cat-head { border-bottom-color: var(--emerald-light); }
.mega-cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  flex-shrink: 0;
}
.mega-col--legal .mega-cat-icon { background: var(--navy); }
.mega-col--immigration .mega-cat-icon { background: var(--emerald); }
.mega-col--registration .mega-cat-icon { background: linear-gradient(135deg, #8a6c2e, var(--gold)); }
.mega-col--notary .mega-cat-icon { background: linear-gradient(135deg, var(--navy), #8a6c2e); }
.mega-col--translation .mega-cat-icon { background: linear-gradient(135deg, var(--navy), var(--emerald)); }
.mega-cat-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
}
.mega-cat-title:hover { color: var(--emerald); }
.mega-col a:not(.mega-cat-title) {
  display: block;
  padding: 6px 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
  border-radius: 6px;
  line-height: 1.45;
  transition: all 0.18s;
}
.mega-col a:not(.mega-cat-title):hover {
  background: var(--white);
  color: var(--navy);
  padding-right: 12px;
}
.mega-col a:not(.mega-cat-title)::before {
  content: '←';
  font-size: 10px;
  color: var(--emerald);
  margin-left: 4px;
  opacity: 0;
  transition: opacity 0.18s;
}
.mega-col a:not(.mega-cat-title):hover::before { opacity: 1; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-gold-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 8px;
  border: none;
  white-space: nowrap;
  transition: all 0.25s;
  box-shadow: 0 2px 10px rgba(198,167,92,0.35);
}
.btn-gold-cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(198,167,92,0.45);
}

.btn-wa-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #25D366;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1.5px solid #25D366;
  transition: all 0.25s;
}
.btn-wa-header:hover { background: #25D366; color: white; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s;
}
.mobile-menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.mobile-menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-main-height, 72px);
  right: 0; left: 0; bottom: 0;
  background: var(--white);
  z-index: 99;
  overflow-y: auto;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.35s ease-out;
}
.mobile-menu.open { transform: translateX(0); }
.mm-quick {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.mm-quick a {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-light);
  border-radius: 8px;
}
.mm-group {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(15, 35, 65, 0.06);
}
.mm-parent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--navy);
  color: var(--white);
  transition: opacity 0.2s;
}
.mm-parent:hover { opacity: 0.92; color: var(--white); }
.mm-parent-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.mm-parent-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.mm-parent-text strong {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.mm-parent-text small {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
}
.mm-parent-chevron {
  font-size: 22px;
  line-height: 1;
  opacity: 0.7;
  flex-shrink: 0;
}
.mm-children {
  padding: 6px 12px 8px;
  background: var(--bg-light);
}
.mm-children a {
  display: block;
  padding: 11px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(15, 35, 65, 0.08);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.mm-children a:last-child { border-bottom: none; }
.mm-children a:hover {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}
.mm-group--immigration .mm-parent { background: var(--emerald); }
.mm-group--registration .mm-parent { background: linear-gradient(135deg, #8a6f2e 0%, var(--gold) 100%); color: var(--navy); }
.mm-group--registration .mm-parent:hover { color: var(--navy); }
.mm-group--registration .mm-parent-icon { background: rgba(15, 35, 65, 0.12); }
.mm-group--notary .mm-parent { background: linear-gradient(135deg, var(--navy) 0%, #2a4a6e 100%); }
.mm-group--translation .mm-parent { background: linear-gradient(135deg, var(--emerald) 0%, #1a6b52 100%); }
.mm-group.is-open .mm-parent-chevron { transform: rotate(-90deg); }
.mm-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.mm-actions .btn { justify-content: center; width: 100%; }
.mm-topbar-mobile {
  display: none;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--navy-mid);
  border-radius: 10px;
}
.mm-topbar-mobile a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  padding: 4px 0;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #122d50 60%, #0d2340 100%);
  padding: 80px 0 90px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; left: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(31,122,99,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -100px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(198,167,92,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(198,167,92,0.15);
  color: var(--gold);
  border: 1px solid rgba(198,167,92,0.3);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 18px;
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.72);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { text-align: center; padding: 0 24px; }
.stat:first-child { padding-right: 0; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Hero Visual */
.hero-visual { position: relative; }

.hero-card-main {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 36px;
  position: relative;
}
.hc-icon {
  font-size: 40px;
  margin-bottom: 16px;
}
.hero-card-main h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.hero-card-main p {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 20px;
}
.hc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hc-tags span {
  background: rgba(31,122,99,0.2);
  color: #6edfc5;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 6px;
}

.hero-card-floating {
  position: absolute;
  background: var(--white);
  border-radius: 10px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}
.fc1 { top: -18px; left: 20px; animation-delay: 0s; }
.fc2 { bottom: -18px; right: 20px; animation-delay: 1.5s; }
.fc-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fc-dot.emerald { background: var(--emerald); }
.fc-dot.gold { background: var(--gold); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* =============================================
   SERVICES
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: block;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px;
  height: 100%;
  background: var(--border);
  transition: background 0.3s;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}
.service-card:nth-child(1):hover::before { background: var(--navy); }
.service-card:nth-child(2):hover::before { background: var(--emerald); }
.service-card:nth-child(3):hover::before { background: var(--gold); }

.sc-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.sc-icon.navy { background: rgba(11,31,58,0.08); color: var(--navy); }
.sc-icon.emerald { background: rgba(31,122,99,0.1); color: var(--emerald); }
.sc-icon.gold { background: rgba(198,167,92,0.12); color: #8a6c2e; }

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.sc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.sc-links span {
  background: var(--bg-light);
  color: var(--text-muted);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 6px;
}
.sc-arrow {
  display: block;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.25s;
}
.service-card:hover .sc-arrow {
  color: var(--emerald);
  transform: translateX(-4px);
}

/* =============================================
   WHY US
   ============================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.why-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.why-icon {
  width: 48px; height: 48px;
  background: rgba(31,122,99,0.08);
  color: var(--emerald);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.why-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* =============================================
   PROCESS
   ============================================= */
.process-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
}

.process-step {
  flex: 1;
  text-align: center;
  padding: 0 16px;
}
.ps-number {
  width: 52px; height: 52px;
  background: var(--navy);
  color: var(--gold);
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}
.ps-content h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.ps-content p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.process-connector {
  flex-shrink: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(to left, var(--emerald), var(--navy));
  margin-top: 25px;
  opacity: 0.25;
}

/* =============================================
   CTA SECTION
   ============================================= */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #122d50 100%);
  border-radius: 20px;
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(198,167,92,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}
.cta-box p {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  margin-bottom: 32px;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: linear-gradient(180deg, var(--navy-light) 0%, var(--navy) 100%);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Row 1: Four equal-height panels --- */
.footer-row--primary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.footer-panel__action {
  margin-top: auto;
  padding-top: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}
.footer-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
}
.footer-logo-mark img {
  width: auto;
  height: 56px;
  object-fit: contain;
  object-position: center bottom;
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.footer-logo-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}
.footer-logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  line-height: 1.4;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.8;
  margin: 14px 0 0;
  color: rgba(255,255,255,0.55);
  flex: 1;
}

.footer-panel--contact .site-contact-block {
  margin: 0;
  flex: 1;
}

.footer-panel--contact .site-contact-foot-title {
  margin-bottom: 12px;
}

.footer-panel--links {
  gap: 0;
}
.footer-links-group {
  flex: 1;
}
.footer-links-group--hubs {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #25D366;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 11px 20px;
  border-radius: 8px;
  border: none;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.footer-wa:hover {
  background: #1fb855;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  color: var(--white);
}

.footer-panel--cta .footer-cta-text {
  flex: 1;
}

.footer-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 20px;
  align-content: start;
}
.footer-col-toggle {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0;
  margin: 0 0 14px;
  cursor: default;
  text-align: right;
  font-family: inherit;
}
.footer-col-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.footer-col-title::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 1px;
  opacity: 0.75;
}
.footer-col-chevron {
  display: none;
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, padding-inline-start 0.2s;
  display: inline-block;
}
.footer-col ul a:hover {
  color: var(--gold-light);
  padding-inline-start: 4px;
}

/* --- Row 2: Service columns --- */
.footer-row--secondary {
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-row--secondary .footer-services {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px 24px;
}

.footer-col-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col-heading::after {
  content: '';
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  margin-top: 8px;
  border-radius: 1px;
  opacity: 0.75;
}

.footer-link-list { list-style: none; }
.footer-link-list li { margin-bottom: 10px; }
.footer-link-list a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-link-list a:hover { color: var(--gold-light); }

.footer-link-list--hubs a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-link-list--hubs a::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--emerald);
  opacity: 0.7;
  flex-shrink: 0;
}

.footer-cta-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(198,167,92,0.12);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.footer-cta-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.4;
}
.footer-cta-text {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-bottom: 0;
}
.footer-panel--cta .footer-cta-text {
  margin-top: 8px;
  margin-bottom: 0;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: var(--gold);
  color: var(--navy);
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 8px;
  transition: background 0.25s, transform 0.2s;
  box-shadow: 0 2px 10px rgba(198,167,92,0.25);
}
.footer-cta-btn:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  color: var(--navy);
}

.footer-bottom {
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-disclaimer {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  max-width: 420px;
  text-align: left;
  line-height: 1.6;
}

/* Legacy aliases (other pages may reference) */
.footer-brand .logo-name { color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.4); }
.footer-brand .logo-mark { background: rgba(255,255,255,0.08); }

/* --- Contact Block --- */
.site-contact-block {
  margin: 20px 0 22px;
  width: 100%;
  max-width: 100%;
}

.site-contact-block--compact {
  min-width: 0;
}

.site-contact-foot-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 14px;
}

.site-contact-head {
  margin-bottom: 14px;
  text-align: right;
}

.site-contact-badge {
  display: inline-block;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.site-contact-block--dark .site-contact-badge {
  background: rgba(31,122,99,0.15);
  color: #5dcea8;
}

.site-contact-block--light .site-contact-badge {
  background: rgba(31,122,99,0.1);
  color: var(--emerald);
}

.site-contact-title {
  font-family: 'Vazirmatn', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.site-contact-block--dark .site-contact-title { color: var(--white); }
.site-contact-block--light .site-contact-title { color: var(--navy); }

.site-contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  width: 100%;
}

/* Grid layout — صفحات تماس/مشاوره */
.site-contact-block--grid .site-contact-list {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.site-contact-block--grid .site-contact-line--address {
  grid-column: 1 / -1;
}

.site-contact-line {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.site-contact-block--dark .site-contact-line {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.site-contact-block--light .site-contact-line {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

a.site-contact-line:hover {
  transform: translateX(-3px);
}

.site-contact-block--dark a.site-contact-line:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.14);
}

.site-contact-block--light a.site-contact-line:hover {
  border-color: rgba(31,122,99,0.28);
  box-shadow: var(--shadow-md);
}

.site-contact-line--address {
  cursor: default;
  align-items: flex-start;
}

.site-contact-line--address:hover {
  transform: none;
}

.site-contact-line--address .scl-icon {
  margin-top: 1px;
}

.scl-text--address {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
  text-align: left;
  unicode-bidi: plaintext;
}

.site-contact-block--dark .scl-text--address { color: rgba(255,255,255,0.75); }
.site-contact-block--light .scl-text--address { color: var(--text-secondary); }

.scl-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.site-contact-line--landline .scl-icon {
  background: rgba(11,31,58,0.14);
  color: #8fa8c8;
}
.site-contact-block--light .site-contact-line--landline .scl-icon {
  background: rgba(11,31,58,0.07);
  color: var(--navy);
}

.site-contact-line--mobile .scl-icon {
  background: rgba(31,122,99,0.16);
  color: #5dcea8;
}
.site-contact-block--light .site-contact-line--mobile .scl-icon {
  background: rgba(31,122,99,0.1);
  color: var(--emerald);
}

.site-contact-line--wa .scl-icon {
  background: rgba(37,211,102,0.16);
  color: #25D366;
}
.site-contact-block--light .site-contact-line--wa .scl-icon {
  background: rgba(37,211,102,0.1);
  color: #1da851;
}

.site-contact-line--email .scl-icon {
  background: rgba(198,167,92,0.16);
  color: var(--gold-light);
}
.site-contact-block--light .site-contact-line--email .scl-icon {
  background: rgba(198,167,92,0.12);
  color: #a8873a;
}

.site-contact-line--address .scl-icon {
  background: rgba(198,167,92,0.12);
  color: var(--gold);
}

.scl-text {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  unicode-bidi: plaintext;
}

.site-contact-block--dark .scl-text { color: rgba(255,255,255,0.9); }
.site-contact-block--light .scl-text { color: var(--navy); }

.scl-text--wa { color: #25D366 !important; }
.site-contact-block--light .scl-text--wa { color: #1da851 !important; }

/* فوتر — هر آیتم یک خط جدا */
.site-contact-block--compact .site-contact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  width: 100%;
}

.site-contact-block--compact .site-contact-line {
  display: flex;
  width: 100%;
  padding: 9px 0;
  background: none;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  gap: 10px;
}

.site-contact-block--compact .site-contact-line--address {
  align-items: flex-start;
}

.site-contact-block--compact .site-contact-line--address .scl-icon {
  margin-top: 2px;
}

.site-contact-block--compact .site-contact-line:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.site-contact-block--compact a.site-contact-line:hover {
  transform: none;
  background: none;
}

.site-contact-block--compact a.site-contact-line:hover .scl-text {
  color: var(--gold);
}

.site-contact-block--compact .scl-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

@media (max-width: 480px) {
  .site-contact-block--grid .site-contact-list {
    grid-template-columns: 1fr;
  }
}

/* Footer responsive */
@media (max-width: 1200px) {
  .footer-row--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .footer-services,
  .footer-row--secondary .footer-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
  }
}

@media (max-width: 900px) {
  .footer-services,
  .footer-row--secondary .footer-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-footer { padding: 40px 0 0; }

  .footer-row--primary {
    grid-template-columns: 1fr;
    padding-bottom: 32px;
    gap: 12px;
  }

  .footer-panel {
    padding: 18px 16px;
  }

  .footer-links-group--hubs {
    margin-top: 14px;
    padding-top: 14px;
  }

  .footer-services,
  .footer-row--secondary .footer-services {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-row--secondary {
    padding: 0 0 8px;
  }

  .footer-col--accordion {
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-col--accordion:last-child {
    border-bottom: none;
  }

  .footer-col-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 16px 0;
    margin: 0;
    cursor: pointer;
  }
  .footer-col-title::after { display: none; }
  .footer-col-chevron {
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-top: 2px;
  }
  .footer-col--accordion.is-open .footer-col-chevron {
    transform: rotate(-135deg);
    margin-top: 6px;
  }

  .footer-col--accordion .footer-col-body {
    display: none;
    padding: 0 0 16px;
  }
  .footer-col--accordion.is-open .footer-col-body {
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    padding: 20px 0 24px;
  }
  .footer-disclaimer {
    text-align: center;
    max-width: none;
  }
}

/* =============================================
   REVEAL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .mega-dropdown-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
  .header-topbar { display: none; }
  .mega-dropdown { display: none; }
  .header-actions { display: none; }
  .main-nav { display: none; }
  .header-inner {
    justify-content: space-between;
    width: 100%;
  }
  .mobile-menu-btn { display: flex; }
  .mobile-menu { display: block; }
  .mm-topbar-mobile { display: flex; }
  .mm-children { display: none; }
  .mm-group.is-open .mm-children { display: block; }

  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .services-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-direction: column; align-items: center; gap: 0; }
  .process-step { width: 100%; max-width: 380px; padding: 0 0 32px; }
  .process-connector { width: 2px; height: 32px; margin: 0; }
}

@media (max-width: 768px) {
  .logo-mark { height: 64px; }
  .logo-mark img { height: 72px; margin-top: 10px; margin-bottom: -12px; }
  .header-inner { min-height: 64px; gap: 12px; }

  .hero { padding: 56px 0 64px; }
  .hero-stats { justify-content: center; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .cta-box { padding: 40px 24px; }
  .section-pad { padding: 56px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .btn, .service-card, .why-card, .hero-card-floating {
    animation: none !important;
    transition: none !important;
  }
}
