/* الوجيه — Oat Milk 60% · Forest Green 30% · Tomato Red 10% */
:root {
  --oat: #f1eadd;
  --oat-2: #e8dfce;
  --oat-3: #d8ccb4;
  --paper: #faf6ee;
  --forest: #1f4332;
  --forest-2: #2b5a44;
  --forest-deep: #132a1f;
  --sage: #a9bda8;
  --tomato: #e2452c;
  --tomato-2: #f25f43;
  --ink: #15251c;
  --muted: #5d6b61;
  --line: rgba(21, 37, 28, .12);
  --line-d: rgba(241, 234, 221, .16);
  --r-sm: 12px; --r: 20px; --r-lg: 28px; --r-xl: 40px;
  --shadow: 0 1px 2px rgba(21, 37, 28, .05), 0 12px 32px -12px rgba(21, 37, 28, .18);
  --shadow-lg: 0 2px 4px rgba(21, 37, 28, .06), 0 32px 60px -24px rgba(21, 37, 28, .35);
  --display: "Alexandria", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --verse: "Amiri", "Traditional Arabic", serif;
  --wrap: min(1280px, 100% - 2.5rem);
  --ease: cubic-bezier(.2, .8, .2, 1);
  /* أسماء قديمة تستخدمها لوحة الإدارة */
  --basalt: var(--forest-deep); --basalt-2: var(--forest); --basalt-3: var(--forest-2);
  --stone: var(--oat); --stone-2: var(--oat-2); --stone-3: var(--oat-3); --copper: var(--tomato); --copper-2: var(--tomato-2);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--forest) var(--oat-2); }
body { margin: 0; background: var(--oat); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.2; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--tomato); color: #fff; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--tomato); color: #fff; padding: .5rem 1rem; z-index: 100; border-radius: 99px; }
.skip:focus { top: 1rem; }
.wrap { width: var(--wrap); margin-inline: auto; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.boot::before { content: ""; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--oat-3); border-top-color: var(--tomato); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.progress { position: fixed; inset: 0 0 auto; height: 3px; background: var(--tomato); transform-origin: right; transform: scaleX(var(--sp, 0)); z-index: 60; }

/* ------------------------------------------------ الترويسة العائمة */
.top { position: fixed; inset: 14px 0 auto; z-index: 50; width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .5rem .5rem .6rem; padding-inline-start: 1.1rem; border-radius: 99px; background: rgba(250, 246, 238, .78); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .3s; }
.top.hide { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--forest); }
.mark { width: 40px; height: 40px; flex: none; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--display); font-weight: 800; font-size: 1.35rem; }
.brand-text small { font-size: .68rem; color: var(--muted); }
.nav { display: flex; align-items: center; gap: .15rem; }
.nav a { text-decoration: none; padding: .5rem 1rem; font-size: .95rem; font-weight: 500; border-radius: 99px; color: var(--ink); transition: background .2s, color .2s; }
.nav a:hover { background: var(--oat-2); }
.nav a.on { background: var(--forest); color: var(--oat); }
.nav .nav-cta { background: var(--tomato); color: #fff; margin-inline-start: .5rem; padding: .65rem 1.3rem; font-weight: 600; display: inline-flex; gap: .5rem; align-items: center; }
.nav .nav-cta:hover, .nav .nav-cta.on { background: var(--forest); color: #fff; }
.burger { display: none; background: var(--forest); border: 0; width: 46px; height: 46px; border-radius: 50%; padding: 15px 13px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--oat); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s; }
.burger span + span { margin-top: 5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------ الأزرار */
.btn { --bg: var(--tomato); --fg: #fff; display: inline-flex; align-items: center; gap: .9rem; padding: .45rem .45rem .45rem 1.5rem; padding-inline: 1.5rem .45rem; min-height: 54px;
  font-family: var(--display); font-weight: 600; font-size: 1rem; text-decoration: none; border: 0; border-radius: 99px; background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background .25s; }
.btn .btn-ic { width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; transition: transform .4s var(--ease), background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -12px var(--bg); }
.btn:hover .btn-ic { transform: rotate(45deg) scale(1.06); background: rgba(255, 255, 255, .34); }
.btn:active { transform: scale(.97); }
.btn.green { --bg: var(--forest); --fg: var(--oat); }
.btn.light { --bg: var(--paper); --fg: var(--forest); box-shadow: inset 0 0 0 1px var(--line); }
.btn.light .btn-ic { background: var(--forest); color: var(--oat); }
.btn.plain { padding-inline: 1.5rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.link { font-family: var(--display); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; color: var(--forest); white-space: nowrap; }
.link .ic { transition: transform .3s var(--ease); color: var(--tomato); }
.link:hover .ic { transform: translate(-4px, -4px); }
.tag { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--display); font-size: .8rem; font-weight: 600; padding: .35rem .9rem; border-radius: 99px; background: var(--paper); color: var(--forest); border: 1px solid var(--line); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tomato); }
.tag.plain::before { display: none; }
a.tag { text-decoration: none; transition: background .25s, color .25s; }
a.tag:hover { background: var(--forest); color: var(--oat); }

/* ------------------------------------------------ الواجهة الرئيسية (3D) */
.hero { position: relative; height: 250vh; }
.hero-pin { position: sticky; top: 0; height: 100vh; min-height: 600px; overflow: hidden; background: radial-gradient(120% 90% at 20% 30%, var(--paper), var(--oat) 60%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.hero canvas:active { cursor: grabbing; }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to left, var(--oat) 8%, rgba(241, 234, 221, .82) 34%, rgba(241, 234, 221, 0) 58%); }
.hero-copy { position: absolute; inset-inline-start: max(1.25rem, (100vw - 1280px) / 2); top: 54%; transform: translateY(-50%); width: min(620px, calc(100% - 2.5rem)); pointer-events: none; }
.hero-copy > * { pointer-events: auto; }
.hero h1 { font-weight: 800; font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1.08; color: var(--forest); margin-top: 1.2rem; }
.hero h1 em { font-style: normal; color: var(--tomato); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; inset-inline: 0; bottom: -.08em; height: .12em; border-radius: 99px; background: var(--tomato); opacity: .25; transform-origin: right; animation: grow 1s .5s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.hero-lead { margin: 1.4rem 0 2rem; font-size: 1.15rem; color: var(--muted); max-width: 31em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; } .hero-copy > :nth-child(4) { animation-delay: .24s; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
.stages { position: absolute; inset-inline-end: max(1.25rem, (100vw - 1280px) / 2); bottom: 1.8rem; display: flex; gap: .4rem; list-style: none; margin: 0; padding: .4rem; border-radius: 99px;
  background: rgba(250, 246, 238, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .7); box-shadow: var(--shadow); }
.stages li { position: relative; overflow: hidden; padding: .55rem 1.2rem; border-radius: 99px; font-family: var(--display); font-size: .88rem; font-weight: 600; color: var(--muted); display: flex; gap: .5rem; align-items: center; transition: color .3s; }
.stages li::before { content: ""; position: absolute; inset: 0; background: var(--forest); transform-origin: right; transform: scaleX(var(--p, 0)); border-radius: 99px; }
.stages li > * { position: relative; }
.stages li b { font-weight: 800; color: var(--tomato); transition: color .3s; }
.stages li.on { color: var(--oat); }
.stages li.on b { color: var(--tomato-2); }
.drag-hint { position: absolute; inset-inline-start: max(1.25rem, (100vw - 1280px) / 2); bottom: 2.2rem; font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; }
.drag-hint i { width: 26px; height: 42px; border: 2px solid var(--forest); border-radius: 99px; position: relative; opacity: .7; }
.drag-hint i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: var(--tomato); animation: wheel 1.6s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.chip3d { position: absolute; padding: .55rem 1rem; border-radius: var(--r); background: rgba(250, 246, 238, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--shadow);
  font-size: .8rem; color: var(--muted); display: flex; align-items: center; gap: .6rem; line-height: 1.3; animation: floaty 6s ease-in-out infinite; pointer-events: none; }
.chip3d b { font-family: var(--display); font-size: 1.25rem; color: var(--forest); display: block; }
.chip3d .ic { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: var(--forest); color: var(--oat); }
.chip3d.c1 { left: 6%; top: 24%; } .chip3d.c2 { left: 31%; top: 62%; animation-delay: -3s; }
.chip3d.c2 .ic { background: var(--tomato); color: #fff; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

/* شريط متحرك */
.marquee { background: var(--forest); color: var(--oat); overflow: hidden; padding: 1.1rem 0; display: flex; direction: ltr; }
.marquee div { display: flex; gap: 2.5rem; padding-inline-end: 2.5rem; flex: none; align-items: center; animation: slide 38s linear infinite; direction: rtl; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: 1.15rem; white-space: nowrap; display: flex; align-items: center; gap: 2.5rem; }
.marquee span::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--tomato); }
.marquee:hover div { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-100%); } }

/* ------------------------------------------------ الأقسام */
.sec { padding: clamp(3.5rem, 8vw, 7rem) 0; }
.sec.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.6rem; }
.sec-head h2 { font-weight: 800; font-size: clamp(1.9rem, 4vw, 3.2rem); color: var(--forest); margin-top: 1rem; }
.sec-head p { margin: .8rem 0 0; color: var(--muted); max-width: 38em; }
.panel-green { background: var(--forest); color: var(--oat); border-radius: var(--r-xl); padding: clamp(2rem, 6vw, 5rem); position: relative; overflow: hidden; }
.panel-green::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 90px solid var(--forest-2); opacity: .5; left: -200px; bottom: -280px; }
.panel-green > * { position: relative; }

/* أرقام */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r-lg); padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow); display: grid; gap: .2rem; transition: transform .4s var(--ease); }
.stat:hover { transform: translateY(-6px); }
.stat .ic { width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--oat-2); color: var(--forest); margin-bottom: 1rem; }
.stat b { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; color: var(--forest); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .95rem; }
.stat.g { background: var(--forest); border-color: transparent; } .stat.g b { color: var(--oat); } .stat.g span { color: var(--sage); } .stat.g .ic { background: var(--forest-2); color: var(--oat); }
.stat.t { background: var(--tomato); border-color: transparent; } .stat.t b, .stat.t span { color: #fff; } .stat.t .ic { background: rgba(255, 255, 255, .2); color: #fff; }

/* مجالات العمل */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service { background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r-lg); padding: 1.5rem; text-decoration: none; display: flex; flex-direction: column; gap: .4rem; min-height: 210px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); transition: transform .45s var(--ease), background .35s, color .35s, box-shadow .35s; }
.service > .ic { width: 52px; height: 52px; padding: 13px; border-radius: 16px; background: var(--oat-2); color: var(--forest); margin-bottom: auto; transition: background .35s, color .35s, transform .45s var(--ease); }
.service h3 { font-size: 1.15rem; font-weight: 600; margin-top: 1.4rem; }
.service p { font-size: .88rem; color: var(--muted); margin: 0; transition: color .35s; }
.service .go { position: absolute; top: 1.5rem; inset-inline-end: 1.5rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .35s var(--ease); }
.service .num { position: absolute; bottom: -1.6rem; inset-inline-end: 1rem; font-family: var(--display); font-weight: 800; font-size: 6rem; line-height: 1; color: var(--forest); opacity: .05; transition: opacity .35s, color .35s; pointer-events: none; }
.service:hover { background: var(--forest); color: var(--oat); transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.service:hover p { color: var(--sage); }
.service:hover > .ic { background: var(--tomato); color: #fff; transform: rotate(-8deg) scale(1.08); }
.service:hover .go { background: var(--oat); color: var(--forest); border-color: transparent; transform: rotate(45deg); }
.service:hover .num { color: var(--oat); opacity: .1; }

/* بطاقات المشاريع */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.card { perspective: 1000px; text-decoration: none; display: block; }
.card-in { position: relative; background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r-lg); padding: .6rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .6s var(--ease), box-shadow .4s; }
.card:hover .card-in { transition: transform .1s linear, box-shadow .4s; box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--oat-2); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card-img img { transform: scale(1.08); }
.card-img .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--oat-3); }
.card-img .ph .ic { width: 56px; height: 56px; stroke-width: 1.2; }
.card-type { position: absolute; top: .7rem; inset-inline-start: .7rem; z-index: 2; background: rgba(250, 246, 238, .92); backdrop-filter: blur(8px); color: var(--forest); font-size: .78rem; font-weight: 600; padding: .25rem .8rem; border-radius: 99px; font-family: var(--display); }
.card-go { position: absolute; bottom: .7rem; inset-inline-end: .7rem; z-index: 2; width: 46px; height: 46px; border-radius: 50%; background: var(--tomato); color: #fff; display: grid; place-items: center; transform: scale(0) rotate(-45deg); transition: transform .45s var(--ease); }
.card:hover .card-go, .card:focus-visible .card-go { transform: none; }
.card-body { padding: 1rem .8rem .7rem; display: grid; gap: .4rem; flex: 1; align-content: start; }
.card-body h3 { font-size: 1.15rem; font-weight: 600; color: var(--forest); }
.card-body p { margin: 0; font-size: .9rem; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: .78rem; color: var(--muted); display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.card-meta span { background: var(--oat); padding: .15rem .7rem; border-radius: 99px; display: inline-flex; gap: .35rem; align-items: center; }
.card-meta .ic { width: 13px; height: 13px; }
.grid.feature { grid-template-columns: repeat(3, 1fr); }
.grid.feature .card:first-child { grid-column: span 2; grid-row: span 2; }
.grid.feature .card:first-child .card-img { aspect-ratio: auto; flex: 1; min-height: 340px; }
.grid.feature .card:first-child h3 { font-size: 1.7rem; font-weight: 800; }

/* كلمة الموقع */
.word { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.verse { font-family: var(--verse); font-size: clamp(1.7rem, 3.4vw, 2.7rem); line-height: 1.95; margin: 0; }
.verse small { display: flex; align-items: center; gap: .6rem; font-family: var(--body); font-size: .85rem; color: var(--sage); margin-top: 1rem; }
.verse small::before { content: ""; width: 32px; height: 2px; background: var(--tomato); }
.word-text { color: #d9e2d6; font-size: 1.08rem; }
.sign { display: flex; gap: .9rem; align-items: center; margin-top: 1.6rem; }
.sign .av { width: 52px; height: 52px; border-radius: 50%; background: var(--tomato); color: #fff; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; flex: none; }
.sign b { font-family: var(--display); display: block; }
.sign small { color: var(--sage); }

/* الخريطة */
.map { height: 480px; border-radius: var(--r-lg); overflow: hidden; border: 6px solid var(--paper); box-shadow: var(--shadow); background: var(--oat-2); z-index: 1; }
.map.small { height: 260px; border-width: 0; box-shadow: none; border-radius: var(--r); }
.pin { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--tomato); transform: rotate(-45deg); border: 3px solid #fff; box-shadow: 0 6px 14px rgba(21, 37, 28, .35); display: grid; place-items: center; transition: transform .25s var(--ease); transform-origin: 30% 70%; }
.pin::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.leaflet-marker-icon:hover .pin { transform: rotate(-45deg) scale(1.2); background: var(--forest); }
.leaflet-container { font-family: var(--body); background: var(--oat-2); }
.leaflet-tile-pane { filter: saturate(.8) sepia(.08); }
.leaflet-popup-content-wrapper { border-radius: var(--r); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-lg); padding: 0; overflow: hidden; }
.leaflet-popup-tip { background: var(--paper); }
.leaflet-popup-content { margin: 0; width: 220px !important; text-align: right; direction: rtl; }
.leaflet-popup-content img { width: 100%; height: 120px; object-fit: cover; }
.leaflet-popup-content div { padding: .8rem 1rem 1rem; }
.leaflet-popup-content strong { font-family: var(--display); color: var(--forest); display: block; line-height: 1.4; }
.leaflet-popup-content a { color: var(--tomato); font-family: var(--display); font-weight: 600; text-decoration: none; font-size: .85rem; }
.leaflet-container a.leaflet-popup-close-button { color: #fff; background: rgba(21, 37, 28, .6); border-radius: 50%; width: 26px; height: 26px; top: 8px; right: 8px; line-height: 24px; }
.leaflet-bar { border: 0 !important; box-shadow: var(--shadow) !important; border-radius: 14px !important; overflow: hidden; }
.leaflet-bar a { background: var(--paper) !important; color: var(--forest) !important; width: 38px !important; height: 38px !important; line-height: 38px !important; }

/* الأخبار */
.news { display: grid; }
.news a { display: grid; grid-template-columns: 150px 1fr auto; gap: 1.5rem; align-items: center; padding: 1.5rem 1.2rem; text-decoration: none; border-top: 1px solid var(--line); border-radius: var(--r); transition: background .3s, padding .4s var(--ease); }
.news a:last-child { border-bottom: 1px solid var(--line); }
.news a:hover { background: var(--paper); padding-inline: 2rem; border-color: transparent; }
.news a:hover + a { border-top-color: transparent; }
.news time { font-family: var(--display); font-size: .88rem; color: var(--muted); direction: ltr; text-align: right; }
.news h3 { font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 600; color: var(--forest); }
.news .go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .35s var(--ease); }
.news a:hover .go { background: var(--tomato); color: #fff; border-color: transparent; transform: rotate(45deg); }

/* دعوة للتواصل */
.cta { background: var(--tomato); color: #fff; border-radius: var(--r-xl); padding: clamp(2rem, 6vw, 4.5rem); display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); width: 360px; height: 360px; left: -90px; top: -150px; }
.cta::after { width: 560px; height: 560px; left: -190px; top: -250px; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(1.7rem, 3.8vw, 3rem); font-weight: 800; max-width: 15em; }
.cta p { margin: .8rem 0 0; opacity: .9; }

/* ------------------------------------------------ ترويسة الصفحات الداخلية */
.phead { padding: 9.5rem 0 2.5rem; }
.phead h1 { font-weight: 800; font-size: clamp(2.2rem, 5.6vw, 4.4rem); color: var(--forest); margin-top: 1rem; max-width: 16em; }
.phead p { color: var(--muted); max-width: 44em; margin: 1.2rem 0 0; font-size: 1.12rem; }
.crumbs { font-size: .85rem; color: var(--muted); display: inline-flex; gap: .5rem; flex-wrap: wrap; align-items: center; background: var(--paper); border: 1px solid var(--line); padding: .35rem 1rem; border-radius: 99px; }
.crumbs a { text-decoration: none; color: var(--forest); font-weight: 600; }
.crumbs a:hover { color: var(--tomato); }
.crumbs .ic { width: 12px; height: 12px; opacity: .5; }
.phead-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.chips-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1.4rem; }

/* فلاتر المشاريع */
.filters { display: grid; gap: 1rem; margin-bottom: 2rem; position: sticky; top: 84px; z-index: 20; background: rgba(241, 234, 221, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: .9rem; margin-inline: -.9rem; border-radius: var(--r-lg); }
.chips { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { border: 1px solid var(--line); background: var(--paper); padding: .5rem 1.05rem; cursor: pointer; font-size: .92rem; font-weight: 500; border-radius: 99px; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; transition: background .25s, color .25s, transform .25s var(--ease), border-color .25s; }
.chip small { font-size: .72rem; background: var(--oat-2); color: var(--muted); border-radius: 99px; padding: 0 .5rem; transition: .25s; }
.chip:hover { border-color: var(--forest); transform: translateY(-2px); }
.chip.on { background: var(--forest); color: var(--oat); border-color: var(--forest); }
.chip.on small { background: var(--tomato); color: #fff; }
.filter-row { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; }
.search { flex: 1 1 260px; position: relative; }
.search .ic { position: absolute; inset-inline-start: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input, .field, .filter-row select { border: 1px solid var(--line); background: var(--paper); padding: .8rem 1.2rem; border-radius: 99px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.search input { padding-inline-start: 3rem; }
.filter-row select { width: auto; cursor: pointer; }
.search input:focus, .filter-row select:focus, .field:focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 4px rgba(31, 67, 50, .12); }
.count { color: var(--muted); font-size: .92rem; margin-inline-start: auto; font-family: var(--display); }
.count b { color: var(--tomato); }
.empty { border: 2px dashed var(--oat-3); border-radius: var(--r-lg); padding: 3.5rem 1.5rem; text-align: center; color: var(--muted); display: grid; justify-items: center; gap: .8rem; }
.empty .ic { width: 48px; height: 48px; color: var(--oat-3); }

/* صفحة المشروع */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: .7rem; height: min(66vh, 600px); }
.mosaic button { padding: 0; border: 0; background: var(--oat-2); cursor: zoom-in; overflow: hidden; border-radius: var(--r-lg); position: relative; }
.mosaic button:first-child { grid-row: span 2; }
.mosaic.n1 { grid-template-columns: 1fr; } .mosaic.n2 { grid-template-rows: 1fr; } .mosaic.n2 button:first-child { grid-row: auto; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic button:hover img { transform: scale(1.05); }
.mosaic .more { position: absolute; inset: 0; background: rgba(19, 42, 31, .62); color: #fff; display: grid; place-items: center; align-content: center; gap: .3rem; font-family: var(--display); font-weight: 600; backdrop-filter: blur(2px); }
.mosaic .more b { font-size: 2rem; }
.pgrid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; margin-top: 2.5rem; }
.box { background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
.prose { font-size: 1.08rem; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose img { margin: 1.4rem auto; height: auto; border-radius: var(--r); }
.prose a { color: var(--tomato); font-weight: 600; text-underline-offset: 3px; }
.prose h3 { font-size: 1.2rem; color: var(--forest); margin: 1.8em 0 .7em; display: flex; align-items: center; gap: .6rem; }
.prose h3:first-child { margin-top: 0; }
.prose h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tomato); flex: none; }
.prose ul { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: .5rem; }
.prose li { position: relative; padding: .7rem 1rem; padding-inline-start: 2.9rem; background: var(--oat); border-radius: var(--r-sm); }
.prose li::before { content: ""; position: absolute; inset-inline-start: .9rem; top: .95rem; width: 20px; height: 20px; border-radius: 50%; background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f1eadd' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.side { position: sticky; top: 96px; display: grid; gap: 1rem; }
.facts { margin: 0; display: grid; gap: .2rem; }
.facts div { display: flex; gap: .9rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border: 0; padding-bottom: 0; } .facts div:first-child { padding-top: 0; }
.facts .ic { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: var(--oat-2); color: var(--forest); }
.facts dt { color: var(--muted); font-size: .8rem; }
.facts dd { margin: 0; font-weight: 600; font-family: var(--display); font-size: .95rem; }
.facts dd a { color: var(--forest); text-decoration: none; }
.facts dd a:hover { color: var(--tomato); }
.side .btn { justify-content: space-between; }
.sub { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; color: var(--forest); margin: 3rem 0 1.2rem; display: flex; align-items: center; gap: .8rem; }
.sub small { font-family: var(--display); font-weight: 600; font-size: .8rem; color: #fff; background: var(--tomato); border-radius: 99px; padding: .1rem .7rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .6rem; }
.gallery button { padding: 0; border: 0; background: var(--oat-2); cursor: zoom-in; aspect-ratio: 1; overflow: hidden; border-radius: var(--r); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery button::after { content: ""; position: absolute; inset: 0; background: var(--forest); opacity: 0; transition: opacity .3s; }
.gallery button:hover img { transform: scale(1.1); }
.gallery button:hover::after { opacity: .25; }
.tabs { display: flex; gap: .45rem; margin-bottom: 1rem; overflow-x: auto; scrollbar-width: none; padding-block: 2px; }
.tab-panel { animation: rise .5s var(--ease); }
.tab-panel .gallery { margin-top: 1.4rem; }

/* عارض الصور */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(13, 28, 21, .96); backdrop-filter: blur(8px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; color: var(--oat); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: .8rem; padding: 4.5rem .5rem 1.2rem; height: 100vh; height: 100dvh; grid-template-rows: 1fr auto; min-width: 0; touch-action: pan-y; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; min-height: 0; border-radius: var(--r-sm); animation: zoomin .35s var(--ease); }
@keyframes zoomin { from { opacity: 0; transform: scale(.96); } }
.lightbox figcaption { font-size: .85rem; font-family: var(--display); background: rgba(241, 234, 221, .12); padding: .2rem 1rem; border-radius: 99px; direction: ltr; }
.lb-nav, .lb-close { background: rgba(241, 234, 221, .1); border: 0; color: var(--oat); width: 52px; height: 52px; border-radius: 50%; cursor: pointer; margin: .8rem; display: grid; place-items: center; transition: background .25s, transform .25s var(--ease); }
.lb-nav:hover, .lb-close:hover { background: var(--tomato); transform: scale(1.08); }
.lb-close { position: absolute; top: .4rem; inset-inline-end: .4rem; }

/* من نحن */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.about-text p { font-size: 1.12rem; color: var(--muted); }
.about-text p:first-child { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-family: var(--display); font-weight: 600; line-height: 1.7; color: var(--forest); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.timeline li { background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r); padding: 1.2rem 1.4rem; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 0 1rem; transition: transform .4s var(--ease); }
.timeline li:hover { transform: translateX(-8px); }
.timeline .n { grid-row: span 3; width: 44px; height: 44px; border-radius: 50%; background: var(--forest); color: var(--oat); display: grid; place-items: center; font-family: var(--display); font-weight: 800; }
.timeline li:first-child .n { background: var(--tomato); color: #fff; }
.timeline small { color: var(--tomato); font-family: var(--display); font-weight: 600; font-size: .8rem; }
.timeline b { font-family: var(--display); color: var(--forest); font-size: 1.08rem; }
.timeline span { color: var(--muted); font-size: .93rem; }
.timeline a { color: var(--tomato); font-weight: 600; text-decoration: none; white-space: nowrap; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }

/* سجل الزوار والنماذج */
.gb { columns: 3 290px; column-gap: 1rem; }
.gb article { break-inside: avoid; background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r); padding: 1.3rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.gb article:hover { transform: translateY(-4px) rotate(-.4deg); }
.gb article.office { background: var(--forest); color: var(--oat); border-color: transparent; }
.gb p { margin: 0 0 1rem; white-space: pre-line; font-size: .98rem; }
.gb .who { display: flex; align-items: center; gap: .7rem; }
.gb .av { width: 38px; height: 38px; border-radius: 50%; background: var(--oat-2); color: var(--forest); display: grid; place-items: center; font-family: var(--display); font-weight: 800; flex: none; }
.gb .office .av { background: var(--tomato); color: #fff; }
.gb b { font-family: var(--display); font-size: .9rem; }
.form { display: grid; gap: 1rem; }
.form label { display: grid; gap: .4rem; font-size: .9rem; font-weight: 600; color: var(--forest); }
.form input, .form textarea { border: 1.5px solid transparent; background: var(--oat); padding: .9rem 1.1rem; width: 100%; border-radius: var(--r-sm); font-weight: 400; color: var(--ink); transition: border-color .2s, background .2s, box-shadow .2s; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--forest); background: #fff; box-shadow: 0 0 0 4px rgba(31, 67, 50, .1); }
.form textarea { min-height: 150px; resize: vertical; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form .hp { position: absolute; left: -9999px; }
.note { padding: .8rem 1.1rem; font-size: .95rem; border-radius: var(--r-sm); background: var(--oat-2); color: var(--forest); }
.note.err { background: #fbe1dc; color: #9b2513; }
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(1.2rem, 3vw, 2rem); align-items: start; }
.contact-list { display: grid; gap: .8rem; }
.contact-list > * { background: var(--paper); border: 1px solid rgba(255, 255, 255, .8); border-radius: var(--r); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); display: flex; align-items: center; gap: 1rem; text-decoration: none; transition: transform .35s var(--ease), background .3s, color .3s; }
.contact-list .ic { width: 48px; height: 48px; padding: 12px; border-radius: 14px; background: var(--oat-2); color: var(--forest); transition: .3s; }
.contact-list small { color: var(--muted); display: block; font-size: .8rem; transition: color .3s; }
.contact-list b { font-family: var(--display); font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { transform: translateX(-6px); background: var(--forest); color: var(--oat); }
.contact-list a:hover small { color: var(--sage); }
.contact-list a:hover .ic { background: var(--tomato); color: #fff; }
.toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translate(-50%, 200%); background: var(--forest-deep); color: var(--oat); padding: .8rem 1.4rem; border-radius: 99px; z-index: 95; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center; transition: transform .5s var(--ease); font-size: .95rem; max-width: calc(100% - 2rem); }
.toast.show { transform: translate(-50%, 0); }
.toast .ic { color: var(--tomato-2); }
.totop { position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--forest); color: var(--oat); cursor: pointer; display: grid; place-items: center; z-index: 40; box-shadow: var(--shadow-lg); transform: scale(0); transition: transform .4s var(--ease), background .25s; }
.totop.show { transform: none; }
.totop:hover { background: var(--tomato); }

/* ------------------------------------------------ التذييل */
.foot { background: var(--forest-deep); color: var(--sage); font-size: .95rem; margin-top: clamp(3rem, 7vw, 6rem); border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding: 4.5rem 0 2.5rem; }
.foot h3 { color: var(--oat); font-size: .95rem; font-weight: 600; margin-bottom: 1.1rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot a { text-decoration: none; transition: color .2s, padding .3s var(--ease); }
.foot ul a:hover { color: var(--oat); padding-inline-start: .5rem; }
.foot .brand { color: var(--oat); margin-bottom: 1.2rem; }
.foot .brand-text small { color: var(--sage); }
.socials { display: flex; gap: .5rem; margin-top: 1.2rem; }
.socials a { width: 44px; height: 44px; border-radius: 50%; background: rgba(241, 234, 221, .08); display: grid; place-items: center; color: var(--oat); transition: background .25s, transform .3s var(--ease); }
.socials a:hover { background: var(--tomato); transform: translateY(-4px); }
.foot-word { font-family: var(--display); font-weight: 800; font-size: clamp(5rem, 21vw, 18rem); line-height: 1.25; text-align: center; color: rgba(169, 189, 168, .09); user-select: none; margin-block: -.22em -.12em; white-space: nowrap; pointer-events: none; }
.foot-bottom { border-top: 1px solid var(--line-d); padding: 1.2rem 0; padding-inline-end: 4.2rem; position: relative; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }

/* ظهور عند التمرير */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.in { opacity: 1; transform: none; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .45s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ------------------------------------------------ الشاشات الصغيرة */
@media (max-width: 1040px) {
  .services, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid.feature { grid-template-columns: repeat(2, 1fr); }
  .word, .about, .contact, .pgrid { grid-template-columns: 1fr; }
  .side { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .chip3d, .drag-hint { display: none; }
  .values { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .top { padding-inline-start: 1rem; }
  .nav { position: fixed; inset: -14px calc((100vw - 100%) / -2) auto; height: 100vh; height: 100dvh; background: var(--forest-deep); flex-direction: column; justify-content: center; gap: .5rem; clip-path: circle(0 at 44px 44px); transition: clip-path .6s var(--ease); z-index: -1; visibility: hidden; }
  .nav.open { clip-path: circle(150% at 44px 44px); visibility: visible; }
  .nav a { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--oat); padding: .5rem 1.5rem; }
  .nav a:hover, .nav a.on { background: none; color: var(--tomato-2); }
  .nav .nav-cta { margin: 1.2rem 0 0; font-size: 1.1rem; color: #fff; }
  .top:has(.nav.open) { background: transparent; border-color: transparent; box-shadow: none; }
  .top:has(.nav.open) .brand { color: var(--oat); position: relative; z-index: 1; }
  .top:has(.nav.open) .brand-text small { color: var(--sage); }
  .burger { position: relative; z-index: 1; }
  /* الموبايل: النص في الأعلى، والمشهد ثلاثي الأبعاد في مساحته الخاصة تحته بدل أن يختفي خلف النص */
  .hero { height: 200vh; height: 200svh; }
  .hero-pin { display: flex; flex-direction: column; height: 100vh; height: 100svh; min-height: 640px; }
  .hero-shade { display: none; }
  .hero-copy { position: relative; inset: auto; top: auto; transform: none; width: auto; padding: 5.9rem 1.25rem 0; flex: none; z-index: 2; order: -1; }
  .hero h1 { font-size: clamp(2.1rem, 10.5vw, 2.9rem); margin-top: .8rem; }
  .hero-lead { font-size: .95rem; line-height: 1.75; margin: .7rem 0 1.1rem; }
  .hero .tag { font-size: .74rem; padding: .3rem .8rem; }
  .hero-actions { flex-wrap: nowrap; gap: .5rem; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; min-height: 48px; padding-inline: 1.1rem .35rem; font-size: .92rem; white-space: nowrap; justify-content: space-between; gap: .5rem; }
  .hero-actions .btn .btn-ic { width: 38px; height: 38px; }
  .hero canvas { position: relative; inset: auto; flex: 1 1 auto; min-height: 0; height: auto; width: 100%; touch-action: pan-y;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%); }
  .hero canvas { margin-bottom: 4.4rem; }
  .stages { inset-inline: 1.25rem; bottom: max(1rem, env(safe-area-inset-bottom)); justify-content: space-between; }
  .stages li { padding: .5rem .8rem; font-size: .8rem; flex: 1; justify-content: center; }
  .grid.feature { grid-template-columns: 1fr; }
  .grid.feature .card:first-child { grid-column: auto; grid-row: auto; }
  .grid.feature .card:first-child .card-img { aspect-ratio: 4 / 3; min-height: 0; }
  .grid.feature .card:first-child h3 { font-size: 1.3rem; }
  .form .two { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-nav { position: absolute; bottom: .6rem; }
  .lb-prev { inset-inline-start: .4rem; } .lb-next { inset-inline-end: .4rem; }
  .lightbox figure { padding-bottom: 5rem; }
  .map { height: 380px; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 62vh; }
  .mosaic button:first-child { grid-row: auto; grid-column: span 2; }
  .mosaic.n2 { grid-template-rows: 1fr 1fr; grid-template-columns: 1fr; } .mosaic.n2 button:first-child { grid-column: auto; }
  .news a { grid-template-columns: 1fr auto; gap: .3rem 1rem; }
  .news time { grid-column: 1 / -1; }
  .filters { top: 78px; }
  .card-go { transform: none; width: 40px; height: 40px; }
  .phead { padding-top: 7.5rem; }
}
@media (max-width: 860px) and (max-height: 760px) {
  /* شاشات الموبايل القصيرة: نختصر النص ليبقى للمشهد مساحة كافية */
  .hero-pin { min-height: 0; }
  .hero-copy { padding-top: 5.2rem; }
  .hero .tag { display: none; }
  .hero h1 { font-size: clamp(1.9rem, 9vw, 2.4rem); margin-top: 0; }
  .hero-lead { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: .5rem 0 .9rem; }
}
@media (max-width: 560px) {
  .services, .foot-grid { grid-template-columns: 1fr; }
  .service { min-height: 0; }
  .stats { gap: .7rem; } .stat { padding: 1.1rem; }
  .brand-text small { display: none; }
  .hero-actions .btn { font-size: .86rem; padding-inline-start: .9rem; }
  .cta .btn { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .rv { opacity: 1; transform: none; }
  .hero { height: auto; }
  .hero-pin { position: relative; }
}
