/* DarOasis | دار اويسز
   Brand palette from the DAR OASIS logo & colour proposal. */
:root {
  --grey: #353b3f;
  --grey-900: #262a2d;
  --blue: #a3cece;
  --beige: #ddcba6;
  --pink: #e5cec6;
  --copper: #ba8146;
  --copper-dark: #9a6a37;
  --ivory: #faf7f2;
  --sand: #f3ede3;
  --ink: #2b3033;
  --muted: #6b7175;
  --line: #e6dfd3;
  --white: #ffffff;
  --wa: #25d366;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(38, 42, 45, 0.08);
  --shadow-lg: 0 24px 60px rgba(38, 42, 45, 0.16);
  --container: 1200px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; color: var(--grey); }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--grey); }
.brand svg { width: 40px; height: 46px; color: var(--copper); flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { letter-spacing: .32em; font-size: 15px; font-weight: 300; text-transform: uppercase; }
.brand-name b { font-weight: 800; }
.brand-ar { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
[dir="rtl"] .brand-name { letter-spacing: .22em; }

.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--grey);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--sand); }
.nav a[aria-current="page"] { color: var(--copper-dark); background: var(--sand); }
.lang-toggle {
  border: 1px solid var(--grey); background: transparent; border-radius: 999px;
  padding: 6px 16px; font-weight: 700; cursor: pointer; margin-inline-start: 8px;
}
.lang-toggle:hover { background: var(--grey); color: var(--white); }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--grey); margin: 5px 0; transition: transform .2s, opacity .2s; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    background: var(--ivory); padding: 16px 20px 24px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .25s; margin: 0;
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; }
  .lang-toggle { margin: 8px 0 0; align-self: flex-start; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 700; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s, background .2s, color .2s, box-shadow .2s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--copper); color: var(--white); box-shadow: 0 8px 20px rgba(186, 129, 70, .3); }
.btn-primary:hover { background: var(--copper-dark); }
.btn-dark { background: var(--grey); color: var(--white); }
.btn-dark:hover { background: var(--grey-900); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-light { background: var(--white); color: var(--grey); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #1fb457; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white);
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(163, 206, 206, .22), transparent 60%),
    radial-gradient(800px 500px at 10% 100%, rgba(186, 129, 70, .25), transparent 60%),
    var(--grey);
}
.hero .container { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; padding-block: 96px 110px; position: relative; z-index: 1; }
.hero h1 { color: var(--white); font-size: clamp(34px, 5vw, 58px); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--beige); }
.hero p.lead { font-size: 19px; color: rgba(255, 255, 255, .82); max-width: 560px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.eyebrow { display: inline-block; font-size: 13px; letter-spacing: .25em; text-transform: uppercase; font-weight: 700; color: var(--copper); margin-bottom: 14px; }
[dir="rtl"] .eyebrow { letter-spacing: 0; font-size: 15px; }
.hero .eyebrow { color: var(--blue); }
.hero-mark { color: var(--copper); width: 100%; max-width: 380px; justify-self: center; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.hero-mark svg { width: 100%; height: auto; }
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; padding-block: 64px 96px; gap: 32px; }
  .hero-mark { max-width: 140px; order: -1; justify-self: start; }
}
.hero-bg-mark { position: absolute; inset-inline-end: -120px; bottom: -160px; width: 520px; color: rgba(255,255,255,.04); pointer-events: none; }
.hero-bg-mark svg { width: 100%; height: auto; }

.page-hero { background: var(--grey); color: var(--white); padding-block: 72px 64px; position: relative; overflow: hidden; }
.page-hero h1 { color: var(--white); font-size: clamp(30px, 4vw, 46px); }
.page-hero p { color: rgba(255,255,255,.8); max-width: 640px; font-size: 18px; margin: 0; }
.page-hero .hero-bg-mark { width: 360px; bottom: -120px; }

/* Quick search in hero */
.quick-search {
  margin-top: -54px; position: relative; z-index: 5;
  background: var(--white); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px;
  display: grid; grid-template-columns: repeat(4, 1fr) auto; gap: 14px; align-items: end;
}
@media (max-width: 900px) { .quick-search { grid-template-columns: 1fr 1fr; } .quick-search .btn { grid-column: 1 / -1; } }
@media (max-width: 520px) { .quick-search { grid-template-columns: 1fr; } }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.field select, .field input, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--ivory); border-radius: 10px;
  padding: 11px 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field select:focus, .field input:focus, .field textarea:focus { border-color: var(--copper); box-shadow: 0 0 0 3px rgba(186,129,70,.15); }

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section-sand { background: var(--sand); }
.section-dark { background: var(--grey); color: rgba(255,255,255,.85); }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { color: var(--muted); font-size: 18px; }
.section-dark .section-head p { color: rgba(255,255,255,.7); }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Feature tiles */
.feature { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature .icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; background: var(--sand); color: var(--copper); }
.feature .icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 20px; }
.feature p { color: var(--muted); margin: 0; }
.feature:nth-child(4n+2) .icon { background: rgba(163,206,206,.35); color: var(--grey); }
.feature:nth-child(4n+3) .icon { background: rgba(229,206,198,.6); color: var(--copper-dark); }
.feature:nth-child(4n+4) .icon { background: rgba(221,203,166,.5); color: var(--grey); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-size: 44px; font-weight: 800; color: var(--beige); line-height: 1.1; }
.stat span { color: rgba(255,255,255,.75); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 36px; } }

/* ---------- Media placeholder ---------- */
.media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph { position: absolute; inset: 0; display: grid; place-items: center; }
.ph svg { width: 34%; max-width: 140px; height: auto; opacity: .55; }
.ph-blue  { background: linear-gradient(135deg, #b9dada, #8fbcbc); color: var(--white); }
.ph-beige { background: linear-gradient(135deg, #e8dbbf, #cdb588); color: var(--white); }
.ph-pink  { background: linear-gradient(135deg, #efdcd5, #d8b6aa); color: var(--white); }
.ph-grey  { background: linear-gradient(135deg, #4a5257, #2c3134); color: var(--copper); }

/* ---------- Cards ---------- */
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card:hover .media img { transform: scale(1.04); }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 20px; margin: 0; }
.card .loc { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.card .loc svg { width: 16px; height: 16px; color: var(--copper); flex: none; }
.card .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; padding: 4px 12px; border-radius: 999px; background: var(--sand); color: var(--grey); font-weight: 600; }
.chip-blue { background: rgba(163,206,206,.4); }
.chip-pink { background: rgba(229,206,198,.65); }
.badge {
  position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; background: var(--white); color: var(--grey);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px; box-shadow: var(--shadow);
}
.badge-copper { background: var(--copper); color: var(--white); }
.price { font-size: 22px; font-weight: 800; color: var(--grey); }
.price small { font-size: 13px; font-weight: 600; color: var(--muted); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Find page ---------- */
.finder { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.filters h3 { font-size: 18px; margin: 0; }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.results-head .count { font-weight: 700; color: var(--grey); }
.empty { text-align: center; padding: 60px 20px; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }
.empty p { color: var(--muted); }
.link-btn { background: none; border: 0; color: var(--copper-dark); font-weight: 700; cursor: pointer; padding: 0; text-decoration: underline; }
@media (max-width: 900px) { .finder { grid-template-columns: 1fr; } .filters { position: static; } }

/* ---------- Building detail ---------- */
.building-detail { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.building-detail .media { border-radius: var(--radius); aspect-ratio: 16 / 11; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.gallery .media { aspect-ratio: 1; border-radius: 10px; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 20px 0; }
.fact { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.fact span { display: block; font-size: 13px; color: var(--muted); }
.fact b { font-size: 18px; color: var(--grey); }
.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--copper-dark); font-weight: 700; margin-bottom: 18px; }
[dir="rtl"] .back-link svg, [dir="rtl"] .flip-rtl { transform: scaleX(-1); }
@media (max-width: 900px) { .building-detail { grid-template-columns: 1fr; } }

/* ---------- About / profile ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .visual { border-radius: 24px; overflow: hidden; aspect-ratio: 1; position: relative; }
.split .visual .ph svg { width: 46%; max-width: 240px; opacity: .9; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.values li { margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--copper); flex: none; margin-top: 3px; }

.districts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.district {
  border-radius: var(--radius); padding: 24px; color: var(--grey); position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px; min-height: 140px; justify-content: flex-end; transition: transform .2s;
}
.district:hover { transform: translateY(-3px); }
.district b { font-size: 20px; }
.district span { font-size: 14px; opacity: .8; }
.district:nth-child(4n+1) { background: var(--blue); }
.district:nth-child(4n+2) { background: var(--beige); }
.district:nth-child(4n+3) { background: var(--pink); }
.district:nth-child(4n+4) { background: var(--grey); color: var(--white); }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--copper), #c99a66); color: var(--white); border-radius: 24px;
  padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin: 0 0 6px; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { margin: 0; opacity: .9; }
@media (max-width: 600px) { .cta-band { padding: 36px 24px; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; }
.contact-card { background: var(--grey); color: rgba(255,255,255,.85); border-radius: 20px; padding: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact-card h3 { color: var(--white); }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: var(--beige); flex: none; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item span { display: block; font-size: 13px; color: rgba(255,255,255,.6); }
.contact-item a, .contact-item b { color: var(--white); font-weight: 700; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 36px; display: grid; gap: 16px; }
.form-card .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .form-card .row { grid-template-columns: 1fr; } .form-card, .contact-card { padding: 24px; } }
.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--grey-900); color: rgba(255,255,255,.7); padding-block: 64px 28px; margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: var(--white); font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--beige); }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer .brand-ar { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 800px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- WhatsApp widget ---------- */
.wa-widget { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.wa-fab {
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: var(--white); border: 0; cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); transition: transform .2s;
  position: relative;
}
.wa-fab:hover { transform: scale(1.06); }
.wa-fab svg { width: 32px; height: 32px; }
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: wa-pulse 2.4s infinite;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.wa-panel {
  width: min(340px, calc(100vw - 44px)); background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-lg);
  transform-origin: bottom right; transform: scale(.9); opacity: 0; pointer-events: none; transition: transform .2s, opacity .2s;
}
[dir="rtl"] .wa-panel { transform-origin: bottom left; }
.wa-widget.open .wa-panel { transform: none; opacity: 1; pointer-events: auto; }
.wa-panel header { background: #075e54; color: var(--white); padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.wa-panel header .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--grey); display: grid; place-items: center; color: var(--copper); flex: none; }
.wa-panel header .avatar svg { width: 26px; height: 30px; }
.wa-panel header b { display: block; line-height: 1.2; }
.wa-panel header small { opacity: .8; }
.wa-panel .close { margin-inline-start: auto; background: none; border: 0; color: var(--white); font-size: 22px; cursor: pointer; line-height: 1; }
.wa-panel .bubble-wrap { background: #ece5dd; padding: 18px; }
.wa-panel .bubble { background: var(--white); border-radius: 0 12px 12px 12px; padding: 12px 14px; font-size: 14px; max-width: 90%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
[dir="rtl"] .wa-panel .bubble { border-radius: 12px 0 12px 12px; }
.wa-panel .wa-actions { padding: 14px; display: grid; gap: 8px; }
.wa-panel .wa-actions .btn { width: 100%; }
@media (max-width: 520px) { .wa-widget { bottom: 16px; inset-inline-end: 16px; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .wa-fab::after { animation: none; }
  html { scroll-behavior: auto; }
}
