/* style.css */

/* --- Variables & Global Reset --- */
:root {
    --gold-color: #dea057;
    --brown-dark: #8b6b3e;
    --text-white: #ffffff;
    --text-dark: #8b6b3e;
    --bg-light: #f5f5f5;
    --card-bg-gray: #ececec;
    --whatsapp-green: #25D366;
    --dark-green-title: #115a35;
    --header-height: 80px;
    --red-offer: #a81c1c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-light);
    padding-top: calc(var(--header-height) + 20px); 
    padding-bottom: 20px;
    color: var(--text-dark);
}

/* --- Sticky Header --- */
.sticky-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: #000000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.header-logo img {
    height: 50px;
    width: auto;
    display: block;
}

.header-whatsapp-btn {
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 8px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: transform 0.2s;
}

.header-whatsapp-btn:hover {
    transform: scale(1.05);
    background-color: #20bd5a;
}

/* --- Hero Section (Promo Card) --- */
.promo-card {
    background-image: url('01.png'); /* خلفية الديسكتوب */
    background-size: cover;         
    background-position: left center;     
    background-repeat: no-repeat;
    min-height: 600px; 
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    /* تم حذف الـ ::before من هنا لإزالة المؤثرات */
}

.promo-text-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    /* التعديل هنا: لجعل المحتوى يتوزع والزر ينزل للأسفل */
    align-items: flex-start;
    z-index: 2;
}

.promo-spacer-section { flex: 1.2; }

h1.main-title {
    color: var(--gold-color);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

h2.subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 40px;
    color: #ddd;
}

ul.hero-features-list { 
    list-style: none; 
}
ul.hero-features-list li {
    font-size: 1.3rem; 
    margin-bottom: 15px; 
    position: relative; 
    padding-right: 25px; 
    font-weight: 500;
}
ul.hero-features-list li::before {
    content: "•"; 
    color: var(--gold-color); 
    position: absolute; 
    right: 0; 
    font-size: 1.5rem; 
    line-height: 1.3rem;
}

/* --- General Buttons --- */
.card-btn {
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    
    /* التعديل: دفع الزر لأسفل الكونتينر */
    margin-top: auto; 
    /* مسافة صغيرة من الأسفل */
    margin-bottom: 10px; 
}

.card-btn:hover { transform: translateY(-5px); background-color: #20bd5a; }
.card-btn i { font-size: 2.5rem; }
.btn-text { display: flex; flex-direction: column; text-align: right; }
.btn-text span.small { font-size: 0.9rem; font-weight: 700; }
.btn-text span.large { font-size: 1.4rem; font-weight: 800; }

.center-btn-container {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    width: 100%;
}

/* --- Details Sections --- */
.details-section { 
    padding: 40px 10px; 
}

.details-container {
    max-width: 1300px; 
    margin: 0 auto; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 50px;
}

.details-content { 
    flex: 1.2; 
}
.product-card {
    flex: 1; 
    display: flex; 
    justify-content: center; 
    background-color: transparent; 
    padding: 20px;
}

.product-card-mobile { 
    display: none; 
}
.single-product-img { 
    width: 100%; 
    max-width: 650px; height: auto; }

.product-title { color: var(--dark-green-title); font-size: 1.8rem; font-weight: 800; margin-bottom: 15px; }
.ingredients-text { font-size: 1rem; line-height: 1.6; margin-bottom: 15px; font-weight: 700; }
.benefits-title { color: var(--dark-green-title); font-size: 1.2rem; font-weight: 800; margin-bottom: 10px; }
.benefits-list { list-style: none; margin-bottom: 15px; padding-right: 20px; }
.benefits-list li { position: relative; margin-bottom: 10px; font-weight: 700; font-size: 1rem; }

/* --- New Sections Headers --- */
.section-center-header {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}
.section-center-header h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #3e3228;
    margin-bottom: 10px;
}
.section-center-header h4 {
    font-size: 1.2rem;
    color: var(--brown-dark);
    margin-bottom: 5px;
}
.section-center-header p {
    font-weight: 700;
    font-size: 1.1rem;
    color: #555;
    margin-top: 10px;
}

/* --- Components Grid --- */
.components-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    flex-wrap: wrap;
}
.comp-card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.comp-img-wrapper {
    width: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.comp-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px;
}

/* --- Use Cases Grid --- */
.cases-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.case-card {
    flex: 1;
    min-width: 250px;
    background-color: var(--card-bg-gray);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.case-img-container {
    position: relative;
    width: 100%;
    height: 200px;
}
.case-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.case-content {
    padding: 20px 15px;
    text-align: center;
}
.case-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: right;
    display: inline-block;
}
.case-list li {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
    position: relative;
    padding-right: 15px;
    color: #333;
}
.case-list li::before {
    content: "•";
    position: absolute;
    right: 0;
    color: #333;
    font-weight: bold;
}

/* --- Offers Section --- */
.offers-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    max-width: 1300px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.offer-card {
    flex: 1;
    min-width: 300px;
    max-width: 380px;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-img-container {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.offer-img-container img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}

.offer-card:hover .offer-img-container {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0,0,0,0.25);
}

.offer-btn {
    background-color: var(--whatsapp-green);
    color: white;
    text-decoration: none;
    padding: 12px 0;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.1rem;
    width: 90%;
    transition: background 0.3s, transform 0.2s;
}
.offer-btn:hover {
    background-color: #20bd5a;
    transform: scale(1.05);
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {

    /* Header */
    .sticky-header { padding: 0 15px; height: 60px; }
    body { padding-top: 80px; }
    .header-logo img { height: 35px; }
    .header-whatsapp-btn span { display: none; }
    .header-whatsapp-btn { padding: 8px; width: 40px; height: 40px; justify-content: center; }
    .header-whatsapp-btn i { margin: 0; }

    /* Hero Section Mobile Edits */
    .promo-card { 
        flex-direction: column-reverse; 
        background-image: url('01-mobile.webp'); /* خلفية الموبايل */
        background-position: top center; 
        min-height: 550px; 
        margin: 0 10px 30px 10px;
    }

    /* إخفاء النصوص (العنوان والقائمة) في الموبايل فقط */
    .promo-text-section h1.main-title,
    .promo-text-section h2.subtitle,
    .promo-text-section ul.hero-features-list {
        display: none;
    }
    
    .promo-spacer-section { 
        width: 100%; 
        min-height: 250px; 
        flex: none; }
        
    .promo-text-section { 
        width: 100%; 
        padding: 20px; 
        text-align: center; 
        align-items: center; 
        /* تم إزالة الخلفية المتدرجة أيضاً لعدم وجود نص يحتاج توضيح */
        background: none; 
        margin-top: -50px;
        border-radius: 0 0 20px 20px;
        
        /* ضمان أن الزر يملأ المكان المتاح وينزل للأسفل */
        flex: 1;
        justify-content: flex-end;
    }
    
    /* Old Details */
    .details-container { flex-direction: column; padding: 0 10px; gap: 20px; }
    .product-card { display: none; }
    .product-card-mobile { display: flex; justify-content: center; width: 100%; margin-bottom: 20px; }
    .product-title { font-size: 1.4rem; text-align: center; }
    .benefits-list li { font-size: 1.3rem; }
    .card-btn { width: 100%; justify-content: center; }

    /* New Sections Mobile */
    .section-center-header h3 { font-size: 1.5rem; }
    
    /* Components */
    .components-grid { 
        flex-direction: row; 
        flex-wrap: nowrap;
        align-items: flex-start; 
        gap: 10px;
    }
    .comp-card { width: 33%; max-width: none; min-width: 0; padding: 0; }
    
    /* Cases */
    .cases-grid {
        display: grid;             
        grid-template-columns: 1fr 1fr; 
        gap: 15px;                 
        padding: 0 10px;
    }
    .case-card { width: 100%; min-width: 0; margin-bottom: 0; }
    .case-list li { font-size: 0.8rem; padding-right: 12px; }
    .case-img-container { height: 140px; }
    .case-content { padding: 15px 5px; }

    /* Offers */
    .offers-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 20px;
    }
    .offer-card { width: 100%; max-width: 100%; }
    .offer-btn { width: 100%; }
}