/* ===================================================
   lang.css  –  Language / Direction Styles Only
   Do NOT add any non-language-related styles here.
=================================================== */

/* --------------------------------------------------
   1. Language Switcher Button
-------------------------------------------------- */
.lang-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid currentColor;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.lang-switcher-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
    text-decoration: none;
}

.lang-switcher-btn i {
    font-size: 0.9rem;
}

/* Mobile lang switcher inside the nav-menu */
.lang-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 0;
}

/* --------------------------------------------------
   2. LTR overrides  (html[dir="ltr"])
   All layout tweaks needed when switching to English
-------------------------------------------------- */

/* ── Header: tighten gaps so nav + btn + lang switcher fit in one row ── */
html[dir="ltr"] .header-container {
    flex-direction: row;
    gap: 12px;
}

html[dir="ltr"] .nav-menu {
    flex-shrink: 1;
}

html[dir="ltr"] .nav-menu li {
    margin: 0 8px;      /* tighter than default 12px for English */
}

html[dir="ltr"] .nav-menu a {
    font-size: 0.88rem;
    white-space: nowrap;
}

html[dir="ltr"] .nav-actions {
    gap: 8px;
    flex-shrink: 0;
}

html[dir="ltr"] .nav-actions .btn {
    padding: 8px 16px;
    font-size: 0.88rem;
    white-space: nowrap;
    margin-right: 0;
    margin-left: 8px;
}

/* Logo: keep compact */
html[dir="ltr"] .logo-container {
    flex-shrink: 0;
}

html[dir="ltr"] .logo {
    font-size: 1.5rem;
}

/* ── nav underline: LTR should animate from left ── */
html[dir="ltr"] .nav-menu a::after {
    right: auto;
    left: 0;
}

/* ── logo icon margin direction ── */
html[dir="ltr"] .logo i {
    margin-left: 0;
    margin-right: 10px;
}

/* ── logo-description bullet: flip position ── */
html[dir="ltr"] .logo-description span {
    padding-left: 0;
    padding-right: 15px;
}

html[dir="ltr"] .logo-description span:not(:last-child)::after {
    left: auto;
    right: 0;
}

/* ── service-link arrow direction ── */
html[dir="ltr"] .service-link {
    flex-direction: row;
}

html[dir="ltr"] .service-link i {
    transform: scaleX(-1); /* flip fa-arrow-left to point right */
}

/* ── contact-icon spacing ── */
html[dir="ltr"] .contact-icon {
    margin-left: 0;
    margin-right: 15px;
}

/* ── footer contact icon spacing ── */
html[dir="ltr"] .footer-contact p i {
    margin-right: 8px;
    margin-left: 0;
}

/* --------------------------------------------------
   3. Body / global font for English (LTR)
-------------------------------------------------- */
html[dir="ltr"] body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: left;
}

/* --------------------------------------------------
   4. Preserve phone/number direction inside any layout
   (phone numbers must always be LTR)
-------------------------------------------------- */
[dir="ltr"] span[dir="ltr"],
[dir="rtl"] span[dir="ltr"] {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
}
