/* ============================================================
   DATA GUARD DLP — RTL OVERRIDES (Arabic)
   Loaded when is_rtl() returns true
   ============================================================ */

/* ── Base RTL ─────────────────────────────────────────────── */
html[dir="rtl"],
body.rtl {
  direction: rtl;
  text-align: right;
}

/* Arabic font stack — use Cairo or Noto Sans Arabic */
body {
  font-family: 'Cairo', 'Noto Sans Arabic', 'Inter', -apple-system, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', 'Noto Sans Arabic', 'Barlow Condensed', sans-serif;
  letter-spacing: 0;
}

/* ── Header RTL ───────────────────────────────────────────── */
.dg-nav-list { flex-direction: row-reverse; }
.dg-header-right { flex-direction: row-reverse; }

/* ── Hero RTL ─────────────────────────────────────────────── */
.dg-hero-inner { direction: rtl; }
.dg-hero-content { text-align: right; }
.dg-hero-actions { flex-direction: row-reverse; }
.dg-hero-trust { flex-direction: row-reverse; }

/* ── Feature Cards RTL ────────────────────────────────────── */
.dg-feature-card { text-align: right; }
.dg-feature-icon { margin-right: 0; margin-left: auto; }

/* ── Feature List RTL ─────────────────────────────────────── */
.dg-feature-list li {
  padding-left: 0;
  padding-right: 24px;
}
.dg-feature-list li::before {
  left: auto;
  right: 0;
  content: '←';
}

/* ── Check List RTL ───────────────────────────────────────── */
.dg-check-list li {
  padding-left: 0;
  padding-right: 28px;
}
.dg-check-list li::before {
  left: auto;
  right: 0;
}

/* ── Process Steps RTL ────────────────────────────────────── */
.dg-process-step { direction: rtl; }
.dg-process-step-num { text-align: right; }
.dg-process-bullets { direction: rtl; }
.dg-process-bullet { flex-direction: row-reverse; text-align: right; }

/* ── Steps Row RTL ────────────────────────────────────────── */
.dg-steps-row { flex-direction: row-reverse; }
.dg-step-arrow { transform: scaleX(-1); }

/* ── Industry Detail RTL ──────────────────────────────────── */
.dg-industry-detail-header { flex-direction: row-reverse; text-align: right; }
.dg-challenge-item { border-left: none; border-right: 3px solid var(--dg-red); text-align: right; }
.dg-industry-regs { flex-direction: row-reverse; }

/* ── Use Cases RTL ────────────────────────────────────────── */
.dg-tab-nav { flex-direction: row-reverse; }
.dg-usecase-split { direction: rtl; }
.dg-usecase-text { text-align: right; }
.dg-usecase-scenario { border-left: none; border-right: 3px solid var(--dg-red); }

/* ── About RTL ────────────────────────────────────────────── */
.dg-about-split { direction: rtl; }
.dg-about-story { direction: rtl; }
.dg-about-story-text { text-align: right; }

/* ── Feature Detail Split RTL ─────────────────────────────── */
.dg-feature-detail-split { direction: rtl; }
.dg-feature-detail-split > * { direction: rtl; }
.dg-feature-detail-reverse { direction: ltr; }
.dg-feature-detail-reverse > * { direction: rtl; }
.dg-feature-detail-text { text-align: right; }

/* ── Contact Form RTL ─────────────────────────────────────── */
.dg-contact-split { direction: rtl; }
.dg-contact-form-wrap { text-align: right; }
.dg-form-field label { text-align: right; }
.dg-form-field input,
.dg-form-field select,
.dg-form-field textarea { text-align: right; direction: rtl; }
.dg-form-field select {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 36px;
}
.dg-checkbox-label { flex-direction: row-reverse; text-align: right; }
.dg-contact-benefits li { flex-direction: row-reverse; text-align: right; }
.dg-contact-info { text-align: right; }

/* ── CTA Band RTL ─────────────────────────────────────────── */
.dg-cta-band-inner { flex-direction: row-reverse; }
.dg-cta-band-text { text-align: right; }

/* ── Footer RTL ───────────────────────────────────────────── */
.dg-footer-inner { direction: rtl; }
.dg-footer-col ul { text-align: right; }
.dg-footer-bottom-inner { flex-direction: row-reverse; }
.dg-footer-legal { flex-direction: row-reverse; }

/* ── Buttons RTL ──────────────────────────────────────────── */
.dg-btn { flex-direction: row-reverse; }

/* ── Section Headers RTL ──────────────────────────────────── */
.dg-section-header { text-align: center; }

/* ── Mobile Menu RTL ──────────────────────────────────────── */
.dg-mobile-menu ul { text-align: right; }

/* ── Page Hero RTL ────────────────────────────────────────── */
.dg-page-hero { text-align: center; }

/* ── Compliance Grid RTL ──────────────────────────────────── */
.dg-compliance-item { text-align: right; }

/* ── Diff Items RTL ───────────────────────────────────────── */
.dg-diff-item { text-align: right; }

/* ── Cert Cards RTL ───────────────────────────────────────── */
.dg-cert-card { text-align: center; }

/* ── Arabic Font Loading ──────────────────────────────────── */
/* Developer: Add this to wp_head or enqueue separately:
   https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap
*/
