/* =====================================================================
   Shoor AI — Site styles (mobile first, RTL)
   Brand tokens extracted from the Shoor logo.
   ===================================================================== */
:root {
  --ink: #38404A;          /* logo square */
  --ink-900: #262C33;
  --ink-700: #4A535E;
  --sand: #E5D2CA;         /* logo background */
  --sand-50: #F7F0EC;
  --sand-100: #F1E6E0;
  --sand-300: #D9C0B5;
  --sky: #54B2D4;          /* logo accents / AI */
  --sky-600: #3A98BB;
  --sky-50: #EAF6FB;
  --paper: #FBF8F6;
  --white: #fff;
  --text: #2B3138;
  --muted: #737A83;
  --line: #ECE3DE;
  --line-strong: #DCCFC8;
  --success: #2E9E6A;
  --danger: #B2474B;
  --wa: #1FA855;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --cut: 22px;             /* the logo's clipped corner */
  --shadow-sm: 0 1px 2px rgba(38, 44, 51, .06), 0 2px 8px rgba(38, 44, 51, .04);
  --shadow: 0 10px 30px -12px rgba(38, 44, 51, .22);
  --shadow-lg: 0 24px 60px -20px rgba(38, 44, 51, .35);
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --header-h: 68px;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.7; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; font-weight: 700; color: var(--ink-900); letter-spacing: -.01em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 820px; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------------------- Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .6em 1.25em; border-radius: 12px; font-weight: 600; font-size: .98rem; line-height: 1.2; border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .15s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -8px rgba(38, 44, 51, .6); }
.btn-primary:hover { background: var(--ink-900); }
.btn-primary .icon { color: var(--sky); }
.btn-sand { background: var(--sand); color: var(--ink-900); }
.btn-sand:hover { background: #fff; }
.btn-outline { border-color: var(--line-strong); background: #fff; color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: rgba(255, 255, 255, .55); color: var(--ink); border-color: rgba(56, 64, 74, .18); }
.btn-ghost:hover { background: #fff; }
.btn-glass { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255, 255, 255, .28); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #178c46; }
.btn-link { color: var(--ink-700); padding-inline: .5em; min-height: 40px; }
.btn-link:hover { color: var(--ink-900); text-decoration: underline; }
.btn-sm { min-height: 40px; padding: .45em 1em; font-size: .92rem; border-radius: 10px; }
.btn-xs { min-height: 34px; padding: .3em .85em; font-size: .85rem; border-radius: 9px; }
.btn-lg { min-height: 54px; padding: .75em 1.6em; font-size: 1.05rem; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; color: var(--ink); }
.icon-btn:hover { background: var(--sand-50); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--sky); color: #fff; font-size: .75rem; font-weight: 700; }

/* ---------------------------------------------------------------- Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 246, .88); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(38, 44, 51, .4); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: none; line-height: 1.2; }
.brand-text strong { display: block; font-size: 1.15rem; color: var(--ink-900); }
.brand-text small { color: var(--muted); font-size: .78rem; }
.main-nav { display: none; }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.header-cta { display: none; }
.header-search { display: flex; align-items: center; gap: 10px; padding-block: 0 12px; }
.header-search .icon { color: var(--muted); }
.header-search input { flex: 1; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; background: #fff; }

/* mobile drawer */
.main-nav.is-open { display: flex; flex-direction: column; position: fixed; inset: var(--header-h) 0 0 0; background: var(--paper); padding: 20px 16px; gap: 4px; overflow-y: auto; z-index: 49; animation: fadeIn .2s ease; }
.main-nav.is-open a { padding: 14px 12px; font-size: 1.1rem; font-weight: 600; border-radius: 12px; }
.main-nav.is-open a:hover, .main-nav.is-open a.is-active { background: var(--sand-50); }
.main-nav .nav-search { display: none; }
.main-nav.is-open .nav-search { display: flex; order: -1; margin-bottom: 12px; }
.nav-search { align-items: center; gap: 8px; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 0 12px; background: #fff; }
.nav-search input { border: 0; outline: 0; background: none; padding: 10px 0; width: 100%; }
.nav-search .icon { color: var(--muted); }

@media (min-width: 640px) {
  .brand-text { display: block; }
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: 24px; }
  .main-nav > a { padding: 8px 12px; border-radius: 10px; font-weight: 500; color: var(--ink-700); }
  .main-nav > a:hover { color: var(--ink-900); background: var(--sand-50); }
  .main-nav > a.is-active { color: var(--ink-900); font-weight: 600; box-shadow: inset 0 -2px 0 var(--sky); border-radius: 0; }
  .nav-toggle { display: none; }
}

/* ---------------------------------------------------------------- Toasts */
.toast { position: fixed; z-index: 90; inset-inline: 16px; bottom: 20px; margin: 0 auto; max-width: 480px; display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); animation: slideUp .35s ease; }
.toast-success .icon { color: #7EE0B0; }
.toast-error { background: var(--danger); }

/* ---------------------------------------------------------------- Sections */
.section { padding-block: 48px; }
.section-tight { padding-block: 28px 56px; }
.section-sand { background: var(--sand-50); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin-bottom: 4px; position: relative; }
.section-head p { margin: 0; color: var(--muted); }
.section-head-center { justify-content: center; text-align: center; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.link-more:hover { color: var(--sky-600); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-700); font-weight: 500; font-size: .95rem; margin-bottom: 14px; }
.eyebrow-line { width: 28px; height: 2px; background: var(--sky); border-radius: 2px; transform: rotate(-35deg); }

/* ---------------------------------------------------------------- Hero */
.hero { background: var(--sand); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 400px at 15% 20%, rgba(255, 255, 255, .45), transparent 70%), radial-gradient(600px 300px at 90% 90%, rgba(84, 178, 212, .12), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; width: 240px; height: 2px; background: var(--sky); inset-inline-end: -40px; top: 60px; transform: rotate(-38deg); opacity: .8; }
.hero-grid { position: relative; display: grid; gap: 32px; padding-block: 40px 48px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.2; margin-bottom: 14px; }
.lead { font-size: clamp(1rem, 2.3vw, 1.2rem); color: var(--ink-700); max-width: 36ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn { flex: 1 1 auto; }
.hero-stats { display: flex; gap: 28px; margin: 32px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats dt { font-size: 1.6rem; font-weight: 700; color: var(--ink-900); line-height: 1.1; }
.hero-stats dd { margin: 0; color: var(--ink-700); font-size: .88rem; }
.hero-visual { position: relative; display: none; justify-content: center; }
.hero-logo-card { width: min(360px, 80%); filter: drop-shadow(0 30px 40px rgba(38, 44, 51, .28)); animation: float 7s ease-in-out infinite; }
.hero-peek { position: absolute; bottom: 0; inset-inline-start: 0; display: flex; gap: 12px; align-items: center; padding: 10px; padding-inline-end: 18px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); max-width: 290px; }
.hero-peek img { width: 84px; height: 64px; object-fit: cover; border-radius: 10px; }
.hero-peek small { display: block; color: var(--sky-600); font-weight: 600; font-size: .75rem; }
.hero-peek strong { display: block; font-size: .95rem; line-height: 1.3; }
.hero-peek em { font-style: normal; color: var(--muted); font-size: .8rem; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding-block: 72px 80px; }
  .hero-visual { display: flex; }
  .hero-actions .btn { flex: 0 0 auto; }
}

/* ---------------------------------------------------------------- Project card */
.card-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } .card-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .card-grid-2 { grid-template-columns: repeat(3, 1fr); } }

.p-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-card-media { position: relative; display: block; aspect-ratio: 16 / 11; background: var(--sand-100); overflow: hidden; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.p-card:hover .p-card-media img { transform: scale(1.04); }
.status-chip { position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255, 255, 255, .94); color: var(--ink-900); font-size: .78rem; font-weight: 600; box-shadow: var(--shadow-sm); }
.status-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip, var(--sky)); }
.status-chip-inline { position: static; box-shadow: none; background: var(--sand-50); }
.featured-chip { position: absolute; bottom: 12px; inset-inline-end: 12px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; }
.featured-chip .icon { color: var(--sky); width: .95em; height: .95em; }
.p-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.p-card-dev { font-size: .8rem; color: var(--sky-600); font-weight: 600; margin-bottom: 2px; }
.p-card-title { font-size: 1.2rem; margin: 0 0 4px; }
.p-card-title a:hover { color: var(--sky-600); }
.p-card-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.p-card-types { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.p-card-types span { font-size: .78rem; padding: 3px 10px; border-radius: 99px; background: var(--sand-50); color: var(--ink-700); font-weight: 500; }
.p-card-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; margin: 0 0 14px; color: var(--ink-700); font-size: .9rem; }
.p-card-facts li { display: inline-flex; gap: 6px; align-items: center; }
.p-card-facts .icon { color: var(--sky-600); }
.p-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
.p-card-price { font-weight: 700; color: var(--ink-900); font-size: .95rem; }
.p-card-price.is-muted { color: var(--muted); font-weight: 500; font-size: .88rem; }
.p-card-cta { display: inline-flex; gap: 4px; align-items: center; font-size: .88rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.p-card-cta:hover { color: var(--sky-600); }

/* ---------------------------------------------------------------- Quick types */
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .quick-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.quick-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 12px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s, transform .2s, box-shadow .2s; }
.quick-tile:hover { border-color: var(--sky); transform: translateY(-3px); box-shadow: var(--shadow); }
.quick-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--ink); color: var(--sand); margin-bottom: 8px; position: relative; }
.quick-icon::after { content: ""; position: absolute; width: 16px; height: 2px; background: var(--sky); top: 9px; inset-inline-end: 8px; transform: rotate(-40deg); }
.quick-icon .icon { width: 28px; height: 28px; }
.quick-tile strong { font-size: 1.1rem; }
.quick-tile small { color: var(--muted); }

/* ---------------------------------------------------------------- CTA */
.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 36px 24px; display: grid; gap: 24px; }
.cta-band::before { content: ""; position: absolute; width: 180px; height: 2px; background: var(--sky); top: 36px; inset-inline-end: -30px; transform: rotate(-38deg); }
.cta-band::after { content: ""; position: absolute; width: 2px; height: 90px; background: var(--sky); bottom: 24px; inset-inline-start: 24px; opacity: .7; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 2.1rem); }
.cta-band p { color: rgba(255, 255, 255, .78); margin: 0; }
.cta-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cta-steps li { display: flex; align-items: center; gap: 12px; color: var(--sand); font-weight: 500; }
.cta-steps span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(229, 210, 202, .12); color: var(--sky); font-weight: 700; }
.cta-band .btn { justify-self: start; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr 1fr auto; align-items: center; padding: 48px; } }

/* ---------------------------------------------------------------- Page hero / crumbs */
.page-hero { background: var(--sand-50); border-bottom: 1px solid var(--line); }
.page-hero-compact { padding-block: 24px 28px; }
.page-hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin-bottom: 4px; }
.page-hero p { color: var(--muted); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs .icon { width: .9em; height: .9em; opacity: .6; }
.crumbs a:hover { color: var(--ink); }
.crumbs-light { color: rgba(255, 255, 255, .8); }
.crumbs-light a:hover { color: #fff; }

/* ---------------------------------------------------------------- Listing + filters */
.listing { display: grid; gap: 24px; padding-block: 24px 64px; }
.listing-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sort-form select { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 12px; background: #fff; min-height: 40px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--ink); color: #fff; border-radius: 99px; font-size: .85rem; }
.active-chip .icon { width: .9em; height: .9em; opacity: .7; }

.filters { position: fixed; inset: 0 0 0 auto; width: min(380px, 92vw); background: var(--paper); z-index: 70; transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; box-shadow: var(--shadow-lg); }
[dir="rtl"] .filters { inset: 0 0 0 auto; }
.filters.is-open { transform: none; }
.filters-backdrop { position: fixed; inset: 0; background: rgba(38, 44, 51, .45); z-index: 69; opacity: 0; pointer-events: none; transition: opacity .3s; }
.filters.is-open + .filters-backdrop { opacity: 1; pointer-events: auto; }
.filters-form { padding: 18px; display: grid; gap: 18px; }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { font-size: 1.15rem; margin: 0; display: flex; gap: 8px; align-items: center; }
.filters-actions { position: sticky; bottom: 0; background: var(--paper); padding-block: 12px; display: grid; gap: 4px; text-align: center; }
@media (min-width: 1024px) {
  .listing { grid-template-columns: 290px 1fr; align-items: start; }
  .filters { position: sticky; top: calc(var(--header-h) + 16px); transform: none; width: auto; box-shadow: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); max-height: calc(100vh - var(--header-h) - 32px); z-index: 1; }
  .filters-backdrop, .filters-close, .filters-open { display: none !important; }
  .filters-actions { background: #fff; }
}

/* ---------------------------------------------------------------- Form fields */
.field { display: grid; gap: 6px; margin: 0; border: 0; padding: 0; min-width: 0; }
.field > span, .field > legend, .field-label { font-weight: 600; font-size: .9rem; color: var(--ink-900); padding: 0; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea, .range-inputs input { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 11px 14px; background: #fff; min-height: 48px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .range-inputs input:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(84, 178, 212, .15); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .82rem; font-style: normal; min-height: 0; }
.field-error:empty { display: none; }
.req { color: var(--danger); }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range-inputs label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); }
.chip-options { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt input { position: absolute; opacity: 0; pointer-events: none; }
.chip-opt span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 99px; background: #fff; cursor: pointer; font-size: .9rem; transition: all .15s; user-select: none; }
.chip-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-opt input:checked + span .icon { color: var(--sky); }
.chip-opt input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.chip-options-tight .chip-opt span { min-width: 46px; justify-content: center; }
.chip-options-lg .chip-opt span { padding: 11px 16px; font-size: .95rem; }

/* ---------------------------------------------------------------- Pagination / empty */
.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pagination a:hover { border-color: var(--ink); }
.pagination .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .pg-gap { border: 0; background: none; }
.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-state h2 { font-size: 1.3rem; }
.empty-state p { color: var(--muted); max-width: 48ch; margin-inline: auto; }
.empty-icon { width: 64px; height: 64px; display: inline-grid; place-items: center; border-radius: 20px; background: var(--sand-50); color: var(--ink); margin-bottom: 12px; }
.empty-icon .icon { width: 28px; height: 28px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; padding: 18px 20px; background: var(--sand-50); border-radius: var(--radius); border: 1px solid var(--line); }
.inline-cta > div { flex: 1 1 220px; }
.inline-cta strong { display: block; }
.inline-cta p { margin: 0; color: var(--muted); font-size: .92rem; }
.inline-cta-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--sky); }

/* ---------------------------------------------------------------- Project page */
.project-hero { position: relative; min-height: 70vh; min-height: 70svh; display: flex; align-items: flex-end; color: #fff; background: var(--ink-900); }
.project-hero-media { position: absolute; inset: 0; overflow: hidden; }
.project-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.project-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(38, 44, 51, .35) 0%, rgba(38, 44, 51, .05) 30%, rgba(38, 44, 51, .55) 62%, rgba(38, 44, 51, .92) 100%); }
.project-hero-inner { position: relative; padding-block: 90px 28px; }
.project-hero-inner .crumbs { position: absolute; top: 18px; }
.project-hero-card { max-width: 720px; }
.project-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.project-logo { display: inline-grid; place-items: center; background: #fff; border-radius: 14px; padding: 8px 12px; height: 60px; max-width: 140px; }
.project-logo img { max-height: 44px; width: auto; object-fit: contain; }
.project-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.project-chips .status-chip-inline { background: rgba(255, 255, 255, .92); }
.soft-chip { padding: 4px 12px; border-radius: 99px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-size: .8rem; font-weight: 500; }
.project-hero h1 { color: #fff; font-size: clamp(2rem, 6.5vw, 3.4rem); margin-bottom: 6px; }
.project-tagline { font-size: 1.1rem; color: var(--sand); margin-bottom: 8px; }
.project-meta-line { display: flex; flex-wrap: wrap; gap: 8px 20px; color: rgba(255, 255, 255, .9); margin-bottom: 10px; }
.project-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.project-meta-line .icon { color: var(--sky); }
.project-meta-line a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.project-excerpt { color: rgba(255, 255, 255, .85); max-width: 60ch; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.project-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.key-facts { list-style: none; padding: 16px; margin: -26px 0 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.key-facts li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.kf-icon { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center; background: var(--sand-50); color: var(--ink); }
.key-facts small { display: block; color: var(--muted); font-size: .78rem; }
.key-facts strong { display: block; font-size: .93rem; line-height: 1.35; overflow-wrap: anywhere; }
@media (min-width: 768px) { .key-facts { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 20px 24px; } }

.section-nav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(251, 248, 246, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-top: 24px; }
.section-nav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.section-nav-inner::-webkit-scrollbar { display: none; }
.section-nav a { flex: none; padding: 8px 14px; border-radius: 99px; font-size: .9rem; font-weight: 500; color: var(--ink-700); }
.section-nav a:hover { background: var(--sand-50); }
.section-nav a.is-active { background: var(--ink); color: #fff; }
.section-nav a.section-nav-cta { color: var(--sky-600); font-weight: 700; }

.project-layout { display: grid; gap: 28px; padding-block: 28px 64px; }
@media (min-width: 1024px) {
  .project-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
  .project-aside { position: sticky; top: calc(var(--header-h) + 70px); }
}
.p-section { padding-block: 26px; border-bottom: 1px solid var(--line); }
.p-section:last-child { border-bottom: 0; }
.p-section-title { font-size: 1.35rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.p-section-title::before { content: ""; width: 14px; height: 2px; background: var(--sky); transform: rotate(-40deg); border-radius: 2px; }
.prose { color: var(--ink-700); font-size: 1.02rem; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { padding-inline-start: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose-sm { font-size: .95rem; }
.prose-lg { font-size: 1.08rem; line-height: 1.9; }
.prose-spec ul { list-style: none; padding: 0; display: grid; gap: 8px; }
.prose-spec li { position: relative; padding: 10px 14px; padding-inline-start: 36px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.prose-spec li::before { content: ""; position: absolute; inset-inline-start: 14px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--sky); transform: rotate(45deg); }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-grid div { background: #fff; padding: 12px 14px; box-shadow: 0 0 0 .5px var(--line); }
.info-grid dt { color: var(--muted); font-size: .8rem; }
.info-grid dd { margin: 0; font-weight: 600; color: var(--ink-900); overflow-wrap: anywhere; }
@media (min-width: 768px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-grid-tight { grid-template-columns: repeat(2, 1fr) !important; margin-bottom: 18px; }

.feature-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 768px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature-grid li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; font-size: .93rem; }
.feature-grid small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.feature-icon { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--sky-50); color: var(--sky-600); }
.feature-grid-sm { margin-bottom: 16px; }
.feature-grid-sm li { padding: 8px 10px; font-size: .88rem; }
.feature-grid-sm .feature-icon { width: 30px; height: 30px; }

.unit-filter { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.unit-filter button { flex: none; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: #fff; font-size: .88rem; font-weight: 500; }
.unit-filter button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.unit-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 560px) { .unit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .unit-grid { grid-template-columns: repeat(3, 1fr); } }
.unit-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; }
.unit-card:hover { box-shadow: var(--shadow); }
.unit-card.is-hidden { display: none; }
.unit-card-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; background: var(--sand-50); overflow: hidden; }
.unit-card-media img { width: 100%; height: 100%; object-fit: cover; }
.unit-card-media img.is-plan { object-fit: contain; padding: 8px; background: #fff; }
.unit-noimg { display: grid; place-items: center; height: 100%; color: var(--sand-300); }
.unit-noimg .icon { width: 56px; height: 56px; }
.unit-type-chip { position: absolute; top: 10px; inset-inline-end: 10px; padding: 3px 10px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .75rem; font-weight: 600; }
.unit-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.unit-card-body h3 { font-size: 1.05rem; margin: 0 0 4px; }
.unit-card-body h3 small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.unit-zone { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: .82rem; margin: 0 0 6px; }
.unit-facts { list-style: none; padding: 0; margin: 4px 0 12px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: var(--ink-700); }
.unit-facts li { display: inline-flex; gap: 5px; align-items: center; }
.unit-facts .icon { color: var(--sky-600); }
.unit-card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.unit-price { font-weight: 700; font-size: .9rem; }

.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--sand-50); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.is-wide { grid-column: span 2; aspect-ratio: 16 / 9; }
@media (min-width: 768px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } .gallery-item.is-wide { grid-row: span 2; aspect-ratio: auto; } }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(38, 44, 51, .55); color: #fff; font-size: 1.5rem; font-weight: 700; }

.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; margin-bottom: 12px; }
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; width: 100%; }
.video-play img { width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.video-play span { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: var(--shadow-lg); }
.video-play span .icon { width: 30px; height: 30px; margin-inline-start: 4px; }

.plan-frame { position: relative; display: block; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 8px; }
.plan-frame img { width: 100%; border-radius: 10px; }
.plan-zoom { position: absolute; bottom: 14px; inset-inline-start: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: .82rem; }

.zone-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .zone-grid { grid-template-columns: repeat(2, 1fr); } }
.zone-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.zone-media { aspect-ratio: 16 / 9; overflow: hidden; }
.zone-media img { width: 100%; height: 100%; object-fit: cover; }
.zone-body { padding: 14px 16px; }
.zone-kind { font-size: .75rem; font-weight: 700; color: var(--sky-600); }
.zone-body h3 { font-size: 1.1rem; margin-bottom: 6px; }
.zone-units { display: flex; gap: 6px; align-items: center; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.location-address { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
.location-address .icon { color: var(--sky-600); margin-top: 4px; }
.map-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--sand-50) url("../img/map-bg.svg") center / cover; margin-bottom: 14px; display: grid; place-items: center; }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-load { display: inline-flex; gap: 8px; align-items: center; padding: 12px 20px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); font-weight: 600; }

.nearby-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 768px) { .nearby-list { grid-template-columns: repeat(2, 1fr); } }
.nearby-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.nearby-icon { width: 40px; height: 40px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--ink); color: var(--sand); }
.nearby-name { flex: 1; font-weight: 600; font-size: .93rem; line-height: 1.35; }
.nearby-name small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }
.nearby-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .82rem; color: var(--ink-700); white-space: nowrap; }
.nearby-meta span { display: inline-flex; gap: 4px; align-items: center; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.check-list .icon { color: var(--success); margin-top: 4px; }

.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.file-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s; }
.file-list a:hover { border-color: var(--ink); }
.file-list a > span:nth-child(2) { flex: 1; }
.file-list small { display: block; color: var(--muted); font-size: .8rem; }
.file-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #FBEAEA; color: var(--danger); }

/* Lead card */
.lead-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.lead-card::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 4px; background: linear-gradient(90deg, var(--ink), var(--sky)); }
.lead-card-head { margin-bottom: 16px; }
.lead-kicker { display: block; color: var(--sky-600); font-weight: 700; font-size: .85rem; }
.lead-card-head strong { display: block; font-size: 1.2rem; color: var(--ink-900); line-height: 1.4; }
.lead-card-head small { color: var(--muted); font-size: .82rem; }
.lead-form { display: grid; gap: 12px; position: relative; }
.form-note { display: flex; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); margin: 0; }
.form-success { position: absolute; inset: -4px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; animation: fadeIn .3s; }
.form-success > span { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: #E6F6EE; color: var(--success); margin-bottom: 8px; }
.form-success > span .icon { width: 32px; height: 32px; }
.form-success strong { font-size: 1.2rem; }
.form-success p { color: var(--muted); }
.lead-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 14px 0; }
.lead-or::before, .lead-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.btn.is-loading { opacity: .7; pointer-events: none; }

.mobile-bar { position: fixed; z-index: 40; inset-inline: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s; }
.mobile-bar.is-visible { transform: none; }
.mobile-bar .btn-primary { flex: 1; }
.mobile-bar .btn-whatsapp { width: 52px; padding: 0; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }
.page-project .site-footer { padding-bottom: 80px; }
@media (min-width: 1024px) { .page-project .site-footer { padding-bottom: 0; } }

/* Dialog */
.unit-dialog { width: min(760px, 100%); max-height: min(92vh, 900px); padding: 0; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--paper); color: var(--text); }
.unit-dialog[open] { display: flex; flex-direction: column; animation: dialogIn .28s ease; }
.unit-dialog::backdrop { background: rgba(38, 44, 51, .55); backdrop-filter: blur(3px); }
@media (max-width: 640px) { .unit-dialog { margin: auto 0 0; max-width: 100%; max-height: 94vh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; } }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; border-bottom: 1px solid var(--line); background: #fff; }
.dialog-head small { color: var(--sky-600); font-weight: 600; }
.dialog-head h2 { font-size: 1.3rem; margin: 0; }
.dialog-body { padding: 18px 20px; overflow-y: auto; }
.dialog-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.dialog-sub { font-size: 1.05rem; margin: 20px 0 10px; }
.unit-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 18px; padding-bottom: 4px; }
.unit-gallery-item { flex: 0 0 85%; scroll-snap-align: start; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.unit-gallery-item img { width: 100%; height: 100%; object-fit: contain; }
@media (min-width: 640px) { .unit-gallery-item { flex-basis: 60%; } }
.floors { display: grid; gap: 8px; }
.floor { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.floor summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; list-style: none; font-weight: 600; }
.floor summary::-webkit-details-marker { display: none; }
.floor summary small { color: var(--muted); font-weight: 500; margin-inline-start: auto; }
.floor summary .icon { transition: transform .2s; }
.floor[open] summary .icon { transform: rotate(180deg); }
.floor-body { padding: 0 14px 14px; }
.room-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border-radius: 10px; overflow: hidden; }
@media (min-width: 560px) { .room-list { grid-template-columns: 1fr 1fr; } }
.room-list li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--paper); font-size: .9rem; }
.room-list b { font-weight: 600; color: var(--ink-700); font-size: .85rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(20, 23, 27, .95); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; }
.lightbox figure { margin: 0; max-width: 94vw; max-height: 86vh; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 94vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { color: rgba(255, 255, 255, .8); margin-top: 10px; font-size: .9rem; text-align: center; }
.lb-close { position: absolute; top: 14px; inset-inline-end: 14px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
.lb-count { position: absolute; bottom: 16px; color: rgba(255, 255, 255, .7); font-size: .85rem; }

/* ---------------------------------------------------------------- Developers */
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 768px) { .dev-grid { grid-template-columns: repeat(4, 1fr); } }
.dev-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 22px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, transform .2s; }
.dev-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.dev-card small { color: var(--muted); font-size: .8rem; }
.dev-count { margin-top: 6px; font-size: .82rem; color: var(--sky-600); font-weight: 600; }
.dev-logo { width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center; background: var(--sand-50); color: var(--ink); font-size: 1.8rem; font-weight: 700; overflow: hidden; margin-bottom: 8px; border: 1px solid var(--line); }
.dev-logo img { max-width: 80%; max-height: 80%; object-fit: contain; }
.dev-logo-lg { width: 110px; height: 110px; flex: none; background: #fff; }
.dev-hero { padding-block: 28px; }
.dev-hero-inner { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.dev-hero-inner > div { flex: 1 1 300px; }
.dev-contacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------------------------------------------------------------- Contact */
.contact-grid { display: grid; gap: 24px; margin-top: 28px; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.1fr; align-items: start; } }
.contact-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.contact-cards a, .contact-static { display: flex; gap: 14px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-cards .icon { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--sand); }
.contact-cards small { display: block; color: var(--muted); font-size: .8rem; }

/* ---------------------------------------------------------------- Shoor wizard */
.page-shoor { background: var(--sand); }
.page-shoor .site-header { background: rgba(229, 210, 202, .88); }
.shoor { min-height: calc(100vh - var(--header-h)); padding-block: 24px 60px; }
.shoor-inner { max-width: 760px; }
.shoor-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.shoor-head h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); margin: 0; }
.shoor-head p { margin: 0; color: var(--ink-700); }
.wizard { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px 18px; min-height: 440px; overflow: hidden; }
.wizard::before { content: ""; position: absolute; top: 22px; inset-inline-end: -20px; width: 90px; height: 2px; background: var(--sky); transform: rotate(-40deg); }
@media (min-width: 640px) { .wizard { padding: 32px 36px; } }
.wizard-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.wizard-bar { flex: 1; height: 6px; background: var(--sand-50); border-radius: 99px; overflow: hidden; }
.wizard-bar span { display: block; height: 100%; width: 14%; background: linear-gradient(90deg, var(--ink), var(--sky)); border-radius: 99px; transition: width .4s ease; }
.wizard-count { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.js .step[data-hidden] { display: none; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; animation: stepIn .35s ease; }
.no-js .step + .step { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.step-title { font-size: clamp(1.35rem, 4vw, 1.75rem); font-weight: 700; color: var(--ink-900); margin-bottom: 4px; padding: 0; }
.step-sub { color: var(--muted); margin-bottom: 20px; }
.step-hint { color: var(--sky-600); font-weight: 500; font-size: .92rem; margin: 14px 0 0; min-height: 1.5em; }
.step-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .tiles-3 { grid-template-columns: repeat(3, 1fr); } .tiles-4 { grid-template-columns: repeat(4, 1fr); } }
.tiles-num { grid-template-columns: repeat(4, 1fr); }
@media (min-width: 640px) { .tiles-num { grid-template-columns: repeat(7, 1fr); } }
.tiles-list { grid-template-columns: 1fr; }
@media (min-width: 640px) { .tiles-list { grid-template-columns: repeat(2, 1fr); } }
.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; opacity: 0; pointer-events: none; }
.tile span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 96px; padding: 14px 10px; border: 1.5px solid var(--line-strong); border-radius: 16px; background: #fff; transition: all .15s; }
.tile span .icon { width: 28px; height: 28px; color: var(--ink-700); }
.tile b { font-weight: 600; font-size: .98rem; }
.tile:hover span { border-color: var(--ink); }
.tile input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(38, 44, 51, .7); }
.tile input:checked + span .icon { color: var(--sky); }
.tile input:focus-visible + span { outline: 2px solid var(--sky); outline-offset: 2px; }
.tile-any span { border-style: dashed; }
.tile-num span { min-height: 64px; }
.tile-num b { font-size: 1.15rem; }
.tile-num.tile-any b { font-size: .88rem; }
.tile-row span { flex-direction: row; min-height: 58px; justify-content: flex-start; padding-inline: 18px; }
.district-pick { margin-top: 18px; }
.custom-range { margin-top: 16px; }
.custom-range summary { cursor: pointer; color: var(--sky-600); font-weight: 600; font-size: .92rem; }
.custom-range .range-inputs { margin-top: 12px; }
.steppers { display: grid; gap: 12px; }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 16px; }
.stepper-label { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 1.05rem; }
.stepper-label .icon { color: var(--sky-600); }
.stepper-ctrl { display: flex; align-items: center; gap: 6px; }
.stepper-ctrl button { width: 44px; height: 44px; border-radius: 12px; background: var(--sand-50); display: grid; place-items: center; }
.stepper-ctrl button:hover { background: var(--sand-100); }
.stepper-ctrl input { width: 54px; text-align: center; font-size: 1.3rem; font-weight: 700; border: 0; background: none; -moz-appearance: textfield; }
.stepper-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; }
.wizard-loading { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; z-index: 3; animation: fadeIn .2s; }
.wizard-loading strong { font-size: 1.3rem; }
.wizard-loading p { color: var(--muted); }
.loader-mark { animation: pulse 1.2s ease-in-out infinite; margin-bottom: 10px; }

/* ---------------------------------------------------------------- Results */
.results-hero { background: var(--sand); padding-block: 28px 32px; position: relative; overflow: hidden; }
.results-hero::after { content: ""; position: absolute; width: 200px; height: 2px; background: var(--sky); inset-inline-end: -30px; top: 40px; transform: rotate(-38deg); }
.results-hero h1 { font-size: clamp(2rem, 6vw, 2.8rem); margin-bottom: 12px; }
.summary-chips { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.summary-chips li { padding: 6px 14px; border-radius: 99px; background: rgba(255, 255, 255, .7); font-size: .9rem; font-weight: 500; }
.results-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.results-layout { display: grid; gap: 28px; padding-block: 28px 64px; }
@media (min-width: 1024px) { .results-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .results-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.tier-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 8px 0 14px; }
.tier-title.tier-match .icon { color: var(--success); }
.tier-title.tier-suitable .icon, .tier-title.tier-other .icon { color: var(--sky-600); }
.tier-title:not(:first-child) { margin-top: 28px; }
.result-card { display: grid; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; transition: box-shadow .2s; }
.result-card:hover { box-shadow: var(--shadow); }
.result-card.tier-match { border-color: rgba(46, 158, 106, .35); }
.result-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--sand-50); clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
.result-media img { width: 100%; height: 100%; object-fit: cover; }
.result-rank { position: absolute; bottom: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; }
.result-body { padding: 16px 18px 18px; }
.result-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.tier-badge { padding: 4px 12px; border-radius: 99px; font-size: .8rem; font-weight: 700; background: var(--sky-50); color: var(--sky-600); }
.tier-match .tier-badge { background: #E6F6EE; color: var(--success); }
.result-body h3 { font-size: 1.25rem; margin: 0 0 2px; }
.reasons { list-style: none; padding: 0; margin: 10px 0 12px; display: grid; gap: 4px; }
.reasons li { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--ink-700); }
.reasons .icon { color: var(--success); }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (min-width: 760px) { .result-card { grid-template-columns: 300px 1fr; } .result-media { aspect-ratio: auto; min-height: 100%; } }

/* ---------------------------------------------------------------- Error */
.error-page { padding-block: 80px; text-align: center; }
.error-code { display: block; font-size: 6rem; font-weight: 700; color: var(--sand-300); line-height: 1; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .75); margin-top: 0; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; width: 220px; height: 2px; background: var(--sky); inset-inline-end: -40px; top: 50px; transform: rotate(-38deg); opacity: .8; }
.footer-grid { display: grid; gap: 32px; padding-block: 48px 28px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand img { width: 64px; height: 64px; margin-bottom: 10px; }
.footer-tagline { color: var(--sand); font-weight: 600; font-size: 1.1rem; margin-bottom: 4px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.contact-list a { display: inline-flex; gap: 8px; align-items: center; }
.contact-list .icon { color: var(--sky); }
.footer-links { margin-top: 14px !important; }
.social { display: flex; gap: 8px; margin-top: 14px; }
.social a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .08); }
.social a:hover { background: rgba(255, 255, 255, .16); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 18px; font-size: .85rem; }
.footer-ai { letter-spacing: .2em; font-size: .75rem; }
.footer-ai b { color: var(--sky); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } .footer-brand { grid-column: auto; } }

/* ---------------------------------------------------------------- Motion */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes stepIn { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
@keyframes dialogIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.92); opacity: .75; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   AI layer — visual language for "Shoor AI" (sky-blue = intelligence)
   ===================================================================== */
@property --ai-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* Glowing, rotating border on the main Shoor CTA */
.btn-ai { position: relative; isolation: isolate; border: 1.5px solid transparent;
  background: linear-gradient(var(--ink), var(--ink)) padding-box,
              conic-gradient(from var(--ai-angle), var(--sky) 0deg, rgba(84, 178, 212, .08) 90deg, var(--sky) 180deg, rgba(84, 178, 212, .08) 270deg, var(--sky) 360deg) border-box;
  animation: aiSpin 4s linear infinite; }
.btn-ai::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; z-index: -1; background: radial-gradient(closest-side, rgba(84, 178, 212, .35), transparent); opacity: 0; transition: opacity .3s; }
.btn-ai:hover::after { opacity: 1; }
.btn-ai .icon { animation: aiTwinkle 2.4s ease-in-out infinite; }
.btn-sand.btn-ai { background: linear-gradient(var(--sand), var(--sand)) padding-box, conic-gradient(from var(--ai-angle), var(--sky), transparent 25%, var(--sky) 50%, transparent 75%, var(--sky)) border-box; }
@keyframes aiSpin { to { --ai-angle: 360deg; } }
@keyframes aiTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.8) rotate(45deg); opacity: .7; } }

/* "SHOOR AI" chip */
.ai-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 12px; border-radius: 99px; background: rgba(56, 64, 74, .92); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .14em; direction: ltr; }
.ai-chip b { color: var(--sky); font-weight: 700; }
.ai-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 0 rgba(84, 178, 212, .7); animation: aiPulse 1.8s infinite; }
@keyframes aiPulse { 0% { box-shadow: 0 0 0 0 rgba(84, 178, 212, .6); } 70% { box-shadow: 0 0 0 9px rgba(84, 178, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(84, 178, 212, 0); } }

/* Data dot-grid texture */
.hero::before, .results-hero::before, .page-shoor .shoor::before {
  background-image: radial-gradient(rgba(56, 64, 74, .13) 1px, transparent 1.4px), radial-gradient(800px 400px at 15% 20%, rgba(255, 255, 255, .45), transparent 70%), radial-gradient(600px 300px at 90% 90%, rgba(84, 178, 212, .14), transparent 70%);
  background-size: 22px 22px, auto, auto;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .35));
  mask-image: linear-gradient(180deg, #000 30%, rgba(0, 0, 0, .35)); }
.results-hero::before, .page-shoor .shoor::before { content: ""; position: absolute; inset: 0; pointer-events: none; }
.page-shoor .shoor { position: relative; }
.page-shoor .shoor-inner { position: relative; }

/* Neural network behind the hero logo */
.hero-visual { flex-direction: column; align-items: center; gap: 18px; }
.neural { position: absolute; inset: -8% -10%; width: 120%; height: 116%; pointer-events: none; z-index: 0; }
.neural line { stroke: var(--sky); stroke-width: 1.2; stroke-linecap: round; stroke-dasharray: 5 7; opacity: .45; animation: flow 3.2s linear infinite; }
.neural line.strong { opacity: .8; stroke-width: 1.6; stroke-dasharray: none; }
.neural circle { fill: var(--paper); stroke: var(--sky); stroke-width: 1.6; transform-box: fill-box; transform-origin: center; animation: node 3s ease-in-out infinite; }
.neural circle.hot { fill: var(--sky); }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes node { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.35); opacity: 1; } }
.hero-logo-card { position: relative; z-index: 1; }

/* Live AI demo card */
.ai-demo { position: relative; z-index: 2; width: min(380px, 100%); background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-radius: 18px; padding: 14px 16px; box-shadow: 0 20px 50px -24px rgba(38, 44, 51, .5); border: 1px solid rgba(84, 178, 212, .35); }
.ai-demo::before { content: ""; position: absolute; top: -1px; inset-inline: 18px; height: 2px; background: linear-gradient(90deg, transparent, var(--sky), transparent); }
.ai-demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.ai-demo-head small { color: var(--muted); font-size: .75rem; }
.ai-q { margin: 0 0 10px; padding: 10px 12px; border-radius: 14px 14px 4px 14px; background: var(--sand-50); color: var(--ink-900); font-weight: 500; min-height: 48px; font-size: .95rem; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--sky); vertical-align: -.2em; margin-inline-start: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-thinking { display: flex; align-items: center; gap: 8px; color: var(--sky-600); font-size: .85rem; font-weight: 600; min-height: 26px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--sky); animation: dots 1.2s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }
.ai-answer { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; animation: slideUp .4s ease; }
.ai-answer img { width: 64px; height: 48px; border-radius: 9px; object-fit: cover; flex: none; }
.ai-answer small { display: block; color: var(--success); font-weight: 700; font-size: .75rem; }
.ai-answer strong { display: block; font-size: .95rem; line-height: 1.3; }
.ai-answer em { font-style: normal; color: var(--muted); font-size: .8rem; }
@media (max-width: 899px) {
  .hero-visual { display: flex; }
  .hero-visual .hero-logo-card, .hero-visual .neural { display: none; }
  .ai-demo { width: 100%; }
}

/* CTA band neural accent */
.cta-band .neural-mini { position: absolute; inset-inline-start: 0; bottom: 0; width: 320px; height: 180px; opacity: .35; pointer-events: none; }
.cta-band .neural-mini line { stroke: var(--sky); stroke-width: 1; stroke-dasharray: 4 6; animation: flow 3s linear infinite; }
.cta-band .neural-mini circle { fill: var(--sky); }

/* Smart summary on project page */
.ai-insight { position: relative; margin-top: 22px; padding: 18px 18px 16px; border-radius: var(--radius); background: linear-gradient(135deg, #fff 0%, var(--sky-50) 100%); border: 1px solid rgba(84, 178, 212, .35); overflow: hidden; }
.ai-insight::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; inset-inline-start: -40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: scan 5s ease-in-out infinite; pointer-events: none; }
@keyframes scan { 0% { inset-inline-start: -40%; } 60%, 100% { inset-inline-start: 110%; } }
.ai-insight-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.ai-insight-head h2 { font-size: 1.1rem; margin: 0; display: flex; align-items: center; gap: 8px; }
.ai-insight-head h2 .icon { color: var(--sky-600); }
.ai-insight-head small { color: var(--muted); font-size: .78rem; }
.ai-insight ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
@media (min-width: 700px) { .ai-insight ul { grid-template-columns: 1fr 1fr; } }
.ai-insight li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--ink-700); }
.ai-insight li .icon { color: var(--sky-600); margin-top: 4px; }
.ai-insight li b { color: var(--ink-900); }

/* Wizard as a conversation */
.bot-line { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.bot-avatar { width: 38px; height: 38px; border-radius: 11px; flex: none; position: relative; }
.bot-avatar img { width: 100%; height: 100%; }
.bot-avatar::after { content: ""; position: absolute; bottom: -2px; inset-inline-start: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--sky); border: 2px solid #fff; }
.bot-name { font-size: .78rem; font-weight: 700; color: var(--sky-600); letter-spacing: .04em; }
.step .bot-typing { display: none; padding: 12px 16px; background: var(--sand-50); border-radius: 16px 16px 16px 4px; width: max-content; }
.step.is-typing .bot-typing { display: inline-flex; }
.step.is-typing > :not(.bot-line) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.step > * { transition: opacity .35s ease, transform .35s ease; }
.step-title { position: relative; }

.wizard-loading { gap: 14px; }
.scan-ring { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 6px; }
.scan-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from var(--ai-angle), var(--sky), rgba(84, 178, 212, 0) 40%, rgba(84, 178, 212, 0) 100%); animation: aiSpin 1.2s linear infinite; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px)); }
.scan-ring img { width: 72px; height: 72px; }
.think-steps { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; text-align: start; min-width: 260px; }
.think-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .92rem; opacity: .35; transition: opacity .3s, color .3s; }
.think-steps li .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.think-steps li .tick .icon { width: 14px; height: 14px; opacity: 0; }
.think-steps li.is-active { opacity: 1; color: var(--ink-900); }
.think-steps li.is-active .tick { border-color: var(--sky); border-top-color: transparent; animation: spin .8s linear infinite; }
.think-steps li.is-done { opacity: 1; color: var(--ink-700); }
.think-steps li.is-done .tick { background: var(--sky); border-color: var(--sky); color: #fff; animation: none; }
.think-steps li.is-done .tick .icon { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Match ring on results */
.match-ring { --p: 0; position: relative; width: 52px; height: 52px; flex: none; }
.match-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.match-ring circle { fill: none; stroke-width: 4; }
.match-ring .track { stroke: var(--sand-100); }
.match-ring .bar { stroke: url(#ai-grad); stroke-linecap: round; stroke-dasharray: 113; stroke-dashoffset: calc(113 - 113 * var(--p) / 100); animation: ringIn 1.2s ease-out both; }
@keyframes ringIn { from { stroke-dashoffset: 113; } }
.match-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: var(--ink-900); }
.match-ring span .icon { color: var(--sky-600); width: 18px; height: 18px; }
.result-top { justify-content: space-between; }
.result-top-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.reasons-title { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--sky-600); margin: 10px 0 -4px; }
.results-hero .ai-chip { margin-bottom: 12px; }

/* ---------------------------------------------------------------- Mobile refinements */
.cta-short { display: none; }
@media (max-width: 639px) {
  .header-cta { display: inline-flex; min-height: 38px; padding: .35em .8em; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
  .brand img { width: 42px; height: 42px; }

  /* Swipeable project rails on the home page */
  .card-rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-inline: -16px; padding: 4px 16px 14px; scroll-padding-inline: 16px; }
  .card-rail::-webkit-scrollbar { display: none; }
  .card-rail > .p-card { flex: 0 0 84%; scroll-snap-align: start; }
  .card-rail > .p-card:hover { transform: none; }

  .info-grid .is-wide { grid-column: 1 / -1; }
  .section { padding-block: 36px; }
  .section-head { margin-bottom: 16px; }
  .project-hero { min-height: 74svh; }
  .key-facts { gap: 12px; }
}
.info-grid .is-wide { grid-column: span 2; }
@media (max-width: 767px) { .info-grid .is-wide { grid-column: 1 / -1; } }

.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ink-700); font-size: .95rem; }
.hero-points .icon { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: rgba(255, 255, 255, .6); color: var(--sky-600); }

/* =====================================================================
   "اسأل شور" floating assistant
   ===================================================================== */
.assistant { position: fixed; z-index: 60; inset-inline-end: 18px; bottom: 18px; }
.page-project .assistant { bottom: 86px; }
@media (min-width: 1024px) { .page-project .assistant { bottom: 18px; } }
.as-fab { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px; padding-inline-end: 18px; border-radius: 20px; background: var(--ink); color: #fff; box-shadow: 0 16px 40px -14px rgba(38, 44, 51, .7); transition: transform .2s; }
.as-fab:hover { transform: translateY(-2px); }
.as-fab img { width: 46px; height: 46px; border-radius: 14px; position: relative; z-index: 1; }
.as-fab-label { font-weight: 700; font-size: .95rem; position: relative; z-index: 1; }
.as-fab-ring { position: absolute; inset: -3px; border-radius: 22px; padding: 2px; z-index: 0;
  background: conic-gradient(from var(--ai-angle), var(--sky), transparent 30%, var(--sky) 55%, transparent 80%, var(--sky)); animation: aiSpin 3s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (max-width: 639px) { .as-fab-label { display: none; } .as-fab { padding: 5px; border-radius: 18px; } .as-fab-ring { border-radius: 20px; } }
.assistant.is-open .as-fab { display: none; }

.as-nudge { position: absolute; bottom: calc(100% + 12px); inset-inline-end: 0; width: max-content; max-width: 250px; padding: 12px 14px; padding-inline-start: 34px; border-radius: 16px 16px 4px 16px; background: #fff; color: var(--ink-900); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg); border: 1px solid rgba(84, 178, 212, .4); animation: slideUp .4s ease; }
.as-nudge-x { position: absolute; top: 8px; inset-inline-start: 8px; width: 20px; height: 20px; display: grid; place-items: center; color: var(--muted); }
.as-nudge-x .icon { width: 14px; height: 14px; }

.as-panel { position: fixed; inset-inline-end: 18px; bottom: 18px; width: min(400px, calc(100vw - 36px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column;
  background: var(--paper); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px -24px rgba(38, 44, 51, .55); border: 1px solid rgba(84, 178, 212, .35); animation: dialogIn .3s ease; }
@media (max-width: 639px) { .as-panel { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; } }
.as-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ink); color: #fff; position: relative; }
.as-head::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--sky), transparent); }
.as-title { flex: 1; line-height: 1.25; }
.as-title strong { display: block; font-size: 1.05rem; }
.as-title small { display: inline-flex; align-items: center; gap: 6px; color: var(--sand); font-size: .78rem; }
.as-close { color: #fff; }
.as-close:hover { background: rgba(255, 255, 255, .1); }
.as-log { flex: 1; overflow-y: auto; padding: 16px 14px 8px; display: flex; flex-direction: column; gap: 10px;
  background-image: radial-gradient(rgba(56, 64, 74, .07) 1px, transparent 1.4px); background-size: 20px 20px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.7; white-space: pre-line; animation: slideUp .25s ease; }
.msg-bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-start-start-radius: 4px; color: var(--ink-900); }
.msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-start-end-radius: 4px; }
.msg-typing { padding: 12px 14px; }
.msg-understood { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; max-width: 92%; font-size: .78rem; }
.msg-understood b { color: var(--sky-600); font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
.msg-understood span { padding: 3px 9px; border-radius: 99px; background: var(--sky-50); color: var(--ink-700); border: 1px solid rgba(84, 178, 212, .3); }
.msg-cards { align-self: stretch; display: grid; gap: 8px; }
.as-card { display: flex; gap: 10px; align-items: center; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s; animation: slideUp .3s ease both; }
.as-card:hover { border-color: var(--sky); }
.as-card img { width: 70px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.as-card-body { flex: 1; min-width: 0; line-height: 1.35; }
.as-card-body strong { display: block; font-size: .95rem; }
.as-card-body small { display: block; color: var(--muted); font-size: .76rem; }
.as-card-body em { display: block; font-style: normal; font-size: .76rem; color: var(--success); font-weight: 700; }
.as-card .match-ring { width: 42px; height: 42px; }
.as-card .match-ring span { font-size: .7rem; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; align-self: flex-start; }
.msg-actions a, .msg-actions button { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 99px; background: var(--ink); color: #fff; }
.msg-actions .ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.as-chips { display: flex; gap: 6px; overflow-x: auto; padding: 6px 14px; scrollbar-width: none; }
.as-chips::-webkit-scrollbar { display: none; }
.as-chips button { flex: none; padding: 7px 12px; border-radius: 99px; border: 1px solid rgba(84, 178, 212, .45); background: #fff; color: var(--ink-900); font-size: .84rem; font-weight: 500; }
.as-chips button:hover { background: var(--sky-50); }
.as-form { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.as-form input { flex: 1; min-width: 0; border: 1.5px solid var(--line-strong); border-radius: 14px; padding: 10px 14px; background: var(--paper); font-size: 16px; }
.as-form input:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(84, 178, 212, .15); }
.as-send { width: 46px; flex: none; border-radius: 14px; background: var(--ink); color: var(--sky); display: grid; place-items: center; }
.as-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 14px 10px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: #fff; font-size: .72rem; color: var(--muted); }
.as-foot span { display: inline-flex; align-items: center; gap: 4px; }
.as-foot .icon { color: var(--sky-600); width: 13px; height: 13px; }
.as-foot button { color: var(--sky-600); font-weight: 600; font-size: .72rem; }

/* Hero / listing "اسأل شور" prompt */
.ask-bar { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px; padding-inline-start: 16px; background: #fff; border-radius: 18px; box-shadow: 0 14px 40px -20px rgba(38, 44, 51, .45); border: 1.5px solid rgba(84, 178, 212, .45); max-width: 560px; }
.ask-bar::before { content: ""; position: absolute; inset: -1.5px; border-radius: 19px; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ai-angle), var(--sky), transparent 25%, transparent 60%, var(--sky)); animation: aiSpin 5s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.ask-bar > .icon { color: var(--sky-600); width: 22px; height: 22px; flex: none; }
.ask-bar input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 1rem; padding: 10px 0; color: var(--ink-900); }
.ask-bar input::placeholder { color: #9AA0A6; }
.ask-bar .btn { flex: none; min-height: 44px; border-radius: 13px; }
.ask-hint { font-size: .82rem; color: var(--ink-700); margin: 8px 4px 0; opacity: .8; }
.listing-ask { margin: 0 0 16px; max-width: none; }

/* Personal match chip on cards + project fit */
.pm-chip { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px;
  background: rgba(38, 44, 51, .88); color: #fff; font-size: .76rem; font-weight: 700; backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(84, 178, 212, .6), 0 0 18px rgba(84, 178, 212, .45); }
.pm-chip .icon { color: var(--sky); width: 14px; height: 14px; }
.fit-box { display: flex; gap: 14px; align-items: flex-start; margin-top: 14px; padding: 16px; border-radius: var(--radius); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.fit-box::after { content: ""; position: absolute; width: 160px; height: 2px; background: var(--sky); top: 20px; inset-inline-end: -30px; transform: rotate(-38deg); opacity: .8; }
.fit-box .match-ring { width: 64px; height: 64px; }
.fit-box .match-ring .track { stroke: rgba(255, 255, 255, .15); }
.fit-box .match-ring span { color: #fff; font-size: .9rem; }
.fit-box h3 { color: #fff; font-size: 1.05rem; margin: 0 0 4px; }
.fit-box ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 3px; font-size: .9rem; color: var(--sand); }
.fit-box ul .icon { color: var(--sky); }
.fit-box a { color: var(--sky); font-size: .85rem; font-weight: 600; }
.results-query { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-weight: 600; color: var(--ink-900); margin: -4px 0 10px; }
.results-query .icon { color: var(--sky-600); }
.results-query span { color: var(--muted); font-weight: 500; }
.ai-insight::after { z-index: 0; }
.ai-insight > * { position: relative; z-index: 1; }
.fit-box ul { color: #EDE2DC; }

/* ---------------------------------------------------------------- Shoor v2: purpose & affordability */
.tiles-2 { grid-template-columns: 1fr; }
@media (min-width: 560px) { .tiles-2 { grid-template-columns: 1fr 1fr; } }
.tile-big span { min-height: 130px; padding: 18px 14px; }
.tile-big span .icon { width: 32px; height: 32px; }
.tile-big small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.5; }
.tile-big input:checked + span small { color: var(--sand); }
.fin-grid { display: grid; gap: 18px; }
.money-input { display: flex; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 14px; background: #fff; padding-inline-end: 14px; transition: border-color .2s, box-shadow .2s; }
.money-input:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(84, 178, 212, .15); }
.money-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 13px 16px; font-size: 1.15rem; font-weight: 700; direction: ltr; text-align: right; }
.money-input em { font-style: normal; color: var(--muted); font-weight: 500; }
.chip-btn { padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line-strong); background: #fff; font-size: .85rem; font-weight: 600; direction: ltr; }
.chip-btn:hover { border-color: var(--sky); background: var(--sky-50); }
.cap-preview { display: flex; gap: 14px; align-items: center; margin-top: 20px; padding: 16px 18px; border-radius: 18px; background: var(--ink); color: #fff; position: relative; overflow: hidden; animation: slideUp .35s ease; }
.cap-preview::after { content: ""; position: absolute; width: 140px; height: 2px; background: var(--sky); top: 18px; inset-inline-end: -26px; transform: rotate(-38deg); }
.cap-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(84, 178, 212, .15); color: var(--sky); flex: none; }
.cap-icon .icon { width: 24px; height: 24px; animation: aiTwinkle 2.4s ease-in-out infinite; }
.cap-preview small { display: block; color: var(--sand); font-size: .8rem; }
.cap-preview strong { display: block; font-size: 1.35rem; line-height: 1.3; }
.cap-preview strong b { color: var(--sky); }
.cap-preview em { font-style: normal; font-size: .82rem; color: rgba(255, 255, 255, .75); }
.fin-note { display: flex; gap: 6px; align-items: center; font-size: .8rem; color: var(--muted); margin: 12px 0 0; }
.step-error { color: var(--danger); font-weight: 600; font-size: .9rem; margin: 14px 0 0; }

/* Results: capacity card + groups */
.cap-card { display: grid; gap: 14px; padding: 20px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; margin-bottom: 22px; position: relative; overflow: hidden; }
.cap-card::after { content: ""; position: absolute; width: 200px; height: 2px; background: var(--sky); top: 26px; inset-inline-end: -36px; transform: rotate(-38deg); }
.cap-card-top { display: flex; align-items: center; gap: 14px; }
.cap-card small { color: var(--sand); display: block; font-size: .82rem; }
.cap-card strong { font-size: clamp(1.4rem, 4vw, 1.9rem); display: block; line-height: 1.25; }
.cap-card strong b { color: var(--sky); }
.cap-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .9rem; color: rgba(255, 255, 255, .85); }
.cap-stats span { display: inline-flex; gap: 6px; align-items: center; }
.cap-stats .icon { color: var(--sky); }
.cap-disclaimer { font-size: .76rem; color: rgba(255, 255, 255, .6); margin: 0; }
.cap-card .btn { justify-self: start; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 1.15rem; margin: 26px 0 6px; }
.group-title:first-of-type { margin-top: 0; }
.group-sub { color: var(--muted); margin: 0 0 14px; font-size: .92rem; }
.installment { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: var(--sky-50); color: var(--ink-900); font-weight: 700; font-size: .9rem; margin: 2px 0 10px; }
.installment .icon { color: var(--sky-600); }
.installment small { color: var(--muted); font-weight: 500; }
.gap-note { display: inline-block; font-size: .85rem; color: #9A6A12; background: #FDF3E1; padding: 4px 10px; border-radius: 9px; margin: 2px 0 10px; font-weight: 600; }

/* How Shoor works */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: none; }
@media (min-width: 860px) { .how-steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.how-steps li { position: relative; padding: 24px 20px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.how-steps li::after { content: ""; position: absolute; width: 90px; height: 2px; background: var(--sky); top: 18px; inset-inline-end: -18px; transform: rotate(-38deg); opacity: .7; }
.how-num { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 2.6rem; font-weight: 700; color: var(--sand-100); line-height: 1; }
.how-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--ink); color: var(--sky); margin-bottom: 14px; }
.how-icon .icon { width: 26px; height: 26px; }
.how-steps strong { display: block; font-size: 1.12rem; color: var(--ink-900); margin-bottom: 6px; }
.how-steps p { margin: 0; color: var(--muted); font-size: .94rem; }
.how-cta { text-align: center; margin-top: 26px; }
