/* =========================================================
   تسکین — Design tokens
   ink   : #12333A  deep teal-navy (headers, footer, dark bands)
   paper : #F6F5F1  warm off-white background
   accent: #E8583A  pulse coral (primary CTA / signature line)
   gold  : #D9A441  secondary accent
   sage  : #5E8B7E  supportive / success tone
========================================================= */
:root{
  --ink:        #12333A;
  --ink-2:      #0C262B;
  --paper:      #F6F5F1;
  --paper-alt:  #ECEAE2;
  --card:       #FFFFFF;
  --accent:     #E8583A;
  --accent-dark:#C8462B;
  --gold:       #D9A441;
  --sage:       #5E8B7E;
  --text:       #1C2B2E;
  --text-muted: #5B6B6C;
  --line:       #DEDBD0;
  --radius:     16px;
  --radius-sm:  10px;
  --shadow:     0 12px 30px -14px rgba(18,51,58,.28);
  --ff:         'Vazirmatn', Tahoma, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--ff);
  background:var(--paper);
  color:var(--text);
  line-height:1.8;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul,ol{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ margin:0; font-weight:800; color:var(--ink); }
p{ margin:0; }
button{ font-family:var(--ff); cursor:pointer; }

:focus-visible{
  outline:3px solid var(--gold);
  outline-offset:3px;
  border-radius:4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 24px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 22px;
  border-radius:999px;
  font-weight:700;
  font-size:.95rem;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border:2px solid transparent;
  white-space:nowrap;
}
.btn-solid{ background:var(--accent); color:#fff; }
.btn-solid:hover{ background:var(--accent-dark); transform:translateY(-2px); box-shadow:0 10px 20px -8px rgba(232,88,58,.55); }
.btn-outline{ border-color:var(--ink); color:var(--ink); background:transparent; }
.btn-outline:hover{ background:var(--ink); color:#fff; transform:translateY(-2px); }
.btn-ghost{ color:var(--ink); font-weight:700; padding:10px 14px; }
.btn-ghost:hover{ color:var(--accent); }
.btn-lg{ padding:15px 30px; font-size:1rem; }
.btn-block{ width:100%; }

/* ---------- Top bar ---------- */
.topbar{ background:var(--ink-2); color:#DCE7E5; font-size:.82rem; }
.topbar-inner{
  display:flex; align-items:center; gap:12px;
  padding:9px 24px; overflow:hidden; white-space:nowrap;
}
.topbar-pulse{
  width:8px; height:8px; border-radius:50%; background:var(--accent); flex:0 0 auto;
  box-shadow:0 0 0 0 rgba(232,88,58,.6);
  animation:pulseDot 2s ease-out infinite;
}
@keyframes pulseDot{
  0%{ box-shadow:0 0 0 0 rgba(232,88,58,.55); }
  70%{ box-shadow:0 0 0 8px rgba(232,88,58,0); }
  100%{ box-shadow:0 0 0 0 rgba(232,88,58,0); }
}
.topbar-text{ overflow:hidden; text-overflow:ellipsis; flex:1; }
.topbar-text strong{ color:#fff; }
.topbar-sep{ margin:0 8px; opacity:.5; }
.topbar-cta{ color:var(--gold); font-weight:700; flex:0 0 auto; display:none; }
@media (min-width:720px){ .topbar-cta{ display:inline-block; } }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,245,241,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 24px; gap:16px;
}
.logo{ display:flex; align-items:center; gap:10px; color:var(--ink); }
.logo-mark{ color:var(--accent); display:flex; }
.logo-text{ display:flex; flex-direction:column; font-weight:900; font-size:1.35rem; line-height:1.1; }
.logo-text small{ font-weight:500; font-size:.65rem; color:var(--text-muted); letter-spacing:.03em; }
.logo-text--light{ color:#fff; font-size:1.6rem; }
.logo-mark{ display:flex; align-items:center; width:38px; height:38px; border-radius:10px; overflow:hidden; flex:0 0 auto; }
.logo-mark img{ width:100%; height:100%; object-fit:cover; }
.footer-logo{ display:flex; align-items:center; gap:10px; margin-bottom:6px; }
.footer-logo img{ width:34px; height:34px; border-radius:8px; object-fit:cover; }

.main-nav{ display:none; align-items:center; gap:28px; font-weight:600; font-size:.95rem; }
.main-nav a{ position:relative; padding:4px 0; color:var(--ink); }
.main-nav a::after{
  content:''; position:absolute; right:0; bottom:-2px; width:0; height:2px; background:var(--accent);
  transition:width .2s ease;
}
.main-nav a:hover::after{ width:100%; }
@media (min-width:960px){ .main-nav{ display:flex; } }

.header-actions{ display:flex; align-items:center; gap:10px; }
.header-actions .btn-ghost{ display:none; }
@media (min-width:640px){ .header-actions .btn-ghost{ display:inline-flex; } }

.nav-toggle{
  display:flex; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:transparent; border:1px solid var(--line); border-radius:8px;
}
.nav-toggle span{ width:18px; height:2px; background:var(--ink); margin:0 auto; }
@media (min-width:960px){ .nav-toggle{ display:none; } }

.main-nav.open{
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
  position:absolute; top:100%; right:0; left:0; background:var(--paper);
  padding:18px 24px; border-bottom:1px solid var(--line); box-shadow:var(--shadow);
}

/* ---------- Section basics ---------- */
.section{ padding:76px 0; }
.section-head{ max-width:640px; margin-bottom:44px; }
.section-head--split{
  display:flex; flex-wrap:wrap; gap:16px; align-items:flex-end; justify-content:space-between; max-width:none;
}
.eyebrow{
  color:var(--accent); font-weight:700; font-size:.85rem; letter-spacing:.02em;
  margin-bottom:10px; display:flex; align-items:center; gap:8px;
}
.eyebrow::before{ content:''; width:22px; height:2px; background:var(--accent); display:inline-block; }
.section-head h2{ font-size:clamp(1.5rem,3vw,2.15rem); }
.section-lead{ margin-top:12px; color:var(--text-muted); font-size:1.02rem; }

/* ---------- Hero ---------- */
.hero{ padding:56px 0 40px; position:relative; overflow:hidden; }
.hero-inner{
  display:grid; grid-template-columns:1fr; gap:44px; align-items:center;
}
@media (min-width:960px){ .hero-inner{ grid-template-columns:1.05fr .95fr; } }

.hero-copy h1{
  font-size:clamp(2rem,4.4vw,3.1rem); line-height:1.28; margin:14px 0 20px;
}
.accent-underline{ position:relative; color:var(--accent); }
.accent-underline::after{
  content:''; position:absolute; right:0; bottom:2px; width:100%; height:10px;
  background:rgba(232,88,58,.18); z-index:-1;
}
.hero-lead{ color:var(--text-muted); font-size:1.08rem; max-width:52ch; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin:30px 0 34px; }

.hero-trust{ display:flex; gap:30px; flex-wrap:wrap; }
.hero-trust div{ display:flex; flex-direction:column; }
.hero-trust strong{ font-size:1.35rem; color:var(--ink); font-weight:900; }
.hero-trust span{ font-size:.82rem; color:var(--text-muted); }

.hero-visual{ position:relative; min-height:260px; }
.hero-photo{
  position:relative; border-radius:var(--radius); overflow:hidden; box-shadow:var(--shadow);
  aspect-ratio:4/3; margin-bottom:26px;
}
.hero-photo img{ width:100%; height:100%; object-fit:cover; }
.pulse-svg{ width:100%; height:auto; overflow:visible; display:block; }
.pulse-line{
  stroke:var(--accent); stroke-width:3; stroke-linecap:round; stroke-linejoin:round;
  stroke-dasharray:1400; stroke-dashoffset:1400;
  animation:drawPulse 2.6s ease-out forwards .3s;
}
.pulse-dot{ fill:var(--accent); opacity:0; animation:dotIn .4s ease forwards 2.7s; }
@keyframes drawPulse{ to{ stroke-dashoffset:0; } }
@keyframes dotIn{ to{ opacity:1; } }

.ping-card{
  position:absolute; display:flex; align-items:center; gap:12px;
  background:var(--card); border-radius:var(--radius-sm); box-shadow:var(--shadow);
  padding:12px 16px; max-width:230px; opacity:0; animation:cardIn .5s ease forwards;
}
.ping-card--top{ top:0; left:0; animation-delay:.4s; }
.ping-card--bottom{ bottom:6px; right:6px; animation-delay:1s; }
@keyframes cardIn{ from{ opacity:0; transform:translateY(10px); } to{ opacity:1; transform:translateY(0); } }
.ping-icon{ font-size:1.4rem; }
.ping-card strong{ display:block; font-size:.85rem; color:var(--ink); }
.ping-card small{ color:var(--text-muted); font-size:.76rem; }

/* ---------- Service cards (3-strip) ---------- */
.services-strip{ background:var(--paper); }
.grid-3{ display:grid; grid-template-columns:1fr; gap:22px; }
@media (min-width:760px){ .grid-3{ grid-template-columns:repeat(3,1fr); } }

.service-card{
  background:var(--card); border-radius:var(--radius); overflow:hidden;
  box-shadow:var(--shadow); border-top:4px solid var(--sage);
  transition:transform .2s ease, box-shadow .2s ease;
}
.service-card:hover{ transform:translateY(-6px); box-shadow:0 20px 34px -16px rgba(18,51,58,.35); }
.sc-1{ border-top-color:var(--accent); }
.sc-2{ border-top-color:var(--gold); }
.sc-3{ border-top-color:var(--sage); }
.service-img{ aspect-ratio:16/10; overflow:hidden; background:var(--paper-alt); }
.service-img img{ width:100%; height:100%; object-fit:cover; }
.service-card > .service-icon,
.service-card > h3,
.service-card > p{ padding-inline:26px; }
.service-icon{ font-size:2rem; display:block; margin-top:22px; }
.service-card h3{ margin:14px 0 10px; font-size:1.15rem; }
.service-card p{ color:var(--text-muted); font-size:.95rem; }
.card-link{ display:inline-block; margin:16px 26px 26px; font-weight:700; color:var(--accent); }

/* ---------- How it works ---------- */
.how-it-works{ background:var(--paper-alt); }
.steps{
  display:grid; grid-template-columns:1fr; gap:26px; counter-reset:step;
}
@media (min-width:760px){ .steps{ grid-template-columns:repeat(4,1fr); } }
.step{ position:relative; padding-top:8px; }
.step-num{
  display:inline-flex; align-items:center; justify-content:center;
  width:44px; height:44px; border-radius:50%; background:var(--ink); color:#fff;
  font-weight:800; font-size:1.05rem; margin-bottom:16px;
}
.step h3{ font-size:1.05rem; margin-bottom:6px; }
.step p{ color:var(--text-muted); font-size:.92rem; }

/* ---------- All services mini grid ---------- */
.all-services{ background:var(--paper); }
.grid-5{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
@media (min-width:640px){ .grid-5{ grid-template-columns:repeat(3,1fr); } }
@media (min-width:960px){ .grid-5{ grid-template-columns:repeat(5,1fr); } }
.mini-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:22px 16px; text-align:center; transition:border-color .2s ease, transform .2s ease;
}
.mini-card:hover{ border-color:var(--accent); transform:translateY(-4px); }
.mini-icon{ font-size:1.7rem; display:block; margin-bottom:10px; }
.mini-card h4{ font-size:.88rem; font-weight:700; color:var(--ink); }

/* ---------- Dark band ---------- */
.dark-band{ background:var(--ink); color:#DCE7E5; }
.dark-band-head{ max-width:640px; margin-bottom:44px; }
.dark-band-head h2{ color:#fff; font-size:clamp(1.5rem,3vw,2.1rem); }
.dark-band-head p{ color:#AFC3C0; margin-top:12px; }

.grid-4{ display:grid; grid-template-columns:1fr; gap:20px; }
@media (min-width:640px){ .grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (min-width:1024px){ .grid-4{ grid-template-columns:repeat(4,1fr); } }

.stat-card{
  background:#173D45; border-radius:var(--radius); padding:26px 22px;
  border-top:4px solid var(--sage);
}
.stat-card--orange{ border-top-color:var(--accent); }
.stat-card--green{ border-top-color:#7FBF9E; }
.stat-card--navy{ border-top-color:var(--gold); }
.stat-card--red{ border-top-color:#E8583A; }
.stat-icon{ font-size:1.8rem; display:block; margin-bottom:10px; font-weight:800; }
span.stat-icon{ font-variant-numeric:tabular-nums; }
.stat-card h3{ color:#fff; font-size:1.05rem; margin-bottom:8px; }
.stat-card p{ color:#AFC3C0; font-size:.88rem; }
.stat-card a{ display:inline-block; margin-top:14px; color:var(--gold); font-weight:700; font-size:.9rem; }

/* ---------- Blog ---------- */
.blog{ background:var(--paper); }
.live-badge{
  display:inline-flex; align-items:center; gap:8px; font-size:.82rem; color:var(--text-muted); font-weight:600;
}
.live-badge .dot{
  width:8px; height:8px; border-radius:50%; background:var(--sage);
  box-shadow:0 0 0 0 rgba(94,139,126,.5); animation:pulseDot 2s ease-out infinite;
}
.blog-grid{ margin-top:8px; }
.post-card{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius-sm);
  overflow:hidden; display:flex; flex-direction:column; gap:10px; min-height:170px;
  transition:box-shadow .2s ease, transform .2s ease;
}
.post-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow); }
.post-img{ aspect-ratio:16/10; overflow:hidden; background:var(--paper-alt); }
.post-img img{ width:100%; height:100%; object-fit:cover; }
.post-card > .post-cat,
.post-card > h3,
.post-card > time{ margin-inline:18px; }
.post-cat{
  align-self:flex-start; background:rgba(232,88,58,.1); color:var(--accent-dark);
  font-size:.75rem; font-weight:700; padding:4px 10px; border-radius:999px; margin-top:16px;
}
.post-card h3{ font-size:1rem; line-height:1.6; flex:1; }
.post-card time{ color:var(--text-muted); font-size:.82rem; margin-bottom:18px; }

/* ---------- CTA cards ---------- */
.cta-cards{ background:var(--paper-alt); }
.grid-2{ display:grid; grid-template-columns:1fr; gap:22px; }
@media (min-width:760px){ .grid-2{ grid-template-columns:1fr 1fr; } }
.cta-card{
  background:var(--card); border-radius:var(--radius); padding:34px 30px;
  box-shadow:var(--shadow);
}
.cta-card--dark{ background:var(--ink); color:#fff; }
.cta-card--dark p{ color:#AFC3C0; }
.cta-icon{ font-size:2rem; }
.cta-card h3{ margin:14px 0 10px; }
.cta-card--dark h3{ color:#fff; }
.cta-card p{ color:var(--text-muted); margin-bottom:20px; }

/* ---------- Contact ---------- */
.contact{ background:var(--paper); }
.grid-contact{
  display:grid; grid-template-columns:1fr; gap:40px;
}
@media (min-width:900px){ .grid-contact{ grid-template-columns:1fr 1fr; align-items:start; } }
.contact-list{ margin-top:26px; display:flex; flex-direction:column; gap:14px; }
.contact-list li{ display:flex; align-items:center; gap:10px; color:var(--text); font-weight:600; }
.contact-list a{ color:var(--accent-dark); }

.contact-form{
  background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; box-shadow:var(--shadow);
}
.form-row{ margin-bottom:18px; display:flex; flex-direction:column; gap:8px; }
.form-row label{ font-weight:700; font-size:.9rem; color:var(--ink); }
.form-row input, .form-row textarea{
  font-family:var(--ff); border:1px solid var(--line); border-radius:var(--radius-sm);
  padding:12px 14px; font-size:.95rem; background:var(--paper); color:var(--text); resize:vertical;
}
.form-row input:focus, .form-row textarea:focus{ border-color:var(--accent); outline:none; }
.form-status{ margin-top:14px; font-size:.9rem; font-weight:600; min-height:1.4em; }
.form-status.ok{ color:var(--sage); }
.form-status.err{ color:var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer{ background:var(--ink-2); color:#B9CBC8; }
.footer-grid{
  display:grid; grid-template-columns:1fr; gap:34px; padding:60px 24px 40px;
}
@media (min-width:760px){ .footer-grid{ grid-template-columns:1.4fr 1fr 1fr 1fr; } }
.footer-about p{ margin-top:14px; font-size:.9rem; line-height:1.9; color:#9DB3AF; }
.footer-col h4{ color:#fff; font-size:.95rem; margin-bottom:16px; }
.footer-col a, .footer-col p{ display:block; font-size:.88rem; color:#9DB3AF; margin-bottom:10px; }
.footer-col a:hover{ color:var(--gold); }
.ltr-num{ direction:ltr; text-align:right; }

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); padding:20px 24px;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px;
  font-size:.8rem; color:#7E958F;
}
