/* ==========================================================================
   المحامي عيسى النظيري — ملف تسويقي
   الألوان مأخوذة من صورة المحامي: أسود الروب، عنّابي ونحاسي المصرّ العُماني
   ========================================================================== */

:root {
  --ink: #0a0a0b;
  --ink-2: #131214;
  --ink-3: #1d1b1e;
  --maroon: #3a1420;
  --maroon-2: #4d1c2b;
  --copper: #c8894a;
  --copper-2: #e2b47f;
  --copper-deep: #96602c;
  --paper: #faf6ee;
  --sand: #f1e9db;
  --line: #e3d8c5;
  --text: #1d1a17;
  --muted: #655c52;
  --on-dark: #f4ede2;
  --on-dark-muted: #b8ac9d;
  --wa: #25d366;
  --wa-hover: #1ebe5a;
  --wa-ink: #04210f;
  --radius: 14px;
  --header-h: 76px;
  --font-display: "Amiri", "Noto Naskh Arabic", "Traditional Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--copper);
  color: #1a0f05;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-solid {
  fill: currentColor;
  stroke: none;
}

.ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}

/* ---------- الأزرار ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-wa {
  background: var(--wa);
  color: var(--wa-ink);
}

.btn-wa:hover {
  background: var(--wa-hover);
}

.btn-ghost {
  border-color: rgba(200, 137, 74, 0.6);
  color: var(--on-dark);
}

.btn-ghost:hover {
  background: rgba(200, 137, 74, 0.12);
  border-color: var(--copper);
}

.btn-copper {
  background: var(--copper);
  color: #1a0f05;
}

.btn-copper:hover {
  background: var(--copper-2);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.92rem;
}

/* ---------- الترويسة ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  color: var(--on-dark);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.site-header.is-solid {
  background: rgba(10, 10, 11, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(200, 137, 74, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--on-dark);
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-2);
}

.brand-mark .icon {
  width: 22px;
  height: 22px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
}

.brand-sub {
  font-size: 0.74rem;
  color: var(--on-dark-muted);
}

.nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  position: relative;
  display: block;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--on-dark);
  text-decoration: none;
  opacity: 0.86;
  transition: opacity 0.2s;
}

.nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 0.2rem 0;
  height: 1px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s;
}

.nav a:hover {
  opacity: 1;
}

.nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 1px solid rgba(200, 137, 74, 0.45);
  border-radius: 10px;
  color: var(--on-dark);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 22px;
  height: 22px;
  margin: auto;
  display: block;
}

/* ---------- الواجهة ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding-top: var(--header-h);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(46% 60% at 18% 62%, rgba(77, 28, 43, 0.6), transparent 72%),
    linear-gradient(180deg, transparent 60%, rgba(58, 20, 32, 0.25));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: end;
  min-height: min(800px, calc(100svh - var(--header-h)));
  padding-top: clamp(2rem, 5vw, 4rem);
}

.hero-copy {
  align-self: center;
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
  color: var(--copper-2);
  font-size: 0.95rem;
  font-weight: 500;
}

.hero-eyebrow::before {
  content: "";
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.hero h1 span {
  display: block;
  font-size: 0.46em;
  font-weight: 400;
  color: var(--copper-2);
  margin-bottom: 0.2rem;
}

.hero-lead {
  max-width: 34em;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--on-dark-muted);
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.25rem;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  list-style: none;
  margin: 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid rgba(200, 137, 74, 0.25);
  font-size: 0.93rem;
  color: var(--on-dark-muted);
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-points .icon {
  color: var(--copper);
  width: 1.1em;
  height: 1.1em;
}

.hero-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 430px);
}

.hero-photo::before {
  content: "";
  position: absolute;
  inset: -16px -16px 0 -16px;
  border: 1px solid rgba(200, 137, 74, 0.22);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.arch {
  aspect-ratio: 5 / 6.7;
  padding-top: 7%;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(200, 137, 74, 0.6);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
}

.arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}

/* ---------- الأقسام ---------- */

.section {
  padding-block: clamp(4rem, 9vw, 7.25rem);
}

.section-sand {
  background: var(--sand);
}

.section-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.9rem;
  color: var(--copper-deep);
  font-size: 0.92rem;
  font-weight: 600;
}

.eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
}

.section-dark .eyebrow,
.guide .eyebrow {
  color: var(--copper-2);
}

.section-title {
  font-size: clamp(2rem, 4.2vw, 3.05rem);
  line-height: 1.4;
  margin-bottom: 1.1rem;
}

.section-lead {
  max-width: 40em;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-dark .section-lead {
  color: var(--on-dark-muted);
}

.section-head {
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

/* ---------- نبذة ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.about-text p {
  color: var(--muted);
  font-size: 1.08rem;
}

.about-text .btn {
  margin-top: 0.75rem;
}

.values {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.values li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
}

.values .icon {
  width: 28px;
  height: 28px;
  margin-top: 0.35rem;
  color: var(--copper-deep);
}

.values h3 {
  font-size: 1.45rem;
  line-height: 1.5;
}

.values p {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- مجالات العمل ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.75rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(58, 20, 32, 0.4);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--sand);
  color: var(--copper-deep);
}

.card-icon .icon {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 1.55rem;
  line-height: 1.5;
  margin-top: 0.35rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0.2rem 0 0;
  padding: 0;
}

.tags li {
  padding: 0.15rem 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.9rem;
  color: var(--copper-deep);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

.card-link .icon {
  width: 1.1em;
  height: 1.1em;
  transition: transform 0.2s;
}

.card-link:hover .icon {
  transform: translateX(-4px);
}

/* ---------- طريقة الحجز ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}

.steps li {
  padding: 0.5rem clamp(1.25rem, 3vw, 2.5rem) 0.5rem;
  border-inline-start: 1px solid rgba(200, 137, 74, 0.3);
}

.steps li:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--copper);
  margin-bottom: 0.9rem;
}

.steps h3 {
  font-size: 1.6rem;
  line-height: 1.5;
  margin-bottom: 0.35rem;
}

.steps p {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 0.98rem;
}

.steps-cta {
  margin-top: clamp(2rem, 4vw, 3rem);
}

/* ---------- الأسئلة الشائعة ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  font-size: 1.08rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  width: 1.9rem;
  height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--copper-deep);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "−";
  background: var(--copper);
  border-color: var(--copper);
  color: #1a0f05;
}

.faq-list details p {
  margin: 0;
  padding: 0 0 1.25rem;
  max-width: 46em;
  color: var(--muted);
}

/* ---------- التواصل ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.social {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(200, 137, 74, 0.25);
}

.social-title {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--on-dark-muted);
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social-list a {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(200, 137, 74, 0.45);
  border-radius: 50%;
  color: var(--on-dark);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.social-list a:hover {
  background: var(--copper);
  border-color: var(--copper);
  color: #1a0f05;
  transform: translateY(-2px);
}

.social-list svg {
  width: 20px;
  height: 20px;
}

.info {
  list-style: none;
  margin: 0;
  padding: 0;
  background: var(--ink-2);
  border: 1px solid rgba(200, 137, 74, 0.22);
  border-radius: var(--radius);
}

.info li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid rgba(200, 137, 74, 0.16);
}

.info li:last-child {
  border-bottom: 0;
}

.info .icon {
  width: 22px;
  height: 22px;
  color: var(--copper);
}

.info-label {
  display: block;
  font-size: 0.82rem;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.info-value {
  font-weight: 600;
  text-decoration: none;
}

a.info-value:hover {
  color: var(--copper-2);
}

.map {
  margin-top: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(200, 137, 74, 0.22);
  border-radius: var(--radius);
  background: var(--ink-2);
}

.map iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.map-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  color: var(--copper-2);
  font-weight: 600;
  text-decoration: none;
}

.map-link:hover {
  background: rgba(200, 137, 74, 0.1);
}

[hidden] {
  display: none !important;
}

/* ---------- التذييل ---------- */

.site-footer {
  background: var(--ink-2);
  color: var(--on-dark-muted);
  padding-block: 2.75rem 2rem;
  font-size: 0.93rem;
  border-top: 1px solid rgba(200, 137, 74, 0.2);
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(200, 137, 74, 0.16);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--copper-2);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
}

.footer-bottom p {
  margin: 0;
}

.disclaimer {
  max-width: 46em;
}

/* ---------- أزرار عائمة ---------- */

.wa-float {
  position: fixed;
  inset-inline-end: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  background: var(--wa);
  color: var(--wa-ink);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 28px -8px rgba(0, 0, 0, 0.55);
  transition: transform 0.2s, background-color 0.2s;
}

.wa-float:hover {
  background: var(--wa-hover);
  transform: translateY(-2px);
}

.wa-float .icon {
  width: 24px;
  height: 24px;
}

.mobile-bar {
  display: none;
}

/* ---------- صفحة المقال ---------- */

.page-top {
  background: var(--ink);
  color: var(--on-dark);
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)) 0 clamp(2.25rem, 5vw, 3.75rem);
  position: relative;
  overflow: hidden;
}

.page-top::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 90% at 12% 100%, rgba(77, 28, 43, 0.65), transparent 70%);
  pointer-events: none;
}

.page-top .container {
  position: relative;
}

.narrow {
  width: min(800px, 100% - 2.5rem);
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  font-size: 0.88rem;
  color: var(--on-dark-muted);
}

.breadcrumb li + li::before {
  content: "‹";
  margin-inline-end: 0.5rem;
  color: var(--copper);
}

.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--copper-2);
}

.page-top h1 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.45;
  margin-bottom: 1rem;
}

.page-top .lead {
  margin: 0;
  color: var(--on-dark-muted);
  font-size: 1.1rem;
}

.article {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.article h2 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  line-height: 1.5;
  margin: 2.75rem 0 0.75rem;
  padding-inline-start: 1rem;
  border-inline-start: 3px solid var(--copper);
}

.article h3 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 1.5rem 0 0.4rem;
}

.article p,
.article li {
  color: #3a342e;
}

.article ul,
.article ol {
  margin: 0 0 1.25rem;
  padding-inline-start: 1.35rem;
}

.article li {
  margin-bottom: 0.45rem;
}

.article li::marker {
  color: var(--copper-deep);
  font-weight: 700;
}

.toc {
  margin: 0 0 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--sand);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.toc ol {
  margin: 0;
}

.toc a {
  color: var(--copper-deep);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
}

.note {
  margin: 1.5rem 0;
  padding: 1.1rem 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-inline-start: 3px solid var(--copper);
  border-radius: 10px;
}

.note p {
  margin: 0;
}

.cta-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  align-items: center;
  margin: 2.75rem 0 1.5rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background: var(--ink);
  color: var(--on-dark);
  border-radius: calc(var(--radius) + 4px);
}

.cta-box img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1px solid var(--copper);
  object-fit: cover;
  object-position: 50% 10%;
}

.cta-box h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  border: 0;
  font-size: 1.7rem;
  color: var(--on-dark);
}

.cta-box p {
  color: var(--on-dark-muted);
  margin-bottom: 1.1rem;
}

.cta-box .hero-cta {
  margin: 0;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted) !important;
}

/* ---------- صفحة 404 ---------- */

.notfound {
  min-height: 100svh;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--on-dark);
  text-align: center;
  padding: calc(var(--header-h) + 2rem) 0 6rem;
}

.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  color: var(--copper);
}

.notfound h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.5;
  margin: 0.5rem 0 0.75rem;
}

.notfound p {
  color: var(--on-dark-muted);
  max-width: 34em;
  margin-inline: auto;
}

.notfound .hero-cta {
  justify-content: center;
  margin: 1.75rem 0 0;
}

/* ---------- الحركة ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .card,
  .wa-float,
  .social-list a {
    transition: none;
  }
}

/* ---------- الشاشات المتوسطة ---------- */

@media (max-width: 1020px) {
  .nav {
    position: absolute;
    inset: var(--header-h) 0 auto 0;
    display: none;
    background: rgba(10, 10, 11, 0.98);
    border-top: 1px solid rgba(200, 137, 74, 0.25);
    border-bottom: 1px solid rgba(200, 137, 74, 0.25);
  }

  .nav.is-open {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
    padding: 0.5rem 0 1rem;
  }

  .nav a {
    padding: 0.85rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(200, 137, 74, 0.12);
  }

  .nav a::after {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .faq-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- الجوال ---------- */

@media (max-width: 720px) {
  :root {
    --header-h: 66px;
  }

  body {
    font-size: 1rem;
    padding-bottom: 74px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .header-actions .btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0.5rem;
  }

  .hero-copy {
    padding-bottom: 1.5rem;
  }

  .hero-cta .btn {
    flex: 1 1 100%;
  }

  .hero-points {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-photo {
    width: min(78%, 330px);
    margin-top: 1.5rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .steps li,
  .steps li:first-child {
    display: grid;
    grid-template-columns: 3.25rem 1fr;
    column-gap: 0.75rem;
    padding: 1.4rem 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(200, 137, 74, 0.25);
  }

  .steps li:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .step-num {
    grid-row: span 2;
    font-size: 3rem;
    margin: 0;
  }

  .guide {
    grid-template-columns: 1fr;
  }

  .contact-cta .btn {
    flex: 1 1 100%;
  }

  .cta-box {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }

  .cta-box .hero-cta {
    justify-content: center;
  }

  .wa-float {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 60;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0.6rem;
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
    background: rgba(10, 10, 11, 0.97);
    border-top: 1px solid rgba(200, 137, 74, 0.35);
  }

  .mobile-bar .btn {
    padding: 0.75rem 0.5rem;
    font-size: 0.98rem;
  }

  .footer-top,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   الطبقة الثانية: الزخرفة، الحركة، والمكوّنات الإضافية
   ========================================================================== */

:root {
  /* نجمة ثمانية (خاتم) — زخرفة هندسية إسلامية بلون النحاس */
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23c8894a' stroke-width='1'%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Cpath d='M36 10.5 61.5 36 36 61.5 10.5 36z'/%3E%3Cpath d='M0 36h10.5M61.5 36H72M36 0v10.5M36 61.5V72'/%3E%3C/g%3E%3C/svg%3E");
}

.hero::after,
.pattern::before,
.page-top::after,
.lib-featured::before,
.coverage::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--pattern);
  background-size: 72px 72px;
  opacity: 0.07;
  pointer-events: none;
}

.hero::after {
  -webkit-mask-image: linear-gradient(to left, transparent 38%, #000 100%);
  mask-image: linear-gradient(to left, transparent 38%, #000 100%);
}

.hero-inner {
  z-index: 1;
}

.pattern {
  position: relative;
  overflow: hidden;
}

.pattern::before,
.page-top::after {
  -webkit-mask-image: radial-gradient(70% 90% at 0% 0%, #000, transparent 75%);
  mask-image: radial-gradient(70% 90% at 0% 0%, #000, transparent 75%);
}

.pattern > .container,
.page-top .narrow {
  position: relative;
}

/* حركة دخول الواجهة */

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

.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.hero-copy > :nth-child(5) {
  animation-delay: 0.32s;
}

.hero-photo {
  animation: rise 1s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

/* بطاقة الرقم فوق الصورة */

.nameplate {
  position: absolute;
  inset-inline-start: -2rem;
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.2rem 0.7rem 1.3rem;
  background: rgba(19, 18, 20, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 137, 74, 0.55);
  border-radius: 14px;
  color: var(--on-dark);
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.85);
  transition: transform 0.2s, border-color 0.2s;
}

.nameplate:hover {
  transform: translateY(-2px);
  border-color: var(--copper);
}

.nameplate-icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
}

.nameplate-icon .icon {
  width: 22px;
  height: 22px;
}

.nameplate-label {
  display: block;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--on-dark-muted);
}

.nameplate-value {
  display: block;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.4;
}

/* شريط المجالات */

.band {
  background: var(--maroon);
  color: #ecdcd2;
  border-block: 1px solid rgba(200, 137, 74, 0.35);
}

.band ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin-block: 0;
  padding: 0.95rem 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  line-height: 1.6;
}

.band li {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.band li + li::before {
  content: "✦";
  margin-inline: 1.1rem;
  color: var(--copper);
  font-family: var(--font-body);
  font-size: 0.65rem;
}

/* إضافات بطاقات المجالات */

.card {
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--copper);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-num {
  position: absolute;
  inset-inline-end: 1.5rem;
  top: 1.2rem;
  font-family: var(--font-display);
  font-size: 2.3rem;
  line-height: 1;
  color: var(--line);
}

.tags a {
  color: var(--copper-deep);
  font-weight: 600;
  text-decoration: none;
}

.tags a:hover {
  text-decoration: underline;
}

.tags li:has(a) {
  background: #fff;
  border-color: rgba(200, 137, 74, 0.55);
}

.card-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.card .tags {
  margin-bottom: 0.6rem;
}

.card-links .card-link {
  margin: 0;
  padding: 0;
}

.card-link .icon-solid {
  color: #128c4b;
}

.card-link:hover .icon-solid {
  transform: none;
}

.card-link-quiet {
  color: var(--muted);
}

.card-link-quiet:hover {
  color: var(--copper-deep);
}

/* المكتبة القانونية */

.library {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.lib-card:hover {
  border-color: var(--copper);
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -24px rgba(58, 20, 32, 0.4);
}

.lib-cat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--copper-deep);
}

.lib-card h3 {
  font-size: 1.32rem;
  line-height: 1.55;
}

.lib-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.lib-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--copper-deep);
}

.lib-more .icon {
  width: 1em;
  height: 1em;
  transition: transform 0.2s;
}

.lib-card:hover .lib-more .icon {
  transform: translateX(-4px);
}

.lib-featured {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  gap: 0.7rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--ink);
  border-color: rgba(200, 137, 74, 0.4);
  color: var(--on-dark);
}

.lib-featured::before {
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 70%);
  mask-image: linear-gradient(to bottom, #000, transparent 70%);
  opacity: 0.12;
}

.lib-featured > * {
  position: relative;
}

.lib-featured h3 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  line-height: 1.5;
}

.lib-featured p {
  color: var(--on-dark-muted);
  font-size: 1rem;
}

.lib-featured .lib-cat,
.lib-featured .lib-more {
  color: var(--copper-2);
}

.lib-featured .lib-more {
  margin-top: 0;
}

.lib-cta {
  background: var(--maroon);
  border-color: var(--maroon);
  color: var(--on-dark);
}

.lib-cta p {
  color: #d9c8c0;
}

.lib-cta .lib-cat,
.lib-cta .lib-more {
  color: var(--copper-2);
}

/* نطاق العمل */

.coverage {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background: var(--maroon);
  color: var(--on-dark);
}

.coverage::before {
  -webkit-mask-image: linear-gradient(to right, #000, transparent 55%);
  mask-image: linear-gradient(to right, #000, transparent 55%);
  opacity: 0.12;
}

.coverage-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.coverage .eyebrow {
  color: var(--copper-2);
}

.coverage .section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.coverage p {
  margin: 0;
  color: #d9c8c0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(226, 180, 127, 0.4);
  border-radius: 999px;
  font-size: 0.95rem;
}

.chips .icon {
  width: 0.95em;
  height: 0.95em;
  color: var(--copper-2);
}

/* نموذج الحجز */

.consult {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--ink-2);
  border: 1px solid rgba(200, 137, 74, 0.22);
  border-radius: var(--radius);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--on-dark-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  background: var(--ink);
  color: var(--on-dark);
  border: 1px solid rgba(200, 137, 74, 0.3);
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
}

.field textarea {
  min-height: 112px;
  resize: vertical;
}

.field ::placeholder {
  color: #7d7368;
  opacity: 1;
}

.field select option {
  background: var(--ink);
  color: var(--on-dark);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--copper);
  box-shadow: 0 0 0 3px rgba(200, 137, 74, 0.22);
}

.form-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.85rem;
  color: var(--on-dark-muted);
}

.form-note .icon {
  width: 1em;
  height: 1em;
  color: var(--copper);
}

.quick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.quick-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  background: transparent;
  border: 1px solid rgba(200, 137, 74, 0.4);
  border-radius: 10px;
  color: var(--on-dark);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s;
}

.quick-btn:hover {
  background: rgba(200, 137, 74, 0.12);
  border-color: var(--copper);
}

.quick-btn .icon {
  color: var(--copper-2);
}

.footer-top .social-list a {
  width: 40px;
  height: 40px;
}

/* مساحة للزر العائم حتى لا يغطي سطر الحقوق */
.site-footer {
  padding-bottom: 5.5rem;
}

.wa-float {
  transition: transform 0.2s, background-color 0.2s, opacity 0.3s;
}

.wa-float.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
}

/* صفحات المقالات: اقرأ أيضاً */

.article .faq-list {
  margin-bottom: 0.5rem;
}

.related {
  margin-top: 3rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.article .related-list {
  display: grid;
  gap: 0.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.article .related-list li {
  margin: 0;
}

.related-list a {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.1rem 1rem;
  padding: 0.95rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s;
}

.related-list a span {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--copper-deep);
}

.related-list a .icon {
  grid-row: 2;
  grid-column: 2;
  color: var(--copper-deep);
}

.related-list a:hover {
  border-color: var(--copper);
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-photo {
    animation: none;
  }
}

@media (max-width: 1020px) {
  .library {
    grid-template-columns: repeat(2, 1fr);
  }

  .lib-featured {
    grid-row: auto;
  }

  .coverage-inner {
    grid-template-columns: 1fr;
  }

  .nameplate {
    inset-inline-start: -0.75rem;
  }
}

@media (max-width: 720px) {
  .library {
    grid-template-columns: 1fr;
  }

  .lib-featured {
    grid-column: auto;
  }

  .consult {
    grid-template-columns: 1fr;
    padding: 1.1rem;
  }

  .band ul {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    font-size: 1.08rem;
    scrollbar-width: none;
  }

  .band ul::-webkit-scrollbar {
    display: none;
  }

  .nameplate {
    inset-inline: 0;
    bottom: 1rem;
    width: max-content;
    margin-inline: auto;
    padding: 0.55rem 1rem;
  }

  .nameplate-icon {
    width: 36px;
    height: 36px;
  }

  .hero-eyebrow {
    gap: 0.5rem;
    font-size: 0.84rem;
  }

  .hero-eyebrow::before {
    width: 1.25rem;
  }

  .site-footer {
    padding-bottom: 2rem;
  }
}

/* الشاشات الضيقة جداً (320px تقريباً) */

@media (max-width: 720px) {
  .mobile-bar .btn {
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 0.55rem;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark .icon {
    width: 19px;
    height: 19px;
  }

  .brand-name {
    font-size: 1.08rem;
    white-space: nowrap;
  }

  .brand-sub {
    display: none;
  }

  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-cta .btn {
    padding-inline: 0.9rem;
    font-size: 0.96rem;
  }

  .mobile-bar {
    grid-template-columns: 1.5fr 1fr;
    gap: 0.45rem;
    padding-inline: 0.55rem;
  }

  .mobile-bar .btn {
    gap: 0.4rem;
    padding-inline: 0.3rem;
    font-size: 0.9rem;
  }

  .quick {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .wa-float,
  .mobile-bar,
  .map,
  .consult,
  .quick {
    display: none !important;
  }
}
