/* ═══════════════════════════════════════════════════════════
   POWER GRASS — واجهة الموقع
   الهوية: أخضر غابي عميق + ذهبي + كريمي
   ═══════════════════════════════════════════════════════════ */

:root {
    /* الأخضر */
    --green-900:   #071A0F;
    --green-850:   #0B2416;
    --green-800:   #0F2D1C;
    --green-700:   #143A24;
    --green-600:   #1C4C31;
    --green-500:   #27643F;

    /* الذهبي */
    --gold:        #C9A961;
    --gold-light:  #E0C489;
    --gold-dark:   #A88A44;
    --gold-050:    #F6EFDF;

    /* محايدة */
    --cream:       #F7F4ED;
    --cream-2:     #EFEBE1;
    --ink:         #16211A;
    --body:        #59645D;
    --muted:       #8B958E;
    --line:        #E4E0D5;
    --line-dark:   rgba(201, 169, 97, .22);
    --surface:     #FFFFFF;

    /* مقاسات */
    --radius:      14px;
    --radius-sm:   9px;
    --radius-lg:   22px;
    --container:   1280px;
    --header-h:    78px;

    /* ظلال */
    --shadow-sm:   0 2px 8px rgba(7, 26, 15, .06);
    --shadow:      0 10px 30px rgba(7, 26, 15, .10);
    --shadow-lg:   0 24px 60px rgba(7, 26, 15, .18);
    --shadow-gold: 0 12px 30px rgba(201, 169, 97, .32);

    --ease:        cubic-bezier(.22, 1, .36, 1);
}

/* ─────────── إعادة ضبط ─────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 20px);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.85;
    color: var(--body);
    background: var(--surface);
    overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.2px;
}
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }
p  { margin: 0 0 1em; }

::selection { background: var(--gold); color: var(--green-900); }

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.skip-link {
    position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
    background: var(--gold); color: var(--green-900);
    padding: .7rem 1.2rem; font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }

/* ─────────── أزرار ─────────── */
.btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .78rem 1.6rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 700; font-size: .95rem;
    transition: all .28s var(--ease);
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary { background: var(--gold); color: var(--green-900); }
.btn--primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--shadow-gold); }

.btn--green { background: var(--green-800); color: #fff; }
.btn--green:hover { background: var(--green-700); transform: translateY(-2px); }

.btn--dark { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.btn--dark:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

.btn--outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn--outline:hover { background: var(--gold); color: var(--green-900); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-dark); }

.btn--wa { background: #25D366; color: #fff; }
.btn--wa:hover { background: #1FBA57; transform: translateY(-2px); }

.btn--lg    { padding: .95rem 2rem; font-size: 1rem; }
.btn--sm    { padding: .5rem 1rem; font-size: .85rem; }
.btn--block { width: 100%; justify-content: center; }

/* ─────────── الهيدر ─────────── */
.header {
    position: sticky; top: 0; z-index: 100;
    height: var(--header-h);
    background: var(--green-850);
    border-bottom: 1px solid var(--line-dark);
}
.header__inner {
    height: 100%;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem;
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; order: 3; }
.brand img { width: 46px; height: 46px; object-fit: contain; border-radius: 6px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand__tag  { font-size: .58rem; letter-spacing: 2.4px; color: var(--gold); font-weight: 600; }

.nav { display: flex; align-items: center; gap: .3rem; order: 2; }
.nav a {
    position: relative;
    padding: .5rem .85rem;
    font-size: .93rem; font-weight: 600;
    color: rgba(255,255,255,.82);
    transition: color .22s;
}
.nav a:hover { color: #fff; }
.nav a.is-active { color: var(--gold); }
.nav a.is-active::after {
    content: ''; position: absolute; inset-inline: .85rem; bottom: -.1rem;
    height: 2px; background: var(--gold); border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: .7rem; flex: none; order: 1; }

.header__wa {
    width: 42px; height: 42px; flex: none;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #25D366; color: #fff;
    transition: transform .25s var(--ease);
}
.header__wa:hover { transform: scale(1.08); }
.header__wa svg { width: 21px; height: 21px; }

.burger {
    display: none;
    width: 42px; height: 42px;
    border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
    background: transparent; color: #fff;
    place-items: center;
}
.burger svg { width: 22px; height: 22px; }

/* ─────────── الهيرو ─────────── */
.hero {
    position: relative;
    min-height: clamp(480px, 62vh, 620px);
    display: grid; align-items: center;
    background: var(--green-850);
    overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.1s var(--ease);
}
.hero__slide.is-on { opacity: 1; }
.hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to left,
        rgba(7,26,15,.10) 0%,
        rgba(7,26,15,.55) 42%,
        rgba(11,36,22,.94) 78%,
        var(--green-850) 100%);
}
.hero__inner { position: relative; z-index: 2; padding: 3.5rem 0; max-width: 620px; }

.hero h1 { color: #fff; margin-bottom: .6rem; }
.hero h1 .gold { color: var(--gold); display: block; }

.hero__lead {
    color: rgba(255,255,255,.86);
    font-size: 1.02rem; line-height: 1.95;
    max-width: 44ch; margin-bottom: 1.9rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.5rem; }
.btn__wa {
    width: 26px; height: 26px; flex: none;
    display: grid; place-items: center;
    background: #25D366; color: #fff; border-radius: 50%;
}
.btn__wa svg { width: 15px; height: 15px; }

.hero__video {
    display: inline-flex; align-items: center; gap: .7rem;
    color: rgba(255,255,255,.9); font-weight: 600; font-size: .92rem;
    transition: color .22s;
}
.hero__video:hover { color: var(--gold); }
.hero__video span.play {
    width: 34px; height: 34px; flex: none;
    display: grid; place-items: center;
    border: 1.5px solid rgba(255,255,255,.5); border-radius: 50%;
    transition: all .25s var(--ease);
}
.hero__video:hover span.play { border-color: var(--gold); background: var(--gold); color: var(--green-900); }
.hero__video svg { width: 13px; height: 13px; }

.hero__dots {
    position: absolute; z-index: 3; bottom: 1.5rem; left: 0; right: 0;
    display: flex; justify-content: center; gap: .5rem;
}
.hero__dots button {
    width: 9px; height: 9px; padding: 0;
    border: 1px solid rgba(255,255,255,.6); border-radius: 50%;
    background: transparent; transition: all .25s;
}
.hero__dots button.is-on { background: var(--gold); border-color: var(--gold); width: 24px; border-radius: 5px; }

.hero__swoosh {
    position: absolute; z-index: 2; bottom: -2px; inset-inline-start: 0;
    width: min(52%, 640px); height: auto; pointer-events: none;
}

/* ─────────── شريط الأرقام ─────────── */
.statband { background: var(--green-800); border-block: 1px solid var(--line-dark); }
.statband__grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
}
.statband__item {
    display: flex; align-items: center; gap: .95rem;
    padding: 1.7rem 1.4rem;
    position: relative;
}
.statband__item + .statband__item::before {
    content: ''; position: absolute; inset-inline-end: 0; top: 22%; bottom: 22%;
    width: 1px; background: var(--line-dark);
}
.statband__icon { color: var(--gold); flex: none; }
.statband__icon svg { width: 34px; height: 34px; stroke-width: 1.4; }
.statband__text { display: flex; flex-direction: column; }
.statband__num {
    font-size: 1.6rem; font-weight: 800; color: #fff; line-height: 1.25;
    display: block;
}
.statband__num--sm { font-size: 1.02rem; font-weight: 700; }
.statband__label { font-size: .85rem; color: rgba(255,255,255,.68); line-height: 1.5; }

/* ─────────── أقسام عامة ─────────── */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section--cream { background: var(--cream); }
.section--green { background: var(--green-800); }
.section--green h2, .section--green h3 { color: #fff; }
.section--green .section-head p { color: rgba(255,255,255,.68); }

.section-head { text-align: center; margin-bottom: 2.8rem; }
.section-head h2 { margin-bottom: .4rem; position: relative; display: inline-block; }
.section-head h2::after {
    content: ''; position: absolute; bottom: -.35rem; left: 50%; transform: translateX(-50%);
    width: 54px; height: 3px; background: var(--gold); border-radius: 3px;
}
.section-head p { color: var(--muted); margin: .9rem 0 0; font-size: .95rem; }

.eyebrow {
    display: inline-block; margin-bottom: .6rem;
    color: var(--gold-dark); font-weight: 700; font-size: .8rem;
    letter-spacing: 2px; text-transform: uppercase;
}
.section--green .eyebrow { color: var(--gold); }

.section-foot { text-align: center; margin-top: 2.6rem; }

/* ─────────── بطاقات الخدمات ─────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}
.card-service {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.card-service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }

.card-service__media {
    aspect-ratio: 4 / 3;
    background: var(--green-700) center/cover no-repeat;
    position: relative;
}
.card-service__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,26,15,.35), transparent 55%);
}
.card-service__body { padding: 1.1rem .95rem 1rem; text-align: center; display: flex; flex-direction: column; flex: 1; }
.card-service__icon { color: var(--green-600); margin: 0 auto .6rem; }
.card-service__icon svg { width: 26px; height: 26px; stroke-width: 1.5; }
.card-service h3 { font-size: 1rem; margin-bottom: .35rem; color: var(--ink); }
.card-service p { font-size: .8rem; line-height: 1.7; color: var(--muted); margin-bottom: .9rem; }
.card-service__link {
    margin-top: auto;
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    font-size: .82rem; font-weight: 700; color: var(--green-600);
    transition: gap .25s, color .25s;
}
.card-service:hover .card-service__link { color: var(--gold-dark); gap: .6rem; }
.card-service__link svg { width: 14px; height: 14px; }

/* ─────────── كاروسيل المشاريع ─────────── */
.carousel { position: relative; }
.carousel__track {
    display: grid; grid-auto-flow: column;
    grid-auto-columns: calc((100% - 4 * 1rem) / 5);
    gap: 1rem;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; padding: .4rem 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: center; }

.carousel__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border: 1px solid var(--gold); border-radius: 50%;
    background: rgba(7,26,15,.55); color: var(--gold);
    transition: all .25s var(--ease);
}
.carousel__nav:hover { background: var(--gold); color: var(--green-900); }
.carousel__nav svg { width: 18px; height: 18px; }
.carousel__nav--prev { inset-inline-end: -14px; }
.carousel__nav--next { inset-inline-start: -14px; }

.card-project {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--green-700);
    border: 2px solid transparent;
    transition: border-color .3s, transform .3s var(--ease);
}
.card-project:hover { border-color: var(--gold); transform: translateY(-5px); }
/* البطاقة في منتصف الشريط تبرز بإطار ذهبي كما في التصميم */
.card-project.is-center { border-color: var(--gold); transform: scale(1.06); z-index: 2; }
.carousel__track { align-items: center; }
.card-project__media { position: absolute; inset: 0; background: center/cover no-repeat; }
.card-project::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(7,26,15,.92) 8%, rgba(7,26,15,.35) 45%, transparent 70%);
}
.card-project__body { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 1rem .9rem; }
.card-project h3 { color: #fff; font-size: .95rem; margin-bottom: .1rem; }
.card-project__meta { color: var(--gold-light); font-size: .78rem; }

/* شبكة المشاريع (صفحة الأعمال) */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.projects-grid .card-project { aspect-ratio: 4 / 3; }

/* ─────────── لماذا نختارنا ─────────── */
.why-grid { display: grid; grid-template-columns: repeat(5, 1fr); }
.why-item {
    text-align: center; padding: 1rem 1.2rem; position: relative;
}
.why-item + .why-item::before {
    content: ''; position: absolute; inset-inline-end: 0; top: 15%; bottom: 15%;
    width: 1px; background: var(--line);
}
.why-item__icon {
    width: 58px; height: 58px; margin: 0 auto .9rem;
    display: grid; place-items: center;
    color: var(--gold-dark);
}
.why-item__icon svg { width: 34px; height: 34px; stroke-width: 1.4; }
.why-item h3 { font-size: 1rem; margin-bottom: .25rem; }
.why-item p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.7; }

/* ─────────── العملاء ─────────── */
.clients { background: var(--cream-2); padding: 2.6rem 0; }
.clients__row { display: flex; align-items: center; gap: 2.2rem; }
.clients__aside {
    flex: none; display: flex; flex-direction: column;
    align-items: center; gap: .55rem;
}
.clients__label { font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.clients__logos {
    flex: 1; display: flex; align-items: center; justify-content: space-around;
    flex-wrap: wrap; gap: 1.6rem;
}
.clients__logo {
    height: 46px; width: auto; object-fit: contain;
    filter: grayscale(1); opacity: .62;
    transition: filter .3s, opacity .3s;
}
.clients__logo:hover { filter: none; opacity: 1; }

/* ─────────── المدونة ─────────── */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.blog-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.blog-card__media { aspect-ratio: 16 / 9; background: var(--green-700) center/cover no-repeat; }
.blog-card__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.blog-card__date { font-size: .78rem; color: var(--gold-dark); font-weight: 700; margin-bottom: .35rem; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.blog-card p { font-size: .87rem; color: var(--muted); margin-bottom: 1rem; }
.blog-card__link { margin-top: auto; font-weight: 700; font-size: .85rem; color: var(--green-600); display: inline-flex; gap: .35rem; align-items: center; }
.blog-card__link svg { width: 14px; height: 14px; }

.article { max-width: 780px; margin-inline: auto; }
.article__media { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.8rem; }
.article__meta { color: var(--muted); font-size: .87rem; margin-bottom: 1.4rem; }
.article__body { font-size: 1.02rem; line-height: 2.05; color: var(--body); }
.article__body h2 { font-size: 1.5rem; margin: 2rem 0 .6rem; }
.article__body h3 { font-size: 1.2rem; margin: 1.6rem 0 .5rem; }

/* ─────────── هيرو الصفحات الداخلية ─────────── */
.page-hero {
    background: var(--green-850);
    padding: 3rem 0 2.6rem;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 120%, rgba(201,169,97,.16), transparent 55%);
}
.page-hero__inner { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.72); max-width: 58ch; margin: 0; }

.crumbs { display: flex; gap: .5rem; font-size: .84rem; color: rgba(255,255,255,.55); margin-bottom: .9rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ─────────── الفلاتر ─────────── */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2.4rem; }
.filters a {
    padding: .45rem 1.05rem; border: 1px solid var(--line); border-radius: 40px;
    font-size: .87rem; font-weight: 600; color: var(--body);
    transition: all .25s var(--ease);
}
.filters a:hover { border-color: var(--gold); color: var(--gold-dark); }
.filters a.is-active { background: var(--green-800); border-color: var(--green-800); color: #fff; }

/* ─────────── شبكات ونماذج ─────────── */
.grid    { display: grid; gap: 1.5rem; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

.form-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: .35rem; }
.field input, .field select, .field textarea {
    width: 100%; padding: .72rem .9rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font: inherit; font-size: .93rem; color: var(--ink);
    background: var(--surface);
    transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,169,97,.18);
}
.field textarea { resize: vertical; min-height: 120px; }
.field__hint { font-size: .78rem; color: var(--muted); margin-top: .25rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: .8rem 1.1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; font-weight: 600; }
.alert--success { background: #E8F5EC; color: #1B5E33; border: 1px solid #B9DFC6; }
.alert--error   { background: #FDECEC; color: #A32020; border: 1px solid #F3C4C4; }
.alert--info    { background: var(--gold-050); color: var(--gold-dark); border: 1px solid #E7D6AE; }

/* ─────────── عناصر متنوعة ─────────── */
.contact-item { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.contact-item__icon { color: var(--gold-dark); flex: none; margin-top: .2rem; }
.contact-item__icon svg { width: 20px; height: 20px; }

.feature-list { list-style: none; padding: 0; margin: 0; }
.feature-list li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .7rem; font-size: .95rem; }
.feature-list__icon { color: var(--gold-dark); flex: none; margin-top: .35rem; }
.feature-list__icon svg { width: 16px; height: 16px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.spec-table th, .spec-table td { padding: .7rem .9rem; border-bottom: 1px solid var(--line); text-align: start; }
.spec-table th { color: var(--muted); font-weight: 600; width: 38%; }
.spec-table td { color: var(--ink); font-weight: 700; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.gallery img { border-radius: var(--radius-sm); cursor: zoom-in; aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .3s var(--ease); }
.gallery img:hover { transform: scale(1.03); }

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(7,26,15,.94);
    display: none; place-items: center; padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 88vh; width: auto; border-radius: var(--radius-sm); }
.lightbox__close {
    position: absolute; top: 1.2rem; inset-inline-end: 1.2rem;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,.12); color: #fff; border: none;
    display: grid; place-items: center;
}

.empty-state { text-align: center; padding: 3.5rem 1rem; }
.empty-state svg { width: 56px; height: 56px; color: var(--gold); margin: 0 auto 1rem; stroke-width: 1.2; }
.empty-state h3 { margin-bottom: .4rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.4rem; }
.section--green .empty-state h3 { color: #fff; }
.section--green .empty-state p { color: rgba(255,255,255,.65); }

.cta-band { background: var(--green-800); position: relative; overflow: hidden; }
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 80% 0%, rgba(201,169,97,.20), transparent 55%);
}
.cta-band__inner {
    position: relative; z-index: 2;
    padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); max-width: 56ch; margin-inline: auto; margin-bottom: 1.6rem; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ─────────── الفوتر ─────────── */
.footer { background: var(--green-850); color: rgba(255,255,255,.72); padding-top: 3.2rem; }
.footer__grid {
    display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.4fr;
    gap: 2.4rem; padding-bottom: 2.4rem;
}
.footer h4 {
    color: #fff; font-size: 1rem; margin-bottom: 1.1rem;
    position: relative; padding-bottom: .5rem;
}
.footer h4::after {
    content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
    width: 34px; height: 2px; background: var(--gold); border-radius: 2px;
}
.footer__brand .brand { margin-bottom: 1rem; }
.footer__brand p { font-size: .88rem; line-height: 1.9; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: .55rem; }
.footer ul a { font-size: .89rem; transition: color .22s, padding .22s; }
.footer ul a:hover { color: var(--gold); padding-inline-start: .3rem; }
.footer .contact-item { font-size: .88rem; }
.footer .contact-item__icon { color: var(--gold); }

.socials { display: flex; gap: .6rem; margin-top: 1.2rem; }
.socials a {
    width: 38px; height: 38px; display: grid; place-items: center;
    border: 1px solid var(--line-dark); border-radius: 50%;
    color: rgba(255,255,255,.75);
    transition: all .25s var(--ease);
}
.socials a:hover { background: var(--gold); border-color: var(--gold); color: var(--green-900); }
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
    border-top: 1px solid var(--line-dark);
    padding: 1.1rem 0;
    text-align: center; font-size: .83rem; color: rgba(255,255,255,.5);
}

/* ─────────── زر واتساب عائم ─────────── */
.wa-float {
    position: fixed; z-index: 90;
    inset-inline-start: 1.3rem; bottom: 1.3rem;
    width: 56px; height: 56px;
    display: grid; place-items: center;
    background: #25D366; color: #fff;
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(37,211,102,.42);
    transition: transform .28s var(--ease);
}
.wa-float:hover { transform: scale(1.09); }
.wa-float svg { width: 29px; height: 29px; }

/* ─────────── قواعد التباين فوق الخلفيات الداكنة ─────────── */
/* أي قسم أخضر داكن: النصوص فاتحة والأيقونات ذهبية — يمنع النص الداكن فوق خلفية داكنة */
.section--green, .section--navy, .page-hero, .cta-band { color: rgba(255,255,255,.78); }

.section--green h1, .section--green h2, .section--green h3, .section--green h4,
.section--navy  h1, .section--navy  h2, .section--navy  h3, .section--navy  h4,
.page-hero      h1, .page-hero      h2, .page-hero      h3, .page-hero      h4,
.cta-band       h1, .cta-band       h2, .cta-band       h3, .cta-band       h4 { color: #fff; }

.section--green p, .section--navy p, .page-hero p, .cta-band p { color: rgba(255,255,255,.74); }

.section--green .eyebrow, .section--navy .eyebrow,
.page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold); }

.section--green .feature-list__icon, .section--navy .feature-list__icon,
.page-hero .feature-list__icon, .cta-band .feature-list__icon,
.section--green .contact-item__icon, .section--navy .contact-item__icon,
.page-hero .contact-item__icon, .cta-band .contact-item__icon { color: var(--gold); }

.section--navy .spec-table th, .section--green .spec-table th { color: rgba(255,255,255,.6); }
.section--navy .spec-table td, .section--green .spec-table td { color: #fff; }
.section--navy .spec-table th, .section--navy .spec-table td,
.section--green .spec-table th, .section--green .spec-table td { border-bottom-color: rgba(255,255,255,.12); }

/* الأزرار الشبحية تصبح فاتحة فوق الداكن، وإلا تختفي */
.section--green .btn--ghost, .section--navy .btn--ghost,
.page-hero .btn--ghost, .cta-band .btn--ghost {
    color: #fff; border-color: rgba(255,255,255,.34);
}
.section--green .btn--ghost:hover, .section--navy .btn--ghost:hover,
.page-hero .btn--ghost:hover, .cta-band .btn--ghost:hover {
    border-color: var(--gold); color: var(--gold);
}

/* محتوى الهيرو الداخلي يجب أن يعلو فوق طبقة التدرّج */
.page-hero > .container, .cta-band > .container { position: relative; z-index: 2; }

/* ─────────── مساعدات صغيرة ─────────── */
.ltr { direction: ltr; display: inline-block; unicode-bidi: isolate; }
.req { color: #C0392B; font-weight: 700; }
.section--green .req, .section--navy .req, .cta-band .req { color: var(--gold-light); }

/* ─────────── توافق مع الصفحات الداخلية ─────────── */
/* أسماء قديمة ما زالت مستخدمة في بعض الصفحات — تُعاد تسميتها هنا بدل تعديل كل ملف */
.section--alt  { background: var(--cream); }
.section--navy { background: var(--green-800); }
.section--navy h2, .section--navy h3, .section--navy h1 { color: #fff; }
.section--navy p { color: rgba(255,255,255,.72); }
.btn--navy     { background: var(--green-800); color: #fff; }
.btn--navy:hover { background: var(--green-700); transform: translateY(-2px); }
.btn--gold     { background: var(--gold); color: var(--green-900); }
.btn--gold:hover { background: var(--gold-light); }
.text-teal     { color: var(--gold-dark); }

/* بطاقة المشروع تقبل صورة <img> بدل خلفية CSS */
.card-project__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.card-project__tag {
    display: inline-block; margin-bottom: .3rem;
    padding: .12rem .55rem;
    background: rgba(201,169,97,.9); color: var(--green-900);
    border-radius: 30px; font-size: .7rem; font-weight: 800;
}
.card-project__meta svg { width: 13px; height: 13px; display: inline; vertical-align: -2px; margin-inline-end: 3px; }

.split__badge {
    display: inline-block; margin-bottom: .8rem;
    padding: .3rem .9rem;
    background: var(--gold-050); color: var(--gold-dark);
    border: 1px solid rgba(201,169,97,.4);
    border-radius: 30px; font-size: .8rem; font-weight: 700;
}
.project-hero-img {
    width: 100%; max-height: 460px; object-fit: cover;
    border-radius: var(--radius); margin-bottom: 2rem;
}

/* بطاقة الخدمة بدون صورة (الصفحات الداخلية) تبقى متوازنة */
.card-service--plain .card-service__media { display: none; }
.card-service--plain .card-service__body  { padding: 1.6rem 1.3rem; }

/* ─────────── حركات الظهور ─────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ─────────── الاستجابة ─────────── */
@media (max-width: 1140px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .carousel__track { grid-auto-columns: calc((100% - 2 * 1rem) / 3); }
    .why-grid { grid-template-columns: repeat(3, 1fr); }
    .why-item:nth-child(3n+1)::before { display: none; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed; inset: var(--header-h) 0 auto;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--green-850);
        border-bottom: 1px solid var(--line-dark);
        padding: .6rem 1.25rem 1.2rem;
        transform: translateY(-130%);
        transition: transform .35s var(--ease);
        max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    }
    .nav.is-open { transform: none; }
    .nav a { padding: .8rem .4rem; border-bottom: 1px solid rgba(255,255,255,.07); }
    .nav a.is-active::after { display: none; }
    .burger { display: grid; }
    .header__actions .btn { display: none; }

    .statband__grid { grid-template-columns: repeat(2, 1fr); }
    .statband__item:nth-child(odd)::before { display: none; }
    .statband__item:nth-child(n+3) { border-top: 1px solid var(--line-dark); }

    .projects-grid, .blog-grid, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 2rem; }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    :root { --header-h: 68px; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .carousel__track { grid-auto-columns: 78%; }
    .carousel__nav { display: none; }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .why-item::before { display: none !important; }
    .why-item:nth-child(odd)::before { display: none; }
    .projects-grid, .blog-grid, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .hero__inner { padding: 2.5rem 0 3.5rem; }
    .brand__tag { display: none; }
    .clients__row { flex-direction: column; gap: 1.4rem; }
    .clients__logos { justify-content: center; gap: 1.4rem; }
    .clients__logo { height: 34px; }
}
