/* ═══════════════════════════════════════════════════════════════════
   AL-Doha Law Firm — RTL overrides for Arabic
   ═══════════════════════════════════════════════════════════════════ */

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

/* Header */
html[dir="rtl"] .site-header-inner { flex-direction: row-reverse; }
html[dir="rtl"] .main-nav { flex-direction: row-reverse; }
html[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 8px; }
html[dir="rtl"] .lang-switch { margin-left: 0; margin-right: 6px; }
html[dir="rtl"] .brand { flex-direction: row-reverse; }

/* Navigation mobile */
@media (max-width: 860px) {
  html[dir="rtl"] .main-nav { right: 0; left: 0; align-items: flex-start; }
  html[dir="rtl"] .nav-cta, html[dir="rtl"] .lang-switch { margin-right: 0; margin-top: 6px; }
}

/* Hero */
html[dir="rtl"] .hero-slide {
  background:
    linear-gradient(255deg,
      rgba(16,24,32,calc(var(--hero-overlay,0.6)*1.8)),
      rgba(16,24,32,calc(var(--hero-overlay,0.6)*1.1)),
      rgba(16,24,32,calc(var(--hero-overlay,0.6)*0.3))),
    var(--hero-image) center/cover;
}
html[dir="rtl"] .slider-dots { left: auto; right: var(--pad-x); }
html[dir="rtl"] .slider-prev { left: auto; right: 20px; }
html[dir="rtl"] .slider-next { right: auto; left: 20px; }
html[dir="rtl"] .slider-prev::after { content: "›"; }
html[dir="rtl"] .slider-next::after { content: "‹"; }

/* Sections & grids */
html[dir="rtl"] .section-head { flex-direction: row-reverse; }
html[dir="rtl"] .card.service-card { border-top: 3px solid var(--gold); border-right: none; }

/* Band / Stats */
html[dir="rtl"] .band { grid-template-columns: .8fr 1.2fr; }
html[dir="rtl"] .stat { border-left: none; border-right: 3px solid var(--gold); padding-right: 22px; padding-left: 0; }

/* Page hero */
html[dir="rtl"] .page-hero::before {
  background-image:
    linear-gradient(255deg, rgba(16,24,32,.94), rgba(16,24,32,.68) 50%, rgba(16,24,32,.22)),
    var(--page-header-image);
}
html[dir="rtl"] .breadcrumb { flex-direction: row-reverse; }

/* Eyebrow */
html[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* Gold line */
html[dir="rtl"] .gold-line { margin: 18px 0; }

/* Lists */
html[dir="rtl"] .service-img-card ul { padding-left: 0; padding-right: 1.2em; }
html[dir="rtl"] .blog-post-body ul, html[dir="rtl"] .blog-post-body ol { padding-left: 0; padding-right: 1.5em; }
html[dir="rtl"] .blog-post-body blockquote { border-left: none; border-right: 4px solid var(--gold); }

/* Footer */
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .footer-contact-quick a, html[dir="rtl"] .footer-contact-quick span { flex-direction: row-reverse; justify-content: flex-end; }
html[dir="rtl"] .footer-bottom { flex-direction: row-reverse; }

/* Forms */
html[dir="rtl"] input, html[dir="rtl"] select, html[dir="rtl"] textarea { text-align: right; }
html[dir="rtl"] .form-grid { direction: rtl; }
html[dir="rtl"] label { direction: rtl; }

/* Blog */
html[dir="rtl"] .blog-cat { margin: 20px 24px 0 0; }
html[dir="rtl"] .blog-card h3, html[dir="rtl"] .blog-card p { padding: 8px 24px 0 0; }
html[dir="rtl"] .blog-card .blog-meta { padding: 10px 24px 16px 0; }
html[dir="rtl"] .blog-card .read-more { padding: 0 24px 20px 0; }

/* Team */
html[dir="rtl"] .team-card > h3 { margin: 20px 22px 4px 0; }

/* Expertise strip */
html[dir="rtl"] .expertise-item { border-right: none; border-left: 1px solid var(--line); }
html[dir="rtl"] .expertise-item:last-child { border-left: none; }

/* Numbers — use Arabic for numbered cards only when explicitly RTL */
html[dir="rtl"] .card .num[data-arabic] { font-family: 'Cairo', sans-serif; }

/* Insight / insight-meta alignment */
html[dir="rtl"] .insight-card .insight-meta,
html[dir="rtl"] .insight-card h3,
html[dir="rtl"] .insight-card p { padding-left: 0; padding-right: 24px; }
html[dir="rtl"] .insight-card p:last-child { padding-bottom: 22px; }

/* WhatsApp float */
html[dir="rtl"] .wa-float { right: auto; left: 28px; }

/* Sidebar */
html[dir="rtl"] .blog-sidebar-card,
html[dir="rtl"] .blog-sidebar-heading { text-align: right; }
html[dir="rtl"] .sidebar-recent-post { flex-direction: row-reverse; }
html[dir="rtl"] .sidebar-cat-link { flex-direction: row-reverse; }

/* Content region */
html[dir="rtl"] .content { text-align: right; }
