/* ==========================================================
   مكتب المحامي والموثق أحمد علي الشهري — الأنماط العامة
   تصميم وتطوير: الياء سين للخدمات التسويقية (ys.sa)
   ========================================================== */

/* خطوط مستضافة ذاتيًا */
@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: "Amiri";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/amiri-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC
}

@font-face {
  font-family: "IBM Plex Sans Arabic";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD
}

:root {
  /* ألوان الهوية (مأخوذة من الشعار) */
  --gold: #D7AF60;
  /* ذهبي الشعار — للأزرار والزخارف */
  --gold-deep: #7E5E22;
  /* ذهبي داكن — للنصوص (تباين 6:1) */
  --gold-soft: #F3E9D5;
  /* ذهبي فاتح جدًا — للخلفيات الصغيرة */
  --stone: #848180;
  /* رمادي الشعار — زخرفي */
  --muted: #6B6865;
  /* نص ثانوي */
  --ink: #2B2927;
  /* نص رئيسي وعناوين */
  --paper: #FFFFFF;
  --mist: #F6F5F2;
  /* أوف وايت محايد */
  --line: #E6E3DD;
  --wa: #1FA855;

  --f-display: "Amiri", "Times New Roman", serif;
  --f-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;

  --wrap: 1200px;
  --header-h: 88px;
  --r-sm: 6px;
  --r-md: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%
}

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

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

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

p {
  margin: 0 0 1em
}

ul {
  margin: 0;
  padding: 0;
  list-style: none
}

h1,
h2,
h3,
h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .5em;
  color: var(--ink)
}

h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  line-height: 1.25
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem)
}

h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem)
}

h4 {
  font-size: 1.2rem
}

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

main {
  overflow-x: clip
}

.skip {
  position: absolute;
  top: -60px;
  right: 16px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  z-index: 200
}

.skip:focus {
  top: 12px
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-left: auto;
  margin-right: auto
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap
}

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

/* الجناح المائل — مستوحى من شعار المكتب */
.wing {
  display: inline-block;
  width: 34px;
  height: 14px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 60%);
  margin-bottom: 14px
}

.wing--gray {
  background: var(--stone)
}

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 16px 26px;
  border-radius: var(--r-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none
}

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

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

.btn--gold:hover {
  background: #CDA14B
}

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

.btn--ink:hover {
  background: #403d3a
}

.btn--line {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent
}

.btn--line:hover {
  background: var(--ink);
  color: #fff
}

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

.btn--wa:hover {
  background: #188f48
}

.btn--sm {
  padding: 11px 18px;
  font-size: .95rem
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center
}

/* ---------- الهيدر ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .3s var(--ease), box-shadow .3s var(--ease), height .3s var(--ease)
}

.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}

.site-header.scrolled {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  height: 74px
}

.brand img {
  height: 66px;
  width: auto;
  transition: height .3s var(--ease)
}

.scrolled .brand img {
  height: 56px
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px
}

.nav>li {
  position: relative
}

.nav>li>a,
.nav>li>button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font: 600 1rem var(--f-body);
  color: var(--ink);
  background: none;
  border: 0;
  cursor: pointer;
  border-radius: var(--r-sm);
  position: relative
}

.nav>li>a::after,
.nav>li>button::after {
  content: "";
  position: absolute;
  right: 14px;
  left: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .3s var(--ease)
}

.nav>li>a:hover::after,
.nav>li>button:hover::after,
.nav a[aria-current="page"]::after,
.nav button.is-current::after {
  transform: scaleX(1)
}

.nav .chev {
  width: 14px;
  height: 14px;
  transition: transform .25s
}

.has-sub:hover .chev,
.has-sub.open .chev {
  transform: rotate(180deg)
}

.sub {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 270px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px;
  box-shadow: 0 18px 40px -18px rgba(43, 41, 39, .25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: .25s var(--ease)
}

.has-sub:hover .sub,
.has-sub:focus-within .sub,
.has-sub.open .sub {
  opacity: 1;
  visibility: visible;
  transform: none
}

.sub a {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 8px
}

.sub a:hover {
  background: var(--mist)
}

.sub svg {
  width: 22px;
  height: 22px;
  color: var(--gold-deep);
  flex: none;
  margin-top: 3px
}

.sub strong {
  display: block;
  font-weight: 600;
  line-height: 1.5
}

.sub small {
  display: block;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.5
}

.sub hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 6px 8px
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 4px
}

.header-phone svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep)
}

.burger {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
  place-items: center
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: .25s
}

.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  right: 0;
  width: 20px;
  height: 2px;
  background: var(--ink);
  transition: .25s
}

.burger span::before {
  top: -6px
}

.burger span::after {
  top: 6px
}

.nav-open .burger span {
  background: transparent
}

.nav-open .burger span::before {
  top: 0;
  transform: rotate(45deg)
}

.nav-open .burger span::after {
  top: 0;
  transform: rotate(-45deg)
}

/* ---------- Hero الرئيسية ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper)
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  transform: scale(1.06);
  animation: heroZoom 2.4s var(--ease) forwards
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255, 255, 255, .96) 40%, rgba(255, 255, 255, .7) 60%, rgba(255, 255, 255, .1) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, .85) 0, rgba(255, 255, 255, 0) 160px)
}

.hero__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 48px
}

.hero__text {
  max-width: 640px
}

.hero__license {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gold-deep);
  border: 1px solid rgba(126, 94, 34, .3);
  background: rgba(255, 255, 255, .7);
  padding: 7px 14px;
  border-radius: 40px;
  margin-bottom: 22px
}

.hero__license svg {
  width: 18px;
  height: 18px
}

.hero h1 {
  margin-bottom: .45em
}

.hero__lead {
  font-size: clamp(1.08rem, 1.4vw, 1.25rem);
  color: #4a4744;
  max-width: 560px;
  margin-bottom: 32px
}

.hero__call {
  margin-top: 22px;
  color: var(--muted);
  font-size: .98rem
}

.hero__call a {
  font-weight: 700;
  color: var(--ink);
  border-bottom: 1px solid var(--gold)
}

/* تسلسل الظهور في الـ Hero — اللحظة المتحركة الوحيدة المُدبّرة */
.hero [data-seq] {
  opacity: 0;
  transform: translateY(18px);
  animation: seqIn .9s var(--ease) forwards
}

.hero [data-seq="1"] {
  animation-delay: .15s
}

.hero [data-seq="2"] {
  animation-delay: .3s
}

.hero [data-seq="3"] {
  animation-delay: .45s
}

.hero [data-seq="4"] {
  animation-delay: .6s
}

.hero [data-seq="5"] {
  animation-delay: .8s
}

@keyframes seqIn {
  to {
    opacity: 1;
    transform: none
  }
}

@keyframes heroZoom {
  to {
    transform: scale(1)
  }
}

/* شريط المؤهلات — كسطر في وثيقة رسمية */
.creds {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line)
}

.creds ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 0;
  padding: 20px 0
}

.creds li {
  display: flex;
  align-items: center;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink);
  white-space: nowrap
}

.creds li+li::before {
  content: "";
  width: 9px;
  height: 26px;
  background: var(--gold);
  margin-inline: clamp(12px, 2.2vw, 30px);
  clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%)
}

/* ---------- الأقسام ---------- */
.block {
  padding: clamp(72px, 9vw, 120px) 0
}

.block--mist {
  background: var(--mist)
}

.block--tight {
  padding: clamp(52px, 6vw, 76px) 0
}

.head {
  max-width: 680px;
  margin-bottom: clamp(36px, 5vw, 56px)
}

.head--center {
  margin-inline: auto;
  text-align: center
}

.head--center .wing {
  margin-inline: auto
}

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

.split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(36px, 6vw, 90px);
  align-items: center
}

.split--top {
  align-items: start
}

.lead {
  font-size: 1.15rem;
  color: #4a4744
}

/* بطاقة المكتب — سجل رسمي */
.record {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  position: relative;
  overflow: hidden
}

.record::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: linear-gradient(to left, var(--gold) 0 70%, var(--stone) 70% 100%)
}

.record__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 28px 18px;
  border-bottom: 1px dashed var(--line)
}

.record__head img {
  width: 54px;
  height: 54px
}

.record__head strong {
  font-family: var(--f-display);
  font-size: 1.3rem;
  display: block;
  line-height: 1.4
}

.record__head span {
  color: var(--muted);
  font-size: .92rem
}

.record dl {
  margin: 0;
  padding: 8px 28px 24px
}

.record dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mist)
}

.record dl div:last-child {
  border-bottom: 0
}

.record dt {
  color: var(--muted);
  font-size: .95rem
}

.record dd {
  margin: 0;
  font-weight: 600
}

.record dd a {
  border-bottom: 1px solid var(--gold)
}

.checks li {
  position: relative;
  padding-inline-start: 32px;
  margin-bottom: 12px
}

.checks li::before {
  content: "";
  position: absolute;
  right: 0;
  top: .55em;
  width: 18px;
  height: 10px;
  border-inline-start: 2px solid var(--gold-deep);
  border-bottom: 2px solid var(--gold-deep);
  transform: rotate(-45deg) scaleX(-1)
}

.checks--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px
}

/* العدادات */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr)
}

.stat {
  text-align: center;
  padding: 10px 16px;
  position: relative
}

.stat+.stat::before {
  content: "";
  position: absolute;
  right: 0;
  top: 15%;
  bottom: 15%;
  width: 1px;
  background: var(--line)
}

.stat__num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--ink);
  direction: ltr;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 2px
}

.stat__num span.plus {
  color: var(--gold);
  font-size: .7em
}

.stat__label {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1rem
}

/* الخدمات — تخطيط غير متماثل يبرز التوثيق */
.svc-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  grid-template-rows: auto auto;
  gap: 22px
}

.svc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 34px;
  display: flex;
  flex-direction: column;
  transition: border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease)
}

.svc:hover {
  border-color: rgba(215, 175, 96, .7);
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(43, 41, 39, .35)
}

.svc__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-soft);
  color: var(--gold-deep);
  margin-bottom: 20px
}

.svc__icon svg {
  width: 28px;
  height: 28px
}

.svc p {
  color: var(--muted)
}

.svc .checks {
  margin: 6px 0 24px
}

.svc .more {
  margin-top: auto;
  font-weight: 600;
  color: var(--gold-deep);
  display: inline-flex;
  gap: 8px;
  align-items: center
}

.svc .more svg {
  width: 18px;
  height: 18px;
  transition: transform .25s
}

.svc:hover .more svg {
  transform: translateX(-4px)
}

.svc--feature {
  grid-row: span 2;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  position: relative;
  overflow: hidden
}

.svc--feature::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 260px;
  height: 260px;
  background: url(../img/icon-512.png) center/contain no-repeat;
  opacity: .07
}

.svc--feature h3 {
  color: #fff
}

.svc--feature p {
  color: #d6d3cf
}

.svc--feature .svc__icon {
  background: rgba(215, 175, 96, .16);
  color: var(--gold)
}

.svc--feature .checks li::before {
  border-color: var(--gold)
}

.svc--feature .more {
  color: var(--gold)
}

.svc--feature:hover {
  border-color: var(--gold)
}

.tag {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 30px;
  background: var(--gold);
  color: var(--ink);
  margin-bottom: 14px;
  align-self: flex-start
}

/* قسم الوكالات */
.agency {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start
}

.agency-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.atype {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: border-color .25s
}

.atype:hover {
  border-color: var(--gold)
}

.atype svg {
  width: 26px;
  height: 26px;
  color: var(--gold-deep);
  flex: none;
  margin-top: 4px
}

.atype h4 {
  font-size: 1.15rem;
  margin: 0 0 4px
}

.atype p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.7
}

.atype--wide {
  grid-column: span 2
}

.steps {
  counter-reset: s;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  padding: 30px
}

.steps h3 {
  margin-bottom: 18px
}

.steps li {
  counter-increment: s;
  position: relative;
  padding: 0 58px 22px 0
}

.steps li::before {
  content: counter(s);
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 1.15rem;
  background: #fff;
  z-index: 1
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 40px;
  bottom: 0;
  width: 1.5px;
  background: var(--line)
}

.steps strong {
  display: block;
  font-size: 1.05rem
}

.steps span {
  color: var(--muted);
  font-size: .95rem
}

.steps .btn {
  width: 100%;
  margin-top: 6px
}

/* ملاحظة / مسار */
.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--gold-soft);
  border-radius: var(--r-md);
  padding: 18px 20px;
  margin-top: 22px
}

.note svg {
  width: 24px;
  height: 24px;
  color: var(--gold-deep);
  flex: none;
  margin-top: 3px
}

.note p {
  margin: 0;
  font-size: .98rem
}

/* القيم */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px)
}

.values--2 {
  grid-template-columns: 1fr 1fr
}

.value {
  border-top: 2px solid var(--ink);
  padding-top: 22px
}

.value svg {
  width: 30px;
  height: 30px;
  color: var(--gold-deep);
  margin-bottom: 14px
}

.value h3 {
  font-size: 1.35rem;
  margin-bottom: 6px
}

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

/* مساران لنقل الملكية */
.paths {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px
}

.paths>h3 {
  margin-bottom: 18px
}

.paths>p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .95rem
}

.paths__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.path {
  border-top: 4px solid var(--gold);
  background: var(--mist);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  padding: 20px;
  display: flex;
  flex-direction: column
}

.path--gray {
  border-top-color: var(--stone)
}

.path__tag {
  font-size: .85rem;
  color: var(--gold-deep);
  font-weight: 600
}

.path--gray .path__tag {
  color: var(--muted)
}

.path h4 {
  font-size: 1.4rem;
  margin: 2px 0 10px
}

.path dl {
  margin: 0 0 14px
}

.path dl div {
  padding: 6px 0;
  border-top: 1px solid var(--line)
}

.path dt {
  font-size: .82rem;
  color: var(--muted)
}

.path dd {
  margin: 0;
  font-weight: 600;
  font-size: .98rem;
  line-height: 1.6
}

.path a {
  margin-top: auto;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  align-self: flex-start
}

/* الاعتمادات — سلايدر هادئ */
.accr {
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to left, transparent, #000 10%, #000 90%, transparent)
}

.accr__track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite
}

.accr:hover .accr__track {
  animation-play-state: paused
}

.accr__item {
  width: 260px;
  height: 140px;
  flex: none;
  margin-inline-end: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  padding: 24px
}

.accr__item img {
  max-height: 84px;
  max-width: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(.25);
  opacity: .9;
  transition: .3s
}

.accr__item:hover img {
  filter: none;
  opacity: 1
}

@keyframes marquee {
  from {
    transform: translateX(0)
  }

  to {
    transform: translateX(50%)
  }
}

/* الأسئلة الشائعة */
.faq {
  max-width: 860px;
  margin-inline: auto
}

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

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

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

.faq summary i {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  position: relative;
  transition: .3s
}

.faq summary i::before,
.faq summary i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: var(--ink);
  transform: translate(-50%, -50%);
  transition: .3s
}

.faq summary i::after {
  transform: translate(-50%, -50%) rotate(90deg)
}

.faq details[open] summary i {
  border-color: var(--gold);
  background: var(--gold)
}

.faq details[open] summary i::after {
  transform: translate(-50%, -50%) rotate(0)
}

.faq .ans {
  padding: 0 0 22px;
  color: var(--muted);
  max-width: 760px
}

.faq .ans p {
  margin: 0
}

/* التواصل */
.contact {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start
}

.cinfo li {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line)
}

.cinfo li:first-child {
  padding-top: 0
}

.cinfo .ic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  flex: none
}

.cinfo .ic svg {
  width: 22px;
  height: 22px
}

.cinfo small {
  display: block;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.4
}

.cinfo strong {
  font-size: 1.15rem;
  font-weight: 600
}

.cinfo a strong {
  border-bottom: 1px solid transparent;
  transition: .2s
}

.cinfo a:hover strong {
  border-color: var(--gold)
}

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(24px, 3.5vw, 40px)
}

.form h3 {
  margin-bottom: 4px
}

.form>p {
  color: var(--muted);
  margin-bottom: 22px
}

.fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px
}

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

.field label {
  font-weight: 600;
  font-size: .95rem
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color .2s
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--gold)
}

.field .err {
  color: #b3261e;
  font-size: .85rem;
  display: none
}

.field.invalid input {
  border-color: #b3261e
}

.field.invalid .err {
  display: block
}

.form .btn {
  width: 100%;
  margin-top: 18px
}

.form__ok {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: #e9f6ee;
  color: #14532d;
  font-size: .95rem
}

.form__ok.show {
  display: block
}

.form__hint {
  font-size: .85rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center
}

/* شريط الدعوة */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-md);
  padding: clamp(34px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 30px;
  align-items: center;
  position: relative;
  overflow: hidden
}

.cta::after {
  content: "";
  position: absolute;
  left: 4%;
  top: 50%;
  width: 240px;
  height: 240px;
  transform: translateY(-50%);
  background: url(../img/icon-512.png) center/contain no-repeat;
  opacity: .08;
  pointer-events: none
}

.cta h2 {
  color: #fff;
  margin-bottom: 10px
}

.cta p {
  color: #d6d3cf;
  margin: 0
}

.cta__side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch
}

.cta__phones {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  color: #d6d3cf;
  font-size: .95rem
}

.cta__phones a {
  color: #fff;
  font-weight: 600
}

/* ---------- الصفحات الداخلية ---------- */
.page-hero {
  position: relative;
  background: var(--mist);
  padding: calc(var(--header-h) + 64px) 0 clamp(56px, 7vw, 90px);
  overflow: hidden
}

.page-hero::after {
  content: "";
  position: absolute;
  left: -40px;
  bottom: -70px;
  width: min(420px, 50vw);
  aspect-ratio: 1;
  background: url(../img/icon-512.png) center/contain no-repeat;
  opacity: .07;
  pointer-events: none
}

.page-hero .wrap {
  position: relative;
  z-index: 1
}

.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 18px
}

.crumbs a:hover {
  color: var(--gold-deep)
}

.crumbs li+li::before {
  content: "/";
  margin-inline-end: 10px;
  color: var(--stone)
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 820px
}

.page-hero .lead {
  max-width: 680px;
  margin-bottom: 28px
}

.page-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  color: var(--muted);
  font-size: .98rem
}

.page-hero__meta a {
  color: var(--ink);
  font-weight: 600
}

.page-hero__meta span {
  display: inline-flex;
  gap: 8px;
  align-items: center
}

.page-hero__meta svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep)
}

.inc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.inc {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px;
  transition: border-color .25s, transform .25s var(--ease)
}

.inc:hover {
  border-color: var(--gold);
  transform: translateY(-3px)
}

.inc>svg {
  width: 28px;
  height: 28px;
  color: var(--gold-deep);
  margin-bottom: 14px
}

.inc h3 {
  font-size: 1.25rem;
  margin-bottom: 6px
}

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

.inc--feature {
  grid-column: span 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  border-color: var(--gold);
  background: linear-gradient(to left, #fff, var(--gold-soft))
}

.inc--feature>svg {
  margin: 0;
  width: 40px;
  height: 40px
}

.row-svc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
  padding: clamp(40px, 5vw, 60px) 0;
  border-top: 1px solid var(--line)
}

.row-svc:first-of-type {
  border-top: 0;
  padding-top: 0
}

.row-svc h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem)
}

.row-svc .num {
  font-family: var(--f-display);
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 700;
  display: block;
  margin-bottom: 4px
}

.req {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 28px
}

.req h3 {
  margin-bottom: 14px
}

.map {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16/7;
  background: var(--mist)
}

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

.prose {
  max-width: 800px
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 1.6em
}

.prose ul {
  list-style: disc;
  padding-inline-start: 22px;
  margin-bottom: 1em
}


/* ---------- أقسام المحاماة ---------- */
.inc-grid--areas {
  grid-template-columns: repeat(4, 1fr)
}

.inc--area {
  display: flex;
  flex-direction: column;
  scroll-margin-top: 110px
}

.inc--area .checks {
  margin: 14px 0 18px;
  font-size: .95rem
}

.inc--area .checks li {
  margin-bottom: 6px
}

.inc__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--gold-deep)
}

.inc__link svg {
  width: 18px;
  height: 18px
}

.inc__link:hover {
  color: var(--ink)
}

.inc--tile {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center
}

.inc--tile h3 {
  color: #fff
}

.inc--tile p {
  color: #d6d3cf;
  margin-bottom: 6px
}

.inc__tel {
  color: #fff;
  font-weight: 600;
  text-align: center;
  align-self: center
}

.inc--tile:hover {
  border-color: var(--gold)
}

.inc--area:target {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(215, 175, 96, .25)
}

/* ---------- المدونة ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px
}

.chip {
  font: 600 .95rem var(--f-body);
  padding: 9px 18px;
  border-radius: 30px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  transition: .2s
}

.chip:hover {
  border-color: var(--gold)
}

.chip.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff
}

.post-card[hidden] {
  display: none
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px
}

.post-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--r-md) var(--r-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease)
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 44px -30px rgba(43, 41, 39, .35)
}

.post-card h2 {
  font-size: 1.4rem;
  line-height: 1.5;
  margin: 10px 0 10px
}

.post-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0
}

.post-card p {
  color: var(--muted);
  font-size: .97rem
}

.post-card__cat {
  display: inline-block;
  align-self: flex-start;
  font-size: .82rem;
  font-weight: 600;
  color: var(--gold-deep);
  background: var(--gold-soft);
  padding: 3px 12px;
  border-radius: 30px
}

.post-card__meta {
  display: flex;
  gap: 16px;
  font-size: .85rem;
  color: var(--muted);
  margin: auto 0 14px;
  padding-top: 6px
}

.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--gold-deep)
}

.post-card__more svg {
  width: 18px;
  height: 18px
}

.page-hero--article h1 {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  margin-top: 14px;
  max-width: 900px
}

.h1-cta {
  display: block;
  font-family: var(--f-body);
  font-size: .5em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 10px
}

.h1-cta a {
  color: var(--gold-deep);
  border-bottom: 1px solid var(--gold)
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(30px, 5vw, 64px);
  align-items: start;
  max-width: 100%
}

.article {
  max-width: 760px;
  width: 100%;
  min-width: 0;
  font-size: 1.08rem;
  line-height: 2;
  overflow-wrap: break-word;
  word-wrap: break-word
}

.article>p:first-child {
  font-size: 1.2rem;
  color: #4a4744
}

.article h2 {
  font-size: clamp(1.5rem, 2.3vw, 1.9rem);
  margin: 1.8em 0 .6em;
  padding-top: .2em;
  position: relative;
  overflow-wrap: break-word
}

.article h2::before {
  content: "";
  display: block;
  width: 34px;
  height: 12px;
  background: var(--gold);
  clip-path: polygon(0 0, 100% 40%, 100% 100%, 0 60%);
  margin-bottom: 10px
}

.article h3 {
  font-size: 1.3rem;
  margin: 1.4em 0 .4em;
  overflow-wrap: break-word
}

.article ul,
.article ol {
  margin: 0 0 1.2em;
  padding-inline-start: 24px;
  padding-inline-end: 12px
}

.article ul li::marker {
  color: var(--gold)
}

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

.article li {
  margin-bottom: .4em;
  overflow-wrap: break-word
}

.article strong {
  color: var(--ink);
  font-weight: 700
}

.article a {
  color: var(--gold-deep);
  border-bottom: 1px solid rgba(215, 175, 96, .6);
  font-weight: 600
}

.article a:hover {
  color: var(--ink)
}

.article p:last-of-type {
  background: var(--gold-soft);
  border-radius: var(--r-md);
  padding: 18px 22px
}

.article blockquote {
  margin: 0 0 1.4em;
  padding: 18px 22px;
  border-inline-start: 4px solid var(--gold);
  background: var(--mist);
  border-radius: var(--r-sm);
  font-size: 1rem
}

.article blockquote p {
  margin: 0
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.4em;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  width: 100%;
  max-width: 100%
}

.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: .98rem;
  min-width: 420px
}

.article th,
.article td {
  padding: 12px 16px;
  text-align: right;
  border-bottom: 1px solid var(--line)
}

.article th {
  background: var(--mist);
  font-weight: 700
}

.article tr:last-child td {
  border-bottom: 0
}

.inc[id] {
  scroll-margin-top: 110px
}

.tags {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line)
}

.tags h2 {
  font-size: 1.15rem;
  margin: 0 0 12px
}

.tags h2::before {
  display: none
}

.tags ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px
}

.tags li {
  margin: 0;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 14px;
  font-size: .9rem;
  color: var(--muted)
}

.article-aside {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0
}

.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 24px;
  background: #fff
}

.aside-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px
}

.aside-card--dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.aside-card--dark h3 {
  color: #fff;
  margin: 0
}

.aside-card--dark p {
  color: #d6d3cf;
  margin: 0 0 6px;
  font-size: .95rem
}

.aside-card--dark small {
  color: #d6d3cf;
  text-align: center
}

.aside-card--dark small a {
  color: #fff;
  font-weight: 600
}

.aside-links li {
  border-top: 1px solid var(--line)
}

.aside-links a {
  display: block;
  padding: 9px 0;
  font-weight: 500;
  transition: color .2s
}

.aside-links a:hover {
  color: var(--gold-deep)
}

.related {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px
}

.related a {
  display: block;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.6;
  transition: border-color .2s
}

.related a:hover {
  border-color: var(--gold)
}

@media (max-width:1100px) {
  .inc-grid--areas {
    grid-template-columns: repeat(2, 1fr)
  }

  .post-grid {
    grid-template-columns: 1fr 1fr
  }

  .article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 32px
  }
}

@media (max-width:960px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 32px
  }

  .article-aside {
    position: static
  }

  .related {
    grid-template-columns: 1fr
  }
}

@media (max-width:640px) {

  .inc-grid--areas,
  .post-grid {
    grid-template-columns: 1fr
  }

  .article {
    font-size: 1.02rem
  }

  .article ul,
  .article ol {
    padding-inline-start: 20px
  }

  .page-hero--article h1 {
    font-size: clamp(1.45rem, 4.8vw, 2.1rem);
    overflow-wrap: break-word
  }
}

/* ---------- الفوتر ---------- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-top: 70px;
  margin-top: 0
}

.fgrid-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 50px
}

.site-footer .brand img {
  height: 78px
}

.site-footer p {
  color: var(--muted);
  font-size: .96rem;
  margin-top: 18px;
  max-width: 340px
}

.site-footer h4 {
  font-size: 1.2rem;
  margin-bottom: 16px
}

.flinks li {
  margin-bottom: 8px
}

.flinks a {
  color: var(--muted);
  transition: color .2s
}

.flinks a:hover {
  color: var(--gold-deep)
}

.fcontact li {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted)
}

.fcontact svg {
  width: 18px;
  height: 18px;
  color: var(--gold-deep);
  flex: none
}

.fcontact a {
  color: var(--ink);
  font-weight: 600
}

.fbar {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--muted)
}

.fbar a {
  color: var(--ink);
  font-weight: 600
}

.fbar a:hover {
  color: var(--gold-deep)
}

/* ---------- واتساب العائم وشريط الجوال ---------- */
.wa-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 90;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 26px -10px rgba(31, 168, 85, .7);
  transition: transform .25s var(--ease)
}

.wa-float:hover {
  transform: scale(1.07)
}

.wa-float svg {
  width: 30px;
  height: 30px
}

.wa-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--wa);
  animation: ring 2.6s ease-out infinite
}

@keyframes ring {
  0% {
    transform: scale(1);
    opacity: .7
  }

  80%,
  100% {
    transform: scale(1.5);
    opacity: 0
  }
}

.mbar {
  display: none
}

/* ---------- ظهور العناصر عند التمرير ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease)
}

.js .reveal.from-side {
  transform: translateX(-26px)
}

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

.js .reveal[data-d="1"] {
  transition-delay: .08s
}

.js .reveal[data-d="2"] {
  transition-delay: .16s
}

.js .reveal[data-d="3"] {
  transition-delay: .24s
}

.js .reveal[data-d="4"] {
  transition-delay: .32s
}

/* ---------- الاستجابة ---------- */
@media (max-width:1240px) {
  .header-phone {
    display: none
  }
}

@media (max-width:1100px) {

  .nav>li>a,
  .nav>li>button {
    padding: 10px 10px
  }
}

@media (max-width:960px) {
  :root {
    --header-h: 74px
  }

  .brand img {
    height: 52px
  }

  .scrolled .brand img {
    height: 48px
  }

  .burger {
    display: grid
  }

  .header-cta .btn {
    display: none
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 120px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    border-top: 1px solid var(--line)
  }

  .nav-open .nav {
    opacity: 1;
    visibility: visible;
    transform: none
  }

  .nav-open .site-header {
    background: #fff
  }

  .nav>li {
    border-bottom: 1px solid var(--line)
  }

  .nav>li>a,
  .nav>li>button {
    padding: 16px 4px;
    width: 100%;
    justify-content: space-between;
    font-size: 1.1rem
  }

  .nav>li>a::after,
  .nav>li>button::after {
    display: none
  }

  .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 10px;
    display: none;
    min-width: 0
  }

  .has-sub.open .sub {
    display: block
  }

  .has-sub:hover .chev {
    transform: none
  }

  .has-sub.open .chev {
    transform: rotate(180deg)
  }

  .split,
  .agency,
  .contact,
  .row-svc,
  .cta {
    grid-template-columns: 1fr
  }

  .svc-grid {
    grid-template-columns: 1fr
  }

  .svc--feature {
    grid-row: auto
  }

  .values {
    grid-template-columns: 1fr 1fr
  }

  .stats {
    grid-template-columns: 1fr 1fr;
    row-gap: 30px
  }

  .stat:nth-child(3)::before {
    display: none
  }

  .inc-grid {
    grid-template-columns: 1fr 1fr
  }

  .inc--feature {
    grid-column: span 2;
    grid-template-columns: auto 1fr
  }

  .inc--feature .btn {
    grid-column: 1/-1
  }

  .fgrid-main {
    grid-template-columns: 1fr 1fr
  }

  .hero__media::after {
    background: linear-gradient(to bottom, rgba(255, 255, 255, .9) 0%, rgba(255, 255, 255, .86) 55%, rgba(255, 255, 255, .55) 100%)
  }

  .hero__media img {
    object-position: 30% center
  }

  .creds ul {
    justify-content: center
  }
}

@media (max-width:640px) {
  body {
    font-size: 1rem
  }

  .wrap {
    width: min(var(--wrap), 100% - 32px)
  }

  .hero__body {
    padding-top: calc(var(--header-h) + 28px)
  }

  .btn-row .btn {
    flex: 1 1 100%
  }

  .creds ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 18px 0
  }

  .creds li+li::before {
    display: none
  }

  .creds li {
    font-size: 1.08rem
  }

  .paths__grid,
  .agency-types,
  .checks--two,
  .fgrid,
  .values,
  .inc-grid,
  .fgrid-main {
    grid-template-columns: 1fr
  }

  .atype--wide,
  .inc--feature {
    grid-column: auto
  }

  .inc--feature {
    grid-template-columns: 1fr
  }

  .record dl div {
    grid-template-columns: 1fr;
    gap: 2px
  }

  .stat__num {
    font-size: 2.5rem
  }

  .wa-float {
    display: none
  }

  .mbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 95;
    background: #fff;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -1px 0 var(--line), 0 -10px 24px -18px rgba(0, 0, 0, .3)
  }

  .mbar .btn {
    padding: 14px 10px
  }

  body {
    padding-bottom: 76px
  }

  .accr__item {
    width: 200px;
    height: 116px
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 40px)
  }
}

@media (prefers-reduced-motion:reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important
  }

  .hero [data-seq] {
    opacity: 1;
    transform: none
  }

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

  .accr__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: auto
  }

  .accr__track [aria-hidden="true"] {
    display: none
  }

  .accr {
    -webkit-mask-image: none;
    mask-image: none
  }
}

@media print {

  .site-header,
  .wa-float,
  .mbar,
  .form {
    display: none
  }
}