/* ======================================================
   الألوان والمتغيرات (مأخوذة من الشعار: بني داكن + بني فاتح)
   ====================================================== */
:root {
  --ink: #1F1813;
  --brown: #5A4332;
  --brown-2: #77593F;
  --sand: #D2AE84;
  --sand-2: #E2C6A4;
  --taupe: #A39280;
  --paper: #F5F4F2;
  --card: #FFFFFF;
  --text: #221B16;
  --muted: #6E655D;
  --line: #E7E3DE;
  --brown-soft: rgba(90, 67, 50, .08);

  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 12px;

  --shadow: 0 1px 2px rgba(31, 24, 19, .05), 0 16px 36px -16px rgba(31, 24, 19, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1200px;
}


/* ======================================================
   الأساسيات
   ====================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul,
ol {
  list-style: none;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* الأرقام تظهر من اليسار لليمين حتى داخل النص العربي */
.num {
  direction: ltr;
  unicode-bidi: isolate;
  font-feature-settings: "tnum";
}

.ph {
  line-height: 1;
}


/* ======================================================
   الأزرار
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s var(--ease), color .3s, border-color .3s, transform .3s var(--ease);
}

.btn:active {
  transform: scale(.97);
}

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

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

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

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

.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, .16);
}

.btn-ghost .ph {
  font-size: 19px;
}

/* زر فيه دائرة سهم */
.btn.has-ico {
  padding-inline: 26px 7px;
}

.btn .ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform .4s var(--ease);
}

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

.btn-brown .ico {
  background: rgba(255, 255, 255, .16);
}

.btn:hover .ico {
  transform: translateX(-4px);
}


/* ======================================================
   الهيدر: شفاف فوق الصورة، ويتحول لكبسولة زجاجية فاتحة مع النزول
   ====================================================== */
.hdr {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 50;
}

.hdr-in {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: var(--wrap);
  height: 88px;
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: height .6s var(--ease), margin-top .6s var(--ease), width .6s var(--ease), padding .6s var(--ease);
}

/* الكبسولة الزجاجية في ::before عشان البلور ما يأثر على قائمة الجوال */
.hdr-in::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, .64) 100%),
    rgba(245, 244, 242, .35);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow:
    inset 0 1px 0 #fff,
    0 1px 2px rgba(31, 24, 19, .06),
    0 18px 44px -16px rgba(31, 24, 19, .3);
  opacity: 0;
  transform: scale(.96);
  transition: opacity .5s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}

.hdr.solid .hdr-in {
  height: 68px;
  margin-top: 12px;
  width: calc(100% - 32px);
  padding-inline: 14px 10px;
}

.hdr.solid .hdr-in::before {
  opacity: 1;
  transform: none;
}

/* الشعار: داخل بطاقة بيضاء فوق الصورة، ويندمج مع الكبسولة بعد النزول */
.brand {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  transition: background .4s, padding .4s;
}

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

.hdr.solid .brand {
  padding: 0;
  background: transparent;
}

.hdr.solid .brand img {
  height: 46px;
}

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

.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 15px;
  color: rgba(255, 255, 255, .85);
  transition: background .3s, color .3s;
}

.nav a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.hdr.solid .nav a {
  color: var(--muted);
}

.hdr.solid .nav a:hover {
  background: var(--brown-soft);
  color: var(--brown);
}

/* زر الطلب داخل القائمة يظهر في الجوال فقط */
.nav .nav-cta {
  display: none;
}

.hdr-cta {
  height: 48px;
  padding: 0 22px;
}

.hdr.solid .hdr-cta {
  background: var(--brown);
  color: #fff;
}

.burger {
  display: none;
  position: relative;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  cursor: pointer;
  transition: background .4s;
}

.burger span {
  position: absolute;
  right: 14px;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform .35s var(--ease), top .35s var(--ease), background .4s;
}

.burger span:nth-child(1) {
  top: 19px;
}

.burger span:nth-child(2) {
  top: 27px;
}

.hdr.solid .burger {
  background: var(--brown-soft);
}

.hdr.solid .burger span {
  background: var(--ink);
}

.menu-open .burger span:nth-child(1) {
  top: 23px;
  transform: rotate(45deg);
}

.menu-open .burger span:nth-child(2) {
  top: 23px;
  transform: rotate(-45deg);
}


/* ======================================================
   الواجهة الأولى
   ====================================================== */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 150px 0 150px;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% center;
  transform: scale(1.06);
  animation: heroZoom 9s var(--ease-out) forwards;
}

/* تدرّج داكن من جهة النص عشان الكلام يكون واضح */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(270deg, rgba(31, 24, 19, .9) 0%, rgba(31, 24, 19, .62) 45%, rgba(31, 24, 19, .15) 100%),
    linear-gradient(0deg, rgba(31, 24, 19, .55) 0%, rgba(31, 24, 19, 0) 40%);
}

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

.hero-in {
  width: 100%;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 15px;
  font-weight: 500;
  color: var(--sand);
}

.kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--sand);
}

.hero h1 {
  max-width: 14ch;
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.2;
}

.hero h1 span {
  display: block;
  font-weight: 300;
  color: var(--sand-2);
}

.lead {
  margin-top: 20px;
  max-width: 50ch;
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, .82);
}

.ctas {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


/* ======================================================
   البيانات الرسمية (بطاقة تركب فوق حافة الصورة)
   ====================================================== */
.creds {
  position: relative;
  z-index: 2;
  margin-top: -78px;
}

.creds-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 30px 60px -30px rgba(31, 24, 19, .35);
}

.cred {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-inline-start: 1px solid var(--line);
}

.cred:first-child {
  border-inline-start: 0;
}

.cred .ph {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brown-soft);
  color: var(--brown);
  font-size: 24px;
}

.cred small {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.cred b {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}


/* ======================================================
   عناوين الأقسام
   ====================================================== */
.sec {
  padding: 100px 0;
}

.title {
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.sub {
  margin-top: 10px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--muted);
}


/* ======================================================
   عن المؤسسة
   ====================================================== */
.about-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 64px;
  align-items: center;
}

.about-copy .big {
  margin-top: 18px;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink);
}

.about-copy p {
  margin-top: 14px;
  color: var(--muted);
}

.ticks {
  margin-top: 26px;
  display: grid;
  gap: 10px;
}

.ticks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.ticks .ph {
  font-size: 22px;
  color: var(--brown-2);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--line);
  box-shadow: var(--shadow);
}


/* ======================================================
   خدماتنا (شبكة بأحجام مختلفة)
   ====================================================== */
.services {
  padding-top: 20px;
}

.svc-head {
  margin-bottom: 40px;
}

.bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 230px;
  padding: 30px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}

.tile > .ph {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: auto;
  background: var(--brown-soft);
  color: var(--brown);
  font-size: 28px;
  transition: transform .5s var(--ease), background .4s, color .4s;
}

.tile h3 {
  margin-top: 26px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.tile p {
  font-size: 15px;
  color: var(--muted);
}

/* الكرت الكبير */
.tile-main {
  grid-row: span 2;
  background: linear-gradient(160deg, var(--brown) 0%, var(--ink) 100%);
  color: #fff;
}

.tile-main > .ph {
  background: rgba(210, 174, 132, .16);
  color: var(--sand);
}

.tile-main h3 {
  font-size: 26px;
  color: #fff;
}

.tile-main p {
  font-size: 16px;
  color: rgba(255, 255, 255, .75);
}

.tile-link {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-weight: 600;
  color: var(--sand);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.tile-link .ph {
  transition: transform .35s var(--ease);
}

.tile-link:hover .ph {
  transform: translateX(-4px);
}

/* كرت بلون رملي */
.tile-dark {
  background: var(--sand);
}

.tile-dark > .ph {
  background: rgba(31, 24, 19, .08);
  color: var(--ink);
}

.tile-dark p {
  color: rgba(31, 24, 19, .72);
}


/* ======================================================
   طريقة العمل
   ====================================================== */
/* القسم كله لوحة بنية داكنة بحواف دائرية */
.process {
  margin: 20px 12px 0;
  padding: 96px 0;
  border-radius: 40px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(210, 174, 132, .14) 0%, rgba(210, 174, 132, 0) 55%),
    linear-gradient(160deg, #2A201A 0%, var(--ink) 100%);
  color: #fff;
}

.proc-head {
  margin-bottom: 44px;
}

.process .title {
  color: #fff;
}

.process .sub {
  color: rgba(255, 255, 255, .65);
}

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

.step {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px 24px 28px;
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, .07) 0%, rgba(255, 255, 255, .02) 100%);
  border: 1px solid rgba(255, 255, 255, .09);
}

/* رقم الخطوة كبير في الزاوية المقابلة للأيقونة */
.step-bg {
  position: absolute;
  top: 18px;
  left: 24px;
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1;
  color: rgba(210, 174, 132, .4);
  transition: color .5s var(--ease), transform .6s var(--ease);
}

/* خط رملي يمتد أعلى الكرت عند المرور */
.step::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--sand);
  transition: width .7s var(--ease);
}

.step:hover::after {
  width: 100%;
}

.step:hover .step-bg {
  color: var(--sand);
  transform: translateY(-4px);
}

.step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.step-ic {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--sand);
  color: var(--ink);
  font-size: 26px;
  transition: transform .5s var(--ease);
}

.step:hover .step-ic {
  transform: rotate(-8deg) scale(1.05);
}

.step-n {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(210, 174, 132, .35);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--sand);
}

.step h3 {
  margin-top: auto;
  padding-top: 34px;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.step p {
  margin-top: 6px;
  font-size: 15px;
  color: rgba(255, 255, 255, .66);
}


/* ======================================================
   تواصل معنا
   ====================================================== */
.contact-in {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

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

.c-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .4s var(--ease);
}

.c-list a:hover {
  padding-inline-start: 8px;
}

.c-ic {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brown-soft);
  color: var(--brown);
  font-size: 21px;
  transition: background .35s, color .35s;
}

.c-list a:hover .c-ic {
  background: var(--brown);
  color: #fff;
}

.c-list small {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}

.c-list b {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}


/* ======================================================
   النموذج
   ====================================================== */
.qf {
  padding: 36px;
  border-radius: var(--r-lg);
  background: var(--card);
  box-shadow: 0 30px 60px -30px rgba(31, 24, 19, .3);
}

.qf-body {
  display: grid;
  gap: 18px;
}

.qf-head h3 {
  font-size: 25px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.qf-head p {
  font-size: 14px;
  color: var(--muted);
}

.qf fieldset {
  border: 0;
  min-width: 0;
}

.qf label,
.qf legend {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.qf label small {
  font-weight: 400;
  color: var(--muted);
}

/* أزرار اختيار نوع العمل */
.types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.types label {
  position: relative;
  margin: 0;
}

.types input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.types span {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .25s, border-color .25s, color .25s;
}

.types span:hover {
  border-color: var(--brown);
}

.types input:checked + span {
  background: var(--brown);
  border-color: var(--brown);
  color: #fff;
}

.types input:focus-visible + span {
  outline: 3px solid rgba(90, 67, 50, .3);
  outline-offset: 2px;
}

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

.qf input[type=text],
.qf input[type=tel],
.qf textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  outline: none;
  transition: border-color .25s, background .25s;
}

.qf input[dir=ltr] {
  text-align: right;
}

.qf textarea {
  min-height: 92px;
  resize: vertical;
}

.qf input::placeholder,
.qf textarea::placeholder {
  color: #7A7168;
}

.qf input:focus,
.qf textarea:focus {
  border-color: var(--brown);
  background: #fff;
}

.qf .err {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: #B42318;
}

.field.bad input {
  border-color: #B42318;
  background: #fff;
}

.field.bad .err {
  display: block;
}

.qf-submit {
  width: 100%;
  height: 58px;
  margin-top: 4px;
  font-size: 16px;
}

.qf-done {
  display: none;
  padding: 44px 8px;
  text-align: center;
}

.qf-done-ic {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brown-soft);
  color: var(--brown);
  font-size: 32px;
}

.qf-done h3 {
  font-size: 23px;
  font-weight: 700;
  color: var(--ink);
}

.qf-done p {
  margin-top: 6px;
  color: var(--muted);
}

.qf-again {
  margin-top: 20px;
  padding: 2px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--brown);
  cursor: pointer;
}

.qf.sent .qf-body {
  display: none;
}

.qf.sent .qf-done {
  display: block;
}


/* ======================================================
   الفوتر
   ====================================================== */
.ftr {
  margin: 12px;
  padding: 56px 0 26px;
  border-radius: 36px;
  background: var(--ink);
  color: rgba(255, 255, 255, .7);
}

.f-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.f-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.f-logo {
  padding: 6px 10px;
  border-radius: 14px;
  background: #fff;
}

.f-logo img {
  height: 44px;
  width: auto;
}

.f-brand b {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

.f-brand small {
  display: block;
  font-size: 13px;
  text-align: right;
}

.f-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.f-links a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  background: rgba(255, 255, 255, .05);
  transition: background .3s, color .3s;
}

.f-links a:hover {
  background: rgba(210, 174, 132, .18);
  color: #fff;
}

.f-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-top: 20px;
  font-size: 13px;
}


/* ======================================================
   زر واتساب العائم (الشعار الأصلي)
   ====================================================== */
.wa {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  box-shadow: 0 12px 30px -6px rgba(37, 211, 102, .55);
  transition: transform .3s var(--ease);
}

.wa:hover {
  transform: scale(1.08);
}

.wa svg {
  width: 30px;
  height: 30px;
  fill: #fff;
}


/* ======================================================
   حركات الظهور عند النزول
   ====================================================== */
.rv {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
}

.rv.in {
  opacity: 1;
  transform: none;
  filter: none;
}

/* حركة المرور على الكروت بعد ظهورها */
.tile.rv.in {
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s, filter 1s;
}

.tile.rv.in:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 2px rgba(31, 24, 19, .05), 0 26px 46px -18px rgba(31, 24, 19, .32);
}

.tile:hover > .ph {
  transform: rotate(-8deg) scale(1.06);
}

/* صورة "عن المؤسسة" تنفتح من الوسط */
.about-media.rv {
  filter: none;
  transform: none;
  opacity: 1;
  clip-path: inset(8% 8% 8% 8% round var(--r-lg));
  transition: clip-path 1.4s var(--ease-out);
}

.about-media.rv img {
  transform: scale(1.1);
  transition: transform 1.8s var(--ease-out);
}

.about-media.rv.in {
  clip-path: inset(0 0 0 0 round var(--r-lg));
}

.about-media.rv.in img {
  transform: none;
}


/* ======================================================
   التجاوب: تابلت
   ====================================================== */
@media (max-width: 1020px) {
  .nav,
  .hdr-cta {
    display: none;
  }

  .burger {
    display: block;
  }

  /* قائمة الجوال */
  .menu-open {
    overflow: hidden;
  }

  .menu-open .nav {
    position: fixed;
    top: 100px;
    inset-inline: 16px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: var(--r-lg);
    background: #fff;
    box-shadow: 0 30px 60px -20px rgba(31, 24, 19, .4);
  }

  /* روابط القائمة داكنة دايمًا لأن القائمة بيضاء */
  .menu-open .hdr .nav a {
    padding: 14px 16px;
    font-size: 18px;
    color: var(--text);
  }

  .menu-open .hdr .nav a:hover {
    background: var(--brown-soft);
    color: var(--brown);
  }

  .menu-open .hdr .nav .nav-cta {
    display: block;
    margin-top: 6px;
    text-align: center;
    background: var(--brown);
    color: #fff;
  }

  .menu-open .wa {
    display: none;
  }

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

  .cred:nth-child(3) {
    border-inline-start: 0;
  }

  .about-in,
  .contact-in {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .about-media img {
    aspect-ratio: 4 / 3;
  }

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

  .tile-main {
    grid-row: auto;
    grid-column: 1 / -1;
  }

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


/* ======================================================
   التجاوب: جوال
   ====================================================== */
@media (max-width: 640px) {
  .wrap {
    padding-inline: 18px;
  }

  .hdr-in {
    height: 76px;
    padding-inline: 14px;
  }

  .hdr.solid .hdr-in {
    height: 62px;
    margin-top: 8px;
    width: calc(100% - 16px);
    padding-inline: 10px 8px;
  }

  .brand img {
    height: 40px;
  }

  .hdr.solid .brand img {
    height: 40px;
  }

  .burger {
    width: 44px;
    height: 44px;
  }

  .burger span {
    right: 12px;
  }

  .burger span:nth-child(1) {
    top: 17px;
  }

  .burger span:nth-child(2) {
    top: 25px;
  }

  .menu-open .burger span:nth-child(1),
  .menu-open .burger span:nth-child(2) {
    top: 21px;
  }

  .menu-open .nav {
    top: 86px;
    inset-inline: 10px;
  }

  .hero {
    min-height: 88svh;
    padding: 120px 0 120px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(31, 24, 19, .94) 0%, rgba(31, 24, 19, .7) 50%, rgba(31, 24, 19, .35) 100%);
  }

  .hero h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 16px;
  }

  .ctas .btn {
    flex: 1;
  }

  .creds {
    margin-top: -70px;
  }

  .creds-card {
    gap: 4px;
    padding: 8px;
  }

  .cred {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 12px;
    border: 0;
  }

  .cred .ph {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .cred b {
    font-size: 14px;
  }

  .sec {
    padding: 64px 0;
  }

  .about-copy .big {
    font-size: 18px;
  }

  .bento {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tile {
    min-height: 0;
    padding: 24px;
  }

  .tile h3 {
    margin-top: 16px;
  }

  .tile-main h3 {
    font-size: 22px;
  }

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

  .process {
    margin: 12px 8px 0;
    padding: 64px 0;
    border-radius: 28px;
  }

  .step {
    min-height: 0;
    padding: 22px 20px 24px;
    border-radius: 22px;
  }

  .step h3 {
    padding-top: 22px;
    font-size: 19px;
  }

  .step-bg {
    top: 16px;
    left: 20px;
    font-size: 52px;
  }

  .c-list b {
    font-size: 15px;
    word-break: break-word;
  }

  .qf {
    padding: 24px 18px;
    border-radius: 22px;
  }

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

  .ftr {
    margin: 8px;
    border-radius: 28px;
  }

  .f-bot {
    flex-direction: column;
  }
}


/* ======================================================
   تقليل الحركة لمن يفضّل ذلك
   ====================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-bg {
    animation: none;
    transform: none;
  }

  .rv,
  .about-media.rv,
  .about-media.rv img {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
    transition: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .hdr-in::before,
  .btn-ghost {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
