/* ===== الإمام للتطوير العقاري — نفس هوية البروشور: أسود + أخضر غامق + ذهبي ===== */
:root {
  --black: #050a07;
  --ink: #0a120e;
  --surface: #0f1a15;
  --surface-2: #14231c;
  --green: #0e3522;
  --green-band: #1f4a35;
  --green-soft: #2d5a43;
  --gold: #d4a853;
  --gold-light: #e8c77f;
  --gold-dark: #9c7a36;
  --brick: #9e3b2b;
  --text: #f3efe6;
  --muted: #b9b3a6;
  --line: rgba(212, 168, 83, .22);
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --font: "Tajawal", "Cairo", system-ui, sans-serif;
  --script: "Pacifico", cursive;
  --max: 1200px;
  --header-bg: rgba(5, 10, 7, .88);
  --gold-ink: #d4a853;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--font);
  font-size: 19px;
  line-height: 1.75;
  color: var(--text);
  background: var(--black);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.container { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.gold { color: var(--gold); }
.num { font-family: "Roboto", var(--font); font-weight: 700; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ===== الهيدر ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 78px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; border-inline-start: 1px solid var(--line); padding-inline-start: 12px; }
.brand-text b { font-size: 22px; font-weight: 800; }
.brand-text small { font-size: 13px; color: var(--muted); letter-spacing: .5px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 14px; border-radius: 10px; font-weight: 500; font-size: 17px; transition: .2s; }
.nav a:hover { background: var(--surface-2); color: var(--gold); }
.nav .btn { margin-inline-start: 8px; }
.menu-btn { display: none; width: 50px; height: 50px; border-radius: 12px; background: var(--surface-2); align-items: center; justify-content: center; }
.menu-btn svg { width: 26px; height: 26px; }

/* ===== الأزرار ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 26px; border-radius: 14px;
  font-weight: 700; font-size: 18px; transition: transform .15s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.btn:active { transform: scale(.97); }
.btn-gold { background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark)); color: #1a1206; box-shadow: 0 8px 24px rgba(212, 168, 83, .3); }
.btn-gold:hover { box-shadow: 0 12px 30px rgba(212, 168, 83, .45); }
.btn-green { background: var(--green-band); color: #fff; border: 1px solid var(--green-soft); }
.btn-green:hover { background: var(--green-soft); }
.btn-wa { background: #25d366; color: #05210f; }
.btn-wa:hover { background: #2ee374; }
.btn-ghost { border: 1.5px solid var(--gold); color: var(--gold); }
.btn-ghost:hover { background: var(--gold); color: #1a1206; }
.btn-lg { min-height: 64px; font-size: 20px; padding: 14px 32px; }

/* ===== شارات بأسلوب البروشور ===== */
.band { display: inline-block; background: var(--green-band); color: #fff; padding: 2px 18px; }
.band-gold { display: inline-block; background: var(--gold); color: #1a1206; padding: 0 14px; font-weight: 700; }
.kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 700; font-size: 17px; letter-spacing: .5px; margin-bottom: 14px; }
.kicker::before { content: ""; width: 34px; height: 2px; background: var(--gold); }
.script { font-family: var(--script); color: #fff; font-size: 26px; direction: ltr; display: inline-block; text-shadow: 0 0 18px rgba(212, 168, 83, .35); }

/* ===== الهيرو ===== */
.hero { position: relative; min-height: calc(100svh - 78px); display: flex; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% center; animation: slowzoom 22s ease-in-out infinite alternate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(5, 10, 7, .97) 0%, rgba(5, 10, 7, .88) 38%, rgba(5, 10, 7, .25) 75%, rgba(5, 10, 7, .1) 100%),
              linear-gradient(to top, var(--black) 0%, transparent 30%);
}
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-content { max-width: 640px; padding-block: 60px; }
.hero h1 { font-size: clamp(40px, 6.5vw, 78px); font-weight: 800; line-height: 1.2; margin-bottom: 18px; }
.hero h1 .band { padding: 0 20px; }
.hero p.lead { font-size: clamp(19px, 2.2vw, 23px); color: var(--muted); margin-bottom: 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; }
.trust span { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 17px; }
.trust svg { width: 22px; height: 22px; color: var(--gold); }

/* ===== الأقسام ===== */
.section { padding-block: clamp(70px, 10vw, 120px); position: relative; }
.section-alt { background: var(--ink); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 50px; }
.section-head .kicker::after { content: ""; width: 34px; height: 2px; background: var(--gold); }
.section-head h2 { font-size: clamp(32px, 4.5vw, 50px); font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 20px; }

/* ===== المميزات ===== */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; transition: transform .3s, border-color .3s;
}
.feature:hover { transform: translateY(-6px); border-color: var(--gold); }
.feature .ico { width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--green); border: 1px solid var(--green-soft); color: var(--gold); }
.feature .ico svg { width: 36px; height: 36px; }
.feature h3 { font-size: 22px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 17px; }

/* ===== المشروع المميز ===== */
.featured { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.featured-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.featured-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s; }
.featured-media:hover img { transform: scale(1.04); }
.featured-media .tag { position: absolute; top: 18px; right: 18px; }
.featured-info h3 { font-size: clamp(38px, 5vw, 60px); font-weight: 800; line-height: 1.15; }
.featured-info .area { font-size: 26px; margin: 10px 0 6px; }
.featured-info .script { margin-bottom: 18px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 30px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; text-align: center; }
.fact b { display: block; font-size: 30px; color: var(--gold); line-height: 1.2; }
.fact span { font-size: 15px; color: var(--muted); }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 30px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; margin-top: 4px; }

/* ===== المشاريع ===== */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter { min-height: 50px; padding: 8px 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; font-size: 17px; transition: .2s; }
.filter:hover { border-color: var(--gold); }
.filter.active { background: var(--gold); color: #1a1206; border-color: var(--gold); }
.filter .count { opacity: .7; font-weight: 500; margin-inline-start: 4px; }
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.p-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.p-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: var(--shadow); }
.p-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: radial-gradient(circle at 70% 30%, var(--green-band), var(--green) 55%, var(--black)); display: grid; place-items: center; }
.p-thumb img.photo { width: 100%; height: 100%; object-fit: cover; }
.p-thumb .mark { height: 62%; opacity: .2; }
.p-thumb .big-no { position: absolute; bottom: 10px; left: 16px; font-family: "Roboto", var(--font); font-weight: 900; font-size: 54px; color: rgba(255, 255, 255, .9); line-height: 1; text-shadow: 0 4px 20px rgba(0, 0, 0, .5); }
.p-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.p-body h3 { font-size: 24px; font-weight: 800; }
.p-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; }
.p-meta svg { width: 18px; height: 18px; color: var(--gold); }
.p-body .btn { margin-top: auto; min-height: 50px; font-size: 17px; }
.status { position: absolute; top: 14px; right: 14px; padding: 4px 14px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.status.green { background: #1e7a4c; color: #fff; }
.status.gold { background: var(--gold); color: #1a1206; }
.status.brick { background: var(--brick); color: #fff; }
.mini-badge { position: absolute; top: 14px; left: 14px; background: rgba(0, 0, 0, .55); border: 1px solid var(--gold); color: var(--gold); padding: 2px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }

/* ===== الفيديوهات ===== */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.video-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 9/16; position: relative; }
.video-card iframe { width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: radial-gradient(circle at 50% 35%, var(--green-band), var(--green) 50%, var(--black));
  transition: .3s; text-align: center; padding: 20px;
}
.video-play img { height: 90px; opacity: .9; }
.video-play .play { width: 84px; height: 84px; border-radius: 50%; background: var(--gold); color: #1a1206; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(212, 168, 83, .18); transition: .3s; }
.video-play .play svg { width: 34px; height: 34px; margin-inline-start: 4px; transform: scaleX(-1); }
.video-play:hover .play { transform: scale(1.1); box-shadow: 0 0 0 16px rgba(212, 168, 83, .15); }
.video-play b { font-size: 20px; }
.video-play small { color: var(--muted); font-size: 15px; }
.center { text-align: center; margin-top: 36px; }

/* ===== ليه الإمام ===== */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-logo { background: radial-gradient(circle at 50% 40%, var(--green-band), var(--green) 45%, var(--black) 85%); border: 1px solid var(--line); border-radius: var(--radius); padding: 50px; display: grid; place-items: center; }
.about-logo img { width: min(360px, 100%); }
.about h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.35; margin-bottom: 18px; }
.about h2 .band { padding: 0 12px; }
.about p { color: var(--muted); font-size: 20px; margin-bottom: 18px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.stat { border-inline-start: 3px solid var(--gold); padding-inline-start: 14px; }
.stat b { font-size: 40px; color: var(--gold); display: block; line-height: 1.1; }
.stat span { color: var(--muted); font-size: 16px; }

/* ===== التواصل ===== */
.contact-box { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-side { background: linear-gradient(160deg, var(--green-band), var(--green) 60%, #071a10); padding: clamp(30px, 5vw, 56px); }
.contact-side h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.contact-side p { color: #d6e2da; margin-bottom: 28px; }
.contact-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 19px; }
.contact-line .ico { width: 50px; height: 50px; border-radius: 14px; background: rgba(0, 0, 0, .25); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.contact-line .ico svg { width: 24px; height: 24px; }
.contact-line small { display: block; color: #bcd0c3; font-size: 15px; }
.contact-form { background: var(--surface); padding: clamp(30px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.contact-form h3 { font-size: 28px; }
.contact-form p { color: var(--muted); font-size: 17px; margin-top: -10px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 18px; }
.field input, .field select {
  width: 100%; min-height: 58px; padding: 12px 18px; border-radius: 14px; font: inherit; font-size: 19px;
  background: var(--black); color: var(--text); border: 1.5px solid var(--line); transition: border-color .2s;
}
.field input:focus, .field select:focus { border-color: var(--gold); outline: none; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(-45deg, transparent 50%, var(--gold) 50%); background-position: 22px 26px, 28px 26px; background-size: 6px 6px; background-repeat: no-repeat; }

/* ===== الفوتر ===== */
.footer { background: #030604; border-top: 1px solid var(--line); padding: 56px 0 120px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p, .footer li { color: var(--muted); font-size: 17px; }
.footer h4 { color: var(--gold); font-size: 19px; margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--gold); }
.footer .brand { margin-bottom: 16px; }
.copy { text-align: center; color: #7d786e; font-size: 15px; margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .06); }

/* ===== أزرار ثابتة للموبايل ===== */
.float-wa { position: fixed; bottom: 24px; left: 24px; z-index: 60; width: 66px; height: 66px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37, 211, 102, .45); animation: pulse 2.4s infinite; }
.float-wa svg { width: 36px; height: 36px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 50% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }
.mobile-bar { display: none; }

/* ===== صفحة المشروع ===== */
.page-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, var(--black) 2%, rgba(5, 10, 7, .55) 45%, rgba(5, 10, 7, .2)), linear-gradient(to left, rgba(5, 10, 7, .85), transparent 65%); }
.page-hero .hero-bg img { object-position: center 40%; }
.page-hero .content { padding-bottom: 60px; }
.title-37 { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: clamp(48px, 8vw, 96px); font-weight: 800; line-height: 1.1; }
.title-37 .no { background: var(--green-band); padding: 0 18px; font-family: "Roboto", var(--font); }
.sub-band { display: inline-block; background: rgba(31, 74, 53, .92); font-size: clamp(26px, 4vw, 42px); padding: 0 26px; margin: 14px 0 10px; }
.mini-compound { font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; color: var(--gold); }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 16px; margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--gold); }

.quick-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -34px; position: relative; z-index: 3; }
.qa { display: flex; align-items: center; gap: 14px; background: var(--gold); color: #1a1206; border-radius: 16px; padding: 18px 22px; font-weight: 800; font-size: 20px; box-shadow: var(--shadow); transition: transform .2s; }
.qa:hover { transform: translateY(-4px); }
.qa .ico { width: 52px; height: 52px; border-radius: 12px; background: rgba(0, 0, 0, .12); display: grid; place-items: center; flex-shrink: 0; }
.qa .ico svg { width: 28px; height: 28px; }
.qa small { display: block; font-weight: 500; font-size: 15px; opacity: .8; }

.intro { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: start; }
.intro p { font-size: 20px; color: var(--muted); margin-bottom: 16px; }
.intro p b { color: var(--gold); font-weight: 700; }
.perks { display: grid; gap: 14px; }
.perk { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.perk .ico { width: 54px; height: 54px; border-radius: 14px; background: var(--green); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.perk .ico svg { width: 28px; height: 28px; }
.perk b { display: block; font-size: 19px; }
.perk span { color: var(--muted); font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery button { border-radius: 16px; overflow: hidden; position: relative; border: 1px solid var(--line); }
.gallery button:first-child { grid-column: span 2; grid-row: span 2; }
.gallery button:nth-child(4) { grid-column: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery button:hover img { transform: scale(1.06); }
.gallery button::after { content: "🔍 كبّر الصورة"; position: absolute; bottom: 12px; right: 12px; background: rgba(0, 0, 0, .65); padding: 4px 12px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; }
.gallery button:hover::after { opacity: 1; }

.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 36px; flex-wrap: wrap; }
.tab { min-height: 60px; padding: 10px 28px; border-radius: 14px; font-weight: 800; font-size: 19px; background: var(--surface-2); border: 1px solid var(--line); }
.tab.active { background: var(--green-band); border-color: var(--gold); color: var(--gold); }
.units { display: grid; gap: 26px; }
.unit { display: grid; grid-template-columns: 1fr 1.25fr; background: var(--ink); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.unit-info { padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.unit-info h3 { font-size: 26px; line-height: 1.4; }
.unit-area { display: flex; align-items: baseline; gap: 10px; }
.unit-area b { font-size: 54px; color: var(--gold); line-height: 1; font-family: "Roboto", var(--font); }
.unit-area span { font-size: 22px; color: var(--muted); }
.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 17px; font-weight: 500; }
.chip svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.unit-plan { background: #000; display: grid; place-items: center; position: relative; min-height: 300px; }
.unit-plan img { width: 100%; height: 100%; object-fit: contain; }
.unit-plan .zoom { position: absolute; bottom: 14px; left: 14px; background: rgba(0, 0, 0, .7); border: 1px solid var(--gold); color: var(--gold); padding: 6px 16px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.unit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }

.pay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pay { text-align: center; padding: 36px 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 22px; }
.pay small { display: block; font-size: 20px; color: var(--muted); margin-bottom: 6px; }
.pay b { display: block; font-size: clamp(54px, 7vw, 76px); color: var(--gold); line-height: 1.1; font-family: "Roboto", var(--font); }
.pay span { font-size: 22px; font-weight: 700; }
.pay em { display: inline-block; margin-top: 10px; font-style: normal; background: var(--green-band); padding: 2px 14px; border-radius: 8px; font-size: 16px; }
.finish { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.finish-box { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.finish-box h3 { font-size: 23px; margin-bottom: 14px; color: var(--gold); }
.finish-box .chips { grid-template-columns: repeat(3, 1fr); }

.location { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: stretch; }
.loc-img { border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--line); min-height: 320px; }
.loc-img img { width: 100%; height: 100%; object-fit: cover; }
.loc-img .badge { position: absolute; top: 16px; right: 16px; background: var(--green-band); padding: 4px 16px; font-weight: 700; }
.loc-info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }

/* ===== Lightbox ===== */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .94); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 86vh; border-radius: 12px; }
.lb-btn { position: absolute; width: 60px; height: 60px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; font-size: 30px; transition: .2s; }
.lb-btn:hover { background: var(--gold); color: #000; }
.lb-close { top: 20px; left: 20px; }
.lb-prev { right: 20px; top: 50%; translate: 0 -50%; }
.lb-next { left: 20px; top: 50%; translate: 0 -50%; }
.lb-caption { position: absolute; bottom: 24px; left: 50%; translate: -50% 0; background: rgba(0, 0, 0, .7); padding: 6px 20px; border-radius: 999px; font-size: 17px; white-space: nowrap; }

/* ===== حركة الظهور ===== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img, .float-wa { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== الموبايل ===== */
@media (max-width: 1000px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .featured, .about, .intro, .location, .contact-box { grid-template-columns: 1fr; }
  .unit { grid-template-columns: 1fr; }
  .unit-plan { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery button:nth-child(4) { grid-column: span 1; }
}
@media (max-width: 1100px) {
  .menu-btn { display: flex; }
  .nav { position: fixed; inset: 78px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--black); padding: 16px; border-bottom: 1px solid var(--line); gap: 4px; transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .nav.open { transform: none; }
  .nav a { padding: 16px; font-size: 20px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .nav .btn { margin: 10px 0 0; }
}
@media (max-width: 860px) {
  .quick-actions, .pay-grid, .finish { grid-template-columns: 1fr; }
  .float-wa { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--header-bg); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .mobile-bar .btn { min-height: 58px; font-size: 19px; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .brand img { height: 46px; }
  .brand-text b { font-size: 19px; }
  .hero::after { background: linear-gradient(to top, rgba(5, 10, 7, .98) 25%, rgba(5, 10, 7, .7) 60%, rgba(5, 10, 7, .35)); }
  .hero { align-items: flex-end; }
  .hero-actions .btn { width: 100%; }
  .features { grid-template-columns: 1fr; }
  .facts, .stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .fact b { font-size: 24px; }
  .stat b { font-size: 30px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  .unit-info { padding: 22px; }
  .unit-actions .btn { flex: 1; }
  .finish-box .chips { grid-template-columns: 1fr 1fr; }
  .lb-prev, .lb-next { top: auto; bottom: 80px; translate: none; }
}

/* ===== نظام طلب الأسعار ===== */
.modal { position: fixed; inset: 0; z-index: 120; background: rgba(0, 0, 0, .78); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .25s ease; }
.modal[hidden] { display: none; }
.modal-card { position: relative; width: min(520px, 100%); max-height: calc(100svh - 32px); overflow: auto; background: linear-gradient(180deg, var(--surface-2), var(--ink)); border: 1px solid var(--gold); border-radius: 24px; padding: 34px 28px 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 0 6px rgba(212, 168, 83, .08); animation: popIn .35s cubic-bezier(.2, 1.3, .4, 1); }
.modal-x { position: absolute; top: 14px; left: 14px; width: 46px; height: 46px; border-radius: 50%; background: var(--surface); font-size: 20px; }
.modal-x:hover { background: var(--gold); color: #000; }
.modal-head { text-align: center; margin-bottom: 22px; }
.modal-head h3 { font-size: 28px; margin: 12px 0 6px; }
.modal-head p { color: var(--muted); font-size: 18px; }
.modal-ico { width: 76px; height: 76px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--green); border: 2px solid var(--gold); color: var(--gold); }
.modal-ico svg { width: 36px; height: 36px; }
.modal-ico.ok { background: #1e7a4c; color: #fff; border-color: #2ea56a; animation: popIn .5s cubic-bezier(.2, 1.4, .4, 1); }
.req-form { display: flex; flex-direction: column; gap: 16px; }
.req-form .btn { width: 100%; }
.form-error { color: #ff8a7a; font-weight: 700; min-height: 0; font-size: 17px; }
.form-error:empty { display: none; }
.fine { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 15px; }
.fine svg { width: 18px; height: 18px; color: var(--gold); }
.req-code { text-align: center; background: var(--black); border: 1px dashed var(--gold); border-radius: 14px; padding: 14px; margin-bottom: 18px; font-size: 19px; }
.req-code b { color: var(--gold); font-size: 26px; letter-spacing: 2px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: scale(.85) translateY(20px); } }

#price-box { position: relative; min-height: 380px; }
.price-table { display: grid; gap: 10px; }
.pt-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; font-size: 18px; }
.blurred { filter: blur(6px); opacity: .45; user-select: none; pointer-events: none; }
.price-lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 24px; background: radial-gradient(circle at center, rgba(5, 10, 7, .85) 30%, rgba(5, 10, 7, .4)); }
.price-lock h3 { font-size: clamp(26px, 3.5vw, 34px); }
.price-lock p { color: var(--muted); font-size: 19px; max-width: 520px; margin-bottom: 8px; }
.lock-ico { width: 90px; height: 90px; border-radius: 50%; display: grid; place-items: center; background: var(--green); border: 2px solid var(--gold); color: var(--gold); box-shadow: 0 0 40px rgba(212, 168, 83, .3); }
.lock-ico svg { width: 42px; height: 42px; }
.price-lock.pending .lock-ico { animation: breathe 2s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 18px rgba(212, 168, 83, 0), 0 0 50px rgba(212, 168, 83, .5); transform: scale(1.06); } }
.price-open { animation: popIn .6s ease; }
.price-timer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; background: var(--green-band); border: 1px solid var(--gold); border-radius: 16px; padding: 14px 20px; margin-bottom: 20px; font-size: 19px; }
.price-timer svg { width: 26px; height: 26px; color: var(--gold); }
.price-timer .countdown { font-size: 30px; color: var(--gold); letter-spacing: 2px; }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); }
table.prices { width: 100%; border-collapse: collapse; font-size: 18px; }
table.prices th { background: var(--green); color: var(--gold); padding: 16px 14px; text-align: right; font-weight: 800; white-space: nowrap; }
table.prices td { padding: 16px 14px; border-top: 1px solid var(--line); white-space: nowrap; }
table.prices tbody tr:nth-child(even) { background: var(--ink); }
table.prices tbody tr:hover { background: var(--surface-2); }
table.prices td.gold { font-size: 21px; font-weight: 800; }
.price-open .fine { margin-top: 14px; }
@media (max-width: 760px) {
  .pt-row { grid-template-columns: 1fr 1fr; }
  table.prices thead { display: none; }
  table.prices, table.prices tbody, table.prices tr, table.prices td { display: block; width: 100%; }
  table.prices tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  table.prices td { border: 0; padding: 6px 0; display: flex; justify-content: space-between; white-space: normal; }
  table.prices td::before { content: attr(data-l); color: var(--muted); font-size: 16px; }
  table.prices td:first-child::before { content: none; }
  table.prices td:first-child { font-size: 20px; color: var(--gold); }
}

/* ===== النسخة الفاتحة ===== */
.theme-btn { width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--gold); transition: .3s; flex-shrink: 0; }
.theme-btn:hover { border-color: var(--gold); transform: rotate(-15deg); }
.theme-btn svg { width: 24px; height: 24px; }
.theme-btn .sun { display: none; }
[data-theme="light"] .theme-btn .sun { display: block; }
[data-theme="light"] .theme-btn .moon { display: none; }
.header-tools { display: flex; align-items: center; gap: 10px; }

[data-theme="light"] {
  --black: #f7f2e8;
  --ink: #efe7d8;
  --surface: #fffdf8;
  --surface-2: #f4ecdd;
  --text: #16241d;
  --muted: #5c6159;
  --line: rgba(156, 122, 54, .28);
  --gold: #b5852f;
  --gold-light: #e2bd73;
  --gold-dark: #8a6522;
  --shadow: 0 20px 50px rgba(60, 45, 15, .16);
  --header-bg: rgba(247, 242, 232, .9);
}
[data-theme="light"] body { background: var(--black); }
/* جزر داكنة تفضل داكنة في النسخة الفاتحة (صور، فوتر، التواصل) */
[data-theme="light"] :is(.hero, .page-hero, .footer, .contact-side, .ribbon.green, .unit-plan, .about-logo, .lightbox, .tour, .scene, .promo, .promo-pop) {
  --text: #f3efe6; --muted: #c9c3b6; --gold: #d4a853; --line: rgba(212, 168, 83, .25);
  --surface: #0f1a15; --surface-2: #14231c; --black: #050a07; --ink: #0a120e;
  color: var(--text);
}
[data-theme="light"] .btn-gold { color: #1a1206; }
[data-theme="light"] .feature .ico, [data-theme="light"] .perk .ico, [data-theme="light"] .modal-ico, [data-theme="light"] .lock-ico { color: #e2bd73; }
[data-theme="light"] .price-lock { background: radial-gradient(circle at center, rgba(247, 242, 232, .92) 30%, rgba(247, 242, 232, .5)); }
[data-theme="light"] .modal { background: rgba(20, 30, 25, .55); }
[data-theme="light"] .status.gold { background: #e2bd73; }
[data-theme="light"] .float-wa { color: #fff; }
[data-theme="light"] .video-play { color: #f3efe6; }
[data-theme="light"] .video-play small { color: #c9c3b6; }
[data-theme="light"] .p-thumb .mark { opacity: .35; }
[data-theme="light"] .brand-text b { color: var(--text); }
[data-theme="light"] table.prices th { color: #e2bd73; }
[data-theme="light"] .price-timer { color: #fff; }
[data-theme="light"] .price-timer .countdown, [data-theme="light"] .price-timer svg { color: #e2bd73; }
[data-theme="light"] .tab.active { color: #e2bd73; }
[data-theme="light"] .ribbon { box-shadow: 0 10px 30px rgba(60, 45, 15, .2); }
html { transition: background-color .4s; }
body, .header, .feature, .p-card, .section-alt, .unit, .pay, .perk, .fact { transition: background-color .5s, color .5s, border-color .5s; }

/* ===== وصولية ===== */
.skip-link { position: fixed; top: 10px; right: 10px; z-index: 2000; background: var(--gold); color: #1a1206; font-weight: 800; padding: 10px 18px; border-radius: 12px; transform: translateY(-160%); transition: transform .2s; }
.skip-link:focus { transform: none; }
main:focus { outline: none; }
.btn:focus-visible, .filter:focus-visible, .tab:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
@media (forced-colors: active) { .btn, .filter, .tab { border: 1px solid ButtonText; } }

/* الحركات الجانبية ما تعملش سكرول بالعرض على الموبايل */
main { overflow-x: clip; }
