/* ==========================================================================
   law.binmuhayya.com — نظام التصميم
   الهوية: أخضر داكن + ذهبي (من الشعار) • عناوين Amiri • نص IBM Plex Sans Arabic
   الترتيب: 1) المتغيرات  2) الأساس  3) التخطيط  4) المكونات  5) الأقسام  6) الصفحات  7) أدوات
   ========================================================================== */

/* 1) المتغيرات (Design Tokens) ------------------------------------------- */
:root {
  --green-950: #061C13;
  --green-900: #0B3324;
  --green-800: #0F3B28;
  --green-700: #155036;
  --green-100: #E7EFEA;
  --gold-600: #B08A35;
  --gold-500: #C9A24B;
  --gold-400: #D9BA6E;
  --gold-100: #F6EEDB;
  --ivory: #FAF8F3;
  --white: #FFFFFF;
  --ink: #1B2420;
  --muted: #5B6862;
  --line: #E5E0D4;
  --danger: #A12A2A;
  --danger-bg: #FBECEC;
  --warn-bg: #FFF6DD;
  --footer-bg: var(--green-950);

  --font-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Amiri", "Noto Naskh Arabic", "Times New Roman", serif;

  --fs-sm: .875rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.1875rem;
  --fs-h3: 1.25rem;
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h1: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6rem;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 51, 36, .06), 0 2px 6px rgba(11, 51, 36, .05);
  --shadow: 0 10px 30px rgba(11, 51, 36, .10);
  --container: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2) الأساس ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.85;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { margin: 0 0 var(--space-4); line-height: 1.35; color: var(--green-900); }
h1, h2 { font-family: var(--font-display); font-weight: 700; }
h3, h4 { font-weight: 600; }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
::selection { background: var(--gold-100); color: var(--green-900); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

.skip-link {
  position: absolute; inset-inline-start: var(--space-4); top: -100px; z-index: 100;
  padding: var(--space-3) var(--space-5); background: var(--gold-500); color: var(--green-950);
  font-weight: 700; border-radius: var(--radius); text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 3) التخطيط --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--space-5); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--space-9); }
.section--alt { background: var(--ivory); }
.section--dark { background: linear-gradient(160deg, var(--green-900), var(--green-950)); color: var(--white); }
.section--dark .section__title { color: var(--white); }
.section--dark .section__lead { color: rgba(255, 255, 255, .82); }
.goals { list-style: none; display: grid; gap: var(--space-4); }
.goals li { display: flex; gap: var(--space-4); align-items: flex-start; padding: var(--space-4) var(--space-5); border: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent); border-radius: var(--radius); background: rgba(255, 255, 255, .04); }
.goals__num { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--green-950); font-weight: 700; }
.section__head { max-width: 720px; margin: 0 auto var(--space-7); text-align: center; }
.section__title { font-size: var(--fs-h2); }
.section__lead { color: var(--muted); font-size: var(--fs-lg); }
.section__more { margin: var(--space-7) 0 0; text-align: center; }

.grid { display: grid; gap: var(--space-5); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.split--top { align-items: start; grid-template-columns: 1.4fr 1fr; }
.split__media img { width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }

/* 4) المكونات -------------------------------------------------------------- */
/* الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: .6rem 1.5rem; border: 1.5px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 1rem; line-height: 1.3; text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--gold { background: var(--gold-500); color: var(--green-950); }
.btn--gold:hover { background: var(--gold-400); color: var(--green-950); }
.btn--primary { background: var(--green-800); color: var(--white); }
.btn--primary:hover { background: var(--green-700); color: var(--white); }
.btn--outline { border-color: var(--green-800); color: var(--green-800); background: transparent; }
.btn--outline:hover { background: var(--green-800); color: var(--white); }
.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn--outline-light:hover { border-color: var(--gold-500); color: var(--gold-400); }
.btn--lg { min-height: 54px; padding-inline: 1.9rem; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: .4rem 1rem; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3); margin: 0 0 var(--space-3);
  color: var(--gold-600); font-weight: 600; font-size: var(--fs-sm); letter-spacing: .02em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow--light { color: var(--gold-400); }

.checklist { list-style: none; display: grid; gap: var(--space-3); margin: var(--space-5) 0 var(--space-6); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist .icon { color: var(--gold-600); margin-top: .35em; }
.checklist--cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.checklist--cards li { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

.alert { padding: var(--space-4) var(--space-5); border-radius: var(--radius); margin-bottom: var(--space-5); font-size: .9375rem; }
.alert p { margin: 0 0 var(--space-2); font-weight: 600; }
.alert ul { padding-inline-start: 1.2em; }
.alert--error { background: var(--danger-bg); color: var(--danger); border: 1px solid #F0C9C9; }
.alert--error a { color: var(--danger); }
.alert--warn { background: var(--warn-bg); color: #6B5310; border: 1px solid #EED9A0; }

.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* الشريط العلوي */
.topbar { background: var(--green-950); color: rgba(255, 255, 255, .78); font-size: var(--fs-sm); }
.topbar__inner { display: flex; align-items: center; gap: var(--space-5); min-height: 40px; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; }
.topbar__item .icon { color: var(--gold-500); width: 1.05em; height: 1.05em; }
a.topbar__item:hover { color: var(--gold-400); }
.topbar__spacer { flex: 1; }

/* الهيدر */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--green-900); color: var(--white); transition: box-shadow .25s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(0, 0, 0, .22); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: var(--space-3); color: var(--white); text-decoration: none; }
.brand:hover { color: var(--white); }
.brand__logo { width: auto; height: 58px; border-radius: var(--radius-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.3; }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); }
.brand__tag { font-size: .8125rem; color: var(--gold-400); }

.site-nav { display: flex; align-items: center; gap: var(--space-5); margin-inline-start: auto; }
.site-nav__list { list-style: none; display: flex; gap: var(--space-1); }
.site-nav__link {
  position: relative; display: block; padding: .55rem .8rem; color: rgba(255, 255, 255, .86);
  text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: var(--radius-sm);
}
.site-nav__link::after {
  content: ""; position: absolute; inset-inline: .8rem; bottom: .2rem; height: 2px; background: var(--gold-500);
  transform: scaleX(0); transition: transform .25s var(--ease);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--white); }
.site-nav__link:hover::after, .site-nav__link.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; margin-inline-start: auto; width: 48px; height: 48px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--radius); background: transparent; cursor: pointer; }
.nav-toggle__bars { display: grid; gap: 5px; width: 22px; margin: auto; }
.nav-toggle__bars span { height: 2px; background: var(--white); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ترويسة الصفحات الداخلية */
.page-hero {
  position: relative; padding-block: var(--space-8) var(--space-7); color: var(--white);
  background:
    radial-gradient(1200px 400px at 85% -10%, color-mix(in srgb, var(--gold-500) 16%, transparent), transparent 60%),
    linear-gradient(160deg, var(--green-900), var(--green-950));
  border-bottom: 3px solid var(--gold-500);
}
.page-hero__title { color: var(--white); font-size: var(--fs-h1); margin-bottom: var(--space-3); }
.page-hero__lead { max-width: 760px; font-size: var(--fs-lg); color: rgba(255, 255, 255, .82); margin: 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); font-size: var(--fs-sm); }
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); color: rgba(255, 255, 255, .7); }
.breadcrumbs li + li::before { content: "‹"; color: var(--gold-500); }
.breadcrumbs a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-400); }

/* بطاقة المجال */
.area-card {
  display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-6);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: inherit; text-decoration: none; box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-400); color: inherit; }
.area-card__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--green-100); color: var(--green-800); }
.area-card__icon .icon { width: 28px; height: 28px; }
.area-card:hover .area-card__icon { background: var(--green-800); color: var(--gold-400); }
.area-card__title { margin: var(--space-2) 0 0; font-size: var(--fs-h3); }
.area-card__text { margin: 0; color: var(--muted); flex: 1; font-size: .98rem; }
.area-card__more { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--gold-600); font-weight: 600; font-size: .9375rem; }
.area-card__more .icon { transition: transform .25s var(--ease); }
.area-card:hover .area-card__more .icon { transform: translateX(-4px); }

/* بطاقة المقال */
.article-card { position: relative; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.article-card:hover { border-color: var(--gold-400); box-shadow: var(--shadow); }
.article-card__date { margin: 0; color: var(--gold-600); font-size: var(--fs-sm); font-weight: 600; }
.article-card__title { font-size: var(--fs-h3); margin: 0; }
.article-card__title a { color: var(--green-900); text-decoration: none; }
.article-card__title a::after { content: ""; position: absolute; inset: 0; }
.article-card__text { margin: 0; color: var(--muted); flex: 1; }
.article-card__more { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--gold-600); font-weight: 600; font-size: .9375rem; }

/* النماذج */
.form-card { padding: var(--space-6); background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold-500); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.form-card--sticky { position: sticky; top: calc(var(--header-h) + var(--space-5)); }
.form-card__title { font-size: 1.6rem; margin-bottom: var(--space-2); }
.form-card__sub { color: var(--muted); margin-bottom: var(--space-5); }
.consult-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-1); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field label { font-weight: 600; font-size: .9375rem; color: var(--green-900); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .9rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-700); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-700) 15%, transparent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: var(--fs-sm); }
.field__hint { margin: 0; color: var(--muted); font-size: .8125rem; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: var(--space-1) var(--space-3); }
.field--check input { width: 22px; height: 22px; min-height: 0; margin-top: .3em; accent-color: var(--green-800); }
.field--check label { font-weight: 400; font-size: .9375rem; }
.field--check .field__error { grid-column: 2; }
.req { color: var(--danger); }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consult-form--compact .field-row { grid-template-columns: 1fr; }

/* الأسئلة الشائعة */
.faq { display: grid; gap: var(--space-3); }
.faq__item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__item[open] { border-color: var(--gold-400); box-shadow: var(--shadow-sm); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-4) var(--space-5); cursor: pointer; font-weight: 600; color: var(--green-900); list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--green-100); color: var(--green-800); font-size: 1.2rem; line-height: 1; }
.faq__item[open] .faq__q::after { content: "−"; background: var(--gold-500); color: var(--green-950); }
.faq__a { padding: 0 var(--space-5) var(--space-4); color: var(--muted); }
.faq__a p { margin: 0; }

/* نصوص طويلة (المقالات، الصفحات القانونية، المجالات) */
.prose { font-size: 1.0625rem; line-height: 2; }
.prose h2 { font-size: 1.75rem; margin-top: var(--space-7); }
.prose h3 { font-size: 1.3rem; margin-top: var(--space-6); }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-4) var(--space-5); border-inline-start: 4px solid var(--gold-500); background: var(--ivory); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: var(--space-5); font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: var(--space-2) var(--space-3); text-align: start; }
.prose th { background: var(--ivory); }
.prose > :first-child { margin-top: 0; }
.prose .checklist { padding: 0; }
.align-center { text-align: center; } .align-left { text-align: left; } .align-justify { text-align: justify; }
.lead-text { font-size: 1.2rem; color: var(--green-900); }

/* واتساب العائم */
.wa-float {
  position: fixed; inset-inline-start: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: var(--white); box-shadow: 0 8px 22px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}
.wa-float:hover { color: var(--white); transform: scale(1.07); }
.wa-float__icon { width: 30px; height: 30px; stroke-width: 1.8; }

/* 5) الأقسام --------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; color: var(--white); padding-block: var(--space-8) var(--space-9);
  background:
    radial-gradient(900px 500px at 10% 110%, color-mix(in srgb, var(--gold-500) 14%, transparent), transparent 60%),
    radial-gradient(700px 400px at 95% 0%, rgba(255, 255, 255, .05), transparent 60%),
    linear-gradient(165deg, var(--green-900) 0%, var(--green-950) 100%);
}
.hero__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--space-8); align-items: center; }
.hero__title { color: var(--white); font-size: var(--fs-h1); line-height: 1.3; margin-bottom: var(--space-5); }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .84); max-width: 600px; margin-bottom: var(--space-6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero__call { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-5) 0 0; color: rgba(255, 255, 255, .75); font-size: .95rem; }
.hero__call .icon { color: var(--gold-500); }
.hero__call a { color: var(--white); font-weight: 600; text-decoration: none; }
.hero__call a:hover { color: var(--gold-400); }
.hero__media { position: relative; margin: 0; }
.hero__media::before {
  content: ""; position: absolute; inset: -14px; border: 2px solid var(--gold-500); border-radius: calc(var(--radius-lg) + 14px); z-index: 0;
}
.hero__media img { position: relative; z-index: 1; width: 100%; aspect-ratio: 960 / 841; object-fit: cover; border-radius: var(--radius-lg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }

.trust { background: var(--green-800); color: var(--white); border-block: 1px solid color-mix(in srgb, var(--gold-500) 35%, transparent); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust__item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4); }
.trust__item + .trust__item { border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.trust__item .icon { width: 34px; height: 34px; color: var(--gold-500); }
.trust__item strong { display: block; font-size: 1rem; }
.trust__item span { display: block; font-size: .85rem; color: rgba(255, 255, 255, .72); line-height: 1.5; }

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); counter-reset: none; }
.steps__item { position: relative; padding: var(--space-6) var(--space-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps__item .icon { width: 34px; height: 34px; color: var(--green-800); margin-bottom: var(--space-4); }
.steps__num { position: absolute; inset-inline-end: var(--space-5); top: var(--space-4); font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--gold-100); font-weight: 700; }
.steps__title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.steps__item p { margin: 0; color: var(--muted); font-size: .98rem; }

.cta-band { background: linear-gradient(135deg, var(--green-800), var(--green-950)); color: var(--white); padding-block: var(--space-8); border-top: 3px solid var(--gold-500); }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); flex-wrap: wrap; }
.cta-band__title { color: var(--white); font-size: var(--fs-h2); margin-bottom: var(--space-2); }
.cta-band__text p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 560px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* الفوتر */
.site-footer { background: var(--footer-bg); color: rgba(255, 255, 255, .78); padding-top: var(--space-8); font-size: .95rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: var(--space-7); padding-bottom: var(--space-7); }
.site-footer__name { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); margin: 0; }
.site-footer__tag { color: var(--gold-400); margin-bottom: var(--space-4); }
.site-footer__about { font-size: .92rem; line-height: 1.9; }
.site-footer__license { color: var(--gold-400); }
.site-footer__title { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: var(--space-4); padding-bottom: var(--space-2); border-bottom: 2px solid var(--gold-500); display: inline-block; }
.site-footer__col ul { list-style: none; display: grid; gap: var(--space-2); }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.contact-list { margin-bottom: var(--space-5) !important; }
.contact-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.contact-list .icon { color: var(--gold-500); margin-top: .35em; }
.social { list-style: none; display: flex; gap: var(--space-2); }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%; }
.social a:hover { border-color: var(--gold-500); }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-5); padding-block: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.site-footer__bottom p { margin: 0; }
.site-footer__disclaimer { flex: 1; color: rgba(255, 255, 255, .55); }
.site-footer__office { color: rgba(255, 255, 255, .5) !important; font-size: .8rem; }

/* 6) الصفحات --------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-7); align-items: start; }
.contact-cards { display: grid; gap: var(--space-3); }
.contact-card { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5); background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius-lg); color: inherit; text-decoration: none; }
a.contact-card:hover { border-color: var(--gold-400); color: inherit; box-shadow: var(--shadow-sm); }
.contact-card > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--green-800); color: var(--gold-400); }
.contact-card strong { display: block; color: var(--green-900); }
.contact-card span span { color: var(--muted); }
.map-section { position: relative; }
.map-section__frame { width: 100%; height: 420px; border: 0; filter: grayscale(.2); }
.map-section__btn { position: absolute; bottom: var(--space-5); inset-inline-start: var(--space-5); }

.area-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: var(--space-8); align-items: start; }

.profile-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.profile-card__photo { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: center 18%; }
.credentials { list-style: none; display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); font-size: .95rem; }
.credentials li { display: flex; gap: var(--space-2); align-items: flex-start; line-height: 1.7; }
.credentials .icon { color: var(--gold-600); margin-top: .3em; width: 1.1em; height: 1.1em; }
.profile-card__body { padding: var(--space-5) var(--space-6) var(--space-6); border-top: 4px solid var(--gold-500); }
.profile-card__name { font-size: 1.6rem; margin-bottom: 0; }
.profile-card__role { color: var(--gold-600); font-weight: 600; }
.profile-card__license { display: flex; align-items: center; gap: var(--space-2); margin: 0; }

.value { padding: var(--space-6); background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.value__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--gold-100); color: var(--gold-600); margin-bottom: var(--space-4); }
.value__icon .icon { width: 26px; height: 26px; }
.value__title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.value p { margin: 0; color: var(--muted); font-size: .98rem; }

.video-card { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.video-card__frame { aspect-ratio: 16 / 9; background: #000; }
.video-card__frame iframe, .video-card__frame video { width: 100%; height: 100%; border: 0; }
.video-card figcaption { padding: var(--space-4) var(--space-5); font-weight: 600; color: var(--green-900); }

.video-thumb { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none; transition: box-shadow .25s var(--ease), border-color .25s var(--ease); }
.video-thumb:hover { border-color: var(--gold-400); box-shadow: var(--shadow); color: inherit; }
.video-thumb__img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--green-950); overflow: hidden; }
.video-thumb__img img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .35s var(--ease); }
.video-thumb:hover .video-thumb__img img { transform: scale(1.04); }
.video-thumb__play { position: absolute; inset: 0; display: grid; place-items: center; }
.video-thumb__play .icon { width: 64px; height: 64px; color: var(--white); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .5)); }
.video-thumb__title { padding: var(--space-4) var(--space-5); font-weight: 600; color: var(--green-900); line-height: 1.6; }
.note-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin: var(--space-7) 0 var(--space-5); padding: var(--space-5); background: var(--ivory); border-inline-start: 4px solid var(--gold-500); border-radius: var(--radius); }
.note-card p { margin: 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: var(--space-4); margin-top: var(--space-7); }
.empty { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); padding: var(--space-8) var(--space-5); text-align: center; color: var(--muted); background: var(--ivory); border-radius: var(--radius-lg); }
.empty .icon { width: 44px; height: 44px; color: var(--gold-500); }

.center { text-align: center; }
.big-number { font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--gold-500); margin: 0 0 var(--space-4); }
.big-icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--green-100); color: var(--green-800); margin-bottom: var(--space-5); }
.big-icon .icon { width: 42px; height: 42px; }
.actions-row { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-5); }
.mt-lg { margin-top: var(--space-8); }

/* 7) التجاوب ---------------------------------------------------------------- */
@media (max-width: 1100px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-nav__link { padding-inline: .55rem; font-size: .94rem; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .section { padding-block: var(--space-8); }
  .topbar__item:not(a) { display: none; }
  .topbar__spacer { display: none; }
  .topbar__inner { justify-content: center; gap: var(--space-4); }

  .nav-toggle { display: grid; place-items: center; }
  .site-nav {
    position: absolute; top: 100%; inset-inline: 0; z-index: 49; flex-direction: column; align-items: stretch;
    gap: var(--space-4); padding: var(--space-4) var(--space-5) var(--space-6); margin: 0;
    background: var(--green-900); border-top: 1px solid rgba(255, 255, 255, .1);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__link { padding: var(--space-4) var(--space-2); border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1.05rem; border-radius: 0; }
  .site-nav__link::after { display: none; }
  .site-nav__link.is-active { color: var(--gold-400); }

  .hero { padding-block: var(--space-7) var(--space-8); }
  .hero__grid, .split, .split--top, .contact-layout, .area-layout { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__media { max-width: 520px; margin-inline: auto; }
  .split__media { order: -1; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__item:nth-child(3) { border-inline-start: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .form-card--sticky { position: static; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { padding-inline: var(--space-4); }
  .topbar a.topbar__item[href^="mailto"] { display: none; }
  .brand__logo { height: 46px; }
  .brand__name { font-size: 1.1rem; }
  .brand__tag { font-size: .75rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__media::before { inset: -8px; border-radius: calc(var(--radius-lg) + 8px); }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item + .trust__item { border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .steps { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-card { padding: var(--space-5); }
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .cta-band__actions, .cta-band__actions .btn { width: 100%; }
  .map-section__frame { height: 320px; }
  .wa-float { width: 52px; height: 52px; inset-inline-start: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}

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

@media print {
  .topbar, .site-header, .site-footer, .wa-float, .cta-band, .consult-form, .form-card { display: none !important; }
  .page-hero { background: none; color: #000; border: 0; padding: 0; }
  .page-hero__title { color: #000; }
}

/* حجز موعد (المرحلة 4) */
.contact-card--book { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.contact-card--book strong { color: var(--gold-400); }
.contact-card--book > .icon { background: var(--gold-500); color: var(--green-900); }
a.contact-card--book:hover { color: #fff; border-color: var(--gold-500); }
.site-footer__office a { color: inherit; }
.site-footer__office a:hover { color: var(--gold-400); }

/* أغلفة المقالات */
.article-card__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); margin-bottom: var(--space-3); }
.article-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: var(--space-6); box-shadow: var(--shadow-sm); }

/* الشعار العريض (فيه اسم المكتب): يظهر وحده في الرأس */
.brand--wordmark .brand__logo { height: auto; max-height: 60px; max-width: min(380px, calc(100vw - 120px)); border-radius: 0; }
@media (max-width: 960px) { .brand--wordmark .brand__logo { max-height: 44px; } }
