/*
Theme Name:  Immosoft
Theme URI:   https://immosoft.app
Description: ثيم منصة Immosoft العقارية — قشرة خفيفة تعتمد على إضافات Immosoft للمحتوى. متوافق مع العربية (RTL) والإنجليزية والألمانية.
Version: 4.3.0
Author:      Immosoft
Text Domain: immosoft
*/

/* ── Base reset ── */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, Tahoma, Arial, sans-serif;
  color: #1a2332;
  background: #f3f4f6;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: #0EB37A; }

/* ── Layout helpers ── */
.ims-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.ims-main { min-height: 60vh; }

/* ── Skip link (accessibility) ── */
.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(1px,1px,1px,1px);
  white-space: nowrap;
}
.ims-skip-link:focus {
  position: fixed; top: 8px; inset-inline-start: 8px;
  width: auto; height: auto; clip: auto;
  background: #0EB37A; color: #fff;
  padding: 10px 18px; border-radius: 8px; z-index: 100000;
}

/* ── Site footer ── */
.ims-site-footer {
  background: #1a2332; color: #cbd5e1;
  padding: 22px 0; margin-top: 40px;
  font-size: 14px;
}
.ims-site-footer .ims-wrap {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.ims-footer-menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.ims-footer-menu a { color: #cbd5e1; text-decoration: none; }
.ims-footer-menu a:hover { color: #fff; }

/* ── Toast fallback (plugin CSS overrides this when loaded) ── */
.ims-toast {
  display: none;
  position: fixed; bottom: 24px; inset-inline-start: 50%;
  transform: translateX(-50%);
  background: #1a2332; color: #fff;
  padding: 12px 22px; border-radius: 10px;
  font-size: 14px; z-index: 99999;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
  max-width: 90vw;
}
.ims-toast-err { background: #EF4444; }

/* ── RTL niceties ── */
.ims-rtl { direction: rtl; }
.ims-rtl .ims-site-footer .ims-wrap { text-align: right; }

@media (max-width: 640px) {
  .ims-site-footer .ims-wrap { flex-direction: column; text-align: center; }
}
