@charset "UTF-8";
/* ==========================================================================
   شركة الجنان الذهبية للمقاولات العامة — أنماط الواجهة
   ملف واحد مُحسَّن. يعتمد الخصائص المنطقية (inline-start/end) فيتصرف
   بشكل صحيح مع RTL دون الحاجة لملف rtl.css منفصل.
   ========================================================================== */

/* --------------------------------------------------------------- 1. الخط */
/* Tajawal — مستضاف محلياً (الوحدة 10.5 من كورس Rank Math) */
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-arabic-400.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E,
    U+2010-2011, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-arabic-500.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E,
    U+2010-2011, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/tajawal-latin-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-arabic-700.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E,
    U+2010-2011, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-latin-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/tajawal-arabic-800.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+200C-200E,
    U+2010-2011, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/tajawal-latin-800.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

/* ------------------------------------------------------- 2. متغيرات النظام */
:root {
  /* الهوية — مستخرجة من شعار الشركة الرسمي */
  --navy-900: #012840;
  --navy-800: #023958;
  --navy-700: #0d3b66;
  --navy-600: #1f5683;
  --teal-500: #1f81a6;
  --gold-500: #fbca45;
  --gold-600: #e0ac1c;
  --gold-700: #b8890f;
  --orange-500: #f58220;
  --cream-100: #faf0ca;

  /* محايدة */
  --ink: #0f1a24;
  --body: #3d4d5a;
  --muted: #5a6b7a;   /* 5.50:1 على الأبيض و5.16:1 على --surface — يحقق AA */
  --line: #e3e9ee;
  --line-soft: #eef3f6;
  --surface: #f5f8fa;
  --surface-2: #eaf1f5;
  --white: #fff;

  /* حالات */
  --ok-bg: #e8f6ed;
  --ok-fg: #1a6b3c;
  --warn-bg: #fef6e0;
  --warn-fg: #8a6100;
  --err-bg: #fdeaea;
  --err-fg: #a3251f;

  /* مقياس الخط — سلس مع عرض الشاشة */
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-md: clamp(1.125rem, 0.4vw + 1.05rem, 1.25rem);
  --fs-lg: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  --fs-xl: clamp(1.75rem, 2vw + 1.2rem, 2.5rem);
  --fs-2xl: clamp(2.125rem, 3.4vw + 1.2rem, 3.5rem);

  /* مسافات */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: clamp(3.5rem, 7vw, 6.5rem);

  --radius: 14px;
  --radius-sm: 9px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgb(2 57 88 / 0.06), 0 2px 8px rgb(2 57 88 / 0.05);
  --shadow: 0 4px 12px rgb(2 57 88 / 0.08), 0 12px 30px rgb(2 57 88 / 0.07);
  --shadow-lg: 0 10px 24px rgb(2 57 88 / 0.11), 0 26px 60px rgb(2 57 88 / 0.12);

  --wrap: 1200px;
  --wrap-narrow: 820px;
  --header-h: 78px;
}

/* ------------------------------------------------------------ 3. الأساسيات */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  /* شبكة أمان ضد التمرير الأفقي — clip يقصّ حتى العناصر ذات position:fixed
     على عكس hidden، ولا يُنشئ سياق تمرير جديد يكسر position:sticky. */
  overflow-x: clip;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: "Tajawal", "Segoe UI", Tahoma, system-ui, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
h1 { font-size: var(--fs-2xl); line-height: 1.2; }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); }
h4 { font-size: var(--fs-md); }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--navy-700);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.18s ease;
}
a:hover { color: var(--teal-500); }

img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { padding-inline-start: 1.4em; margin: 0 0 var(--sp-4); }
li { margin-bottom: var(--sp-2); }

strong, b { font-weight: 700; color: var(--ink); }

/* الأرقام دائماً بالاتجاه الصحيح داخل النص العربي */
.num, time, .card__meta span { unicode-bidi: plaintext; }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
  border-radius: 4px;
}
/* الأسطح الداكنة والملوّنة: الذهبي يحقق تبايناً كافياً حيث يفشل الأزرق المخضر،
   والهالة الكحلية تضمن ظهوره فوق أي لون خلفية. */
.topbar :focus-visible,
.hero :focus-visible,
.cta :focus-visible,
.section--navy :focus-visible,
.site-footer :focus-visible,
.page-hero :focus-visible,
.floating-actions :focus-visible,
.btn--wa:focus-visible,
.btn--primary:focus-visible {
  outline-color: var(--gold-500);
  box-shadow: 0 0 0 5px rgb(1 40 64 / 0.85);
}

.skip-link {
  position: absolute;
  inset-block-start: -100px;
  inset-inline-start: var(--sp-4);
  z-index: 999;
  padding: var(--sp-3) var(--sp-5);
  background: var(--navy-800);
  color: var(--white);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { inset-block-start: 0; color: var(--white); }

/* التركيز البرمجي على <main> بعد رابط التخطي لا يحتاج مخططاً مرئياً */
.site-main:focus { outline: none; }

.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;
}

/* -------------------------------------------------------------- 4. التخطيط */
.container {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); }

.section { padding-block: var(--sp-9); }
.section--tight { padding-block: var(--sp-8); }
.section--surface { background: var(--surface); }
.section--navy {
  background: var(--navy-800);
  color: rgb(255 255 255 / 0.86);
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--white); }

.section__head {
  max-width: 660px;
  margin-block-end: var(--sp-7);
}
.section__head--center {
  margin-inline: auto;
  text-align: center;
}
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-block-end: var(--sp-3);
  padding: 5px 14px;
  border-radius: 100px;
  background: var(--surface-2);
  color: var(--navy-700);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.section--navy .section__eyebrow {
  background: rgb(251 202 69 / 0.16);
  color: var(--gold-500);
}
.section__lead {
  font-size: var(--fs-md);
  color: var(--muted);
  margin-block-end: 0;
}
.section--navy .section__lead { color: rgb(255 255 255 / 0.75); }

/* min(Npx, 100%) يمنع تجاوز الأعمدة لعرض الحاوية على الشاشات الضيقة جداً،
   لأن minmax(300px, 1fr) وحده يفرض 300px حتى لو كانت الحاوية أضيق. */
.grid { display: grid; gap: var(--sp-5); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr)); }

/* -------------------------------------------------------------- 5. الأزرار */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.78rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn .icon { flex: none; }

.btn--primary {
  background: var(--gold-500);
  border-color: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgb(251 202 69 / 0.35);
}
.btn--primary:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  color: var(--navy-900);
  box-shadow: 0 8px 22px rgb(224 172 28 / 0.42);
}

.btn--navy {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}
.btn--navy:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  color: var(--white);
}

.btn--ghost {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}
.btn--ghost:hover {
  background: rgb(255 255 255 / 0.1);
  color: inherit;
}

.btn--outline {
  background: var(--white);
  border-color: var(--line);
  color: var(--navy-800);
}
.btn--outline:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--wa {
  background: #25d366;
  border-color: #25d366;
  color: #06301a;
  box-shadow: 0 4px 14px rgb(37 211 102 / 0.32);
}
.btn--wa:hover { background: #1eb855; border-color: #1eb855; color: #06301a; }

.btn--lg { padding: 0.95rem 2rem; font-size: var(--fs-base); }
.btn--block { width: 100%; }

/* --------------------------------------------------------------- 6. الترويسة */
.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: rgb(255 255 255 / 0.96);
  backdrop-filter: saturate(1.6) blur(10px);
  border-block-end: 1px solid var(--line);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.topbar {
  background: var(--navy-800);
  color: rgb(255 255 255 / 0.82);
  font-size: var(--fs-xs);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 40px;
  padding-block: 6px;
}
.topbar__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
.topbar__list li { margin: 0; }
.topbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}
.topbar a:hover { color: var(--gold-500); }
.topbar .icon { color: var(--gold-500); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex: none;
}
.brand__logo { width: 52px; height: 52px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--navy-800);
}
.brand__tag {
  font-size: var(--fs-xs);
  font-weight: 500;
  color: var(--muted);
}

/* التنقل */
.nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__list li { margin: 0; position: relative; }
.nav__list a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav__list a:hover { background: var(--surface); color: var(--navy-800); }
.nav__list .current-menu-item > a,
.nav__list .current_page_item > a,
.nav__list .current-menu-parent > a,
.nav__list .current-menu-ancestor > a {
  color: var(--navy-800);
  font-weight: 700;
  background: var(--surface-2);
}

/* القوائم المنسدلة */
.nav__list .sub-menu {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-start: 0;
  z-index: 20;
  min-width: 250px;
  margin: 0;
  padding: var(--sp-2);
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav__list li:hover > .sub-menu,
.nav__list li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav__list .sub-menu a { white-space: normal; font-weight: 500; }

.header__actions { display: flex; align-items: center; gap: var(--sp-3); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle .icon--close { display: none; }
.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }

@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  /* درج التنقل: يُخفى بـ visibility/opacity لا بإزاحة خارج الشاشة.
     الإزاحة الأفقية (translateX) على عنصر fixed تُنشئ تمريراً أفقياً
     لا يمنعه overflow-x على body، فتنكسر الصفحة كلها على الجوال. */
  .site-nav {
    position: fixed;
    inset-block-start: var(--header-h);
    inset-inline: 0;
    inset-block-end: 0;
    z-index: 90;
    padding: var(--sp-5);
    background: var(--white);
    overflow-y: auto;
    overscroll-behavior: contain;
    /* مساحة سفلية تمنع الشريط العائم من تغطية آخر رابط */
    padding-block-end: calc(var(--sp-5) + 64px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .site-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__list a {
    padding: 0.85rem var(--sp-4);
    font-size: var(--fs-base);
    border-block-end: 1px solid var(--line-soft);
    border-radius: 0;
  }
  .nav__list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0;
    margin-inline-start: var(--sp-4);
    min-width: 0;
  }
  .nav__list .sub-menu a { font-size: var(--fs-sm); color: var(--muted); }
}

/* ---------------------------------------------------------------- 7. الغلاف */
.hero {
  position: relative;
  display: grid;
  /* minmax(0,1fr) ضروري: عنصر الشبكة الافتراضي min-width:auto فيتمدد
     إلى عرض محتواه الأدنى ويتجاوز الشاشة على الجوال. */
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: clamp(480px, 72vh, 700px);
  padding-block: var(--sp-8);
  background: var(--navy-900);
  color: rgb(255 255 255 / 0.88);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to left, rgb(1 40 64 / 0.94) 12%, rgb(1 40 64 / 0.78) 52%, rgb(1 40 64 / 0.55) 100%),
    linear-gradient(to top, rgb(1 40 64 / 0.7), transparent 45%);
}
html[dir="ltr"] .hero__bg::after {
  background:
    linear-gradient(to right, rgb(1 40 64 / 0.94) 12%, rgb(1 40 64 / 0.78) 52%, rgb(1 40 64 / 0.55) 100%),
    linear-gradient(to top, rgb(1 40 64 / 0.7), transparent 45%);
}

.hero__inner { position: relative; z-index: 1; }
.hero__content { max-width: 680px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-block-end: var(--sp-4);
  padding: 7px 16px;
  border: 1px solid rgb(251 202 69 / 0.4);
  border-radius: 100px;
  background: rgb(251 202 69 / 0.12);
  color: var(--gold-500);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.hero h1 {
  color: var(--white);
  margin-block-end: var(--sp-5);
  text-wrap: balance;
}
.hero h1 .accent { color: var(--gold-500); }
.hero__text {
  font-size: var(--fs-md);
  color: rgb(255 255 255 / 0.82);
  max-width: 56ch;
  margin-block-end: var(--sp-6);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-block-end: var(--sp-7);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(140px, 100%), 1fr));
  gap: var(--sp-4);
  max-width: 660px;
  padding-block-start: var(--sp-5);
  border-block-start: 1px solid rgb(255 255 255 / 0.16);
}
.stat__num {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--gold-500);
  line-height: 1.1;
}
.stat__label {
  font-size: var(--fs-sm);
  color: rgb(255 255 255 / 0.7);
}

/* ---------------------------------------------------------------- 8. البطاقات */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
}
.card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.card__media {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-2);
  overflow: hidden;
}
.card__media .thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0, 0.2, 1);
}
.card:hover .card__media .thumb { transform: scale(1.05); }
.thumb--placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface-2), var(--line));
}
.card__icon {
  position: absolute;
  inset-block-end: 12px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--sp-5);
}
.card__title {
  margin-block-end: var(--sp-2);
  font-size: var(--fs-md);
  color: var(--navy-800);
}
.card__text {
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--muted);
  margin-block-end: var(--sp-4);
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.card__meta .icon { color: var(--teal-500); }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--navy-700);
}
.card__more .icon { transition: transform 0.2s ease; }
.card:hover .card__more .icon { transform: translateX(-4px); }
html[dir="ltr"] .card:hover .card__more .icon { transform: translateX(4px) scaleX(-1); }
html[dir="ltr"] .card__more .icon { transform: scaleX(-1); }

/* ميزة بأيقونة */
.feature {
  padding: var(--sp-5);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-block-end: var(--sp-4);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--navy-700);
}
.feature h3 { font-size: var(--fs-md); margin-block-end: var(--sp-2); }
.feature p { font-size: var(--fs-sm); color: var(--muted); margin: 0; }

.section--navy .feature {
  background: rgb(255 255 255 / 0.05);
  border-color: rgb(255 255 255 / 0.12);
}
.section--navy .feature__icon {
  background: rgb(251 202 69 / 0.16);
  color: var(--gold-500);
}
.section--navy .feature p { color: rgb(255 255 255 / 0.72); }

/* --------------------------------------------------------- 9. رأس الصفحة الداخلي */
.page-hero {
  position: relative;
  padding-block: var(--sp-8);
  background: var(--navy-800);
  color: rgb(255 255 255 / 0.85);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset-block-start: -140px;
  inset-inline-end: -110px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(251 202 69 / 0.14), transparent 68%);
}
.page-hero__inner { position: relative; max-width: 760px; }
.page-hero h1 { color: var(--white); margin-block-end: var(--sp-3); }
.page-hero p {
  font-size: var(--fs-md);
  color: rgb(255 255 255 / 0.78);
  margin: 0;
}

.breadcrumbs {
  background: var(--surface);
  border-block-end: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin: 0;
  padding: 0.7rem 0;
  list-style: none;
}
.breadcrumbs li { margin: 0; display: inline-flex; align-items: center; gap: var(--sp-2); }
/* U+203A مرآوي في جدول bidi فينقلب تلقائياً حسب اتجاه القراءة:
   يظهر ‹ في RTL و › في LTR بلا تجاوز خاص لكل اتجاه. */
.breadcrumbs li + li::before {
  content: "\203A";
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--navy-700); }
.breadcrumbs [aria-current] { color: var(--navy-800); font-weight: 700; }

/* -------------------------------------------------------------- 10. المحتوى */
.entry {
  font-size: var(--fs-base);
  line-height: 1.95;
}
.entry > * + * { margin-block-start: var(--sp-4); }
.entry h2 {
  margin-block-start: var(--sp-7);
  padding-inline-start: var(--sp-4);
  border-inline-start: 4px solid var(--gold-500);
  font-size: var(--fs-lg);
}
.entry h3 { margin-block-start: var(--sp-6); font-size: var(--fs-md); }
.entry ul, .entry ol { padding-inline-start: 1.5em; }
.entry li::marker { color: var(--teal-500); }
.entry img { border-radius: var(--radius); }
.entry blockquote {
  margin: var(--sp-6) 0;
  padding: var(--sp-5);
  background: var(--surface);
  border-inline-start: 4px solid var(--teal-500);
  border-radius: var(--radius-sm);
  font-size: var(--fs-md);
  color: var(--ink);
}
.entry blockquote p:last-child { margin: 0; }
.entry table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.entry th, .entry td {
  padding: var(--sp-3);
  border: 1px solid var(--line);
  text-align: start;
}
.entry th { background: var(--surface); color: var(--ink); font-weight: 700; }

.table-wrap { overflow-x: auto; }

/* قائمة النقاط المميزة */
.highlights {
  display: grid;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-6);
  padding: 0;
  list-style: none;
}
.highlights li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0;
  padding: var(--sp-3) var(--sp-4);
  background: var(--surface);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink);
}
.highlights .icon {
  flex: none;
  margin-block-start: 5px;
  color: var(--teal-500);
}

/* الأسئلة الشائعة */
.faq { display: grid; gap: var(--sp-3); }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq__item[open] { border-color: var(--teal-500); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-800);
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex: none;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--teal-500);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--muted);
}

/* لوحة بيانات المشروع */
.spec {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--surface);
  border-radius: var(--radius);
  margin-block-end: var(--sp-6);
}
@media (min-width: 640px) {
  .spec { grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr)); }
}
.spec__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
  margin-block-end: 2px;
}
.spec__value { font-weight: 700; color: var(--navy-800); }

/* --------------------------------------------------------------- 11. النموذج */
.form { max-width: 720px; }
.form__grid {
  display: grid;
  gap: var(--sp-4);
  margin-block-end: var(--sp-5);
}
@media (min-width: 640px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__field--full { grid-column: 1 / -1; }
}
.form__field { margin: 0; }
.form__field label {
  display: block;
  margin-block-end: 6px;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ink);
}
.form__field .req { color: #c0392b; }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 3px rgb(31 129 166 / 0.14);
}
/* مخطط تركيز صريح لمستخدمي لوحة المفاتيح — تغيير لون الحد وحده لا يكفي
   لمن لا يميّز الألوان، ولا يحقق الحد الأدنى للتباين المطلوب. */
.form input:focus-visible,
.form select:focus-visible,
.form textarea:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 2px;
}
.form textarea { resize: vertical; min-height: 130px; }

/* الأرقام تُكتب وتُقرأ يساراً-يميناً، لكن الحقل يجب أن يحاذي اليمين
   ليتسق بصرياً مع بقية حقول النموذج العربي. */
.form input[type="tel"] {
  direction: ltr;
  text-align: right;
}
.form__hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}
.form__note {
  margin-block-start: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--muted);
}

.notice {
  padding: var(--sp-4) var(--sp-5);
  margin-block-end: var(--sp-5);
  border-radius: var(--radius-sm);
  border-inline-start: 4px solid;
  font-size: var(--fs-sm);
}
.notice ul { margin: var(--sp-2) 0 0; }
.notice--ok { background: var(--ok-bg); border-color: var(--ok-fg); color: var(--ok-fg); }
.notice--warn { background: var(--warn-bg); border-color: var(--warn-fg); color: var(--warn-fg); }
.notice--error { background: var(--err-bg); border-color: var(--err-fg); color: var(--err-fg); }

/* بطاقات التواصل */
.contact-list { display: grid; gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
.contact-list li { margin: 0; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-4);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
a.contact-item:hover { border-color: var(--teal-500); box-shadow: var(--shadow-sm); }
.contact-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--navy-700);
}
.contact-item__label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.contact-item__value {
  font-weight: 700;
  color: var(--navy-800);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------- 12. شريط CTA */
.cta {
  padding-block: var(--sp-8);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: rgb(255 255 255 / 0.85);
}
.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}
.cta__text { flex: 1 1 360px; }
.cta h2 { color: var(--white); margin-block-end: var(--sp-2); font-size: var(--fs-lg); }
.cta p { margin: 0; color: rgb(255 255 255 / 0.78); font-size: var(--fs-sm); max-width: 58ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.cta .btn--ghost { color: var(--white); }

/* -------------------------------------------------------------- 13. التذييل */
.site-footer {
  background: var(--navy-900);
  color: rgb(255 255 255 / 0.68);
  font-size: var(--fs-sm);
}
.footer__main {
  display: grid;
  gap: var(--sp-6);
  padding-block: var(--sp-8);
}
@media (min-width: 760px) {
  .footer__main { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}
.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .wp-block-heading,
.footer-widget__title {
  margin-block-end: var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}
.site-footer a { color: rgb(255 255 255 / 0.72); text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-block-end: var(--sp-2); }

.footer__brand { display: flex; align-items: center; gap: var(--sp-3); margin-block-end: var(--sp-4); }
.footer__brand img { width: 56px; height: 56px; }
.footer__brand-name { font-size: var(--fs-md); font-weight: 800; color: var(--white); line-height: 1.3; }
.footer__about { max-width: 42ch; }

.footer__contact li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.footer__contact .icon { flex: none; margin-block-start: 5px; color: var(--gold-500); }

.footer__legal-list { font-size: var(--fs-xs); }
.footer__legal-list li { display: flex; gap: var(--sp-2); }
.footer__legal-list dt, .footer__legal-list .lbl { color: rgb(255 255 255 / 0.5); }

.socials { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block-start: var(--sp-4); }
.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(255 255 255 / 0.18);
  border-radius: 100px;
  font-size: var(--fs-xs);
  font-weight: 700;
}
.socials a:hover { border-color: var(--gold-500); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-block: var(--sp-4);
  border-block-start: 1px solid rgb(255 255 255 / 0.1);
  font-size: var(--fs-xs);
  color: rgb(255 255 255 / 0.5);
}
.footer__bottom ul { display: flex; flex-wrap: wrap; gap: var(--sp-4); }
.footer__bottom li { margin: 0; }

/* ------------------------------------------------- 14. الأزرار العائمة (جوال) */
.floating-actions {
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 95;
  display: none;
  border-block-start: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 -4px 20px rgb(2 57 88 / 0.1);
}
.floating-actions__btn {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  text-decoration: none;
}
.floating-actions__btn--wa { background: #25d366; color: #06301a; }
.floating-actions__btn--tel { background: var(--navy-800); color: var(--white); }

@media (max-width: 760px) {
  .floating-actions { display: flex; }
  body { padding-block-end: 58px; }
  /* أثناء فتح القائمة لا داعي للشريط العائم — يزاحم روابط القائمة */
  body:has(.site-nav.is-open) .floating-actions { display: none; }
}

/* ------------------------------------------------------------ 15. صفحة 404 */
.error-404 { text-align: center; padding-block: var(--sp-9); }
.error-404__code {
  font-size: clamp(4rem, 16vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: #a9bcc9;   /* زخرفي (aria-hidden) — واضح بصرياً دون منافسة العنوان */
  margin-block-end: var(--sp-4);
}

/* ------------------------------------------------------------ 16. الترقيم */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-2);
  margin-block-start: var(--sp-7);
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding-inline: var(--sp-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 700;
}
.pagination .page-numbers:hover { border-color: var(--navy-800); }
.pagination .current {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

/* ------------------------------------------------------------ 17. مساعدات */
.text-center { text-align: center; }
.mb-0 { margin-block-end: 0; }
.mt-6 { margin-block-start: var(--sp-6); }
.stack > * + * { margin-block-start: var(--sp-4); }

.map-embed {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

@media print {
  .site-header, .site-footer, .floating-actions, .cta, .breadcrumbs { display: none; }
  body { color: #000; }
}
