/* ============================================================
   Concept Design — Styles
   Palette: beige / dark / gold · RTL Arabic
   ============================================================ */
:root {
  --bg: #fffdf9;
  --cream: #ede3d4;
  --cream-2: #f7f1e8;
  --dark: #1a1a1a;          /* لون ثابت للأسطح الداكنة (الهيدر/الفوتر/الشريط) */
  --surface: #fff;          /* خلفية الكروت والفورم */
  --ink: #2b2723;
  --heading: var(--dark);
  --muted: #6f675d;
  --gold: #c9a227;
  --gold-soft: #e3c46a;
  --line: #e3d9ca;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(26, 26, 26, .08);
  --gold-line: rgba(201,162,39,.34);
  --grid-line: rgba(201,162,39,.055);
  --warm: rgba(201,162,39,.075);
  --font: "Cairo", "Tajawal", system-ui, sans-serif;
}

/* النسق الداكن = الافتراضي */
html[data-theme="dark"] {
  --bg: #121110;
  --cream: #201d1a;
  --cream-2: #191715;
  --surface: #1c1a18;
  --ink: #e9e2d8;
  --heading: #f5efe5;
  --muted: #b8aea0;
  --line: #3a352f;
  --shadow: 0 18px 50px rgba(0, 0, 0, .38);
  --gold-line: rgba(227,196,106,.38);
  --grid-line: rgba(227,196,106,.055);
  --warm: rgba(227,196,106,.065);
}
html[lang="en"] { --font: "Tajawal", system-ui, sans-serif; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
.top-anchor { position: absolute; top: 0; inset-inline-start: 0; width: 0; height: 0; }
main section[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
/* مساحة للشريط السفلي الثابت فقط لما يكون ظاهر */
body.has-dock { padding-bottom: 76px; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; color: var(--heading); text-wrap: balance; }
h3 { font-weight: 700; }
p { margin: 0 0 1em; }
code { font-family: "Consolas", monospace; background: var(--cream-2); padding: 1px 5px; border-radius: 5px; }

.container { width: min(1140px, 92%); margin-inline: auto; }
.skip-link { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--dark); color: #fff; padding: 8px 14px; z-index: 999; }
.skip-link:focus { inset-inline-start: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: .25s ease;
  font-family: var(--font);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-gold {
  background: var(--gold); color: #1a1a1a;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 6px 18px rgba(201,162,39,.16);
}
.btn-gold:hover { background: var(--gold-soft); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 26px rgba(201,162,39,.26); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { border-color: var(--heading); color: var(--heading); background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.10); }
html[data-theme="dark"] .btn-dark { background: #26221d; border-color: rgba(227,196,106,.5); color: #fff; }
html[data-theme="dark"] .btn-dark:hover { background: #332d26; border-color: var(--gold-soft); }
.link-arrow { font-weight: 700; color: var(--gold); border-bottom: 2px solid var(--gold); padding-bottom: 3px; }

/* ---------- Header — بنفس لغة الشريط السفلي ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(18,18,18,.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(227,196,106,.35);
  transition: box-shadow .3s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,.28); }
.header-inner { display: flex; align-items: center; gap: 8px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; margin-inline-end: auto; flex: none; }
.brand-logo { height: 52px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.brand-since { display: none; color: var(--gold-soft); font-size: .75rem; font-weight: 700; border-inline-start: 1px solid rgba(255,255,255,.25); padding-inline-start: 10px; white-space: nowrap; }
.nav { display: flex; gap: 10px; align-items: center; }
.nav a { font-size: .88rem; font-weight: 600; color: rgba(255,255,255,.82); position: relative; padding: 6px 0; white-space: nowrap; transition: color .2s ease; }
.nav a:hover, .nav a.active { color: #fff; }
.nav a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 2px; background: var(--gold-soft); transition: .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { white-space: nowrap; }
/* الإنجليزية أطول — نضيّق المسافات شوية بدل ما نخفي زر إرفاق الملفات */
html[lang="en"] .header-inner { gap: 6px; }
html[lang="en"] .header-actions { gap: 6px; }
/* على الشاشات الواسعة نرجّع المساحة واللمسة «منذ 2009» */
@media (min-width: 1120px) {
  .header-inner { gap: 18px; }
  .brand-since { display: block; }
  .nav { gap: 20px; }
  .header-actions { gap: 12px; }
  html[lang="en"] .header-inner { gap: 12px; }
  html[lang="en"] .header-actions { gap: 12px; }
}
.attach-link { color: var(--gold-soft); font-size: .82rem; font-weight: 700; white-space: nowrap; border-bottom: 1px dashed rgba(227,196,106,.6); padding-bottom: 2px; }
.attach-link:hover { color: #fff; border-color: #fff; }
.tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  min-width: 38px; height: 38px; padding: 0 9px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08);
  color: var(--gold-soft); font-family: var(--font); font-weight: 800; font-size: .8rem;
  display: inline-grid; place-items: center; cursor: pointer; transition: .2s ease;
}
.icon-btn:hover { background: rgba(227,196,106,.16); border-color: var(--gold-soft); color: #fff; }
.icon-sun, .icon-moon { display: none; place-items: center; }
.icon-btn svg { display: block; width: 17px; height: 17px; }
html[data-theme="dark"] .icon-sun { display: grid; }
html[data-theme="light"] .icon-moon { display: grid; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); border-radius: 10px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--gold-soft); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 78px 0 56px; overflow: hidden;
  background:
    radial-gradient(circle at 85% 10%, rgba(201,162,39,.12), transparent 35%),
    linear-gradient(180deg, var(--cream-2), var(--bg));
}
/* شبكة معمارية خفيفة جداً — بتتلاشى للأسفل، بدون أي صورة */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px 72px);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 54px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; color: var(--gold); letter-spacing: .08em; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .8; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); font-weight: 800; letter-spacing: -.025em; text-wrap: balance; margin-bottom: 20px; }
.hero h1 span { color: var(--gold); }
.hero-copy > p { font-size: 1.05rem; color: var(--muted); max-width: 58ch; }
.hero-intro { font-size: .95rem !important; margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 34px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 2rem; color: var(--heading); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hero-stats span { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Hero — real project photo from the office archive */
.hero-visual { position: relative; display: grid; place-items: center; margin: 0; }
.hero-frame {
  position: relative; display: block; width: min(100%, 440px); aspect-ratio: 4 / 5;
  border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line); background: var(--dark);
}
.hero-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.04) 32%, rgba(0,0,0,.58));
}
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero-badge, .hero-stamp {
  position: absolute; z-index: 2; font-size: .72rem; font-weight: 800;
  padding: 6px 12px; border-radius: 999px; line-height: 1.3;
}
.hero-badge { top: 18px; inset-inline-end: 18px; background: var(--gold); color: #1a1a1a; }
.hero-stamp {
  bottom: 18px; inset-inline-start: 18px; color: #fff;
  background: rgba(0,0,0,.72); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Trust ---------- */
.trust { background: var(--dark); color: #fff; padding: 16px 0; }
.trust-inner { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust-inner > span { font-size: .85rem; color: var(--gold-soft); font-weight: 700; }
.trust ul { display: flex; gap: 10px; flex-wrap: wrap; }
.trust li { font-size: .82rem; }
.sector-chip {
  display: inline-block; border: 1px solid rgba(255,255,255,.25); padding: 5px 14px;
  border-radius: 999px; color: rgba(255,255,255,.9); cursor: pointer; transition: .2s ease;
}
.sector-chip:hover, .sector-chip:focus-visible {
  background: rgba(227,196,106,.16); border-color: var(--gold-soft); color: #fff; outline: none;
}

/* ---------- Sections ---------- */
.section { position: relative; padding: 104px 0; }
/* إضاءة دافئة خفيفة جداً — بتدي عمق من غير صور أو طلبات تحميل */
.section::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(55% 35% at 88% 4%, var(--warm), transparent 70%);
}
.section > .container { position: relative; z-index: 1; }
.section-head { position: relative; max-width: 700px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); letter-spacing: -.02em; text-wrap: balance; }
.section-head p { color: var(--muted); max-width: 62ch; font-size: 1.02rem; line-height: 1.85; }
.section-head::after { content: ""; display: block; width: 64px; height: 2px; margin-top: 20px; border-radius: 2px; background: var(--gold); opacity: .85; }

/* Analysis cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: .3s;
  background: radial-gradient(115% 120% at 100% 0, var(--warm), transparent 58%), var(--surface);
  box-shadow: 0 10px 30px rgba(0,0,0,.045);
}
.card::before, .card::after { content: ""; position: absolute; inset-inline: 26px; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s ease; }
.card::before { top: 0; }
.card::after { bottom: 0; }
.card:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow), 0 0 0 3px rgba(201,162,39,.07); }
.card:hover::before, .card:hover::after { transform: scaleX(1); }
.card-num { position: absolute; top: 8px; inset-inline-end: 18px; font-size: 2.2rem; line-height: 1; color: var(--gold); opacity: .16; font-weight: 800; font-variant-numeric: tabular-nums; transition: opacity .3s ease; }
.card:hover .card-num { opacity: .38; }
.card-icon {
  width: 54px; height: 54px; margin-bottom: 16px; border-radius: 16px;
  display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(145deg, rgba(227,196,106,.20), rgba(227,196,106,.05));
  border: 1px solid rgba(227,196,106,.45);
  transition: transform .25s ease, border-color .25s ease;
}
.card-icon svg { display: block; width: 27px; height: 27px; }
.card:hover .card-icon { transform: translateY(-3px); border-color: var(--gold); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .92rem; line-height: 1.85; }
.card-tag {
  display: block; margin: 2px 0 14px; text-align: center;
  font-size: clamp(1.35rem, 2.2vw, 1.7rem); font-weight: 800;
  line-height: 1.3; letter-spacing: -.02em; color: var(--gold);
  transition: color .25s ease, text-shadow .25s ease;
}
.card:hover .card-tag { color: var(--gold-soft); text-shadow: 0 0 20px rgba(227,196,106,.5); }
.callout { margin-top: 34px; background: var(--cream); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 22px 26px; }
.callout p { font-weight: 800; font-size: 1.1rem; margin-bottom: 4px; color: var(--heading); }
.callout span { color: var(--muted); font-size: .9rem; }

/* Method */
.method { background: var(--cream-2); }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.method-copy p { color: var(--muted); margin-bottom: 20px; }
.timeline { position: relative; padding-inline-start: 0; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; inset-inline-start: 19px; width: 2px; background: var(--line); }
.timeline li { display: flex; gap: 18px; padding-bottom: 22px; position: relative; }
.timeline li > span { flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--dark); color: var(--gold); display: grid; place-items: center; font-weight: 800; z-index: 1; }
.timeline div { display: flex; flex-direction: column; padding-top: 4px; }
.timeline strong { font-size: 1rem; }
.timeline small { color: var(--muted); font-size: .85rem; }

/* About */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.about-visual { position: relative; min-height: 340px; display: grid; place-items: center; }
.about-photo { position: relative; z-index: 2; width: 92%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.about-badge { position: absolute; z-index: 3; bottom: 12%; inset-inline-start: 12%; background: var(--dark); color: var(--gold-soft); font-weight: 800; font-size: .85rem; padding: 8px 16px; border-radius: 999px; }
.about-stats { display: flex; flex-wrap: wrap; gap: 18px 30px; margin: 22px 0 26px; padding: 18px 0; border-block: 1px solid var(--line); }
.about-stats > div { display: flex; flex-direction: column; min-width: 110px; }
.about-stats strong { font-size: 1.8rem; color: var(--heading); line-height: 1.3; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.about-stats span { font-size: .8rem; color: var(--muted); }
.frame-shadow { position: absolute; inset: 8% 4% 6% 18%; border: 2px dashed var(--gold-soft); border-radius: 20px; }
.check-list li { position: relative; padding-inline-start: 26px; margin-bottom: 10px; color: var(--muted); font-size: .95rem; }
.check-list li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 800; }

/* Phasing */
.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 20px; text-align: center; transition: transform .25s ease, box-shadow .25s ease; }
.phase:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.phase-icon {
  width: 54px; height: 54px; margin: 0 auto; border-radius: 16px;
  display: grid; place-items: center; color: var(--gold);
  background: linear-gradient(145deg, rgba(227,196,106,.20), rgba(227,196,106,.05));
  border: 1px solid rgba(227,196,106,.45);
  transition: transform .25s ease, border-color .25s ease;
}
.phase-icon svg { display: block; width: 28px; height: 28px; }
.phase:hover .phase-icon { transform: translateY(-3px); border-color: var(--gold); }
.phase h3 { font-size: 1rem; margin: 10px 0 6px; }
.phase p { font-size: .85rem; color: var(--muted); margin: 0; line-height: 1.8; }
.phase-note { text-align: center; margin-top: 26px; font-weight: 700; color: var(--heading); }
.steps { display: grid; gap: 12px; counter-reset: step; margin: 34px 0 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #1a1a1a; display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; font-size: 1rem; color: var(--heading); }
.steps small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.phase-examples { margin-top: 22px; color: var(--muted); font-size: .93rem; }
.phase-examples p { margin-bottom: 6px; }
.phase-examples strong { color: var(--heading); }

/* Maintenance */
.maintenance { background: var(--dark); color: #fff; }
.maintenance h2, .maintenance .eyebrow { color: #fff; }
.maintenance .eyebrow { color: var(--gold-soft); }
.maintenance-copy p { color: rgba(255,255,255,.72); max-width: 55ch; }
.maintenance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.maint-cards { display: grid; gap: 14px; }
.m-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 20px 24px; display: flex; align-items: center; gap: 18px; }
.m-card strong { font-size: 1.7rem; color: var(--gold-soft); min-width: 88px; }
.m-card span { font-size: .9rem; color: rgba(255,255,255,.8); }
.maintenance .list { padding-inline-start: 20px; margin: 20px 0 26px; }
.maintenance .list li { position: relative; margin-bottom: 8px; color: rgba(255,255,255,.78); font-size: .92rem; }
.maintenance .list li::before { content: "✓"; position: absolute; inset-inline-start: -20px; color: var(--gold-soft); font-weight: 800; }
.maintenance .btn-gold { margin-top: 2px; }

/* Notes + contract table */
.note { background: var(--cream-2); border: 1px solid var(--line); border-inline-start: 4px solid var(--gold); border-radius: 12px; padding: 16px 20px; margin-top: 14px; color: var(--ink); font-size: .95rem; }
.note strong { color: var(--heading); }
.tbl { width: 100%; overflow-x: auto; margin: 34px 0 14px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.04); }
.tbl table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; color: rgba(255,255,255,.85); }
.tbl th, .tbl td { padding: 12px 16px; text-align: start; border-bottom: 1px solid rgba(255,255,255,.12); }
.tbl thead th { background: rgba(227,196,106,.14); color: #fff; font-size: .85rem; }
.tbl tbody th { color: var(--gold-soft); font-weight: 700; }
.tbl tr:last-child th, .tbl tr:last-child td { border-bottom: 0; }
.tbl-note { color: rgba(255,255,255,.8); font-size: .92rem; margin-bottom: 0; }

/* Work — معرض القطاعات */
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filter-btn {
  font-family: var(--font); font-size: .82rem; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; cursor: pointer; transition: .2s ease;
}
.filter-btn:hover { border-color: var(--gold-soft); color: var(--heading); }
.filter-btn.active { background: var(--gold); border-color: var(--gold); color: #1a1a1a; }
.work-empty {
  background: var(--cream-2); border: 1px dashed var(--gold-soft); border-radius: var(--radius);
  padding: 34px 24px; text-align: center; margin-bottom: 20px;
}
.work-empty strong { display: block; color: var(--heading); margin-bottom: 4px; }
.work-empty span { color: var(--muted); font-size: .9rem; }
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.work-item {
  min-height: 260px; border-radius: 18px; padding: 26px; display: flex; flex-direction: column;
  justify-content: flex-end; color: #fff; position: relative; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(227,196,106,.3); box-shadow: 0 10px 30px rgba(0,0,0,.16);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.work-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  filter: grayscale(.35) saturate(.92);
  transition: transform .6s ease, filter .5s ease;
}
.work-item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.78)); }
.work-item > span, .work-item > h3, .work-item > p { position: relative; z-index: 2; }
.work-item span { align-self: flex-start; background: rgba(255,255,255,.92); color: var(--dark); font-size: .72rem; font-weight: 800; padding: 4px 12px; border-radius: 999px; margin-bottom: auto; }
.work-item h3 { color: #fff; margin-bottom: 2px; }
.work-item p { font-size: .85rem; color: rgba(255,255,255,.88); margin: 0; }
.w1 { background: linear-gradient(135deg, #c9a227, #7a6320); }
.w2 { background: linear-gradient(135deg, #4c5a55, #1f2a27); }
.w3 { background: linear-gradient(135deg, #b07d62, #5d3d2e); }
.w4 { background: linear-gradient(135deg, #6d8794, #33474f); }
.w5 { background: linear-gradient(135deg, #5f7d52, #2c3d27); }
.w6 { background: linear-gradient(135deg, #7b9b6a, #364a35); }
.w7 { background: linear-gradient(135deg, #8fa6b8, #3d5261); }
.w8 { background: linear-gradient(135deg, #a7bccb, #4b6271); }
.w9 { background: linear-gradient(135deg, #b08d5f, #5a432a); }
.w10 { background: linear-gradient(135deg, #c2a06f, #665031); }
.work-item:hover { transform: translateY(-4px); border-color: var(--gold-soft); box-shadow: 0 16px 40px rgba(0,0,0,.24); }
.work-item:hover img { transform: scale(1.06); filter: none; }

/* Contact */
.contact { background: var(--cream-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy p { color: var(--muted); }
.contact-line { font-weight: 700; margin-bottom: 8px; }
.contact-line span { color: var(--muted); font-weight: 500; }
.mini { font-size: .78rem; margin-top: 18px; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: var(--font); font-size: .92rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--surface); transition: .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,39,.15); }
select option { background: var(--surface); color: var(--ink); }
textarea { resize: vertical; }
.error { display: block; color: #b3261e; font-size: .76rem; min-height: 0; margin-top: 4px; }
.form-status { margin: 12px 0 0; font-weight: 700; color: #1f7a4d; min-height: 1.4em; }
.form-status.error-text { color: #b3261e; }
.form-hint { font-size: .78rem; color: var(--muted); margin: 6px 0 0; }
input[type="file"] { padding: 9px 10px; font-size: .82rem; }
input[type="file"]::file-selector-button {
  background: var(--cream); color: var(--heading); border: 1px solid var(--line);
  border-radius: 8px; padding: 6px 12px; font-family: var(--font); font-weight: 700;
  cursor: pointer; margin-inline-end: 10px;
}
.hint-file { display: block; color: var(--muted); font-size: .76rem; margin-top: 5px; }
.contact-line a { color: var(--gold-soft); font-weight: 800; border-bottom: 2px solid var(--gold-soft); direction: ltr; unicode-bidi: isolate; }
html[data-theme="dark"] .error { color: #ff9a90; }
html[data-theme="dark"] .form-status { color: #7fe0a8; }

/* FAQ */
.faq { background: var(--cream-2); }
.faq-list { max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--heading); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 20px 18px; color: var(--muted); font-size: .93rem; margin: 0; }

/* Work actions */
.work-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 200; bottom: 92px; inset-inline-start: 22px;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.35);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 12px 30px rgba(37,211,102,.45); }

/* Footer */
.site-footer { background: #121212; color: rgba(255,255,255,.75); border-top: 1px solid var(--gold-line); padding: 34px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-brand { display: inline-block; line-height: 0; margin-bottom: 8px; }
.footer-brand:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: 4px; border-radius: 6px; }
.footer-logo { height: 60px; width: auto; max-width: 100%; object-fit: contain; }
.footer-inner span { font-size: .8rem; }
.footer-slogan { color: var(--gold-soft); font-weight: 700; margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .8rem; margin: 4px 0 8px; }
.footer-links a { color: var(--gold-soft); border-bottom: 1px solid rgba(227,196,106,.35); }
.footer-links a:hover { color: #fff; border-color: #fff; }
.copy { font-size: .76rem; margin: 0; }

/* Persistent bottom bar — يظهر أثناء التصفح ويختفي عند الفوتر الكامل */
.dock-footer {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 150;
  background: rgba(18,18,18,.96); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(227,196,106,.35);
  transform: translateY(115%); transition: transform .35s ease;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18);
}
.dock-footer.visible { transform: translateY(0); }
.dock-inner { display: flex; align-items: center; gap: 18px; min-height: 76px; }
.dock-brand { display: flex; align-items: center; flex: none; }
.dock-brand img { height: 52px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.dock-slogan { color: var(--gold-soft); font-weight: 700; font-size: .92rem; margin-inline-end: auto; }
.dock-wa {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  background: #25d366; color: #fff; border-radius: 999px;
  padding: 9px 20px; font-weight: 800; font-size: .85rem;
  transition: background .2s ease, transform .2s ease;
}
.dock-wa:hover { background: #1eb85a; transform: translateY(-2px); }
.dock-wa bdi { direction: ltr; unicode-bidi: isolate; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 999; background: rgba(12,12,12,.92); display: none; align-items: center; justify-content: center; padding: 4%; }
.lightbox.open { display: flex; }
.lightbox-img { max-width: 100%; max-height: 88vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.lightbox-close { position: absolute; top: 16px; inset-inline-end: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lightbox-close:hover { background: rgba(255,255,255,.2); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1); }
.reveal.visible { opacity: 1; transform: none; }
/* ظهور متدرّج وهادئ — أول ٤ عناصر فقط عشان الصفحة ما تحسّش بطيئة */
.cards-3 > .reveal:nth-child(2), .phase-grid > .reveal:nth-child(2), .work-grid > .reveal:nth-child(2) { transition-delay: .08s; }
.cards-3 > .reveal:nth-child(3), .phase-grid > .reveal:nth-child(3), .work-grid > .reveal:nth-child(3) { transition-delay: .16s; }
.phase-grid > .reveal:nth-child(4), .work-grid > .reveal:nth-child(4) { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .method-grid, .about-grid, .maintenance-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .cards-3 { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: repeat(2, 1fr); }
  .nav {
    display: none; position: absolute; top: 100%; inset-inline: 0; background: #141414;
    border-bottom: 1px solid rgba(227,196,106,.35); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 4%;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.12); color: #fff; }
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .section { padding: 78px 0; }
}
@media (max-width: 560px) {
  .hero { padding-top: 54px; }
  .hero-stats { gap: 20px; }
  .work-grid, .field-row { grid-template-columns: 1fr; }
  .phase-grid { grid-template-columns: 1fr; }
  .m-card strong { min-width: 70px; font-size: 1.4rem; }
  .about-stats strong { font-size: 1.55rem; }
  .work-actions .btn { width: 100%; }
  .faq summary { font-size: .92rem; }
  .wa-float { width: 50px; height: 50px; bottom: 80px; inset-inline-start: 16px; }
  body.has-dock { padding-bottom: 66px; }
  .dock-inner { min-height: 66px; gap: 10px; }
  .dock-brand img { height: 42px; }
  .dock-slogan, .dock-wa span { display: none; }
  .dock-wa { padding: 8px 16px; font-size: .8rem; margin-inline-end: auto; }
  .attach-link { font-size: 1.2rem; }
  .attach-link span { display: none; }
  .container { width: 90%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .cards-3 > .reveal, .phase-grid > .reveal, .work-grid > .reveal { transition-delay: 0s; }
  .work-item img { transition: none; filter: none; }
  .dock-footer { transition: none; }
}
