:root {
  --navy: #1c2532;
  --navy-dark: #101723;
  --ink: #1b2942;
  --muted: rgba(27, 41, 66, .68);
  --gold: #eddbc5;
  --gold-deep: #d6bc97;
  --cream: #f6f2ed;
  --paper: #f4f4f2;
  --white: #fff;
  --line: rgba(27, 41, 66, .12);
  --line-light: rgba(255, 255, 255, .14);
  --shadow: 0 20px 60px rgba(20, 30, 46, .18);
  --radius: 8px;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Noto Naskh Arabic", "Playfair Display", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 999;
  padding: 8px 14px;
  border-radius: 999px;
  transform: translateY(-140%);
  background: var(--gold);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 10px 0 0;
  color: var(--white);
  transition: transform .25s ease, background .25s ease;
}

.site-header.is-scrolled {
  background: rgba(16, 23, 35, .72);
  backdrop-filter: blur(12px);
}

.top-strip {
  display: flex;
  justify-content: center;
  gap: 26px;
  width: min(900px, calc(100% - 48px));
  margin: 0 auto 10px;
  color: rgba(255, 255, 255, .78);
  font-size: 12px;
  white-space: nowrap;
}

.top-strip span {
  position: relative;
}

.top-strip span + span::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -15px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}

.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.nav-row > *,
.hero-inner > *,
.two-col > *,
.attorney-layout > *,
.testimonials-layout > *,
.faq-layout > *,
.contact-layout > * {
  min-width: 0;
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.brand span {
  min-width: 0;
}

.brand img {
  border-radius: 6px;
}

.footer-brand img {
  flex: 0 0 auto;
  width: 150px;
  height: 64px;
  border-radius: 8px;
  object-fit: contain;
  object-position: right center;
}

.footer-brand .brand-sub {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.brand strong {
  display: block;
  font-family: var(--font-title);
  font-size: 17px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  line-height: 1.4;
}

.nav-pill {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 999px;
  background: rgba(28, 37, 50, .82);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .14);
  font-size: 13px;
  font-weight: 600;
}

.nav-pill a {
  padding: 6px 13px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: rgba(255, 255, 255, .86);
  transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.nav-pill a:hover,
.nav-pill a:focus-visible {
  border-color: rgba(237, 219, 197, .5);
  background: rgba(237, 219, 197, .14);
  color: var(--gold);
}

.nav-pill a.is-active {
  color: var(--gold);
}

.nav-pill span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--gold);
  color: #4c4136;
  font-size: 13px;
  font-weight: 700;
  transition: background .22s ease, color .22s ease;
}

.contact-pill:hover,
.contact-pill:focus-visible {
  background: var(--navy);
  color: var(--white);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  background: rgba(28, 37, 50, .75);
  color: var(--white);
  cursor: pointer;
}

.menu-toggle i {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}

body.nav-open .menu-toggle i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .menu-toggle i:nth-child(2) {
  opacity: 0;
}

body.nav-open .menu-toggle i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #111926;
  color: var(--white);
}

.hero-bg {
  position: absolute;
  inset: -4% -4% 0;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.08) rotate(-1.5deg);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 23, 35, 0), rgba(16, 23, 35, .28) 52%, rgba(16, 23, 35, .82)),
    linear-gradient(180deg, rgba(16, 23, 35, 0), rgba(16, 23, 35, .36));
}

.hero-watermark {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.hero-watermark img {
  width: clamp(220px, 30vw, 420px);
  height: auto;
  opacity: .05;
  filter: brightness(0) invert(1) drop-shadow(0 8px 24px rgba(0, 0, 0, .3));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(260px, 360px);
  align-items: end;
  justify-content: space-between;
  gap: 48px;
  padding: 150px 0 92px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 14px;
}

.label img {
  width: 16px;
  height: 30px;
  object-fit: contain;
}

/* الزخرفتان تبدآن متلاصقتين (تشكّلان شكل الشعار)، تثبتان لحظة، ثم تتباعدان بالتزامن مع كتابة النص */
.label span {
  display: inline-block;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  max-width: 0;
  padding-inline: 5px;
  clip-path: inset(0 50% 0 50%);
  animation:
    orn-space 1.7s steps(22, end) 1.3s both,
    orn-write 1.7s steps(22, end) 1.3s both;
}

@keyframes orn-space {
  from {
    max-width: 0;
  }
  to {
    max-width: 13em;
  }
}

@keyframes orn-write {
  from {
    clip-path: inset(0 50% 0 50%);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: var(--font-title);
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 570px;
  margin-bottom: 18px;
  font-size: 68px;
  color: var(--white);
}

h2 {
  margin-bottom: 14px;
  font-size: 48px;
  color: var(--ink);
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.3;
}

h1,
h2,
h3,
p,
a,
span,
strong {
  overflow-wrap: break-word;
}

.hero-copy p {
  max-width: 520px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--gold);
  color: #4c4136;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(0, 0, 0, .16);
  transition: transform .18s ease, background .22s ease, color .22s ease;
}

.primary-btn:hover,
.primary-btn:focus-visible {
  transform: translateY(-2px);
  background: var(--navy);
  color: var(--white);
}

.primary-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: scaleX(-1);
}

.trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img {
  width: 42px;
  height: 42px;
  margin-inline-start: -12px;
  border: 2px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  object-fit: cover;
}

.avatar-stack img:first-child {
  margin-inline-start: 0;
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  color: var(--gold);
}

.trust-row span {
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
}

.consult-card {
  align-self: end;
  width: 100%;
  max-width: 330px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.lawyer-chip {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  align-items: center;
}

.lawyer-chip img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.lawyer-chip strong,
.lawyer-chip span,
.consult-card a {
  display: block;
}

.lawyer-chip span,
.consult-card p {
  color: var(--muted);
  font-size: 13px;
}

.consult-card p {
  margin: 14px 0;
}

.consult-card a {
  color: var(--gold-deep);
  font-weight: 700;
}

.section {
  padding: 96px 0;
}

/* تأثير التداخل: قسم المؤسس يثبت وقسم الالتزام المهني ينزلق فوقه */
.sticky-stack {
  position: relative;
}

.sticky-stack .pin-section {
  position: sticky;
  top: 0;
  z-index: 0;
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.sticky-stack .over-section {
  position: relative;
  z-index: 1;
  box-shadow: 0 -24px 60px rgba(16, 23, 35, .22);
}

/* القسم المنزلق يجب أن تكون خلفيته معتمة ليغطّي القسم الثابت خلفه */
.about.over-section {
  background: var(--white);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #8d785f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .03em;
}

.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), rgba(214, 188, 151, .15));
}

.dark-panel .section-kicker,
.contact .section-kicker,
.page-hero .section-kicker {
  color: var(--gold);
}

.section-copy p,
.section-head p {
  color: var(--muted);
  font-size: 17px;
}

.two-col,
.attorney-layout,
.testimonials-layout,
.faq-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .95fr);
  gap: 56px;
  align-items: center;
}

.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}

.contact-layout .map-card-wide {
  grid-column: 1 / -1;
  margin: 8px 0 0;
}

.mini-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mini-features article,
.process-grid article {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 6px 18px 18px 18px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease;
}

.mini-features article:hover,
.process-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(20, 30, 46, .1);
}

.mini-features b,
.process-grid b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  border-radius: 13px 13px 13px 4px;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: var(--navy);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 9px 20px rgba(214, 188, 151, .45);
}

.dark-panel .process-grid article {
  border-color: rgba(255, 255, 255, .12);
  background: linear-gradient(165deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .03));
}

.mini-features p,
.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.media-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 8px 48px 8px 48px;
  box-shadow: 0 30px 70px rgba(20, 30, 46, .22);
}

.media-card::after,
.attorney-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(237, 219, 197, .55);
  border-radius: 4px 38px 4px 38px;
  pointer-events: none;
}

.media-card img,
.attorney-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}

.media-card:hover img,
.attorney-photo:hover img {
  transform: scale(1.06);
}

.metric-card {
  position: absolute;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  width: min(260px, calc(100% - 52px));
  padding: 18px 20px;
  border-radius: 6px 18px 6px 18px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 40px rgba(20, 30, 46, .25);
}

.metric-card strong,
.metric-card span {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
}

.dark-panel {
  background: var(--navy);
  color: var(--white);
}

.dark-panel h2,
.dark-panel h3 {
  color: var(--white);
}

.dark-panel .section-head p {
  color: rgba(255, 255, 255, .68);
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.practice-card {
  position: relative;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 6px 26px 26px 26px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03));
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), border-color .4s ease, box-shadow .4s ease;
}

.practice-card:hover {
  transform: translateY(-6px);
  border-color: rgba(237, 219, 197, .5);
  box-shadow: 0 26px 54px rgba(0, 0, 0, .3);
}

.practice-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s cubic-bezier(.22, .61, .36, 1);
}

.practice-card:hover img {
  transform: scale(1.08);
}

.practice-card div {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

/* بطاقات بلا صورة (مثل قسم القيم في التوظيف) تأخذ العرض كاملاً */
.practice-card:not(:has(img)) {
  grid-template-columns: 1fr;
}

.practice-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 14px;
  border-radius: 14px 14px 14px 4px;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: var(--navy) !important;
  font-family: var(--font-body) !important;
  font-size: 17px !important;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.practice-card p {
  color: rgba(255, 255, 255, .68);
}

.practice-card a {
  margin-top: auto;
  color: var(--gold);
  font-weight: 700;
}

.attorney {
  background: var(--paper);
}

.attorney-layout {
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
}

.attorney-photo {
  position: relative;
  height: 570px;
  overflow: hidden;
  border-radius: 8px 48px 8px 48px;
  box-shadow: 0 30px 70px rgba(20, 30, 46, .2);
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.stat-strip div,
.numbers div {
  padding: 18px 16px;
  border-radius: 4px 16px 16px 16px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  border: 1px solid var(--line);
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.stat-strip div:hover,
.numbers div:hover {
  transform: translateY(-4px);
  border-color: rgba(214, 188, 151, .6);
  box-shadow: 0 16px 34px rgba(20, 30, 46, .1);
}

.stat-strip strong,
.stat-strip span,
.numbers strong,
.numbers span {
  display: block;
}

.stat-strip strong {
  color: var(--gold-deep);
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
}

.stat-strip span,
.numbers span {
  color: var(--muted);
  font-size: 13px;
}

.testimonials {
  background: var(--white);
}

.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.numbers strong {
  color: var(--gold-deep);
  font-family: var(--font-title);
  font-size: 34px;
  line-height: 1.1;
}

.review-list {
  display: grid;
  gap: 12px;
}

.review-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 4px 18px 18px 18px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  transition: transform .35s cubic-bezier(.22, .61, .36, 1), box-shadow .35s ease, border-color .35s ease;
}

.review-list article:hover {
  transform: translateX(-5px);
  border-color: rgba(214, 188, 151, .6);
  box-shadow: 0 16px 34px rgba(20, 30, 46, .1);
}

.review-list img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.review-list p {
  margin: 0;
  color: var(--muted);
}

.process {
  background: var(--paper);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.faq {
  background: var(--white);
}

.faq-layout {
  align-items: start;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 4px 16px 16px 16px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.faq-list details[open] {
  border-color: rgba(214, 188, 151, .65);
  box-shadow: 0 16px 36px rgba(20, 30, 46, .09);
}

.faq-list summary {
  position: relative;
  cursor: pointer;
  padding: 18px 22px 18px 44px;
  color: var(--ink);
  font-weight: 700;
  list-style: none;
  transition: color .2s ease;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: rgba(214, 188, 151, .22);
  color: var(--gold-deep);
  font-weight: 700;
  transition: transform .3s ease, background .3s ease;
}

.faq-list details[open] summary::after {
  content: "\2212";
  transform: translateY(-50%) rotate(180deg);
  background: var(--gold-deep);
  color: var(--navy);
}

.faq-list summary:hover {
  color: var(--gold-deep);
}

.faq-list p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

.contact {
  background-color: #1c2532;
  background-image:
    linear-gradient(rgba(28, 37, 50, .92), rgba(28, 37, 50, .92)),
    url("../images/pattern-lines.svg");
  color: var(--white);
}

.contact h2,
.contact h3 {
  color: var(--white);
}

.contact-info p {
  color: rgba(255, 255, 255, .72);
}

.map-card {
  position: relative;
  height: 340px;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius);
}

.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-ext-link {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(16, 23, 35, .82);
  backdrop-filter: blur(6px);
  color: var(--gold) !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background .2s ease;
}

.map-ext-link:hover {
  background: rgba(16, 23, 35, .96);
}

.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.contact-info li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.contact-info a {
  color: var(--gold);
}

.contact-info li span,
.map-card a {
  color: var(--gold);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: rgba(255, 255, 255, .86);
  font-weight: 700;
}

.contact-form .wide,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  padding: 10px 12px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form ::placeholder {
  color: rgba(255, 255, 255, .48);
}

.contact-form select {
  color-scheme: light;
}

.contact-form select option {
  color: #1b2942;
  background: #ffffff;
}

.form-note {
  margin: 0;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
}

.form-note.is-success {
  color: #a4f0bd;
}

.form-note.is-error {
  color: #ffb9ad;
}

/* شريط فاصل بعبارات توعوية متحركة */
.quote-band {
  position: relative;
  padding: 66px 0;
  overflow: hidden;
  text-align: center;
  color: var(--white);
  background:
    radial-gradient(130% 150% at 50% 0%, rgba(214, 188, 151, .16), transparent 58%),
    linear-gradient(180deg, #1c2532, #11161f);
}

.quote-band::before,
.quote-band::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.quote-band::before { top: 0; }
.quote-band::after { bottom: 0; }

.quote-band-inner {
  position: relative;
  max-width: 1000px;
  margin-inline: auto;
  padding: 0 70px;
}

.quote-stage {
  position: relative;
}

.quote-mark {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-title);
  font-size: 70px;
  line-height: .7;
  color: var(--gold-deep);
  opacity: .4;
}

.quote-text {
  margin: 0 auto;
  max-width: 760px;
  min-height: 3.6em;
  font-family: var(--font-title);
  font-size: clamp(19px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.95;
  letter-spacing: .005em;
  color: #fbf7f0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .28);
  transition: opacity .5s ease, transform .5s ease;
}

.quote-text::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin: 20px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

/* أزرار التنقّل الجانبية */
.quote-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(237, 219, 197, .35);
  border-radius: 50%;
  background: rgba(255, 255, 255, .05);
  color: var(--gold);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}

.quote-nav:hover,
.quote-nav:focus-visible {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--navy);
}

.quote-prev {
  right: 0;
}

.quote-prev:hover {
  transform: translateY(-50%) translateX(3px);
}

.quote-next {
  left: 0;
}

.quote-next:hover {
  transform: translateY(-50%) translateX(-3px);
}

.quote-text.is-changing {
  opacity: 0;
  transform: translateY(12px);
}

.quote-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 26px;
}

.quote-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  cursor: pointer;
  transition: width .35s ease, background .35s ease;
}

.quote-dots button.is-active {
  width: 26px;
  background: var(--gold-deep);
}

.footer {
  position: relative;
  padding: 76px 0 26px;
  background: linear-gradient(180deg, #1c2532 0%, #141b27 100%);
  color: rgba(255, 255, 255, .82);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-deep), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 38px;
}

.footer .footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
}

.footer .footer-brand span {
  color: var(--white);
}

.footer .footer-brand .brand-sub {
  color: rgba(255, 255, 255, .6);
}

.footer p {
  max-width: 360px;
  color: rgba(255, 255, 255, .58);
  line-height: 1.9;
}

.footer h3 {
  position: relative;
  margin: 0 0 18px;
  padding-bottom: 12px;
  color: var(--gold);
  font-size: 16px;
}

.footer h3::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-deep), transparent);
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 9px;
  color: rgba(255, 255, 255, .66);
}

.footer-grid a {
  width: fit-content;
  transition: color .2s ease, transform .2s ease;
}

.footer-grid a:hover {
  color: var(--gold);
  transform: translateX(-4px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 44px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .55);
  font-size: 13px;
}

.footer-bottom span {
  display: block;
  margin-bottom: 0;
  color: rgba(255, 255, 255, .55);
}

.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}

.footer-legal a {
  display: inline;
  margin: 0;
  color: rgba(255, 255, 255, .55);
  transition: color .18s ease;
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-legal span.sep {
  display: inline;
  margin: 0;
  color: rgba(255, 255, 255, .25);
}

.footer-bottom span span,
.footer [data-year] {
  display: inline;
  margin: 0;
}

.chat-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 15px 35px rgba(0, 0, 0, .18);
  font-size: 12px;
  font-weight: 700;
  overflow: visible;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.chat-float img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-float::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: -1;
  border: 1px solid rgba(237, 219, 197, .7);
  border-radius: inherit;
  opacity: 0;
  transform: scale(.86);
  transition: opacity .22s ease, transform .22s ease;
}

@keyframes wa-pulse-ring {
  0%   { transform: scale(1);    opacity: .7; }
  60%  { transform: scale(1.55); opacity: 0;  }
  100% { transform: scale(1.55); opacity: 0;  }
}

@keyframes wa-pulse-btn {
  0%,  100% { transform: scale(1);    }
  18%        { transform: scale(1.12); }
  36%        { transform: scale(1);    }
  54%        { transform: scale(1.07); }
  72%        { transform: scale(1);    }
}

.chat-float.wa-pulse {
  animation: wa-pulse-btn 1.8s ease forwards;
}

.chat-float.wa-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--gold-deep);
  animation: wa-pulse-ring 1.8s ease forwards;
}

.page-main {
  background: var(--white);
}

.page-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 170px 0 74px;
  background: var(--navy-dark);
  color: var(--white);
}

.page-hero .hero-bg {
  opacity: .72;
}

.page-hero .hero-shade {
  background:
    linear-gradient(90deg, rgba(16, 23, 35, .12), rgba(16, 23, 35, .5) 48%, rgba(16, 23, 35, .86)),
    linear-gradient(180deg, rgba(16, 23, 35, .16), rgba(16, 23, 35, .64));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  margin-bottom: 12px;
  color: rgba(255, 255, 255, .64);
  font-size: 13px;
}

.page-hero h1 {
  max-width: 760px;
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 720px;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
}

.page-grid,
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.page-grid.two {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .55fr);
  gap: 34px;
  align-items: start;
}

.article-body {
  border: 1px solid var(--line);
  border-radius: 6px 24px 24px 24px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  box-shadow: 0 16px 44px rgba(20, 30, 46, .07);
}

/* بطاقات عصرية: زاوية غير متماثلة، شريط ذهبي متحرك، شارة رقم متدرّجة */
.page-card,
.system-card {
  position: relative;
  display: flex;
  min-height: 248px;
  flex-direction: column;
  padding: 30px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 6px 24px 24px 24px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  box-shadow: 0 10px 30px rgba(20, 30, 46, .06);
  overflow: hidden;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), box-shadow .4s ease, border-color .4s ease;
}

.page-card::before,
.system-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-deep), transparent 72%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s ease;
}

.page-card:hover,
.system-card:hover {
  transform: translateY(-7px);
  border-color: rgba(214, 188, 151, .75);
  box-shadow: 0 28px 56px rgba(20, 30, 46, .15);
}

.page-card:hover::before,
.system-card:hover::before {
  transform: scaleX(1);
}

.page-card .card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 16px 16px 16px 4px;
  background: linear-gradient(145deg, var(--gold), var(--gold-deep));
  color: var(--navy);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(214, 188, 151, .5);
  transition: transform .4s cubic-bezier(.22, .61, .36, 1);
}

.page-card:hover .card-index {
  transform: translateY(-2px) rotate(-4deg);
}

.page-card p,
.article-body p,
.system-card p {
  color: var(--muted);
}

.page-card a,
.article-body .text-link,
.system-card a {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold-deep);
  font-weight: 700;
}

.page-card a::after,
.system-card a::after {
  content: "←";
  font-size: 16px;
  transition: transform .3s ease;
}

.page-card:hover a::after,
.system-card:hover a::after {
  transform: translateX(-6px);
}

.article-body {
  padding: 30px;
  font-size: 16px;
}

.article-body h2:not(:first-child) {
  margin-top: 30px;
}

.article-body ul {
  margin: 14px 0 0;
  padding: 0 22px 0 0;
  color: var(--muted);
}

.article-body li + li {
  margin-top: 8px;
}

.profile-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px 24px 24px 24px;
  background: linear-gradient(165deg, #ffffff, var(--paper));
  box-shadow: 0 16px 44px rgba(20, 30, 46, .1);
}

.profile-card img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  transition: transform 1s cubic-bezier(.22, .61, .36, 1);
}

.profile-card:hover img {
  transform: scale(1.05);
}

.profile-card div {
  padding: 20px;
}

.detail-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.detail-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-list b {
  color: var(--ink);
}

.detail-list span,
.detail-list a {
  color: var(--muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 700;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}

.secondary-btn:hover,
.secondary-btn:focus-visible {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.system-tag {
  width: fit-content;
  margin-bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(214, 188, 151, .2);
  color: #8d785f;
  font-size: 12px;
  font-weight: 700;
}

.page-cta {
  background:
    linear-gradient(rgba(28, 37, 50, .92), rgba(28, 37, 50, .92)),
    url("../images/pattern-lines.svg");
  color: var(--white);
}

.page-cta h2 {
  color: var(--white);
}

.page-cta p {
  color: rgba(255, 255, 255, .72);
}

.footer .footer-brand span {
  display: block;
  color: var(--ink);
  margin-bottom: 0;
  line-height: 1.35;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .top-strip {
    display: none;
  }

  .site-header {
    padding-top: 12px;
  }

  .nav-row {
    grid-template-columns: 1fr auto;
  }

  .nav-pill {
    position: fixed;
    top: 72px;
    right: 24px;
    left: 24px;
    display: grid;
    gap: 0;
    border-radius: var(--radius);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }

  .nav-pill span {
    display: none;
  }

  .nav-pill a {
    padding: 12px 14px;
  }

  body.nav-open .nav-pill {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .contact-pill {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-inner,
  .two-col,
  .attorney-layout,
  .testimonials-layout,
  .faq-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .consult-card {
    max-width: 430px;
  }

  .practice-grid,
  .mini-features,
  .process-grid,
  .footer-grid,
  .page-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-grid.two {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  .footer {
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip;
  }

  .container {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .brand span {
    display: none;
  }

  .brand strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 100svh;
  }

  .hero-bg {
    object-position: center top;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(16, 23, 35, .58), rgba(16, 23, 35, .8)),
      linear-gradient(90deg, rgba(16, 23, 35, .22), rgba(16, 23, 35, .72));
  }

  .hero-inner {
    padding: 96px 0 48px;
    gap: 22px;
    text-align: center;
  }

  .hero-copy,
  .section-copy,
  .section-head,
  .contact-info,
  .contact-form {
    width: 100%;
    max-width: 100%;
  }

  .label {
    justify-content: center;
  }

  h1 {
    max-width: 330px;
    margin-inline: auto;
    font-size: 31px;
  }

  h2 {
    max-width: 330px;
    margin-inline: auto;
    font-size: 31px;
  }

  .section-copy,
  .section-head {
    text-align: center;
  }

  .hero-copy p,
  .section-copy p,
  .section-head p {
    max-width: 310px;
    margin-inline: auto;
    overflow-wrap: anywhere;
  }

  .hero-copy p {
    font-size: 14px;
    line-height: 1.9;
  }

  .consult-card p {
    max-width: 280px;
    margin-inline: auto;
    font-size: 12px;
  }

  .primary-btn {
    width: 100%;
  }

  .trust-row {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .consult-card {
    max-width: 100%;
    padding: 18px 16px;
    margin-inline: auto;
    text-align: center;
  }

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

  .lawyer-chip img {
    width: 62px;
    height: 62px;
  }

  .lawyer-chip strong {
    font-size: 15px;
  }

  .section {
    padding: 68px 0;
  }

  .sticky-stack .pin-section {
    min-height: 100svh;
  }

  .footer {
    padding: 48px 0 22px;
  }

  .practice-grid,
  .mini-features,
  .process-grid,
  .stat-strip,
  .numbers,
  .footer-grid,
  .contact-form,
  .page-grid,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: 420px;
    padding: 120px 0 56px;
    text-align: center;
  }

  .page-hero h1,
  .page-hero p {
    margin-inline: auto;
  }

  .article-body {
    padding: 22px;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .contact-actions {
    display: grid;
  }

  .practice-card {
    grid-template-columns: 1fr;
  }

  .practice-card img {
    height: clamp(190px, 58vw, 260px);
    object-position: center;
  }

  .practice-card div {
    padding: 20px 18px;
  }

  .attorney-photo,
  .media-card {
    aspect-ratio: 4 / 5;
    height: auto;
    min-height: 0;
  }

  .media-card img,
  .attorney-photo img {
    height: 100%;
    min-height: 0;
    object-position: center top;
  }

  .profile-card img {
    height: clamp(260px, 82vw, 360px);
    object-position: center top;
  }

  .footer .footer-brand {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 360px;
    margin-bottom: 18px;
    font-size: 20px;
    line-height: 1.35;
  }

  .footer .footer-brand img {
    width: clamp(140px, 50vw, 200px);
    height: clamp(60px, 20vw, 90px);
    border-radius: 8px;
  }

  .footer .footer-brand span {
    max-width: 280px;
    overflow-wrap: anywhere;
  }

  .footer-grid {
    gap: 24px;
  }

  .footer p {
    max-width: 100%;
    font-size: 14px;
  }

  .footer a,
  .footer span {
    overflow-wrap: anywhere;
  }

  .contact-info li,
  .footer-bottom {
    display: grid;
  }

  .contact-form .wide,
  .contact-form button,
  .form-note {
    grid-column: auto;
  }

  .quote-band-inner {
    padding: 0 4px;
  }

  .quote-nav {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .quote-prev {
    right: -6px;
  }

  .quote-next {
    left: -6px;
  }

  .chat-float span {
    display: none;
  }

  .chat-float {
    left: 16px;
    bottom: 16px;
    padding: 8px;
  }

  .chat-float img {
    width: 38px;
    height: 38px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
.footer-svg-row{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:30px;
    margin-top:40px;
    padding:30px 0 6px;
    border-top:1px solid rgba(255, 255, 255, .1);
}
.footer-svg{
    width:auto;
    height:34px;
    object-fit:contain;
    opacity:.5;
    filter:brightness(0) invert(1);
    transition:opacity .25s ease, transform .25s ease;
}
.footer-svg:hover{
    opacity:.95;
    transform:translateY(-3px);
}

@media (max-width:768px){
    .footer-svg-row{
        gap:18px 22px;
    }
    .footer-svg{
        height:28px;
    }
}