/* مكاني للاستثمار الزراعي والتنمية الزراعية — public site. RTL, Arabic-first, no external fonts or services. */
:root {
  --g-950: #0c241a; --g-900: #0f2a1f; --g-800: #173c2d; --g-700: #1f4d39; --g-600: #2a6249; --g-100: #e6efe8; --g-50: #f2f7f3;
  --gold: #c9a24a; --gold-700: #9c7a2c; --gold-100: #f6ecd4;
  --sand-50: #fbf8f2; --sand-100: #f4efe4; --sand-200: #e8dfcc;
  --ink: #14231c; --muted: #56655d; --line: #dbe2da; --white: #fff;
  --danger: #a3372a; --danger-50: #fbecea; --success: #1d6f45; --wa: #136b3e;
  --radius: 18px; --radius-sm: 10px; --shadow: 0 12px 32px rgba(12, 36, 26, .10); --shadow-sm: 0 2px 10px rgba(12, 36, 26, .07);
  --font: "Segoe UI", "Noto Sans Arabic", "Noto Kufi Arabic", "SF Arabic", "Geeza Pro", Tahoma, Arial, sans-serif;
  --focus: 0 0 0 3px var(--white), 0 0 0 6px var(--gold-700);
  --header-h: 76px;
}
[data-palette="olive"] { --g-950: #1a2512; --g-900: #22301a; --g-800: #2f4220; --g-700: #3b5329; --g-600: #4b6835; --g-100: #ebf0e3; --g-50: #f5f8f0; }
[data-palette="pine"] { --g-950: #081914; --g-900: #0b221c; --g-800: #12352a; --g-700: #184536; --g-600: #205742; --g-100: #e3eeea; --g-50: #f1f7f4; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.8; color: var(--ink); background: var(--sand-50); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--g-700); text-underline-offset: 3px; }
a:hover { color: var(--g-900); }
h1, h2, h3 { line-height: 1.3; color: var(--g-900); margin: 0 0 .5em; font-weight: 800; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--white); color: var(--g-900); padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 32px); }
.muted { color: var(--muted); }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }
.icon-lg { width: 44px; height: 44px; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .65em 1.35em; border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { min-height: 54px; padding-inline: 1.6em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--g-800); color: var(--white); }
.btn-primary:hover { background: var(--g-950); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--g-950); }
.btn-gold:hover { background: #d8b45f; color: var(--g-950); }
.btn-outline { background: var(--white); color: var(--g-800); border-color: var(--g-800); }
.btn-outline:hover { background: var(--g-50); color: var(--g-950); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: var(--white); border-color: rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); color: var(--white); }
.btn-whatsapp { background: var(--wa); color: var(--white); }
.btn-whatsapp:hover { background: #0e5631; color: var(--white); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }
.text-link { font-weight: 700; color: var(--g-700); }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.2) blur(6px); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--g-900); min-width: 0; margin-inline-end: auto; }
.brand-logo { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-sm); display: grid; place-items: center; overflow: hidden; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo-sm { width: 44px; height: 44px; box-shadow: none; }
.brand-text { min-width: 0; }
.brand-name { font-weight: 800; font-size: 1rem; line-height: 1.35; display: block; }
.brand-name-short { display: none; }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.site-nav ul a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .98rem; }
.site-nav ul a:hover { background: var(--g-50); color: var(--g-900); }
.header-cta { min-height: 44px; padding-block: .5em; }
.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--g-900); font: inherit; font-weight: 700; cursor: pointer; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.nav-toggle-bars::before { position: absolute; top: -6px; }
.nav-toggle-bars::after { position: absolute; top: 6px; }

@media (max-width: 1060px) {
  .brand-name-full { display: none; }
  .brand-name-short { display: block; }
}
@media (max-width: 960px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { position: absolute; inset-inline: 0; top: 100%; display: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px 18px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .js .site-nav.is-open { display: flex; }
  .js .site-nav ul { flex-direction: column; }
  .js .site-nav ul a { padding: 12px; font-size: 1.05rem; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 10px; }
  .no-js .site-nav { width: 100%; flex-wrap: wrap; }
}

/* ------------------------------------------------------------------ hero */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--g-900); min-height: clamp(480px, 74vh, 700px); display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(270deg, rgba(12, 36, 26, .92) 0%, rgba(12, 36, 26, .72) 45%, rgba(12, 36, 26, .30) 100%), linear-gradient(0deg, rgba(12, 36, 26, .55), rgba(12, 36, 26, 0) 45%); }
.hero-inner { padding-block: clamp(56px, 9vw, 110px); max-width: 1180px; }
.hero h1 { color: var(--white); max-width: 21ch; margin-bottom: .4em; text-wrap: balance; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-100); font-weight: 700; margin-bottom: 14px; }
.hero .eyebrow::before { content: ""; width: 32px; height: 2px; background: var(--gold); }
.hero-text { font-size: clamp(1.08rem, 1.8vw, 1.3rem); color: #e9f1ec; max-width: 56ch; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
  .hero::before { background: linear-gradient(0deg, rgba(12, 36, 26, .95) 0%, rgba(12, 36, 26, .78) 55%, rgba(12, 36, 26, .45) 100%); }
  .hero { min-height: 520px; align-items: flex-end; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* ------------------------------------------------------------------ sections */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section-properties { background: var(--sand-50); }
.section-about { background: var(--white); }
.section-services { background: var(--sand-100); }
.section-process { background: var(--sand-100); }
.section-faq { background: var(--white); }
.section-calculator { background: var(--g-100); }
.section-contact { background: linear-gradient(180deg, var(--g-50), var(--sand-100)); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 44px); }
.kicker { color: var(--gold-700); font-weight: 800; font-size: .95rem; margin-bottom: 8px; }
.section-intro { color: var(--muted); font-size: 1.08rem; }

/* properties */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 24px; }
.property-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--g-100); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 800; line-height: 1.5; }
.card-media .badge { position: absolute; top: 12px; inset-inline-start: 12px; }
.badge-available { background: var(--g-800); color: var(--white); }
.badge-reserved { background: var(--gold); color: var(--g-950); }
.badge-sold { background: #4a4a4a; color: var(--white); }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-ref, .ref { font-size: .85rem; color: var(--muted); font-weight: 700; letter-spacing: .02em; margin: 0; }
.card-title { margin: 0; font-size: 1.22rem; }
.card-title a { color: var(--g-900); text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.card-location { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); margin: 0; }
.card-location .icon { margin-top: .35em; }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; padding: 12px 0 0; border-top: 1px solid var(--line); }
.card-facts dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; }
.card-facts dd { margin: 2px 0 0; font-weight: 800; color: var(--g-900); }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.empty-state { background: var(--white); border: 1px dashed var(--sand-200); border-radius: var(--radius); padding: clamp(28px, 5vw, 48px); text-align: center; max-width: 720px; margin-inline: auto; }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* about */
.about-grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
.about-grid.has-image { grid-template-columns: 1.1fr .9fr; }
.about-grid:not(.has-image) .about-text { max-width: 780px; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.check-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.check-list .icon { color: var(--white); background: var(--g-700); border-radius: 50%; padding: 3px; width: 24px; height: 24px; margin-top: .25em; }

/* services */
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.feature-card p { color: var(--muted); margin: 0; }

/* process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 26px 22px 22px; border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, arabic-indic); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--g-800); color: var(--white); font-weight: 800; font-size: 1.15rem; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }

/* faq */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--sand-50); border: 1px solid var(--line); border-radius: 14px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 20px; font-weight: 800; color: var(--g-900); display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--gold-700); }
.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 6px; color: var(--muted); }

/* calculator teaser */
.teaser { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.teaser p { color: var(--muted); max-width: 60ch; margin: 0; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.contact-form-card { background: var(--white); border-radius: var(--radius); padding: clamp(20px, 4vw, 34px); box-shadow: var(--shadow); border: 1px solid var(--line); }

/* forms */
.inquiry-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--g-900); }
.optional { color: var(--muted); font-weight: 400; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid #c9d2c9; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; }
.field textarea { min-height: 96px; resize: vertical; }
.field input[dir="ltr"] { text-align: left; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--g-700); box-shadow: 0 0 0 3px rgba(31, 77, 57, .25); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-weight: 700; font-size: .92rem; margin: 6px 0 0; }
.form-alert { background: var(--danger-50); border: 1px solid #ecc1ba; color: #7b261b; border-radius: var(--radius-sm); padding: 12px 14px; font-weight: 700; }
.form-note { background: var(--gold-100); border-radius: var(--radius-sm); padding: 10px 14px; margin: 0; font-size: .95rem; color: #5a4614; }
.form-property { margin: 0; padding: 12px 14px; background: var(--g-50); border-radius: var(--radius-sm); }
.privacy-note { margin: 0; font-size: .9rem; color: var(--muted); }
.btn-submit { justify-self: start; min-width: 200px; }
.hp-field { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ property page */
.property-page { padding-block: 28px 72px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 18px; color: var(--muted); font-size: .95rem; }
.breadcrumb li:not(:last-child)::after { content: "‹"; margin-inline-start: 6px; color: #9aa69f; }
.property-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 8px 0; }
.property-badges { display: flex; align-items: center; gap: 12px; }
.property-location { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 1.05rem; }
.property-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; margin-top: 18px; align-items: start; }
.gallery-main { margin: 0; background: var(--g-100); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.gallery-main figcaption { padding: 10px 14px; font-size: .92rem; color: var(--muted); background: var(--white); }
.gallery-thumbs { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; padding: 0; margin: 12px 0 0; }
.gallery-thumbs a { display: block; border-radius: 10px; overflow: hidden; border: 2px solid transparent; }
.gallery-thumbs a[aria-current="true"] { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.property-summary { position: sticky; top: calc(var(--header-h) + 16px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.summary-list { margin: 0 0 18px; display: grid; gap: 14px; }
.summary-list div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.summary-list dt { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 800; color: var(--g-900); text-align: end; }
.summary-actions { display: grid; gap: 10px; }
.summary-disclaimer { margin: 14px 0 0; font-size: .86rem; color: var(--muted); }
.sold-note { background: var(--sand-100); padding: 12px; border-radius: var(--radius-sm); }
.property-section { margin-top: 44px; max-width: 820px; }
.property-section .lead { font-size: 1.12rem; color: var(--ink); }
.facts-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.facts-list div { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.facts-list dt { color: var(--muted); font-size: .92rem; font-weight: 700; }
.facts-list dd { margin: 4px 0 0; }
.property-inquiry { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 32px); box-shadow: var(--shadow-sm); }

/* simple pages */
.page-article { padding-block: 32px 80px; }
.page-article .lead { font-size: 1.12rem; color: var(--muted); }
.page-article section { margin-top: 28px; }
.thanks { text-align: center; }
.thanks-icon { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--g-100); color: var(--g-800); margin: 24px 0 8px; }
.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--g-950); color: #d6e2db; padding-top: 48px; }
.site-footer a { color: #f1e2bd; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand strong { color: var(--white); display: block; margin-bottom: 4px; }
.footer-brand p { margin: 0; color: #b9c9c0; font-size: .95rem; }
.footer-contact, .footer-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.social-links { margin-top: 14px !important; display: flex !important; flex-wrap: wrap; gap: 12px !important; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 18px; font-size: .9rem; color: #9fb3a8; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .about-grid.has-image, .contact-grid, .property-layout, .footer-grid { grid-template-columns: 1fr; }
  .property-summary { position: static; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
  .card-facts { grid-template-columns: 1fr 1fr; }
  .brand-logo { width: 44px; height: 44px; }
  .header-inner { gap: 10px; }
}
@media print {
  .site-header, .site-footer, .hero-actions, .inquiry-form, .summary-actions, .nav-toggle, .contact-direct { display: none !important; }
  .hero { min-height: auto; color: #000; background: none; }
  .hero::before, .hero-media { display: none; }
  .hero h1, .hero-text { color: #000; }
  body { background: #fff; }
}
/* Approved public visual demonstration (not for sale): fixed disclosures, always visible */
.badge-demo { background: #5b2d8c; color: var(--white); }
.property-card.is-demo { outline: 2px dashed var(--gold-700); outline-offset: -2px; }
.demo-image-note { margin: 0; padding: 6px 12px; background: #2b2b2b; color: var(--white); font-size: .84rem; line-height: 1.5; text-align: center; }
.gallery-main .demo-image-note { border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.demo-label { display: inline-block; margin: 0 0 8px; padding: 4px 10px; border-radius: 8px; background: var(--gold-100); color: #5a4614; font-weight: 800; font-size: .92rem; line-height: 1.5; }
.demo-area { margin-top: clamp(28px, 5vw, 44px); padding-top: clamp(20px, 4vw, 32px); border-top: 1px dashed var(--sand-200); }
.demo-area-title { margin: 0 0 6px; font-size: 1.25rem; }
.demo-area-note { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.demo-banner { display: grid; gap: 4px; margin: 0 0 20px; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--gold-100); border: 1px solid var(--gold); color: #4a3a10; }
.demo-banner strong { font-size: 1.1rem; }
.demo-note { margin: 14px 0 8px; color: var(--muted); font-size: .95rem; }
