/* site.css
   Styles for the whole main site: layout, components, dark theme, RTL, motion.
   (c) i2d Technologies */
/* NOTES
   Palette: primary #0b4c76 (headlines), secondary #636363 (supporting), light surfaces.
   Logical properties throughout so the same file serves LTR (EN) and RTL (AR).
*/

:root {
  --primary: #0b4c76;
  --brand: #0b4c76;
  --brand-deep: #083a5a;
  --shine: rgba(11, 76, 118, .2);
  --glow: var(--glow);
  --header-bg: rgba(251, 252, 253, .86);
  --dock-bg: rgba(255, 255, 255, .92);
  --secondary: #636363;
  --bg: #fbfcfd;
  --surface: #ffffff;
  --tint: #f1f6fa;
  --line: #e2e9ef;
  --line-strong: rgba(11, 76, 118, .22);
  --field: #2f2f2f;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(11, 76, 118, .06), 0 12px 32px -16px rgba(11, 76, 118, .18);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --header-h: 120px;
  color-scheme: light;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html[lang="ar"] { --font: "IBM Plex Sans Arabic", "Manrope", system-ui, "Segoe UI", Tahoma, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.7;
  color: var(--secondary); background: var(--bg); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[lang="ar"] body { line-height: 1.95; }
html[lang="ar"] *, html[lang="ar"] *::before, html[lang="ar"] *::after { letter-spacing: 0 !important; text-transform: none !important; }

img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .6em; color: var(--primary); font-weight: 700; line-height: 1.18; letter-spacing: -.015em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.4; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
.wrap.narrow { width: min(820px, 100% - 48px); }
.center { text-align: center; }

.i { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.arrow, .dir-flip { transition: transform .3s var(--ease); }
[dir="rtl"] .arrow, [dir="rtl"] .dir-flip { transform: scaleX(-1); }

/* ---- HEADER ---- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: var(--header-bg); backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(11, 76, 118, .35); }
.site-header .wrap { width: min(1480px, 100% - 48px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; min-width: 0; flex: 0 1 auto; }
.brand img { height: 95px; width: auto; max-width: 100%; object-fit: contain; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--secondary);
  font-weight: 600; font-size: .95rem; transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--primary); background: var(--tint); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--primary); background: var(--tint); }
.header-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.header-tools .motion-state { display: none; }
.header-tools .tool-btn { padding: 9px 11px; }
.main-nav { flex: 0 0 auto; }
@media (min-width: 961px) and (max-width: 1279px) {
  .main-nav a { padding: 8px 8px; font-size: .86rem; }
  .header-inner { gap: 10px; }
  .header-tools .btn { padding: 9px 14px; font-size: .86rem; }
  .lang-btn span { display: none; }
}

.tool-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--secondary);
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; line-height: 1.2;
  transition: border-color .2s, color .2s, background .2s;
}
.tool-btn:hover { border-color: var(--line-strong); color: var(--primary); text-decoration: none; }
.logo-dark { display: none; }
html[data-theme="dark"] .logo-light { display: none; }
html[data-theme="dark"] .logo-dark { display: block; }
.theme-toggle .ic-sun { display: none; }
html[data-theme="dark"] .theme-toggle .ic-sun { display: inline-block; }
html[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
.motion-state::before { content: attr(data-off); }
html[data-motion="full"] .motion-state::before { content: attr(data-on); }

/* ---- BUTTONS ---- */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; font: inherit; font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; position: relative; overflow: hidden;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { text-decoration: none; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn-sm { padding: 10px 18px; font-size: .9rem; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(11, 76, 118, .6); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--primary); background: var(--tint); }
.btn-light { background: #fff; color: #0b4c76; }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -14px rgba(0, 0, 0, .5); }

/* Shine sweep on outlines: class toggled on an interval by site.js */
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, var(--shine) 50%, transparent 62%);
  transform: translateX(-130%);
}
.shine.is-shining::after { animation: shine 1.1s var(--ease) 1; }
[dir="rtl"] .shine::after { transform: translateX(130%); background: linear-gradient(255deg, transparent 38%, var(--shine) 50%, transparent 62%); }
[dir="rtl"] .shine.is-shining::after { animation-name: shine-rtl; }
@keyframes shine { 0% { transform: translateX(-130%); opacity: 1; } 100% { transform: translateX(130%); opacity: 1; } }
@keyframes shine-rtl { 0% { transform: translateX(130%); opacity: 1; } 100% { transform: translateX(-130%); opacity: 1; } }

/* ---- TYPOGRAPHY ---- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--primary);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--primary); border-radius: 2px; }
.eyebrow a { color: inherit; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 62ch; }
.center .lead { margin-inline: auto; }
.meta { font-size: .88rem; color: var(--secondary); margin: 0; }
.tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); }
.more:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .more:hover .arrow { transform: scaleX(-1) translateX(4px); }

/* ---- HERO (slider) ---- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(48px, 7vw, 96px); position: relative; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset-inline-end: -12vw; top: -10vw; width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(32px, 6vw, 88px); align-items: center; position: relative; }
.hero-title { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .45em; }
.slides { display: grid; }
.slide {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), visibility 0s linear .6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.center-actions { justify-content: center; }
.slider-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 36px; }
.dots { display: flex; gap: 10px; }
.dot { width: 44px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-items: center; }
.dot span { display: block; height: 4px; border-radius: 4px; background: var(--line-strong); position: relative; overflow: hidden; }
.dot span::after { content: ""; position: absolute; inset: 0; background: var(--primary); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .dot span::after { transform-origin: right; }
.dot.is-active span::after { transform: scaleX(1); }
.slider.is-playing .dot.is-active span::after { animation: dotfill var(--slide-ms, 7000ms) linear forwards; }
.slider.is-paused .dot.is-active span::after { animation-play-state: paused; }
@keyframes dotfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.arrows { display: flex; gap: 8px; }
.arrows .tool-btn { padding: 10px; }

.hero-media { position: relative; max-width: 480px; justify-self: center; width: 100%; }
.hero-media::before {
  content: ""; position: absolute; inset-block: 22px -18px; inset-inline: 22px -18px;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-lg); z-index: 0;
}
.portrait { position: relative; z-index: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--tint); aspect-ratio: 5 / 6; box-shadow: var(--shadow); }
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.portrait.small { aspect-ratio: 4 / 5; }
.badge {
  position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; margin: -34px 18px 0;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow); color: var(--primary); font-weight: 700; font-size: .86rem; line-height: 1.4;
}
.badge .i { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--brand); color: #fff; stroke-width: 2.4; }

/* ---- STATS ---- */
.stats { border-block: 1px solid var(--line); background: var(--surface); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 24px; display: flex; flex-direction: column; gap: 6px; border-inline-start: 1px solid var(--line); }
.stat:first-child { border-inline-start: 0; }
.stat strong { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--primary); line-height: 1; }
.stat span { font-size: .92rem; line-height: 1.45; }

/* ---- SECTIONS ---- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.tint { background: var(--tint); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head.row > div { max-width: 720px; }
.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(24px, 4vw, 48px); }
.page-head h1 { max-width: 20ch; }
html[lang="ar"] .page-head h1 { max-width: 24ch; }
.page-head .lead { margin-top: 8px; }
.scope-note { display: flex; gap: 12px; align-items: flex-start; max-width: 62ch; margin: 22px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-inline-start: 3px solid var(--primary); border-radius: 12px; background: var(--surface); font-size: .96rem; }
.scope-note .i { color: var(--primary); margin-top: 4px; }

.big-quote { font-size: clamp(1.5rem, 3.4vw, 2.5rem); font-weight: 700; line-height: 1.25; color: var(--primary); letter-spacing: -.02em; margin-bottom: .7em; }
html[lang="ar"] .big-quote { line-height: 1.55; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card h3 a { color: inherit; }
.card h3 a:hover { text-decoration: none; }
.card > p:last-child { margin-bottom: 0; }
.service { display: flex; flex-direction: column; }
.service .more { margin-top: auto; padding-top: 8px; }
.num { display: inline-block; margin-bottom: 18px; font-weight: 800; font-size: .85rem; letter-spacing: .12em; color: var(--primary); opacity: .55; }
.insight.is-soon { background: transparent; border-style: dashed; }
.insight.is-soon:hover { transform: none; box-shadow: none; }
.soon { padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--secondary); font-size: .72rem; letter-spacing: .04em; text-transform: none; }

/* ---- PROPTECH PANEL ---- */
.panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--surface), var(--tint)); }
.panel-list { display: grid; gap: 12px; }
.panel-list li, .check-list li, .svc-points li { display: flex; gap: 12px; align-items: flex-start; }
.panel-list li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--primary); font-weight: 600; line-height: 1.4; }
.panel-list .i, .check-list .i, .svc-points .i { color: var(--primary); margin-top: 3px; stroke-width: 2.4; }
.check-list { display: grid; gap: 14px; margin-top: 18px; }

/* ---- APPROACH (steps) ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding-top: 22px; border-top: 2px solid var(--line-strong); position: relative; }
.steps.stacked { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
.steps.stacked li { padding: 0 0 0 0; border: 0; padding-inline-start: 58px; min-height: 44px; }
.step-n { font-weight: 800; color: var(--primary); font-size: .85rem; letter-spacing: .1em; display: block; margin-bottom: 8px; }
.steps.stacked .step-n { position: absolute; inset-inline-start: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin: 0; letter-spacing: 0; }
.steps h3 { margin-bottom: .35em; }
.steps p { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); }

/* ---- SERVICE LIST ---- */
.svc-list { display: grid; }
.svc { display: grid; grid-template-columns: 72px 1.3fr 1fr; gap: 28px; padding: 40px 0; border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc-n { font-weight: 800; color: var(--primary); opacity: .45; font-size: 1.1rem; }
.svc-main h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: .45em; }
.svc-points { display: grid; gap: 10px; align-content: start; }

/* ---- AREAS ---- */
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.area { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.area:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.area:nth-child(5) { grid-column: 1 / -1; }
.area p { margin: 0; }

/* ---- ABOUT BLOCKS ---- */
.about-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.block { padding: 0 0 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.block:last-child { border: 0; margin: 0; padding: 0; }
.block h2 { font-size: 1.35rem; }
.block p { margin: 0; }
.about-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.years { display: flex; align-items: baseline; gap: 12px; margin-top: 22px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.years strong { font-size: 2.6rem; font-weight: 800; color: var(--primary); line-height: 1; }
.timeline { display: grid; gap: 0; max-width: 900px; border-inline-start: 2px solid var(--line-strong); margin-inline-start: 8px; }
.timeline li { position: relative; display: grid; grid-template-columns: 170px 1fr; gap: 24px; padding: 0 0 36px; padding-inline: 28px 0; }
.timeline li::before { content: ""; position: absolute; inset-inline-start: -8px; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); }
.tint .timeline li::before { background: var(--tint); }
.t-date { font-weight: 700; color: var(--primary); font-size: .92rem; padding-top: 2px; }
.t-body h3 { margin-bottom: .3em; }
.t-body h3 small { display: block; font-size: .88rem; font-weight: 600; color: var(--secondary); margin-top: 4px; }
.t-body p { margin: 0; }

/* ---- FAQ LIST ---- */
.faq-list { display: grid; gap: 12px; margin-top: 24px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .25s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 700; color: var(--primary); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; font-weight: 500; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; margin: 0; }

/* ---- CALL TO ACTION ---- */
.cta-section { padding-block: clamp(48px, 7vw, 96px); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 64px); border-radius: var(--radius-lg); color: rgba(255, 255, 255, .82);
  background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .1), transparent 55%), var(--brand);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; max-width: 24ch; }
.cta-band p { margin: 0; max-width: 56ch; }

/* ---- MEDIA GRID (hooks: data-gallery, data-filter, data-lightbox) ---- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--primary); font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--tint); }
.chip.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, box-shadow .4s, transform .4s var(--ease); }
.shot:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.shot[hidden] { display: none; }
.shot a { display: block; overflow: hidden; cursor: zoom-in; }
.shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); transition: transform .8s var(--ease); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { display: grid; gap: 6px; padding: 20px 22px 24px; font-size: .94rem; line-height: 1.55; }
.shot figcaption strong { color: var(--primary); font-size: 1.02rem; line-height: 1.35; }
.media-teaser .shot figcaption { padding: 16px 20px; }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 20px; background: rgba(6, 30, 47, .94); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; display: grid; gap: 16px; justify-items: center; min-width: 0; }
.lightbox img { max-height: 74vh; width: auto; max-width: 100%; object-fit: contain; border-radius: 12px; background: #0000; }
.lightbox figcaption { display: grid; gap: 6px; text-align: center; color: rgba(255, 255, 255, .78); max-width: 70ch; font-size: .95rem; }
.lightbox figcaption strong { color: #fff; font-size: 1.1rem; }
.lightbox .tool-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; padding: 12px; }
.lb-close { position: absolute; top: 16px; inset-inline-end: 16px; }
.lb-prev { grid-column: 1; }
.lb-next { grid-column: 3; }

/* ---- ARTICLE and LATEST INSIGHTS ---- */
.prose { font-size: 1.12rem; padding-bottom: 24px; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 24px; border-inline-start: 3px solid var(--primary); color: var(--primary); font-size: 1.25rem; font-weight: 600; }
.prose ul { list-style: disc; padding-inline-start: 1.4em; margin-bottom: 1em; }
.author-box { display: flex; gap: 16px; align-items: center; padding: 20px 24px; margin: 24px 0 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.author-box img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--tint); }
.author-box strong { display: block; color: var(--primary); }
.author-box span { font-size: .92rem; }

/* ---- CONTACT (hooks: data-btn-label, data-sending) ---- */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px; align-items: start; }
.contact-side { display: grid; gap: 24px; }
.contact-side .card:hover, .form.card:hover { transform: none; box-shadow: none; }
.social-list { display: grid; gap: 10px; margin: 14px 0 18px; }
.social-list a { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; }
.form { padding: clamp(24px, 4vw, 40px); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > span { font-size: .88rem; font-weight: 700; color: var(--primary); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg);
  color: var(--field); font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(11, 76, 118, .12); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 0 0 20px; padding: 14px 18px; border-radius: 12px; font-weight: 600; }
.notice[hidden] { display: none; }
.notice.ok { background: #e8f4ec; color: #1d5a33; border: 1px solid #b9dcc6; }
.notice.bad { background: #fdecea; color: #8c1d18; border: 1px solid #f1c1bd; }

/* ---- FOOTER ---- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand p { max-width: 38ch; margin-top: 16px; font-size: .96rem; }
.footer-h { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer-list { display: grid; gap: 10px; }
.footer-list a { color: var(--secondary); font-weight: 500; }
.footer-list a:hover { color: var(--primary); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .86rem; }

/* ---- DOCK and DRAWER (hooks: data-drawer-open, data-drawer-close) ---- */
.dock, .drawer { display: none; }
.drawer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.drawer-links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); color: var(--primary); font-weight: 700; background: var(--surface); }
.drawer-links a[aria-current="page"] { background: var(--tint); border-color: var(--line-strong); }
.drawer-links a:hover { text-decoration: none; }

@media (max-width: 960px) {
  :root { --header-h: 112px; }
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .main-nav, .header-tools .btn, .header-tools .motion-toggle { display: none; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 360px; order: -1; }
  .hero-media::before { inset-block: 14px -12px; inset-inline: 14px -12px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid-3, .grid-2, .areas, .two-col, .panel, .about-grid, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .svc { grid-template-columns: 1fr; gap: 14px; padding: 32px 0; }
  .area:nth-child(5) { grid-column: auto; }
  .about-aside { position: static; max-width: 360px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .lightbox { grid-template-columns: 1fr; padding: 12px; }
  .lb-nav { position: absolute; bottom: 20px; }
  .lb-prev { inset-inline-start: 20px; }
  .lb-next { inset-inline-end: 20px; }
  .lightbox figure { padding-bottom: 64px; }

  .dock {
    position: fixed; z-index: 120; inset-inline: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; gap: 2px;
    background: var(--dock-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 40px -16px rgba(11, 76, 118, .4);
  }
  .dock a, .dock button {
    display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 2px 7px; border: 0; background: none;
    border-radius: 18px; color: var(--secondary); font: inherit; font-size: .68rem; font-weight: 700; cursor: pointer; line-height: 1.2;
    text-align: center; transition: background .25s, color .25s;
  }
  .dock .i { width: 22px; height: 22px; }
  .dock a:hover { text-decoration: none; }
  .dock a[aria-current="page"] { color: var(--primary); background: var(--tint); }

  .drawer { display: block; position: fixed; inset: 0; z-index: 250; }
  .drawer[hidden] { display: none; }
  .drawer-scrim { position: absolute; inset: 0; background: rgba(6, 30, 47, .5); opacity: 0; transition: opacity .35s; }
  .drawer-sheet {
    position: absolute; inset-inline: 0; bottom: 0; max-height: 88vh; overflow: auto; outline: none;
    padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); background: var(--bg);
    border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px -20px rgba(6, 30, 47, .5);
    transform: translateY(100%); transition: transform .45s var(--ease);
  }
  .drawer.is-open .drawer-scrim { opacity: 1; }
  .drawer.is-open .drawer-sheet { transform: none; }
  .drawer-handle { width: 44px; height: 5px; border-radius: 5px; background: var(--line-strong); margin: 0 auto 14px; }
  .drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; color: var(--primary); font-size: 1.1rem; }
  .drawer-actions { display: grid; gap: 12px; margin-top: 18px; }
  .drawer-actions .btn { width: 100%; }
  .drawer-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .drawer-row .tool-btn { justify-content: center; padding: 12px; }
}
@media (max-width: 560px) {
  .wrap, .wrap.narrow { width: min(100%, 100% - 36px); }
  .steps { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .cta-band .btn { width: 100%; }
  .drawer-links { grid-template-columns: 1fr; }
  .stat { padding: 24px 16px; }
}
@media (min-width: 961px) { .lang-btn span { display: inline; } }

/* ---- REVEAL (hook: data-reveal) ---- */
.js [data-reveal] { opacity: 0; transition: opacity .9s var(--ease) var(--d, 0ms), transform .9s var(--ease) var(--d, 0ms), clip-path 1.1s var(--ease) var(--d, 0ms); will-change: opacity, transform; }
.js [data-reveal="up"] { transform: translateY(30px); }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="wipe"] { opacity: 1; clip-path: inset(0 100% 0 0); }
html[dir="rtl"].js [data-reveal="wipe"] { clip-path: inset(0 0 0 100%); }
html[dir="rtl"].js [data-reveal="wipe"].in { clip-path: inset(0 0 0 0); } /* RTL wipe start state must not outrank the revealed state */
.js [data-reveal].in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }
.js .card[data-reveal].in, .js .area[data-reveal].in { transition: opacity .9s var(--ease) var(--d, 0ms), transform .4s var(--ease), border-color .3s, box-shadow .4s, clip-path 1.1s var(--ease); }

/* Reduced mode: quiet fades only, no autoplay, no sweep. Visitors can switch Motion back on. */
html[data-motion="reduced"] [data-reveal] { transform: none !important; clip-path: none !important; transition: opacity .3s linear !important; transition-delay: 0ms !important; }
html.js[data-motion="reduced"] [data-reveal="wipe"] { opacity: 0; }
html.js[data-motion="reduced"] [data-reveal="wipe"].in { opacity: 1; }
html[data-motion="reduced"] .shine::after { display: none; }
html[data-motion="reduced"] .slide { transform: none; transition: opacity .3s linear, visibility 0s linear .3s; }
html[data-motion="reduced"] .slide.is-active { transition-delay: 0s; }
html[data-motion="reduced"] .dot.is-active span::after { animation: none !important; }
html[data-motion="reduced"] .card:hover, html[data-motion="reduced"] .area:hover, html[data-motion="reduced"] .btn:hover { transform: none; }
html[data-motion="reduced"] .shot:hover img { transform: none; }
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] .drawer-sheet { transition-duration: .01s; }

/* ---- DARK THEME (html[data-theme="dark"]; headlines use a lighter tint of #0b4c76 for contrast) ---- */
html[data-theme="dark"] {
  color-scheme: dark;
  --primary: #8cc3e8; --brand: #1a6aa0; --brand-deep: #15598a;
  --secondary: #a8b3bc; --bg: #0b141b; --surface: #111e28; --tint: #0e1a23;
  --line: #213340; --line-strong: rgba(140, 195, 232, .3); --field: #e7eef3;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --shine: rgba(140, 195, 232, .3); --glow: rgba(110, 170, 215, .12);
  --header-bg: rgba(11, 20, 27, .86); --dock-bg: rgba(17, 30, 40, .92);
}
html[data-theme="dark"] .notice.ok { background: #12301f; color: #a8e0bb; border-color: #24543a; }
html[data-theme="dark"] .notice.bad { background: #35171a; color: #f4b6b1; border-color: #6b2a2e; }
html[data-theme="dark"] .field input::placeholder, html[data-theme="dark"] .field textarea::placeholder { color: #6f7c86; }
html[data-theme="dark"] .portrait, html[data-theme="dark"] .shot img { filter: brightness(.94); }

/* ---- PRELOADER (home page, every visit; class set in <head>, cleared by site.js) ---- */
.preloader { display: none; }
html.preload .preloader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 28px;
  background: var(--bg); transition: opacity .6s var(--ease), visibility .6s;
  animation: pl-failsafe .01s linear 5s forwards; /* if JS never runs, the loader still gets out of the way */
}
html.pl-out .preloader { opacity: 0; visibility: hidden; }
.preloader img { height: clamp(70px, 14vw, 110px); width: auto; max-width: 72vw; object-fit: contain; animation: pl-logo 1s var(--ease) both; }
.pl-line { position: relative; display: block; width: clamp(120px, 22vw, 180px); height: 2px; border-radius: 2px; background: var(--line-strong); overflow: hidden; }
.pl-line::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; animation: pl-line 1.1s var(--ease) .35s forwards; }
html[data-theme="dark"] .pl-line::after { background: var(--primary); }
[dir="rtl"] .pl-line::after { transform-origin: right; }
@keyframes pl-logo { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes pl-line { to { transform: scaleX(1); } }
@keyframes pl-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; z-index: -1; } }

/* ---- HERO MOCKUP (decorative; built from theme variables so dark and RTL just work) ---- */
.page-head.has-mock .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.page-head.has-mock { padding-bottom: clamp(40px, 6vw, 72px); overflow-x: clip; }
.js .mock[data-reveal].in { clip-path: none; } /* the reveal's inset(0) clip would cut the floating chips */
.mock { position: relative; width: 100%; max-width: 540px; justify-self: end; padding-block: 6px 22px; }
.mock::before { content: ""; position: absolute; inset: -8% -6% -4%; border-radius: 40px; background: radial-gradient(60% 60% at 50% 45%, var(--glow), transparent 72%); z-index: 0; }
.mock-win { position: relative; z-index: 1; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--tint); font-size: .78rem; line-height: 1; color: var(--secondary); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.mock-bar span { margin-inline-start: 10px; font-weight: 700; color: var(--primary); }
.mock-bar em { margin-inline-start: auto; font-style: normal; font-size: .7rem; opacity: .8; }
.mock-body { padding: 20px 22px 22px; display: grid; gap: 18px; }
.mock-float { position: absolute; z-index: 2; inset-inline-end: -14px; bottom: 0; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 700; box-shadow: 0 14px 30px -14px rgba(11, 76, 118, .7); animation: mock-bob 5.5s ease-in-out infinite; }
.mock-float.f2 { inset-inline-end: auto; inset-inline-start: -14px; animation-delay: -2.2s; }
.mock-float .i { width: 1.05em; height: 1.05em; }
@keyframes mock-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.chip-s { display: inline-flex; align-items: center; gap: 6px; min-width: 54px; min-height: 28px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: .76rem; font-weight: 600; color: var(--primary); }
.chip-s.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-s .i { width: 1em; height: 1em; }
.mock-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Consulting: roadmap */
.gantt { display: grid; gap: 14px; }
.g-row { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 12px; font-size: .8rem; font-weight: 600; color: var(--primary); }
.g-track { position: relative; display: block; height: 16px; border-radius: 8px; background: var(--tint); }
.g-track b { position: absolute; inset-block: 0; inset-inline-start: var(--s); width: var(--w); border-radius: 8px; background: var(--brand); opacity: calc(1 - var(--i) * .18); transform-origin: left center; transition: transform 1s var(--ease) calc(.5s + var(--i) * .15s); }
[dir="rtl"] .g-track b { transform-origin: right center; }
.js .mock:not(.in) .g-track b { transform: scaleX(0); }

/* PropTech: dashboard */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis div { padding: 12px 12px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); display: grid; gap: 2px; }
.kpis strong { font-size: 1.3rem; line-height: 1.1; font-weight: 800; color: var(--primary); }
.kpis span { font-size: .7rem; line-height: 1.3; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; padding: 10px 12px 0; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.bars b, .mini-chart b { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--primary), var(--brand)); opacity: .85; transform-origin: bottom; transition: transform .9s var(--ease) calc(.4s + var(--i, 0) * .08s); }
.js .mock:not(.in) .bars b, .js .mock:not(.in) .mini-chart b { transform: scaleY(0); }
.reqs { display: grid; gap: 8px; }
.reqs li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .82rem; font-weight: 600; color: var(--primary); }
.reqs .av { width: 24px; height: 24px; border-radius: 50%; background: var(--tint); border: 1px solid var(--line-strong); flex: none; }
.reqs .rt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { padding: 3px 10px; border-radius: 999px; font-size: .68rem; font-weight: 700; white-space: nowrap; background: var(--tint); color: var(--primary); border: 1px solid var(--line-strong); }
.pill.p-a { background: var(--brand); color: #fff; border-color: var(--brand); }
.pill.p-c { color: #1f7a4d; border-color: rgba(31, 122, 77, .35); background: rgba(31, 122, 77, .08); }
html[data-theme="dark"] .pill.p-c { color: #7fd1a3; border-color: rgba(127, 209, 163, .35); background: rgba(127, 209, 163, .1); }

/* Insights: article */
.m-tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--tint); border: 1px solid var(--line-strong); font-size: .72rem; font-weight: 700; color: var(--primary); }
.m-title { font-size: 1.35rem; line-height: 1.25; font-weight: 800; color: var(--primary); letter-spacing: -.01em; }
html[lang="ar"] .m-title { line-height: 1.5; }
.m-meta { display: flex; align-items: center; gap: 8px; font-size: .78rem; margin-top: -6px; }
.sk { display: grid; gap: 9px; }
.sk i { display: block; height: 9px; width: var(--w); border-radius: 6px; background: var(--line); }
.mini-chart { display: flex; align-items: flex-end; gap: 9px; height: 70px; padding: 8px 12px 0; border-radius: 14px; background: var(--tint); }

/* Media: mosaic */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 64px; gap: 8px; }
.mosaic span { display: grid; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--primary)); opacity: calc(.95 - var(--i) * .08); }
.mosaic .t1 { grid-row: span 2; } .mosaic .t4 { grid-column: span 2; } .mosaic .t3 { background: linear-gradient(135deg, var(--primary), var(--line-strong)); }
.mosaic .t7 { background: linear-gradient(135deg, var(--line-strong), var(--brand)); }
.mosaic .t5 { background: var(--tint); border: 1px solid var(--line-strong); } .mosaic .t6 { background: linear-gradient(160deg, var(--brand-deep), var(--brand)); }
.mosaic .i { width: 1.6em; height: 1.6em; }

/* Contact: scheduler */
.m-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; }

@media (max-width: 960px) {
  .page-head.has-mock .wrap { grid-template-columns: 1fr; gap: 36px; }
  .mock { justify-self: center; max-width: 520px; }
  .mock-float { inset-inline-end: 8px; }
  .mock-float.f2 { inset-inline-start: 8px; }
}
@media (max-width: 560px) {
  .mock-body { padding: 16px; }
  .g-row { grid-template-columns: 58px 1fr; }
  .m-title { font-size: 1.15rem; }
}

/* PropTech: service-bot chat, three scenarios in one window (hooks: data-scn, data-scn-panel; switched by site.js section 11) */
.scn-tabs { margin-top: -2px; }
.scn-tabs .chip-s { cursor: pointer; }
.scns { display: grid; }
.scns > .scn { grid-area: 1 / 1; visibility: hidden; align-content: start; }
.scns > .scn.is-on { visibility: visible; }
.scn.is-on .msg { animation: msgIn .5s var(--ease) both; animation-delay: calc(.35s + var(--i) * .7s); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
html[data-motion="reduced"] .scn.is-on .msg { animation: none; }
/* PropTech: service-bot chat simulation (messages appear in sequence once revealed) */
.chat { gap: 14px; }
.bot-h { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bot-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; }
.bot-h strong { display: block; font-size: .92rem; line-height: 1.2; color: var(--primary); }
.bot-h em { display: block; font-style: normal; font-size: .72rem; line-height: 1.3; }
.bot-h em::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: #2fa66a; }
.msgs { display: grid; gap: 10px; }
.msg { margin: 0; max-width: 84%; padding: 10px 14px; border-radius: 16px; font-size: .86rem; line-height: 1.5; opacity: 1; transform: none; transition: opacity .5s var(--ease) calc(.5s + var(--i) * .75s), transform .5s var(--ease) calc(.5s + var(--i) * .75s); }
.msg.me { justify-self: end; background: var(--brand); color: #fff; border-end-end-radius: 5px; }
.msg.bot { justify-self: start; background: var(--tint); color: var(--primary); border: 1px solid var(--line); border-end-start-radius: 5px; }
.js .mock:not(.in) .msg { opacity: 0; transform: translateY(8px); }
.ticket { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 12px; background: var(--surface); border-color: var(--line-strong); }
.ticket .tk-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(31, 122, 77, .12); color: #1f7a4d; flex: none; }
html[data-theme="dark"] .ticket .tk-i { background: rgba(127, 209, 163, .14); color: #7fd1a3; }
.ticket strong { display: block; font-size: .82rem; line-height: 1.3; }
.ticket span:not(.tk-i) { display: block; font-size: .74rem; line-height: 1.4; color: var(--secondary); }
.typing { display: inline-flex; gap: 5px; padding: 12px 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .45; animation: typing 1.2s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: 1; } }
.composer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .8rem; color: var(--secondary); background: var(--bg); }
.composer b { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; }
/* ---- AREA MOCKUPS (PropTech page: small illustrative UI inside each area card; hook: .area.in from data-reveal) ---- */
.aui { position: relative; margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--tint); }
.aui-tag { position: absolute; inset-block-start: 8px; inset-inline-end: 12px; font-style: normal; font-size: .64rem; color: var(--secondary); opacity: .8; }
.aui-cap { margin: 12px 0 0 !important; font-size: .76rem; color: var(--secondary); }
.flow { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--primary); font-size: .78rem; font-weight: 600; animation: fnPulse 6s infinite; animation-delay: calc(var(--i) * 1.1s); }
.fn .i { width: 1em; height: 1em; color: #1f7a4d; }
@keyframes fnPulse { 0%, 22%, 100% { background: var(--surface); } 6%, 16% { background: var(--brand); color: #fff; } 6%, 16% { border-color: var(--brand); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.kpi { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.kpi span { display: block; font-size: .68rem; color: var(--secondary); }
.kpi strong { display: block; font-size: .95rem; color: var(--primary); line-height: 1.3; }
.abars { display: flex; align-items: flex-end; gap: 6px; height: 44px; margin-top: 12px; }
.abars b { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: var(--brand); opacity: .75; transform-origin: bottom; transition: transform .8s var(--ease); }
.js .area:not(.in) .abars b { transform: scaleY(0); }
.aq { margin: 10px 0 0 !important; padding: 9px 13px; border-radius: 14px; border-end-start-radius: 4px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); font-size: .82rem; }
.atags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.at { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; background: rgba(11, 76, 118, .1); color: var(--primary); font-size: .72rem; font-weight: 600; transition: opacity .5s var(--ease) calc(.3s + var(--i) * .35s), transform .5s var(--ease) calc(.3s + var(--i) * .35s); }
.at.human { background: rgba(31, 122, 77, .12); color: #1f7a4d; }
.at .i { width: 1em; height: 1em; }
.js .area:not(.in) .at { opacity: 0; transform: translateY(6px); }
.hub { display: grid; gap: 10px; justify-items: center; margin-top: 10px; }
.hub-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; position: relative; padding-bottom: 16px; }
.hub-in::after { content: ""; position: absolute; inset-inline: 18%; bottom: 0; height: 16px; border: 1.5px solid var(--line-strong); border-top: 0; border-radius: 0 0 10px 10px; }
.hn { padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--primary); font-size: .76rem; font-weight: 600; }
.hub-out { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 12px; background: var(--brand); color: #fff; font-size: .8rem; font-weight: 700; }
.hub-out .i { width: 1.1em; height: 1.1em; }
.road { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.rs { display: grid; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--secondary); }
.rs i { display: block; height: 6px; border-radius: 99px; background: var(--line-strong); position: relative; overflow: hidden; }
.rs.on { color: var(--primary); }
.rs.on i { background: var(--brand); }
.js .area:not(.in) .rs.on i { opacity: .25; }
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; } .road { grid-template-columns: 1fr 1fr; } }
html[data-motion="reduced"] .fn { animation: none; }
html[data-theme="dark"] .at { background: rgba(127, 178, 214, .16); }
html[data-theme="dark"] .at.human { background: rgba(127, 209, 163, .14); color: #7fd1a3; }
html[data-theme="dark"] .fn .i { color: #7fd1a3; }
/* ---- CHAT ASSISTANT (hooks: data-chat, data-chat-open, data-chat-close, data-chat-restart; .cw-float on every page, .cw-inline on /contact) ---- */
.cw-fab { position: fixed; z-index: 90; inset-inline-end: 24px; bottom: 24px; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; cursor: pointer; box-shadow: 0 14px 34px -10px rgba(11, 76, 118, .55); transition: transform .3s var(--ease), box-shadow .3s; }
.cw-fab:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(11, 76, 118, .65); }
.cw-fab .i { width: 1.3em; height: 1.3em; }
.cw-fab[aria-expanded="true"] { display: none; }
.cw { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.cw[hidden] { display: none; }
.cw-float { position: fixed; z-index: 95; inset-inline-end: 24px; bottom: 24px; width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100dvh - 48px)); border-radius: 22px; box-shadow: 0 30px 70px -20px rgba(11, 76, 118, .45); animation: cwIn .35s var(--ease); }
@keyframes cwIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.cw-inline { height: min(660px, 82dvh); min-height: 480px; border: 0; border-radius: var(--radius); }
.cw-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--brand); color: #fff; }
.cw-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.cw-av .i { width: 1.2em; height: 1.2em; }
.cw-who { flex: 1; min-width: 0; }
.cw-who strong { display: block; font-size: .95rem; line-height: 1.25; }
.cw-who em { display: block; font-style: normal; font-size: .74rem; opacity: .88; }
.cw-who em::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 6px; border-radius: 50%; background: #5fe0a1; }
.cw-tool { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
.cw-tool:hover { background: rgba(255, 255, 255, .16); }
.cw-tool .i { width: 1.1em; height: 1.1em; }
.cw-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); overscroll-behavior: contain; }
.cw-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; line-height: 1.6; overflow-wrap: anywhere; animation: cwMsg .3s var(--ease); }
@keyframes cwMsg { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.cw-bot { align-self: flex-start; background: var(--tint); color: var(--primary); border: 1px solid var(--line); border-end-start-radius: 5px; }
.cw-me { align-self: flex-end; background: var(--brand); color: #fff; border-end-end-radius: 5px; }
.cw-typing { display: inline-flex; gap: 5px; padding: 14px 15px; }
.cw-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); opacity: .45; animation: typing 1s infinite; }
.cw-typing i:nth-child(2) { animation-delay: .15s; } .cw-typing i:nth-child(3) { animation-delay: .3s; }
.cw-sum p { margin: 0 0 4px; font-size: .88rem; }
.cw-sum p:last-child { margin: 0; }
.cw-opts { display: flex; flex-wrap: wrap; gap: 8px; background: var(--bg); }
.cw-opts:not(:empty) { padding: 4px 16px 14px; }
.cw-chip { padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--brand); background: var(--surface); color: var(--brand); font: inherit; font-size: .86rem; font-weight: 600; text-align: start; cursor: pointer; transition: background .2s, color .2s; }
.cw-chip:hover, .cw-chip:focus-visible { background: var(--brand); color: #fff; }
.cw-go { background: var(--brand); color: #fff; }
.cw-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.cw-form input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--bg); color: var(--field); font: inherit; font-size: 16px; }
.cw-form input:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.cw-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--brand); color: #fff; cursor: pointer; }
.cw-send:disabled, .cw-form input:disabled { opacity: .5; cursor: not-allowed; }
.chat-card { padding: 0; overflow: hidden; }
.drawer-actions .btn-chat { width: 100%; justify-content: center; padding: 16px 22px; font-size: 1.05rem; border-radius: 999px; }
@media (max-width: 960px) {
  .cw-fab { display: none; }
  .cw-float { inset: 0; width: 100%; height: 100dvh; border: 0; border-radius: 0; z-index: 400; animation: none; }
  .cw-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  html.chat-open { overflow: hidden; }
  .cw-inline { min-height: 420px; height: 72dvh; }
}
html[data-motion="reduced"] .cw-float, html[data-motion="reduced"] .cw-msg { animation: none; }
html[data-motion="reduced"] .cw-typing i { animation: none; }
/* ---- CONTACT MOCKUP (enquiry preview: topic chips, two chat bubbles, three-step progress) ---- */
.enq-q { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--primary); font-size: .9rem; }
.enq-q .i { width: 1.1em; height: 1.1em; }
.enq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.enq-chat { display: grid; gap: 8px; }
.enq-b { margin: 0; max-width: 85%; padding: 9px 13px; border-radius: 14px; background: var(--tint); color: var(--primary); font-size: .8rem; line-height: 1.45; }
.enq-b.me { justify-self: end; background: var(--brand); color: #fff; }
.enq-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.enq-steps li { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; border-top: 3px solid var(--line-strong); font-size: .72rem; font-weight: 700; color: var(--muted, #636363); text-align: center; }
.enq-steps li.done { border-top-color: var(--brand); color: var(--primary); }
.enq-steps li .i { width: 1.1em; height: 1.1em; color: #1f7a4d; }
.enq-steps li.next i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: enqPulse 2.4s ease-in-out infinite; }
@keyframes enqPulse { 0%, 100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }
.mock-contact { margin-bottom: 22px; }
.mock-contact .mock-float { bottom: -22px; }
html[data-motion="reduced"] .enq-steps li.next i { animation: none; }
html[data-theme="dark"] .enq-steps li .i { color: #7fd1a3; }
/* END: site.css */