/* ============================================================
   مسارات عدلية للمحاماة — Masarat Adlia Law Firm
   ============================================================ */

@font-face {
  font-family: 'Camel';
  src: url('../fonts/camel-bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Camel';
  src: url('../fonts/camel-extrabold.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  --navy: #1b334d;
  --navy-deep: #12233a;
  --gold: #a58d48;
  --gold-light: #c4ad6a;
  --ink: #212121;
  --gray: #717171;
  --line: #e9e5da;
  --paper: #ffffff;
  --cream: #f7f4ec;
  --shadow: 0 18px 45px -18px rgba(27, 51, 77, .18);
  --radius: 14px;
  --ff: 'Camel', 'Segoe UI', Tahoma, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff);
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin-inline: auto; }

::selection { background: var(--gold); color: #fff; }

/* ---------- Header (أبيض كما في الأصل) ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s;
}
.site-header.solid { box-shadow: 0 8px 24px -14px rgba(27,51,77,.25); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .75rem;
}
.brand img { height: 68px; width: auto; }
.main-nav ul { display: flex; gap: 1.9rem; align-items: center; }
.main-nav a {
  color: var(--navy);
  font-size: .98rem;
  position: relative;
  padding-block: .4rem;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform .3s;
  transform-origin: right;
}
.main-nav a:hover::after,
.main-nav a.active::after { transform: scaleX(1); }
.main-nav a.active { color: var(--gold); }

.btn {
  display: inline-block;
  padding: .7rem 1.9rem;
  border-radius: 999px;
  font-family: var(--ff);
  font-weight: 800;
  font-size: .95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all .3s;
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(27,51,77,.6);
}
.btn-navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #8f7838);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(165, 141, 72, .7);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(165, 141, 72, .8); }
.btn-outline {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
}
.btn-outline:hover { background: var(--gold); color: #fff; }

.header-side { display: flex; align-items: center; gap: .7rem; }
.lang-switch {
  padding: .5rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-size: .85rem;
  font-weight: 800;
  transition: all .3s;
}
.lang-switch:hover { border-color: var(--gold); color: var(--gold); }
/* اتجاه النسخة الإنجليزية */
html[lang="en"] body { direction: ltr; }
html[lang="en"] .hero-content { text-align: left; }
html[lang="en"] .section-head.head-right { text-align: left; }
html[lang="en"] .main-nav a::after { transform-origin: left; }
html[lang="en"] .founder-detail li::before,
html[lang="en"] .legal li::before { top: .5em; }
html[lang="en"] .wa-float { inset-inline-start: auto; inset-inline-end: 1.6rem; }
.btn-login {
  border-color: var(--gold);
  color: var(--gold);
  background: transparent;
  display: inline-flex;
  align-items: center;
}
.btn-login:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.nav-login-item { display: none; }
@media (max-width: 820px) {
  .nav-login-item { display: block; }
  .nav-login-item a { color: var(--gold-light); }
}
.header-wa {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  transition: transform .3s;
}
.header-wa:hover { transform: scale(1.08); }
.header-wa svg { width: 22px; height: 22px; fill: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 42px; height: 42px;
  position: relative;
  z-index: 130;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: all .3s;
}
.nav-open .nav-toggle span { background: #fff; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero (فيديو + محاذاة يمين كما في الأصل) ---------- */
.hero {
  /* نسبة 16:9 = نسبة الفيديو نفسها، فيظهر المشهد كاملاً بلا قص على الشاشات العريضة */
  min-height: min(56.25vw, 92vh);
  display: flex;
  align-items: center;
  color: #fff;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to left, rgba(10, 18, 28, .62), rgba(10, 18, 28, .38));
}
.hero-content { text-align: right; }
.hero h1 {
  font-size: clamp(2.3rem, 5.5vw, 3.9rem);
  font-weight: 800;
  line-height: 1.3;
  animation: rise .9s .15s both;
}
.hero p {
  margin: 1.1rem 0 2.6rem;
  max-width: 620px;
  font-size: 1.2rem;
  color: #e8ebef;
  line-height: 1.95;
  animation: rise .9s .3s both;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  animation: rise .9s .45s both;
}
.hero-cta .arrow-box {
  width: 52px; height: 52px;
  background: var(--gold);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  line-height: 1;
  transition: all .3s;
}
.hero-cta:hover .arrow-box { background: var(--gold-light); transform: translateX(-6px); }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
section { padding: 5.5rem 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 3.2rem; }
.section-head.head-right { text-align: right; margin-inline: 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  color: var(--gold);
  font-size: .88rem;
  /* بدون تباعد حروف: يفكك الحروف العربية المتصلة ويجعلها تبدو متقطعة */
  letter-spacing: normal;
  margin-bottom: .9rem;
}
html[lang="en"] .eyebrow { letter-spacing: .18em; }
/* عندما يقوم العنوان الصغير مقام العنوان الرئيسي للقسم */
.eyebrow.as-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.eyebrow.as-title::before,
.eyebrow.as-title::after { width: 48px; height: 2px; }
.eyebrow::before, .eyebrow::after {
  content: '';
  width: 34px; height: 1px;
  background: var(--gold);
}
.head-right .eyebrow::after { display: none; }
.section-head h2, .page-hero h1 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.45;
}
.section-head p { color: var(--gray); margin-top: 1rem; line-height: 2; }

.alt { background: var(--cream); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s, transform .8s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
}
.about-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 1.6rem;
}
.about-text p { color: var(--gray); line-height: 2.15; margin-bottom: 1.1rem; }
.about-media { position: relative; }
.about-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/4.6;
  object-fit: cover;
  width: 100%;
}

/* ---------- Stats (أبيض كما في الأصل) ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.stat {
  text-align: center;
  padding: 2.1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(165,141,72,.5); }
.stat .num {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1.1;
  direction: ltr;
  unicode-bidi: embed;
}
.stat .unit { font-size: 1.15rem; color: var(--navy); font-weight: 800; display: block; margin-top: .3rem; }
.stat .desc { color: var(--gray); font-size: .88rem; margin-top: .55rem; line-height: 1.8; display: block; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.services-grid.four { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.services-grid.three { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem; }

/* بطاقات الخدمات — الصورة خلفية والنص فوقها */
.service-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  isolation: isolate;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  transition: transform .35s, box-shadow .35s;
}
.service-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .5s;
}
.service-tile:hover img { transform: scale(1.07); }
.service-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(14, 26, 42, .93) 25%, rgba(14, 26, 42, .55) 60%, rgba(14, 26, 42, .3));
  transition: background .35s;
}
.service-tile .body {
  padding: 1.4rem 1.3rem;
  color: #fff;
  width: 100%;
  position: relative;
  isolation: isolate;
}
/* الخلفية البيج تنزلق من الأسفل عند المرور */
.service-tile .body::before {
  content: '';
  position: absolute;
  top: 0;
  inset-inline: -4px;
  bottom: -4px;
  z-index: -1;
  background: var(--cream);
  border-radius: 12px 12px 0 0;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .45s cubic-bezier(.33, 1, .5, 1), opacity .35s ease;
}
.service-tile:hover .body::before {
  transform: translateY(0);
  opacity: 1;
}
.service-tile .index {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
  margin-bottom: .4rem;
  transition: color .4s ease, transform .4s ease;
}
.service-tile h3 {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: .5rem;
  transition: color .4s ease;
}
.service-tile p {
  color: #cdd5de;
  font-size: .82rem;
  line-height: 1.9;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .4s ease;
}
.service-tile:hover .index { color: var(--gold); transform: translateY(-2px); }
.service-tile:hover h3 { color: var(--navy); }
.service-tile:hover p { color: var(--gray); }
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.1rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; inset-inline: 0;
  height: 3px;
  background: linear-gradient(to left, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow); border-color: rgba(165,141,72,.5); }
.service-card:hover::before { transform: scaleX(1); }
.service-card .thumb {
  width: calc(100% + 3.4rem);
  margin: -2.1rem -1.7rem 1.2rem;
  max-width: none;
  aspect-ratio: 16/8.5;
  object-fit: cover;
}
.service-card .index {
  font-size: 2.4rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.4px var(--gold);
  display: block;
  margin-bottom: .9rem;
}
.service-card h3 { color: var(--navy); font-size: 1.18rem; font-weight: 800; margin-bottom: .8rem; line-height: 1.6; }
.service-card p { color: var(--gray); font-size: .93rem; line-height: 2; }

.link-gold {
  color: var(--gold);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.link-gold:hover { color: var(--gold-light); }

/* ---------- Founders ---------- */
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 480px));
  justify-content: center;
  gap: 1.6rem;
}
.founder-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .35s, box-shadow .35s;
}
.founder-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
/* الصورة تملأ أعلى البطاقة بقصّة مائلة */
.founder-card .photo {
  height: 300px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}
.founder-card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  transition: transform .55s ease;
}
.founder-card .photo img.pos-top { object-position: center 18%; }
.founder-card:hover .photo img { transform: scale(1.06); }
/* وسام رمز الشعار كفاصل بين الصورة والنص */
.founder-card .emblem {
  width: 84px; height: 84px;
  margin: -56px auto 0;
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  box-shadow: 0 10px 24px -12px rgba(27, 51, 77, .35);
  transition: transform .4s ease, box-shadow .4s ease;
}
.founder-card .emblem img { width: 100%; height: 100%; object-fit: contain; }
.founder-card:hover .emblem {
  transform: translateY(-5px) rotate(-4deg);
  box-shadow: 0 16px 30px -12px rgba(165, 141, 72, .5);
}
.founder-card .info { padding: 1.1rem 1.8rem 2.2rem; }
.founder-card h3 { color: var(--navy); font-weight: 800; font-size: 1.25rem; }
.founder-card .role { color: var(--gold); font-size: .9rem; margin: .35rem 0 1rem; }
.founder-card p { color: var(--gray); font-size: .93rem; line-height: 2; }

.founder-detail {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  margin-bottom: 2rem;
  align-items: start;
}
.founder-detail img {
  border-radius: var(--radius);
  aspect-ratio: 3/3.8;
  object-fit: cover;
  object-position: top;
  width: 100%;
  box-shadow: var(--shadow);
}
.founder-detail h3 { color: var(--navy); font-size: 1.5rem; font-weight: 800; }
.founder-detail .role { color: var(--gold); margin: .3rem 0 1.4rem; }
.founder-detail h4 {
  color: var(--navy);
  font-size: 1.05rem;
  margin: 1.4rem 0 .7rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.founder-detail h4::before { content: ''; width: 22px; height: 2px; background: var(--gold); }
.founder-detail li {
  color: var(--gray);
  line-height: 2;
  font-size: .95rem;
  padding-inline-start: 1.4rem;
  position: relative;
  margin-bottom: .35rem;
}
.founder-detail li::before {
  content: '◆';
  color: var(--gold);
  font-size: .6rem;
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
}

/* ---------- Accreditations (شريط متحرك) ---------- */
.accred-strip { overflow: hidden; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  padding-inline-end: 4rem;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  height: 150px;
  width: auto;
  object-fit: contain;
  transition: transform .35s;
}
.marquee-track img:hover { transform: scale(1.1); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- CSR (الشريط الكحلي الوحيد كما في الأصل) ---------- */
.csr {
  background:
    linear-gradient(120deg, rgba(18,35,58,.96), rgba(27,51,77,.88)),
    url('../img/section-bg.webp') center/cover no-repeat;
  color: #fff;
}
.csr .eyebrow { color: var(--gold-light); }
.csr h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin-bottom: 1.4rem; }
.csr p { max-width: 780px; color: #c9d1da; line-height: 2.2; }

/* ---------- Blog (بطاقات داكنة بصورة خلفية كما في الأصل) ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.3rem;
}
.post-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/4.4;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  transition: transform .35s, box-shadow .35s;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .5s;
}
.post-card:hover img { transform: scale(1.06); }
.post-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10,18,28,.88) 20%, rgba(10,18,28,.35) 65%, rgba(10,18,28,.25));
}
.post-card .body { padding: 1.3rem 1.2rem 1.4rem; }
.post-card h3 { color: #fff; font-size: .98rem; font-weight: 800; line-height: 1.85; }
.post-card .meta { color: #cfd6dd; font-size: .78rem; display: flex; gap: .8rem; margin-bottom: .6rem; }
.post-card .meta i { color: var(--gold-light); font-style: normal; }

/* بطاقات المكتبة النصية في صفحة المدونة */
.lib-card { aspect-ratio: auto; }

/* ---------- FAQ ---------- */
.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .7rem;
  margin-bottom: 2.5rem;
}
.faq-tabs span {
  padding: .55rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--gray);
  font-size: .9rem;
  cursor: default;
}
.faq-tabs span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.faq-list { max-width: 860px; margin-inline: auto; display: grid; gap: 1rem; }
details.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s;
}
details.faq[open] { border-color: var(--gold); }
details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.3rem 1.5rem;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.8;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .3s;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .answer { padding: 0 1.5rem 1.5rem; color: var(--gray); line-height: 2.1; font-size: .95rem; }

/* ---------- Page hero (الصفحات الداخلية) ---------- */
.page-hero {
  padding: 10rem 0 4.5rem;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(18,35,58,.95), rgba(27,51,77,.82)),
    url('../img/section-bg.webp') center/cover no-repeat;
}
.page-hero h1 { color: #fff; animation: rise .8s .1s both; }
.page-hero p {
  max-width: 640px;
  margin: 1.2rem auto 0;
  color: #ccd3dc;
  line-height: 2;
  animation: rise .8s .25s both;
}

/* ---------- Services page ---------- */
.service-row {
  display: grid;
  grid-template-columns: 110px 1fr 260px;
  gap: 2rem;
  padding: 2.4rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.service-row .row-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.service-row:last-child { border-bottom: 0; }
.service-row .num {
  font-size: 3.2rem;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.6px var(--gold);
  line-height: 1;
}
.service-row h3 { color: var(--navy); font-size: 1.35rem; font-weight: 800; margin-bottom: .8rem; line-height: 1.6; }
.service-row p { color: var(--gray); line-height: 2.15; }

/* ---------- Vision / Mission ---------- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.vm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem;
  position: relative;
  overflow: hidden;
}
.vm-card h3 { color: var(--navy); font-weight: 800; font-size: 1.2rem; margin-bottom: .8rem; }
.vm-card p { color: var(--gray); line-height: 2.1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2.5rem; align-items: start; }
.info-cards { display: grid; gap: 1.1rem; }
.info-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.info-card .icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: var(--gold-light);
  font-size: 1.2rem;
}
.info-card h3 { color: var(--navy); font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.info-card p, .info-card a { color: var(--gray); font-size: .92rem; line-height: 1.9; }
.info-card a:hover { color: var(--gold); }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow);
}
.contact-form h2 { color: var(--navy); font-weight: 800; font-size: 1.4rem; margin-bottom: 1.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; color: var(--navy); font-size: .88rem; margin-bottom: .45rem; }
.field label b { color: var(--gold); }
.field input, .field textarea {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--ff);
  font-size: .95rem;
  color: var(--ink);
  background: var(--cream);
  transition: border-color .3s, background .3s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
}
.field textarea { min-height: 140px; resize: vertical; }

/* ---------- Contact map ---------- */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  height: 380px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Blog list (صفحة المدونة) ---------- */
.blog-list { display: grid; gap: 1.1rem; }
.blog-item {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  align-items: stretch;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.blog-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(165,141,72,.5); }
.blog-item img { width: 100%; height: 205px; object-fit: cover; align-self: center; }
.blog-item .body { padding: 1.2rem 0 1.2rem 1.4rem; display: flex; flex-direction: column; gap: .5rem; }
.blog-item .meta { color: var(--gray); font-size: .78rem; display: flex; gap: .8rem; }
.blog-item .meta i { color: var(--gold); font-style: normal; }
.blog-item h3 { color: var(--navy); font-size: 1.08rem; font-weight: 800; line-height: 1.7; }
.blog-item p { color: var(--gray); font-size: .88rem; line-height: 1.95; }

/* ---------- Post page ---------- */
.post-hero .post-meta {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  color: #ccd3dc;
  font-size: .85rem;
  margin-bottom: 1rem;
  animation: rise .8s .05s both;
}
.post-hero .post-meta .cat {
  background: var(--gold);
  color: #fff;
  padding: .25rem 1rem;
  border-radius: 999px;
}
.post-article { max-width: 820px; }
.post-article h2 { margin-top: 2rem; }
.post-article blockquote {
  border-inline-start: 3px solid var(--gold);
  padding: .6rem 1.2rem;
  background: var(--cream);
  border-radius: 8px;
  color: var(--gray);
  margin-bottom: .8rem;
}

/* أزرار تبويبات الفلترة */
.faq-tab {
  padding: .55rem 1.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--gray);
  font-family: var(--ff);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .3s;
}
.faq-tab:hover { border-color: var(--gold); color: var(--gold); }
.faq-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ---------- Login page ---------- */
.login-section {
  min-height: calc(100vh - 90px);
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(247,244,236,.92), rgba(247,244,236,.97)),
    url('../img/section-bg.webp') center/cover no-repeat;
  padding: 9rem 0 5rem;
}
.login-card {
  width: min(460px, 92%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.8rem 2.5rem;
  text-align: center;
  animation: rise .7s both;
}
.login-card .mark {
  width: 74px;
  margin: 0 auto 1.2rem;
}
.login-card h1 { color: var(--navy); font-size: 1.45rem; font-weight: 800; }
.login-card .sub { color: var(--gray); font-size: .9rem; margin: .5rem 0 1.8rem; line-height: 1.9; }
.login-card .field { text-align: right; }
.login-card .notice {
  display: none;
  background: #fdf3e5;
  border: 1px solid var(--gold-light);
  color: #7a672f;
  border-radius: 10px;
  padding: .8rem 1rem;
  font-size: .85rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.login-card .notice.show { display: block; }
.login-card .btn { width: 100%; }
.login-card .hint { color: var(--gray); font-size: .8rem; margin-top: 1.2rem; }
.login-card .hint a { color: var(--gold); }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; margin-inline: auto; }
.legal h2 { color: var(--navy); font-size: 1.3rem; font-weight: 800; margin: 2.2rem 0 .9rem; }
.legal p, .legal li { color: var(--gray); line-height: 2.2; margin-bottom: .8rem; }
.legal li { padding-inline-start: 1.4rem; position: relative; }
.legal li::before {
  content: '◆';
  color: var(--gold);
  font-size: .6rem;
  position: absolute;
  inset-inline-start: 0;
  top: .6em;
}
.legal .note { font-size: .88rem; color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy-deep), var(--navy));
  border-radius: var(--radius);
  padding: 3.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset-inline-end: -60px;
  top: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 2px solid rgba(165,141,72,.4);
}
.cta-band h2 { color: #fff; font-size: 1.5rem; font-weight: 800; line-height: 1.7; }
.cta-band p { color: #b9c2cd; margin-top: .4rem; }

/* ---------- Footer (أبيض كما في الأصل) ---------- */
.site-footer {
  background: #fff;
  color: var(--gray);
  padding: 4.5rem 0 0;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand img { height: 90px; margin-bottom: 1.2rem; }
.footer-brand .en-name { color: var(--gold); font-size: .85rem; letter-spacing: .12em; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; line-height: 2.1; }
.site-footer h4 {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}
.site-footer h4::after { content: ''; width: 26px; height: 2px; background: var(--gold); }
.footer-links li { margin-bottom: .7rem; }
.footer-links a { font-size: .93rem; transition: color .3s, padding .3s; }
.footer-links a:hover { color: var(--gold); padding-inline-start: .4rem; }
.footer-contact li {
  display: flex;
  gap: .7rem;
  margin-bottom: .9rem;
  font-size: .9rem;
  line-height: 1.9;
  align-items: baseline;
}
.footer-contact i { color: var(--gold); font-style: normal; flex-shrink: 0; }
.footer-contact a:hover { color: var(--gold); }
.socials { display: flex; gap: .7rem; margin-top: 1.4rem; }
.socials a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: all .3s;
}
.socials a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-3px); }
.socials svg { width: 16px; height: 16px; fill: var(--navy); }
.socials a:hover svg { fill: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .82rem;
}
.footer-bottom a { color: var(--gray); }
.footer-bottom a:hover { color: var(--gold); }
.footer-bottom .legal-links { display: flex; gap: 1.4rem; }

/* WhatsApp float */
.wa-float {
  position: fixed;
  bottom: 1.6rem;
  inset-inline-start: 1.6rem;
  z-index: 90;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .65);
  transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services-grid, .services-grid.four, .services-grid.three { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  /* البانر في الجوال: ارتفاع أقصر يقلل قص الفيديو ويُظهر جزءاً أوسع من المشهد */
  .hero { min-height: 46vh; padding: 6rem 0 2.2rem; }
  .hero h1 { font-size: 1.95rem; }
  .hero p { font-size: .98rem; margin: .7rem 0 1.5rem; }
  .hero-cta { font-size: 1rem; gap: .8rem; }
  .hero-cta .arrow-box { width: 44px; height: 44px; font-size: 1.25rem; }
  .blog-item { grid-template-columns: 1fr; }
  .blog-item img { min-height: 0; aspect-ratio: 16/8; }
  .blog-item .body { padding: 0 1.2rem 1.3rem; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: rgba(18, 35, 58, .97);
    backdrop-filter: blur(16px);
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s;
    z-index: 120;
  }
  .main-nav ul { flex-direction: column; gap: 2rem; text-align: center; }
  .main-nav a { font-size: 1.3rem; color: #fff; }
  .nav-open .main-nav { opacity: 1; pointer-events: auto; }
  /* في الجوال يبقى مبدّل اللغة فقط ظاهراً بجانب زر القائمة */
  .header-side { display: flex; }
  .header-side .header-wa,
  .header-side .btn { display: none; }
  .header-inner { padding-block: .8rem; }
  .brand img { height: 58px; }
  .lang-switch { padding: .45rem 1rem; font-size: .9rem; }
  .about-grid, .contact-grid, .vm-grid { grid-template-columns: 1fr; }
  .founders-grid { grid-template-columns: 1fr; }
  .founder-detail { grid-template-columns: 1fr; }
  .founder-detail img { max-width: 260px; }
  .service-row { grid-template-columns: 1fr; gap: .8rem; }
  .service-row .row-img { max-width: 420px; }
}

@media (max-width: 560px) {
  .services-grid, .services-grid.four, .services-grid.three, .footer-grid { grid-template-columns: 1fr; }
  /* بطاقات المقالات في الجوال: بطاقتان بجانب بعض بأحجام أصغر */
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
  .post-card h3 { font-size: .82rem; line-height: 1.7; }
  .post-card .meta { font-size: .68rem; gap: .5rem; }
  .post-card .body { padding: .9rem .8rem 1rem; }
  .service-tile { min-height: 260px; }
  .stats-grid { grid-template-columns: 1fr !important; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.8rem 0; }
  .brand img { height: 58px; }
}
