/* ═══════════════════════════════════════════════════════════
   المراد العقارية — نظام التصميم (فاتح وأنيق)
   القاعدة فاتحة، والتيل العميق والذهبي لمسات مميّزة.
   الخطوط: Hanimation للعناوين.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Teal group (primary accent) */
  --teal-950: #041314;
  --teal-900: #0A2426;
  --teal-800: #1A4648;
  --teal-600: #2D6E71;
  --teal-400: #439CA0;
  --teal-200: #5CD1D6;
  --teal-100: #CAF9FC;

  /* Gold group */
  --gold: #E6A03A;      /* highlight / fills / gold on dark */
  --gold-deep: #BA812D;
  --gold-ink: #82581C;  /* gold text on light surfaces (legible) */
  --cream: #FDEEE2;

  /* Gray group (neutrals / text) */
  --ink: #101111;
  --gray-800: #353736;
  --gray-600: #696D6B;
  --gray-400: #9CA2A0;
  --gray-300: #CCD3D0;
  --gray-200: #E8EDEB;

  /* Semantic (light theme) */
  --bg: #FFFFFF;
  --bg-band: #EAEDE8;          /* calm alternating band (warm-neutral) */
  --card: #FFFFFF;
  --card-border: #CCD3D0;
  --text: #101111;
  --text-soft: #353736;
  --text-mute: #696D6B;
  --heading: #041314;
  --on-dark: #FFFFFF;
  --on-dark-soft: #E8EDEB;
  --on-dark-mute: #CCD3D0;

  /* Fonts as variables (swappable) */
  --font-display: 'Hanimation', 'IBM Plex Sans Arabic', sans-serif;
  --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --chamfer: 22px;

  /* fine paper grain, kept far under content and very faint on light */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  --grain-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
}

@font-face {
  font-family: 'Hanimation';
  src: url('../assets/fonts/hanimation-regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Hanimation';
  src: url('../assets/fonts/hanimation-bold.otf') format('opentype');
  font-weight: 700;
  font-display: swap;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-soft);
  background-color: var(--bg);
  background-image: var(--grain);
  background-size: 180px 180px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.5;
  color: var(--heading);
  margin: 0;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--teal-950); }

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  inset-inline-start: -999px;
  top: 0;
  background: var(--gold);
  color: var(--teal-950);
  padding: .6rem 1.2rem;
  z-index: 200;
  font-weight: 700;
}
.skip-link:focus { inset-inline-start: 0; }

bdi, .num { unicode-bidi: isolate; }

/* ── The signature lattice (from the logo's chevron-bar mark) ── */
.lattice {
  position: absolute;
  inset-block: 0;
  inset-inline-end: auto;
  inset-inline-start: 0;
  width: min(44vw, 560px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='128' viewBox='0 0 96 128'%3E%3Cg fill='none' stroke='%232D6E71' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 116 V44 L24 34 L36 44 V116'/%3E%3Cpath d='M24 34 V14 L30 8 M24 14 L18 8'/%3E%3Cpath d='M60 116 V64 L72 54 L84 64 V116'/%3E%3Cpath d='M72 54 V30'/%3E%3Cpath d='M48 128 V96'/%3E%3Cpath d='M48 96 L42 88 M48 96 L54 88'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 96px 128px;
  -webkit-mask-image: linear-gradient(to left,
    transparent 0%, rgba(0,0,0,.12) 12%, rgba(0,0,0,.3) 26%, rgba(0,0,0,.5) 40%,
    rgba(0,0,0,.7) 56%, rgba(0,0,0,.85) 72%, #000 88%, #000 100%);
  mask-image: linear-gradient(to left,
    transparent 0%, rgba(0,0,0,.12) 12%, rgba(0,0,0,.3) 26%, rgba(0,0,0,.5) 40%,
    rgba(0,0,0,.7) 56%, rgba(0,0,0,.85) 72%, #000 88%, #000 100%);
  pointer-events: none;
  animation: lattice-drift 60s linear infinite;
}

@keyframes lattice-drift {
  from { background-position: 0 0; }
  to   { background-position: 0 -256px; }
}

/* chevron-peaks seam: bespoke divider, rounded caps */
.peaks {
  display: block;
  width: 100%;
  height: 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='18' viewBox='0 0 72 18'%3E%3Cpath d='M4 14 L18 4 L32 14' fill='none' stroke='%232D6E71' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M40 14 L54 4 L68 14' fill='none' stroke='%23E6A03A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
  background-size: 72px 18px;
  opacity: .6;
}

/* ── Header / nav — always deep teal so the logo reads ─── */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  transition: background-color .35s ease, box-shadow .35s ease;
  background: transparent; /* transparent only over the home dark hero */
}
/* solid teal bar: home after scroll, and every light inner page always */
.site-header.scrolled,
body:not(.home) .site-header {
  background: rgba(4, 19, 20, .94);
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: 0 1px 0 rgba(45, 110, 113, .35);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 76px;
}

.brand { display: flex; align-items: center; }
.brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2.4rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--on-dark-soft);
  transition: color .25s ease;
  padding-block: .35rem;
}
.nav-links a:hover { color: var(--teal-100); }
.nav-links a[aria-current="page"] {
  color: var(--gold);
  font-weight: 700;
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: var(--on-dark-soft);
  font-size: .95rem;
  transition: color .25s ease;
}
.nav-call svg { width: 19px; height: 19px; flex: none; }
.nav-call:hover { color: var(--gold); }

.menu-btn {
  display: none;
  background: none;
  border: 0;
  padding: .6rem;
  margin-inline-end: -.6rem;
}
.menu-btn svg { width: 26px; height: 26px; display: block; }
.menu-btn .bar {
  fill: none; stroke: var(--on-dark); stroke-width: 2.4; stroke-linecap: round;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
.menu-btn[aria-expanded="true"] .bar-top { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar-bottom { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  display: none;
  background: rgba(4, 19, 20, .98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(45, 110, 113, .3);
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 1rem var(--gutter) 1.6rem; }
.mobile-menu a {
  display: block;
  padding: .85rem 0;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--on-dark-soft);
}
.mobile-menu a[aria-current="page"] { color: var(--gold); font-weight: 700; }

/* ── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: var(--gold);
  color: var(--teal-950);
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 700;
  padding: .9rem 2rem;
  border: 0;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  transition: background-color .25s ease;
}
.btn:hover { background: #F0B255; }
.btn:active { background: var(--gold-deep); }
.btn svg { width: 19px; height: 19px; flex: none; }

/* quiet companion action on LIGHT surfaces */
.line-action {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  color: var(--teal-800);
  transition: color .25s ease;
}
.line-action svg { width: 19px; height: 19px; }
.line-action:hover { color: var(--gold-ink); }
/* on dark surfaces */
.on-dark .line-action { color: var(--teal-100); }
.on-dark .line-action:hover { color: var(--gold); }

/* house arrow: diagonal, drawn for RTL (forward = up-left) */
.arrow-cta {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-weight: 700;
  color: var(--gold-ink);
  transition: color .25s ease;
}
.arrow-cta svg { width: 17px; height: 17px; transition: transform .3s ease; }
.arrow-cta:hover { color: var(--teal-800); }
.arrow-cta:hover svg { transform: translate(-3px, -3px); }
/* on dark surfaces the arrow goes bright gold */
.on-dark .arrow-cta { color: var(--gold); }
.on-dark .arrow-cta:hover { color: var(--cream); }

/* ── Hero (the one dramatic dark moment on home) ──────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: var(--on-dark);
  background-image:
    var(--grain-dark),
    linear-gradient(215deg, rgba(230, 160, 58, .14) 0%, rgba(230, 160, 58, .04) 24%, transparent 48%),
    linear-gradient(180deg, #1e5250 0%, #1a4a48 30%, #143c3d 70%, #0e2f31 100%);
  background-size: 180px 180px, 100% 100%, 100% 100%;
}

/* real project render behind the hero, teal-scrimmed for legibility */
.hero-photo,
.hero-media,
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  opacity: .82;
}
/* always-visible base render (fallback + fills the crossfade gaps) */
.hero-photo { opacity: .82; }

/* cinematic crossfade of real renders behind the hero */
.hero-media { overflow: hidden; opacity: .82; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 42%;
  opacity: 0; animation: heroCross 32s infinite; will-change: opacity, transform;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 8s; }
.hero-slide:nth-child(3) { animation-delay: 16s; }
.hero-slide:nth-child(4) { animation-delay: 24s; }
@keyframes heroCross {
  0%   { opacity: 0; transform: scale(1.03); }
  3%   { opacity: 1; }
  22%  { opacity: 1; }
  28%  { opacity: 0; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1.1); }
}

/* optional video: hidden until a real assets/hero.mp4 loads (JS adds .ready) */
.hero-video { opacity: 0; transition: opacity 1s ease; }
.hero-video.ready { opacity: .82; }

@media (prefers-reduced-motion: reduce) {
  .hero-slide { animation: none; opacity: 0; } /* static base render shows */
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to left, rgba(4, 19, 20, .74) 0%, rgba(4, 19, 20, .5) 32%, rgba(4, 19, 20, .14) 66%, transparent 100%),
    linear-gradient(180deg, rgba(6, 26, 28, .22) 0%, transparent 32%, transparent 64%, rgba(4, 19, 20, .5) 100%),
    linear-gradient(215deg, rgba(230, 160, 58, .10) 0%, transparent 42%);
  pointer-events: none;
}
.hero .lattice { z-index: 1; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 8rem 9rem;
}

.hero-copy {
  max-width: 620px;
  margin-inline-start: auto;
}

.hero-line {
  width: 130px;
  height: 5px;
  border-radius: 999px;
  background: var(--gold);
  margin-bottom: 2rem;
  animation: line-grow 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes line-grow { from { width: 0; } to { width: 130px; } }

.hero h1 {
  color: #fff;
  font-size: clamp(2.7rem, 7.4vw, 5rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  animation: rise .9s cubic-bezier(.2, .8, .2, 1) both;
}
.hero h1 .gold { color: var(--gold); }

.hero-sub {
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--on-dark-mute);
  max-width: 34rem;
  animation: rise 1s .12s cubic-bezier(.2, .8, .2, 1) both;
}

.hero-actions { margin-top: 2.6rem; animation: rise 1.1s .2s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes rise {
  from { transform: translateY(26px); }
  to   { transform: translateY(0); }
}

.hero-strip {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 3;
  border-top: 1px solid rgba(92, 209, 214, .22);
  background: rgba(4, 19, 20, .5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-strip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.1rem;
}
.hero-strip-label { color: var(--on-dark-mute); font-size: .92rem; }
.hero-strip-projects { display: flex; gap: 2.2rem; }
.hero-strip-projects a {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  color: var(--on-dark-soft);
  transition: color .25s ease;
}
.hero-strip-projects a:hover { color: var(--gold); }
.hero-strip-projects .p-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.hero-strip-projects .p-place { color: var(--on-dark-mute); font-size: .88rem; }

/* ── Sections ─────────────────────────────────────────── */
.section { padding-block: clamp(4rem, 9vw, 7rem); position: relative; }

.section-open {
  max-width: 720px;
  margin-bottom: clamp(2.4rem, 6vw, 4rem);
}
.section-open h2 {
  font-size: clamp(1.9rem, 4.4vw, 2.9rem);
  line-height: 1.28;
  letter-spacing: -0.005em;
}
.section-open h2 .gold { color: var(--gold-ink); }
.section-open p { margin-top: .9rem; color: var(--text-mute); max-width: 36rem; }

/* dark section variant (shared) */
.on-dark { color: var(--on-dark-soft); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #fff; }
.on-dark .section-open h2 .gold { color: var(--gold); }
.on-dark .section-open p { color: var(--on-dark-mute); }

/* ── Featured projects (home): image + overlapping teal ledger ── */
.project-feature {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  margin-bottom: clamp(3rem, 7vw, 5.5rem);
}
.project-feature:last-child { margin-bottom: 0; }

.project-media {
  grid-column: 1 / 9;
  grid-row: 1;
  position: relative;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
  background: var(--teal-800);
  min-height: 300px;
}
.project-media img {
  width: 100%;
  height: clamp(320px, 44vw, 520px);
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}
.project-feature:hover .project-media img { transform: scale(1.03); }

.project-ledger {
  grid-column: 8 / 13;
  grid-row: 1;
  position: relative;
  z-index: 2;
  color: var(--on-dark-soft);
  background:
    var(--grain-dark),
    linear-gradient(160deg, #1e4f51 0%, #17403f 45%, #0e2f30 100%);
  background-size: 180px 180px, 100% 100%;
  box-shadow: 0 18px 40px -28px rgba(4, 19, 20, .8); /* tight, directional, teal-tinted */
  padding: clamp(1.6rem, 3vw, 2.6rem);
  margin-block: 2.5rem;
}
.project-feature.flip .project-media { grid-column: 5 / 13; }
.project-feature.flip .project-ledger { grid-column: 1 / 6; }

.project-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  color: var(--teal-200);
  line-height: 1.1;
  letter-spacing: .04em;
}
.project-ledger h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: .4rem; }
.project-meta { color: var(--on-dark-mute); font-size: .95rem; margin-top: .5rem; }
.project-desc { color: var(--on-dark-soft); margin-top: 1rem; font-size: .98rem; }
.project-price {
  margin-top: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--gold);
  letter-spacing: .02em;
}
.project-price .cur { font-size: .95rem; font-family: var(--font-body); font-weight: 500; margin-inline-start: .4rem; }
.project-specs { display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 1.5rem; }
.project-specs span { color: var(--on-dark-mute); font-size: .9rem; }
.project-specs b { color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin-inline-end: .25rem; }
.project-ledger .arrow-cta { color: var(--gold); margin-top: 1.5rem; }
.project-ledger .arrow-cta:hover { color: var(--cream); }

/* ── Services band (deep teal accent) ─────────────────── */
.services-band {
  position: relative;
  overflow: hidden;
  color: var(--on-dark-soft);
  background:
    var(--grain-dark),
    linear-gradient(160deg, #10393b 0%, #17403f 34%, #0f3033 62%, #0a2426 100%);
  background-size: 180px 180px, 100% 100%;
}
.services-band .wrap { position: relative; z-index: 2; }
.services-band .lattice { z-index: 1; opacity: .5; }
/* mirror the hero motif to the opposite edge so it reads as continuity, not a repeat */
.lattice-r {
  inset-inline-start: auto;
  inset-inline-end: 0;
  transform: scaleX(-1);
}
.services-band .section-open h2 { color: #fff; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.8rem, 4vw, 3rem);
}
.service {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.service svg { width: 40px; height: 40px; }
.service h3 { color: #fff; font-size: 1.22rem; }
.service p { color: var(--on-dark-mute); font-size: .95rem; }

/* ── Why us: statement + counted numbers (light) ──────── */
.why-band {
  background-color: var(--bg-band);
  background-image: var(--grain);
  background-size: 180px 180px;
  overflow: hidden;
}
/* علامة مائية: مارك البرج فقط في منتصف القسم كخلفية خفيّة، تحت المحتوى */
.why-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/logo-mark.png") no-repeat center center;
  background-size: min(210px, 24%);
  opacity: .25;
  pointer-events: none;
}
.why-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.why-copy h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.24; letter-spacing: -0.01em; }
.why-copy h2 .gold { color: var(--gold-ink); }
.why-copy p { margin-top: 1.2rem; color: var(--text-soft); max-width: 32rem; }

.stats {
  display: grid;
  gap: 2.2rem;
}
.stat { display: flex; align-items: baseline; gap: 1.1rem; }
.stat b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  color: var(--teal-800);
  letter-spacing: .05em;
  line-height: 1.15;
  min-width: 5.5ch;
  text-align: end;
  flex: none;
}
.stat span { color: var(--text-mute); font-size: 1rem; }

/* small gold chevron mark (from the brand's peaks motif) */
.chev::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 11px;
  margin-inline-end: .55rem;
  vertical-align: 1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 12'%3E%3Cpath d='M2 10 L9 3 L16 10' fill='none' stroke='%23E6A03A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ── About: من نحن + الرؤية + الرسالة ─────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.about-grid h2 { font-size: clamp(2rem, 4.2vw, 3rem); line-height: 1.24; letter-spacing: -0.01em; }
.about-grid h2 .gold { color: var(--gold-ink); }
.about-lead { margin-top: 1.3rem; color: var(--text-soft); font-size: 1.08rem; max-width: 34rem; }
.vm { display: grid; gap: 1.9rem; padding-top: .4rem; }
.vm-item h3 { font-size: 1.2rem; color: var(--teal-800); margin-bottom: .5rem; }
.vm-item p { color: var(--text-mute); }

/* ── Portfolio: مشاريعنا — جدار مشاريع بصري ────────────── */
.portfolio-band {
  background-color: var(--bg-band);
  background-image: var(--grain);
  background-size: 180px 180px;
}
.proj-subhead {
  font-size: 1.15rem;
  color: var(--teal-800);
  margin: clamp(2rem, 4vw, 3rem) 0 1.2rem;
}
.section-open + .proj-subhead { margin-top: clamp(1.2rem, 2vw, 1.6rem); }
.proj-subhead .chev { padding-inline-start: 1rem; }
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.4vw, 1.5rem);
}
/* current projects: fewer, larger cards so the renders read clearly */
.proj-grid:not(.proj-grid-done) { grid-template-columns: repeat(2, 1fr); }
.proj-grid:not(.proj-grid-done) .proj-card { min-height: clamp(300px, 30vw, 380px); }
/* completed / no-render projects: compact tiles so they don't sit half-empty */
.proj-grid:not(.proj-grid-done) .proj-card.no-img { min-height: clamp(215px, 21vw, 255px); }
.proj-grid:not(.proj-grid-done) .pn2 { font-size: clamp(2.2rem, 3.4vw, 3rem); }
/* completed projects: quieter, more compact tiles */
.proj-grid-done { grid-template-columns: repeat(4, 1fr); }
.proj-grid-done .proj-card { min-height: 168px; }
.proj-grid-done .pn2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.proj-card {
  position: relative;
  text-decoration: none;
  cursor: pointer;
  min-height: 232px;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  color: var(--on-dark-soft);
  background: linear-gradient(155deg, #1f5153 0%, #143a3b 55%, #0c2a2c 100%);
  border: 1px solid rgba(92, 209, 214, .12);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
/* drop a 3D render straight in: <img> becomes the card backdrop */
.proj-card img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.proj-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(4, 19, 20, .9) 0%, rgba(4, 19, 20, .4) 55%, rgba(4, 19, 20, .2) 100%);
}
.proj-card.no-img::after { display: none; } /* the gradient tile needs no scrim */
/* بطاقات المشاريع المكتملة (بلا صورة): ملمس حبيبي ليقرأ كسطح مقصود لا فارغ */
.proj-card.no-img {
  background-image: var(--grain-dark), linear-gradient(155deg, #1f5153 0%, #143a3b 55%, #0c2a2c 100%);
  background-size: 180px 180px, cover;
}
.proj-card:hover { transform: translateY(-4px); }
.proj-card:hover img { transform: scale(1.06); }

/* كشف لطيف عند التمرير — يعتمد على موضع العنصر، والمحتوى مرئي دائماً
   (لا يقل الوضوح عن 0.5، ويُلغى مع تقليل الحركة أو غياب الدعم) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .section-open,
    .about-lead,
    .vm-item,
    .service,
    .value,
    .stat,
    .why-copy,
    .proj-grid > a {
      animation: revealUp both;
      animation-timeline: view();
      animation-range: entry 4% cover 24%;
    }
  }
}
@keyframes revealUp {
  from { transform: translateY(26px); }
  to   { transform: translateY(0); }
}

/* image cards: render fills the whole card; info floats over a soft bottom gradient
   so the building's face stays visible (no hard black band) */
.proj-card:not(.no-img) {
  padding: 0;
  justify-content: flex-end;
  background: var(--teal-950);
  min-height: clamp(460px, 50vw, 620px);
}
.proj-card:not(.no-img) > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-position: center 38%;
}
.proj-card:not(.no-img)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  /* shorter, lighter scrim: only the bottom reads dark, most of the building stays bright */
  background: linear-gradient(to top,
    rgba(4, 19, 20, .95) 0%, rgba(4, 19, 20, .78) 11%, rgba(4, 19, 20, .34) 24%,
    rgba(4, 19, 20, .08) 34%, transparent 44%);
}
.proj-card:not(.no-img) > div {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 1.1rem 1.4rem 1.4rem;
  background: transparent;
}
.proj-card:not(.no-img) .proj-status {
  position: absolute;
  top: 1rem;
  inset-inline-end: 1.2rem;
  z-index: 2;
  color: #fff;
  background: rgba(4, 19, 20, .5);
  padding: .34rem .78rem;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
}
.proj-card:not(.no-img) .proj-status.current { color: var(--gold); }

/* price + availability + arrow (injected by JS as progressive enhancement) */
.pcard-meta { display: flex; align-items: center; gap: .5rem .9rem; flex-wrap: wrap; margin-top: .7rem; }
.pcard-from { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.02rem; }
.pcard-from .num { color: var(--gold); }
.pcard-from.mute { font-weight: 500; color: var(--on-dark-mute); font-family: var(--font-body); font-size: .92rem; }
.pcard-avail {
  font-size: .78rem; font-weight: 500; color: #DFF3E4;
  background: rgba(62, 142, 99, .32);
  padding: .22rem .62rem;
  clip-path: polygon(6px 0, 100% 0, 100% 100%, 0 100%, 0 6px);
}
.pcard-go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .85rem; color: var(--gold); font-weight: 700; font-size: .92rem;
}
.pcard-go svg { width: 18px; height: 18px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.proj-card:hover .pcard-go svg { transform: translate(-4px, -4px); }

.proj-status { font-size: .82rem; font-weight: 700; }
.proj-status.current { color: var(--gold); }
.proj-status.past { color: var(--teal-200); }
.pn2 {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1.15;
}
.pn2 small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .82rem;
  color: var(--on-dark-mute);
  margin-bottom: .25rem;
}
.pd2 { display: block; color: var(--on-dark-soft); margin-top: .35rem; }

/* ── Values: قيمنا ────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 2.6rem);
}
.value h3 { font-size: 1.2rem; color: var(--heading); margin-bottom: .45rem; }
.value p { color: var(--text-mute); font-size: .95rem; }
/* «لماذا هذا المشروع؟» داخل صفحة المشروع */
.why-project { margin-top: clamp(2.6rem, 6vw, 4.2rem); }
/* عنوان قسم القيم في سطر واحد */
.values-section .section-open { max-width: none; }
.values-section .section-open h2 { white-space: nowrap; font-size: clamp(1.15rem, 3.3vw, 2.4rem); }
@media (max-width: 520px) {
  .values-section .section-open h2 { white-space: normal; font-size: clamp(1.4rem, 6vw, 1.9rem); }
}

/* ── Closing contact call (cream — the one warm moment) ─ */
.call-band {
  position: relative;
  overflow: hidden;
  background:
    var(--grain),
    linear-gradient(180deg, #FDEEE2 0%, #F7E4D4 100%);
  background-size: 180px 180px, 100% 100%;
}
.call-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.call-inner h2 { color: var(--teal-950); font-size: clamp(1.9rem, 4vw, 2.7rem); }
.call-inner .sub { color: var(--gray-800); margin-top: .6rem; }
.call-actions { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }

/* ── Property cards (white) ───────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
  transition: border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  border-color: var(--teal-400);
  box-shadow: 0 16px 34px -26px rgba(4, 19, 20, .55);
}

.card-media {
  position: relative;
  overflow: hidden;
  background: var(--teal-800);
}
.card-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}
.card:hover .card-media img { transform: scale(1.045); }

.card-type {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  background: var(--teal-800);
  color: #fff;
  font-size: .85rem;
  font-weight: 500;
  padding: .35rem 1.1rem;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  padding-inline-end: 1.6rem;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.4rem 1.5rem 1.6rem;
}
.card-body h3 { font-size: 1.3rem; }
.card-place {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: var(--text-mute);
  font-size: .92rem;
  margin-top: .45rem;
}
.card-place svg { width: 15px; height: 15px; flex: none; color: var(--teal-600); }

.card-specs {
  display: flex;
  gap: 1.6rem;
  margin-top: 1.1rem;
  color: var(--text-soft);
  font-size: .92rem;
}
.card-specs span { display: inline-flex; align-items: center; gap: .5rem; }
.card-specs svg { width: 17px; height: 17px; flex: none; color: var(--teal-600); }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.25rem;
}
.card-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--gold-ink);
  letter-spacing: .02em;
  line-height: 1.3;
}
.card-price .cur { font-family: var(--font-body); font-weight: 500; font-size: .82rem; margin-inline-start: .35rem; }
.card-avail {
  align-self: flex-start;
  margin-top: 1rem;
  font-size: .82rem;
  font-weight: 500;
  color: var(--teal-800);
  background: rgba(45, 110, 113, .1);
  padding: .32rem .78rem;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
}
.card-avail .num { color: var(--teal-600); font-weight: 700; }
.card-avail.muted { color: var(--text-mute); background: var(--bg-band); }

/* ── Listings page ────────────────────────────────────── */
.listings-head { padding-block: 9rem 3rem; }
.listings-head .count-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  color: var(--heading);
  line-height: 1.5;
}
.listings-head .count-line .gold { color: var(--gold-ink); }
.listings-head p { color: var(--text-mute); margin-top: .8rem; max-width: 38rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.6rem;
  padding: 1.3rem 1.5rem;
  margin-bottom: 2.6rem;
  background: var(--bg-band);
  border: 1px solid var(--card-border);
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
}

.seg { display: flex; flex-wrap: wrap; gap: .5rem; }
.seg button {
  background: transparent;
  color: var(--teal-800);
  border: 1px solid var(--teal-600);
  padding: .5rem 1.15rem;
  font-size: .95rem;
  font-weight: 500;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
  transition: background-color .22s ease, color .22s ease, border-color .22s ease;
}
.seg button:hover { background: rgba(45, 110, 113, .1); border-color: var(--teal-400); }
.seg button[aria-pressed="true"] {
  background: var(--gold);
  color: var(--teal-950);
  border-color: var(--gold);
  font-weight: 700;
}

.filters .field { display: flex; align-items: center; gap: .6rem; }
.filters label { color: var(--text-mute); font-size: .9rem; }
.filters select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M2 2 L6 6 L10 2' fill='none' stroke='%2382581C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left .8rem center;
  color: var(--text);
  border: 1px solid var(--teal-600);
  font-family: inherit;
  font-size: .95rem;
  padding: .5rem 1rem;
  padding-inline-start: 2.2rem;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
  cursor: pointer;
}

.filters .reset {
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: .92rem;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .2rem;
  transition: color .22s ease;
}
.filters .reset svg { width: 15px; height: 15px; }
.filters .reset:hover { color: var(--gold-ink); }

.results-count { color: var(--text-mute); font-size: .95rem; margin-bottom: 1.4rem; }
.results-count b { color: var(--teal-800); font-weight: 700; }

.empty-state {
  text-align: center;
  padding: 4.5rem 1.5rem;
  background: var(--bg-band);
  border: 1px solid var(--card-border);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
}
.empty-state svg { width: 46px; height: 46px; margin-inline: auto; color: var(--teal-600); }
.empty-state h3 { margin-top: 1rem; font-size: 1.4rem; }
.empty-state p { color: var(--text-mute); margin-top: .5rem; }
.empty-state button {
  margin-top: 1.5rem;
  background: none;
  border: 0;
  color: var(--gold-ink);
  font-weight: 700;
  font-size: 1rem;
}
.empty-state button:hover { color: var(--teal-800); }

/* ── Property details page ────────────────────────────── */
.property-page { padding-block: 8.5rem 4rem; }

.crumb {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-mute);
  font-size: .95rem;
  margin-bottom: 2rem;
  transition: color .25s ease;
}
.crumb:hover { color: var(--gold-ink); }
.crumb svg { width: 15px; height: 15px; }

.property-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.gallery-main {
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
  background: var(--teal-800);
  overflow: hidden;
}
.gallery-main img {
  width: 100%;
  height: clamp(300px, 38vw, 460px);
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin-top: .8rem;
}
.gallery-thumbs button {
  padding: 0;
  border: 2px solid transparent;
  background: var(--teal-800);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
  overflow: hidden;
  opacity: .55;
  transition: opacity .25s ease, border-color .25s ease;
}
.gallery-thumbs button img { width: 100%; height: 92px; object-fit: cover; }
.gallery-thumbs button:hover { opacity: .85; }
.gallery-thumbs button.active { opacity: 1; border-color: var(--gold); }

/* main image: clickable to open the full render */
.gallery-main.has-zoom { position: relative; cursor: zoom-in; }
.gallery-main img { display: block; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.gallery-main.has-zoom:hover img { transform: scale(1.03); }
.gallery-count {
  position: absolute; inset-block-end: .8rem; inset-inline-start: .8rem; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: #fff;
  background: rgba(4, 19, 20, .62); padding: .3rem .7rem;
  clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px);
}
.gallery-zoom {
  position: absolute; inset-block-start: .8rem; inset-inline-end: .8rem; z-index: 2;
  width: 40px; height: 40px; display: grid; place-items: center; color: #fff;
  background: rgba(4, 19, 20, .55); clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
  transition: background-color .25s ease;
}
.gallery-main.has-zoom:hover .gallery-zoom { background: var(--gold); color: var(--teal-950); }
.gallery-zoom svg { width: 20px; height: 20px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(4, 19, 20, .93);
  backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none; }
.lb-stage { margin: 0; max-width: min(1100px, 92vw); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lb-stage img {
  max-width: 100%; max-height: 78vh; object-fit: contain;
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%, 0 14px);
  background: var(--teal-900);
}
.lb-stage figcaption { color: var(--on-dark-soft); font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; display: grid; place-items: center; color: #fff; cursor: pointer;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  transition: background-color .2s ease, border-color .2s ease;
}
.lb-close:hover, .lb-nav:hover { background: var(--gold); border-color: var(--gold); color: var(--teal-950); }
.lb-close {
  inset-block-start: clamp(1rem, 3vw, 1.8rem); inset-inline-end: clamp(1rem, 3vw, 1.8rem);
  width: 46px; height: 46px; clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.lb-close svg { width: 22px; height: 22px; }
.lb-nav {
  top: 50%; transform: translateY(-50%); width: 52px; height: 68px;
  clip-path: polygon(11px 0, 100% 0, 100% 100%, 0 100%, 0 11px);
}
.lb-nav svg { width: 26px; height: 26px; }
.lb-prev { inset-inline-end: clamp(.6rem, 2vw, 1.4rem); }
.lb-next { inset-inline-start: clamp(.6rem, 2vw, 1.4rem); }
@media (max-width: 640px) {
  .lb-nav { width: 42px; height: 56px; }
  .lb-stage img { max-height: 66vh; }
}

.property-info h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.property-info .place {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--text-mute);
  margin-top: .6rem;
}
.property-info .place svg { width: 17px; height: 17px; color: var(--teal-600); }

.property-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.5vw, 2.4rem);
  color: var(--gold-ink);
  letter-spacing: .02em;
  margin-top: 1.4rem;
}
.property-price .cur { font-family: var(--font-body); font-weight: 500; font-size: 1.05rem; margin-inline-start: .5rem; }

.spec-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.8rem;
  padding-block: 1.4rem;
  border-block: 1px solid var(--card-border);
}
.spec { display: flex; flex-direction: column; gap: .3rem; }
.spec svg { width: 22px; height: 22px; color: var(--teal-600); }
.spec b { color: var(--teal-800); font-size: 1.15rem; font-weight: 700; margin-top: .2rem; }
.spec span { color: var(--text-mute); font-size: .85rem; }

.property-desc { margin-top: 1.6rem; color: var(--text-soft); }

.feature-list {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem 1.4rem;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--text-soft);
  font-size: .95rem;
}
.feature-list svg { width: 15px; height: 15px; color: var(--gold-ink); flex: none; }

.property-info .btn { margin-top: 2.2rem; width: 100%; justify-content: center; }
.property-contact-alt {
  margin-top: 1.1rem;
  text-align: center;
  color: var(--text-mute);
  font-size: .95rem;
}
.property-contact-alt a { color: var(--teal-800); font-weight: 700; }
.property-contact-alt a:hover { color: var(--gold-ink); }

.similar-section { padding-block: 3rem 5.5rem; }
.similar-section h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-bottom: 2rem; }

.not-found {
  text-align: center;
  padding: 10rem 1.5rem 6rem;
}
.not-found h1 { font-size: 2.2rem; }
.not-found p { color: var(--text-mute); margin-top: 1rem; }
.not-found .btn { margin-top: 2rem; }

/* ── Contact page ─────────────────────────────────────── */
.contact-page { padding-block: 9rem 5rem; }
.contact-page .page-open h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.5; }
.contact-page .page-open h1 .gold { color: var(--gold-ink); }
.contact-page .page-open p { color: var(--text-mute); margin-top: 1rem; max-width: 34rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  margin-top: 3.5rem;
  align-items: start;
}

.channel {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding-block: 1.5rem;
}
.channel + .channel { border-top: 1px solid var(--card-border); }
.channel > svg { width: 26px; height: 26px; color: var(--gold-ink); flex: none; margin-top: .3rem; }
.channel h3 { font-size: 1.15rem; }
.channel p, .channel a.value {
  display: block;
  color: var(--text-soft);
  margin-top: .3rem;
  font-size: 1rem;
}
.channel a.value { font-weight: 700; color: var(--teal-800); transition: color .25s ease; }
.channel a.value:hover { color: var(--gold-ink); }
.channel .hint { color: var(--text-mute); font-size: .85rem; margin-top: .2rem; }

.contact-side {
  color: var(--on-dark-soft);
  background:
    var(--grain-dark),
    linear-gradient(160deg, #1e4f51 0%, #143a3b 55%, #0c2a2c 100%);
  background-size: 180px 180px, 100% 100%;
  box-shadow: 0 18px 44px -30px rgba(4, 19, 20, .8);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
  padding: clamp(1.8rem, 4vw, 2.8rem);
}
.contact-side h2 { color: #fff; font-size: 1.6rem; }
.contact-side > p { color: var(--on-dark-mute); margin-top: .7rem; }
.contact-side .btn { margin-top: 1.8rem; width: 100%; justify-content: center; }

.hours { margin-top: 2.2rem; }
.hours h3 { color: var(--teal-100); font-size: 1.05rem; }
.hours table { width: 100%; border-collapse: collapse; margin-top: .8rem; }
.hours td { padding-block: .45rem; color: var(--on-dark-soft); font-size: .95rem; }
.hours td:last-child { text-align: left; color: var(--on-dark-mute); }
.hours tr + tr td { border-top: 1px solid rgba(92, 209, 214, .18); }

.socials-row {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.4rem;
}
.socials-row a { color: var(--teal-800); transition: color .25s ease; display: inline-flex; }
.socials-row a:hover { color: var(--gold-ink); }
.socials-row svg { width: 22px; height: 22px; }

/* ── Footer (deep teal floor — the deliberate dark step) ─ */
.site-footer {
  position: relative;
  color: var(--on-dark-soft);
  background:
    var(--grain-dark),
    linear-gradient(180deg, #061a1c 0%, #041314 100%);
  background-size: 180px 180px, 100% 100%;
  padding-top: 4.5rem;
  overflow: hidden;
}
.site-footer .peaks { position: absolute; top: 1.4rem; inset-inline: 0; opacity: .34; }
/* علامة مائية: مارك البرج فقط في منتصف التذييل، فوق الخلفية وتحت المحتوى */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: url("../assets/logo-mark.png") no-repeat center center;
  background-size: min(200px, 26%);
  opacity: .22;
  pointer-events: none;
}

.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: 3rem;
}
.footer-brand img { height: 54px; width: auto; }
.footer-brand .slogan {
  margin-top: 1.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--gold);
}
.footer-brand p { color: var(--on-dark-mute); font-size: .95rem; margin-top: .8rem; max-width: 22rem; }

.footer-col h3 { color: var(--teal-100); font-size: 1.05rem; margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.footer-col a { color: var(--on-dark-mute); transition: color .25s ease; }
.footer-col a:hover { color: var(--gold); }

.footer-contact li {
  display: flex;
  align-items: center;
  gap: .7rem;
  color: var(--on-dark-mute);
}
.footer-contact svg { width: 17px; height: 17px; color: var(--gold); flex: none; }
.footer-contact a { color: var(--on-dark-soft); }

.footer-social { display: flex; gap: 1.3rem; margin-top: 1.4rem; }
.footer-social a { color: var(--on-dark-mute); display: inline-flex; transition: color .25s ease; }
.footer-social a:hover { color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; }

.footer-floor {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(45, 110, 113, .4);
  padding-block: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--gray-400);
  font-size: .88rem;
}

/* ── WhatsApp float (mobile) ──────────────────────────── */
.wa-float {
  display: inline-flex;
  position: fixed;
  bottom: 1.4rem;
  inset-inline-start: 1.4rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: var(--teal-950);
  border-radius: 50%;
  box-shadow: 0 8px 18px -8px rgba(130, 88, 28, .55);
  transition: background .25s ease, box-shadow .25s ease;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--gold-deep); box-shadow: 0 10px 22px -8px rgba(130, 88, 28, .6); }
.wa-float:active { background: var(--gold-deep); }

/* رخصة فال في التذييل */
.footer-floor .fal-lic { color: var(--gray-400); }
.footer-floor .fal-lic .num { color: var(--gray-300, #cbd5cf); font-weight: 700; }

/* شريط الإجراءات السفلي للجوال */
.mobile-cta-bar { display: none; }
@media (max-width: 700px) {
  .mobile-cta-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .55rem;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 95;
    padding: .55rem .7rem calc(.55rem + env(safe-area-inset-bottom, 0px));
    background: var(--card); border-top: 1px solid var(--card-border);
    box-shadow: 0 -6px 16px -10px rgba(0, 0, 0, .28);
  }
  .mcta {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .8rem; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
    text-decoration: none; clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px);
  }
  .mcta svg { width: 20px; height: 20px; }
  .mcta-wa { background: var(--gold); color: var(--teal-950); }
  .mcta-call { background: var(--teal-800); color: #fff; }
  .mcta:active { filter: brightness(.95); }
  .wa-float { display: none !important; }
  body { padding-bottom: 4.6rem; }
}

/* ── موقع المشروع ───────────────────────────────────────── */
.project-loc { margin-top: clamp(2.6rem, 6vw, 4.2rem); }
.loc-access {
  background: var(--card); border: 1px solid var(--card-border);
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%, 0 16px);
  padding: clamp(1.3rem, 3.4vw, 2rem);
}
.loc-access .chev { font-size: 1.2rem; color: var(--teal-800); margin-bottom: 1.3rem; }
.loc-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: .8rem clamp(1.6rem, 4vw, 3rem); margin-bottom: 1.6rem;
}
.loc-list li { display: flex; align-items: center; gap: .6rem; color: var(--text-soft); font-size: 1rem; }
.loc-list li svg { width: 19px; height: 19px; color: var(--gold-ink); flex: none; }
.loc-access .btn svg { width: 17px; height: 17px; transition: transform .3s ease; }
.loc-access .btn:hover svg { transform: translate(-2px, -2px); }
@media (max-width: 560px) {
  .loc-list { grid-template-columns: 1fr; }
}

/* ── Projects listing ─────────────────────────────────── */
.projects-head { padding-block: 9rem 2.6rem; }
.projects-head h1 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.1rem, 5vw, 3.2rem); color: var(--heading); line-height: 1.5;
}
.projects-head h1 .gold { color: var(--gold-ink); }
.projects-head p { color: var(--text-mute); margin-top: .8rem; max-width: 40rem; }

.pcard { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--card-border);
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer));
  transition: border-color .3s ease, box-shadow .3s ease; }
.pcard:hover { border-color: var(--teal-400); box-shadow: 0 16px 34px -26px rgba(4, 19, 20, .55); }
.pcard-media { position: relative; overflow: hidden; height: 210px; background: linear-gradient(155deg, #1f5153, #0c2a2c); }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pcard:hover .pcard-media img { transform: scale(1.045); }
.pcard-media .placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 2.6rem; color: rgba(202, 249, 252, .22); letter-spacing: .05em; }
.status-badge { position: absolute; top: 0; inset-inline-start: 0; font-size: .82rem; font-weight: 700;
  padding: .38rem 1.1rem; padding-inline-end: 1.5rem; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); }
.status-badge.selling { background: var(--gold); color: var(--teal-950); }
.status-badge.building { background: var(--teal-600); color: #fff; }
.status-badge.done { background: var(--gray-300); color: var(--teal-950); }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.pcard-code { font-family: var(--font-display); font-weight: 700; color: var(--teal-400); font-size: 1rem; letter-spacing: .05em; }
.pcard-body h3 { font-size: 1.35rem; margin-top: .05rem; }
.pcard-place { display: flex; align-items: center; gap: .4rem; color: var(--text-mute); font-size: .9rem; margin-top: .45rem; }
.pcard-place svg { width: 15px; height: 15px; flex: none; color: var(--teal-600); }
.pcard-stats { display: flex; gap: 1.6rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--card-border); }
.pcard-stats div { display: flex; flex-direction: column; }
.pcard-stats b { font-family: var(--font-display); font-weight: 700; color: var(--teal-800); font-size: 1.2rem; }
.pcard-stats span { color: var(--text-mute); font-size: .82rem; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: auto; padding-top: 1.25rem; }
.pcard-price { color: var(--gold-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.pcard-price small { font-family: var(--font-body); font-weight: 500; font-size: .72rem; color: var(--text-mute); display: block; }
.pcard-price.sold-out { color: var(--text-mute); font-size: .95rem; }

/* ── Project detail: availability grid + units ────────── */
.avail-section { margin-top: 3.2rem; }
.avail-head { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.avail-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.live-tag { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 700; color: #2C7A52;
  background: rgba(62, 142, 99, .12); padding: .32rem .7rem; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }
.live-tag i { width: 8px; height: 8px; border-radius: 999px; background: #3E8E63; display: inline-block; }
.avail-legend { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.avail-legend span { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--text-soft); }
.avail-legend i { width: 15px; height: 15px; border-radius: 4px; display: inline-block; }
.sw-available { background: #3E8E63; }
.sw-reserved { background: var(--gold); }
.sw-sold { background: #BF5A50; }

/* لوحة التوفّر المباشر: صف لكل دور × خلية لكل وحدة */
.avail-scroll { overflow-x: auto; margin-inline: -.2rem; padding: .2rem; }
/* خلايا بحجم موحّد عبر كل المشاريع (لا تتمدد حسب عدد الوحدات في الدور) */
.avail-board { display: grid; grid-template-columns: minmax(52px, auto) repeat(var(--cols), minmax(72px, 120px));
  gap: .5rem; align-items: stretch; justify-content: center; }
.ab-floor { display: flex; align-items: center; justify-content: flex-end; font-size: .82rem; font-weight: 700;
  color: var(--text-mute); padding-inline-end: .5rem; white-space: nowrap; }
.ab-cell { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .12rem; min-height: 54px;
  text-decoration: none; font-family: var(--font-display); clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%, 0 8px);
  transition: filter .2s ease; }
.ab-cell b { font-weight: 700; font-size: 1.02rem; line-height: 1; }
.ab-cell small { font-size: .64rem; opacity: .92; font-family: var(--font-body); font-weight: 500; }
.ab-cell.available { background: #3E8E63; color: #fff; }
.ab-cell.reserved { background: var(--gold); color: var(--teal-950); }
.ab-cell.sold { background: #BF5A50; color: #fff; }
a.ab-cell:hover { filter: brightness(1.07); }
a.ab-cell:active { filter: brightness(.95); }
.ab-cell.empty { background: transparent; clip-path: none; min-height: 0; }
/* نطاق الدوبلكس: تسمية واحدة تمتد على دورين + إشارة داخل الخلية */
.ab-floor.ab-band { font-size: .78rem; line-height: 1.3; text-align: end; white-space: normal; }
.ab-cell.is-duplex { position: relative; }
.ab-cell.is-duplex::after { content: ''; position: absolute; inset-inline: 12%; top: 50%;
  border-top: 1px dashed rgba(255, 255, 255, .3); }
.ab-meta { font-family: var(--font-body); font-size: .58rem; font-weight: 600; opacity: .82;
  letter-spacing: .01em; margin: .1rem 0; font-style: normal; line-height: 1.15; text-align: center; }

.units-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 3rem 0 1.4rem; }
.units-bar h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.units-filter { display: flex; gap: .5rem; flex-wrap: wrap; }
.units-filter button { background: transparent; color: var(--teal-800); border: 1px solid var(--teal-600); padding: .45rem 1.05rem; font-size: .92rem; font-weight: 500;
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%, 0 9px); transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.units-filter button:hover { background: rgba(45, 110, 113, .1); }
.units-filter button[aria-pressed="true"] { background: var(--gold); color: var(--teal-950); border-color: var(--gold); font-weight: 700; }
.units-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.unit-card { background: var(--card); border: 1px solid var(--card-border);
  clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; }
.unit-card.is-sold { opacity: .62; }
.unit-top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.unit-code { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--heading); }
.unit-status { font-size: .78rem; font-weight: 700; padding: .28rem .75rem; clip-path: polygon(7px 0, 100% 0, 100% 100%, 0 100%, 0 7px); }
.unit-status.available { background: #3E8E63; color: #fff; }
.unit-status.reserved { background: var(--gold); color: var(--teal-950); }
.unit-status.sold { background: #BF5A50; color: #fff; }
.unit-price { color: var(--gold-ink); font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: .85rem; }
.unit-meta { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0; }
.unit-meta li { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem 0; border-top: 1px solid var(--card-border); font-size: .92rem; }
.unit-meta li span { color: var(--text-mute); }
.unit-meta li b { color: var(--text-soft); font-weight: 700; }
.unit-card .line-action { margin-top: 1.1rem; font-size: .95rem; }

.completed-note { margin-top: 2.6rem; padding: 2.2rem 1.6rem; text-align: center; background: var(--bg-band);
  border: 1px solid var(--card-border); clip-path: polygon(var(--chamfer) 0, 100% 0, 100% 100%, 0 100%, 0 var(--chamfer)); }
.completed-note h3 { font-size: 1.3rem; }
.completed-note p { color: var(--text-mute); margin-top: .5rem; }

/* progress bar for under-construction projects */
.progress-line { margin-top: 1.4rem; }
.progress-line .plabel { display: flex; justify-content: space-between; font-size: .9rem; color: var(--text-mute); margin-bottom: .5rem; }
.progress-line .plabel b { color: var(--gold-ink); font-family: var(--font-display); }
.progress-track { height: 8px; border-radius: 999px; background: var(--gray-200); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--teal-600), var(--gold)); }

/* ── Responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
  .units-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .why-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 1.2rem; }
  .stat { flex-direction: column; gap: .2rem; }
  .property-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .project-feature, .project-feature.flip { display: block; }
  .project-ledger, .project-feature.flip .project-ledger {
    margin-block: 0;
    margin-inline: 1rem;
    margin-top: -3.5rem;
  }
  .lattice { width: 60vw; opacity: .7; }
}

@media (max-width: 640px) {
  .nav-links, .nav-call { display: none; }
  .menu-btn { display: block; }
  .brand img { height: 38px; }

  .cards-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .values-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .proj-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  /* current-projects grid: one big card per row on phones (override the higher-specificity 2-col rule) */
  .proj-grid:not(.proj-grid-done) { grid-template-columns: 1fr; }
  .proj-grid:not(.proj-grid-done) .proj-card:not(.no-img) { min-height: clamp(380px, 92vw, 500px); }
  .proj-grid-done { grid-template-columns: repeat(2, 1fr); }
  .units-grid { grid-template-columns: 1fr; }
  .units-bar { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr; gap: 1.6rem; }
  .stat { flex-direction: row; align-items: baseline; }

  .hero-inner { padding-block: 7.5rem 11rem; }
  .hero-strip-row {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    padding-block: 1rem 1.2rem;
    padding-inline-start: 4.8rem;
  }
  .hero-strip-projects { gap: 1.4rem; flex-wrap: wrap; }

  .filters { flex-direction: column; align-items: stretch; }
  .filters .field { justify-content: space-between; }
  .filters select { flex: 1; }

  .feature-list { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-floor { justify-content: center; text-align: center; }

  .gallery-thumbs button img { height: 72px; }

  .wa-float { display: inline-flex; }
}

/* ── Motion discipline ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}
