/* =========================================
   1. VARIABLES & RESET
   ========================================= */

/* --- ENGLISH FONT (Morion) --- */
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-Thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-ThinItalic.otf') format('opentype');
    font-weight: 100;
    font-style: italic;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-UltraLight.otf') format('opentype');
    font-weight: 200;
    font-style: normal;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-UltraLightItalic.otf') format('opentype');
    font-weight: 200;
    font-style: italic;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-SemiboldItalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'Morion';
    src: url('fonts/MorionTest-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

/* --- ARABIC FONT (HTBaybarsText) --- */
@font-face {
    font-family: 'HTBaybarsText';
    src: url('fonts/HTBaybarsText-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'HTBaybarsText';
    src: url('fonts/HTBaybarsText-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'HTBaybarsText';
    src: url('fonts/HTBaybarsText-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'HTBaybarsText';
    src: url('fonts/HTBaybarsText-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}
@font-face {
    font-family: 'HTBaybarsText';
    src: url('fonts/HTBaybarsText-ExtraBold.otf') format('opentype');
    font-weight: 800;
    font-style: normal;
}

:root {
    --color-black: #050505;
    --color-white: #FFFFFF;
    --color-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Morion', serif;
    --font-body: 'Morion', serif; 
    
    --transition-smooth: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    width: 100px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

body.loaded .preloader {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* =========================================
   2. HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(5, 5, 5, 0.85); /* Slightly darker for better mobile read */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 5%;
}

.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.header-logo {
    height: 35px; /* Slightly refined size */
    width: auto;
    display: block;
    transition: opacity 0.3s;
}

.header-logo:hover { opacity: 0.8; }

.header-nav {
    flex: 2;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    gap: 3rem;
}

.modern-nav-link {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    padding: 5px 0;
}

.modern-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease, left 0.3s ease;
}

.modern-nav-link:hover { color: #fff; }
.modern-nav-link:hover::after { width: 100%; left: 0; }

.header-actions {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

/* Language Button Styling */
.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-family: inherit;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.05em;
}

.lang-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.mobile-toggle {
    display: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    margin-bottom: 6px;
    transition: all 0.3s;
}

body.menu-open .hamburger span:first-child { transform: rotate(45deg) translate(5px, 6px); }
body.menu-open .hamburger span:last-child { transform: rotate(-45deg) translate(5px, -6px); }

/* =========================================
   3. HERO SECTION (SLIDESHOW)
   ========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 550px; /* Safety for small screens */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #000;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
}

.hero-logo-img {
    width: 280px;
    max-width: 80%;
    height: auto;
}

/* =========================================
   4. COMPACT STORY SECTION
   ========================================= */
.story-compact {
    background-color: #FAFAFA; /* Light Paper Background */
    color: #111;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.story-center-wrapper {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.story-seal-anim {
    margin-bottom: 40px;
    animation: floatSeal 6s ease-in-out infinite;
}

@keyframes floatSeal {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.compact-headline {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.5;
    font-weight: 400;
    color: #050505;
    margin-bottom: 30px;
}

/* =========================================
   5. PRODUCTS
   ========================================= */
.products-section {
    padding: 8rem 0;
    background-color: var(--color-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.fluid-container { width: 95%; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 { font-size: 3rem; }

/* Desktop Accordion Logic */
.accordion-wrapper {
    display: flex;
    height: 600px;
    width: 100%;
    gap: 1px;
}

.acc-item {
    position: relative;
    flex: 1;
    overflow: hidden;
    cursor: pointer;
    transition: flex var(--transition-smooth);
    border-right: 1px solid var(--color-border);
}

.acc-item:first-child { border-left: 1px solid var(--color-border); }
.acc-item.active { flex: 3.5; }

.acc-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: filter 0.5s, transform 0.8s;
    transform: scale(1.1);
}

.acc-item:hover .acc-img,
.acc-item.active .acc-img {
    filter: grayscale(0%) brightness(0.9);
    transform: scale(1);
}

.acc-header {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 2;
    pointer-events: none;
}

.acc-num {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.acc-header h3 {
    font-size: 3rem;
    white-space: nowrap;
    transition: transform 0.5s;
}

.acc-item:not(.active) .acc-header h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-top: 15px;
}

.acc-details {
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s 0.2s;
    pointer-events: auto; 
}

.acc-item.active .acc-details {
    opacity: 1;
    transform: translateY(0);
}

.acc-details p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.btn-circle {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

/* =========================================
   6. CONTACT
   ========================================= */
.contact-parallax-section {
    position: relative;
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.overlay-heavy {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.contact-grid-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.testimonial-side { 
    padding-right: 2rem; 
    display: flex;
    justify-content: center; 
    align-items: center;
}

.contact-heart-img {
    width: 450px;
    max-width: 80%;
    height: auto;
    opacity: 0.8;
}

.form-side h3 { font-size: 2rem; margin-bottom: 2rem; }
.luxury-form input, .luxury-form textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 0;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
    margin-bottom: 2rem;
    border-radius: 0;
    font-family: inherit;
}
.luxury-form input:focus, .luxury-form textarea:focus { border-bottom-color: #fff; }
.btn-submit-luxury {
    background: #fff;
    color: #000;
    border: none;
    padding: 15px 40px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
    font-family: inherit;
}
.btn-submit-luxury:hover { background: #e0e0e0; }

/* =========================================
   7. FOOTER
   ========================================= */
.main-footer {
    background-color: #080808;
    color: #fff;
    padding-top: 6rem;
    padding-bottom: 2rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
    align-items: start;
}

.brand-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-brand-logo-big {
    width: 240px; 
    max-width: 100%;
    opacity: 1;
    display: block;
}

.footer-qatar-logo {
    width: 70px; 
    opacity: 1;
    display: block;
}

.footer-col h4 {
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    color: #666;
}

.footer-links li { margin-bottom: 0.8rem; }
.footer-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    color: #ccc;
}
.footer-links a:hover { color: #fff; }

.footer-social-list li { margin-bottom: 1rem; }
.footer-social-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ccc;
}
.footer-social-list a i { font-size: 1.2rem; width: 20px; text-align: center; }

.contact-details-col p { margin-bottom: 1rem; color: #bbb; font-weight: 300; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2rem;
    text-align: center;
    color: #444;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* =========================================
   8. MODALS (FROSTED OVERLAY + DARK BOX)
   ========================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

/* THE FROSTED OVERLAY */
.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); 
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
}

/* THE DARK POPUP BOX */
.modal-content {
    position: relative;
    background: #000000;
    color: #000000;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    border: 1px solid #111;
    padding: 40px;
    overflow-y: auto;
    box-shadow: 0 40px 80px rgba(0,0,0,0.3); 
    transform: translateY(50px);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}
.modal-header{ color: #ffffff; }

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    margin-top: -20px; /* Adjusted for better spacing */
    margin-right: -20px;
    background: #111;
    border: 1px solid #333;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: #fff;
    color: #000;
}

.modal-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #222;
    clear: both;
}

.modal-header h2 { 
    font-size: 2.5rem; 
    margin-bottom: 10px; 
    color: #ffffff; 
}

.modal-header p { 
    color: #888; 
    font-family: var(--font-body); 
}

/* Dark Theme Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

.menu-item {
    background: #ffffff;
    padding: 15px;
    border: 1px solid #222;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
}

.menu-item:hover { 
    transform: translateY(-5px); 
    border-color: #555; 
}

.menu-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #fcfcfc;
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: 2px;
}

.menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.menu-item:hover .menu-img img { transform: scale(1.05); }

.menu-info h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #000;
}

.menu-info .desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 35px;
}

.price-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: auto;
}

.price-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #222;
}

.price-list li span:last-child {
    color: #000;
    font-weight: 600;
}

/* =========================================
   9. MOBILE & RESPONSIVE
   ========================================= */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-black);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
}

body.menu-open .mobile-menu-overlay { transform: translateY(0); }

.m-link {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin: 1.2rem 0;
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
}

/* --- MOBILE TWEAKS --- */
@media (max-width: 1024px) {
    .desktop-only { display: none; }
    .mobile-toggle { display: block; }
    .site-header { padding: 0 20px; }
    
    .contact-grid-layout { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .testimonial-side { padding-right: 0; }
    .luxury-form { text-align: left; }
    
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .logo-col-left { grid-column: span 2; justify-content: center; align-items: center; }
    .footer-col { text-align: center; }
    .footer-social-list a { justify-content: center; }
    
    /* --- MOBILE ACCORDION (SLIMMER & MODERN) --- */
    .accordion-wrapper { flex-direction: column; height: auto; }
    
    .acc-item { 
        height: 70px; /* Slimmer collapsed state */
        border-right: none; 
        border-bottom: 1px solid var(--color-border);
        transition: height 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    }
    
    .acc-item.active { 
        height: 220px; /* FIXED: Reduced from 450px to 220px */
    }
    
    .acc-img {
        filter: brightness(0.4); /* Darker on mobile for text contrast */
        width: 100%;
    }
    
    .acc-item.active .acc-img {
        filter: brightness(0.6); /* Slightly brighter when active */
    }

    .acc-header {
        top: 20px;
        left: 20px;
        transform: translateY(0);
    }
    
    .acc-item:not(.active) .acc-header h3 {
        writing-mode: horizontal-tb;
        transform: rotate(0);
        margin-top: 0;
        font-size: 1.8rem; /* Smaller font on mobile */
    }
    
    .acc-item.active .acc-header h3 {
        font-size: 2rem;
    }

    .acc-details {
        bottom: 20px;
        left: 20px;
    }
    
    .acc-details p {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .btn-circle {
        width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .hero-logo-img { width: 220px; }
    .footer-grid { grid-template-columns: 1fr; }
    .logo-col-left { grid-column: span 1; }
    
    /* Mobile Modal Full Screen Fix */
    .modal { padding: 0; }
    .modal-content { 
        padding: 25px 20px; 
        width: 100%; 
        height: 100%; 
        max-height: 100%; 
        border: none; 
        border-radius: 0; 
        box-shadow: none;
    }
    
    .modal-close { 
        top: 15px; 
        right: 15px; 
        position: fixed; /* Stick to screen */
        margin: 0; 
    }
    
    .luxury-form input, .luxury-form textarea { font-size: 16px; } /* Prevents iOS zoom */
    .section-header h2 { font-size: 2.2rem; }

    .story-compact { padding: 60px 0; }
    .compact-headline { font-size: 1.3rem; line-height: 1.6; }
    
    .menu-grid {
        grid-template-columns: 1fr; /* Full width cards */
    }
    
    .menu-img { height: 200px; aspect-ratio: auto; }
}

@media (max-width: 480px) {
    .modal-header h2 { font-size: 2rem; }
    .footer-brand-logo-big { width: 200px; }
    .footer-qatar-logo { width: 60px; }
}


/* =========================================
   10. ARABIC / RTL OVERRIDES
   ========================================= */
body.lang-ar {
    direction: rtl;
    text-align: right;
    font-family: 'HTBaybarsText', sans-serif !important;
}

/* Force Font Change on all Typography when Arabic */
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3, body.lang-ar h4, 
body.lang-ar p, body.lang-ar a, body.lang-ar input, body.lang-ar textarea, 
body.lang-ar button, body.lang-ar .acc-num, body.lang-ar li {
    font-family: 'HTBaybarsText', sans-serif !important;
    letter-spacing: 0;
}

/* Header Reordering */
body.lang-ar .header-inner { flex-direction: row; }

/* Hero Section */
body.lang-ar .hero-content { direction: ltr; }
body.lang-ar .compact-body { direction: rtl; }

/* Accordion Adjustments for RTL */
body.lang-ar .acc-header {
    left: auto;
    right: 30px;
    text-align: right;
}

body.lang-ar .acc-details {
    left: auto;
    right: 30px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

body.lang-ar .acc-item {
    border-right: none;
    border-left: 1px solid var(--color-border);
}
body.lang-ar .acc-item:first-child {
    border-right: 1px solid var(--color-border);
}

/* Vertical Text Fix for Arabic Desktop */
body.lang-ar .acc-item:not(.active) .acc-header h3 {
    writing-mode: horizontal-tb;
    transform: rotate(-90deg);
    margin-top: 0;
    white-space: nowrap;
}

/* Contact Form */
body.lang-ar .luxury-form input,
body.lang-ar .luxury-form textarea { text-align: right; }
body.lang-ar .testimonial-side { padding-right: 0; padding-left: 2rem; }

/* Modal / Popup */
body.lang-ar .modal-close { float: left; margin-right: 0; margin-left: -10px; }
body.lang-ar .modal-header { text-align: center; }
body.lang-ar .price-list li { flex-direction: row; }

/* Footer */
body.lang-ar .footer-social-list a { flex-direction: row; justify-content: flex-start; }
body.lang-ar .footer-social-list a i { margin-left: 12px; margin-right: 0; }
body.lang-ar .footer-col { text-align: right; }

/* --- MOBILE SPECIFIC RTL FIXES --- */
@media (max-width: 1024px) {
    /* 1. FORCE FOOTER CENTER IN ARABIC MOBILE */
    body.lang-ar .footer-col { text-align: center !important; }
    body.lang-ar .footer-social-list a { justify-content: center !important; }
    body.lang-ar .testimonial-side { padding-left: 0; }
    
    /* 2. Fix Arabic Accordion on Mobile */
    body.lang-ar .acc-header {
        right: 20px;
        left: auto;
    }
    
    body.lang-ar .acc-details {
        right: 20px;
        left: auto;
        align-items: flex-end;
    }
    
    body.lang-ar .acc-item {
        border-left: none;
        border-right: none;
    }
    
    /* Ensure Arabic text is horizontal on mobile */
    body.lang-ar .acc-item:not(.active) .acc-header h3 {
        transform: rotate(0);
        writing-mode: horizontal-tb;
    }
}

@media (max-width: 768px) {
    body.lang-ar .modal-close {
        right: auto;
        left: 15px; /* Stick close button to left in Arabic mobile */
        position: fixed;
    }
}

/* =========================================
   CUSTOM SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f4f4f4; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #000; }

/* ARABIC MODAL CONTENT FIX */
body.lang-ar .modal-content,
body.lang-ar .modal-overlay {
    direction: rtl;
    text-align: right;
}

body.lang-ar .menu-item { text-align: right; }
body.lang-ar .arrow-icon { transform: scaleX(-1); }



/* --- ARABIC HEADER MENU FONT SIZE OVERRIDE --- */
body.lang-ar .header-nav.desktop-only .modern-nav-link {
    font-size: 1rem; /* CHANGE THIS VALUE to your preferred Arabic size */
}