:root {
  --green: #1CA600;
  --green-dark: #0F5C00;
  --black: #111111;
  --gray-dark: #222;
  --gray: #555;
  --gray-light: #f4f6f3;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 8px 24px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.8;
  font-size: 16px;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HEADER ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #eee;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .logo-img {
  height: 44px;       /* ارتفاع مناسب برای لوگو در هدر */
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-dark);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--green); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease;
  white-space: nowrap;
  font-family: inherit;
}
.btn-green {
  background: var(--green);
  color: #fff;
}
.btn-green:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  border-color: var(--black);
  color: var(--black);
}
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--black);
  border-color: #ddd;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ---------- HERO ---------- */
.hero {
  padding: 90px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  left: -120px; top: -120px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(28,166,0,0.12), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}
.hero .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(28,166,0,0.1);
  color: var(--green-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .4; }
}
h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}
h1 .accent { color: var(--green); }
.hero p.lead {
  font-size: 18px;
  color: var(--gray);
  margin-bottom: 30px;
  max-width: 540px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.hero-visual .hero-logo-img {
  width: 320px;       /* عرض لوگوی هیرو */
  height: auto;
  filter: drop-shadow(0 20px 40px rgba(28,166,0,0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---------- SECTION HEADINGS ---------- */
section { padding: 80px 0; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-head .eyebrow {
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}
.section-head p {
  color: var(--gray);
  font-size: 16px;
}

/* ---------- TRUST BAR ---------- */
.trust {
  padding: 0 0 40px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-dark);
}
.trust-item .ico {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  background: var(--green);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.trust-item .ico svg { width: 18px; height: 18px; }

/* ---------- ABOUT ---------- */
.about { background: var(--gray-light); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.about h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.about p { color: var(--gray); margin-bottom: 14px; font-size: 16px; }
.about-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 20px;
}
.about-points li {
  display: flex;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
}
.about-points li::before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
}
.about-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
}
.about-card h3 { font-size: 20px; margin-bottom: 12px; }
.about-card p { font-size: 15px; margin-bottom: 10px; }

/* ---------- SERVICES ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: var(--green);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleY(1); }
.service-card .s-ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(28,166,0,0.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.service-card .s-ico svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}
.service-card p {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ---------- PROCESS ---------- */
.process { background: var(--black); color: #fff; }
.process .section-head h2 { color: #fff; }
.process .section-head p { color: #bbb; }
.process .section-head .eyebrow { color: #6ee63f; }
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.step {
  text-align: center;
  padding: 26px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  transition: all .25s ease;
}
.step:hover {
  background: rgba(28,166,0,0.12);
  border-color: rgba(28,166,0,0.5);
  transform: translateY(-4px);
}
.step .num {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: 13px; color: #aaa; line-height: 1.6; }

/* ---------- PORTFOLIO / WORK AREAS ---------- */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.area-card {
  border-radius: var(--radius);
  padding: 34px 26px;
  background: var(--white);
  border: 1px solid #eee;
  text-align: center;
  transition: all .25s ease;
  position: relative;
  overflow: hidden;
}
.area-card .bg-ico {
  position: absolute;
  left: -20px; bottom: -20px;
  width: 120px; height: 120px;
  color: rgba(28,166,0,0.05);
  line-height: 1;
  pointer-events: none;
}
.area-card .bg-ico svg { width: 100%; height: 100%; }
.area-card:hover {
  border-color: var(--green);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.area-card .a-ico {
  width: 60px; height: 60px;
  margin: 0 auto 16px;
  border-radius: 16px;
  background: rgba(28,166,0,0.1);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  z-index: 1;
}
.area-card .a-ico svg { width: 28px; height: 28px; }
.area-card h3 { font-size: 18px; margin-bottom: 8px; position: relative; z-index: 1; }
.area-card p { font-size: 14px; color: var(--gray); position: relative; z-index: 1; }

/* ---------- COMMITMENTS ---------- */
.commitments { background: var(--gray-light); }
.commit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.commit-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  border-bottom: 3px solid var(--green);
}
.commit-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.commit-card h3 .c-ico {
  color: var(--green);
  display: flex;
}
.commit-card h3 .c-ico svg { width: 20px; height: 20px; }
.commit-card p { font-size: 14px; color: var(--gray); }

/* ---------- CTA ---------- */
.cta-final {
  padding: 90px 0;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 300px; height: 300px;
  border: 40px solid rgba(255,255,255,0.06);
  border-radius: 50%;
}
.cta-final h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; position: relative; }
.cta-final p { font-size: 17px; opacity: 0.9; margin-bottom: 30px; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.cta-actions .btn-white {
  background: #fff;
  color: var(--green-dark);
}
.cta-actions .btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }
.cta-actions .btn-dark {
  background: rgba(0,0,0,0.25);
  color: #fff;
  border-color: rgba(255,255,255,0.2);
}
.cta-actions .btn-dark:hover { background: rgba(0,0,0,0.4); }
.cta-actions .icon { width: 18px; height: 18px; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--black);
  color: #ccc;
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo .logo-img {
  height: 44px;   /* ارتفاع لوگو در فوتر، مشابه هدر */
  width: auto;
}
.footer-brand p { font-size: 14px; color: #999; max-width: 320px; }
.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}
.footer-col ul li a { color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-col ul li a.footer-link-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul li a.footer-link-icon svg {
  width: 16px; height: 16px;
}
.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 22px;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-visual .hero-logo-img { width: 220px; }
  h1 { font-size: 34px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .areas-grid { grid-template-columns: repeat(2, 1fr); }
  .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  section { padding: 60px 0; }
  h1 { font-size: 28px; }
  .section-head h2 { font-size: 26px; }
  .cta-final h2 { font-size: 28px; }
  .trust-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .commit-grid { grid-template-columns: 1fr; }
  .logo .logo-img { height: 36px; }
}