:root { --navy: #13294b; --navy2: #0c1c35; --sand: #c9a86a; --sand2: #efe5d2; --paper: #f8f5ef; --ink: #1d2433; --muted: #6b7280; --line: #e4dccd; --kit-bg: #fff; --kit-fg: #1d2433; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.7 "Tajawal", system-ui, sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 800; }
input, select, textarea { font: inherit; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 20px; font-weight: 700; transition: background .2s, transform .15s; }
.btn:hover { background: var(--navy2); }
.btn.big { padding: 14px 28px; }
.btn.sand { background: var(--sand); color: var(--navy2); }
.btn.ghost { background: transparent; border: 1.5px solid var(--navy); color: var(--navy); }
.eyebrow { display: inline-block; color: var(--sand); font-weight: 700; letter-spacing: .5px; font-size: 14px; margin-bottom: 8px; }
.muted { color: var(--muted); }
.err { color: #c2412d; margin: 0; }

.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(16px, 5vw, 64px); background: #fff; box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand span { display: grid; line-height: 1.1; }
.brand b { font-size: 22px; color: var(--navy); }
.brand small { color: var(--muted); font-size: 12px; }
.top nav { display: flex; gap: 28px; font-weight: 500; color: var(--muted); }
.top nav a:hover { color: var(--navy); }

.hero { position: relative; min-height: 640px; display: flex; align-items: center; padding: 60px clamp(16px, 6vw, 90px); overflow: hidden; }
.hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kenburns 20s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(12, 28, 53, .9), rgba(12, 28, 53, .35) 70%); }
.hero-in { position: relative; color: #fff; max-width: 760px; animation: kitpop .9s both; }
.hero h1 { font-size: clamp(40px, 6vw, 70px); margin: 6px 0 14px; }
.hero p { font-size: 18px; color: #dbe3ef; max-width: 560px; }
.search { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 10px; background: #fff; padding: 12px; border-radius: 16px; margin-top: 28px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.search label { display: grid; gap: 2px; color: var(--muted); font-size: 12px; padding: 0 6px; }
.search select { border: 0; padding: 6px 0; font-weight: 700; color: var(--ink); }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #fff; text-align: center; padding: 36px 16px; }
.numbers b { display: block; font-size: clamp(30px, 4vw, 46px); color: var(--sand); }
.numbers span { color: #b9c6da; }

section { padding: clamp(56px, 8vw, 100px) clamp(16px, 5vw, 64px); }
.head { margin-bottom: 30px; }
.head h2 { font-size: clamp(30px, 4vw, 44px); color: var(--navy); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.proj { position: relative; border-radius: 22px; overflow: hidden; min-height: 460px; display: flex; align-items: flex-end; color: #fff; cursor: pointer; }
.proj img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.proj:hover img { transform: scale(1.06); }
.proj::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12,28,53,.95) 10%, transparent 60%); }
.proj .in { position: relative; z-index: 1; padding: 22px; display: grid; gap: 6px; }
.proj h3 { font-size: 26px; }
.proj p { margin: 0; color: #d6deea; font-size: 14.5px; }
.proj .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.proj .tags span { background: rgba(255,255,255,.14); backdrop-filter: blur(6px); border-radius: 999px; padding: 2px 12px; font-size: 13px; }
.proj .from { color: var(--sand); font-weight: 700; }

.finder { background: #fff; }
.filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chips button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 16px; color: var(--ink); }
.chips button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.range { display: grid; min-width: 240px; flex: 1; max-width: 360px; font-size: 14px; color: var(--muted); }
.range input { padding: 0; accent-color: var(--navy); border: 0; }
.count { color: var(--muted); margin: 0 0 14px; }
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.unit { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; transition: transform .25s, box-shadow .25s; cursor: pointer; animation: kitpop .4s both; }
.unit:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(19, 41, 75, .12); }
.unit .ph { position: relative; aspect-ratio: 16/10; }
.unit .ph img { width: 100%; height: 100%; object-fit: cover; }
.state { position: absolute; top: 12px; inset-inline-start: 12px; background: #fff; border-radius: 999px; padding: 2px 12px; font-size: 13px; font-weight: 700; }
.state.s-متاحة { color: #13804b; }
.state.s-محجوزة { color: #b7791f; }
.state.s-مباعة { color: #c2412d; }
.unit.sold { opacity: .6; }
.unit .in { padding: 14px 16px 16px; display: grid; gap: 4px; }
.unit h3 { font-size: 18px; color: var(--navy); }
.specs { display: flex; gap: 14px; color: var(--muted); font-size: 14px; }
.unit .price { font-size: 20px; font-weight: 800; color: var(--navy); }
.unit .price small { color: var(--muted); font-weight: 400; font-size: 13px; }

.calc-card { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; background: #fff; border-radius: 26px; padding: clamp(22px, 4vw, 44px); box-shadow: 0 30px 70px rgba(19, 41, 75, .08); max-width: 1100px; margin: 0 auto; }
.calc-card h2 { color: var(--navy); font-size: 34px; margin-bottom: 18px; }
.calc-card label { display: grid; gap: 4px; margin-bottom: 16px; font-weight: 500; }
.calc-card output { color: var(--navy); font-weight: 800; }
.calc-card input[type=range] { padding: 0; border: 0; accent-color: var(--sand); }
.calc-result { background: var(--navy); color: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 10px; align-content: center; text-align: center; }
.calc-result > span { color: #b9c6da; }
.calc-result > b { font-size: clamp(34px, 5vw, 50px); color: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split div { background: rgba(255,255,255,.08); border-radius: 12px; padding: 10px; }
.split small { display: block; color: #b9c6da; }
.calc-result .muted { color: #9fb0c8; }

.about { display: grid; grid-template-columns: 380px 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; max-width: 1100px; margin: 0 auto; }
.about img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; }
.about h2 { color: var(--navy); font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.about ul { list-style: none; padding: 0; color: var(--navy); font-weight: 500; }

.interest { background: var(--navy); }
.int-card { max-width: 820px; margin: 0 auto; text-align: center; color: #fff; display: grid; gap: 14px; }
.int-card h2 { font-size: 36px; }
.int-card p { color: #b9c6da; margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.int-card .btn { background: var(--sand); color: var(--navy2); justify-self: center; }
.int-card .err { color: #ffb4a6; }

.foot { padding: 36px clamp(16px, 5vw, 64px); display: grid; gap: 6px; color: var(--muted); font-size: 14px; }
.made a { color: var(--navy); text-decoration: underline; }

/* unit sheet */
.us { display: grid; grid-template-columns: 1.15fr 1fr; }
.gallery { position: relative; background: #000; }
.gallery img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.gallery .thumbs { position: absolute; bottom: 12px; inset-inline: 12px; display: flex; gap: 6px; }
.gallery .thumbs button { width: 64px; height: 46px; border: 2px solid transparent; border-radius: 8px; padding: 0; overflow: hidden; }
.gallery .thumbs button.on { border-color: var(--sand); }
.gallery .thumbs img { min-height: 0; height: 100%; }
.us .info { padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.us h3 { font-size: 24px; color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.facts div { background: var(--paper); border-radius: 12px; padding: 8px; text-align: center; }
.facts small { display: block; color: var(--muted); font-size: 12px; }
.plan { background: var(--sand2); border-radius: 14px; padding: 12px 14px; display: grid; gap: 6px; }
.plan .row { display: flex; justify-content: space-between; align-items: center; }
.plan select { width: auto; padding: 4px 8px; }
.kit-layer.center.wide { width: min(1000px, 96vw); }
.done { text-align: center; padding: 30px 22px; display: grid; gap: 10px; justify-items: center; }
.done .ok { width: 76px; height: 76px; border-radius: 50%; background: var(--sand2); color: var(--navy); display: grid; place-items: center; font-size: 36px; }
.done .code { font-size: 32px; font-weight: 800; color: var(--navy); letter-spacing: 2px; }

@media (max-width: 900px) {
  .top nav, .top > .btn { display: none; }
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .numbers { grid-template-columns: 1fr 1fr; gap: 16px; }
  .proj-grid { grid-template-columns: 1fr; }
  .proj { min-height: 360px; }
  .calc-card, .about, .us { grid-template-columns: 1fr; }
  .about img { max-height: 380px; width: 100%; }
  .gallery img { min-height: 260px; }
  .grid2 { grid-template-columns: 1fr; }
}
