/* =============================================
   صفحات محتوایی — درباره ما و حوزه‌های کاری
   ============================================= */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.content-section {
  width: min(1100px, 92%);
  margin: 0 auto 2rem;
}

.page-title {
  margin: 0 0 1.2rem;
  font-size: clamp(19pt, 3.2vw, 27pt);
  line-height: 1.4;
  text-align: center;
}

.content-intro {
  margin: 0 0 1rem;
  font-size: clamp(11.5pt, 1.5vw, 13.5pt);
  line-height: 2.15;
  color: var(--text-2);
  text-align: justify;
}

.content-intro b {
  color: var(--text);
}


/* ---------------------------------------------
   سربرگ صفحه حوزه کاری
   --------------------------------------------- */

.content-hero {
  width: min(1100px, 92%);
  margin: 0 auto 2.5rem;
  display: grid;
}

.content-hero-img {
  grid-area: 1 / 1;
  width: 100%;
  height: clamp(230px, 30vw, 380px);
  object-fit: cover;
  border-radius: var(--r-xl);
  display: block;
}

.content-hero-text {
  grid-area: 1 / 1;
  align-self: end;
  justify-self: center;
  width: min(760px, 92%);
  margin-bottom: -28px;
  padding: clamp(18px, 2.5vw, 28px);
  border-radius: var(--r-xl);
  text-align: center;
}

.content-hero-text h1 {
  margin: 0 0 10px;
  font-size: clamp(17pt, 2.8vw, 24pt);
  line-height: 1.45;
}

.content-hero-text p {
  margin: 0;
  font-size: clamp(11pt, 1.4vw, 12.5pt);
  line-height: 1.95;
  color: var(--text-2);
}


/* ---------------------------------------------
   کارت‌ها
   --------------------------------------------- */

.feature-grid {
  width: min(1100px, 92%);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
  gap: 1.1rem;
}

/* برای فهرست‌های چهارتایی: ۲×۲ به‌جای ۳+۱ */
.feature-grid.pair {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.feature,
.content-card {
  padding: clamp(18px, 2.2vw, 26px);
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
}

.feature {
  text-decoration: none;
  color: inherit;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

a.feature:hover {
  transform: translateY(-4px);
}

.feature h3,
.content-card h3 {
  margin: 0 0 10px;
  font-size: 14pt;
  line-height: 1.55;
  color: var(--accent);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rim-lo);
}

.content-card h4 {
  margin: 20px 0 8px;
  font-size: 12.5pt;
  color: var(--text);
}

.feature p,
.content-card p {
  margin: 0;
  font-size: 11.5pt;
  line-height: 1.95;
  color: var(--text-2);
}

.content-card p.muted {
  color: var(--text-3);
  font-size: 11pt;
  margin-bottom: 4px;
}


/* ---------------------------------------------
   فهرست‌ها
   --------------------------------------------- */

.bullet-list,
.pair-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-right: 20px;
  margin: 9px 0;
  font-size: 11.5pt;
  line-height: 1.95;
  color: var(--text-2);
}

.bullet-list li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.bullet-list b {
  color: var(--text);
}

.pair-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 9px 0;
  font-size: 11.5pt;
  line-height: 1.9;
  border-bottom: 1px dashed var(--rim-lo);
}

.pair-list li:last-child {
  border-bottom: 0;
}

.pair-list span {
  color: var(--text-3);
  white-space: nowrap;
}

.pair-list b {
  color: var(--text);
  text-align: left;
}


/* ---------------------------------------------
   چیپ‌های فناوری
   --------------------------------------------- */

.tech-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.tech-chip {
  padding: 9px 20px;
  border-radius: var(--r-pill);
  font-size: 11pt;
  font-weight: 700;
  color: var(--text);
  cursor: default;
}


/* ---------------------------------------------
   آمار
   --------------------------------------------- */

.stats-row {
  width: min(1100px, 92%);
  margin: 0 auto 2.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat {
  padding: 1.5rem 1rem;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
}

.stat strong {
  font-size: clamp(18pt, 2.8vw, 25pt);
  line-height: 1.2;
  color: var(--accent);
}

.stat span {
  font-size: 11pt;
  color: var(--text-2);
}

.inline-link {
  align-self: flex-start;
  margin-top: 18px;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  font-size: 11pt;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}


@media (max-width: 720px) {
  .content-hero-text {
    position: static;
    width: 100%;
    margin: -34px auto 0;
  }

  .content-hero {
    display: block;
  }

  .content-hero-img {
    height: clamp(180px, 44vw, 260px);
  }

  .pair-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pair-list b {
    text-align: right;
  }
}
