/* ===== Opening v5 — dusk image, editorial layout (Marwan 15 Nov, after the developer's own poster) =====
   Logo in the top corner, headline beside the tower with a thin gold rule, tagline at the foot.
   Header is transparent over the sky and turns warm-dark on scroll. No blue bars, no overlays. */
:root{--font-display:"IBM Plex Sans Arabic",system-ui,sans-serif; /* Marwan 15 Nov: back to the site font */--gold:#e8cb92;--gold-2:#c49a58;--night:#14110e}
.bar{background:transparent;-webkit-backdrop-filter:none;backdrop-filter:none;transition:background .25s}
.bar.scrolled{background:rgba(20,17,14,.92)}
.bar:not(.scrolled) .mark{opacity:0;pointer-events:none}
.bar-cta{background:#fff;color:#1b1610;border-color:#fff;font-weight:700}
.quick-cta{display:none}
.hero.v5{position:relative;display:block;overflow:hidden;margin-top:0;color:#fff;height:100svh;min-height:560px;max-height:none;background:var(--night)}
.hero.v5::after{display:none}
.hero.v5 .hero-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 100%}
/* phones (16 Nov, Safari 390x750 overlap): the crown sits at 29% of the image height, so on mid-height screens it rose under the headline.
   Drop the image by --sky (more on mid-height screens, none on tall ones) and continue the sky above it in its own colour. */
.hero.v5{--sky:max(0px,calc(373px - 41.2svh));background:#253350}
.hero.v5 .hero-bg{top:var(--sky);bottom:auto;height:calc(100% - var(--sky));-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 90px);mask-image:linear-gradient(to bottom,transparent 0,#000 90px)}
.hero-brand5{position:absolute;z-index:21;top:8px;right:14px;display:flex;flex-direction:column;align-items:center;gap:2px;
  font-size:.64rem;font-weight:500;color:rgba(255,248,236,.92);text-shadow:0 1px 6px rgba(0,0,0,.35)}
.hero-brand5 img{height:46px;width:auto;filter:drop-shadow(0 1px 6px rgba(0,0,0,.45))}
.hero.v5 .hero-stack{position:absolute;z-index:2;top:96px;right:16px;left:auto;width:auto;max-width:calc(100% - 32px);margin:0;padding:0;
  display:flex;flex-direction:column;align-items:flex-start;text-align:right}
.hero.v5 .eyebrow{margin:0;font-size:.82rem;font-weight:600;color:var(--gold);letter-spacing:0;text-shadow:0 1px 6px rgba(0,0,0,.35)}
.hero.v5 h1{font-family:var(--font-display);font-weight:700;white-space:nowrap;margin:0;line-height:1.25;letter-spacing:0;
  font-size:clamp(28px,8.4vw,36px);text-shadow:0 2px 14px rgba(0,0,0,.35)}
.hero.v5 h1 span{color:var(--gold)}
.hero-rule{display:block;width:120px;height:1px;margin:10px 0 8px;background:linear-gradient(to left,var(--gold),rgba(232,203,146,0))}
.hero.v5 .hero-loc{margin:0;font-size:.86rem;font-weight:500;color:rgba(255,248,236,.92);text-shadow:0 1px 6px rgba(0,0,0,.4)}
.hero-cta{display:none}
.hero-tag{display:none}
/* ROI stat: small label + large gold figure (client reference: «مساحات تصل إلى 450 م²») */
.hero-stat{display:flex;align-items:baseline;gap:10px;margin:10px 0 0;color:#fff8ec;text-shadow:0 1px 8px rgba(0,0,0,.4)}
.hero-stat span{font-size:.86rem;font-weight:500;color:rgba(255,248,236,.92)}
.hero-stat b{font-size:30px;font-weight:700;line-height:1;color:var(--gold);letter-spacing:0}
@media (max-height:720px) and (max-width:759px),(max-width:759px) and (min-aspect-ratio:11/20){.hero.v5{--sky:max(0px,calc(275px - 41.2svh))}.hero.v5 .eyebrow{display:none}.hero.v5 .hero-stack{top:82px}.hero.v5 h1{font-size:26px}.hero-rule{margin:6px 0 5px}.hero-stat{margin-top:4px}.hero-stat span{font-size:.8rem}.hero-stat b{font-size:22px}}
@media (max-width:759px) and (max-height:600px){.hero.v5 .hero-bg{object-position:50% 25%}}
.hero-note{position:absolute;z-index:2;bottom:8px;left:0;right:0;margin:0;text-align:center;font-size:.66rem;color:rgba(255,255,255,.9);text-shadow:0 1px 3px rgba(0,0,0,.55)}
@media (min-width:760px){
  .hero.v5{height:max(600px,min(100svh,calc(100vw * 1350 / 2400)))}
  .hero.v5 .hero-bg{object-position:30% 100%;top:0;height:100%;-webkit-mask-image:none;mask-image:none}
  .hero-brand5{z-index:2;top:84px;right:max(28px,4.5vw);gap:8px;font-size:.95rem}
  .hero-brand5 img{height:128px}
  .hero.v5 .hero-stack{top:auto;bottom:max(150px,30%);right:max(40px,23vw)}
  .hero.v5 .eyebrow{font-size:1rem}
  .hero.v5 h1{font-size:clamp(40px,4.2vw,64px)}
  .hero-rule{width:220px;margin:16px 0 12px}
  .hero.v5 .hero-loc{font-size:1.08rem}
  .hero-stat{flex-direction:column;align-items:flex-start;gap:2px;margin-top:20px}
  .hero-stat span{font-size:1.05rem}
  .hero-stat b{font-size:clamp(52px,5vw,76px);font-weight:700}
  .hero-cta{display:inline-flex;align-items:center;justify-content:center;margin-top:24px;min-height:52px;padding:0 36px;border-radius:999px;
    background:#fff;color:#1b1610;font-weight:700;font-size:1.02rem;box-shadow:0 8px 24px rgba(0,0,0,.25)}
  .hero-cta:hover{background:#f6ecd9}
  .hero-cta:focus-visible{outline:2px solid #fff;outline-offset:3px}
  .hero-tag{display:block;position:absolute;z-index:2;bottom:34px;left:0;right:0;margin:0;text-align:center;
    font-family:var(--font-display);font-weight:600;font-size:clamp(18px,1.6vw,24px);color:#fff8ec;letter-spacing:0;text-shadow:0 2px 14px rgba(0,0,0,.55)}
  .hero-note{left:auto;right:16px;bottom:10px;text-align:right;font-size:.72rem}
}
/* 16 Nov QA: gallery hole on desktop (3 "big" tiles left one empty cell) — only the first and the last tile stay big from 768px */
@media (min-width:768px){.mosaic figure.big:not(:first-child):not(:last-child){grid-column:auto;grid-row:auto}
  .mosaic figure.big:not(:first-child):not(:last-child) img{aspect-ratio:4/3}}
/* 16 Nov (GrokBot): 320px phones — header overflowed by ~30px */
@media (max-width:359px){.bar{padding:0 8px}.mark-s{display:none}.bar-icons{gap:2px}.bar-icons>a:not(.bar-cta){width:30px}
  .bar-cta{padding:6px 10px;font-size:.8rem;margin-inline-start:2px}.hero-brand5{right:8px}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats div{padding:16px 6px}.stats b{font-size:1.45rem}}
.band-copy p{color:#fff8ec}.band-copy p svg{color:var(--sand)}

/* ===== ROI opening (Marwan 17 Nov, option «2 + depth»; ROI wording is the client's decision, Marwan informed of the regulation risk) =====
   Name with a light kashida and deep shadow, location with a pin, short gold rule, ROI line + small tagline aligned LEFT,
   dark shading rising from the bottom of the photo. Plex only. */
.hero.v5::after{display:block;content:"";position:absolute;inset:auto 0 0 0;top:auto;left:0;right:0;bottom:0;height:58%;z-index:1;pointer-events:none;
  background:linear-gradient(to top,rgba(14,11,8,.9) 0%,rgba(14,11,8,.6) 28%,rgba(14,11,8,.2) 62%,rgba(14,11,8,0) 100%)}
.hero.v5{--sky:max(0px,calc(424px - 41.2svh))} /* taller copy block: crown must start below ~300px */
@media (max-width:759px){.hero.v5 .hero-bg{object-position:50% 0}} /* anchor at the top so the crown position never depends on the crop */
.hero.v5 .hero-stack.roi5{left:16px;right:16px;max-width:none;align-items:stretch;z-index:2}
.hero-stack.roi5 h1{font-size:clamp(32px,10vw,40px);font-weight:500;line-height:1.15;
  text-shadow:0 1px 0 rgba(0,0,0,.25),0 6px 22px rgba(0,0,0,.55),0 2px 6px rgba(0,0,0,.35)}
.hero-stack.roi5 h1 span{font-weight:700;color:var(--gold)}
.hero-stack.roi5 .hero-loc{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:.88rem;font-weight:400}
.hero-stack.roi5 .hero-loc svg{width:16px;height:16px;flex:none;stroke:var(--gold);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.roi5-blk{display:flex;flex-direction:column;align-items:flex-end;text-align:left}
.roi5-blk .hero-rule{width:44px;height:2px;margin:20px 0 12px;background:var(--gold);border-radius:2px}
.roi5-line{margin:0;font-size:1.1rem;font-weight:500;line-height:1.3;text-shadow:0 2px 12px rgba(0,0,0,.5)}
.roi5-line b{display:inline-block;margin-right:12px;font-size:2.9rem;font-weight:700;line-height:1;color:var(--gold);vertical-align:-.3em;unicode-bidi:isolate}
.roi5-op{margin:8px 0 0;font-size:.86rem;font-weight:300;color:rgba(255,248,236,.92);text-shadow:0 2px 10px rgba(0,0,0,.5)}
@media (max-height:720px) and (max-width:759px),(max-width:759px) and (min-aspect-ratio:11/20){
  .hero.v5{--sky:max(0px,calc(349px - 41.2svh))}.hero.v5 .hero-stack.roi5{top:84px}.hero-stack.roi5 h1{font-size:30px}.roi5-blk .hero-rule{margin:12px 0 8px}
  .roi5-line{font-size:.95rem}.roi5-line b{font-size:2.2rem}.roi5-op{margin-top:4px;font-size:.8rem}}
@media (min-width:760px){
  .hero.v5 .hero-stack.roi5{left:auto;right:max(40px,23vw);align-items:stretch}
  .hero-stack.roi5 h1{font-size:clamp(44px,4.6vw,72px)}
  .hero-stack.roi5 .hero-loc{font-size:1.1rem;margin-top:10px}
  .hero-stack.roi5 .hero-loc svg{width:20px;height:20px}
  .roi5-blk .hero-rule{width:64px;margin:26px 0 16px}
  .roi5-line{font-size:1.35rem}.roi5-line b{font-size:clamp(48px,4.4vw,68px)}
  .roi5-op{font-size:1.02rem}
  .hero-stack.roi5 .hero-cta{align-self:flex-start;margin-top:26px}
}
