/* =====================================================================
   Manzil Al-Binaa — Syria · public site
   Visual identity adapted from the supplied reference design:
   black / white / light grey with a soft gold accent, Manrope (Latin)
   paired with Readex Pro (Arabic), pill buttons, rounded cards with soft
   shadows, full-width photo slider, dark form band, light footer.
   Logical properties throughout: one stylesheet for RTL (ar) and LTR (en).
   ===================================================================== */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 500; font-display: swap; src: url(../fonts/manrope-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: "Readex"; font-weight: 300; font-display: swap; src: url(../fonts/readex-pro-arabic-300-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex"; font-weight: 400; font-display: swap; src: url(../fonts/readex-pro-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex"; font-weight: 500; font-display: swap; src: url(../fonts/readex-pro-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex"; font-weight: 600; font-display: swap; src: url(../fonts/readex-pro-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex"; font-weight: 700; font-display: swap; src: url(../fonts/readex-pro-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "Readex"; font-weight: 800; font-display: swap; src: url(../fonts/readex-pro-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

/* ---------- Tokens (from the reference design) ---------- */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-mid: #888888;        /* nav, labels (as in the reference) */
  --gray-text: #6b6b6b;       /* running secondary text: same tone, AA contrast */
  --gray-dark: #222222;
  --line: #eaeaea;
  --accent: #c9a87c;          /* soft gold */
  --accent-hover: #dfc09a;
  --accent-ink: #8a6a3e;      /* gold for small text on white (readable) */
  --beige: #f8f5ef;
  --beige-line: #ece6da;
  --error: #b3402f;
  --error-on-dark: #ff9b8c;

  --font-main: "Manrope", "Readex", "Segoe UI", Tahoma, sans-serif;

  --radius-card: 12px;
  --radius-inner: 8px;
  --pill: 99px;
  --shadow-card: 0 4px 20px rgba(0, 0, 0, .06);
  --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, .12);
  --container: 1400px;
  --gutter: 24px;
  --section: 80px;
  --header-h: 72px;
}
@media (max-width: 600px) { :root { --gutter: 16px; --section: 56px; } }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { font-family: var(--font-main); background-color: var(--white); color: var(--black); line-height: 1.5; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.lang-ar { line-height: 1.75; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; }
.lang-ar h1, .lang-ar h2, .lang-ar h3, .lang-ar h4 { line-height: 1.4; }
p { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 200; background: var(--black); color: var(--white); padding: .6rem 1rem; border-radius: var(--pill); }
.skip-link:focus { top: 1rem; }
.muted { color: var(--gray-mid); }
[hidden] { display: none !important; } /* the form success box, alerts and help texts rely on this */
[dir="ltr"] .card__link svg, [dir="ltr"] .link-more svg { transform: scaleX(-1); }
.lang-en .upper { text-transform: uppercase; }

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 14px 32px; border-radius: var(--pill); border: 1px solid transparent;
  font: 600 14px/1.2 var(--font-main); cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s;
}
.lang-en .btn { text-transform: uppercase; letter-spacing: .5px; }
.lang-ar .btn { font-size: 15px; }
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--black); color: var(--white); }
.btn--primary:hover { background: var(--accent); color: var(--black); }
.btn--secondary { background: transparent; color: var(--black); border-color: var(--black); }
.btn--secondary:hover { background: var(--black); color: var(--white); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 600 14px/1.4 var(--font-main); color: var(--accent-ink); transition: color .3s, gap .3s;
}
.link-more:hover { color: var(--black); gap: 10px; }
.show-more { justify-content: center; margin-top: 48px; }
.show-more .btn, .show-more .link-more {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 48px;
  border: 1px solid var(--black); border-radius: var(--pill); background: transparent; color: var(--black); font-weight: 600; font-size: 14px;
  transition: background-color .3s, color .3s;
}
.lang-en .show-more .link-more { text-transform: uppercase; letter-spacing: .5px; }
.show-more .btn:hover, .show-more .link-more:hover { background: var(--black); color: var(--white); gap: 6px; }

/* dark contexts: page hero and photo banners */
.hero .btn--primary, .banner .btn--primary { background: var(--white); color: var(--black); }
.hero .btn--primary:hover, .banner .btn--primary:hover { background: var(--accent); color: var(--black); }
.hero .btn--secondary, .banner .btn--secondary { color: var(--white); border-color: rgba(255, 255, 255, .55); }
.hero .btn--secondary:hover, .banner .btn--secondary:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.hero .link-more, .banner .link-more { color: var(--accent); }
.hero .link-more:hover, .banner .link-more:hover { color: var(--white); }
.btn--sm { min-height: 40px; padding: 10px 22px; font-size: 13px; }
.lang-ar .btn--sm { font-size: 14px; }

/* ---------- Header: logo | language + «القائمة» (transparent over the page hero) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); color: var(--black); border-bottom: 1px solid var(--line); transition: background-color .35s, color .35s, border-color .35s, box-shadow .35s; }
.site-header__bar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; flex-shrink: 0; }
.brand__mark { width: 28px; height: 31px; color: currentColor; }
.brand__img { height: 36px; width: auto; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.lang-en .brand__name { text-transform: uppercase; letter-spacing: .02em; }
.brand__tag { font-size: 11px; font-weight: 600; opacity: .62; letter-spacing: 1.5px; }
.lang-en .brand__tag { text-transform: uppercase; }
.site-header__tools { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 28px); }
.lang-switch { display: flex; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .5px; }
.lang-switch__current { color: inherit; }
.lang-switch__other { opacity: .55; transition: opacity .3s; }
.lang-switch__other:hover, .lang-switch__other:focus-visible { opacity: 1; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 20px; border: 1px solid currentColor; border-radius: var(--pill); background: transparent; color: inherit; font: 600 14px/1 var(--font-main); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.lang-en .menu-btn { text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }
.menu-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }
.menu-btn__icon { display: grid; gap: 5px; width: 20px; }
.menu-btn__icon span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s; }
.menu-btn__icon.is-x span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn__icon.is-x span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
/* over the hero: transparent with light text, solid after scrolling */
.has-hero .site-header { position: fixed; inset-inline: 0; top: 0; background: transparent; color: var(--black); border-bottom-color: transparent; }
.has-hero .site-header.is-solid { background: var(--white); border-bottom-color: var(--line); box-shadow: 0 8px 30px -18px rgba(0, 0, 0, .25); }
@media (max-width: 600px) { .menu-btn { padding: 8px 14px; gap: 10px; } .brand__tag { display: none; } }
@media (max-width: 430px) { .menu-btn { width: 44px; padding: 0; justify-content: center; } .menu-btn__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } .site-header__tools { gap: 14px; } .brand__name { font-size: 16px; } }

/* full-screen menu with previews */
.menu { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-rows: auto 1fr; background: var(--white); color: var(--black); overflow-y: auto; overscroll-behavior: contain; opacity: 0; transition: opacity .4s ease; }
.menu.is-open { opacity: 1; }
html.menu-open { overflow: hidden; }
.menu__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); padding-block: 12px; }
.menu .menu-btn:hover { background: var(--black); border-color: var(--black); color: var(--white); }

.menu__body { display: grid; align-items: center; gap: 48px; padding-block: 24px 56px; }
@media (min-width: 960px) { .menu__body { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(48px, 6vw, 96px); } }
.menu__nav { display: grid; justify-items: center; }
.menu__list { display: grid; justify-items: center; gap: 2px; text-align: center; }
.menu__link { display: inline-flex; align-items: baseline; gap: 14px; padding: 6px 4px; font-size: clamp(28px, 4vw, 54px); font-weight: 700; line-height: 1.2; color: rgba(10, 10, 10, .32); transition: color .3s; }
.lang-en .menu__link { text-transform: uppercase; letter-spacing: -.01em; }
.menu__link:hover, .menu__link:focus-visible, .menu__link.is-on { color: var(--black); }
.menu__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.menu__link[aria-current="page"] .menu__label { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .4em; text-decoration-skip-ink: none; }
.menu__num { font: 600 12px/1 "Manrope", sans-serif; color: var(--accent-ink); letter-spacing: 1px; transform: translateY(-.9em); }
.menu.is-open .menu__list li { animation: menu-in .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms + 80ms); }
@keyframes menu-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.menu__preview { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--gray-light); }
.menu__shot { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.04); transition: opacity .5s ease, transform .9s ease; }
.menu__shot { pointer-events: none; }
.menu__shot.is-on { opacity: 1; transform: none; z-index: 1; pointer-events: auto; }
.menu__shot img { width: 100%; height: 100%; object-fit: cover; }
.menu__shot figcaption { position: absolute; inset-inline: 0; bottom: 0; display: grid; gap: 4px; padding: 56px 24px 20px; background: linear-gradient(to top, rgba(10, 10, 10, .78), rgba(10, 10, 10, 0)); }
.menu__shot figcaption b { font-size: 20px; font-weight: 700; }
.menu__shot figcaption span { font-size: 14px; color: rgba(255, 255, 255, .75); }
.menu__blank { display: grid; place-items: center; width: 100%; height: 100%; color: #cfc9be;
  background: radial-gradient(circle at 75% 15%, rgba(201, 168, 124, .25), transparent 55%), linear-gradient(135deg, #f6f5f2, #ece9e3); }
.menu__blank .brand__mark { width: 72px; height: 80px; }
.menu__blank .brand__text { display: none; }
.menu__blank .brand__img { max-width: 40%; height: auto; opacity: .5; }
.menu__shot--list { display: grid; grid-template-rows: auto 1fr; gap: 14px; padding: 20px; background: var(--gray-light); transform: translateY(8px); }
.menu__shot--list.is-on { transform: none; }
.menu__shot-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.menu__shot-head b { font-size: 20px; font-weight: 700; }
.menu__shot-head span { font-size: 13px; color: var(--gray-text); }
.menu__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; min-height: 0; }
.menu__shot--list.is-many .menu__cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.menu__cards li { min-height: 0; opacity: 0; transform: translateY(10px); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--k, 0) * 60ms); }
.menu__shot--list.is-on .menu__cards li { opacity: 1; transform: none; }
.menu__card { position: relative; display: block; height: 100%; min-height: 0; border-radius: 10px; overflow: hidden; background: #e7e4dd; }
.menu__card-img, .menu__card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.menu__card-img img { transition: transform .6s ease; }
.menu__card:hover .menu__card-img img { transform: scale(1.05); }
.menu__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .72), rgba(10, 10, 10, 0) 60%); }
.menu__card-name { position: absolute; z-index: 1; inset-inline: 12px; bottom: 10px; color: var(--white); font-size: 14px; font-weight: 700; line-height: 1.35; }
.menu__card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 959px) { .menu__preview { display: none; } .menu__body { align-items: start; padding-top: 8vh; } }

/* ---------- Page hero (full height, under the transparent header) ---------- */
.hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 100vh; min-height: 100svh; overflow: hidden; background: var(--black); color: var(--white); }
.hero--page { min-height: 100vh; min-height: 100svh; }
.hero__bg { position: absolute; inset: 0; z-index: -1; background: var(--gray-dark); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .82) 0%, rgba(10, 10, 10, .4) 50%, rgba(10, 10, 10, .12) 100%); }
.hero__layer { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.hero__layer.is-on { opacity: 1; }
.hero__media { width: 100%; height: 100%; object-fit: cover; }
.hero__layer.is-on .hero__media { animation: hero-zoom 14s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.07); } to { transform: scale(1); } }
.hero--plain .hero__bg { background: radial-gradient(ellipse at 85% 0%, rgba(201, 168, 124, .2), transparent 55%), linear-gradient(140deg, #1a1a1a 0%, #0a0a0a 65%); }
.hero--plain .hero__bg::after { background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: linear-gradient(to top, transparent, #000 70%); mask-image: linear-gradient(to top, transparent, #000 70%); }
.hero__inner { position: relative; z-index: 2; padding-block: calc(var(--header-h) + 120px) clamp(120px, 16vh, 168px); }
.hero__content { max-width: 780px; }
.hero__title { font-size: clamp(38px, 5.8vw, 80px); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; text-wrap: balance; }
.lang-ar .hero__title { font-size: clamp(34px, 5.1vw, 68px); line-height: 1.3; }
.lang-en .hero__title { text-transform: uppercase; }
.hero--page .hero__title { font-size: clamp(34px, 5vw, 66px); }
.lang-ar .hero--page .hero__title { font-size: clamp(30px, 4.4vw, 58px); }
.hero__lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); color: rgba(255, 255, 255, .88); max-width: 640px; }
.hero__lead p + p { margin-top: .5em; }
.hero__actions { margin-top: 32px; }
.hero__scroll { position: absolute; z-index: 3; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; width: 26px; height: 42px; padding-top: 8px; border: 1.5px solid rgba(10, 10, 10, .45); border-radius: 14px; }
.hero__scroll span { width: 3px; height: 8px; border-radius: 2px; background: var(--black); animation: hero-scroll 1.8s ease-in-out infinite; }
@keyframes hero-scroll { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.hero__anchor { display: block; scroll-margin-top: var(--header-h); }
@media (max-width: 600px) { .hero__scroll { display: none; } }
.banner__bg { position: absolute; inset: 0; z-index: 0; background: var(--gray-dark); }
.welcome__media { width: 100%; height: 100%; object-fit: cover; filter: brightness(.6); }
.has-hero main > .banner:first-child { min-height: 100vh; min-height: 100svh; }
.has-hero main > .banner:first-child .banner__inner { padding-block: calc(var(--header-h) + 120px) clamp(120px, 16vh, 168px); }
/* soft white haze on the top and bottom edges of every page hero (the header sits on the top one) */
.hero::before, .hero::after, .has-hero main > .banner:first-child::before, .has-hero main > .banner:first-child::after {
  content: ""; position: absolute; inset-inline: 0; z-index: 1; pointer-events: none; -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.hero::before, .has-hero main > .banner:first-child::before { top: 0; height: calc(var(--header-h) + 96px);
  background: linear-gradient(to bottom, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .7) 38%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, .3) 65%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, .3) 65%, transparent 100%); }
.hero::after, .has-hero main > .banner:first-child::after { bottom: 0; height: 96px;
  background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, .7) 35%, rgba(255, 255, 255, 0) 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, .3) 65%, transparent 100%); mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .75) 30%, rgba(0, 0, 0, .3) 65%, transparent 100%); }

/* ---------- Inner page banner (photo) ---------- */
.banner { position: relative; min-height: min(62vh, 600px); display: flex; align-items: flex-end; overflow: hidden; background: var(--black); color: var(--white); }
.banner__inner { position: relative; z-index: 2; padding-block: 120px 64px; }
.banner__content { max-width: 760px; }
.banner__title { font-size: clamp(34px, 5vw, 64px); font-weight: 700; line-height: 1.1; color: var(--white); }
.lang-ar .banner__title { font-size: clamp(30px, 4.4vw, 56px); line-height: 1.35; }
.lang-en .banner__title { text-transform: uppercase; }
.banner__lead { margin-top: 16px; font-size: 18px; opacity: .9; max-width: 620px; }
.banner__lead p + p { margin-top: .5em; }
.banner--plain { min-height: 0; }
.banner--plain .banner__inner { padding-block: 80px 56px; }
.banner .crumbs a, .banner .crumbs { color: rgba(255, 255, 255, .75); }
.banner .project-card__meta { margin-bottom: 12px; }
.banner .tag { background: rgba(255, 255, 255, .14); color: var(--white); }
.banner .status { color: rgba(255, 255, 255, .85); }
.banner .project-card__location { color: rgba(255, 255, 255, .85); }
.crumbs { margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.lang-en .crumbs { text-transform: uppercase; letter-spacing: 1px; }
.crumbs a:hover { color: var(--white); }
.crumbs a::before { content: "‹ "; }
[dir="rtl"] .crumbs a::before { content: "› "; }

/* ---------- Page header (no image) ---------- */
.page-head { text-align: center; padding-block: 80px 40px; }
.page-head__inner { display: grid; justify-items: center; }
.page-head__title { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.01em; max-width: 20ch; }
.lang-en .page-head__title { text-transform: uppercase; }
.page-head__lead { margin-top: 16px; font-size: 18px; color: var(--gray-text); max-width: 640px; }
.page-head__lead p + p { margin-top: .5em; }
.page-head__actions { justify-content: center; }
.page-head__lead form { display: grid; justify-items: center; gap: 16px; margin-top: 8px; }
.page-head--404 { padding-block: 100px 80px; }
.page-head__code { font-size: clamp(80px, 14vw, 180px); font-weight: 800; line-height: 1; color: var(--gray-light); -webkit-text-stroke: 1px var(--line); letter-spacing: -.03em; margin-bottom: 8px; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section + .section:not(.section--feature):not(.section--cta):not(.fx) { padding-top: 0; }
.banner + .section, .hero + .section, .hero__anchor + .section, .page-head + .section, .section--feature + .section, .section--cta + .section { padding-top: var(--section) !important; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 48px; display: grid; justify-items: center; gap: 12px; }
.section__title { font-size: clamp(26px, 3.2vw, 40px); font-weight: 700; letter-spacing: -.01em; }
.lang-en .section__title { text-transform: uppercase; }
.section__subtitle { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.section__intro { color: var(--gray-text); font-size: 17px; max-width: 620px; }
.section__intro p + p { margin-top: .5em; }
.prose { font-size: 17px; color: var(--gray-dark); }
.prose p + p { margin-top: 1em; }

/* text sections: centered heading, readable column */
.split { display: grid; gap: 20px; max-width: 820px; margin-inline: auto; }
.split__head { text-align: center; }
.split__body { color: var(--gray-dark); font-size: 17px; }
.split__body p + p { margin-top: 1em; }
.split__body--wide { max-width: 820px; }
.section--text .split__head, .section--certificates .split__head { margin-bottom: 8px; }
.section--text .actions { justify-content: center; }
.section--text .split__body .actions { justify-content: flex-start; }

/* cards (shared by services and projects) */
.card-grid, .project-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 1200px) { .card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.card__img { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-light); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 20px; }
.card__title { font-size: 18px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; }
.card__title a { transition: color .3s; }
.card__title a:hover { color: var(--accent-ink); }
.card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; font-size: 13px; color: var(--gray-text); margin-bottom: 12px; }
.card__strong { font-size: 14px; font-weight: 600; color: var(--black); }
.card__text { font-size: 14px; color: var(--gray-text); line-height: 1.7; }
.card__link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent-ink); transition: gap .3s; }
.lang-en .card__link { text-transform: uppercase; letter-spacing: .5px; }
.card__link svg { width: 14px; height: 14px; }
.card:hover .card__link { gap: 10px; }

.project-card__demo { position: absolute; inset-inline-start: 12px; top: 12px; background: var(--black); color: var(--white); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--pill); }
.project-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; }
.project-card__location { display: inline-flex; align-items: center; gap: 6px; }
.project-card__location svg { width: 13px; height: 13px; fill: var(--accent); flex-shrink: 0; }
.project-card__location--lg { margin-top: 16px; font-size: 16px; }
.tag { display: inline-block; padding: 4px 12px; border-radius: var(--pill); background: var(--gray-light); color: var(--gray-dark); font-size: 12px; font-weight: 600; }
.tag--warn { background: #f6eedf; color: #6e4f18; }
.status, .dot { display: inline-flex; align-items: center; gap: 6px; }
.status::before, .dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--status, var(--accent)); flex-shrink: 0; }

/* filters (project browser) */
.filters { background: var(--gray-light); border-radius: var(--radius-card); padding: 24px; margin-bottom: 40px; }
.filters__header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; min-height: 28px; }
.filters__active { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__tag { display: inline-flex; align-items: center; gap: 8px; background: var(--white); padding: 4px 12px; border-radius: var(--pill); font-size: 13px; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.filters__tag a { font-size: 16px; line-height: 1; color: var(--gray-mid); padding: 2px; }
.filters__tag a:hover { color: var(--black); }
.filters__count { margin-inline-start: auto; font-size: 13px; color: var(--gray-mid); }
.filters__count b { color: var(--black); font-size: 15px; }
.filters__body { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.filter-group { background: var(--white); border-radius: var(--radius-inner); padding: 16px; display: grid; align-content: start; gap: 4px; }
.filter-group__title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.lang-en .filter-group__title { text-transform: uppercase; letter-spacing: .5px; }
.filter-option { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 14px; color: var(--gray-text); transition: color .2s; }
.filter-option::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #c8c8c8; flex-shrink: 0; transition: border-color .2s, box-shadow .2s; }
.filter-option:hover { color: var(--black); }
.filter-option:hover::before { border-color: var(--accent); }
.filter-option[aria-current="true"] { color: var(--black); font-weight: 600; }
.filter-option[aria-current="true"]::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 8px var(--accent); }
.empty { padding: 48px 24px; background: var(--gray-light); border-radius: var(--radius-card); text-align: center; color: var(--gray-text); }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 48px; }
.pager a { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 14px; font-weight: 600; transition: all .3s; }
.pager a:hover { border-color: var(--black); }
.pager a[aria-current="page"] { background: var(--black); color: var(--white); border-color: var(--black); }

/* list of points → light cards */
.points { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.point { position: relative; background: var(--gray-light); border-radius: var(--radius-card); padding: 28px 24px 24px; }
.point::before { content: ""; display: block; width: 24px; height: 2px; background: var(--accent); margin-bottom: 18px; }
.point__title { font-size: 17px; font-weight: 600; line-height: 1.5; }
.point__text { margin-top: 6px; font-size: 14px; color: var(--gray-text); }
.point--media { padding-top: 0; overflow: hidden; }
.point--media::before { display: none; }
.point__media { margin: 0 -24px 20px; aspect-ratio: 4 / 3; background: var(--gray-dark); }
.point__media img { width: 100%; height: 100%; object-fit: cover; }
.section--list .actions { justify-content: center; margin-top: 40px; }

/* steps (real sequences) */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px 24px; transition: box-shadow .3s, transform .3s; }
.step:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.step__num { display: block; font-size: 40px; font-weight: 800; line-height: 1; color: var(--accent); margin-bottom: 20px; font-variant-numeric: tabular-nums; font-family: "Manrope", sans-serif; }
.step__title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step__text { font-size: 14px; color: var(--gray-text); }

/* stats */
.section--stats .container > .section__title { text-align: center; margin-bottom: 32px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); background: var(--gray-light); border-radius: var(--radius-card); padding: 16px 24px; }
.stat { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; gap: 6px; padding: 24px 16px; text-align: center; }
.stat + .stat { border-inline-start: 1px solid var(--line); }
@media (max-width: 640px) { .stat + .stat { border-inline-start: 0; border-top: 1px solid var(--line); } }
.stat__value { font-size: clamp(36px, 4vw, 56px); font-weight: 800; line-height: 1.1; font-family: "Manrope", sans-serif; letter-spacing: -.02em; }
.stat__value.is-placeholder { color: var(--gray-mid); }
.stat__label { font-size: 13px; font-weight: 500; color: var(--gray-text); letter-spacing: .5px; }
.lang-en .stat__label { text-transform: uppercase; letter-spacing: 1px; }

/* feature (white, image beside the text) */
.section--feature { background: var(--white); color: var(--black); border-top: 1px solid var(--line); }
.feature { display: grid; gap: 40px; align-items: center; }
.section--feature .section__title { color: var(--black); font-size: clamp(28px, 4vw, 48px); line-height: 1.25; }
.feature__body { margin-top: 16px; font-size: 17px; color: var(--gray-text); max-width: 540px; }
.feature__body p + p { margin-top: .6em; }
.feature__media { border-radius: var(--radius-card); overflow: hidden; background: var(--gray-light); }
.feature__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.feature__media:hover .feature__img { transform: scale(1.04); }
@media (min-width: 900px) { .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 80px; } }

/* call to action (white, centered) */
.section--cta { background: var(--white); color: var(--black); text-align: center; border-top: 1px solid var(--line); }
.cta { display: grid; justify-items: center; gap: 0; max-width: 760px; margin-inline: auto; }
.cta__title { font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: var(--black); text-wrap: balance; }
.cta__title::after { content: ""; display: block; width: 40px; height: 2px; margin: 20px auto 0; background: var(--accent); }
.lang-en .cta__title { text-transform: uppercase; }
.cta__body { margin: 16px auto 0; color: var(--gray-text); max-width: 560px; font-size: 17px; }
.cta__body--lg { margin-top: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; color: var(--black); }
.cta__actions { justify-content: center; }
.section--cta + .section--cta { padding-top: 0; border-top: 0; }

/* certificates */
.cert-list { display: grid; gap: 12px; }
.cert { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 18px 24px; background: var(--gray-light); border-radius: var(--radius-card); }
.cert__img { width: 56px; height: 56px; object-fit: contain; }
.cert__name { font-weight: 600; font-size: 16px; }
.cert__status { margin-inline-start: auto; font-size: 13px; color: var(--gray-text); background: var(--white); padding: 4px 12px; border-radius: var(--pill); }

/* gallery */
.section--gallery .section__title { text-align: center; margin-bottom: 32px; }
.gallery { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.gallery a { display: block; border-radius: var(--radius-card); overflow: hidden; background: var(--gray-light); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s; }
.gallery a:hover img { transform: scale(1.05); }

/* ---------- Forms (Register your interest · Submit your property · Contact): light layout ---------- */
.fx { --field-bg: #f6f5f2; --field-line: #e3e0d9; background: var(--white); color: var(--black); border-top: 1px solid var(--line); padding-top: var(--section) !important; }
.fx + .section { padding-top: var(--section) !important; }
.fx__title { font-size: clamp(30px, 4.6vw, 56px); font-weight: 800; line-height: 1.2; text-align: center; margin-bottom: 20px; text-wrap: balance; }
.fx__title::before { content: "/ "; color: var(--accent); font-weight: 400; }
.fx__title::after { content: " /"; color: var(--accent); font-weight: 400; }
.fx__wrap { max-width: 860px; margin-inline: auto; }
.fx__intro { margin: 0 auto 36px; max-width: 580px; text-align: center; color: var(--gray-text); font-size: 17px; }
.fx .form, .fx .form-success, .fx .notice { padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); border-radius: 16px; background: var(--white); box-shadow: 0 20px 50px -36px rgba(0, 0, 0, .25); }
.form__note { font-size: 13px; color: var(--gray-text); margin-bottom: 24px; }
.form__grid { display: grid; gap: 22px 24px; }
@media (min-width: 601px) { .form__grid { grid-template-columns: 1fr 1fr; } .field { grid-column: 1 / -1; } .field--half { grid-column: auto; } }
.field { border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.field__label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 0; font-size: 14px; font-weight: 600; color: var(--black); }
.req { color: var(--accent-ink); font-weight: 700; }
.opt { color: var(--gray-mid); font-weight: 400; font-size: 12px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="number"], .field input[type="url"], .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px;
  background-color: var(--field-bg, #f6f5f2); color: var(--black); font: 400 16px/1.5 var(--font-main);
  transition: border-color .25s, background-color .25s, box-shadow .25s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #a9a59c; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--field-line, #e3e0d9); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background-color: var(--white); border-color: var(--black); box-shadow: 0 0 0 4px rgba(201, 168, 124, .3); }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%230a0a0a' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 12px 8px; background-position: left 18px center; }
[dir="ltr"] .field select { background-position: right 18px center; }
.field select option { color: var(--black); background: var(--white); }
.field input[type="file"] { width: 100%; padding: 22px 18px; border: 1.5px dashed var(--field-line, #e3e0d9); border-radius: 12px; background: #fbfaf8; color: var(--gray-text); font: 400 14px/1.6 var(--font-main); cursor: pointer; transition: border-color .25s, background-color .25s; }
.field input[type="file"]:hover, .field input[type="file"]:focus { outline: none; border-color: var(--accent); background: #f8f4ec; }
.field input[type="file"]:focus-visible { box-shadow: 0 0 0 4px rgba(201, 168, 124, .3); }
.field input[type="file"]::file-selector-button { margin-inline-end: 16px; padding: 10px 20px; border: 0; border-radius: var(--pill); background: var(--black); color: var(--white); font: 600 13px var(--font-main); cursor: pointer; transition: background-color .25s; }
.field input[type="file"]:hover::file-selector-button { background: var(--accent); color: var(--black); }
.field input, .field select, .field textarea, .choice input { scroll-margin-top: calc(var(--header-h) + 72px); }
.field__help { font-size: 12px; color: var(--gray-text); line-height: 1.7; }
.field__error { font-size: 13px; color: var(--error); font-weight: 600; }
.field__error:empty { display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); background-color: #fdf6f5; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 20px; border: 1px solid var(--field-line, #e3e0d9); border-radius: var(--pill); background: var(--field-bg, #f6f5f2); color: var(--black); font-size: 14px; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s; }
.choice:hover span { border-color: var(--black); }
.choice input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); font-weight: 600; }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 3px; }
.field--check .check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--gray-text); line-height: 1.7; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--black); flex-shrink: 0; }
.field--check .field__help { padding-inline-start: 28px; }
.form__footer { margin-top: 32px; display: flex; justify-content: center; }
.btn--submit { min-width: 220px; min-height: 54px; padding: 16px 44px; background: var(--black); color: var(--white); border: 0; font-size: 15px; font-weight: 700; border-radius: var(--pill); }
.btn--submit:hover { background: var(--accent); color: var(--black); }
.form__alert { margin-bottom: 20px; padding: 12px 16px; border-radius: 10px; background: #fdf3f1; border: 1px solid var(--error); color: var(--error); font-size: 14px; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { text-align: center; display: grid; justify-items: center; gap: 8px; }
.form-success svg { width: 52px; height: 52px; color: var(--accent-ink); margin-bottom: 8px; }
.form-success__msg { font-size: 18px; font-weight: 600; color: var(--black); }
.form-success__ref { color: var(--gray-text); font-size: 13px; font-family: "Manrope", sans-serif; letter-spacing: 1px; }
.form-success:focus { outline: none; }
.notice { padding: 20px; border-radius: 10px; background: var(--gray-light); color: var(--gray-text); }
.fx__privacy { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 14px; align-items: start; margin-top: 24px; padding: 18px 20px; border-radius: 12px; background: var(--gray-light); font-size: 13px; color: var(--gray-text); }
.fx__privacy::before { content: ""; flex-shrink: 0; width: 22px; height: 22px; margin-top: 2px; background: var(--accent-ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 9.4 8 11 4.6-1.6 8-6 8-11V5z' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='m8.5 12 2.5 2.5 4.5-5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
.fx__privacy > p { grid-column: 2; }
.fx__privacy::before { grid-row: 1 / span 2; }
.fx__label { font-size: 13px; font-weight: 700; color: var(--black); margin-bottom: 2px; }
.lang-en .fx__label { text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
.fx__privacy a, .fx__privacy-inline a { color: var(--black); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.fx__privacy-inline { margin-top: 20px; font-size: 13px; color: var(--gray-text); }

/* contact page: details + map beside the form */
.fx--contact .fx__title { margin-bottom: 48px; }
.fx__grid { display: grid; gap: 48px; }
.fx__grid > * { min-width: 0; }
@media (min-width: 960px) { .fx__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 64px; align-items: start; } .fx__aside { position: sticky; top: calc(var(--header-h) + 24px); } }
.fx--contact .fx__intro { text-align: start; margin: 0 0 24px; }
.contact-list { display: grid; margin: 0; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; gap: 2px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 12px; font-weight: 700; color: var(--gray-text); letter-spacing: 1px; }
.lang-en .contact-list dt { text-transform: uppercase; }
.contact-list dd { margin: 0; font-size: 17px; font-weight: 500; color: var(--black); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-ink); }
.contact-list .muted { color: var(--gray-mid); font-weight: 400; font-size: 15px; }
.map { margin-top: 24px; }
.map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius-card); background: var(--gray-light); }
.map__empty { display: grid; place-items: center; gap: 8px; aspect-ratio: 16 / 10; padding: 16px; border-radius: var(--radius-card); text-align: center; font-size: 14px; color: var(--gray-text);
  background-color: var(--gray-light); background-image: linear-gradient(rgba(0, 0, 0, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, .04) 1px, transparent 1px); background-size: 40px 40px; }
.map__empty svg { width: 30px; height: 30px; color: var(--accent-ink); }
.map .link-more { margin-top: 14px; color: var(--black); }
@media (max-width: 600px) { .fx .form { padding: 20px 16px; } .form__grid { gap: 18px; } .btn--submit { width: 100%; } }

/* ---------- Services page: all services in one layout (anchor per service) ---------- */
.svc-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 64px; }
.svc-index a { display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px; border: 1px solid var(--line); border-radius: var(--pill); font-size: 14px; font-weight: 600; transition: border-color .25s, background-color .25s, color .25s; }
.svc-index a span { font: 700 12px/1 "Manrope", sans-serif; color: var(--accent-ink); }
.svc-index a:hover { border-color: var(--black); }
.svc-list { display: grid; gap: clamp(56px, 8vw, 112px); }
.svc-row { display: grid; gap: 32px; align-items: center; scroll-margin-top: 16px; }
.svc-row > * { min-width: 0; }
@media (min-width: 900px) { .svc-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 6vw, 88px); } .svc-row:nth-child(even) .svc-row__media { order: 2; } }
.svc-row__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden; background: var(--gray-light); transition: box-shadow .4s; }
.svc-row__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.svc-row:hover .svc-row__media img { transform: scale(1.04); }
.svc-row:target .svc-row__media { box-shadow: 0 0 0 3px var(--accent); }
.svc-row__num { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; font: 800 14px/1 "Manrope", sans-serif; letter-spacing: 2px; color: var(--accent-ink); }
.svc-row__num::after { content: ""; width: 40px; height: 1px; background: var(--accent); }
.svc-row__title { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.25; }
.lang-en .svc-row__title { text-transform: uppercase; }
.svc-row__text { margin-top: 14px; font-size: 17px; color: var(--gray-dark); max-width: 60ch; }
.svc-row__text p + p { margin-top: .6em; }
.svc-row__list { display: grid; gap: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.svc-row__list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 500; }
.svc-row__list li::before { content: ""; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.svc-row__actions { margin-top: 28px; }
.service-card .card__text { margin-bottom: 18px; }
.card__btn { margin-top: auto; align-self: flex-start; }

/* ---------- «مشاريعنا السابقة» (previous projects) ---------- */
.portfolio { border-top: 1px solid var(--line); padding-top: var(--section) !important; }
.portfolio + .section { padding-top: var(--section) !important; }
.portfolio__grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
@media (min-width: 1100px) { .portfolio__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-card { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 420px; border-radius: 16px; overflow: hidden; background: var(--gray-dark); color: var(--white); isolation: isolate; }
.pf-card__media { position: absolute; inset: 0; z-index: -1; }
.pf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.pf-card:hover .pf-card__media img { transform: scale(1.05); }
.pf-card__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .45) 38%, rgba(10, 10, 10, 0) 62%); }
.pf-card__body { display: grid; gap: 6px; padding: 22px; }
.pf-card__title { font-size: 21px; font-weight: 700; line-height: 1.3; }
.pf-card__text { font-size: 15px; color: rgba(255, 255, 255, .88); }
.pf-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.pf-card__badge { display: inline-block; padding: 3px 12px; border-radius: var(--pill); background: rgba(255, 255, 255, .9); color: var(--black); font-size: 13px; font-weight: 600; }
.pf-card__badge.is-live { background: var(--accent); color: var(--black); }
.pf-card__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--white); border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; transition: gap .3s, border-color .3s, color .3s; }
.pf-card__link svg { width: 14px; height: 14px; }
[dir="ltr"] .pf-card__link svg { transform: scaleX(-1); }
.pf-card__link:hover { gap: 10px; color: var(--accent); border-color: var(--accent); }
.pf-card__link::before { content: ""; position: absolute; inset: 0; } /* the whole card opens the link */
.pf-card__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) { .pf-card { min-height: 360px; } }

/* ---------- Team (About page: engineers) ---------- */
.team__grid { display: grid; gap: clamp(32px, 5vw, 56px); max-width: 1120px; margin-inline: auto; }
.person { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.person:nth-child(even) .person__photo { order: 2; }
.person__photo { position: relative; aspect-ratio: 4 / 5; max-height: 560px; width: 100%; border-radius: 20px; overflow: hidden; background: var(--gray-light); box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .45); }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.person:hover .person__photo img { transform: scale(1.03); }
.person__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: #cfc9be; background: linear-gradient(160deg, #f6f5f2, #ece9e3); }
.person__placeholder svg { width: 46%; height: auto; }
.person__body { min-width: 0; padding-block: 8px; }
.person__name { font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; line-height: 1.3; }
.person__name::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 18px; background: var(--accent); }
.person__bio { margin-top: 20px; font-size: clamp(16px, 1.3vw, 18px); line-height: 2; color: var(--gray-dark); max-width: 58ch; }
.person__bio p + p { margin-top: .8em; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; gap: 24px; } .person:nth-child(even) .person__photo { order: 0; } .person__photo { max-width: 360px; } }

/* ---------- Project page: extra details list ---------- */
.pd-speclist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 40px; border-top: 1px solid var(--line); }
.pd-speclist > div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pd-speclist dt { color: var(--gray-text); font-size: 14px; }
.pd-speclist dd { font-weight: 600; text-align: end; }
.pd-specs-sec .section__head { margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding-block: 60px 30px; }
.site-footer__grid { display: grid; gap: 40px 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
.site-footer__about { grid-column: 1 / -1; max-width: 340px; }
.site-footer__about p { margin-top: 16px; font-size: 14px; color: var(--gray-text); line-height: 1.7; }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.5fr repeat(5, minmax(0, 1fr)); } .site-footer__about { grid-column: auto; } }
.site-footer__title { font-size: 14px; font-weight: 700; margin-bottom: 16px; letter-spacing: .5px; }
.lang-en .site-footer__title { text-transform: uppercase; letter-spacing: 1px; }
.site-footer__col li { margin-bottom: 8px; font-size: 14px; }
.site-footer__col a { color: var(--gray-text); transition: color .3s; }
.site-footer__col a:hover { color: var(--black); }
.site-footer .muted { color: var(--gray-mid); }
.social { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.social li { margin: 0; }
.social a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gray-light); color: var(--black) !important; transition: background .3s; }
.social a:hover { background: var(--accent); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 24px; padding-top: 30px; border-top: 1px solid var(--line); font-size: 12px; color: var(--gray-mid); text-align: center; }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a:hover { color: var(--black); }

/* ---------- Floating buttons ---------- */
.scroll-top { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); inset-inline-end: 30px; z-index: 99; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--black); color: var(--white); opacity: 0; visibility: hidden; transition: all .3s; }
.scroll-top svg { width: 20px; height: 20px; }
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover { background: var(--accent); color: var(--black); }
.whatsapp-float { position: fixed; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 30px; z-index: 99; display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--pill); background: #128c4a; color: var(--white); font-size: 14px; font-weight: 600; box-shadow: 0 4px 16px rgba(18, 140, 74, .4); transition: transform .3s; }
.lang-en .whatsapp-float { text-transform: uppercase; letter-spacing: .5px; }
.whatsapp-float svg { width: 20px; height: 20px; }
.whatsapp-float:hover { transform: translateY(-4px); }
@media (max-width: 600px) {
  .scroll-top { inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; }
  .whatsapp-float { inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); padding: 12px; }
  .whatsapp-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .site-header, .menu, .site-footer, .hero__scroll, .scroll-top, .whatsapp-float, .actions { display: none; } }

/* =====================================================================
   Project detail page (pd-*) — same tokens, fonts and shapes as the rest
   ===================================================================== */
.pd-kicker { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--accent); }
.lang-en .pd-kicker { text-transform: uppercase; }
.pd-hero .banner__content { max-width: 880px; }
.pd-hero__stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pd-hero__stats > div { display: flex; flex-direction: column-reverse; gap: 2px; padding: 14px 20px; border-radius: var(--radius-card); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(6px); min-width: 150px; }
.pd-hero__stats dd { font: 800 clamp(22px, 2.6vw, 30px)/1.15 "Manrope", sans-serif; color: var(--white); letter-spacing: -.01em; }
.pd-hero__stats dt { font-size: 12px; color: rgba(255, 255, 255, .78); }
.banner--plain .pd-hero__stats > div { backdrop-filter: none; }

.pd-nav { position: sticky; top: var(--header-h); z-index: 90; background: var(--white); border-bottom: 1px solid var(--line); }
.pd-nav__list { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pd-nav__list::-webkit-scrollbar { display: none; }
.pd-nav__list a { display: block; padding: 16px 0; font-size: 14px; font-weight: 500; color: var(--gray-mid); white-space: nowrap; transition: color .3s; border-bottom: 2px solid transparent; }
.lang-en .pd-nav__list a { text-transform: uppercase; letter-spacing: .5px; font-size: 13px; }
.pd-nav__list a:hover, .pd-nav__list a.is-active { color: var(--black); border-bottom-color: var(--accent); }
.pd-nav ~ .section { scroll-margin-top: calc(var(--header-h) + 56px); }
.pd-hero + .pd-nav + .section { padding-top: var(--section) !important; }

.pd-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; color: var(--accent-ink); }
.lang-en .pd-eyebrow { text-transform: uppercase; }
.section__head .pd-eyebrow { margin-bottom: -4px; }
.pd-title { margin-top: 10px; }
.pd-lead { margin-top: 16px; font-size: 17px; color: var(--gray-dark); }
.pd-lead p + p { margin-top: .8em; }
.pd-note { margin-top: 24px; font-size: 13px; color: var(--gray-text); text-align: center; }
.pd-note p + p { margin-top: .4em; }
.pd-note--box { margin: 0 auto; max-width: 820px; padding: 18px 22px; border-radius: var(--radius-inner); background: var(--gray-light); text-align: start; }

.pd-split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .pd-split { grid-template-columns: 1fr 1fr; gap: 64px; } .pd-split--single { grid-template-columns: minmax(0, 820px); justify-content: center; } }
.pd-media { position: relative; border-radius: var(--radius-card); overflow: hidden; background: var(--gray-light); }
.pd-media__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.pd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 12px; margin-top: 28px; }
.pd-fact { display: grid; align-content: start; gap: 4px; padding: 18px; border-radius: var(--radius-card); background: var(--gray-light); }
.pd-fact--wide { grid-column: 1 / -1; }
.pd-fact__value { font: 800 32px/1.1 "Manrope", sans-serif; letter-spacing: -.02em; }
.pd-fact__title { font-size: 14px; font-weight: 600; }
.pd-fact__text { font-size: 13px; color: var(--gray-text); }
.pd-fact--wide::before { content: ""; width: 24px; height: 2px; background: var(--accent); margin-bottom: 8px; }

.pd-points { display: grid; gap: 14px; margin-top: 28px; }
.pd-points li { display: grid; gap: 2px; padding-inline-start: 18px; border-inline-start: 2px solid var(--accent); }
.pd-points strong { font-size: 16px; font-weight: 600; color: var(--black); }
.pd-points span { font-size: 14px; color: var(--gray-text); }
.pd-map { border-radius: var(--radius-card); overflow: hidden; background: var(--gray-dark); }
.pd-location { border-top: 1px solid var(--line); padding-top: var(--section) !important; }
.pd-location + .section { padding-top: var(--section) !important; }
.pd-map__img { width: 100%; height: auto; }
.pd-map figcaption { padding: 12px 16px; font-size: 12px; color: rgba(255, 255, 255, .6); }

.pd-unit-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pd-unit:hover { transform: none; }
.pd-unit__plan { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--gray-light); border-bottom: 1px solid var(--line); }
.pd-unit__plan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.pd-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.pd-specs > div { display: flex; flex-direction: column; padding: 8px 12px; border-radius: var(--radius-inner); background: var(--gray-light); min-width: 84px; }
.pd-specs dt { font-size: 11px; color: var(--gray-text); }
.pd-specs dd { font-size: 15px; font-weight: 700; }
.pd-unit .card__text p + p { margin-top: .4em; }
.pd-unit__value { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--gray-text); }
.pd-unit .card__text + .pd-unit__value { margin-top: 14px; }
.pd-unit__value b { font-size: 18px; color: var(--black); font-family: "Manrope", sans-serif; }

.pd-point__value { display: block; font: 800 32px/1 "Manrope", sans-serif; color: var(--accent-ink); margin-bottom: 10px; }

.pd-stats { margin-bottom: 32px; }
@media (min-width: 900px) {
  .pd-stats { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
  .pd-stats .stat:nth-child(4n + 1) { border-inline-start: 0; }
  .pd-stats .stat:nth-child(n + 5) { border-top: 1px solid var(--line); }
}
.pd-stats .stat__value { font-size: clamp(26px, 3vw, 40px); }
.pd-calc { display: grid; gap: 28px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-card); background: var(--black); color: var(--white); }
@media (min-width: 900px) { .pd-calc { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; } .pd-calc__note { grid-column: 1 / -1; } }
.pd-calc__title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin-bottom: 18px; }
.pd-calc__label { display: block; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 8px; }
.pd-calc__stepper { display: flex; align-items: center; gap: 8px; }
.pd-calc__stepper input { width: 96px; min-height: 48px; text-align: center; font: 700 22px "Manrope", sans-serif; color: var(--white); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius-inner); }
.pd-calc__stepper input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pd-calc__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: var(--white); font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s, color .2s; }
.pd-calc__btn:hover { background: var(--white); color: var(--black); }
.pd-calc__range { width: 100%; margin-top: 18px; accent-color: var(--accent); }
.pd-calc__meta { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .65); }
.pd-calc__out { display: grid; gap: 1px; border-radius: var(--radius-inner); overflow: hidden; background: rgba(255, 255, 255, .12); }
.pd-calc__out > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px; background: var(--black); }
.pd-calc__out dt { font-size: 14px; color: rgba(255, 255, 255, .7); }
.pd-calc__out dd { font: 700 20px "Manrope", sans-serif; }
.pd-calc__total dd { font-size: clamp(24px, 3vw, 32px); color: var(--accent); }
.pd-calc__note { font-size: 12px; color: rgba(255, 255, 255, .6); }

.pd-steps .steps { counter-reset: none; }

.pd-phases { display: grid; gap: 12px; max-width: 980px; margin-inline: auto; }
.pd-phase { padding: 20px 22px; border-radius: var(--radius-card); border: 1px solid var(--line); background: var(--white); }
.pd-phase.is-current { border-color: var(--accent); box-shadow: var(--shadow-card); }
.pd-phase__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.pd-phase__title { font-size: 17px; font-weight: 700; }
.pd-phase__now { padding: 3px 10px; border-radius: var(--pill); background: var(--accent); color: var(--black); font-size: 12px; font-weight: 600; }
.pd-phase__when { margin-inline-start: auto; font-size: 13px; font-weight: 600; color: var(--gray-text); }
.pd-phase__track { position: relative; height: 6px; margin-top: 14px; border-radius: 3px; background: var(--gray-light); overflow: hidden; }
.pd-phase__track span { position: absolute; top: 0; bottom: 0; inset-inline-start: calc(var(--from) / var(--span) * 100%); width: calc((var(--to) - var(--from)) / var(--span) * 100%); border-radius: 3px; background: var(--gray-mid); }
.pd-phase.is-current .pd-phase__track span { background: var(--accent); }
.pd-phase__text { margin-top: 10px; font-size: 14px; color: var(--gray-text); }

.pd-disclaimer { padding-top: 0; }

/* project list with a single project: one wide card */
@media (min-width: 900px) {
  .project-grid--single { grid-template-columns: 1fr; }
  .project-grid--single .project-card { flex-direction: row; }
  .project-grid--single .card__img { flex: 0 0 56%; aspect-ratio: 16 / 10; }
  .project-grid--single .card__body { padding: 36px; justify-content: center; }
  .project-grid--single .card__title { font-size: clamp(24px, 2.4vw, 32px); }
  .project-grid--single .card__meta { justify-content: flex-start; gap: 8px 20px; }
  .project-grid--single .card__text { font-size: 16px; }
  .project-grid--single .card__link { margin-top: 20px; font-size: 14px; }
}
@media print { .pd-nav, .pd-calc__btn, .pd-calc__range { display: none; } }
@media (max-width: 600px) {
  .pd-hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .pd-hero__stats > div { min-width: 0; padding: 12px 14px; }
  .pd-hero__stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pd-calc__out > div { padding: 14px 16px; }
}

/* ---------- Project page: interactive parts (key plan, share grid, gantt, gallery filters, lightbox) ---------- */
.lang-ar .pd-diagram [data-l="en"], .lang-en .pd-diagram [data-l="ar"],
.lang-ar .pd-keyplan [data-l="en"], .lang-en .pd-keyplan [data-l="ar"] { display: none; }
.pd-map .pd-diagram { display: block; width: 100%; height: auto; }
.pd-diagram, .pd-keyplan svg { direction: ltr; unicode-bidi: isolate; }
.pd-map .route { stroke-dasharray: 620; stroke-dashoffset: 620; animation: pd-draw 2.2s ease .3s forwards; }
.pd-map .pulse { transform-origin: 200px 150px; animation: pd-pulse 2s ease-out infinite; }
@keyframes pd-draw { to { stroke-dashoffset: 0; } }
@keyframes pd-pulse { from { transform: scale(1); opacity: .6; } to { transform: scale(2.6); opacity: 0; } }
.pd-location .pd-points li { font-size: 15px; font-weight: 600; }

/* units: key plan + tabs + one card at a time (without JavaScript all cards are listed) */
.pd-units__layout { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .pd-units__layout.has-plan { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; } }
.pd-units__layout > * { min-width: 0; }
.pd-keyplan { background: var(--gray-light); border-radius: var(--radius-card); padding: 24px; }
.pd-keyplan svg, .pd-keyplan__img { display: block; width: 100%; max-width: 360px; height: auto; margin-inline: auto; }
.pd-keyplan .u path, .pd-keyplan .u rect { fill: var(--white); stroke: var(--black); stroke-width: 2; transition: fill .25s; }
.pd-keyplan .u text { font: 700 26px "Manrope", sans-serif; fill: var(--black); pointer-events: none; }
.pd-keyplan .u[role="button"] { cursor: pointer; }
.pd-keyplan .u[role="button"]:hover path, .pd-keyplan .u[role="button"]:hover rect { fill: #f3ebdf; }
.pd-keyplan .u.is-on path, .pd-keyplan .u.is-on rect { fill: var(--accent); }
.pd-keyplan .u.is-off text { fill: var(--gray-mid); }
.pd-keyplan .u:focus { outline: none; }
.pd-keyplan .u:focus-visible path, .pd-keyplan .u:focus-visible rect { stroke: var(--accent-ink); stroke-width: 4; }
.pd-keyplan .core { fill: var(--gray-dark); }
.pd-keyplan .core-t { font: 600 11px var(--font-main); fill: var(--white); }
.pd-keyplan__hint { margin-top: 14px; text-align: center; font-size: 13px; color: var(--gray-text); }
.pd-unit-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pd-unit-tabs button { border: 1px solid var(--line); background: var(--white); border-radius: var(--pill); padding: 8px 16px; font: 600 13px var(--font-main); color: var(--gray-text); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s; }
.pd-unit-tabs button:hover { border-color: var(--black); color: var(--black); }
.pd-unit-tabs button[aria-selected="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
.is-tabbed .pd-unit-grid { display: block; }
.is-tabbed .pd-unit:not(.is-on) { display: none; }
.is-tabbed .pd-unit { box-shadow: var(--shadow-card); }
.is-tabbed .pd-unit__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pd-unit__plan { cursor: zoom-in; }
.pd-unit__plan img { transition: opacity .25s; }
.pd-unit__badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 4px 12px; border-radius: var(--pill); background: var(--black); color: var(--white); font-size: 12px; font-weight: 600; }
.pd-unit__zoom { position: absolute; bottom: 12px; inset-inline-end: 12px; padding: 4px 12px; border-radius: var(--pill); background: var(--white); font-size: 12px; font-weight: 600; box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.pd-units__layout:not(.is-tabbed) .pd-unit__badge { display: none; }

/* calculator: share grid + bars */
.pd-share-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; margin-top: 18px; max-width: 360px; }
.pd-share-grid button { aspect-ratio: 1; border: 1px solid rgba(255, 255, 255, .25); border-radius: 4px; background: transparent; padding: 0; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pd-share-grid button.on { background: var(--accent); border-color: var(--accent); }
.pd-share-grid button:hover { border-color: var(--white); }
.pd-share-grid button:disabled { opacity: .3; cursor: default; }
.pd-calc__total dt span { color: rgba(255, 255, 255, .55); }
.pd-calc__out > .pd-calc__bars { display: grid; gap: 8px; padding: 16px 20px; }
.pd-bar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.pd-bar span { display: block; height: 100%; border-radius: 4px; background: var(--white); transition: width .35s ease; }
.pd-bar--gain span { background: var(--accent); }

/* timeline gantt */
.pd-now-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--pill); background: var(--accent); color: var(--black); font-size: 13px; font-weight: 600; }
.pd-now-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--black); }
.pd-gantt-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 20px; -webkit-overflow-scrolling: touch; }
.pd-gantt { display: grid; grid-template-columns: minmax(150px, 1.4fr) repeat(var(--span), minmax(26px, 1fr)); row-gap: 10px; min-width: 720px; align-items: center; }
.pd-gantt__m { font: 600 11px "Manrope", sans-serif; color: var(--gray-mid); text-align: center; }
.pd-gantt__ph { padding-inline-end: 12px; }
.pd-gantt__ph button { border: 0; background: none; padding: 0; font: 600 14px var(--font-main); color: var(--black); text-align: start; cursor: pointer; }
.pd-gantt__track { grid-column: 2 / -1; height: 1px; background: var(--line); }
.pd-gantt__bar { height: 34px; border: 0; border-radius: var(--radius-inner); padding: 0 8px; background: var(--gray-dark); color: var(--white); font: 600 12px var(--font-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.pd-gantt__bar:hover { transform: translateY(-2px); }
.pd-gantt__bar.is-now { background: var(--accent); color: var(--black); }
.pd-gantt__bar[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--black); }
.pd-phase-info { display: grid; gap: 12px; margin-top: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
.pd-phase-info > div { padding: 14px 16px; border-radius: var(--radius-inner); background: var(--gray-light); }
.pd-phase-info dt { font-size: 12px; color: var(--gray-text); }
.pd-phase-info dd { font-size: 17px; font-weight: 700; }
.pd-phase-info .pd-phase-info__text { grid-column: 1 / -1; }
.pd-phase-info__text dd { font-size: 14px; font-weight: 400; color: var(--gray-text); }

/* gallery filters + captions */
.pd-gallery .section__title { margin-bottom: 24px; }
.pd-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 24px; }
.pd-filters button { border: 1px solid var(--line); background: var(--white); border-radius: var(--pill); padding: 8px 16px; font: 600 13px var(--font-main); color: var(--gray-text); cursor: pointer; }
.pd-filters button[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: var(--white); }
@media (min-width: 900px) { .pd-gallery__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pd-gallery__grid a { position: relative; cursor: zoom-in; }
.pd-gallery__grid img.is-plan { object-fit: contain; padding: 10px; }
.pd-gallery__cap { position: absolute; bottom: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px); padding: 3px 10px; border-radius: var(--pill); background: var(--white); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* lightbox */
.pd-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-rows: auto 1fr auto; padding: 16px; background: rgba(10, 10, 10, .92); color: var(--white); }
.pd-lightbox[hidden] { display: none; }
.pd-lightbox__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.pd-lightbox__img { display: grid; place-items: center; min-height: 0; padding-block: 12px; }
.pd-lightbox__img img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; background: var(--white); }
.pd-lightbox__nav { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 14px; }
.pd-lightbox button { min-height: 44px; padding: 0 20px; border: 1px solid rgba(255, 255, 255, .4); border-radius: var(--pill); background: transparent; color: var(--white); font: 600 14px var(--font-main); cursor: pointer; }
.pd-lightbox button:hover { background: var(--white); color: var(--black); }
html.pd-lb-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .pd-map .route { stroke-dashoffset: 0; } }
@media print { .pd-filters, .pd-unit-tabs, .pd-lightbox { display: none !important; } .is-tabbed .pd-unit:not(.is-on) { display: block; } }

/* ---------- Project page: components, facilities, executive summary ---------- */
.pd-comps__grid, .pd-facils__grid, .pd-summary__grid { display: grid; gap: 20px; }
.pd-comps__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.pd-comps__item { position: relative; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--white); transition: box-shadow .3s, transform .3s; }
.pd-comps__item:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.pd-comps__num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 50%; background: var(--accent); color: var(--black); font: 800 17px/1 "Manrope", sans-serif; }
.pd-comps__title, .pd-facils__title, .pd-summary__title { font-size: 18px; font-weight: 700; line-height: 1.45; }
.pd-comps__text, .pd-facils__text, .pd-summary__text { margin-top: 8px; font-size: 14px; line-height: 1.8; color: var(--gray-text); }
.pd-facils { background: var(--gray-light); padding-top: var(--section) !important; }
.pd-facils + .section { padding-top: var(--section) !important; }
.pd-facils__grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (min-width: 1100px) { .pd-facils__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pd-facils__item { padding: 26px 22px; border-radius: var(--radius-card); background: var(--white); }
.pd-facils__item::before { content: ""; display: block; width: 24px; height: 2px; margin-bottom: 16px; background: var(--accent); }
.pd-summary__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); max-width: 1100px; margin-inline: auto; }
.pd-summary__item { padding: 28px; border-radius: var(--radius-card); background: var(--gray-light); border-inline-start: 3px solid var(--accent); }
.pd-summary__text { font-size: 15px; }

/* =====================================================================
   Premium touches: fixed header, lighter project widgets, services balance,
   elegant WhatsApp button and scroll-in animations
   ===================================================================== */
/* header always fixed at the top; pages without a hero leave room for it */
.site-header, .has-hero .site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; }
body:not(.has-hero) main { padding-top: var(--header-h); }
body:not(.has-hero) .site-header { box-shadow: 0 8px 30px -22px rgba(0, 0, 0, .25); }

/* project page: units — gold for the selected unit, warm grey core */
.pd-unit-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--black); }
.pd-keyplan .core { fill: #e7e2d9; }
.pd-keyplan .core-t { fill: var(--gray-text); }
.pd-unit__badge { background: var(--white); color: var(--black); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }

/* project page: return calculator on a light warm background */
.pd-calc { background: #f6f3ee; color: var(--black); border: 1px solid #ebe5da; }
.pd-calc__label, .pd-calc__meta { color: var(--gray-text); }
.pd-calc__stepper input { color: var(--black); background: var(--white); border-color: #e2dccf; }
.pd-calc__btn { border-color: #d8d0c1; color: var(--black); background: var(--white); }
.pd-calc__btn:hover { background: var(--accent); border-color: var(--accent); color: var(--black); }
.pd-share-grid button { border-color: #d8d0c1; background: var(--white); }
.pd-share-grid button:hover { border-color: var(--accent-ink); }
.pd-calc__out { background: #e6dfd2; }
.pd-calc__out > div { background: var(--white); }
.pd-calc__out dt, .pd-calc__total dt span { color: var(--gray-text); }
.pd-calc__out dd { color: var(--black); }
.pd-calc__total dd { color: var(--accent-ink); }
.pd-bar { background: #eee8dd; }
.pd-bar span { background: #b9b0a0; }
.pd-bar--gain span { background: var(--accent); }
.pd-calc__note { color: var(--gray-text); }

/* project page: clearer active section link */
.pd-nav__list { gap: 6px; padding-block: 8px; }
.pd-nav__list a { padding: 8px 16px; border: 0; border-radius: var(--pill); transition: color .3s, background-color .3s; }
.pd-nav__list a:hover { color: var(--black); background: rgba(201, 168, 124, .1); }
.pd-nav__list a.is-active { color: var(--black); font-weight: 700; background: rgba(201, 168, 124, .22); }

/* services page: fuller text column */
.svc-row__body { padding: clamp(8px, 2vw, 24px); }
.svc-row__list { gap: 8px; border-top: 0; }
.svc-row__list li { padding: 12px 16px; border: 0; border-radius: 10px; background: #f8f6f2; }

/* WhatsApp: charcoal with a gold hover */
.whatsapp-float { background: #1f1f1f; color: var(--white); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); transition: transform .3s, background-color .3s, color .3s; }
.whatsapp-float svg { color: var(--accent); transition: color .3s; }
.whatsapp-float:hover { background: var(--accent); color: var(--black); }
.whatsapp-float:hover svg { color: var(--black); }

/* Header: logo on the left and tools on the right in both languages */
.site-header__bar, .menu__top { direction: ltr; }
[dir="rtl"] .brand { direction: rtl; }
.site-header__tools { direction: ltr; }   /* the menu button stays on the far right in both languages */


/* Service cards: the card opens the service section; the button opens its dedicated page */
.service-card--link { position: relative; transition: box-shadow .3s ease, transform .3s ease; }
.service-card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.service-card--link .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card--link .card__btn { position: relative; z-index: 1; }
.svc-row { scroll-margin-top: calc(var(--header-h) + 24px); }
.svc-row__cta { margin-top: 24px; }

/* Invest: available opportunities */
.opportunity { position: relative; transition: box-shadow .3s ease, transform .3s ease; }
.opportunity:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); }
.opportunity .card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.opportunity__location { margin: 6px 0 0; color: var(--gray-text); font-size: 15px; }
.opportunity__roi { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--gray-text); font-size: 14px; }
.opportunity__roi b { color: var(--accent-ink); font-size: 22px; font-weight: 800; }
#invest-form { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Project page: buy and invest */
.pd-hero__cta + .actions { margin-top: 12px; }

/* About: vision and mission */
.vm__grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .vm__grid { grid-template-columns: 1fr 1fr; } }
.vm__card { padding: clamp(28px, 4vw, 48px); background: var(--gray-light); border: 1px solid var(--line); border-radius: 18px; }
.vm__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; background: var(--white); color: var(--accent-ink); box-shadow: inset 0 0 0 1px var(--beige-line); }
.vm__icon svg { width: 28px; height: 28px; }
.vm__title { margin: 0 0 12px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.vm__text { color: var(--gray-dark); font-size: 17px; line-height: 1.8; }

/* scroll-in animations (set up by site.js; shown once; off with reduced motion) */
.rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rv-delay, 0s); }
.rv.rv-in { opacity: 1; transform: none; }
@media (max-width: 760px) { .rv { transform: translateY(14px); transition-duration: .5s; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }
@media print { .rv { opacity: 1 !important; transform: none !important; } }

/* Project cards: status in the information row under the image */
.project-card .card__meta { justify-content: flex-start; gap: 6px 16px; }

/* Project page: hero details and the buy button under the units */
.pd-hero__meta { margin-top: 18px; font-size: 15px; }
.banner .pd-hero__meta { margin-bottom: 0; }
.pd-units__buy { margin-top: 32px; justify-content: center; }
.pd-fact__value[dir="auto"] { font-size: clamp(24px, 2.4vw, 32px); }

/* Secondary navigation stays right under the main header while scrolling */
body { overflow-x: clip; }
.svc-index { position: sticky; top: var(--header-h); z-index: 80; padding-block: 12px; background: var(--white); }
.svc-row { scroll-margin-top: calc(var(--header-h) + 84px); }
@media (max-width: 760px) { .svc-index { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; } .svc-index a { flex: none; } }
