/* ============================================================
   QEMA TECH — Main Stylesheet
   Black & Gold | RTL/LTR Bilingual
   ============================================================ */

/* ---- Variables ---- */

html {
    --black:        #080c10;
    --black-2:      #0d1117;
    --black-3:      #111820;
    --black-4:      #161e2a;
    --gold:         #c9a227;
    --gold-light:   #e4bc50;
    --gold-pale:    #f0d882;
    --gold-dark:    #8a6d10;
    --gold-glow:    rgba(201,162,39,.18);
    --white:        #ffffff;
    --text:         #d4dae6;
    --text-muted:   #6b7a94;
    --border:       rgba(201,162,39,.12);
    --border-hover: rgba(201,162,39,.35);
    --radius:       12px;
    --radius-sm:    7px;
    --radius-lg:    20px;
    --trans:        .3s ease;
    --shadow:       0 8px 40px rgba(0,0,0,.55);
    --shadow-gold:  0 8px 32px rgba(201,162,39,.22);
    --font-ar:      'Cairo', sans-serif;
    --font-en:      'Montserrat', sans-serif;
    --nav-h:        72px;
}

:root {
    --black:        #080c10;
    --black-2:      #0d1117;
    --black-3:      #111820;
    --black-4:      #161e2a;
    --gold:         #c9a227;
    --gold-light:   #e4bc50;
    --gold-pale:    #f0d882;
    --gold-dark:    #8a6d10;
    --gold-glow:    rgba(201,162,39,.18);
    --white:        #ffffff;
    --text:         #d4dae6;
    --text-muted:   #6b7a94;
    --border:       rgba(201,162,39,.12);
    --border-hover: rgba(201,162,39,.35);
    --radius:       12px;
    --radius-sm:    7px;
    --radius-lg:    20px;
    --trans:        .3s ease;
    --shadow:       0 8px 40px rgba(0,0,0,.55);
    --shadow-gold:  0 8px 32px rgba(201,162,39,.22);
    --font-ar:      'Cairo', sans-serif;
    --font-en:      'Montserrat', sans-serif;
    --nav-h:        72px;
}
:root {
    --black:        #080c10;
    --black-2:      #0d1117;
    --black-3:      #111820;
    --black-4:      #161e2a;
    --gold:         #c9a227;
    --gold-light:   #e4bc50;
    --gold-pale:    #f0d882;
    --gold-dark:    #8a6d10;
    --gold-glow:    rgba(201,162,39,.18);
    --white:        #ffffff;
    --text:         #d4dae6;
    --text-muted:   #6b7a94;
    --border:       rgba(201,162,39,.12);
    --border-hover: rgba(201,162,39,.35);
    --radius:       12px;
    --radius-sm:    7px;
    --radius-lg:    20px;
    --trans:        .3s ease;
    --shadow:       0 8px 40px rgba(0,0,0,.55);
    --shadow-gold:  0 8px 32px rgba(201,162,39,.22);
    --font-ar:      'Cairo', sans-serif;
    --font-en:      'Montserrat', sans-serif;
    --nav-h:        72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    background: var(--black);
    color: var(--text);
    font-family: var(--font-ar);
    line-height: 1.75;
    overflow-x: hidden;
    direction: rtl;
}
body.lang-en { direction: ltr; font-family: var(--font-en); }

a { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; }
ul  { list-style: none; }

.container {
    width: min(1200px, 100% - 40px);
    margin-inline: auto;
}

/* ============================================================
   NAVBAR — Clean, no conflicts
   ============================================================ */

/* الـ navbar نفسه */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    background: rgba(8,12,16,.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
    background: rgba(8,12,16,.98);
    box-shadow: 0 2px 30px rgba(0,0,0,.5);
}

/* الـ container داخل الـ navbar */
.nav-inner {
    display: flex;
    align-items: center;

    gap: 8px;
}

/* اللوجو: في اليمين (RTL) */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 9px;
    display: grid; place-items: center;
    font-size: 1.1rem;
    color: #080c10;
    flex-shrink: 0;
}
.logo-text  { line-height: 1.1; }
.logo-ar    { display: block; font-size: 1rem; font-weight: 900; color: var(--gold); }
.logo-en    { display: block; font-size: .55rem; font-weight: 700; letter-spacing: 3px; color: var(--text-muted); text-transform: uppercase; }

/* الروابط: في المنتص — تاخد كل المساحة الفاضية */
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;                  /* تملأ المساحة بين اللوجو والأكشنز */
    justify-content: center;  /* مرتكزة في النص */
}
.nav-links a {
    color: var(--text);
    font-weight: 600;
    font-size: .88rem;
    padding: 7px 13px;
    border-radius: 7px;
    transition: color .25s, background .25s;
    white-space: nowrap;
    text-decoration: none;
}
.nav-links a:hover,
.nav-links a.nav-active {
    color: var(--gold);
    background: var(--gold-glow);
}

/* الأكشنز: في الشمال (RTL end) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* زرار اللغة */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--black-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 30px;
    font-size: .8rem;
    font-weight: 700;
    transition: .25s;
    cursor: pointer;
    text-decoration: none;
}
.lang-btn:hover { border-color: var(--gold); color: var(--gold); }

/* زرار الثيم */
.theme-btn {
    width: 34px; height: 34px;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--text-muted);
    font-size: .85rem;
    cursor: pointer;
    transition: .25s;
    flex-shrink: 0;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }

/* زرار واتساب في الناف (ديسكتوب فقط) */
.btn-wa-nav {
    background: #22c55e;
    color: #fff !important;
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 700;
    font-size: .82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    text-decoration: none;
    transition: .25s;
    flex-shrink: 0;
}
.btn-wa-nav:hover { background: #16a34a; }

/* الهامبرجر — مخفي على الديسكتوب */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin: 0px 80px;
    flex-shrink: 0;

}
.nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* زرار واتساب داخل الـ drawer (موبايل فقط) */
.nav-mobile-wa { display: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 700;
    font-size: .92rem;
    cursor: pointer;
    border: none;
    transition: transform var(--trans), box-shadow var(--trans), background var(--trans);
    white-space: nowrap;
    line-height: 1;
}
.btn:active { transform: scale(.97) !important; }

.btn-gold {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    color: var(--black);
}
.btn-gold:hover {
    background: linear-gradient(135deg, var(--gold-pale), var(--gold-light));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
    color: var(--black);
}

.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 1.5px solid rgba(201,162,39,.45);
}
.btn-outline:hover {
    background: var(--gold-glow);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.btn-wa {
    background: #22c55e;
    color: #fff;
}
.btn-wa:hover {
    background: #16a34a;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(34,197,94,.3);
    color: #fff;
}

.btn-sm  { padding: 8px 18px; font-size: .82rem; }
.btn-lg  { padding: 15px 36px; font-size: 1rem; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
    position: fixed;
    inset-block-end: 28px;
    inset-inline-end: 28px;
    z-index: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #22c55e;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    box-shadow: 0 6px 28px rgba(34,197,94,.45);
    transition: transform var(--trans), box-shadow var(--trans);
    animation: waFloat 3s ease-in-out infinite;
}
.wa-float i { font-size: 1.3rem; }
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.04); }

@keyframes waFloat {
    0%,100% { box-shadow: 0 6px 28px rgba(34,197,94,.45); }
    50%      { box-shadow: 0 10px 40px rgba(34,197,94,.65); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* allow hero-stats to shift slightly below without clipping */
    overflow: visible;
    padding-block: calc(var(--nav-h) + 60px) 80px;
}

.hero-bg {
    position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(ellipse 80% 70% at 10% 50%, #1a1200 0%, var(--black) 60%),
                radial-gradient(ellipse 60% 80% at 90% 10%, #110d00 0%, transparent 55%);
}
.hero-bg::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(201,162,39,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,162,39,.05) 1px, transparent 1px);
    background-size: 55px 55px;
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 50% 50% at 50% 100%, rgba(201,162,39,.08) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; max-width: 680px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 7px;
    background: rgba(201,162,39,.08);
    border: 1px solid rgba(201,162,39,.28);
    color: var(--gold);
    padding: 6px 16px; border-radius: 30px;
    font-size: .8rem; font-weight: 700; letter-spacing: 1px;
    margin-block-end: 22px;
    animation: fadeUp .7s ease both;
}
.hero-badge i { font-size: .7rem; }

.hero h1 {
    font-size: clamp(2rem, 5.5vw, 3.8rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-block-end: 20px;
    animation: fadeUp .7s .15s ease both;
}
.hero h1 em { color: var(--gold); font-style: normal; }

.hero p {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin-block-end: 32px;
    animation: fadeUp .7s .28s ease both;
}

.hero-tags {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-block-end: 36px;
    animation: fadeUp .7s .38s ease both;
}
.hero-tag {
    display: flex; align-items: center; gap: 6px;
    background: var(--black-4);
    border: 1px solid var(--border);
    padding: 7px 15px; border-radius: 30px;
    font-size: .82rem; color: var(--text);
    transition: border-color var(--trans);
}
.hero-tag:hover { border-color: var(--gold-dark); }
.hero-tag i { color: var(--gold); font-size: .8rem; }

.hero-btns {
    display: flex; flex-wrap: wrap; gap: 12px;
    animation: fadeUp .7s .48s ease both;
}

.hero-visual {
    position: absolute;
    inset-block-start: 50%; inset-inline-end: -40px;
    transform: translateY(-50%);
    z-index: 0;
    width: min(520px, 48vw);
    opacity: .08;
    pointer-events: none;
}

/* Stats bar */
.hero-stats {
    position: absolute; inset-block-end: -14px; inset-inline: 0; z-index: 0;
    border-top: 1px solid var(--border);
    background: rgba(8,12,16,.6);
    backdrop-filter: blur(8px);
    animation: fadeIn 1s .8s ease both;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    padding: 22px 0;
}
.stat-item { padding: 0 20px; }
.stat-item + .stat-item { border-inline-start: 1px solid var(--border); }
.stat-num {
    font-size: 2rem; font-weight: 900;
    color: var(--gold); line-height: 1;
    font-family: var(--font-en);
}
.stat-lbl { font-size: .75rem; color: var(--text-muted); margin-block-start: 5px; }

/* ============================================================
   SECTIONS
   ============================================================ */
.section      { padding: 90px 0; }
.section-dark { background: var(--black-2); }
.section-alt  { background: var(--black-3); }

.section-head { text-align: center; margin-block-end: 56px; }
.section-tag {
    display: inline-block;
    color: var(--gold); font-size: .72rem; font-weight: 800;
    letter-spacing: 3px; text-transform: uppercase;
    margin-block-end: 12px;
}
.section-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 900; color: var(--white);
    line-height: 1.2; margin-block-end: 14px;
}
.section-title em { color: var(--gold); font-style: normal; }
.section-desc { color: var(--text-muted); max-width: 540px; margin-inline: auto; font-size: .95rem; }

/* ============================================================
   FEATURE CARDS (Why Us)
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 22px;
}
.feature-card {
    background: var(--black-4);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 24px;
    position: relative; overflow: hidden;
    transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
}
.feature-card::after {
    content: '';
    position: absolute; inset-block-start: 0; inset-inline-start: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--gold), var(--gold-dark));
    transition: width .5s ease;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-hover); box-shadow: var(--shadow-gold); }
.feature-card:hover::after { width: 100%; }

.feature-icon {
    width: 52px; height: 52px;
    background: rgba(201,162,39,.1);
    border-radius: 11px;
    display: grid; place-items: center;
    font-size: 1.35rem; color: var(--gold);
    margin-block-end: 18px;
}
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--white); margin-block-end: 9px; }
.feature-card p  { font-size: .86rem; color: var(--text-muted); }

/* ============================================================
   CARDS (Projects / Offers)
   ============================================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-gold); border-color: var(--border-hover); }

.card-thumb {
    width: 100%; height: 210px;
    object-fit: cover;
    background: var(--black-4);
    transition: transform .5s ease;
}
.card:hover .card-thumb { transform: scale(1.04); }
.card-thumb-wrap { overflow: hidden; }

.card-thumb-placeholder {
    width: 100%; height: 210px;
    background: var(--black-4);
    display: grid; place-items: center;
    font-size: 2.5rem; color: var(--border-hover);
}

.card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
    font-size: .72rem; font-weight: 800;
    color: var(--gold); letter-spacing: 1.5px;
    text-transform: uppercase; margin-block-end: 8px;
    display: flex; align-items: center; gap: 6px;
}

.card-title {
    font-size: 1.02rem; font-weight: 700;
    color: var(--white); line-height: 1.45;
    margin-block-end: 10px;
}

.card-desc {
    font-size: .86rem; color: var(--text-muted);
    margin-block-end: 20px; flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot {
    display: flex; align-items: center;
    justify-content: space-between; gap: 10px;
    padding-block-start: 16px;
    border-block-start: 1px solid var(--border);
    margin-block-start: auto;
}
.card-meta { font-size: .78rem; color: var(--text-muted); display: flex; align-items: center; gap: 5px; }
.card-meta i { color: var(--gold); }

/* ============================================================
   SECTION CTA BAR
   ============================================================ */
.section-cta { text-align: center; margin-block-start: 44px; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
    padding-block: calc(var(--nav-h) + 70px) 60px;
    position: relative; overflow: hidden;
    text-align: center;
    background: var(--black-2);
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201,162,39,.07) 0%, transparent 70%);
}
.page-hero::after {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(201,162,39,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,162,39,.04) 1px, transparent 1px);
    background-size: 50px 50px;
}
.page-hero-content { position: relative; z-index: 1; }

.breadcrumb {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 6px;
    font-size: .8rem; color: var(--text-muted);
    margin-block-end: 16px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb i { font-size: .65rem; }

.page-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 900; color: var(--white);
    margin-block-end: 14px;
}
.page-title em { color: var(--gold); font-style: normal; }
.page-subtitle { font-size: 1rem; color: var(--text-muted); max-width: 520px; margin-inline: auto; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px; align-items: start;
}

.contact-info-item {
    display: flex; align-items: flex-start; gap: 14px;
    padding: 18px 0;
    border-block-end: 1px solid var(--border);
}
.contact-info-item:last-child { border: none; }
.c-icon {
    width: 44px; height: 44px;
    background: rgba(201,162,39,.08);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.c-info h4 { font-size: .8rem; color: var(--text-muted); font-weight: 600; margin-block-end: 3px; }
.c-info a, .c-info p { color: var(--text); font-size: .92rem; }
.c-info a:hover { color: var(--gold); }

/* Form */
.form-group { margin-block-end: 18px; }
.form-label { display: block; font-size: .83rem; font-weight: 700; color: var(--text-muted); margin-block-end: 7px; }
.form-control {
    width: 100%;
    background: var(--black-4);
    border: 1.5px solid var(--border);
    color: var(--white);
    padding: 11px 15px;
    border-radius: var(--radius-sm);
    font-family: inherit; font-size: .93rem;
    transition: border-color var(--trans), box-shadow var(--trans);
    outline: none;
}
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,.1);
}
.form-control::placeholder { color: var(--text-muted); }
textarea.form-control { resize: vertical; min-height: 130px; }

/* ============================================================
   OFFER DETAIL
   ============================================================ */
.offer-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }

.offer-gallery-main {
    width: 100%; aspect-ratio: 4/3;
    object-fit: cover; border-radius: var(--radius);
    border: 1px solid var(--border);
}
.offer-gallery-thumbs { display: flex; gap: 10px; margin-block-start: 12px; flex-wrap: wrap; }
.offer-gallery-thumbs img {
    width: 72px; height: 54px; object-fit: cover;
    border-radius: 6px; cursor: pointer;
    border: 2px solid transparent; transition: border-color var(--trans);
    opacity: .65;
}
.offer-gallery-thumbs img:hover,
.offer-gallery-thumbs img.active { border-color: var(--gold); opacity: 1; }

.offer-specs-table { width: 100%; border-collapse: collapse; margin-block: 20px; }
.offer-specs-table tr { border-block-end: 1px solid var(--border); }
.offer-specs-table td { padding: 10px 12px; font-size: .88rem; }
.offer-specs-table td:first-child { color: var(--text-muted); width: 45%; }
.offer-specs-table td:last-child { color: var(--white); font-weight: 600; }

/* ============================================================
   ALERTS
   ============================================================ */
.alert { padding: 13px 18px; border-radius: var(--radius-sm); font-size: .88rem; margin-block-end: 18px; }
.alert-ok  { background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3);  color: #4ade80; }
.alert-err { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #f87171; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--black-2);
    border-block-start: 1px solid var(--border);
    padding-block-start: 70px;
    position: relative; overflow: hidden;
}
.footer-glow {
    position: absolute; inset-block-start: 0; inset-inline: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-block-end: 50px;
}

.footer-logo { display: flex; align-items: center; gap: 10px; margin-block-end: 16px; }
.footer-brand p { font-size: .88rem; color: var(--text-muted); line-height: 1.75; margin-block-end: 22px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 36px; height: 36px;
    background: var(--black-4); border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--text-muted); font-size: .85rem;
    transition: var(--trans);
}
.footer-social a:hover { background: var(--gold-glow); border-color: var(--gold); color: var(--gold); }

.footer-col h4 {
    font-size: .82rem; font-weight: 800;
    color: var(--white); letter-spacing: 2px;
    text-transform: uppercase; margin-block-end: 20px;
    padding-block-end: 10px;
    border-block-end: 1px solid var(--border);
}
.footer-col ul li { margin-block-end: 9px; }
.footer-col ul a { color: var(--text-muted); font-size: .88rem; display: flex; align-items: center; gap: 7px; }
.footer-col ul a i { color: var(--gold-dark); font-size: .75rem; }
.footer-col ul a:hover { color: var(--gold); padding-inline-start: 4px; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-block-end: 12px; }
.footer-contact i { color: var(--gold); margin-block-start: 3px; flex-shrink: 0; }

.footer-bottom {
    border-block-start: 1px solid var(--border);
    padding: 20px 0;
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: .8rem; color: var(--text-muted); }
.footer-credit { color: var(--gold-dark) !important; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-block-end: 40px; }
.filter-tab {
    background: var(--black-4); border: 1px solid var(--border);
    color: var(--text-muted); padding: 7px 18px; border-radius: 30px;
    font-size: .83rem; font-weight: 600; cursor: pointer;
    transition: var(--trans); font-family: inherit;
}
.filter-tab:hover, .filter-tab.active {
    background: var(--gold-glow); border-color: var(--gold); color: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ── Large tablet ── */
@media (max-width: 1024px) {
    .footer-grid       { grid-template-columns: 1fr 1fr; }
    .contact-grid      { grid-template-columns: 1fr; }
    .offer-detail-grid { grid-template-columns: 1fr; }
    .about-grid        { grid-template-columns: 1fr; }
}

/* ── Tablet ── */
@media (max-width: 900px) {
    .cards-grid    { grid-template-columns: repeat(2, 1fr); }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   MOBILE NAVBAR — Complete rewrite
   ============================================================ */
@media (max-width: 768px) {
    :root { --nav-h: 58px; }

    /* Ensure drawer is above overlay (stacking context fix) */
    .navbar { z-index: 10000 !important; }

    /* ── إظهار الهامبرجر ── */
    .nav-toggle { display: flex; }

    /* ── إخفاء عناصر الديسكتوب ── */
    .btn-wa-nav { display: none !important; }
    .lang-btn i { display: none; }
    .lang-btn   { padding: 5px 9px; font-size: .72rem; }
    .theme-btn  { width: 30px; height: 30px; font-size: .75rem; }
    .nav-actions { gap: 6px; }

    /* ── واتساب داخل الـ drawer ── */
    .nav-mobile-wa {
        display: flex !important;
        width: 100%;
        justify-content: center;
        padding-top: 16px;
        border-top: 1px solid rgba(201,162,39,.15);
    }

    /* ── الـ Drawer (RTL - بيجي من اليمين) ── */
    .nav-links {
        /* override desktop flex */
        flex: none !important;
        justify-content: flex-start !important;

        /* drawer positioning */
        position: fixed !important;
        top: 58px !important;
        bottom: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: 260px !important;
        max-width: 76vw !important;
        height: calc(100vh - 58px) !important;
        max-height: calc(100vh - 58px) !important;
        z-index: 9999 !important;

        /* مخفي بـ transform — بيتحرك من اليمين للشمال */
        transform: translateX(100%) !important;
        visibility: hidden !important;

        /* الشكل */
        background: #0d1117 !important;
        border-left: 1px solid rgba(201,162,39,.2) !important;
        box-shadow: -8px 0 40px rgba(0,0,0,.8) !important;

        /* الـ layout من فوق لتحت */
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0 !important;
        padding: 20px 12px 30px !important;
        overflow-y: auto !important;

        transition: transform .32s ease, visibility .32s !important;
    }

    /* LTR: drawer من الشمال */
    body.lang-en .nav-links {
        right: auto !important;
        left: 0 !important;
        transform: translateX(-100%) !important;
        border-left: none !important;
        border-right: 1px solid rgba(201,162,39,.2) !important;
    }

    /* مفتوح */
    .nav-links.open {
        transform: translateX(0) !important;
        visibility: visible !important;
    }

    /* روابط داخل الـ drawer */
    .nav-links a {
        display: block !important;
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: .95rem !important;
        font-weight: 600 !important;
        border-radius: 8px !important;
        margin-bottom: 2px !important;
        color: #d4dae6 !important;
        white-space: normal !important;
        background: transparent !important;
    }
    .nav-links a:hover,
    .nav-links a.nav-active {
        color: var(--gold) !important;
        background: rgba(201,162,39,.1) !important;
    }

    /* الـ overlay خلف الـ drawer */
    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.65);
        z-index: 9998;
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
    }
    .nav-overlay.show { display: block; }

    /* ── باقي الـ layout ── */
    .cards-grid    { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid   { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .stats-inner { grid-template-columns: repeat(2,1fr); }
    .stat-item:nth-child(3) { border-inline-start: none; border-top: 1px solid var(--border); }
    .stat-item:nth-child(4) { border-top: 1px solid var(--border); }

    .hero         { padding-block: calc(var(--nav-h) + 40px) 0; }
    .hero-stats   { margin-block-start: 36px; }
    .section      { padding: 60px 0; }
    .page-hero, .pg-hero { padding-block: calc(var(--nav-h) + 40px) 36px; }

    .wa-float span { display: none; }
    .wa-float      { padding: 14px; border-radius: 100%; }

    .offer-detail-grid,
    .project-detail-wrap,
    .about-wrap,
    .about-grid,
    .contact-grid { grid-template-columns: 1fr !important; }

    .cta-band { padding: 36px 20px; border-radius: 14px; }
    .c-form   { padding: 22px 18px; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; justify-content: center; }
    .section-title  { font-size: 1.45rem; }
    .hero .h1        { font-size: clamp(1.8rem, 8vw, 2.6rem); }

    /* Filter tabs: horizontal scroll */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 7px;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex-shrink: 0; padding: 6px 14px; font-size: .78rem; }

    /* Form rows 1col */
    .form-row,
    .admin-form-grid { grid-template-columns: 1fr !important; }
}

/* ── Very small (380px) ── */
@media (max-width: 380px) {
    .hero h1 { font-size: 1.7rem; }
    .btn-lg  { padding: 12px 20px; font-size: .88rem; }
    .stat-n  { font-size: 1.5rem; }
    .lang-btn { padding: 4px 8px; font-size: .68rem; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.theme-btn {
    width: 36px; height: 36px;
    background: var(--black-3);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: grid; place-items: center;
    color: var(--text-muted);
    font-size: .88rem;
    cursor: pointer;
    transition: var(--trans);
    flex-shrink: 0;
    margin: 0px 20px;
}
.theme-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   LIGHT MODE — Navy Blue accent (no gold on light bg)
   ============================================================ */
body.light-mode {
    --black:      #f2f5f9;
    --black-2:    #e8ecf3;
    --black-3:    #ffffff;
    --black-4:    #eef1f7;
    --black-5:    #e4e8f0;
    --text:       #1a2535;
    --white:      #141618;
    --text-muted: #55677e;
    --border:     rgba(0,0,0,.1);
    --gold-glow:  rgba(26,58,107,.1);
    background: #f2f5f9;
    color: #1a2535;
}

/* ── Accent color for light mode = Navy ── */
body.light-mode { --accent: #1a3a6b; --accent-light: #2451a0; }

/* Navbar */
body.light-mode .navbar          { background: rgba(242,245,249,.95); border-color: rgba(0,0,0,.08); }
body.light-mode .navbar.scrolled { background: rgba(242,245,249,.99); box-shadow: 0 2px 20px rgba(0,0,0,.08); }
body.light-mode .nav-links a     { color: #2d3f55; }
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.nav-active { color: #1a3a6b; background: rgba(26,58,107,.08); }
/* nav-links background only on mobile drawer - see @media block */
body.light-mode .logo-ar         { color: #8a6d10; }
body.light-mode .logo-en         { color: #7a8a9e; }
body.light-mode .lang-btn        { background: #fff; border-color: rgba(0,0,0,.12); color: #2d3f55; }
body.light-mode .lang-btn:hover  { border-color: #1a3a6b; color: #1a3a6b; }
body.light-mode .theme-btn       { background: #fff; border-color: rgba(0,0,0,.12); color: #7a8a9e; }
body.light-mode .theme-btn:hover { border-color: #1a3a6b; color: #1a3a6b; }

/* Hero */
body.light-mode .hero-bg {
    background:
        radial-gradient(ellipse 90% 80% at 5% 40%, #ccdaf5 0%, transparent 55%),
        radial-gradient(ellipse 70% 60% at 95% 10%, #c8e0ee 0%, transparent 50%),
        #f2f5f9;
}
body.light-mode .hero-bg::before {
    background-image:
        linear-gradient(rgba(26,58,107,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26,58,107,.05) 1px, transparent 1px);
}
body.light-mode .hero h1    { color: #0a1628; }
body.light-mode .hero-sub   { color: #3d5068; }
body.light-mode .hero-badge { background: rgba(26,58,107,.08); border-color: rgba(26,58,107,.2); color: #1a3a6b; }
body.light-mode .hero-badge i { color: #1a3a6b; }
body.light-mode .hero-tag   { background: #fff; border-color: rgba(0,0,0,.1); color: #2d3f55; }
body.light-mode .hero-tag i { color: #1a3a6b; }
body.light-mode .hero-stats { background: rgba(242,245,249,.92); border-color: rgba(0,0,0,.08); }
body.light-mode .stat-n     { color: #1a3a6b; }
body.light-mode .stat-l     { color: #55677e; }
body.light-mode .stat-item + .stat-item { border-inline-start-color: rgba(0,0,0,.1); }

/* Buttons */
body.light-mode .btn-gold {
    background: #1a3a6b;
    color: #fff;
}
body.light-mode .btn-gold:hover {
    background: #2451a0;
    color: #fff;
    box-shadow: 0 8px 24px rgba(26,58,107,.3);
}
body.light-mode .btn-outline {
    color: #1a3a6b;
    border-color: rgba(26,58,107,.4);
}
body.light-mode .btn-outline:hover {
    background: rgba(26,58,107,.08);
    border-color: #1a3a6b;
    color: #1a3a6b;
}

/* Sections */
body.light-mode .section-dark  { background: #e4e9f3; }
body.light-mode .section-alt   { background: #f5f7fb; }
body.light-mode .section-title,
body.light-mode .sec-title     { color: #0a1628; }
body.light-mode .section-desc,
body.light-mode .sec-desc      { color: #55677e; }
body.light-mode .section-tag,
body.light-mode .sec-tag       { color: #1a3a6b; }

/* Feature cards */
body.light-mode .feature-card,
body.light-mode .feat-card     { background: #fff; border-color: rgba(0,0,0,.08); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
body.light-mode .feature-card:hover,
body.light-mode .feat-card:hover { border-color: rgba(26,58,107,.2); box-shadow: 0 8px 28px rgba(0,0,0,.08); }
body.light-mode .feature-card h3,
body.light-mode .feat-card h3  { color: #0a1628; }
body.light-mode .feature-card p,
body.light-mode .feat-card p   { color: #4a5e74; }
body.light-mode .feature-icon,
body.light-mode .feat-icon     { background: rgba(26,58,107,.08); color: #1a3a6b; }

/* Cards */
body.light-mode .card          { background: #fff; border-color: rgba(0,0,0,.07); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
body.light-mode .card:hover    { border-color: rgba(26,58,107,.18); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
body.light-mode .card-title    { color: #0a1628; }
body.light-mode .card-desc     { color: #4a5e74; }
body.light-mode .card-cat      { color: #1a3a6b; }
body.light-mode .card-cat i    { color: #1a3a6b; }
body.light-mode .card-meta     { color: #7a8a9e; }
body.light-mode .card-foot     { border-color: rgba(0,0,0,.07); }
body.light-mode .card-ph       { background: #e4e9f3; color: rgba(26,58,107,.25); }

/* Page hero */
body.light-mode .page-hero,
body.light-mode .pg-hero       { background: #e4e9f3; }
body.light-mode .pg-title,
body.light-mode .page-title    { color: #0a1628; }
body.light-mode .pg-sub,
body.light-mode .page-subtitle { color: #4a5e74; }
body.light-mode .breadcrumb    { color: #7a8a9e; }
body.light-mode .breadcrumb a  { color: #7a8a9e; }
body.light-mode .breadcrumb a:hover { color: #1a3a6b; }

/* Filter tabs */
body.light-mode .filter-tab    { background: #fff; border-color: rgba(0,0,0,.1); color: #55677e; }
body.light-mode .filter-tab:hover,
body.light-mode .filter-tab.active,
body.light-mode .filter-tab.on { background: rgba(26,58,107,.08); border-color: #1a3a6b; color: #1a3a6b; }

/* Specs */
body.light-mode .specs-box     { background: #f5f7fb; border-color: rgba(0,0,0,.07); }
body.light-mode .specs-hd      { color: #55677e; border-color: rgba(0,0,0,.07); }
body.light-mode .specs-table tr { border-color: rgba(0,0,0,.05); }
body.light-mode .specs-table td:first-child { color: #7a8a9e; }
body.light-mode .specs-table td:last-child  { color: #0a1628; }

/* Contact */
body.light-mode .c-form        { background: #fff; border-color: rgba(0,0,0,.07); }
body.light-mode .c-form h3     { color: #0a1628; }
body.light-mode .c-item        { border-color: rgba(0,0,0,.07); }
body.light-mode .c-ico         { background: rgba(26,58,107,.07); border-color: rgba(26,58,107,.15); color: #1a3a6b; }
body.light-mode .c-txt h4      { color: #7a8a9e; }
body.light-mode .c-txt p,
body.light-mode .c-txt a       { color: #1a2535; }
body.light-mode .form-control  { background: #eef1f7; border-color: rgba(0,0,0,.1); color: #1a2535; }
body.light-mode .form-control::placeholder { color: #9aabb8; }
body.light-mode .form-control:focus { border-color: #1a3a6b; box-shadow: 0 0 0 3px rgba(26,58,107,.1); background: #fff; }
body.light-mode .form-label,
body.light-mode .fl            { color: #4a5e74; }

/* CTA band */
body.light-mode .cta-band      { background: linear-gradient(135deg, #ccdaf5, #c8e8d8); border-color: rgba(26,58,107,.2); }

/* About */
body.light-mode .about-img     { background: #e4e9f3; border-color: rgba(0,0,0,.07); }
body.light-mode .asmi          { background: #fff; border-color: rgba(0,0,0,.07); }
body.light-mode .asmi-n        { color: #1a3a6b; }
body.light-mode .asmi-l        { color: #7a8a9e; }

/* Footer */
body.light-mode .footer        { background: #dde3ee; border-color: rgba(0,0,0,.07); }
body.light-mode .footer-glow   { background: linear-gradient(90deg, transparent, rgba(26,58,107,.25), transparent); }
body.light-mode .footer-brand p     { color: #55677e; }
body.light-mode .footer-col h4      { color: #0a1628; border-color: rgba(0,0,0,.07); }
body.light-mode .footer-col ul li a,
body.light-mode .footer-col ul li span { color: #55677e; }
body.light-mode .footer-col ul li a:hover,
body.light-mode .footer-col ul li span:hover { color: #1a3a6b; }
body.light-mode .fc-contact li      { color: #55677e; }
body.light-mode .footer-bottom p    { color: #55677e; }
body.light-mode .fsoc               { background: #fff; border-color: rgba(0,0,0,.1); color: #7a8a9e; }
body.light-mode .fsoc:hover         { background: rgba(26,58,107,.08); border-color: #1a3a6b; color: #1a3a6b; }
body.light-mode .footer-logo .logo-ar { color: #8a6d10; }

/* Alerts */
body.light-mode .alert-ok  { background: rgba(21,128,61,.08); color: #166534; border-color: rgba(21,128,61,.2); }
body.light-mode .alert-err { background: rgba(220,38,38,.08); color: #991b1b; border-color: rgba(220,38,38,.2); }
