﻿/* ==============================
   RTL Override for Arabic
   ============================== */

/* Root adjustments for RTL */
body {
    direction: rtl;
    text-align: right;
}

/* Navbar */
.nav-container {
    flex-direction: row-reverse;
}

.nav-menu {
    text-align: right;
}

.nav-link::after {
    left: auto;
    right: 0;
}
/* Hero section */
.hero {
    background: url('/images/Hero.png') center/cover no-repeat;
    height: 60vh;
    position: relative;
    display: flex;
    align-items: center; /* vertically center everything */
    justify-content: center; /* horizontally center everything */
    text-align: center;
    color: var(--light);
}

    .hero .overlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
    }

    .hero .container {
        position: relative;
        z-index: 2;
        display: flex;
        flex-direction: column; /* stack title, paragraph, and button vertically */
        align-items: center; /* horizontally center them */
        justify-content: center; /* vertically center them inside hero */
        text-align: center;
        gap: 1rem; /* spacing between text and button */
    }

    .hero h1 {
        font-size: 3rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .hero::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 600px;
        z-index: 1;
    }

.btn-gold {
    background-color: var(--gold);
    color: var(--light);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    margin: 0 auto;
    text-align: center;
}

    .btn-gold:hover {
        background-color: #b9952b;
    }


/* Packages & Services cards */
.packages-grid,
.services-grid,
.process-steps,
.contact-cards,
.checkbox-group {
    direction: rtl;
}

/* Contact Form */
.contact-form {
    text-align: right;
}

.form-group input,
.form-group select,
.form-group textarea {
    text-align: right;
}

/* Footer */
.footer-container {
    direction: rtl;
}

.footer-section ul li i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* Social links */
.social-links {
    justify-content: center; /* keep centered */
}

/* Hero buttons & gold buttons */
.btn-gold {
    float: right;
}

/* Checkbox group */
.checkbox-group label {
    justify-content: flex-start;
}

/* Process steps */
.step-number {
    margin: 0 auto 1rem; /* center stays the same */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: row-reverse;
    }

    .phone-group {
        flex-direction: row-reverse;
    }
}

/* ==============================
   Phone input (intl-tel-input) RTL Fixes
   ============================== */

/* Keep plugin layout LTR internally */
body[dir="rtl"] .iti {
    direction: rtl;
    text-align: right;
    position: relative;
}

/* Position the flag on the right */
body[dir="rtl"] .iti__flag-container {
    position: absolute;
    right: 0 !important;
    left: auto !important;
    z-index: 2;
}

/* Adjust the input field for flag spacing */
body[dir="rtl"] .iti--allow-dropdown input,
body[dir="rtl"] .iti--separate-dial-code input {
    padding-right: 60px !important;
    padding-left: 10px !important;
    text-align: right !important;
}

/* Align the country dropdown correctly */
body[dir="rtl"] .iti__country-list {
    right: 0 !important;
    left: auto !important;
    text-align: right !important;
    direction: ltr !important;
}

/* Optional: Flip the dropdown arrow if visible */
body[dir="rtl"] .iti__arrow {
    left: 10px;
    right: auto;
}

/* ==============================
   Language switcher RTL
   ============================== */
.language-switcher {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
}

body[dir="rtl"] .language-switcher {
    justify-content: flex-end;
}

input[type="tel"] {
    direction: ltr;
    text-align: right;
}

/* Make plugin LTR internally */
body[dir="rtl"] .iti {
    direction: ltr;
    text-align: left;
    position: relative;
}

/* Move flag to the right */
body[dir="rtl"] .iti__flag-container {
    position: absolute;
    right: 0 !important;
    left: auto !important;
}

/* Input spacing when flag on the right */
body[dir="rtl"] .iti--allow-dropdown input,
body[dir="rtl"] .iti--separate-dial-code input {
    padding-right: 60px !important;
    padding-left: 10px !important;
    text-align: right !important;
}

/* Country dropdown aligned correctly */
body[dir="rtl"] .iti__country-list {
    right: 0 !important;
    left: auto !important;
    direction: rtl;
    text-align: right;
}

/* Optional: arrow fix */
body[dir="rtl"] .iti__arrow {
    left: 10px;
    right: auto;
}

/* ==============================
   Newsletter RTL Styling
   ============================== */
.newsletter {
    display: flex;
    flex-direction: row-reverse; /* input on the right, button on the left */
    margin-top: 1rem;
    max-width: 400px;
    margin-inline: auto;
    overflow: hidden; /* removes gaps between rounded corners */
    border-radius: 2rem;
    box-shadow: 0 0 0 1px #ccc;
}

    .newsletter input {
        flex: 2;
        padding: 0.6rem 1rem;
        border: none;
        outline: none;
        border-radius: 0; /* handled by container */
        text-align: right;
        font-size: 1rem;
    }

    .newsletter button {
        flex: 2;
        padding: 0.6rem 1.2rem;
        background: var(--gold);
        color: var(--dark);
        border: none;
        border-radius: 0; /* handled by container */
        font-weight: 600;
        cursor: pointer;
        white-space: nowrap;
        transition: var(--transition);
    }

        .newsletter button:hover {
            background: #e0c25c;
        }

.ltr-text {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
    text-align: left !important;
}

