/**
 * Casa Vogue Luxury Arabic (RTL) Stylesheet
 * Strictly loaded on /ar/ subdirectories.
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400&display=swap');

html[lang="ar"],
body.cv-lang-ar {
    direction: rtl !important;
    text-align: right !important;
    font-family: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Headings & Typography */
body.cv-lang-ar h1,
body.cv-lang-ar h2,
body.cv-lang-ar h3,
body.cv-lang-ar h4,
body.cv-lang-ar h5,
body.cv-lang-ar h6,
body.cv-lang-ar .font-heading,
body.cv-lang-ar .font-serif {
    font-family: 'Cairo', 'Amiri', serif !important;
    letter-spacing: 0 !important; /* Arabic does not use Latin letter-spacing */
    line-height: 1.4 !important;
    text-align: right;
}

body.cv-lang-ar p,
body.cv-lang-ar span,
body.cv-lang-ar a,
body.cv-lang-ar li,
body.cv-lang-ar input,
body.cv-lang-ar textarea,
body.cv-lang-ar button,
body.cv-lang-ar select {
    font-family: 'Cairo', sans-serif !important;
    letter-spacing: normal !important;
}

/* Header & Navigation Mirroring */
body.cv-lang-ar #site-header nav {
    direction: rtl;
}

body.cv-lang-ar .cv-dropdown__panel {
    right: auto !important;
    left: 0 !important;
    text-align: right;
}

body.cv-lang-ar .cv-dropdown__panel a {
    text-align: right;
}

body.cv-lang-ar .mega-menu-panel {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
}

/* Topbar alignment */
body.cv-lang-ar .bg-brand-sand .max-w-7xl {
    direction: rtl;
}

/* Icons & Directional Arrows */
body.cv-lang-ar [data-lucide="arrow-right"],
body.cv-lang-ar [data-lucide="chevron-right"],
body.cv-lang-ar .arrow-right,
body.cv-lang-ar .fa-arrow-right,
body.cv-lang-ar .fa-chevron-right {
    transform: scaleX(-1) !important;
    display: inline-block;
}

/* Button Spacing */
body.cv-lang-ar button svg,
body.cv-lang-ar a svg,
body.cv-lang-ar button i,
body.cv-lang-ar a i {
    margin-left: 6px;
    margin-right: 0;
}

/* Mobile Nav Drawer Mirroring */
body.cv-lang-ar #mobile-nav-drawer {
    text-align: right !important;
    direction: rtl !important;
}

body.cv-lang-ar .mobile-pillar-toggle {
    text-align: right !important;
}

body.cv-lang-ar #mobile-nav-drawer .hidden.pl-3 {
    padding-left: 0 !important;
    padding-right: 1.25rem !important;
}

/* Form Inputs */
body.cv-lang-ar input[type="text"],
body.cv-lang-ar input[type="email"],
body.cv-lang-ar textarea {
    direction: rtl !important;
    text-align: right !important;
}

/* Telephone Numbers & Dial Codes: Strictly LTR and isolated across all browsers */
body.cv-lang-ar a[href^="tel:"],
body.cv-lang-ar .phone-number,
body.cv-lang-ar .cv-phone,
body.cv-lang-ar [data-phone],
body.cv-lang-ar input[type="tel"] {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    text-align: left !important;
}

body.cv-lang-ar a[href^="tel:"] span,
body.cv-lang-ar .phone-number span {
    direction: ltr !important;
    unicode-bidi: isolate !important;
    display: inline-block !important;
}

/* Floating WhatsApp / Action Buttons */
body.cv-lang-ar .floating-whatsapp,
body.cv-lang-ar #cv-floating-contact,
body.cv-lang-ar .cv-whatsapp-btn {
    left: 24px !important;
    right: auto !important;
}

/* Footer layout */
body.cv-lang-ar footer {
    direction: rtl !important;
    text-align: right !important;
}

body.cv-lang-ar footer ul {
    padding-right: 0 !important;
}

body.cv-lang-ar footer .text-left {
    text-align: right !important;
}

/* Breadcrumbs */
body.cv-lang-ar .breadcrumb-separator {
    transform: scaleX(-1);
    display: inline-block;
}

/* Service & Project Cards */
body.cv-lang-ar .project-card,
body.cv-lang-ar .service-card {
    text-align: right !important;
}
