/* ==========================================================================
   Alsulaiti Group - Luxury Arabic RTL Stylesheet
   Designed to match preview_version/index.html with 100% precision
   ========================================================================== */

[dir="rtl"] {
    font-family: 'Tajawal', 'Outfit', sans-serif !important;
    text-align: right;
}

[dir="rtl"] h1, 
[dir="rtl"] h2, 
[dir="rtl"] h3, 
[dir="rtl"] h4, 
[dir="rtl"] h5, 
[dir="rtl"] h6,
[dir="rtl"] p,
[dir="rtl"] span,
[dir="rtl"] a,
[dir="rtl"] button {
    font-family: 'Tajawal', 'Outfit', sans-serif !important;
}

/* Navbar: In RTL, .nav-links stays on the right and .lang-toggle-wrapper sits on the left */
[dir="rtl"] .nav-right {
    flex-direction: row !important;
}

[dir="rtl"] .nav-links {
    flex-direction: row !important;
    gap: 2rem;
}

@media (max-width: 992px) {
    [dir="rtl"] .nav-links {
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .nav-links {
        flex-direction: column !important;
        gap: 0.35rem !important;
        text-align: right;
    }
}

/* Keep the language slider internal mechanics LTR so the active indicator pill aligns accurately */
[dir="rtl"] .lang-slider-inner {
    direction: ltr !important;
}

[dir="rtl"] .lang-text-en {
    font-family: 'Outfit', sans-serif !important;
}

[dir="rtl"] .lang-text-ar {
    font-family: 'Tajawal', sans-serif !important;
}

/* Hero Section: White gradient mirrored to the RIGHT behind the Arabic headline */
[dir="rtl"] .hero-bg-gradient {
    background: linear-gradient(
        -105deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.90) 25%,
        rgba(255, 255, 255, 0.65) 42%,
        rgba(255, 255, 255, 0.20) 55%,
        transparent 68%
    );
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .hero-text h1 {
    text-align: right;
    line-height: 1.38 !important;
    padding-bottom: 0.14em !important;
    padding-top: 0.05em !important;
}

/* Fix clipped Arabic descender dots (نقطتين الياء) in all gradient headings */
[dir="rtl"] .text-gradient-premium,
[dir="rtl"] .section-header h2,
[dir="rtl"] .cluster-title {
    line-height: 1.38 !important;
    padding-bottom: 0.14em !important;
    padding-top: 0.04em !important;
}

/* Hero Feature Card ("استكشف محفظة أعمالنا") placed on the LEFT in Arabic while .hero-text stays on the RIGHT */
[dir="rtl"] .hero-feature-card {
    right: auto;
    left: 40px;
    text-align: right;
}

@media (max-width: 992px) {
    [dir="rtl"] .hero-bg-gradient {
        background: linear-gradient(185deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.2) 70%, transparent 88%);
    }

    [dir="rtl"] .hero-feature-card {
        left: auto;
        right: auto;
    }
}

[dir="rtl"] .hero-feature-card h3 {
    text-align: right !important;
}

[dir="rtl"] .hero-feature-row {
    flex-direction: row-reverse;
}

@media (max-width: 768px) {
    [dir="rtl"] .hero-feature-card h3 {
        text-align: center !important;
        width: 100%;
        display: block;
    }

    [dir="rtl"] .hero-feature-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}

/* About Section */
[dir="rtl"] .section-header {
    text-align: right;
}

[dir="rtl"] .section-header.center {
    text-align: center;
}

[dir="rtl"] .about-card {
    text-align: right;
}

/* Brand Clusters & Cards (Universal RTL Mirroring for All Current & Future Brands) */
[dir="rtl"] .brand-cluster {
    direction: rtl;
}

[dir="rtl"] .cluster-text {
    text-align: right;
}

[dir="rtl"] .brand-card {
    background-image:
        linear-gradient(var(--card-bg, #fff), var(--card-bg, #fff)),
        linear-gradient(to bottom left, rgba(255, 255, 255, 0.9), rgba(15, 36, 69, 0.25));
}

/* Position card videos on the left in Arabic so the visual subject shines on the left while text is legible on the right */
[dir="rtl"] .brand-card-bg,
[dir="rtl"] .brand-card-video {
    object-position: left top;
    background-position: left top;
}

[dir="rtl"] .brand-card.shift-video-right .brand-card-video {
    object-position: 25% center;
}

/* Mirror the 225deg LTR overlay to 135deg in RTL so the solid card color sits behind the Arabic text on the RIGHT and fades to transparent on the LEFT */
[dir="rtl"] .brand-card-overlay {
    background: linear-gradient(135deg, transparent 15%, rgba(255, 255, 255, 0.35) 35%, var(--card-bg, #fff) 60%) !important;
}

[dir="rtl"] .dark-navy .brand-card-overlay {
    background: linear-gradient(135deg, transparent 15%, rgba(15, 36, 69, 0.35) 35%, var(--card-dark-navy) 60%) !important;
}

[dir="rtl"] .dark-green .brand-card-overlay {
    background: linear-gradient(135deg, transparent 15%, rgba(34, 84, 61, 0.35) 35%, var(--card-dark-green) 60%) !important;
}

[dir="rtl"] .brand-info {
    text-align: right;
    align-items: flex-start;
}

[dir="rtl"] .brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

[dir="rtl"] .brand-link i {
    transform: rotate(180deg);
}

/* Subpages */
[dir="rtl"] .subpage-nav-bar {
    flex-direction: row-reverse;
}

[dir="rtl"] .subpage-back-btn i {
    transform: rotate(180deg);
}

/* Contact Section */
[dir="rtl"] .contact-section .section-header {
    text-align: right !important;
}

[dir="rtl"] .contact-card.align-left {
    text-align: right;
}

@media (min-width: 993px) {
    [dir="rtl"] .contact-card-wrapper:first-child .contact-card {
        background: #FFFFFF url('assets/qatar_map.jpg') calc(15% - 100px) center / 120% auto no-repeat;
    }

    [dir="rtl"] .contact-card-wrapper:first-child .contact-card::before {
        background: linear-gradient(to left, rgba(255, 255, 255, 1) 20%, rgba(255, 255, 255, 0.4) 70%, rgba(255, 255, 255, 0.15) 100%);
    }
}

/* Only flip directional arrow in RTL; keep phone and envelope icons upright */
[dir="rtl"] .contact-card-btn i.ph-arrow-right {
    transform: rotate(180deg);
}

/* Footer */
[dir="rtl"] .footer-container {
    flex-direction: row-reverse;
}

[dir="rtl"] .footer-info {
    text-align: right;
}

[dir="rtl"] .footer-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .link-group {
    text-align: right;
}

[dir="rtl"] .footer-bottom {
    text-align: center;
}


/* RTL Stacked Contact Emails */
[dir="rtl"] .contact-card.align-right .contact-emails-stack {
    align-items: flex-start;
}

[dir="rtl"] .contact-card-btn.compact-email-btn i.ph-paper-plane-right {
    transform: scaleX(-1);
}

@media (max-width: 768px) {
    [dir="rtl"] .contact-card.align-right .contact-emails-stack {
        align-items: center !important;
    }
}



/* RTL Centered & Equal Length Contact Email Capsules */
[dir="rtl"] .contact-card.has-multiple-emails {
    align-items: center !important;
    text-align: center !important;
}

[dir="rtl"] .contact-card.has-multiple-emails .contact-card-title {
    text-align: center !important;
}

[dir="rtl"] .contact-emails-stack {
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
}

[dir="rtl"] .contact-card-btn.compact-email-btn {
    width: 225px !important;
    height: 26px !important;
    min-height: 26px !important;
    max-height: 26px !important;
    margin: 0 auto !important;
}

[dir="rtl"] .contact-card-btn.compact-email-btn .email-text {
    text-align: right !important;
    direction: ltr !important;
}

[dir="rtl"] .contact-card-btn.compact-email-btn i.ph-paper-plane-right {
    margin-left: 0 !important;
    margin-right: 0.35rem !important;
    transform: scaleX(-1) !important;
}



/* RTL Elegant Snug Email Capsules */
[dir="rtl"] .contact-card-btn.compact-email-btn .email-text {
    text-align: right !important;
    direction: ltr !important;
}

[dir="rtl"] .contact-card-btn.compact-email-btn i {
    margin-left: 0 !important;
    margin-right: 8px !important;
    transform: scaleX(-1) !important;
}


/* RTL Contact Cards Centering */
[dir="rtl"] .contact-card {
    justify-content: center !important;
}

[dir="rtl"] .contact-card.has-multiple-emails {
    justify-content: center !important;
    gap: 0.55rem !important;
}

