/*
Theme Name: Al-Omraneya
Theme URI: https://omraneyyahadv.com
Author: Al-Omraneya
Description: قالب مخصص لشركة العمرانية للصناعات البلاستيكية المتطورة — تصميم فاتح متوافق مع الاتجاه من اليمين إلى اليسار.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: omraneya
Tags: rtl-language-support, custom-menu, custom-logo, translation-ready
*/

/*
  The design system itself lives in assets/site-v2.css and is enqueued
  separately. This file only carries the theme header plus the small
  amount of glue WordPress itself needs (alignments, admin bar, blocks).
*/

/* ---------- WordPress core alignment classes ---------- */
.alignleft{float:left;margin-inline-end:1.5em;margin-bottom:1em}
.alignright{float:right;margin-inline-start:1.5em;margin-bottom:1em}
.aligncenter{clear:both;display:block;margin-inline:auto}
.alignwide,.alignfull{margin-block:2em}
.wp-caption{max-width:100%}
.wp-caption-text,.wp-element-caption{margin-top:8px;color:var(--muted);font-size:.88rem;text-align:center}
.screen-reader-text{
  position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}
.screen-reader-text:focus{
  position:fixed!important;top:12px;inset-inline-start:12px;z-index:1001;
  width:auto;height:auto;clip:auto;clip-path:none;
  padding:10px 18px;background:var(--accent);color:var(--ink);font-weight:800;border-radius:10px;
}

/* ---------- Footer menus ----------
   wp_nav_menu outputs bare <li> elements here (items_wrap "%3$s"), which the
   browser would otherwise render with list markers. */
.footer nav ul,
.footer nav li{list-style:none;margin:0;padding:0}
.footer nav li{display:block}

/* ---------- Header menu, when WordPress supplies the markup ---------- */
.menu li{list-style:none}
.menu .sub-menu{display:none}

/* ---------- Pagination ---------- */
.navigation.pagination{margin-top:48px}
.nav-links{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.nav-links .page-numbers{
  display:grid;place-items:center;min-width:42px;height:42px;padding-inline:14px;
  border:1px solid var(--line);border-radius:12px;background:#fff;
  color:var(--body);font-weight:800;transition:border-color .2s ease,color .2s ease;
}
.nav-links .page-numbers:hover{border-color:var(--brand);color:var(--brand-dark)}
.nav-links .page-numbers.current{background:var(--brand);border-color:var(--brand);color:#fff}

/* ---------- Admin bar offset for the sticky header ---------- */
.admin-bar .header{top:32px}
@media(max-width:782px){.admin-bar .header{top:46px}}

/* ---------- Editor content (page.php / single.php) ---------- */
.entry-content{max-width:820px}
.entry-content > * + *{margin-top:1.15em}
.entry-content h2{margin-top:1.8em;font-size:clamp(1.6rem,3vw,2.2rem)}
.entry-content h3{margin-top:1.6em;font-size:1.3rem}
.entry-content ul,.entry-content ol{padding-inline-start:1.4em}
.entry-content li + li{margin-top:.4em}
.entry-content a:not(.btn):not(.arrow-link){color:var(--brand-dark);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.entry-content a:not(.btn):not(.arrow-link):hover{color:var(--brand)}
.entry-content img{border-radius:var(--r)}
.entry-content blockquote{
  margin-inline-start:0;padding:18px 24px;
  border-inline-start:4px solid var(--brand);background:var(--bg-soft);border-radius:0 var(--r) var(--r) 0;
}
.entry-content table{width:100%;border-collapse:collapse}
.entry-content :where(th,td){padding:12px 16px;border-bottom:1px solid var(--line);text-align:start}
.entry-content code,.entry-content pre{background:var(--bg-soft-2);border-radius:8px}
.entry-content pre{padding:16px;overflow-x:auto}
