/* ══════════════════════════════════════════
   about.css — درباره ما
   هماهنگ با استایل کلی سایت (madan.css / index.php)
   رنگ‌ها: آبی #206196 | نارنجی #DA7A2C
══════════════════════════════════════════ */

:root {
  --primary-blue: #206196;
  --primary-blue-dark: #1a4f78;
  --primary-orange: #DA7A2C;
  --primary-orange-light: #f0914a;
  --text-dark: #171717;
  --text-muted: #555;
  --bg-light: #f5f7fa;
  --card-bg: #ffffff;
  --border-light: #eef2f6;
}

#page-about {
  font-family: 'Vazirmatn', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background-color: #f5f7fa;
  background-image: radial-gradient(#dde3ea 1px, transparent 1px);
  background-size: 22px 22px;
  direction: rtl;
  overflow-x: hidden;
}

#page-about .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── shared section header (matches madan.css) ── */
#page-about .section-header {
  text-align: center;
  margin-bottom: 44px;
}
#page-about .section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  line-height: 1.35;
  text-align: center;
}
#page-about .section-title .accent,
#page-about .about-intro-head h2 .accent {
  color: var(--primary-orange);
}

/* ══════════════════════════════
   HERO
══════════════════════════════ */
.about-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  padding: 170px 20px 90px;
  overflow: hidden;
  text-align: center;
}

.about-hero .blocks {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
  animation: heroFloat 7s ease-in-out infinite;
}
.about-hero .blocks.top-left { top: 90px; right: 4%; width: 260px; }
.about-hero .blocks.bottom-right {
  bottom: 6%; left: 3%; width: 220px;
  animation-duration: 9s;
  animation-delay: 1.2s;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}

.hero-dot {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  animation: heroDotFloat 5.5s ease-in-out infinite;
}
.dot-1 { top: 22%; left: 12%; width: 10px; height: 10px; background: rgba(32, 97, 150, 0.35); animation-delay: 0s; }
.dot-2 { top: 68%; left: 20%; width: 7px; height: 7px; background: rgba(218, 122, 44, 0.45); animation-delay: 1.1s; animation-duration: 6.5s; }
.dot-3 { top: 30%; right: 14%; width: 8px; height: 8px; background: rgba(218, 122, 44, 0.4); animation-delay: 2s; animation-duration: 7s; }
.dot-4 { top: 75%; right: 10%; width: 12px; height: 12px; background: rgba(32, 97, 150, 0.25); animation-delay: 0.6s; animation-duration: 5s; }

@keyframes heroDotFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-24px) scale(1.25); opacity: 1; }
}

.about-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
}

.about-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(32, 97, 150, 0.08);
  border: 1px solid rgba(32, 97, 150, 0.3);
  color: var(--primary-blue);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 30px;
  margin-bottom: 22px;
  box-shadow: 0 3px 10px rgba(32, 97, 150, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  animation: heroFadeUp 0.7s ease forwards;
  animation-delay: 0.05s;
}
.about-hero-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(32, 97, 150, 0.2);
  border-color: rgba(32, 97, 150, 0.5);
}
.about-hero-badge i {
  color: var(--primary-blue);
  font-size: 15px;
  animation: heroSparkle 2.4s ease-in-out infinite;
}

@keyframes heroSparkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(1.25) rotate(15deg); opacity: 0.7; }
}

.about-hero h1 {
  color: var(--primary-blue);
  font-weight: 700;
  font-size: 42px;
  line-height: 1.5;
  margin: 0 0 18px 0;
  letter-spacing: -0.4px;
  opacity: 0;
  animation: heroFadeUp 0.75s ease forwards;
  animation-delay: 0.18s;
}
.about-hero h1 span { color: var(--primary-orange); }

.about-hero-lead {
  color: #5b6478;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.95;
  max-width: 620px;
  margin: 0 auto 36px;
  opacity: 0;
  animation: heroFadeUp 0.75s ease forwards;
  animation-delay: 0.32s;
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

.about-hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 16px; flex-wrap: wrap;
  opacity: 0;
  animation: heroFadeUp 0.75s ease forwards;
  animation-delay: 0.48s;
}
.about-stat {
  display: inline-flex; align-items: baseline; gap: 8px;
  background: #ffffff;
  border: 1px solid #e8eaf1;
  padding: 12px 24px; border-radius: 32px;
  box-shadow: 0 2px 6px rgba(21, 34, 66, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.about-stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(21, 34, 66, 0.1);
  border-color: rgba(32, 97, 150, 0.3);
}
.about-stat-num {
  font-size: 22px; font-weight: 500;
  background: linear-gradient(135deg, var(--primary-blue), #2c7ab8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.about-stat-num span { color: var(--primary-blue); -webkit-text-fill-color: var(--primary-blue); }
.about-stat-label {
  font-size: 13px; font-weight: 500; color: #5b6478;
}

.hero-scroll-cue {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #8a93a6;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  animation: heroFadeUp 0.75s ease forwards, heroBounce 2.2s ease-in-out infinite;
  animation-delay: 0.6s, 1.4s;
}
.hero-scroll-cue i { font-size: 18px; color: var(--primary-orange); }

@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ══════════════════════════════
   BODY WRAPPER
══════════════════════════════ */
.about-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.about-section {
  padding: 90px 0;
  background-color: #ffffff;
}
.about-section:first-of-type { padding-top: 90px; }
.about-section.about-section-alt {
  background-color: #E9F3FB;
}

/* highlight section — matches .solution-section / .target-section in madan.css */
.about-section.about-section-highlight {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
.about-section.about-section-highlight::before {
  content: '';
  position: absolute;
  top: -60px; left: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
.about-section.about-section-highlight::after {
  content: '';
  position: absolute;
  bottom: -80px; right: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  pointer-events: none;
}
#page-about .about-section.about-section-highlight .section-title {
  color: #ffffff;
}

/* ══════════════════════════════
   INTRO CARD
══════════════════════════════ */
.origin-split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(21, 34, 66, 0.14), 0 0 0 1px rgba(32, 97, 150, 0.06);
  max-width: 1000px;
  margin: 0 auto;
}

.origin-visual {
  background: linear-gradient(160deg, var(--primary-blue), var(--primary-blue-dark));
  padding: 48px 40px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.origin-visual::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}
.origin-visual h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 26px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}
.origin-visual h3 span {
  color: var(--primary-orange-light);
}

.origin-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}
.origin-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 14px 18px;
  transition: background 0.3s ease, transform 0.3s ease;
}
.origin-stat:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.origin-stat i {
  font-size: 22px;
  color: var(--primary-orange-light);
  flex-shrink: 0;
}
.origin-stat span {
  font-size: 13px;
  line-height: 1.7;
}
.origin-stat b {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 2px;
}

.origin-text {
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.origin-eyebrow {
  font-size: 20px;
  font-weight: 500;
  color: var(--primary-orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.origin-eyebrow i {
  font-size: 26px;
}
.origin-text p {
  font-size: 14px;
  line-height: 2;
  color: #3a3a3a;
  text-align: justify;
  margin: 0;
}
.origin-text p + p {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .origin-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .origin-visual,
  .origin-text {
    padding: 32px 26px;
  }
  .origin-visual h3 {
    font-size: 1.2rem;
  }
}

/* ══════════════════════════════
   VISION & MISSION
══════════════════════════════ */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.vm-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: none;
  border-top: 4px solid var(--primary-blue);
  box-shadow: 0 2px 7px rgba(100, 100, 100, 0.15);
  padding: 26px 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.vm-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 22px rgba(100, 100, 100, 0.15);
  border-top-color: var(--primary-orange);
}
.vm-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.vm-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #eaf2fb;
  border: 1px solid #d7e6f5;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.vm-icon i { font-size: 21px; color: var(--primary-blue); transition: color 0.3s ease; }
.vm-card:hover .vm-icon { background: #fff1e5; border-color: #ffe0c7; }
.vm-card:hover .vm-icon i { color: var(--primary-orange); }
.vm-card h3 {
  font-size: 17px; font-weight: 500;
  color: var(--primary-blue); margin: 0;
  transition: color 0.3s ease;
}
.vm-card:hover h3 { color: var(--primary-orange); }
.vm-card p {
  font-size: 14px; color: #3a3a3a; line-height: 1.95;
  text-align: justify;
}

/* ══════════════════════════════
   VALUES — sits on the blue highlight section
══════════════════════════════ */
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}
.value-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: none;
  border-top: 5px solid var(--primary-blue);
  box-shadow: 0 2px 7px rgba(100, 100, 100, 0.15);
  padding: 26px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.value-card.visible { opacity: 1; transform: translateY(0); }
.value-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 22px rgba(100, 100, 100, 0.15);
  border-top: 5px solid var(--primary-orange);
}
.value-icon {
  width: 50px; height: 50px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #eaf2fb;
  border: 1px solid #d7e6f5;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.value-icon i { font-size: 22px; color: var(--primary-blue); transition: color 0.3s ease; }
.value-card:hover .value-icon { background: #fff1e5; border-color: #ffe0c7; }
.value-card:hover .value-icon i { color: var(--primary-orange); }
.value-card h4 {
  font-size: 15px; font-weight: 500;
  color: var(--text-dark); margin-bottom: 8px;
}
.value-card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.8;
}

/* ══════════════════════════════
   AREAS OF EXPERTISE — sits on the blue highlight section
══════════════════════════════ */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.expertise-card {
  display: block;
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  border: none;
  border-bottom: 5px solid var(--primary-orange);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  padding: 30px 26px;
  text-decoration: none;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}
.expertise-icon {
  width: 50px; height: 50px;
  margin: 0 auto 16px;
  border-radius: 14px;
  background: #eaf2fb;
  border: 1px solid #d7e6f5;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.expertise-icon i { font-size: 22px; color: var(--primary-blue); transition: color 0.3s ease; }
.expertise-card:hover .expertise-icon { background: #fff1e5; border-color: #ffe0c7; }
.expertise-card:hover .expertise-icon i { color: var(--primary-orange); }
.expertise-card h4 {
  font-size: 16px; font-weight: 500;
  color: var(--text-dark); margin-bottom: 8px;
  text-align: center;
}
.expertise-card p {
  font-size: 13.5px; color: var(--text-muted); line-height: 1.8;
  margin-bottom: 14px;
  text-align: center;
}
.expertise-link {
  font-size: 12px; font-weight: 700;
  color: var(--primary-orange);
  display: flex; align-items: center; gap: 4px;
  width: fit-content;
  margin-inline-start: auto;
  margin-inline-end: 0;
}
.expertise-link i { font-size: 15px; }

/* ══════════════════════════════
   ADVANTAGES — matches .feature-card in madan.css
══════════════════════════════ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 34px 30px;
}
.adv-card {
  padding: 28px 32px;
  background: var(--card-bg);
  border-radius: 16px;
  border: none;
  border-right: 5px solid var(--primary-blue);
  box-shadow: 0 2px 7px rgba(100, 100, 100, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  opacity: 0;
  transform: translateY(24px);
}
.adv-card.visible { opacity: 1; transform: translateY(0); }
.adv-card:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 10px 22px rgba(100, 100, 100, 0.15);
  border-right-color: var(--primary-orange);
}
.adv-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  background: #eaf2fb;
  border: 1px solid #d7e6f5;
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.adv-icon i { font-size: 21px; color: var(--primary-blue); transition: color 0.3s ease; }
.adv-card:hover .adv-icon { background: #fff1e5; border-color: #ffe0c7; }
.adv-card:hover .adv-icon i { color: var(--primary-orange); }
.adv-card h4 {
  font-size: 15px; font-weight: 500;
  color: var(--primary-blue); margin-bottom: 10px;
  transition: color .3s ease;
}
.adv-card:hover h4 { color: var(--primary-orange); }
.adv-card p {
  font-size: 13.5px; color: #3a3a3a; line-height: 1.8;
}

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 768px) {
  .about-hero { padding: 130px 20px 60px; min-height: auto; }
  .about-hero h1 { font-size: 30px; }
  .about-hero-lead { font-size: 15px; }
  .hero-scroll-cue { margin-top: 36px; }
  #page-about .section-title { font-size: 1.6rem; }
  .about-section { padding: 60px 0; }
  .about-intro-card { padding: 30px 22px; }
  .about-intro-icon { width: 46px; height: 46px; }
  .about-intro-head h2 { font-size: 17px; }
  .advantages-grid { grid-template-columns: 1fr; gap: 20px; }
  .adv-card { padding: 22px; }
  .vm-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .expertise-grid { grid-template-columns: 1fr; gap: 16px; }
}

@media (max-width: 480px) {
  .about-hero { padding: 110px 16px 50px; }
  .about-hero h1 { font-size: 25px; }
  .about-hero-stats { gap: 10px; }
  .about-stat { padding: 10px 16px; }
  .about-section { padding: 48px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero,
  .about-hero .blocks,
  .hero-dot,
  .about-hero-badge,
  .about-hero-badge i,
  .about-hero h1,
  .about-hero-lead,
  .about-hero-stats,
  .hero-scroll-cue {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}