/* ═══════════════════════════════════════════════════════════
   POWER GRASS — واجهة الموقع
   ألوان مأخوذة من اللوجو: تركوازي / كحلي / ذهبي
   ═══════════════════════════════════════════════════════════ */

:root {
    /* الهوية */
    --teal:        #00C6AB;
    --teal-600:    #12AE99;
    --teal-700:    #0C8B7B;
    --teal-050:    #E6FAF6;

    --navy:        #244153;
    --navy-800:    #1B3243;
    --navy-900:    #122534;
    --navy-050:    #EEF3F6;

    --gold:        #FCC721;
    --gold-600:    #E0A800;

    /* محايدة */
    --ink:         #12212B;
    --body:        #4A5C68;
    --muted:       #7C8B96;
    --line:        #E2E9ED;
    --surface:     #FFFFFF;
    --surface-alt: #F5F8FA;

    /* مقاسات */
    --radius:      18px;
    --radius-sm:   12px;
    --radius-lg:   28px;
    --container:   1240px;
    --header-h:    88px;

    /* ظلال */
    --shadow-sm:   0 2px 8px rgba(18, 37, 52, .06);
    --shadow:      0 12px 32px rgba(18, 37, 52, .10);
    --shadow-lg:   0 24px 64px rgba(18, 37, 52, .16);
    --shadow-teal: 0 14px 34px rgba(0, 198, 171, .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: 16.5px;
    line-height: 1.85;
    color: var(--body);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4, h5 {
    margin: 0 0 .6em;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.22; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--teal); color: #fff; }

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

/* ─────────── تخطيط ─────────── */
.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.section        { padding: clamp(64px, 8vw, 110px) 0; }
.section--alt   { background: var(--surface-alt); }
.section--navy  { background: var(--navy-900); color: #B9C9D4; }
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
    text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .38rem 1rem;
    border-radius: 999px;
    background: var(--teal-050);
    color: var(--teal-700);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.eyebrow::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
}
.section--navy .eyebrow {
    background: rgba(0, 198, 171, .14);
    color: var(--teal);
}

.text-teal { color: var(--teal); }

/* ─────────── أزرار ─────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .92rem 1.9rem;
    border: 2px solid transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease),
                background-color .25s, color .25s, border-color .25s;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn--primary {
    background: var(--teal);
    color: #06312B;
    box-shadow: var(--shadow-teal);
}
.btn--primary:hover { background: #00D9BB; }

.btn--navy  { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn--navy:hover { background: var(--navy-800); }

.btn--gold  { background: var(--gold); color: #3A2C00; box-shadow: 0 14px 30px rgba(252,199,33,.34); }
.btn--gold:hover { background: #FFD24A; }

.btn--ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, .38);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn--outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { border-color: var(--teal); color: var(--teal-700); }

.btn--lg  { padding: 1.1rem 2.3rem; font-size: 1.06rem; }
.btn--sm  { padding: .6rem 1.3rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ─────────── الهيدر ─────────── */
.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background-color .35s, box-shadow .35s, height .35s;
}
.header--solid,
.header--inner {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), var(--shadow-sm);
}
.header--solid { height: 74px; }

.header__inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand img { width: 50px; height: 50px; object-fit: contain; transition: width .35s, height .35s; }
.header--solid .brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
    font-size: 1.16rem;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -.02em;
}
.brand__tag { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }

/* الهيدر الشفاف فوق الهيرو */
.header:not(.header--solid):not(.header--inner) .brand__name { color: #fff; }
.header:not(.header--solid):not(.header--inner) .brand__tag  { color: rgba(255,255,255,.72); }
.header:not(.header--solid):not(.header--inner) .nav a       { color: rgba(255,255,255,.92); }
.header:not(.header--solid):not(.header--inner) .burger span { background: #fff; }
.header:not(.header--solid):not(.header--inner) .header__phone { color: #fff; }

.nav { display: flex; align-items: center; gap: .3rem; margin-inline-start: auto; }
.nav a {
    position: relative;
    padding: .5rem .9rem;
    border-radius: 10px;
    font-size: .97rem;
    font-weight: 600;
    color: var(--navy);
    transition: color .22s, background-color .22s;
}
.nav a:hover { color: var(--teal-700); background: var(--teal-050); }
.nav a.is-active { color: var(--teal-700); }
.nav a.is-active::after {
    content: '';
    position: absolute;
    inset-inline: .9rem;
    bottom: .18rem;
    height: 2.5px;
    border-radius: 2px;
    background: var(--teal);
}

.header__actions { display: flex; align-items: center; gap: .9rem; flex: none; }
.header__phone {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .95rem;
    color: var(--navy);
    direction: ltr;
}
.header__phone svg { width: 17px; height: 17px; color: var(--teal); }

.burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 46px;
    padding: 0 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
}
.burger span {
    height: 2.5px;
    border-radius: 2px;
    background: var(--navy);
    transition: transform .3s var(--ease), opacity .2s;
}
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ─────────── الهيرو ─────────── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(600px, 92vh, 880px);
    padding: calc(var(--header-h) + 48px) 0 64px;
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy) 55%, #1E4F5C 100%);
    color: #fff;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 82% 18%, rgba(0, 198, 171, .30), transparent 46%),
        radial-gradient(circle at 12% 88%, rgba(252, 199, 33, .16), transparent 42%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .16;
    background-image:
        linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: radial-gradient(ellipse 78% 68% at 60% 40%, #000, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 78% 68% at 60% 40%, #000, transparent 78%);
}
.hero__inner { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .55em; }
.hero__lead {
    max-width: 620px;
    margin-bottom: 2.2rem;
    font-size: clamp(1.02rem, 1.9vw, 1.2rem);
    color: rgba(255, 255, 255, .82);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; }

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1.5rem;
    padding: .45rem 1.1rem .45rem .5rem;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(8px);
    font-size: .87rem;
    font-weight: 600;
    color: rgba(255, 255, 255, .93);
}
.hero__badge b {
    display: grid;
    place-items: center;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--teal);
    color: #06312B;
    font-size: .78rem;
}

/* شريط الإحصائيات أسفل الهيرو */
.hero__stats {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    margin-top: clamp(48px, 6vw, 76px);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .14);
    overflow: hidden;
}
.hero__stat {
    padding: 1.5rem 1.2rem;
    background: rgba(18, 37, 52, .55);
    backdrop-filter: blur(10px);
    text-align: center;
}
.hero__stat b {
    display: block;
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 900;
    color: var(--teal);
    line-height: 1.1;
}
.hero__stat span { font-size: .88rem; color: rgba(255, 255, 255, .74); }

/* ─────────── بانر الصفحات الداخلية ─────────── */
.page-hero {
    position: relative;
    padding: calc(var(--header-h) + 62px) 0 62px;
    background: linear-gradient(120deg, var(--navy-900), var(--navy) 70%, #1E4F5C);
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 22%, rgba(0,198,171,.28), transparent 52%);
}
.page-hero > .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; margin-bottom: .35em; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; margin-inline: auto; }

.crumbs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.3rem;
    font-size: .88rem;
    color: rgba(255, 255, 255, .62);
}
.crumbs a:hover { color: var(--teal); }
.crumbs span::before { content: '/'; margin-inline-end: .55rem; opacity: .5; }

/* ─────────── شبكة الخدمات ─────────── */
.grid { display: grid; gap: clamp(18px, 2.2vw, 28px); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }

.card-service {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2.1rem 1.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s;
}
.card-service::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .45s var(--ease);
}
.card-service:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.card-service:hover::before { transform: scaleX(1); }

.card-service__icon {
    display: grid;
    place-items: center;
    width: 62px; height: 62px;
    margin-bottom: 1.3rem;
    border-radius: 16px;
    background: var(--teal-050);
    color: var(--teal-700);
    transition: background-color .35s, color .35s, transform .35s var(--ease);
}
.card-service__icon svg { width: 30px; height: 30px; }
.card-service:hover .card-service__icon {
    background: var(--teal);
    color: #fff;
    transform: rotate(-6deg) scale(1.06);
}

.card-service h3 { margin-bottom: .5rem; }
.card-service p  { font-size: .96rem; color: var(--muted); margin-bottom: 1.4rem; }
.card-service__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-weight: 700;
    font-size: .93rem;
    color: var(--teal-700);
}
.card-service__link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card-service:hover .card-service__link svg { transform: translateX(-5px); }

/* ─────────── بطاقة مشروع ─────────── */
.card-project {
    position: relative;
    display: block;
    border-radius: var(--radius);
    background: var(--navy-900);
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card-project:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }

.card-project__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-project__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .8s var(--ease);
}
.card-project:hover .card-project__media img { transform: scale(1.08); }
.card-project__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18,37,52,.94) 4%, rgba(18,37,52,.42) 42%, transparent 72%);
}

.card-project__body {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    z-index: 2;
    padding: 1.6rem;
    color: #fff;
}
.card-project__tag {
    display: inline-block;
    margin-bottom: .55rem;
    padding: .26rem .8rem;
    border-radius: 999px;
    background: var(--teal);
    color: #06312B;
    font-size: .76rem;
    font-weight: 800;
}
.card-project__body h3 { color: #fff; font-size: 1.14rem; margin: 0 0 .25rem; }
.card-project__meta {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .84rem;
    color: rgba(255, 255, 255, .72);
}
.card-project__meta svg { width: 14px; height: 14px; }

/* فلتر المشاريع */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin-bottom: 2.6rem;
}
.filters a {
    padding: .55rem 1.35rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    font-size: .93rem;
    font-weight: 600;
    color: var(--body);
    transition: all .25s;
}
.filters a:hover { border-color: var(--teal); color: var(--teal-700); }
.filters a.is-active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

/* ─────────── قسم "لماذا نحن" ─────────── */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}
.split__media { position: relative; }
.split__media img {
    width: 100%;
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.split__badge {
    position: absolute;
    inset-inline-start: -18px;
    bottom: -22px;
    padding: 1.3rem 1.6rem;
    border-radius: var(--radius);
    background: var(--teal);
    color: #06312B;
    box-shadow: var(--shadow-teal);
    text-align: center;
}
.split__badge b { display: block; font-size: 2rem; font-weight: 900; line-height: 1; }
.split__badge span { font-size: .85rem; font-weight: 700; }

.feature-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: .95rem;
}
.feature-list__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px; height: 40px;
    margin-top: 2px;
    border-radius: 11px;
    background: var(--teal-050);
    color: var(--teal-700);
}
.section--navy .feature-list__icon { background: rgba(0,198,171,.16); color: var(--teal); }
.feature-list__icon svg { width: 19px; height: 19px; }
.feature-list h4 { margin: 0 0 .1rem; font-size: 1.03rem; }
.section--navy .feature-list h4 { color: #fff; }
.feature-list p { margin: 0; font-size: .93rem; color: var(--muted); }
.section--navy .feature-list p { color: #92A6B4; }

/* ─────────── شريط الدعوة للتواصل ─────────── */
.cta-band {
    position: relative;
    padding: clamp(52px, 6vw, 78px) 0;
    background: linear-gradient(120deg, var(--teal-700), var(--teal) 60%, #24D9BE);
    color: #05302A;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .2;
    background-image: radial-gradient(circle at 88% 30%, #fff, transparent 40%);
}
.cta-band__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.cta-band h2 { color: #04241F; margin-bottom: .3rem; }
.cta-band p  { margin: 0; color: rgba(4, 36, 31, .78); font-weight: 500; }
.cta-band .btn--navy { box-shadow: 0 14px 34px rgba(4, 36, 31, .28); }

/* ─────────── النماذج ─────────── */
.form-card {
    padding: clamp(1.8rem, 3vw, 2.6rem);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { margin-bottom: 1.1rem; }
.field label {
    display: block;
    margin-bottom: .45rem;
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
}
.field label .req { color: #E5484D; }

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .85rem 1.05rem;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-alt);
    font-family: inherit;
    font-size: .98rem;
    color: var(--ink);
    transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.7; }
.field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C8B96' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 16px;
    padding-inline-start: 2.6rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--teal);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(0, 198, 171, .14);
}
.field input::placeholder, .field textarea::placeholder { color: #A9B6BF; }
.field__hint { margin-top: .35rem; font-size: .82rem; color: var(--muted); }

/* حقل مخفي لمكافحة السبام */
.hp-field {
    position: absolute !important;
    inset-inline-start: -9999px;
    opacity: 0;
    height: 0;
    pointer-events: none;
}

/* تنبيهات */
.alert {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: 1.4rem;
    padding: .95rem 1.2rem;
    border: 1px solid;
    border-radius: var(--radius-sm);
    font-size: .95rem;
    font-weight: 600;
}
.alert--success { background: #E9FBF4; border-color: #A9E8CE; color: #0A6B47; }
.alert--error   { background: #FEF0F0; border-color: #F6C6C7; color: #A8272C; }
.alert--info    { background: var(--teal-050); border-color: #A8E9DE; color: var(--teal-700); }

/* ─────────── بطاقات التواصل ─────────── */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.05rem;
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    transition: border-color .3s, transform .3s var(--ease), box-shadow .3s;
}
.contact-item:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.contact-item__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 48px; height: 48px;
    border-radius: 13px;
    background: var(--teal-050);
    color: var(--teal-700);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { margin: 0 0 .15rem; font-size: 1rem; }
.contact-item p  { margin: 0; font-size: .95rem; color: var(--muted); }
.contact-item a  { color: var(--muted); }
.contact-item a:hover { color: var(--teal-700); }
.contact-item .ltr { direction: ltr; display: inline-block; }

.map-embed {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    line-height: 0;
    box-shadow: var(--shadow-sm);
}
.map-embed iframe { width: 100%; height: 340px; border: 0; }

/* ─────────── صفحة المشروع ─────────── */
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.gallery a {
    position: relative;
    display: block;
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface-alt);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.09); }
.gallery a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 198, 171, 0);
    transition: background-color .3s;
}
.gallery a:hover::after { background: rgba(0, 198, 171, .22); }

.project-hero-img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { padding: .85rem 0; border-bottom: 1px solid var(--line); text-align: start; }
.spec-table th { width: 42%; color: var(--muted); font-weight: 600; }
.spec-table td { color: var(--ink); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* عارض الصور (Lightbox) */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    place-items: center;
    padding: 5vh 5vw;
    background: rgba(10, 22, 30, .93);
    backdrop-filter: blur(6px);
}
.lightbox.is-open { display: grid; }
.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
}
.lightbox__close {
    position: absolute;
    top: 22px;
    inset-inline-end: 22px;
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background-color .25s;
}
.lightbox__close:hover { background: rgba(255, 255, 255, .28); }

/* ─────────── الفوتر ─────────── */
.footer {
    padding: clamp(56px, 6vw, 82px) 0 0;
    background: var(--navy-900);
    color: #93A7B5;
    font-size: .95rem;
}
.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
    gap: clamp(28px, 4vw, 52px);
    padding-bottom: 48px;
}
.footer h4 {
    margin-bottom: 1.2rem;
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
}
.footer a { color: #93A7B5; transition: color .22s, padding-inline-start .22s; }
.footer a:hover { color: var(--teal); }
.footer ul li { margin-bottom: .68rem; }
.footer ul li a:hover { padding-inline-start: 5px; }

.footer__brand { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.2rem; }
.footer__brand img { width: 54px; height: 54px; object-fit: contain; }
.footer__brand b { color: #fff; font-size: 1.2rem; font-weight: 900; }
.footer__brand span { display: block; font-size: .7rem; color: #7A8D9B; letter-spacing: .04em; }

.socials { display: flex; gap: .6rem; margin-top: 1.4rem; }
.socials a {
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .07);
    color: #B9C9D4;
    transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--teal); color: #06312B; transform: translateY(-3px); }
.socials svg { width: 19px; height: 19px; }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .88rem;
    color: #7A8D9B;
}

/* ─────────── زر واتساب العائم ─────────── */
.wa-float {
    position: fixed;
    inset-inline-end: 22px;
    bottom: 22px;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 13px 20px 13px 15px;
    border-radius: 999px;
    background: #25D366;
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    box-shadow: 0 12px 30px rgba(37, 211, 102, .42);
    transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 18px 40px rgba(37,211,102,.55); }
.wa-float svg { width: 25px; height: 25px; flex: none; }
.wa-float::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 999px;
    border: 2px solid #25D366;
    animation: wa-ping 2.4s var(--ease) infinite;
}
@keyframes wa-ping {
    0%   { transform: scale(1);    opacity: .8; }
    70%  { transform: scale(1.28); opacity: 0; }
    100% { transform: scale(1.28); opacity: 0; }
}

/* ─────────── ظهور تدريجي عند التمرير ─────────── */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ─────────── حالة فارغة ─────────── */
.empty-state {
    padding: clamp(48px, 7vw, 80px) 1.5rem;
    border: 1.5px dashed var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface-alt);
    text-align: center;
}
.empty-state svg { width: 56px; height: 56px; margin-bottom: 1rem; color: #C3D0D8; }
.empty-state h3 { margin-bottom: .35rem; }
.empty-state p  { color: var(--muted); margin-bottom: 1.5rem; }

/* ─────────── الاستجابة للشاشات ─────────── */
@media (max-width: 1024px) {
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .hero__stats  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
    .burger { display: flex; }
    .header__phone { display: none; }
    .header__actions .btn { display: none; }

    .nav {
        position: fixed;
        inset: var(--header-h) 0 auto;
        flex-direction: column;
        align-items: stretch;
        gap: .2rem;
        max-height: 0;
        padding: 0 1.25rem;
        background: #fff;
        box-shadow: var(--shadow);
        overflow: hidden;
        transition: max-height .45s var(--ease), padding .3s;
    }
    .nav.is-open { max-height: 78vh; padding: 1rem 1.25rem 1.6rem; overflow-y: auto; }
    .header:not(.header--solid):not(.header--inner) .nav a { color: var(--navy); }
    .nav a { padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: 1.02rem; }
    .nav a.is-active { background: var(--teal-050); }
    .nav a.is-active::after { display: none; }
    .nav .btn { margin-top: .8rem; }
    .nav .btn--primary { color: #06312B; }

    .form-row { grid-template-columns: 1fr; }
    .split__badge { inset-inline-start: 12px; bottom: -16px; }
    .cta-band__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
    body { font-size: 16px; }
    .footer__grid { grid-template-columns: 1fr; gap: 32px; }
    .hero__cta .btn { width: 100%; }
    .wa-float span { display: none; }
    .wa-float { padding: 15px; }
    .brand__tag { display: none; }
}

@media print {
    .header, .footer, .wa-float, .cta-band { display: none; }
}

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