/* ==========================================================================
   About Page — New Industrial Dark Design System (آنا نیرو)
   Matches Products, Solutions & Nova Product Theme
   ========================================================================== */

@font-face {
  font-family: 'Sahel';
  src: url('/static/Font/Sahel.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Koodak';
  src: url('/static/Font/B_Koodak.ttf') format('truetype');
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --ana-bg-deep: #06111f;
  --ana-bg-darker: #030b18;
  --ana-bg-band: #071324;
  --ana-surface: #0a1a2e;
  --ana-surface-alt: #081526;
  --ana-surface-elevated: #0d213a;
  --ana-border: rgba(80, 140, 200, 0.24);
  --ana-border-subtle: rgba(255, 255, 255, 0.09);
  --ana-border-hover: rgba(0, 162, 255, 0.45);
  --ana-gold: #f5b800;
  --ana-gold-hover: #ffc400;
  --ana-cyan: #00a2ff;
  --ana-cyan-soft: #7ec8e3;
  --ana-text-white: #ffffff;
  --ana-text-body: #cbd5e1;
  --ana-text-muted: #94a3b8;
}

::selection {
  background-color: #ff8c00;
  color: #ffffff;
}

::-moz-selection {
  background-color: #ff8c00;
  color: #ffffff;
}

/* ==== Base Page Container ==== */
.about-page {
  direction: rtl;
  background-color: var(--ana-bg-deep);
  color: var(--ana-text-white);
  font-family: 'Sahel', 'Vazirmatn', sans-serif;
  padding-top: 80px; /* Fixed header offset */
  overflow-x: hidden;
}

.about-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ==========================================================================
   1. Hero / Intro Banner
   ========================================================================== */
.about-hero {
  position: relative;
  padding: 64px 0 56px;
  background: linear-gradient(108deg, #1b3558 0%, #0d2238 45%, #06111f 100%);
  border-bottom: 1px solid var(--ana-border);
  overflow: hidden;
}

.about-hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.about-hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.45fr);
  gap: 48px;
  align-items: center;
  background: rgba(6, 17, 31, 0.65);
  border: 1px solid var(--ana-border);
  border-radius: 6px;
  padding: 44px 48px;
  backdrop-filter: blur(6px);
}

.about-hero-title-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
  border-left: 1px solid var(--ana-border);
  padding-left: 36px;
}

.about-accent-bar {
  display: inline-block;
  width: 48px;
  height: 4px;
  background-color: var(--ana-gold);
  border-radius: 2px;
  margin-bottom: 18px;
}

.about-hero-title-col h1 {
  margin: 0;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.4;
  color: var(--ana-text-white);
}

.about-hero-text-col {
  text-align: right;
}

.about-lead {
  margin: 0;
  font-family: 'Sahel', 'Vazirmatn', sans-serif;
  font-size: 16px;
  line-height: 2.05;
  color: var(--ana-text-body);
  text-align: justify;
}

/* ==========================================================================
   2. Activities Section ("حوزه‌های فعالیت آنا نیرو")
   ========================================================================== */
.about-activities {
  padding: 64px 0;
  background-color: var(--ana-bg-deep);
  border-bottom: 1px solid var(--ana-border-subtle);
}

.about-section-head {
  margin-bottom: 36px;
}

.about-section-title-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.about-section-title {
  margin: 0;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--ana-cyan-soft);
  white-space: nowrap;
}

.about-section-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(270deg, rgba(126, 200, 227, 0.35) 0%, rgba(126, 200, 227, 0.04) 100%);
}

.about-section-desc {
  margin: 0;
  max-width: 920px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ana-text-body);
  text-align: right;
}

.activities-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.activity-card {
  background-color: var(--ana-surface);
  border: 1px solid var(--ana-border);
  border-right: 3px solid var(--ana-gold);
  border-radius: 4px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.activity-card:hover {
  border-color: var(--ana-border-hover);
  border-right-color: var(--ana-gold);
  background-color: var(--ana-surface-elevated);
}

.activity-card-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ana-border-subtle);
}

.activity-index {
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ana-gold);
  background: rgba(245, 184, 0, 0.1);
  border: 1px solid rgba(245, 184, 0, 0.35);
  border-radius: 4px;
  padding: 3px 9px;
  line-height: 1.4;
  flex-shrink: 0;
}

.activity-title {
  margin: 0;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--ana-text-white);
}

.activity-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ana-text-body);
  text-align: justify;
}

/* ==========================================================================
   3. Pillars Section (Mission, Vision, Values, Perspective, Commitment)
   ========================================================================== */
.about-pillars {
  padding: 64px 0;
  background-color: var(--ana-bg-darker);
  border-bottom: 1px solid var(--ana-border-subtle);
}

.pillars-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.pillars-duo-grid:last-child {
  margin-bottom: 0;
}

.pillar-card {
  background-color: var(--ana-surface-alt);
  border: 1px solid var(--ana-border);
  border-radius: 4px;
  padding: 28px 30px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pillar-card:hover {
  border-color: var(--ana-border-hover);
  background-color: var(--ana-surface);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background-color: rgba(0, 162, 255, 0.1);
  border: 1px solid rgba(0, 162, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-icon .material-icons {
  font-size: 22px;
  color: var(--ana-cyan);
}

.pillar-icon--gold {
  background-color: rgba(245, 184, 0, 0.12);
  border-color: rgba(245, 184, 0, 0.4);
}

.pillar-icon--gold .material-icons {
  color: var(--ana-gold);
}

.pillar-title {
  margin: 0;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 21px;
  font-weight: 700;
  color: var(--ana-text-white);
}

.pillar-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ana-text-body);
  text-align: justify;
}

/* Full-width Values Block */
.pillar-card--values {
  margin-bottom: 20px;
  background: linear-gradient(180deg, #0a1a2e 0%, #071324 100%);
  border-color: rgba(245, 184, 0, 0.28);
}

.pillar-card--values:hover {
  border-color: rgba(245, 184, 0, 0.5);
}

.values-top-row .pillar-header {
  margin-bottom: 22px;
}

.values-intro-text {
  margin-top: 4px;
  color: var(--ana-text-body);
}

.values-points-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value-box {
  background-color: rgba(3, 11, 24, 0.65);
  border: 1px solid var(--ana-border);
  border-right: 3px solid var(--ana-cyan);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.value-box-title {
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--ana-gold);
}

.value-box-desc {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--ana-text-body);
}

/* ==========================================================================
   4. Final CTA Banner ("همسفر ما شوید")
   ========================================================================== */
.about-cta-band {
  padding: 56px 0 72px;
  background-color: var(--ana-bg-deep);
}

.about-cta-box {
  background: linear-gradient(108deg, #163050 0%, #0a1a2e 55%, #061221 100%);
  border: 1px solid var(--ana-border);
  border-radius: 6px;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.about-cta-copy {
  max-width: 780px;
}

.about-cta-title {
  margin: 0 0 12px;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  color: var(--ana-text-white);
}

.about-cta-desc {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.95;
  color: var(--ana-text-body);
  text-align: justify;
}

.about-cta-action {
  flex-shrink: 0;
}

.about-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 190px;
  padding: 12px 24px;
  background-color: var(--ana-gold);
  border: 1px solid #d49b00;
  border-radius: 6px;
  color: #06111f;
  font-family: 'Koodak', 'Sahel', sans-serif;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.about-cta-btn:hover {
  background-color: var(--ana-gold-hover);
  border-color: var(--ana-gold);
  color: #000000;
}

.about-cta-arrow {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.about-cta-btn:hover .about-cta-arrow {
  transform: translateX(-3px);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
  .about-shell {
    padding: 0 24px;
  }

  .about-hero-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px;
  }

  .about-hero-title-col {
    border-left: none;
    border-bottom: 1px solid var(--ana-border);
    padding-left: 0;
    padding-bottom: 20px;
  }

  .activities-matrix,
  .pillars-duo-grid,
  .values-points-grid {
    grid-template-columns: 1fr;
  }

  .about-cta-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .about-page {
    padding-top: 70px;
  }

  .about-hero,
  .about-activities,
  .about-pillars {
    padding: 44px 0;
  }

  .about-hero-panel {
    padding: 24px 20px;
  }

  .about-lead {
    font-size: 15px;
    line-height: 1.9;
    text-align: right;
  }

  .about-section-line {
    display: none;
  }

  .about-section-title {
    white-space: normal;
  }

  .activity-card,
  .pillar-card {
    padding: 22px 20px;
  }

  .about-cta-band {
    padding: 40px 0 56px;
  }

  .about-cta-box {
    padding: 24px 20px;
  }

  .about-cta-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .about-shell {
    padding: 0 16px;
  }

  .activity-card-top {
    flex-direction: column;
    gap: 10px;
  }
}
