/* ==============================================
   إرث (ERTH COFFEE) - Light Luxury Theme
   ============================================== */

:root {
    --primary-brown: #423126;    /* البني الملكي الداكن للنصوص والعناوين */
    --warm-brown: #5A4A40;       /* بني دافئ للوصف والنصوص الثانوية */
    --gold: #C5A059;             /* التذهيب الفاخر */
    --gold-light: #D4AF37;       /* تذهيب مضيء للأزرار والتأثيرات */
    --bg-cream: #EAE3CF;         /* الخلفية العاجية الأساسية */
    --bg-light-cream: #F5F1E9;   /* خلفية فاتحة إضافية للتباين */
    --white: #FFFFFF;            /* أبيض ناصع للكروت */
    --border-gold: rgba(197, 160, 89, 0.3); /* حدود ذهبية ناعمة */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-cream);
    color: var(--primary-brown);
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    line-height: 1.6;
}

/* الهيدر وقائمة التنقل (المينيو) الفاخرة */
.site-header {
    background-color: var(--primary-brown);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(66, 49, 38, 0.15);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    color: var(--bg-cream);
    font-family: 'Reem Kufi', sans-serif;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav-links a {
    color: var(--bg-cream);
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
    border-bottom: 2px solid var(--gold);
    padding-bottom: 4px;
}

/* قسم الـ Hero الرئيسي */
.hero-section {
    background: linear-gradient(rgba(66, 49, 38, 0.7), rgba(66, 49, 38, 0.8)), url('images/home.jpeg') center/cover no-repeat;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--bg-cream);
    padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Reem Kufi', sans-serif;
    font-size: 50px;
    margin-bottom: 20px;
    color: var(--gold);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 19px;
    max-width: 750px;
    margin: 0 auto 35px auto;
    line-height: 1.8;
    color: #F5F1E9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* الأزرار الفاخرة مع حركات تفاعلية */
.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--gold);
    color: var(--primary-brown);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: #d4af37;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-outline {
    border: 2px solid var(--gold);
    color: var(--bg-cream);
    background-color: transparent;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--primary-brown);
    transform: translateY(-3px);
}

/* العناوين العامة */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-family: 'Reem Kufi', sans-serif;
    color: var(--primary-brown);
    font-size: 36px;
}

.title-underline {
    width: 90px;
    height: 3px;
    background-color: var(--gold);
    margin: 15px auto 0 auto;
}

/* الأقسام العامة */
.services-section, .products-section, .about-section, .contact-section {
    padding: 90px 20px;
    background-color: var(--bg-cream);
}

/* شبكة كروت الخدمات */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(66, 49, 38, 0.08);
    border: 1px solid var(--border-gold);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(66, 49, 38, 0.15);
    border-color: var(--gold);
}

.service-img-wrapper {
    height: 260px;
    width: 100%;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-img {
    transform: scale(1.08);
}

.service-card-body {
    padding: 35px 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.service-card-body h3 {
    color: var(--primary-brown);
    font-size: 23px;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Reem Kufi', sans-serif;
}

.service-card-body p {
    color: var(--warm-brown);
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* تنسيق كروت المنتجات الخمسة (مجموعة المناطق) */
.products-grid-5 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0 auto;
}

.product-card {
    background-color: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(66, 49, 38, 0.08);
    border: 1px solid var(--border-gold);
    text-align: center;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(66, 49, 38, 0.15);
    border-color: var(--gold);
}

.finjan-img-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}

.product-card:hover .finjan-img-wrapper {
    transform: scale(1.1);
}

.finjan-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge {
    background-color: var(--primary-brown);
    color: var(--bg-cream);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    font-family: 'Reem Kufi', sans-serif;
}

.product-card h3 {
    color: var(--primary-brown);
    font-family: 'Reem Kufi', sans-serif;
    font-size: 22px;
    margin-bottom: 12px;
}

.product-card p {
    color: var(--warm-brown);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* قسم من نحن الفاخر */
.about-text {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(66, 49, 38, 0.08);
    border: 1px solid var(--border-gold);
    text-align: center;
}

.about-subtitle {
    font-family: 'Reem Kufi', sans-serif;
    color: var(--primary-brown);
    font-size: 28px;
    margin-bottom: 20px;
}

.quote {
    font-style: italic;
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 25px;
    font-weight: bold;
}

.about-text p {
    color: var(--warm-brown);
    font-size: 17px;
    line-height: 1.9;
    margin-bottom: 20px;
}

.about-footer-text {
    font-family: 'Reem Kufi', sans-serif;
    color: var(--primary-brown);
    font-size: 22px;
    font-weight: 700;
    margin-top: 25px;
}

/* الفوتر */
.site-footer {
    background-color: var(--primary-brown);
    color: var(--bg-cream);
    padding: 30px 0;
    text-align: center;
    font-size: 14px;
    margin-top: 80px;
    box-shadow: 0 -4px 15px rgba(66, 49, 38, 0.1);
}

/* ==============================================
   تنسيق عصرية المنتجات الفاخرة (Modern Products)
   ============================================== */

.modern-products-section {
    padding: 100px 20px;
    background-color: var(--bg-cream);
}

.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 50px auto 0 auto;
}

/* بطاقة المنتج المودرن */
.modern-product-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(66, 49, 38, 0.06);
    border: 1px solid var(--border-gold);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.modern-product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(66, 49, 38, 0.12);
    border-color: var(--gold);
}

/* حاوية الصورة بتصميم سينمائي واسع */
.modern-img-container {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle, #FAF6ED 0%, #EFEADF 100%); /* خلفية دائرية ناعمة تبرز فخامة الفنجان */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-gold);
}

.modern-img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain; /* يحافظ على أبعاد الفنجان الطبيعية تماماً بدون أي تشوه أو تغبيش */
    image-rendering: -webkit-optimize-contrast; /* لزيادة حدة ונقاء الأيقونة */
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modern-product-card:hover .modern-img {
    transform: scale(1.1); /* زووم جمالي وناعم عند مرور الماوس */
}
/* شارة المنطقة بتصميم عصري */
.modern-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(66, 49, 38, 0.85);
    backdrop-filter: blur(5px);
    color: var(--bg-cream);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-family: 'Reem Kufi', sans-serif;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* محتوى البطاقة */
.modern-card-content {
    padding: 35px 30px;
    text-align: right;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-card-content h3 {
    color: var(--primary-brown);
    font-family: 'Reem Kufi', sans-serif;
    font-size: 24px;
    margin-bottom: 12px;
}

/* تنسيق وتكبير شعار الصور في الهيدر ليكون بارزاً وفخماً */
.site-logo-img {
    height: 85px; /* تم زيادة الارتفاع ليكون كبيراً وواضحاً للغاية (يمكنك تعديلها إلى 90px أو 100px حسب الرغبة) */
    width: auto;
    object-fit: contain;
    vertical-align: middle;
    display: block;
    transition: transform 0.3s ease;
}

.site-logo-img:hover {
    transform: scale(1.03);
}
.modern-card-content p {
    color: var(--warm-brown);
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 25px;
}

/* زر تفاصيل راقي داخل الكرت */
.product-action-link {
    color: var(--primary-brown);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.product-action-link:hover {
    color: var(--gold);
}

/* ==============================================
   إرث (ERTH COFFEE) - Responsive Media Queries
   ============================================== */

/* للشاشات المتوسطة والأجهزة اللوحية (تابلت) */
@media (max-width: 992px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 20px;
    }
    
    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .hero-content p {
        font-size: 16px;
    }
}

/* لشاشات الهواتف الذكية (الموبايل أقل من 768px) */
@media (max-width: 768px) {
    .site-header {
        padding: 12px 0;
    }

    .site-logo-img {
        height: 55px !important; /* حجم متناسق للشعار على الجوال */
    }

    .nav-links {
        gap: 10px;
        font-size: 14px;
    }

    .hero-section {
        height: 75vh;
        padding: 0 15px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    /* تحويل جميع الشبكات والكروت لتظهر بعمود واحد على الجوال */
    .services-grid, 
    .modern-products-grid, 
    .features-grid,
    .cafe-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .services-section, 
    .modern-products-section, 
    .cafe-section,
    .features-section,
    .about-section {
        padding: 50px 15px !important;
    }

    .about-text, 
    .cafe-text-content {
        padding: 25px 20px !important;
    }
}