/*
Dnzraf theme -- RTL companion stylesheet.
Loaded automatically by WordPress core (wp_style_add_data('dnzraf-style','rtl',true) in
functions.php) right after style.css, ONLY when is_rtl() is true (Arabic). Every rule
here is therefore already RTL-scoped by definition -- no [dir="rtl"] prefix needed.
Keep this additive: re-declare only the properties that need to flip, don't duplicate
whole rulesets from style.css.
*/

/* Plus Jakarta Sans has no Arabic glyphs -- Cairo (enqueued in functions.php only
   when is_rtl()) covers Arabic script. */
body {
    font-family: "Cairo", var(--bs-body-font-family), sans-serif;
}

/* Language switcher (modal-body list) lives inside the header, which is pinned to
   dir="ltr" (see header.php) so its structural order matches TR/EN/DE exactly --
   style.css's own margin-right rule already applies correctly there, nothing to flip. */

/* Shared framed-card accent (İhracat harita çerçevesi, İSG, Sınırsız Kapasite vb.):
   accent stripe belongs on the RTL start edge (right), not the left. */
.dnzraf-framed-card {
    border-left: 1px solid rgba(var(--bs-dark-rgb), .1);
    border-right: 4px solid var(--bs-dark);
}

/* Capacity video / İhracat map variant overrides the accent to red (style.css:470)
   with a same-specificity .dnzraf-framed-card.dnzraf-capacity-video-frame selector
   -- match that specificity here so this file's cascade position actually wins. */
.dnzraf-framed-card.dnzraf-capacity-video-frame,
.dnzraf-framed-card.dnzraf-contact-map {
    border-left-color: rgba(var(--bs-dark-rgb), .1);
    border-right-color: var(--bs-warning);
}

/* Footer social icons: gutter goes on the left of each icon in RTL. The mobile
   off-canvas menu's copy of this list lives inside the header (pinned to
   dir="ltr" per user request), so it's deliberately excluded here -- flipping
   it would fight the header's forced LTR order. */
footer ul.social li {
    margin-right: 0 !important;
    margin-left: 1rem !important;
}

/* İletişim sayfası: bilgi/form ayraç çizgisi sağda değil solda olmalı. */
@media (min-width: 992px) {
    .dnzraf-contact-info {
        border-left: none;
        border-right: 1px solid #e5e5e5;
    }
}

/* Projelerimiz kartlarındaki müşteri logosu rozeti: sağ alt köşe. */
.dnzraf-project-logo-badge {
    left: auto;
    right: 1rem;
}

/* Content-flow arrow glyphs (CTA "İncele/View" buttons, process-step connector)
   point the wrong physical way once text flows right-to-left -- mirror them.
   Swiper prev/next chevrons are deliberately excluded: those are carousel
   controls, not reading-direction indicators, and Swiper already reverses
   itself based on the inherited `direction: rtl`. */
.btn .fa-arrow-right,
.btn .fa-arrow-left,
.process-arrow i {
    display: inline-block;
    transform: scaleX(-1);
}
