:root{--container-max:1100px}

/* Reset & base */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, Segoe UI, Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: #0f172a;
  background: #ffffff;
  line-height: 1.8;
}
button { font-family: inherit; }

/* Containers */
.container { width: min(var(--container-max), 94vw); margin-inline: auto; }

/* Navigation */
.nav { position: sticky; top: 0; background: rgba(255,255,255,0.75); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(0,0,0,0.06); z-index: 50; }

/* سه ستون = چپ (لوگو) | وسط (درباره ما) | راست (اکشن‌ها) */
.nav-inner { 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; 
  align-items: center; 
  padding: 10px 0; 
}

.logo { width: 36px; height: 36px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; justify-self: start; }
.menu { display: none; gap: 18px; }
.menu a { text-decoration: none; color: #0f172a; font-weight: 600; opacity: .85; }
.menu a:hover { opacity: 1; }
.actions { display: flex; gap: 10px; align-items: center; justify-self: end; }
.chip { border: none; background: #10b98120; color: #059669; padding: 8px 12px; border-radius: 999px; font-weight: 700; cursor: pointer; text-decoration: none; }
.chip.ghost { background: transparent; border: 1px solid #e2e8f0; color: #0f172a; }

/* لینک مرکزی درباره ما */
.about-link {
  text-decoration: none;
  font-weight: 700;
  color: #0f172a;
  opacity: .9;
  justify-self: center;
}
.about-link:hover { opacity: 1; }

/* Hero */
.hero { display: grid; place-items: center; min-height: clamp(62vh, 72vh, 86vh); background: radial-gradient(80rem 40rem at 50% -10%, #10b98122, transparent 60%), linear-gradient(#fff, #fff); }
.hero-inner { text-align: center; padding: 56px 0; }
.title { font-size: clamp(36px, 6vw, 68px); line-height: 1.1; margin: 0; font-weight: 800; letter-spacing: -0.5px; }
.title .olive { background: linear-gradient(180deg, #34d399, #0f766e); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 10px 20px rgba(16,185,129,0.25)); }
.subtitle { margin-top: 18px; font-size: clamp(16px, 2.8vw, 22px); color: #475569; }
.cta { margin-top: 26px; }
.btn { display: inline-block; background: #10b981; color: white; padding: 6px 28px; border-radius: 14px; font-weight: 800; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 10px 20px rgba(16,185,129,.25); border: none; cursor: pointer; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(16,185,129,.3); }
.btn.ghost { background: #0f172a; color: #fff; opacity: .85; }
.btn.ghost:hover { opacity: 1; }

/* Sections */
.section { padding: 56px 0 64px; }
.section-title { text-align: center; font-weight: 800; font-size: clamp(22px, 3.5vw, 32px); margin: 0 0 28px; }

/* Services */
.subtitle-card {
  max-width: 800px;
  margin: 30px auto;
  padding: 25px;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
  line-height: 2;
  font-size: 18px;
  font-family: 'Vazir', Tahoma, sans-serif;
  border-right: 5px solid #10B981; /* خط رنگی کناری */
  border-left: 5px solid #10B981; /* خط رنگی کناری */
}
.subtitle-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
  color: #10B981;
  text-align: center;
}
.subtitle-card p {
  margin: 10px 0;
  color: #333;
  padding-right: 10px;
  position: relative;
}

/* Partner grid */
.partners { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.partner-card { background: linear-gradient(180deg, #f8fafc, #ffffff); border: 1px solid #e2e8f0; border-radius: 18px; padding: 26px; display: grid; place-items: center; transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer; }
.partner-card:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(2,6,23,.06); border-color: #cbd5e1; }
.partner-card img { max-width: 200px; width: 80%; height: auto; opacity: .88; pointer-events: none; }

/* Modal */
.backdrop { position: fixed; inset: 0; background: rgba(2,6,23,.45); backdrop-filter: blur(2px); z-index: 90; }
.modal { position: fixed; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: min(720px, 92vw); background: #fff; border-radius: 20px; border: 1px solid #e2e8f0; box-shadow: 0 30px 60px rgba(2,6,23,.25); z-index: 100; padding: 18px 18px 20px; }
.modal-header { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 12px; padding: 8px 8px 0; }
.modal-logo { width: 64px; height: 64px; border-radius: 12px; border: 1px solid #e2e8f0; padding: 8px; background: #f8fafc; }
.modal-title { margin: 0; font-size: 22px; font-weight: 800; }
.modal-body { padding: 14px 8px; }
.kv { display: grid; grid-template-columns: 1fr; gap: 10px; }
.kv > div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; }
.kv dt { color: #475569; font-weight: 700; }
.kv dd { margin: 0; font-weight: 600; color: #0f172a; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 4px; }
.modal-close { position: absolute; top: 8px; inset-inline-end: 8px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.modal-close:hover { background: #f1f5f9; }

/* Footer (Dark) */
.footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.footer p { margin: 0; font-size: 14px; }
.footer .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-info p { margin: 5px 0; }
.footer-social a {
  color: #fff;
  text-decoration: none;
  margin: 0 10px;
}
.footer-social a:hover { color: #00aaff; }

/* Responsive */
@media (min-width: 768px) { 
  .menu { display: flex; } 
  .partners { grid-template-columns: repeat(3, 1fr); } 
  .kv { grid-template-columns: 1fr 1fr; } 
}
@media (min-width: 1024px) { .partners { grid-template-columns: repeat(6, 1fr); } }

/* Utilities */
.nav .container{width:min(var(--container-max),94vw);margin-inline:auto;}
html[lang="en"] body{direction:ltr;}
html[lang="en"] .kv>div{grid-template-columns: 180px 1fr;}


/* About page */
.page-hero {
  background: radial-gradient(80rem 40rem at 50% -10%, #10b98122, transparent 60%), linear-gradient(#fff, #fff);
  padding: 48px 0 24px;
  text-align: center;
}
.page-title { margin: 0; font-weight: 800; font-size: clamp(28px, 4.8vw, 40px); }
.page-subtitle { margin: 10px 0 0; color: #475569; font-size: clamp(16px, 2.6vw, 20px); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.about-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(2,6,23,.05);
}
.about-card h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }

/* nicer lists */
.bullet { margin: 0; padding: 0 18px; }
.check { margin: 0; padding: 0 18px; list-style: none; }
.check li::before { content: "✓ "; font-weight: 800; color: #10b981; }

.kv.compact > div { grid-template-columns: 100px 1fr; }
.social-inline a { text-decoration: none; font-weight: 700; color: #0f172a; opacity: .9; }
.social-inline a:hover { opacity: 1; }

@media (min-width: 900px){
  .about-grid { grid-template-columns: 1fr 1fr; }
}




/* Scroll box for partners */
.partners-scroll {
  max-height: 320px;          /* ارتفاع محدود */
  overflow-y: auto;           /* اسکرول عمودی */
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f9fafb;

  direction: ltr;             /* جهت کلی باکس → اسکرولر سمت راست */
  text-align: right;          /* متن و محتوا همچنان راست‌چین */
}

/* بازگرداندن جهت داخلی به RTL تا محتوا بهم نخوره */
.partners-scroll .partners {
  direction: rtl;
}

/* ظاهر اسکرول‌بار (برای مرورگرهای مدرن) */
.partners-scroll::-webkit-scrollbar {
  width: 8px;
}
.partners-scroll::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 8px;
}
.partners-scroll::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 8px;
}
.partners-scroll::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}
