/* ==========================================================================
   RTL + Kurdish layer for Buddy template
   Heavy positional flipping is handled by the rtlcss-generated stylesheets
   (bootstrap.rtl.css, meanmenu.rtl.css, style.rtl.css, responsive.rtl.css,
   coustom-animation.rtl.css). This file only adds what rtlcss cannot:
   fonts, icon-glyph mirroring, bidi for numbers, and the text brand logo.
   Loaded LAST so it wins.
   ========================================================================== */

@font-face {
    font-family: "KReyhan";
    src: url("../fonts/KReyhan.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* -------- Global direction & typography -------- */
html[dir="rtl"],
html[dir="rtl"] body { direction: rtl; text-align: right; }

html[dir="rtl"] body,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] input,
html[dir="rtl"] textarea,
html[dir="rtl"] select,
html[dir="rtl"] button,
html[dir="rtl"] label,
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3,
html[dir="rtl"] h4, html[dir="rtl"] h5, html[dir="rtl"] h6,
html[dir="rtl"] .section_title h2,
html[dir="rtl"] a:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not([class*="bi-"]):not(.bi):not([class*="flaticon"]),
html[dir="rtl"] span:not([class*="fa-"]):not(.fa):not(.fas):not(.far):not(.fab):not([class*="bi-"]):not(.bi):not([class*="flaticon"]) {
    font-family: "KReyhan", "Segoe UI", Tahoma, sans-serif !important;
}

html[dir="rtl"] p, html[dir="rtl"] li { line-height: 1.9; }

/* -------- Re-assert icon fonts so glyphs never get swapped to KReyhan -------- */
html[dir="rtl"] .fa, html[dir="rtl"] .fas, html[dir="rtl"] .far,
html[dir="rtl"] .fa-solid, html[dir="rtl"] .fa-regular,
html[dir="rtl"] [class*="fa-"]:not([class*="flaticon"]) { font-family: "Font Awesome 6 Free" !important; }
html[dir="rtl"] .fab, html[dir="rtl"] .fa-brands { font-family: "Font Awesome 6 Brands" !important; }
html[dir="rtl"] .bi, html[dir="rtl"] [class^="bi-"], html[dir="rtl"] [class*=" bi-"] { font-family: "bootstrap-icons" !important; }
html[dir="rtl"] [class^="flaticon-"], html[dir="rtl"] [class*=" flaticon-"],
html[dir="rtl"] [class^="flaticon-"]:before, html[dir="rtl"] [class*=" flaticon-"]:before { font-family: "Flaticon" !important; }

/* -------- Directional icon GLYPHS (rtlcss flips positions, not glyphs) -------- */
/* Font Awesome arrows */
html[dir="rtl"] .fa-angle-right:before, html[dir="rtl"] .fa-arrow-right:before,
html[dir="rtl"] .fa-long-arrow-alt-right:before { content: "\f053"; }
html[dir="rtl"] .fa-angle-left:before, html[dir="rtl"] .fa-arrow-left:before,
html[dir="rtl"] .fa-long-arrow-alt-left:before { content: "\f054"; }
/* Owl carousel nav arrows: mirror whatever glyph is used */
html[dir="rtl"] .owl-nav i { display: inline-block; transform: scaleX(-1); }

/* -------- SVG curved/path text (rotating badge): use Kurdish font, keep joined -------- */
html[dir="rtl"] svg text,
html[dir="rtl"] .text-inner text,
html[dir="rtl"] textPath {
    font-family: "KReyhan", "Segoe UI", Tahoma, sans-serif !important;
    direction: rtl;
    letter-spacing: normal !important;
}
html[dir="rtl"] .text-inner svg { word-spacing: normal; }

/* -------- Owl carousel item direction -------- */
html[dir="rtl"] .owl-carousel { direction: ltr; }
html[dir="rtl"] .owl-carousel .owl-item { direction: rtl; }

/* -------- Forms: numeric/email fields stay LTR -------- */
html[dir="rtl"] input, html[dir="rtl"] textarea, html[dir="rtl"] select { text-align: right; }
html[dir="rtl"] input[type="email"], html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[type="number"], html[dir="rtl"] input[type="url"] { direction: ltr; text-align: right; }

/* -------- Numbers / prices / phones stay LTR (avoid bidi reversal) -------- */
html[dir="rtl"] .price, html[dir="rtl"] .product-price, html[dir="rtl"] .item_price,
html[dir="rtl"] .odometer { direction: ltr; display: inline-block; }
html[dir="rtl"] .ltr-num { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .call_info p, html[dir="rtl"] .call_info a,
html[dir="rtl"] a[href^="tel:"] { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* -------- Prevent horizontal scroll from decorative/oversized elements -------- */
html[dir="rtl"] body { overflow-x: hidden; }

/* -------- Text-based brand logo (replaces logo.png / logo2.png) -------- */
html[dir="rtl"] .brand-text {
    font-family: "KReyhan", "Segoe UI", Tahoma, sans-serif;
    font-weight: 700; font-size: 20px; line-height: 1.25;
    color: #b0712f; display: inline-block; white-space: nowrap;
}
html[dir="rtl"] .header-logo .brand-text { color: #1f1f1f; }
html[dir="rtl"] .footer_logo .brand-text,
html[dir="rtl"] .nav-logo .brand-text { color: #ffffff; }
@media (max-width: 991px) { html[dir="rtl"] .brand-text { font-size: 17px; } }
@media (max-width: 420px) { html[dir="rtl"] .brand-text { font-size: 15px; white-space: normal; } }

/* -------- Mobile bar logo is a ::before pseudo with content:"Buddy" -------- */
html[dir="rtl"] .mean-container .mean-bar::before {
    content: "کێڵگەی پەلەوەری تەندروست";
    font-family: "KReyhan", "Segoe UI", Tahoma, sans-serif;
    font-size: 17px; font-weight: 700; top: 20px;
}

/* -------- Justify the "why us / about" descriptive text -------- */
html[dir="rtl"] .about_content p,
html[dir="rtl"] .about_area .section_title p,
html[dir="rtl"] .feature_area .section_title p { text-align: justify; }

/* -------- Header right cluster: goose logo + call button -------- */
html[dir="rtl"] .buddy-header-area .menu_right_site {
    display: flex; align-items: center; justify-content: flex-end; gap: 18px;
}
html[dir="rtl"] .header-brand-logo img { height: 52px; width: auto; display: block; }
html[dir="rtl"] .buddy-header-area .header-call-btn { display: flex !important; margin: 0; }
html[dir="rtl"] .header-call-btn a {
    display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
    padding: 8px 18px; font-size: 14px; font-weight: 700; line-height: 1;
    color: #b0712f; background: transparent;
    border: 2px solid #b0712f; border-radius: 30px;
    transition: color .28s ease, background-color .28s ease, box-shadow .28s ease, transform .28s ease;
}
html[dir="rtl"] .header-call-btn a:hover {
    background: #b0712f; color: #ffffff;
    box-shadow: 0 8px 18px rgba(176, 113, 47, .35);
    transform: translateY(-2px);
}
html[dir="rtl"] .header-call-btn i {
    font-size: 13px; color: #b0712f; transition: color .28s ease;
    display: inline-flex; align-items: center;
}
html[dir="rtl"] .header-call-btn a:hover i { color: #ffffff; }
html[dir="rtl"] .header-call-btn .ltr-num { direction: ltr; }

/* -------- Scrolled/sticky header turns orange (#b0712f): make logo + call button white -------- */
html[dir="rtl"] .buddy-header-area.sticky .header-logo .brand-text { color: #ffffff; }
html[dir="rtl"] .buddy-header-area.sticky .header-brand-logo img { filter: brightness(0) invert(1); }
html[dir="rtl"] .buddy-header-area.sticky .header-call-btn a { color: #ffffff !important; border-color: #ffffff !important; }
html[dir="rtl"] .buddy-header-area.sticky .header-call-btn i { color: #ffffff !important; }
html[dir="rtl"] .buddy-header-area.sticky .header-call-btn a:hover { background: #ffffff !important; color: #b0712f !important; }
html[dir="rtl"] .buddy-header-area.sticky .header-call-btn a:hover i { color: #b0712f !important; }

/* -------- Mobile floating call button (desktop header collapses to hamburger on mobile) -------- */
html[dir="rtl"] .mobile-call-fab {
    position: fixed; bottom: 26px; right: 24px; z-index: 9999;
    width: 54px; height: 54px; border-radius: 50%;
    background: #b0712f; color: #fff; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28); font-size: 20px;
}
html[dir="rtl"] .mobile-call-fab i { color: #fff; }
@media (min-width: 992px) { html[dir="rtl"] .mobile-call-fab { display: none !important; } }

/* -------- Contact page: address list + embedded map (form removed) -------- */
html[dir="rtl"] .contact_addr { list-style: none; padding: 0; margin: 28px 0 22px; }
html[dir="rtl"] .contact_addr li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
html[dir="rtl"] .contact_addr .ci {
    flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%;
    background: #b0712f; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px;
}
html[dir="rtl"] .contact_addr .ci i { color: #fff; }
html[dir="rtl"] .contact_addr b { display: block; color: #1f1f1f; font-size: 18px; margin-bottom: 4px; }
html[dir="rtl"] .contact_addr p { margin: 0; color: #666; line-height: 1.7; }
html[dir="rtl"] .contact_addr a { color: #666; }
html[dir="rtl"] .contact_addr a:hover { color: #b0712f; }
html[dir="rtl"] .contact_map iframe { display: block; width: 100%; min-height: 470px; border: 0; border-radius: 14px; }
html[dir="rtl"] .contact_social a {
    width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: #f3f3f3; color: #b0712f; margin-left: 8px; transition: .3s;
}
html[dir="rtl"] .contact_social a:hover { background: #b0712f; color: #fff; }
@media (max-width: 991px) { html[dir="rtl"] .contact_map iframe { min-height: 340px; margin-top: 30px; } }

/* -------- Gallery (portfolio) grid spacing -------- */
html[dir="rtl"] .gallery-grid-row .grid-item { margin-bottom: 26px; }
html[dir="rtl"] .gallery-grid-row .portfolio_thumb img { width: 100%; height: 300px; object-fit: cover; }
html[dir="rtl"] .gallery-grid-row .portfolio_thumb > a { display: block; }

/* -------- Shared page banner (changeable from the admin panel -> master-banner.jpg) -------- */
html[dir="rtl"] .breadcumb-area {
    background-image: url("../images/master-banner.jpg") !important;
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
}
