/* Import the Elegant Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* Apply the font to the whole site */
body, h1, h2, h3, h4, h5, h6, p, a, span, button, input {
    font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif !important;
}

/* Optimization: Arabic script needs slightly more space between lines to look elegant */
body {
    line-height: 1.7;
}

/* Ensure bold text looks sharp in Arabic */
h1, h2, h3, .logo, .price {
    font-weight: 700;
    letter-spacing: 0; /* Arabic looks better without letter-spacing */
}

/* --- Global Variables & Theme --- */
:root {
    --primary-white: #FFFFFF;
    --primary-black: #000000;
    --primary-gold: #C9A227;
    --light-gray: #F4F4F4;
    --smooth-radius: 30px; /* Smooth rounded edges for everything */
}

/* --- Global Reset & Smoothness --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background-color: var(--primary-white);
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
}


/* Global Rounded Corners - Applies to buttons, images, and cards */
img, .btn, .service-card, .standard-img, .video-card-vertical, 
.vertical-video-wrapper, .video-container video, .icon-circle {
    border-radius: var(--smooth-radius) !important;
}

/* --- Blurred Background Logic (for first 3 pages) --- */
body.bg-blurred::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('images/bg 1.jpg') no-repeat center center/cover;
    filter: blur(2px); /* Blurred background */
    opacity: 0.35; /* Subtle transparency to keep text readable */
    z-index: -1;
}

/* --- Header & Navigation --- */
header {
    background-color: var(--primary-black);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    width: 50px;
    height: 50px;
    background: url(images/logo\ .jpg) no-repeat center;
    background-size: contain;
}

nav a {
    text-decoration: none;
    color: var(--primary-white);
    margin-left: 30px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover { color: var(--primary-gold); }

/* --- Animations --- */
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(80px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-left { animation: slideInLeft 1s ease-out forwards; }
.animate-right { animation: slideInRight 1s ease-out forwards; }
.animate-fade { animation: fadeInUp 1s ease-out forwards; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    background: var(--primary-gold);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 0.3s ease, background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.1); /* Button gets bigger */
    background: #b08d1f;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

/* --- Content Layouts (Home/About) --- */
.split-screen {
    display: flex;
    align-items: center;
    padding: 60px 5%;
    gap: 50px;
    flex-wrap: wrap;
}

.text-side { flex: 1; min-width: 300px; }
.image-container { flex: 1; min-width: 300px; }

/* Uniform image measurements */
.standard-img {
    width: 100%;
    height: 500px; 
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.standard-img:hover { transform: scale(1.03); }

h1, h2 { color: var(--primary-gold); text-transform: uppercase; margin-bottom: 20px; }

.underline {
    width: 100px;
    height: 3px;
    background: var(--primary-gold);
    margin-bottom: 30px;
}

/* --- Services Section --- */
.services-bg { padding: 60px 5%; }

/* The 3 Centered Photos */
.services-photo-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.services-photo-row img {
    width: 380px;
    height: 480px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.6s ease;
}

.services-photo-row img:hover { transform: scale(1.05); }

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-bottom: 5px solid var(--primary-gold);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05); /* Card gets bigger */
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-card span { font-size: 32px; font-weight: bold; color: var(--primary-gold); }

/* --- Contact Page Split Layout --- */
.contact-split-layout {
    display: flex;
    min-height: 90vh;
    background-color: #262626; /* Dark charcoal from the image */
}

.contact-video-side {
    flex: 1;
    overflow: hidden;
}

.contact-video-side video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 !important;
}

.contact-text-side {
    flex: 1;
    padding: 8% 10%;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-text-side h1 {
    font-size: 3.5rem;
    color: white !important;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.horizontal-line {
    width: 100%;
    height: 2px;
    background-color: #444;
    margin-bottom: 50px;
}

.contact-detail-box {
    margin-bottom: 40px;
}

.contact-detail-box h3 {
    font-size: 14px;
    letter-spacing: 3px;
    color: #eee;
    margin-bottom: 15px;
}

.contact-detail-box p {
    font-size: 1.2rem;
    color: #ccc;
    line-height: 1.8;
}

.accessibility-text {
    font-size: 14px;
    color: #888;
    margin-bottom: 50px;
}

.contact-social-row {
    display: flex;
    align-items: center;
    gap: 25px;
}

.social-label {
    font-weight: bold;
    letter-spacing: 2px;
    font-size: 14px;
}

.social-icons a {
    color: white;
    font-size: 20px;
    margin-right: 20px;
    transition: 0.3s;
}

.social-icons a:hover { color: var(--primary-gold); }

/* --- Footer Styles --- */
.main-footer {
    background-color: var(--primary-black);
    color: white;
    padding: 60px 8% 30px 8%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
}

.footer-logo { font-size: 24px; color: white !important; }
.footer-branding p { color: #888; font-size: 14px; margin-top: 10px; max-width: 350px; }

.footer-socials a {
    color: white;
    font-size: 18px;
    margin-left: 20px;
    transition: 0.3s;
}

.footer-links-row {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-links-row a {
    color: #bbb;
    text-decoration: none;
    font-size: 14px;
}

.footer-bottom-line {
    border-top: 1px solid #333;
    margin-bottom: 25px;
}

.footer-legal {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
}

.legal-links a { color: #666; text-decoration: none; }
.legal-links span { margin: 0 10px; }

/* Responsive */
@media (max-width: 900px) {
    .contact-split-layout { flex-direction: column; }
    .contact-video-side { height: 400px; }
    .footer-top, .footer-legal { flex-direction: column; gap: 20px; }
}

/* --- Footer --- */
footer {
    background-color: var(--primary-black);
    color: white;
    padding: 60px 8% 30px 8%;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-logo-section h2 { color: white !important; font-size: 24px; }
.footer-tagline { color: #888; margin-top: 15px; max-width: 350px; }

.footer-nav-links {
    display: flex;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.footer-nav-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.footer-divider { border-top: 1px solid #333; margin-bottom: 20px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}
/* --- Footer Centering & Image Icon --- */

.footer-legal {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Vertical alignment */
    color: #666;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 20px;
}

/* Centers the "Developed by" text */
.developed-by {
    flex: 1; /* Takes up middle space */
    text-align: right;
    color: var(--primary-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Styles for the Facebook image link */
.footer-img-link {
    width: 45px; /* Small icon size */
    height: 45px;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 4px !important; 
    transition: transform 0.4s ease;
}

.footer-img-link:hover {
    transform: scale(1.2);
}


/* Mobile fix for footer */
@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
    .developed-by {
        order: -1; /* Puts developer name at top on mobile */
        margin-bottom: 10px;
    }
}
/* --- WhatsApp Social Item Styles --- */

.social-item {
    display: flex;
    align-items: center;
    gap: 18px; /* المسافة بين الأيقونة والنص */
    text-decoration: none;
    color: inherit; /* ليأخذ لون النص المحيط به (أبيض في التواصل، ورمادي في الفوتر) */
    transition: transform 0.3s ease;
}

.social-item:hover {
    transform: translateY(-3px); /* حركة بسيطة عند التمرير */
}

.footer-social-img {
    width: 30px;
    height: 30px;
    object-fit: contain;
    border-radius: 0 !important; /* إلغاء الحواف الدائرية الكبيرة للأيقونة */
}


.social-item span {
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 1px;
}

/* تعديل خاص للفوتر لضمان ظهور النص باللون الأبيض */
.footer-socials .social-item span {
    color: #fff;
}

/* تنسيق إضافي لصفحة التواصل لضمان المحاذاة */
.contact-social-row .social-icons {
    display: flex;
    align-items: center;
}
/* أيقونة الترجمة في الهيدر */
.translate-icon {
    width: 24px;
    height: 24px;
    vertical-align: middle;
    filter: invert(1); /* لجعل الأيقونة بيضاء لتناسب الهيدر الأسود */
    transition: transform 0.3s ease;
}

.translate-link:hover .translate-icon {
    transform: scale(1.2) rotate(10deg);
}

/* دعم اللغة العربية (RTL) */
[dir="rtl"] nav a {
    margin-left: 0;
    margin-right: 30px;
}

[dir="rtl"] .animate-left {
    animation: slideInRight 1s ease-out forwards;
}

[dir="rtl"] .animate-right {
    animation: slideInLeft 1s ease-out forwards;
}

[dir="rtl"] .developed-by {
    text-align: left; /* لعكس المحاذاة في الفوتر */
}

/* تعديل المسافات في الفوتر عند قلب الاتجاه */
[dir="rtl"] .footer-social-img {
    margin-left: 10px;
    margin-right: 0;
}
/* --- تعديلات الهواتف لموقع العود العتيق --- */

@media (max-width: 768px) {
    /* 1. إظهار القائمة المخفية وترتيبها */
    .hide-mobile { 
        display: flex !important; /* إجبار الأزرار على الظهور */
        justify-content: center;
        gap: 15px;
        order: 2; /* وضع الروابط تحت اللوجو */
        width: 100%;
    }

    #navbar {
        flex-direction: column; /* ترتيب العناصر عمودياً */
        padding: 15px !important;
        height: auto;
        gap: 15px;
    }

    .nav-links a {
        margin-right: 0;
        font-size: 0.8rem; /* تصغير الخط قليلاً ليناسب الشاشة */
    }

    .brand {
        order: 1; /* اللوجو أولاً */
    }

    .nav-actions {
        position: absolute;
        top: 20px;
        right: 20px;
        order: 3;
    }

    /* 2. تحسين الهيرو (واجهة الموقع) */
    .hero-content .title {
        font-size: 2.2rem; /* تصغير العنوان ليناسب عرض الهاتف */
        line-height: 1.2;
    }

    .hero-logo img {
        width: 250px !important; /* تصغير اللوجو الدائري في الهاتف */
    }

    /* 3. ترتيب المنتجات (Product Grid) */
    .product-grid {
        grid-template-columns: 1fr; /* عرض منتج واحد في الصف */
        gap: 30px;
    }

    /* 4. تحسين نافذة المتجر (Shop Overlay) */
    .items-grid {
        grid-template-columns: repeat(2, 1fr); /* عرض منتجين بجانب بعض في المتجر */
        gap: 15px;
        padding: 10px;
    }

    .shop-item h4 {
        font-size: 0.8rem;
        height: 40px;
    }

    /* 5. تحسين قسم "من نحن" (Heritage) */
    .heritage-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .heritage-image img {
        height: 300px;
    }

    .stats {
        justify-content: center;
    }

    /* 6. نافذة "قصتنا" المنبثقة */
    .full-screen-overlay {
        padding: 20px !important;
        width: 95% !important;
    }

    .about-sentence {
        font-size: 0.95rem;
    }

    /* 7. الفوتر (أسفل الموقع) */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-column {
        align-items: center;
    }
}

/* تحسينات عامة للمس ولمسة الهاتف */
html {
    scroll-behavior: smooth;
}

button, .btn, .shop-trigger, .wa-inquiry {
    touch-action: manipulation; /* تحسين سرعة الاستجابة للمس */
}
/* --- تعديلات خاصة بتصغير الأزرار والاختصارات للهاتف فقط --- */

@media (max-width: 768px) {
    
    /* 1. تصغير أزرار التنقل في الـ Header (الرئيسية، المتجر، من نحن) */
    .nav-links a {
        font-size: 0.55rem !important; /* تصغير حجم الخط */
        margin-right: 6px !important; /* تقليل المسافة بين الأزرار */
        letter-spacing: 0.05em !important; /* تقليل تباعد الحروف ليناسب المساحة الضيقة */
        padding: 5px 2px !important;
    }

    /* 2. تصغير اسم العلامة التجارية في الهيدر ليعطي مساحة للأزرار */
    .brand h1 {
        font-size: 1.0rem !important; 
        letter-spacing: 0.1em !important;
    }
    .brand span {
        font-size: 0.5rem !important;
    }

    /* 3. تصغير اختصارات الروابط في الـ Footer */
    .footer-links h4 {
        font-size: 0.9rem !important; /* تصغير عناوين الفوتر مثل (اتصل بنا) */
        margin-bottom: 10px !important;
    }

    .social-item {
        gap: 8px !important; /* تقليل المسافة بين الأيقونة والنص */
    }

    .social-item span {
        font-size: 0.8rem !important; /* تصغير حجم نص الروابط (واتساب، فيسبوك... إلخ) */
    }

    /* 4. تصغير حجم أيقونات التواصل في الفوتر */
    .footer-social-img {
        width: 18px !important; /* تصغير حجم الأيقونات */
        height: 18px !important;
    }

    /* 5. تصغير المسافات بين عناصر الفوتر لتقليل طول الصفحة */
    .social-column {
        gap: 12px !important;
        margin-top: 10px !important;
    }

    .footer-grid {
        gap: 20px !important; /* تقليل الفراغ بين أقسام الفوتر */
    }
}