
/* Base */
:root{
  --primary:#1268b3;
  --primary-2:#005baa;
  --bg:#ffffff;
  --text:#1b2633;
  --muted:#6b7a90;
  --section:#f7f9fc;
  --radius:18px;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: "Vazirmatn", "IRANSansX", Tahoma, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.8;
  direction:rtl;
}
a{color:var(--primary-2);text-decoration:none}
img{max-width:100%;height:auto;display:block}
.container{width:min(1200px, 92%);margin-inline:auto}
.btn{
  display:inline-block;padding:.9rem 1.2rem;border-radius:999px;
  box-shadow:var(--shadow); background:linear-gradient(90deg,var(--primary),var(--primary-2));
  color:#fff;font-weight:700; border:0; cursor:pointer; transition:transform .2s ease, box-shadow .2s ease;
}
.btn:hover{transform:translateY(-2px); box-shadow:0 14px 36px rgba(0,0,0,.12)}
.btn-outline{background:#fff;color:var(--primary-2);border:2px solid var(--primary-2);box-shadow:none}
.chips{display:flex;gap:.5rem;flex-wrap:wrap}
.chip{background:#eaf2fb;color:var(--primary-2);padding:.35rem .7rem;border-radius:999px;font-size:.85rem}
/* Header */
header{
  position:sticky;top:0;z-index:999;background:#fff;border-bottom:1px solid #edf2f7
}
.nav{display:flex;align-items:center;justify-content:space-between;padding:.6rem 0}
.brand{display:flex;align-items:center;gap:.7rem}
.brand img{width:44px;height:44px}
.brand .title{font-weight:800;font-size:1.1rem;color:var(--primary-2)}
.nav ul{display:flex;gap:1rem;list-style:none;margin:0;padding:0}
.nav a{padding:.6rem .9rem;border-radius:10px;color:#264b6b;font-weight:600}
.nav a:hover{background:#f1f6fc}
/* Hero */
.hero{
  display:grid;grid-template-columns:1.25fr .75fr;align-items:center;gap:2rem;
  padding:clamp(2rem, 8vw, 6rem) 0;background:linear-gradient(180deg,#ffffff 0%, #f7fbff 100%)
}
.hero h1{font-size:clamp(1.8rem, 4vw, 3rem);margin:.4rem 0 .6rem;color:#0e3e6c}
.hero p{color:var(--muted);margin:0 0 1.2rem}
.hero-card{
  background:#fff;border-radius:var(--radius);padding:1.4rem;box-shadow:var(--shadow);
  border:1px solid #eef3f9
}
.hero-list{display:grid;gap:.8rem;margin-top:1rem}
.hero-list li{display:flex;gap:.6rem;align-items:flex-start;list-style:none}
.badge{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;
  background:linear-gradient(90deg,var(--primary),var(--primary-2));color:#fff;font-weight:800}
/* Sections */
section{padding:clamp(2rem, 6vw, 4.5rem) 0}
.section-muted{background:var(--section)}
.section-title{font-size:1.6rem;margin:.2rem 0 1rem;color:#0e3e6c}
.grid{display:grid;gap:1.2rem;grid-template-columns:repeat(3,1fr)}
.card{
  background:#fff;border-radius:var(--radius);padding:1.2rem;box-shadow:var(--shadow);
  border:1px solid #eaf0f7; transition:transform .25s ease, box-shadow .25s ease
}
.card:hover{transform:translateY(-4px); box-shadow:0 16px 40px rgba(0,0,0,.12)}
.card h3{margin:.2rem 0 .6rem;color:#0e3e6c}
.card p{margin:0;color:#44576c}
.icon{
  width:46px;height:46px;border-radius:12px;display:grid;place-items:center;margin-bottom:.6rem;
  background:linear-gradient(90deg,var(--primary),var(--primary-2)); color:#fff; font-weight:800
}
/* Logos */
.logo-row{display:grid;grid-template-columns:repeat(5,1fr);gap:1rem;align-items:center}
.logo-cell{background:#fff;border:1px dashed #cfe0f4;border-radius:14px;padding:1rem;display:grid;place-items:center}
/* Contact */
.contact-wrap{display:grid;grid-template-columns:1fr 1fr;gap:1.5rem}
.form-group{display:grid;gap:.4rem;margin:.6rem 0}
input, textarea{
  width:100%;padding:.9rem;border-radius:12px;border:1px solid #dbe6f6;background:#fff;outline:none
}
textarea{min-height:140px;resize:vertical}
.info-box{display:grid;gap:.5rem}
.info-box .row{display:flex;align-items:center;gap:.6rem}
.tag{background:#ecf3ff;color:#1f4e7a;padding:.2rem .5rem;border-radius:8px;font-size:.8rem}
/* Footer */
footer{background:#0b2d50;color:#dfe9f6;padding:2rem 0;margin-top:2rem}
footer .cols{display:grid;grid-template-columns:2fr 1fr 1fr;gap:1.5rem}
footer a{color:#cfe3ff}
.copy{margin-top:1rem;font-size:.9rem;color:#98b5d6}
/* RTL Helpers */
.section-lead{color:#274c77}
/* Responsive */
@media (max-width: 980px){
 .hero{grid-template-columns:1fr}
 .grid{grid-template-columns:1fr 1fr}
 .logo-row{grid-template-columns:repeat(3,1fr)}
 .contact-wrap{grid-template-columns:1fr}
 footer .cols{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
 .grid{grid-template-columns:1fr}
 .nav ul{display:none}
 .logo-row{grid-template-columns:repeat(2,1fr)}
}
/* Animations */
.reveal{opacity:0; transform:translateY(18px); transition: all .6s ease}
.reveal.visible{opacity:1; transform:none}
.pulse{animation:pulse 2.4s infinite}
@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.03)}100%{transform:scale(1)}}

/* ---- Pro Mobile Drawer ---- */
.mobile-overlay{
  position:fixed; inset:0; background:rgba(16,33,54,.45);
  opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:998;
}
.mobile-overlay.active{opacity:1; pointer-events:auto}

.mobile-drawer{
  position:fixed; top:0; bottom:0; right:0; width:min(86vw, 360px);
  background:#ffffff; box-shadow: -24px 0 48px rgba(0,0,0,.18);
  transform:translateX(100%); transition:transform .3s ease; z-index:9999;
  display:flex; flex-direction:column; padding:1rem;
  border-left:1px solid #e5eef8;
}
.mobile-drawer.open{ transform:none }
.mobile-drawer header{display:flex; align-items:center; justify-content:space-between; margin-bottom:.5rem}
.mobile-drawer nav ul{ list-style:none; padding:0; margin:0; display:grid; gap:.2rem }
.mobile-drawer nav a{ display:flex; align-items:center; gap:.6rem; padding:.9rem 1rem;
  border-radius:12px; color:#12395f; font-weight:700 }
.mobile-drawer nav a:active, .mobile-drawer nav a:hover{ background:#f0f6ff }
.mobile-drawer .cta{ margin-top:auto; display:grid; gap:.6rem }

/* Burger button */
.burger{
  width:44px; height:44px; border:0; background:#fff; border-radius:12px;
  display:none; align-items:center; justify-content:center;
  box-shadow: var(--shadow); cursor:pointer
}
.burger svg{ width:22px; height:22px }
.burger[aria-expanded="true"]{background:#f1f6fc}

/* Desktop Nav polish */
.nav ul li a{white-space:nowrap}
.nav .cta-inline{display:flex; gap:.6rem; align-items:center}

/* Header shadow on scroll */
header.scrolled{box-shadow:0 8px 24px rgba(0,0,0,.06)}

/* Accessibility focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{
  outline:3px solid #b9d6ff; outline-offset:2px
}

/* Responsive adjustments */
@media(max-width:980px){
  .burger{display:flex}
  .nav ul{display:none}
  .nav .cta-inline{display:none}
}
