/* ============================================================
   مكتب الواحة العقاري — Public Site
   Theme: Navy + Bronze | Font: Cairo | Direction: RTL
   Powered by سهل
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-deep:   #0E1B2E;
  --navy:        #122036;
  --navy-rich:   #1B3050;
  --navy-line:   #24395C;
  --bronze:      #B0793E;
  --bronze-light:#D6A35F;
  --sand:        #E8DCC7;
  --paper:       #F4F5F7;
  --paper-2:     #E9ECF1;
  --white:       #FFFFFF;
  --ink:         #0C1420;
  --text-body:   #36415A;
  --text-muted:  #7A879E;

  --ok:    #1FAE7A;
  --warn:  #E89A2C;
  --err:   #E84D55;
  --done:  #7A879E;

  --font:  'Cairo', system-ui, sans-serif;
  --nav-h: 78px;
  --ease:  0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 48px; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
.section-eyebrow {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  color: var(--bronze); margin-bottom: 14px; display: block;
}
.section-eyebrow--light { color: var(--bronze-light); }

.section-title {
  font-size: clamp(32px, 4.5vw, 54px); font-weight: 900;
  line-height: 1.15; color: var(--navy-deep); margin-bottom: 18px;
}
.section-title em { font-style: normal; color: var(--bronze); }

.section-desc {
  font-size: 16px; font-weight: 300; color: var(--text-body);
  line-height: 1.9; max-width: 480px;
}
.section-header { margin-bottom: 54px; }
.section-header--centered { text-align: center; }
.section-header--centered .section-desc { margin: 0 auto; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; font-size: 15px; font-weight: 700;
  border: 1.5px solid transparent; transition: var(--ease); white-space: nowrap;
}
.btn--primary { background: var(--bronze); color: var(--white); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: transparent; border-color: var(--navy-line); color: var(--navy-deep); }
.btn--ghost:hover { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }
.btn--block { width: 100%; }
.btn--light { background: var(--white); color: var(--navy-deep); }
.btn--light:hover { background: var(--bronze); color: var(--white); }

/* ── NAV ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; transition: var(--ease);
  background: rgba(14, 27, 46, 0.0);
}
.nav.scrolled {
  background: rgba(14, 27, 46, 0.96); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--navy-line);
}
.nav__logo { display: flex; align-items: baseline; gap: 4px; color: var(--white); }
.nav__logo-mark {
  font-size: 26px; font-weight: 900; color: var(--bronze-light);
}
.nav__logo-text { font-size: 22px; font-weight: 800; }
.nav__logo-tag {
  font-size: 11px; font-weight: 600; color: var(--bronze-light);
  border: 1px solid var(--navy-line); padding: 2px 7px; margin-inline-start: 8px;
}
.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a { color: var(--paper-2); font-size: 15px; font-weight: 500; transition: var(--ease); }
.nav__links a:hover { color: var(--bronze-light); }
.nav__admin { color: var(--bronze-light) !important; font-weight: 600 !important; }
.nav__cta {
  background: var(--bronze); color: var(--white) !important; padding: 11px 24px;
  font-weight: 700 !important;
}
.nav__cta:hover { background: var(--bronze-light); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; width: 30px; }
.nav__hamburger span { display: block; height: 2px; background: var(--white); transition: var(--ease); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--navy-deep);
  display: flex; align-items: center; justify-content: center;
  transform: translateX(100%); transition: var(--ease);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { display: flex; flex-direction: column; gap: 28px; text-align: center; }
.mobile-menu a { color: var(--white); font-size: 24px; font-weight: 700; }
.mm-cta { color: var(--bronze-light); }

/* ── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh; padding-top: var(--nav-h);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  direction: ltr; background: var(--navy-deep); position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(176,121,62,0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 85% 90%, rgba(27,48,80,0.6) 0%, transparent 50%);
}
.hero__image-col { position: relative; height: 100vh; }
.hero__image-wrap { position: relative; height: 100%; }
.hero__img { filter: saturate(1.05); }
.hero__image-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,27,46,0.85) 0%, rgba(14,27,46,0.25) 55%, transparent 100%);
}
.hero__img-fallback {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--navy-rich), var(--navy-deep));
  display: flex; align-items: center; justify-content: center; font-size: 120px; opacity: 0.4;
}
.hero__badge {
  position: absolute; bottom: 40px; left: 40px; z-index: 3;
  background: var(--bronze); color: var(--white); padding: 14px 20px;
  display: flex; flex-direction: column; line-height: 1.2;
}
.hero__badge-mark { font-size: 11px; font-weight: 600; opacity: 0.85; }
.hero__badge-text { font-size: 15px; font-weight: 800; }

.hero__content-col { direction: rtl; padding: 0 60px; position: relative; z-index: 3; color: var(--white); }
.hero__eyebrow { color: var(--bronze-light); font-size: 13px; font-weight: 700; letter-spacing: 0.12em; margin-bottom: 18px; }
.hero__headline { font-size: clamp(40px, 5.5vw, 72px); font-weight: 900; line-height: 1.08; margin-bottom: 22px; }
.hero__headline em { font-style: normal; color: var(--bronze-light); }
.hero__sub { font-size: 17px; font-weight: 300; color: var(--paper-2); max-width: 440px; margin-bottom: 32px; line-height: 1.9; }

.hero__actions { display: flex; gap: 14px; margin-bottom: 44px; flex-wrap: wrap; }

.hero__stats { display: flex; align-items: center; gap: 26px; }
.hero__stat { display: flex; flex-direction: column; }
.hero__stat-n { font-size: 30px; font-weight: 900; color: var(--bronze-light); }
.hero__stat-l { font-size: 13px; font-weight: 300; color: var(--paper-2); }
.hero__stat-divider { width: 1px; height: 42px; background: var(--navy-line); }

/* ── SEARCH BAR ───────────────────────────────────────────── */
.searchbar {
  position: relative; z-index: 5; margin-top: -40px;
  background: var(--white); box-shadow: 0 20px 50px rgba(12,20,32,0.18);
  max-width: 1100px; margin-inline: auto;
  display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 0;
}
.searchbar__field { display: flex; flex-direction: column; padding: 18px 24px; border-inline-start: 1px solid var(--paper-2); }
.searchbar__field:first-child { border-inline-start: none; }
.searchbar__label { font-size: 12px; font-weight: 700; color: var(--bronze); margin-bottom: 6px; }
.searchbar__field select {
  border: none; background: transparent; font-size: 15px; font-weight: 600;
  color: var(--navy-deep); outline: none; cursor: pointer;
}
.searchbar__btn { background: var(--navy-deep); color: var(--white); padding: 0 40px; font-size: 16px; font-weight: 700; transition: var(--ease); }
.searchbar__btn:hover { background: var(--bronze); }

/* ── MARQUEE ──────────────────────────────────────────────── */
.marquee-bar { background: var(--navy); overflow: hidden; padding: 20px 0; margin-top: 48px; }
/* direction:ltr forces the track to overflow to the right (regardless of the
   page's RTL), so translateX(-50%) scrolls continuously into the duplicated
   second copy — a seamless loop with no blank gap. Arabic words still shape
   correctly inside each span. width:max-content + uniform per-item margins
   keep the seam spacing identical to the start. */
.marquee-track { display: flex; align-items: center; width: max-content; direction: ltr; animation: marquee 40s linear infinite; }
.marquee-track:hover { animation-play-state: paused; }
.marquee-track span { color: var(--sand); font-size: 21px; font-weight: 700; margin: 0 20px; flex-shrink: 0; white-space: nowrap; }
.marquee-dot { width: 7px; height: 7px; background: var(--bronze) !important; border-radius: 50%; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── PROPERTIES ───────────────────────────────────────────── */
.properties { padding: 100px 0; }
.props-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; margin-bottom: 36px; flex-wrap: wrap;
}
.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 9px 20px; font-size: 14px; font-weight: 600; color: var(--text-body);
  background: var(--white); border: 1px solid var(--paper-2); transition: var(--ease);
}
.filter-pill:hover { border-color: var(--bronze); color: var(--bronze); }
.filter-pill.is-active { background: var(--navy-deep); color: var(--white); border-color: var(--navy-deep); }
.props-search {
  padding: 12px 18px; font-size: 14px; min-width: 240px;
  background: var(--white); border: 1px solid var(--paper-2); color: var(--navy-deep); outline: none;
}
.props-search:focus { border-color: var(--bronze); }

.props-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }

.prop-card { background: var(--white); border: 1px solid var(--paper-2); transition: var(--ease); cursor: pointer; }
.prop-card:hover { box-shadow: 0 18px 44px rgba(12,20,32,0.14); transform: translateY(-4px); }
.prop-card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy-rich); }
/* image sits above the fallback tile; if it fails to load, onerror hides it
   and the fallback (type label on a gradient) shows through. */
.prop-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform 0.6s var(--ease); }
.prop-card:hover .prop-card__img { transform: scale(1.06); }
.prop-card__fallback {
  position: absolute; inset: 0; z-index: 0; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 700; letter-spacing: 0.08em; color: rgba(255,255,255,0.5);
}
.prop-card__fallback--villa      { background: linear-gradient(135deg, #1B3050, #0E1B2E); }
.prop-card__fallback--apartment  { background: linear-gradient(135deg, #234060, #122036); }
.prop-card__fallback--land       { background: linear-gradient(135deg, #3A5A3F, #1E3326); }
.prop-card__fallback--commercial { background: linear-gradient(135deg, #5A4632, #2E2418); }

.prop-card__badges { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; z-index: 2; }
.prop-card__purpose { padding: 5px 12px; font-size: 12px; font-weight: 700; background: var(--white); color: var(--navy-deep); }
.prop-card__status { padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--white); }
.prop-card__status--listed   { background: var(--bronze); }
.prop-card__status--reserved { background: var(--warn); }
.prop-card__status--sold     { background: var(--done); }

.prop-card__body { padding: 22px; }
.prop-card__price { font-size: 22px; font-weight: 900; color: var(--navy-deep); margin-bottom: 6px; }
.prop-card__price span { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.prop-card__title { font-size: 17px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.prop-card__loc { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.prop-card__loc::before { content: ''; display: inline-block; width: 5px; height: 5px; background: var(--bronze); border-radius: 50%; margin-left: 8px; vertical-align: middle; }
.prop-card__specs { display: flex; gap: 18px; padding-top: 16px; border-top: 1px solid var(--paper-2); }
.prop-card__spec { font-size: 13px; font-weight: 600; color: var(--text-body); }
.prop-card__spec span { color: var(--bronze); }

.props-empty { text-align: center; padding: 60px 0; color: var(--text-muted); grid-column: 1 / -1; }

/* ── PROPERTY MODAL ───────────────────────────────────────── */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__overlay { position: absolute; inset: 0; background: rgba(12,20,32,0.7); backdrop-filter: blur(3px); }
.modal__card {
  position: relative; z-index: 2; background: var(--white); max-width: 860px; width: 100%;
  max-height: 90vh; overflow-y: auto; display: grid; grid-template-columns: 1.1fr 1fr;
}
.modal__close {
  position: absolute; top: 14px; left: 14px; z-index: 5; width: 38px; height: 38px;
  background: var(--white); color: var(--navy-deep); font-size: 22px; line-height: 1;
}
.modal__media { position: relative; min-height: 320px; background: var(--navy-rich); }
.modal__media .prop-card__badges { top: 16px; right: 16px; }
.modal__body { padding: 32px; }
.modal__price { font-size: 28px; font-weight: 900; color: var(--navy-deep); margin-bottom: 4px; }
.modal__price span { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.modal__title { font-size: 21px; font-weight: 800; margin-bottom: 6px; }
.modal__loc { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.modal__specs { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.modal__spec { background: var(--paper); padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text-body); }
.modal__spec b { color: var(--bronze); display: block; font-size: 18px; }
.modal__desc { font-size: 15px; font-weight: 300; color: var(--text-body); line-height: 1.9; margin-bottom: 24px; }
.modal__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.modal__id { font-size: 12px; color: var(--text-muted); margin-top: 18px; }

/* ── ABOUT ────────────────────────────────────────────────── */
.about { background: var(--navy-deep); color: var(--white); display: grid; grid-template-columns: 1fr 1fr; }
.about__image-col { position: relative; min-height: 560px; }
.about__img-fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 100px; opacity: 0.35; background: linear-gradient(135deg, var(--navy-rich), var(--navy-deep));
}
.about__image-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,27,46,0.4), transparent); }
.about__accent-box { position: absolute; bottom: 0; right: 0; background: var(--bronze); padding: 22px 30px; z-index: 3; }
.about__accent-text { font-size: 22px; font-weight: 900; }
.about__accent-sub { font-size: 13px; font-weight: 300; }
.about__content-col { padding: 90px 70px; display: flex; flex-direction: column; justify-content: center; }
.about__content-col .section-title { color: var(--white); }
.about__content-col .section-title em { color: var(--bronze-light); }
.about__text { font-size: 16px; font-weight: 300; color: var(--paper-2); line-height: 1.95; margin-bottom: 18px; max-width: 480px; }
.about__values { display: flex; flex-direction: column; gap: 20px; margin: 28px 0; }
.about__value { display: flex; gap: 16px; align-items: flex-start; }
.about__value-icon { color: var(--bronze-light); font-size: 22px; font-weight: 900; line-height: 1.2; }
.about__value h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.about__value p { font-size: 14px; font-weight: 300; color: var(--paper-2); }

/* ── CONTACT / INQUIRY ────────────────────────────────────── */
.contact { padding: 100px 0; }
.contact__split { display: grid; grid-template-columns: 1fr 1.1fr; }
.contact__info-col { background: var(--navy); color: var(--white); padding: 64px 56px; }
.contact__title { font-size: clamp(30px, 4vw, 46px); font-weight: 900; line-height: 1.15; margin-bottom: 18px; }
.contact__title em { font-style: normal; color: var(--bronze-light); }
.contact__desc { font-size: 16px; font-weight: 300; color: var(--paper-2); line-height: 1.9; margin-bottom: 36px; max-width: 380px; }
.contact__details { display: flex; flex-direction: column; gap: 22px; margin-bottom: 36px; }
.contact__detail { display: flex; flex-direction: column; gap: 4px; }
.contact__detail-label { font-size: 12px; font-weight: 700; color: var(--bronze-light); letter-spacing: 0.08em; }
.contact__detail-val { font-size: 15px; font-weight: 400; color: var(--white); line-height: 1.7; }
.contact__social { display: flex; gap: 12px; }
.contact__social-link { padding: 11px 22px; border: 1px solid var(--navy-line); font-size: 14px; font-weight: 600; transition: var(--ease); }
.contact__social-link:hover { background: var(--bronze); border-color: var(--bronze); }

.contact__form-col { background: var(--white); padding: 56px 50px; border: 1px solid var(--paper-2); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13px; font-weight: 700; color: var(--navy-deep); margin-bottom: 8px; }
.form-group__hint { font-weight: 400; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 13px 16px; font-size: 15px; background: var(--paper);
  border: 1px solid var(--paper-2); color: var(--navy-deep); outline: none; transition: var(--ease);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--bronze); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.inquiry-success { display: none; text-align: center; padding: 30px 0; }
.inquiry-success.show { display: block; }
.inquiry-success__check {
  width: 64px; height: 64px; margin: 0 auto 20px; background: var(--ok); color: var(--white);
  font-size: 32px; display: flex; align-items: center; justify-content: center;
}
.inquiry-success h3 { font-size: 22px; font-weight: 800; color: var(--navy-deep); margin-bottom: 10px; }
.inquiry-success p { font-size: 15px; color: var(--text-body); margin-bottom: 24px; }

/* ── FOOTER ───────────────────────────────────────────────── */
.footer { background: var(--ink); color: var(--paper-2); }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding: 70px 48px 50px; }
.footer__logo { display: flex; align-items: baseline; gap: 4px; color: var(--white); margin-bottom: 14px; }
.footer__logo .nav__logo-mark { color: var(--bronze-light); }
.footer__tagline { font-size: 14px; font-weight: 300; color: var(--text-muted); max-width: 280px; line-height: 1.8; }
.footer__powered { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.footer__powered b { color: var(--bronze-light); font-weight: 800; }
.footer__col h5 { font-size: 14px; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a, .footer__col li { font-size: 14px; font-weight: 300; color: var(--text-muted); transition: var(--ease); }
.footer__col a:hover { color: var(--bronze-light); }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px; border-top: 1px solid var(--navy-rich); font-size: 13px; color: var(--text-muted);
}
.footer__admin { color: var(--bronze-light); }

/* ── REVEAL ANIMATION ─────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1100px) {
  .container { padding: 0 30px; }
  .hero__content-col { padding: 0 40px; }
  .about__content-col { padding: 70px 40px; }
}
@media (max-width: 900px) {
  .nav, .nav.scrolled { padding: 0 24px; background: rgba(14,27,46,0.96); }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .hero { grid-template-columns: 1fr; direction: rtl; }
  .hero__image-col { height: 50vh; order: -1; }
  .hero__content-col { padding: 50px 24px; }
  .searchbar { grid-template-columns: 1fr 1fr; margin-top: 0; }
  .searchbar__btn { grid-column: 1 / -1; padding: 16px; }
  .props-grid { grid-template-columns: repeat(2, 1fr); }
  .modal__card { grid-template-columns: 1fr; }
  .modal__media { min-height: 240px; }
  .about { grid-template-columns: 1fr; }
  .about__image-col { min-height: 360px; }
  .contact__split { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .props-grid { grid-template-columns: 1fr; }
  .searchbar { grid-template-columns: 1fr; }
  .searchbar__field { border-inline-start: none; border-top: 1px solid var(--paper-2); }
  .props-toolbar { flex-direction: column; align-items: stretch; }
  .props-search { min-width: 0; width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .hero__stats { flex-wrap: wrap; gap: 16px; }
}
