/* =========================================================
   Bilingual / RTL Support
========================================================= */

html[dir="rtl"],
.rtl-site {
    direction: rtl;
}

html[dir="rtl"] body,
.rtl-site {
    text-align: right;
    font-family: "Tahoma", "Arial", sans-serif;
}

html[dir="ltr"],
.ltr-site {
    direction: ltr;
}

/* =========================
   Header Language Switcher
========================= */

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.language-switcher {
    height: 42px;
    padding: 4px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

.language-switcher a {
    min-width: 40px;
    height: 34px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.74);
    text-decoration: none;
    font-size: 13px;
    font-weight: 950;
    transition: 0.25s ease;
}

.language-switcher a:hover,
.language-switcher a.active {
    color: #ffffff;
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07));
}

/* =========================
   RTL Header
========================= */

.rtl-site .site-header {
    direction: rtl;
}

.rtl-site .brand {
    flex-direction: row;
}

.rtl-site .site-nav {
    direction: rtl;
}

.rtl-site .site-nav a {
    letter-spacing: 0;
}

.rtl-site .header-actions {
    direction: ltr;
}

.rtl-site .header-cta {
    direction: rtl;
}

/* =========================
   RTL Generic Layout Fixes
========================= */

.rtl-site .hero-copy,
.rtl-site .section-head,
.rtl-site .section-intro,
.rtl-site .text-block,
.rtl-site .contact-info-panel,
.rtl-site .contact-form-panel,
.rtl-site .project-detail-copy,
.rtl-site .project-detail-content-card,
.rtl-site .project-scope-card,
.rtl-site .footer-grid,
.rtl-site .footer-cta {
    text-align: right;
}

.rtl-site .hero-actions,
.rtl-site .project-detail-actions,
.rtl-site .project-contact-actions,
.rtl-site .form-actions {
    justify-content: flex-start;
}

.rtl-site .home-section-head-row {
    direction: rtl;
}

.rtl-site .home-project-row {
    direction: rtl;
}

.rtl-site .contact-form input,
.rtl-site .contact-form textarea,
.rtl-site .contact-form select {
    text-align: right;
}

.rtl-site .projects-table {
    direction: rtl;
}

.rtl-site .projects-table th,
.rtl-site .projects-table td {
    text-align: right;
}

.rtl-site .floating-contact {
    right: auto;
    left: 22px;
}

/* =========================
   Mobile
========================= */

@media (max-width: 1100px) {
    .header-actions {
        margin-inline-start: auto;
    }

    .header-actions .header-cta {
        display: none !important;
    }

    .language-switcher {
        height: 40px;
    }

    .language-switcher a {
        min-width: 36px;
        height: 32px;
        font-size: 12px;
    }

    .rtl-site .site-nav.open a {
        justify-content: flex-start !important;
        text-align: right;
    }
}

@media (max-width: 700px) {
    .floating-contact {
        left: 12px !important;
        right: 12px !important;
    }
}

@media (max-width: 520px) {
    .header-actions {
        gap: 6px;
    }

    .language-switcher {
        padding: 3px;
    }

    .language-switcher a {
        min-width: 32px;
        padding: 0 8px;
    }
}