/* سما صاع للعقارات: الواجهة (2026-11-19، النسخة المختصرة)
   أربع أقسام بس: أول الصفحة، والخدمات، والباقات مع الحاسبة، والتواصل.
   الألوان من الهوية: الرملي #D2BC92 للشريط اللي فيه الشعار، وخلفية فاتحة وحدة، والأخضر الإماراتي للأزرار.
   زر «دخول النظام» و«شوف الباقات» من Magic UI «Interactive Hover Button» (magicui.design, MIT). */

:root {
  --sand: #D2BC92;
  --paper: #FAF7F1;
  --card: #FFFFFF;
  --tint: #F1EBDF;
  --ink: #1B1611;
  --soft: #54483A;
  --line: #E4DACA;
  --green: #00732F;
  --green-2: #005C26;
  --red: #C8102E;
  --night: #16120E;
  --r: 18px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --f: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --pad: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 18px/1.65 var(--f); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.25em; }
::selection { background: var(--ink); color: var(--sand); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 900; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; background: var(--ink); color: var(--sand); padding: 10px 16px; z-index: 50; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { width: min(1120px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* Buttons: one shape */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 0;
  font: 800 17px/1 var(--f); text-decoration: none; cursor: pointer; white-space: nowrap;
  touch-action: manipulation; user-select: none; -webkit-user-select: none;
  transition: transform 160ms var(--ease), background-color 200ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn-go { background: var(--green); color: #fff; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); } /* taste-skill-ignore: the button's own outline */
.btn-line .ih-dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; transition: transform 420ms var(--ease); }
.btn-line .ih-text { display: inline-block; transition: transform 300ms var(--ease), opacity 300ms ease; }
.btn-line .ih-over { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--sand); opacity: 0; transform: translateX(-24px); transition: transform 300ms var(--ease), opacity 300ms ease; }
.btn-line .ih-over svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.9); } /* taste-skill-ignore: outline */
.btn-light .ih-over { color: var(--ink); }
.btn-light .ih-dot { background: #fff; }
@media (hover: hover) and (pointer: fine) {
  .btn-go:hover { background: var(--green-2); }
  .btn-line:hover .ih-dot { transform: scale(60); }
  .btn-line:hover .ih-text { transform: translateX(-24px); opacity: 0; }
  .btn-line:hover .ih-over { transform: none; opacity: 1; }
}

/* Bar */
.bar { position: sticky; top: 0; z-index: 20; background: var(--sand); padding-top: env(safe-area-inset-top, 0px); }
.bar-in { display: flex; align-items: center; gap: 28px; min-height: 66px; }
.bar-name { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 19px; text-decoration: none; white-space: nowrap; }
.bar-name img { height: 40px; width: auto; }
.bar-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 16px; font-weight: 700; }
.bar-links a { text-decoration: none; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { .bar-links a:hover { text-decoration: underline; text-decoration-thickness: 2px; } }

/* 1. First screen */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--night); min-height: min(82svh, 760px); display: grid; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; opacity: 0; transition: opacity 1.4s ease; }
.hero-bg img.on { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(18,14,10,.84) 0%, rgba(18,14,10,.6) 45%, rgba(18,14,10,.15) 80%); } /* taste-skill-ignore: scrim so the words read on the photo */
.hero-in { padding: 72px 0; color: #FBF6EC; }
.hero-kick { font-size: 18px; font-weight: 800; color: var(--sand); margin-bottom: 10px; }
.hero h1 { color: #fff; font-size: clamp(40px, 5vw, 66px); max-width: 14ch; }
.hero-lede { color: #EFE6D6; font-size: 20px; margin: 16px 0 30px; max-width: 34ch; }
.hero-act { display: flex; flex-wrap: wrap; gap: 12px; }

/* Sections */
.sec { padding: clamp(64px, 8vw, 100px) 0; }
.sec-title { font-size: clamp(30px, 3.2vw, 42px); text-align: center; margin-bottom: 28px; }

/* 2. Services */
.svc-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 18px; }
.svc-tabs button { border: 0; border-radius: 999px; padding: 12px 20px; background: var(--card); font: 800 17px/1 var(--f); color: var(--soft); cursor: pointer; touch-action: manipulation; transition: background-color 200ms ease, color 200ms ease; }
.svc-tabs button[aria-selected="true"] { background: var(--c); color: #fff; }
.svc-panel { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--card); border-radius: 22px; padding: 28px 32px; max-width: 760px; margin: 0 auto; }
.svc-ic { width: 72px; height: 72px; padding: 14px; border-radius: 50%; background: color-mix(in srgb, var(--c) 12%, #fff); fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.svc-panel h3 { font-size: 26px; color: var(--c); margin-bottom: 6px; }
.svc-panel p { color: var(--soft); max-width: 52ch; }
.svc-panel.swap > * { animation: fadeUp .4s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.strip li { position: relative; border-radius: 16px; overflow: hidden; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.strip span { position: absolute; inset-inline-start: 10px; bottom: 10px; background: rgba(22,18,14,.78); color: #fff; font-size: 15px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }

/* 3. Packages */
.packages { background: var(--card); }
.pk-tabs { display: none; }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.pk { position: relative; border-radius: 20px; padding: 26px 24px; background: var(--paper); }
.pk h3 { display: flex; justify-content: space-between; align-items: baseline; font-size: 24px; }
.pk h3 b { font-size: 44px; font-weight: 900; font-variant-numeric: tabular-nums; }
.pk-what { font-weight: 800; color: var(--soft); margin: 2px 0 14px; }
.pk ul { display: grid; gap: 8px; font-size: 16px; }
.pk li { padding-inline-start: 24px; position: relative; line-height: 1.45; }
.pk li::before { content: ""; position: absolute; inset-inline-start: 0; top: 4px; width: 15px; height: 15px; background: var(--green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 15px no-repeat; }
.pk li.no { color: var(--red); font-weight: 700; }
.pk li.no::before { background: var(--red); }
.pk details { margin-top: 14px; }
.pk summary { cursor: pointer; font-weight: 800; font-size: 16px; color: var(--green); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.pk summary::-webkit-details-marker { display: none; }
.pk summary::after { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid currentColor; border-block-end: 2px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease); margin-top: -4px; }
.pk details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.pk details ul { margin-top: 6px; }
.pk-sub { font-weight: 800; font-size: 15px; margin: 12px 0 6px; }
.pk-gold { background: #F6EAC8; }
.pk-diamond { background: var(--night); color: #EFE8DC; }
.pk-diamond .pk-what { color: #CFC6B8; }
.pk-diamond h3 b { color: #F3E3BE; }
.pk-diamond li::before { background: #7FD6A2; }
.pk-diamond summary { color: #7FD6A2; }
.pk-badge { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--green); color: #fff; font-size: 14px; font-weight: 800; padding: 5px 14px; border-radius: 999px; }
.extras { text-align: center; color: var(--soft); margin: 18px 0 0; font-size: 16px; }

.calc { margin-top: 28px; background: var(--paper); border-radius: 22px; padding: 26px 28px; display: grid; grid-template-columns: 1fr 1.5fr; gap: 16px 28px; align-items: end; }
.calc h3 { font-size: 22px; margin-bottom: 10px; }
.calc label { display: block; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.calc input { width: 100%; height: 58px; border: 0; border-radius: 14px; background: var(--card); font: 800 24px/1 var(--f); color: var(--ink); padding: 0 18px; font-variant-numeric: tabular-nums; }
.calc input:focus-visible { outline: 3px solid var(--green); outline-offset: 0; }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-pk { background: var(--card); border-radius: 14px; padding: 12px 16px; display: grid; gap: 2px; text-decoration: none; transition: transform 160ms var(--ease), background-color 200ms ease; }
.calc-pk:active { transform: scale(.98); }
.calc-pk.dark { background: var(--night); color: #F3E3BE; }
.calc-pk span { font-size: 14px; font-weight: 700; }
.calc-pk b { font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.calc-pk i { font-style: normal; font-size: 14px; font-weight: 800; color: var(--green); }
.calc-pk.dark i { color: #7FD6A2; }
@media (hover: hover) and (pointer: fine) { .calc-pk:hover { background: var(--tint); } .calc-pk.dark:hover { background: #2A231B; } }
.calc-note { grid-column: 1 / -1; font-size: 14px; color: var(--soft); }

/* 4. Contact */
.contact-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.ask { background: var(--sand); border-radius: 22px; padding: 30px 28px; }
.ask h2, .side-title { font-size: clamp(28px, 3vw, 38px); }
.ask-lede { margin: 6px 0 18px; color: #3D3328; }
.ask fieldset { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.ask legend { font-weight: 800; font-size: 16px; margin-bottom: 8px; padding: 0; }
.ask label { position: relative; }
.ask input { position: absolute; opacity: 0; pointer-events: none; }
.ask label span { display: inline-block; padding: 10px 18px; border-radius: 999px; background: rgba(255,255,255,.6); font-weight: 800; font-size: 16px; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.ask input:checked + span { background: var(--ink); color: var(--sand); }
.ask input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.ask-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.side-title { margin-bottom: 16px; }
.qa { display: grid; gap: 10px; }
.qa details { background: var(--card); border-radius: 16px; padding: 4px 20px; }
.qa summary { list-style: none; cursor: pointer; font-size: 18px; font-weight: 800; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 10px; height: 10px; flex: none; border-inline-end: 2px solid var(--ink); border-block-end: 2px solid var(--ink); transform: rotate(45deg); transition: transform 220ms var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa p { font-size: 16px; color: var(--soft); padding: 0 0 16px; }
.rows { margin: 22px 0 0; display: grid; gap: 8px; font-size: 16px; }
.rows div { display: grid; grid-template-columns: 6em 1fr; gap: 10px; }
.rows dt { color: var(--soft); font-weight: 700; }
.rows dd { margin: 0; font-weight: 800; }

/* Footer */
.foot { background: var(--night); color: #E9E3D9; padding: 36px 0 calc(36px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; }
.foot-name { font-size: 21px; font-weight: 900; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; font-size: 16px; }
.foot a { color: #E9E3D9; }
.legal { width: 100%; font-size: 14px; color: #B9AF9F; }

/* WhatsApp: a clear «كلمنا» */
.wa-float { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 18px 0 14px; border-radius: 999px; background: var(--green); color: #fff; font: 800 17px/1 var(--f); text-decoration: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.55); transition: transform 140ms var(--ease); } /* taste-skill-ignore: floats over the page */
.wa-float:active { transform: scale(.96); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* Entrances: one gentle rise per section */
.js .sec > .wrap { opacity: 0; transform: translateY(18px); transition: opacity 600ms var(--ease), transform 700ms var(--ease); }
.js .sec.in > .wrap { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .sec > .wrap { transform: none; transition: opacity 200ms ease; } }

/* Tablet */
@media (max-width: 980px) {
  .bar-links { display: none; }
  .bar .btn { margin-inline-start: auto; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .contact-in { grid-template-columns: 1fr; }
}
/* Phone */
@media (max-width: 760px) {
  .bar-name { font-size: 17px; }
  .bar-name img { height: 32px; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(18,14,10,.9) 0%, rgba(18,14,10,.68) 60%, rgba(18,14,10,.3) 100%); } /* taste-skill-ignore: scrim */
  .hero-in { padding: 64px 0 56px; }
  .hero-act .btn { flex: 1 1 100%; }
  .svc-tabs { gap: 8px; }
  .svc-tabs button { padding: 10px 16px; font-size: 16px; }
  .svc-panel { grid-template-columns: 1fr; text-align: center; padding: 24px 20px; justify-items: center; }
  .pk-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
  .pk-tabs button { border: 0; border-radius: 999px; padding: 10px 20px; background: var(--paper); font: 800 16px/1 var(--f); color: var(--soft); cursor: pointer; }
  .pk-tabs button[aria-selected="true"] { background: var(--ink); color: var(--sand); }
  .pk-grid { grid-template-columns: 1fr; }
  .js .pk:not(.show) { display: none; }
  .calc { grid-template-columns: 1fr; padding: 22px; }
  .calc-out { grid-template-columns: 1fr; }
  .calc-pk { grid-template-columns: 1fr auto auto; align-items: baseline; gap: 12px; }
  .ask { padding: 26px 20px; }
  .ask-act .btn { flex: 1 1 100%; }
  .rows div { grid-template-columns: 1fr; gap: 0; }
}
.extras, .calc-note { max-width: 70ch; } .extras { margin-inline: auto; }
.hero-lede { max-width: 38ch; }

/* Illustrative photos say so where they are */
.demo-tag { position: absolute; inset-inline-end: 12px; top: 12px; margin: 0; font-size: 13px; font-weight: 700; color: #fff; background: rgba(22,18,14,.6); padding: 4px 12px; border-radius: 999px; }
.demo-note { text-align: center; font-size: 14px; color: var(--soft); margin-top: 12px; }

/* Packages side by side */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pk-compare { margin: 20px auto 0; max-width: 820px; background: var(--paper); border-radius: 20px; padding: 6px 22px; }
.pk-compare summary { list-style: none; cursor: pointer; font-weight: 800; font-size: 18px; min-height: 56px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.pk-compare summary::-webkit-details-marker { display: none; }
.pk-compare summary::after { content: ""; width: 10px; height: 10px; flex: none; border-inline-end: 2px solid var(--ink); border-block-end: 2px solid var(--ink); transform: rotate(45deg); transition: transform 220ms var(--ease); }
.pk-compare[open] summary::after { transform: rotate(-135deg); }
.cmp-wrap { overflow-x: auto; }
.pk-compare table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pk-compare th, .pk-compare td { padding: 10px 8px; text-align: center; border-top: 1px solid var(--line); } /* taste-skill-ignore: table rows */
.pk-compare thead th { border-top: 0; font-weight: 900; }
.pk-compare tbody th { text-align: start; font-weight: 700; }
.pk-compare td.y { color: var(--green); font-weight: 900; font-size: 18px; }
.pk-compare td.n { color: #A89A86; }
.cmp-note { font-size: 14px; color: var(--soft); padding: 10px 0 16px; }
@media (max-width: 760px) {
  .pk-compare { padding: 4px 14px; }
  .pk-compare table { font-size: 14px; }
  .pk-compare th, .pk-compare td { padding: 9px 4px; }
}

/* Language menu in the bar */
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; font: 800 15px/1 var(--f); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lang ul { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 25; min-width: 150px; padding: 6px; background: var(--card); border-radius: 14px; box-shadow: 0 14px 30px -12px rgba(27,22,17,.45); } /* taste-skill-ignore: menu floats over the page */
.lang a { display: block; padding: 11px 14px; border-radius: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.lang a[aria-current="page"] { color: var(--green); font-weight: 900; }
.lang a:lang(ar), .lang a:lang(ur) { font-family: "Tajawal", "Noto Naskh Arabic", sans-serif; }
@media (hover: hover) and (pointer: fine) { .lang a:hover { background: var(--tint); } .lang summary:hover span { text-decoration: underline; text-decoration-thickness: 2px; } }
@media (max-width: 980px) { .bar-links + .lang { margin-inline-start: auto; } .bar .lang + .btn { margin-inline-start: 0; } }

/* Fonts per language: Urdu in Naskh, Chinese in Noto Sans SC with Tajawal for Latin and digits */
:root:lang(ur) { --f: "Noto Naskh Arabic", "Tajawal", serif; }
:lang(ur) body { line-height: 1.9; }
:root:lang(zh) { --f: "Tajawal", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

/* English page (left to right) */
[dir="ltr"] .hero::before { background: linear-gradient(90deg, rgba(18,14,10,.84) 0%, rgba(18,14,10,.6) 45%, rgba(18,14,10,.15) 80%); } /* taste-skill-ignore: scrim */
[dir="ltr"] .btn-line .ih-over { transform: translateX(24px); }
[dir="ltr"] .btn-line .ih-over svg { transform: scaleX(-1); }
[dir="ltr"] .wa-float { left: auto; right: 16px; }
[dir="ltr"] .hero h1 { max-width: 16ch; }
[dir="ltr"] .rows div { grid-template-columns: 7em 1fr; }
@media (hover: hover) and (pointer: fine) { [dir="ltr"] .btn-line:hover .ih-text { transform: translateX(24px); } [dir="ltr"] .btn-line:hover .ih-over { transform: none; } }
@media (max-width: 760px) { [dir="ltr"] .hero::before { background: linear-gradient(0deg, rgba(18,14,10,.9) 0%, rgba(18,14,10,.68) 60%, rgba(18,14,10,.3) 100%); } } /* taste-skill-ignore: scrim */
/* Small phones: the logo already carries the name, so the bar keeps logo, language and login on one line */
@media (max-width: 440px) {
  .bar-in { gap: 12px; }
  .bar-name { font-size: 0; gap: 0; }
  .bar-name img { height: 36px; }
  .bar .btn { flex: none; }
}
