/* ==========================================================================
   Right-to-left layout (Arabic, /ar)
   Loaded by welcome.blade.php only when <html dir="rtl">, after custom.css.
   Every rule is scoped under [dir="rtl"] so the file can never touch the
   French, English or German pages.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------
   Latin text (numbers, e-mails, "Fayrouz") keeps Poppins; Arabic glyphs,
   which Poppins does not have, fall through to Noto Kufi Arabic. The script
   headings keep Great Vibes for Latin and use the calligraphic Aref Ruqaa
   for Arabic. Both fonts are loaded from Google Fonts on Arabic pages only. */
[dir="rtl"] {
    --fz-font-sans: "Poppins", "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
    --fz-font-script: "Great Vibes", "Aref Ruqaa", "Noto Kufi Arabic", serif;
}

[dir="rtl"] body,
[dir="rtl"] .hero .hero-heading,
[dir="rtl"] .hero-reservation-btn,
[dir="rtl"] .reservation-submit-btn,
[dir="rtl"] .makereservation .form-group .btn.reservation-submit-btn {
    font-family: var(--fz-font-sans);
}

[dir="rtl"] .hero-brand,
[dir="rtl"] .heading-section .subheading,
[dir="rtl"] .hero__logo {
    font-family: var(--fz-font-script);
}

/* Bootstrap 4 reboot sets body, caption and dropdown menus to text-align: left;
   in RTL every block that does not set its own alignment starts on the right. */
[dir="rtl"] body,
[dir="rtl"] caption,
[dir="rtl"] .dropdown-menu {
    text-align: right;
}

/* Letter-spacing breaks the joining of Arabic letters; uppercase has no effect on them. */
[dir="rtl"] body :lang(ar) {
    letter-spacing: 0 !important;
}

[dir="rtl"] .hero-tagline {
    line-height: 1.9;
    letter-spacing: 0;
}

[dir="rtl"] .map-embed__load {
    letter-spacing: 0;
    text-transform: none;
}

/* --- Top bar --------------------------------------------------------------- */
[dir="rtl"] .top .topper.pr-4 {
    padding-right: 0 !important;
    padding-left: 1.5rem !important;
}

[dir="rtl"] .top .topper .icon.mr-2 {
    margin-right: 0 !important;
    margin-left: 0.5rem !important;
}

[dir="rtl"] .top .text-lg-right {
    text-align: left !important;
}

/* --- Navbar + language dropdown --------------------------------------------- */
[dir="rtl"] .navbar-brand {
    margin-right: 0;
    margin-left: 1rem;
}

[dir="rtl"] #ftco-nav .navbar-nav.ml-auto {
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-right: 0;
}

/* --- Mobile slide-out menu: comes in from the left ------------------------ */
[dir="rtl"] .mobile-nav__content {
    transform: translateX(-120%);
}

[dir="rtl"] .mobile-nav.is-visible .mobile-nav__content {
    transform: translateX(0);
}

[dir="rtl"] .mobile-nav__link:hover,
[dir="rtl"] .mobile-nav__link:focus {
    transform: translateX(-2px);
}

/* --- Arrow icons point the reading direction ------------------------------- */
[dir="rtl"] .hero-reservation-btn__icon,
[dir="rtl"] .reservation-submit-btn__icon {
    transform: scaleX(-1);
}

[dir="rtl"] .hero-reservation-btn:hover .hero-reservation-btn__icon {
    transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .reservation-submit-btn:hover:not(:disabled) .reservation-submit-btn__icon {
    transform: scaleX(-1) translateX(4px);
}

[dir="rtl"] .reservation-submit-btn:disabled .reservation-submit-btn__icon,
[dir="rtl"] .reservation-submit-btn[disabled] .reservation-submit-btn__icon {
    transform: scaleX(-1) !important;
}

/* --- Menu ------------------------------------------------------------------
   The name / dotted leader / price row mirrors through the logical margins of
   custom.css. Names, descriptions and prices may be Arabic or fall back to
   French: each takes the direction of its own text, so "Falafel (6)" or
   "12,50 €" never get their parentheses or currency moved around. */
[dir="rtl"] .menu-item__name,
[dir="rtl"] .menu-item__description {
    unicode-bidi: plaintext;
    text-align: right;
}

[dir="rtl"] .menu-item__price {
    unicode-bidi: plaintext;
    white-space: nowrap;
}

/* Numeric prices carry dir="ltr": "13,00 €" has no strong character, so
   plaintext alone could put the currency first. Price labels (text) keep
   the plaintext rule above. */
[dir="rtl"] .menu-item__price[dir="ltr"] {
    direction: ltr;
    unicode-bidi: isolate;
}

/* --- Reservation form ------------------------------------------------------ */
/* Calendar icon of the date field (positioned inline at left: 12px) */
[dir="rtl"] .makereservation .form-group .position-relative > .position-absolute {
    left: auto !important;
    right: 12px;
}

/* E-mail addresses and phone numbers are typed left-to-right, on the reading side. */
[dir="rtl"] .reservation-form input[type="email"],
[dir="rtl"] .reservation-form input[type="tel"] {
    direction: ltr;
    text-align: right;
}

[dir="rtl"] .reservation-form input[type="email"]::placeholder,
[dir="rtl"] .reservation-form input[type="tel"]::placeholder {
    direction: rtl;
}

[dir="rtl"] .reservation-party-hint-link {
    unicode-bidi: isolate;
}

/* --- Flatpickr calendar (appended to <body>, so it inherits dir="rtl") ----
   Days and weekdays are flex rows and mirror by themselves; the month arrows
   are absolutely positioned and swap sides. */
[dir="rtl"] .flatpickr-months .flatpickr-prev-month.flatpickr-prev-month {
    left: auto;
    right: 0;
}

[dir="rtl"] .flatpickr-months .flatpickr-next-month.flatpickr-next-month {
    right: auto;
    left: 0;
}

[dir="rtl"] .flatpickr-months .flatpickr-prev-month svg,
[dir="rtl"] .flatpickr-months .flatpickr-next-month svg {
    transform: scaleX(-1);
}

[dir="rtl"] .flatpickr-current-month .numInputWrapper {
    direction: ltr;
}

/* --- Footer ---------------------------------------------------------------- */
/* Bootstrap 4 only resets padding-left; the browser's list indent sits on the right in RTL. */
[dir="rtl"] .list-unstyled {
    padding-right: 0;
}

[dir="rtl"] .ftco-footer-social li {
    margin: 0 0 0 10px;
}

[dir="rtl"] .ftco-footer-social li a {
    float: right;
}

/* --- Section headings: letter-spacing would break the joined Arabic letters ---------------------------- */
[dir="rtl"] .heading-section .section-heading__subtitle {
    letter-spacing: normal;
}

/* --- The menu in Arabic: a classical Arabic serif (Amiri) in place of the Latin serif, which has no Arabic letters.
   Amiri sits a little smaller on the line, hence the larger sizes; letter-spacing would break the joined letters. --- */
[dir="rtl"] .menu-category__title,
[dir="rtl"] .menu-category__note,
[dir="rtl"] .menu-halal-note,
[dir="rtl"] .menu-item__name,
[dir="rtl"] .menu-item__description,
[dir="rtl"] .menu-tabs__button {
    font-family: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
    font-style: normal;
    letter-spacing: normal;
}

[dir="rtl"] .menu-category__title {
    font-size: clamp(2.2rem, 1.5rem + 2.8vw, 3.4rem);
    font-weight: 700;
}

[dir="rtl"] .menu-category__note,
[dir="rtl"] .menu-halal-note {
    font-size: 1.3rem;
}

[dir="rtl"] .menu-item__name {
    font-size: 1.55rem;
    font-weight: 700;
}

[dir="rtl"] .menu-item__description {
    font-size: 1.25rem;
    line-height: 1.7;
}

[dir="rtl"] .menu-tabs__button {
    font-size: 1.35rem;
}

/* --- Services: the Arabic serif in place of the Latin one --- */
[dir="rtl"] .services__name,
[dir="rtl"] .services__text {
    font-family: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
    letter-spacing: normal;
}

[dir="rtl"] .services__name {
    font-size: clamp(1.65rem, 1.3rem + 1vw, 2.1rem);
    font-weight: 700;
}

[dir="rtl"] .services__text {
    font-size: 1.3rem;
    line-height: 1.7;
}

/* --- Booking sentence under the reservation title, in Arabic --- */
[dir="rtl"] .section-heading__lead {
    font-family: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
    font-size: 1.45rem;
    line-height: 1.7;
}

/* --- Information pages: Arabic serif headings, no italics, no letter-spacing ----------------- */
[dir="rtl"] .info-page__title,
[dir="rtl"] .info-page__lead,
[dir="rtl"] .info-section h2,
[dir="rtl"] .faq__question,
[dir="rtl"] .page-cta__text {
    font-family: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;
    font-style: normal;
    letter-spacing: 0;
}

[dir="rtl"] .info-page__title,
[dir="rtl"] .info-section h2,
