/* ==========================================================================
   index.css — Dedicated Stylesheet for index.html (Homepage)
   ========================================================================== */

/* ============ HERO BANNER ============ */
.hero {
    position: relative;
    min-height: 100vh;
    background: var(--dark-green, #1b4332);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Ensure homepage navbar is strictly above hero overlays and hero content */
.hero .nav {
    position: relative;
    z-index: 1000 !important;
}

.hero__content {
    position: relative;
    z-index: 5;
}

/* --- Hero Background & Overlays --- */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero__overlay-1 {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, #1b4332 0%, rgba(27,67,50,0.48) 55%, rgba(27,67,50,0.3) 100%);
    z-index: 2;
}

.hero__overlay-2 {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 75% 40%, rgba(82,183,136,0.15) 0%, transparent 60%);
    z-index: 2;
}

/* --- Animated Leaves --- */
.leaves {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.leaves span {
    position: absolute;
    font-size: 20px;
    opacity: 0.25;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    will-change: transform;
}

/* ============ SECTORS SECTION ============ */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    max-width: 1100px;
    margin: 32px auto 0;
    direction: rtl;
}

.sector-card {
    background: #ffffff;
    border: 1px solid #eef2f0;
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.sector-card__emoji {
    font-size: 26px !important;
    margin-bottom: 8px;
}

.sector-card__title {
    font-size: 13px;
    font-weight: 600 !important;
    color: var(--text-dark, #1f2937);
}

/* ============ VALUE SECTION ============ */
.value-section-fix {
    background: var(--bg-light, #f8f9fa);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.value-section-fix .wrap {
    max-width: 1200px !important;
    width: 90% !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Value Grid --- */
.value-section-fix .value-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    direction: rtl;
    margin-top: 0;
}

/* --- Value Text --- */
.value-text {
    text-align: right;
    direction: rtl;
}

.value-eyebrow {
    color: var(--green-500, #40916c);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    display: block;
}

/* --- Value Title & Gradient --- */
.value-title {
    font-weight: 900;
    font-size: 42px;
    line-height: 1.25;
    color: var(--text-dark, #1f2937);
    margin-top: 8px;
    margin-bottom: 0;
}

.value-title .grad {
    display: block;
    background: linear-gradient(166deg, #2d6a4f 0%, #52b788 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Value Items --- */
.value-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 24px;
}

.value-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    
    /* إلغاء الـ flexbox والاعتماد على inline-flex لمنع لخبطة اتجاه الـ RTL */
    display: inline-flex;
    direction: ltr; /* بيجبر العناصر تنكتب من الشمال لليمن داخلياً */
    justify-content: flex-end; /* يزق الكلمات والإيموجي لليمين */
    align-items: center;
    width: 100%;
    gap: 12px; /* مسافة صغيرة جداً لازقة بين الكلام والإيموجي */
}

.value-item .txt {
    font-size: 13px !important;
    font-weight: 450 !important;
    color: var(--text-dark, #1f2937);
    text-align: right;
    direction: rtl; /* عشان الجملة العربية تقرأ صح */
}

.value-item .emoji {
    font-size: 17px;
    line-height: 1;
    display: inline-block;
}

/* --- Value Stats Grid --- */
.value-stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.value-stat {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.value-stat__num {
    font-size: 28px;
    font-weight: 800;
    color: var(--green-700, #1b4332);
    margin-bottom: 4px;
}

.value-stat__label {
    font-size: 13px;
    color: #666;
}