/* =============================================
   ABOUT PAGE — دورتك
   Mobile-first, RTL. Builds on the tokens in style.css.
============================================= */

.ab-main {
  background: var(--bg);
}

/* ── Breadcrumb ─────────────────────────────── */
.ab-crumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
}
.ab-crumb .breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.ab-crumb .breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  margin-inline-end: 6px;
  color: var(--text-light);
}
.ab-crumb .breadcrumb-item a {
  color: var(--text-muted);
  font-weight: 600;
}
.ab-crumb .breadcrumb-item a:hover { color: var(--green); }
.ab-crumb .breadcrumb-item.active { color: var(--text); font-weight: 700; }
.ab-crumb .breadcrumb-home-icon { color: var(--green); margin-inline-end: 4px; }

/* ── Shared section shell ───────────────────── */
.ab-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 14px;
}
.ab-sec-head {
  text-align: center;
  margin-bottom: 20px;
}
.ab-sec-title {
  position: relative;
  display: inline-block;
  font-size: 1.22rem;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 8px;
}
/* Short underline keeps the heading anchored without a heavy rule. */
.ab-sec-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 46px;
  height: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--green), var(--yellow));
}
.ab-sec-sub {
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 560px;
  margin: 10px auto 0;
}

/* ── Buttons ────────────────────────────────── */
.ab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ab-btn:hover { transform: translateY(-2px); }
.ab-btn i { font-size: 0.9rem; }

.ab-btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 147, 74, 0.28);
}
.ab-btn-primary:hover { background: var(--green-light); }

.ab-btn-ghost {
  background: var(--white);
  color: var(--green);
  border: 1.5px solid var(--green-mid);
}
.ab-btn-ghost:hover { border-color: var(--green); background: var(--green-bg); }

.ab-btn-light {
  background: var(--white);
  color: var(--green);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.ab-btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}
.ab-btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, 0.12); }

/* ── Hero ───────────────────────────────────── */
.ab-hero {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(17, 147, 74, 0.10) 0%, rgba(17, 147, 74, 0) 60%),
    linear-gradient(180deg, var(--white) 0%, #f7fbf8 100%);
  border-bottom: 1px solid var(--border);
}
.ab-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 26px 14px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ab-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
}
.ab-hero-title {
  margin: 14px 0 12px;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1.5;
  color: var(--text);
}
.ab-hl {
  background: linear-gradient(180deg, transparent 62%, rgba(255, 208, 0, 0.45) 62%);
  color: var(--green);
}
.ab-hero-text {
  font-size: 0.88rem;
  line-height: 1.95;
  color: var(--text-muted);
  max-width: 560px;
}
.ab-hero-text strong { color: var(--text); font-weight: 800; }

.ab-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.ab-hero-art {
  display: flex;
  justify-content: center;
}
.ab-hero-art img {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(16, 50, 31, 0.18));
}

/* ── Stats ──────────────────────────────────── */
.ab-stats {
  max-width: var(--max-w);
  margin: -14px auto 0;
  padding: 0 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  position: relative;
  z-index: 1;
}
.ab-stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  padding: 16px 12px;
  text-align: center;
}
.ab-stat-num {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1.2;
  /* Latin digits keep their shape inside an RTL run. */
  direction: ltr;
  unicode-bidi: isolate;
}
.ab-plus { color: var(--yellow-dark); }
.ab-stat-label {
  margin-top: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Story ──────────────────────────────────── */
.ab-story-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.ab-story-text p {
  font-size: 0.86rem;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ab-story-text strong { color: var(--green); font-weight: 800; }

.ab-ticks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.ab-ticks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.6;
}
.ab-ticks i { color: var(--green); font-size: 0.95rem; margin-top: 2px; }

.ab-story-art {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  padding: 20px 18px 14px;
  text-align: center;
}
.ab-story-art img {
  width: 100%;
  max-width: 280px;
  height: auto;
  margin: 0 auto 12px;
}
.ab-story-art figcaption {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ── Steps ──────────────────────────────────── */
.ab-steps {
  display: grid;
  gap: 12px;
  counter-reset: ab-step;
}
.ab-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xs);
  padding: 20px 18px 18px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ab-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-mid);
}
/* Oversized ghost numeral: order without stealing attention from the text. */
.ab-step-num {
  position: absolute;
  top: -10px;
  inset-inline-start: 12px;
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(17, 147, 74, 0.08);
  pointer-events: none;
}
.ab-step-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--green-bg);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.ab-step-title {
  font-size: 0.97rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.ab-step-text {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ── Features ───────────────────────────────── */
.ab-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ab-feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  padding: 18px 16px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.ab-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-mid);
}
.ab-feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.02rem;
  margin-bottom: 12px;
}
.ab-ic-green  { background: #e8f5e9; color: #11934a; }
.ab-ic-yellow { background: #fff8e1; color: #f9a825; }
.ab-ic-blue   { background: #e8f1fd; color: #2563eb; }
.ab-ic-purple { background: #f1ebfd; color: #7c3aed; }
.ab-ic-red    { background: #fdecec; color: #e53935; }
.ab-ic-teal   { background: #e2f6f4; color: #0d9488; }

.ab-feature-title {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.ab-feature-text {
  font-size: 0.81rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ── Partner logos ──────────────────────────── */
.ab-logo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.ab-logo-cell {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ab-logo-cell:hover {
  border-color: var(--green-mid);
  box-shadow: var(--shadow-xs);
}
.ab-logo-cell img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  /* Muted by default so the wall reads as one texture, full colour on hover. */
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
.ab-logo-cell:hover img { filter: none; opacity: 1; }

/* ── Values ─────────────────────────────────── */
.ab-value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.ab-value {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 18px 18px;
  box-shadow: var(--shadow-xs);
}
/* Accent sits on the inline-start edge, so it flips correctly in LTR. */
.ab-value::before {
  content: "";
  position: absolute;
  inset-block: 14px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--green), var(--yellow));
}
.ab-value-icon {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 10px;
  display: block;
}
.ab-value-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px;
}
.ab-value-text {
  font-size: 0.82rem;
  line-height: 1.85;
  color: var(--text-muted);
}

/* ── CTA ────────────────────────────────────── */
.ab-cta {
  background: linear-gradient(135deg, #10321f 0%, #11934a 100%);
  margin-top: 10px;
}
.ab-cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 34px 18px;
  text-align: center;
  color: #fff;
}
.ab-cta-title {
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 8px;
}
.ab-cta-text {
  font-size: 0.85rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
  max-width: 480px;
  margin: 0 auto 18px;
}
.ab-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* ── Tablet ─────────────────────────────────── */
@media (min-width: 600px) {
  .ab-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-feature-grid,
  .ab-value-grid,
  .ab-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-logo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ab-hero-title { font-size: 1.9rem; }
}

/* ── Desktop ────────────────────────────────── */
@media (min-width: 900px) {
  .ab-section { padding: 46px 20px; }
  .ab-sec-title { font-size: 1.5rem; }

  .ab-hero-inner {
    flex-direction: row;
    align-items: center;
    gap: 36px;
    padding: 46px 20px 54px;
  }
  .ab-hero-copy { flex: 1 1 54%; }
  .ab-hero-art { flex: 1 1 46%; }
  .ab-hero-art img { max-width: 440px; }
  .ab-hero-title { font-size: 2.2rem; }
  .ab-hero-text { font-size: 0.95rem; }

  .ab-stats { margin-top: -28px; gap: 14px; padding: 0 20px; }
  .ab-stat { padding: 20px 14px; }
  .ab-stat-num { font-size: 1.7rem; }
  .ab-stat-label { font-size: 0.8rem; }

  .ab-story-grid {
    flex-direction: row;
    align-items: center;
    gap: 34px;
  }
  .ab-story-text { flex: 1 1 58%; }
  .ab-story-art { flex: 1 1 42%; }

  .ab-steps,
  .ab-feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ab-value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .ab-logo-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }

  .ab-cta-inner { padding: 52px 20px; }
  .ab-cta-title { font-size: 1.6rem; }
}

/* ── Motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ab-btn:hover,
  .ab-step:hover,
  .ab-feature:hover { transform: none; }
}
