@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;900&display=swap');

:root {
  --gold: #d4af37;
  --gold-light: #f0d878;
  --dark: #0f1419;
  --dark2: #161c24;
  --dark3: #1e2630;
  --cream: #f7f4ee;
  --text-muted: #a9b2bd;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--dark);
  color: var(--cream);
  direction: rtl;
  line-height: 1.7;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(15, 20, 25, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--gold);
}
.topbar nav {
  display: flex;
  gap: 24px;
}
.topbar nav a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color .2s;
}
.topbar nav a:hover { color: var(--gold-light); }
.topbar .btn-call {
  display: inline-block;
}

@media (max-width: 700px) {
  .topbar nav { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform .2s, box-shadow .2s;
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14100a;
  box-shadow: 0 8px 24px rgba(212,175,55,0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(212,175,55,0.35); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--gold-light);
}
.btn-outline:hover { background: rgba(212,175,55,0.1); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,20,25,.55) 0%, rgba(15,20,25,.75) 60%, var(--dark) 100%);
  z-index: -1;
}
.hero-eyebrow {
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  margin-bottom: 10px;
}
.hero h1 span { color: var(--gold); }
.hero .sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}
.price-banner {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  background: rgba(212,175,55,0.1);
  border: 1.5px solid var(--gold);
  border-radius: 16px;
  padding: 16px 32px;
  margin-bottom: 34px;
}
.price-banner .price-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 700;
}
.price-banner .price-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--gold-light);
}
.price-banner .price-value small {
  font-size: 1.1rem;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}
.stat-pill {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 14px;
  padding: 16px 26px;
  min-width: 150px;
}
.stat-pill .num {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--gold-light);
  display: block;
}
.stat-pill .label {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- Section generic ---------- */
section { padding: 90px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow {
  color: var(--gold);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
}
.section-head p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 14px auto 0;
}

.alt-bg { background: var(--dark2); }

/* ---------- Apartments tabs ---------- */
.apt-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}
.apt-tab-btn {
  background: var(--dark3);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--text-muted);
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all .2s;
}
.apt-tab-btn:hover { border-color: var(--gold); color: var(--cream); }
.apt-tab-btn.active {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #14100a;
  border-color: transparent;
}

.apt-panel { display: none; }
.apt-panel.active { display: block; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.apt-card {
  background: var(--dark3);
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.apt-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 30px;
  border-bottom: 1px solid rgba(212,175,55,0.12);
}
.apt-card-head h3 { font-size: 1.5rem; font-weight: 900; }
.apt-card-head .price {
  color: var(--gold-light);
  font-weight: 900;
  font-size: 1.3rem;
}
.apt-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 20px 30px 0;
}
.feature-chip {
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.2);
  color: var(--gold-light);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.88rem;
  font-weight: 500;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  padding: 24px 30px 30px;
}
.gallery figure {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
  background: #000;
}
.gallery figure img, .gallery figure video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.gallery figure:hover img, .gallery figure:hover video { transform: scale(1.06); }
.gallery figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 12px;
  font-size: 0.8rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), transparent);
  color: #fff;
}
.gallery figure.video-tile::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.25);
  pointer-events: none;
}

.apt-note {
  margin: 0 30px 26px;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(212,175,55,0.06);
  border-inline-start: 3px solid var(--gold);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Architectural plan section ---------- */
.arch-wrap {
  display: flex;
  justify-content: center;
}
.arch-wrap img {
  border-radius: var(--radius);
  border: 1px solid rgba(212,175,55,0.2);
  max-height: 640px;
  width: auto;
}

/* ---------- Location ---------- */
.loc-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: center;
}
@media (max-width: 800px) {
  .loc-grid { grid-template-columns: 1fr; }
}
.loc-grid img {
  border-radius: var(--radius);
  border: 1px solid rgba(212,175,55,0.2);
}
.amenities { list-style: none; }
.amenities li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1.05rem;
}
.amenities li .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ---------- Contact ---------- */
.contact-box {
  text-align: center;
  background: linear-gradient(145deg, var(--dark3), var(--dark2));
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 24px;
  padding: 60px 30px;
}
.contact-box h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-bottom: 12px; font-weight: 900; }
.contact-box p { color: var(--text-muted); margin-bottom: 34px; }
.phone-display {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--gold-light);
  letter-spacing: 1px;
  margin-bottom: 30px;
  direction: ltr;
  display: inline-block;
}
.contact-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

footer {
  text-align: center;
  padding: 30px 20px 110px;
  color: #55606c;
  font-size: 0.85rem;
}

/* ---------- Sticky mobile WhatsApp bar ---------- */
.sticky-wa {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(15,20,25,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(212,175,55,0.25);
  padding: 12px 16px;
  display: flex;
  gap: 10px;
}
.sticky-wa a {
  flex: 1;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  font-weight: 700;
}
.sticky-wa .wa { background: #25D366; color: #06210f; }
.sticky-wa .call { background: rgba(212,175,55,0.15); border: 1px solid var(--gold); color: var(--gold-light); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img, .lightbox video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}
.lightbox .close {
  position: absolute;
  top: 20px; left: 20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
  z-index: 2;
}
