/* ====== متغيرات الألوان والخطوط ====== */
:root {
    --bg-dark: #120c08;
    --bg-secondary: #1a120b;
    --bg-card: #241811;
    --gold-main: #c9a24b;
    --gold-light: #d4af6a;
    --gold-glow: rgba(201, 162, 75, 0.4);
    --text-main: #f5e6ca;
    --text-muted: #a89071;
    --font-heading: 'Aref Ruqaa', serif;
    --font-body: 'Cairo', sans-serif;
    --transition: all 0.4s ease;
}

/* ====== إعدادات عامة ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}
/* ====== خلفية حبوب البن المتحركة ====== */
.beans-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* خلف كل المحتوى */
    pointer-events: none; /* حتى لا تمنع النقر على الأزرار */
    opacity: 0.6; /* شفافية خفيفة لئلا تشتت النظر */
    
    /* استخدام SVG كرسم لحبة البن وتكرارها */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><defs><linearGradient id='b' x1='0%' y1='0%' x2='100%' y2='100%'><stop offset='0%' stop-color='%236F4E37'/><stop offset='100%' stop-color='%232B170E'/></linearGradient></defs><g transform='rotate(-30 50 50)'><path d='M 50 8 C 78 8 92 28 92 50 C 92 72 78 92 50 92 C 22 92 8 72 8 50 C 8 28 22 8 50 8 Z' fill='url(%23b)'/><path d='M 50 12 Q 38 35 50 50 T 50 88' fill='none' stroke='%23140A06' stroke-width='5' stroke-linecap='round'/><path d='M 50 14 Q 40 35 50 50 T 50 86' fill='none' stroke='%238C6243' stroke-width='1.5' stroke-linecap='round' opacity='0.7'/></g></svg>");
    
    background-size: 150px 400px; /* حجم وحبوب البن والمسافة بينها */
    animation: moveBeans 60s linear infinite; /* مدة الحركة 60 ثانية (بطيء جداً) */
}

/* تحريك الخلفية بشكل قطري */
@keyframes moveBeans {
    from {
        background-position: 0 0;
    }
    to {
        /* التحريك 500 بكسل لليسار و 500 بكسل للأعلى لإنشاء اتجاه قطري */
        background-position: -500px -500px;
    }
}

/* لضمان ظهور الخلفية بشكل صحيح فوق لون الموقع الأساسي */
body::before {
    z-index: -3; /* خلف حبوب البن مباشرة */
}

/* خلفية زخارف خفيفة */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 10% 20%, rgba(201, 162, 75, 0.03) 0%, transparent 20%),
                      radial-gradient(circle at 90% 80%, rgba(201, 162, 75, 0.03) 0%, transparent 20%);
    z-index: -1;
    pointer-events: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ====== النصوص والأزرار العامة ====== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--gold-main);
    margin-bottom: 15px;
}

.section-title span {
    color: var(--text-main);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--gold-main), var(--gold-light));
    color: var(--bg-dark);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid var(--gold-light);
    box-shadow: 0 4px 15px var(--gold-glow);
    font-family: var(--font-body);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px var(--gold-glow);
    background: var(--bg-dark);
    color: var(--gold-light);
}

/* ====== شريط التنقل (Navbar) ====== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(18, 12, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(201, 162, 75, 0.2);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-main);
    font-size: 1.5rem;
    /* استبدل هذا بصورة اللوجو */
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.main-name {
    font-family: var(--font-heading);
    color: var(--gold-main);
    font-size: 1.5rem;
    font-weight: 700;
}

.sub-name {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gold-main);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gold-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--gold-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ====== الهيرو (Hero) ====== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: url('https://via.placeholder.com/1920x1080/120c08/c9a24b?text=+') center/cover no-repeat fixed;
    /* استبدل الرابط بصورة خلفية للهيرو */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(18, 12, 8, 0.8) 0%, rgba(18, 12, 8, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    transform: translateY(-40px); 
}

.hero-title {

    font-family: var(--font-heading);
    font-size: 6rem;
    color: var(--gold-main);
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    margin-bottom: 40px; /* زيادة المسافة السفلية ليكون النص الفرنسي أوضح */
    line-height: 1;
}

.hero-subtitle {
    font-family: var(--font-body);
    color: var(--text-muted);
    font-size: 1.5rem;
    letter-spacing: 4px;
    margin-bottom: 30px;
}

.hero-desc {
    color: var(--text-main);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* رسمة فنجان قهوة وبخار */
.coffee-cup-animation {
    font-size: 5rem;
    color: var(--gold-main);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.steam {
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 10px;
    height: 80px;
    background: rgba(245, 230, 202, 0.2);
    border-radius: 50%;
    filter: blur(5px);
    transform-origin: bottom;
}

.steam-1 { left: 40%; animation: steam-rise 3s infinite ease-in-out; }
.steam-2 { left: 50%; animation: steam-rise 3s infinite 0.5s ease-in-out; }
.steam-3 { left: 60%; animation: steam-rise 3s infinite 1s ease-in-out; }

@keyframes steam-rise {
    0% { transform: translateY(0) scaleY(1); opacity: 0; }
    50% { opacity: 0.6; }
    100% { transform: translateY(-50px) scaleY(1.5); opacity: 0; }
}

/* ====== الشريط المتحرك Marquee ====== */
.marquee {
    background: var(--gold-main);
    color: var(--bg-dark);
    overflow: hidden;
    padding: 15px 0;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.marquee-content span {
    margin: 0 20px;
}

.marquee-content i {
    margin: 0 10px;
}

@keyframes marquee {
    0% { transform: translateX(100%); } /* RTL لذلك يبدأ من اليمين */
    100% { transform: translateX(-100%); }
}

/* ====== قسم من نحن ====== */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    border: 2px solid var(--gold-main);
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.about-text h2 {
    margin-bottom: 20px;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ====== قسم المنتجات ====== */
.products-section {
    background: var(--bg-secondary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--bg-card);
    border: 1px solid rgba(201, 162, 75, 0.2);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-main);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5), 0 0 20px var(--gold-glow);
}

.product-icon {
    font-size: 3rem;
    color: var(--gold-main);
    margin-bottom: 20px;
}

.product-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--gold-light);
    margin-bottom: 10px;
}

.product-en {
    color: var(--text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.product-desc {
    color: var(--text-main);
    font-size: 0.95rem;
    margin-bottom: 25px;
    min-height: 50px;
}

.btn-product {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* تصمبط المنتج المميز */
.product-card.signature {
    background: linear-gradient(145deg, #2e1d12, #1a120b);
    border: 2px solid var(--gold-main);
    grid-column: span 2;
    transform: scale(1.05);
}

.crown-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 1.5rem;
    color: var(--gold-main);
}

/* ====== طريقة التحضير ====== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.step-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    position: relative;
    border-top: 3px solid var(--gold-main);
    transition: var(--transition);
}

.step-card:hover {
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -20px;
    right: 20px;
    background: var(--gold-main);
    color: var(--bg-dark);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-card h3 {
    font-family: var(--font-heading);
    color: var(--gold-main);
    margin: 15px 0;
}

.step-card p {
    color: var(--text-muted);
}

/* ====== المعرض ====== */
.gallery-section {
    background: var(--bg-secondary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 15px;
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
}

.gallery-item:nth-child(2), .gallery-item:nth-child(4) {
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(0.7);
}

/* ====== آراء الزبائن ====== */
.testimonials-section {
    background: var(--bg-dark);
}

.testimonial-slider {
    max-width: 800px;
    margin: auto;
    padding: 50px 20px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--gold-main);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-icon {
    font-size: 2rem;
    color: var(--gold-main);
    opacity: 0.3;
    margin-bottom: 20px;
}

.testimonial-card p {
    font-size: 1.2rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 30px;
}

.customer-info h4 {
    color: var(--gold-light);
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.stars {
    color: var(--gold-main);
    margin-top: 10px;
}

.swiper-pagination-bullet {
    background: var(--gold-main) !important;
}

/* ====== التواصل والخريطة ====== */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info h3 {
    font-family: var(--font-heading);
    color: var(--gold-main);
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    padding: 15px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid transparent;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--gold-main);
    transform: translateX(-10px);
    background: rgba(201, 162, 75, 0.1);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--gold-main);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--gold-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-main);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gold-main);
    color: var(--bg-dark);
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--gold-main);
    position: relative;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
}

.map-container iframe {
    flex: 1;
    width: 100%;
}

.map-note {
    background: var(--gold-main);
    color: var(--bg-dark);
    padding: 10px;
    text-align: center;
    font-weight: 600;
}
.map-note a { color: inherit; text-decoration: underline; }

/* ====== التذييل Footer ====== */
.footer {
    background: #0a0604;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(201, 162, 75, 0.3);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold-main);
}

.footer-social a {
    color: var(--text-muted);
    font-size: 1.5rem;
    margin-inline-start: 15px;
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--gold-main);
}

.footer-copy {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(201, 162, 75, 0.1);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====== زر واتساب العائم ====== */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    left: 30px; /* يظهر يسار للـ RTL حسب الطلب (أو يمين حسب التصميم، سنضعه يمين) */
    right: 30px; /* تم وضعه يمين لتوافق أفضل مع التصميم */
    left: auto;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ====== الـ Lightbox ====== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border: 2px solid var(--gold-main);
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--gold-main);
    font-size: 3rem;
    cursor: pointer;
}

/* ====== تصميم متجاوب (Responsive) ====== */
@media (max-width: 768px) {
    .nav-links, .btn-nav {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    /* يمكن إضافة قائمة منسدلة للموبايل عبر JS */
    
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .about-container, .contact-container {
        grid-template-columns: 1fr;
    }
    
    .product-card.signature {
        grid-column: span 1;
        transform: scale(1);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}