* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Tajawal', sans-serif;
    background: #f8f1e8;
    color: #40200e;
    overflow-x: hidden; /* يمنع ظهور شريط التمرير الأفقي المزعج في الموبايل */
}

/* =========================
   Header & Navigation
========================= */
header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px;
    background: transparent;
    z-index: 100;
}

.logo img {
    width: 140px;
    margin-top: 60px;
}

nav {
    display: flex;
    gap: 35px;
}

nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    color: #3b2413;
    transition: .3s;
    cursor: pointer;
}

nav a:hover, nav a.active {
    color: #b8873a;
}

.header-icons {
    display: flex;
    gap: 18px;
    align-items: center;
}

.header-icons a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    color: #b8873a;
    font-size: 18px;
    transition: .3s;
}

.header-icons a:hover {
    transform: translateY(-3px);
    color: #8a6428;
}

/* =========================
   Hero Section
========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 20px 60px;
    background: linear-gradient(rgba(255,248,238,.25), rgba(255,248,238,.25)), url(image/hero11.png);
    background-size: cover;
    background-position: center 85%;
    background-attachment: fixed;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    backdrop-filter: blur(1px);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    max-width: 650px;
    margin: auto;
    text-align: center;
}

.hero h1 {
    font-size: 95px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    animation: fadeUp 1s ease forwards;
}

.hero h2 {
    font-size: 48px;
    font-weight: 700;
    color: #734d0f;
    line-height: 1.4;
    margin-bottom: 25px;
    animation: fadeUp 1.3s ease forwards;
}

.hero p {
    font-size: 24px;
    line-height: 1.8;
    color: #30241b;
    margin-bottom: 35px;
    animation: fadeUp 1.6s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================
   Buttons & Animations
========================= */
button, .buy-btn {
    display: inline-block;
    background: #c18a33;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: .3s;
}

button:hover, .buy-btn:hover {
    transform: translateY(-3px);
    background: #a87422;
}

.buy-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(193,138,51,.5); }
    70% { box-shadow: 0 0 0 15px rgba(193,138,51,0); }
    100% { box-shadow: 0 0 0 0 rgba(193,138,51,0); }
}

/* =========================
   Products Section
========================= */
.products {
    padding: 100px 6%;
    background: #f8f1e8;
    text-align: center;
}

.products h2 {
    font-size: 62px;
    font-weight: 900;
    margin-bottom: 10px;
}

.products > p {
    font-size: 22px;
    color: #4e3724;
    margin-bottom: 40px;
}

.cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border: 1px solid #e2c79c;
    border-radius: 25px;
    padding: 25px;
    display: flex;
    gap: 25px;
    align-items: flex-start;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
    transform: perspective(1000px) rotateY(6deg) rotateX(4deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,.15);
}

.card-image {
    width: 200px;
    text-align: center;
    flex-shrink: 0;
}

.card-image img {
    width: 100%;
    border-radius: 18px;
    display: block;
    margin-bottom: 15px;
    transition: .4s;
}

.card-image img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(193,138,51,.4));
}

.card-content {
    flex: 1;
    text-align: right;
}

.card-content h3 {
    font-size: 32px;
    color: #9a6a1f;
    margin-bottom: 10px;
}

.sub-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #5a3a15;
}

.card-content ul {
    padding-right: 20px;
}

.card-content li {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
}

/* =========================
   Before / After Section
========================= */
.before-after {
    padding: 80px 6%;
    text-align: center;
    background: linear-gradient(135deg,#fff8ee,#f3e2c6);
}

.before-after h2 {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 50px;
    color: #5a3a15;
}

.ba-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.ba-card {
    width: 100%;
    max-width: 300px;
    background: white;
    border-radius: 25px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,.08);
    transition: .3s;
}

.ba-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,.15);
}

.ba-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 18px;
    transition: .3s;
}

.ba-card img:hover {
    transform: scale(1.05);
}

.ba-card p {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #4a341f;
}

/* =========================
   Why Us Section
========================= */
.why {
    background: linear-gradient(rgba(15,10,6,.88), rgba(15,10,6,.88)), url(image/bg-dark.jpg);
    background-size: cover;
    background-position: center;
    padding: 80px 5%;
    text-align: center;
    color: white;
}

.why h2 {
    font-size: 55px;
    margin-bottom: 50px;
    font-weight: 800;
}

.features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    gap: 30px;
}

.features div {
    width: 180px;
}

.features span {
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    border: 1px solid #c18a33;
    border-radius: 50%;
    font-size: 40px;
    color: #c18a33;
    margin-bottom: 15px;
}

.features p {
    font-size: 20px;
    line-height: 1.6;
}

/* =========================
   Ingredients Section
========================= */
.ingredients {
    padding: 90px 5%;
    background: #f8f1e8;
    text-align: center;
}

.ingredients h2 {
    font-size: 58px;
    margin-bottom: 40px;
}

.items {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.items div {
    background: white;
    width: 180px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}

.items img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    transition: .4s;
}

.items img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(193,138,51,.4));
}

.items p {
    font-size: 20px;
    margin-top: 15px;
}

/* =========================
   Story Section
========================= */
.story {
    padding: 100px 6%;
    background: #f8f1e8;
}

.story-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}

.story-image {
    flex: 1;
}

.story-image img {
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.story-content {
    flex: 1;
    text-align: right;
}

.story-content h2 {
    font-size: 55px;
    font-weight: 900;
    margin-bottom: 25px;
    color: #8a5a18;
    position: relative;
}

.story-content h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: #c18a33;
    position: absolute;
    bottom: -10px;
    right: 0;
    border-radius: 10px;
}

.story-content p {
    font-size: 20px;
    line-height: 2;
    margin-bottom: 18px;
    color: #4a341f;
}

/* =========================
   Delivery Section
========================= */
.delivery {
    background: linear-gradient(rgba(0,0,0,.25), rgba(0,0,0,.25)), url(image/iraq-flag.png);
    background-size: cover;
    background-position: center;
    padding: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
    color: white;
}

.flag img {
    width: 120px;
}

.delivery-content h2 {
    font-size: 60px;
    margin-bottom: 10px;
}

.delivery-content p {
    font-size: 28px;
    margin-bottom: 20px;
}

/* =========================
   Footer
========================= */
footer {
    background: linear-gradient(rgba(15,10,6,.95), rgba(15,10,6,.95)), url(image/footer-bg.jpg);
    background-size: cover;
    background-position: center;
    padding: 60px 8%;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    color: white;
}

.footer-logo img {
    width: 170px;
}

footer h4 {
    color: #c18a33;
    font-size: 22px;
    margin-bottom: 20px;
}

footer a {
    display: block;
    color: #ddd;
    text-decoration: none;
    margin-bottom: 12px;
    transition: .3s;
}

footer a:hover {
    color: #c18a33;
}

.footer-contact p {
    margin-bottom: 15px;
    color: #ddd;
}

.footer-contact i {
    color: #c18a33;
    margin-left: 10px;
    width: 20px;
}

/* Utility Elements */
img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 30px;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,.2);
}

/* ===================================================
   شاشات التابلت والأجهزة المتوسطة (Max-Width: 1024px)
=================================================== */
@media (max-width: 1024px) {
    header {
        padding: 20px;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
        position: relative;
        background: #fff8ee; /* خلفية خفيفة لتسهيل قراءة المنيو عند نزولها */
    }

    .logo img {
        margin-top: 0;
        width: 120px;
    }

    nav {
        gap: 20px;
    }

    .hero {
        background-attachment: scroll; /* أفضل للأداء على الهواتف والتابلت */
        padding-top: 40px;
    }
    
    footer {
        grid-template-columns: 1fr 1fr;
    }
}

/* ===================================================
   شاشات الهواتف الذكية بالكامل (Max-Width: 768px)
=================================================== */
@media (max-width: 768px) {
    /* العناوين العامة */
    .products h2, .ingredients h2, .delivery-content h2, .story-content h2 {
        font-size: 36px !important;
    }
    
    .before-after h2, .why h2 {
        font-size: 32px !important;
    }

    /* قسم الهيرو الرئيسي */
    .hero h1 {
        font-size: 46px;
    }
    .hero h2 {
        font-size: 24px;
    }
    .hero p {
        font-size: 16px;
    }

    /* الكروت والمنتجات */
    .card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .card-image {
        width: 100%;
        max-width: 250px;
    }

    .card-content {
        text-align: center;
    }
    
    .card-content ul {
        padding-right: 0;
        list-style: none; /* إزالة النقاط لتوسيط النص بشكل جميل */
    }

    /* المميزات والمكونات */
    .features, .items {
        grid-template-columns: 1fr 1fr; /* تظهر كعنصرين بجانب بعض بكل سطر بدلاً من التداخل */
        display: grid;
        gap: 15px;
    }

    .features div, .items div {
        width: 100%;
    }

    /* قصة عسل الخنجر */
    .story-container {
        flex-direction: column;
        gap: 30px;
    }
    
    .story-content {
        text-align: center;
    }
    
    .story-content h2::after {
        right: 50%;
        transform: translateX(50%);
    }

    /* التوصيل وعلم العراق وعمان */
    .delivery {
        flex-direction: column;
        gap: 20px;
        padding: 40px 20px;
    }

    .delivery-content p {
        font-size: 18px;
    }

    .flag {
        order: 2; /* لتنظيم ظهور الأعلام تحت النص في الموبايل */
    }
    
    /* الفوتر */
    footer {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links, .footer-contact {
        margin-top: 20px;
    }
}