/* ==========================================================================
   وثاق الحق — نظام التصميم
   الحبر: بترولي داكن | اللوحة: C9B59C · D9CFC7 · EFE9E3 · F9F8F6
   الخط: ثمانية (Thmanyah Serif Text)
   ========================================================================== */

@font-face { font-family: "Thmanyah Serif Text"; src: url("../fonts/thmanyahseriftext-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Text"; src: url("../fonts/thmanyahseriftext-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Text"; src: url("../fonts/thmanyahseriftext-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Text"; src: url("../fonts/thmanyahseriftext-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Thmanyah Serif Text"; src: url("../fonts/thmanyahseriftext-Black.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --ink: #252B21;          /* لون الشعار الداكن */
  --ink-2: #2E3529;
  --ink-3: #3E4737;
  --cream: #E9D9C5;        /* لون الشعار الفاتح */
  --brass: #C9B59C;        /* لوحة العميل: اللون الأساسي */
  --brass-light: #D9CFC7;  /* لوحة العميل */
  --brass-soft: #EFE9E3;   /* لوحة العميل */
  --paper: #F9F8F6;        /* لوحة العميل */
  --brass-deep: #7D6649;   /* درجة أغمق من C9B59C للأيقونات والخطوط على الخلفيات الفاتحة */
  --mist: #EFE9E3;
  --line: #D9CFC7;
  --text: #182A2D;
  --muted: #56686B;
  --danger: #A33A2F;
  --success: #2F6B4F;

  --font-display: "Thmanyah Serif Text", "Times New Roman", serif;
  --font-body: "Thmanyah Serif Text", "Times New Roman", serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --gutter: clamp(18px, 4vw, 40px);
  --section: clamp(64px, 9vw, 116px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong, b { font-weight: 500; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 .5em;
  color: var(--ink);
}
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 600; }

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

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; right: 12px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
  transform: translateY(-160%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.tone-mist { background: var(--mist); }

.icon { width: 1.25em; height: 1.25em; flex: none; }
.knot { display: block; }

.lead { font-size: 1.15rem; color: var(--text); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .55em 1.4em;
  border: 1.5px solid transparent; border-radius: 10px;
  font-weight: 500; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn-lg { min-height: 54px; padding-inline: 1.8em; font-size: 1.05rem; }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: var(--brass-light); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-3); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: .45em;
  color: var(--ink); font-weight: 500; text-decoration: none;
  border-bottom: 1.5px solid var(--brass-deep); padding-bottom: 2px;
}
.text-link .icon { width: 1.1em; transition: transform .2s var(--ease); }
.text-link:hover .icon { transform: translateX(-4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding: 14px var(--gutter);
  transition: padding .3s var(--ease);
}
.nav-bar {
  max-width: 1240px; margin-inline: auto;
  display: flex; align-items: center; gap: 28px;
  padding: 8px 12px 8px 22px;
  padding-inline-start: 16px;
  border-radius: 16px;
  background: rgba(239,233,227, .88);
  border: 1px solid rgba(255,255,255,.6);
  box-shadow: 0 10px 30px -18px rgba(37,43,33,.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  color: var(--ink);
  transition: background-color .3s, border-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-scrolled { padding-top: 8px; }
.site-header.is-scrolled .nav-bar {
  background: rgba(249,248,246,.96);
  border-color: var(--line);
}

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
.logo { display: block; height: 62px; width: auto; }
.brand .logo-light { display: none; }
.brand .logo-dark { display: block; }
.emblem { display: block; height: auto; }

.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  display: block; padding: 8px 11px; border-radius: 10px; white-space: nowrap;
  text-decoration: none; font-weight: 500; font-size: .95rem; position: relative; color: var(--ink);
  transition: color .2s;
}
.nav a:hover { color: var(--ink-3); }
.nav a::after {
  content: ""; position: absolute; inset-inline: 11px; bottom: 2px; height: 2px;
  background: var(--ink); border-radius: 2px; transform: scaleX(0); transform-origin: center;
  transition: transform .25s var(--ease);
}
.nav a:hover::after { transform: scaleX(.6); }
.nav a[aria-current="page"] { font-weight: 700; }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-contact-mobile { display: none; }
.nav-cta {
  min-height: 44px; border-radius: 9px; padding-inline: 1.3em;
  background: var(--brass-soft); color: var(--ink); border-color: rgba(37,43,33,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 4px 12px -8px rgba(37,43,33,.5);
}
.nav-cta:hover { background: var(--brass-light); border-color: rgba(37,43,33,.18); }

.nav-toggle {
  display: none; margin-inline-start: auto;
  width: 52px; height: 52px; border-radius: 12px;
  background: transparent; border: 0; cursor: pointer; color: var(--ink);
  align-items: center; justify-content: center;
}
.nav-toggle .icon { width: 32px; height: 32px; }
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 1180px) {
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: calc(100% + 8px); inset-inline: 0;
    background: #fff; color: var(--ink); border-radius: 16px; padding: 10px;
    box-shadow: 0 24px 48px -20px rgba(37,43,33,.45); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 2px; }
  .nav a { padding: 12px 16px; font-size: 1.05rem; }
  .nav a::after { display: none; }
  .nav a:hover { background: var(--mist); }
  .nav a[aria-current="page"] { background: var(--mist); }
  .nav-contact-mobile { display: block; }
  .site-header.menu-open .nav-bar { background: rgba(255,255,255,.97); border-color: var(--line); }
}
@media (max-width: 1100px) { .logo { height: 54px; } }
@media (max-width: 560px) { .brand .logo { height: auto; width: min(250px, calc(100vw - 130px)); } }

/* ---------- Home hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: 130px; padding-bottom: 36px;
  color: #fff; background: var(--ink);
  overflow: hidden;
}
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }

/* شرائح الرياض: تكبير بطيء ثم تلاشٍ متقاطع مع الصورة التالية (دورة 24 ثانية لثلاث صور) */
.hero-slides { position: absolute; inset: -12% 0; z-index: -2; overflow: hidden; translate: 0 var(--py, 0px); will-change: translate; }
.hero-slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 45%;
  opacity: 0; transform: scale(1);
  filter: saturate(.85) brightness(1.08);
  will-change: opacity, transform;
}
.hero-slide:first-child { opacity: 1; filter: saturate(.9) brightness(1.35); object-position: center 60%; }
.hero-slide:nth-child(2) { object-position: 38% 40%; }
@media (prefers-reduced-motion: no-preference) {
  .hero-slide { animation: heroSlide 24s linear infinite; }
  .hero-slide:first-child { animation-delay: -1.5s; }
  .hero-slide:nth-child(2) { animation-delay: 6.5s; }
  .hero-slide:nth-child(3) { animation-delay: 14.5s; }
}
@keyframes heroSlide {
  0%    { opacity: 0; transform: scale(1); }
  6%    { opacity: 1; }
  33.3% { opacity: 1; }
  41%   { opacity: 0; transform: scale(1.16); }
  100%  { opacity: 0; transform: scale(1.16); }
}
.hero::after {
  background:
    linear-gradient(to left, rgba(37,43,33,.88) 0%, rgba(37,43,33,.55) 48%, rgba(37,43,33,.12) 100%),
    linear-gradient(to top, rgba(37,43,33,.92) 0%, rgba(37,43,33,0) 38%),
    linear-gradient(to bottom, rgba(37,43,33,.55) 0%, rgba(37,43,33,0) 22%);
}
.hero-inner {
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
  align-items: center; gap: 40px;
}
.hero-name {
  font-size: .95rem; color: var(--cream); margin-bottom: 1.2rem; font-weight: 400;
  display: inline-flex; align-items: center; gap: 12px;
}
.hero-name::before { content: ""; width: 36px; height: 1.5px; background: var(--brass); }
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 1rem + 2.9vw, 3.4rem);
  font-weight: 700; line-height: 1.45; letter-spacing: 0;
  margin-bottom: .5em; max-width: 14em; text-wrap: balance;
}
.hero h1 span { display: block; text-wrap: balance; }
.hero-lead { font-size: clamp(1.05rem, 1rem + .4vw, 1.3rem); color: rgba(255,255,255,.82); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.hero-knot { width: min(100%, 380px); height: auto; justify-self: center; color: var(--cream); overflow: visible; }
/* خط أعرض قليلًا من الأصل ليتناسب مع الحجم الكبير في الواجهة */
.hero-knot .logo-part path { vector-effect: none; stroke-width: 5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-knot { animation: symbolGlow 6s ease-in-out 2.2s infinite; }
  .hero-knot.is-animated .logo-part path { animation-duration: 1.8s; animation-timing-function: cubic-bezier(.65,0,.35,1); }
  .hero-knot.is-animated #outer-ring path { animation-delay: .25s; }
  .hero-knot.is-animated #pillars path { animation-delay: .7s; }
  .hero-knot.is-animated #left-scale path, .hero-knot.is-animated #right-scale path { animation-delay: 1.15s; }
  .hero-copy > * { animation: rise .9s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes symbolGlow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(233,217,197,0)); } 50% { filter: drop-shadow(0 0 18px rgba(233,217,197,.35)); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-knot { position: absolute; width: 300px; left: -70px; top: 110px; opacity: .22; z-index: -1; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative; isolation: isolate; color: #fff; background: var(--ink);
  padding-top: clamp(150px, 18vw, 190px); padding-bottom: clamp(48px, 7vw, 80px);
  overflow: hidden;
}
.page-hero::before, .page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; }
/* تأثير Parallax: الصورة أطول من القسم وتتحرك بقيمة --py التي يضبطها main.js */
.page-hero::before { inset: -25% 0; translate: 0 var(--py, 0px); will-change: translate; }
.page-hero::before { background: var(--hero-img) center 55% / cover no-repeat; filter: saturate(.85) brightness(1.1); }
.page-hero::after { background: linear-gradient(to left, rgba(37,43,33,.92) 0%, rgba(37,43,33,.68) 50%, rgba(37,43,33,.35) 100%), linear-gradient(to bottom, rgba(37,43,33,.55) 0%, rgba(37,43,33,0) 35%); }
@media (prefers-reduced-motion: no-preference) {
  .page-hero::before { animation: pageHeroZoom 18s ease-out both; }
}
@keyframes pageHeroZoom { from { scale: 1.12; } to { scale: 1; } }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 700; max-width: 18em; margin-bottom: .35em; }
.page-lead { color: rgba(255,255,255,.8); font-size: 1.12rem; max-width: 46em; margin: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .9rem; margin-bottom: 18px; color: rgba(255,255,255,.65); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--brass-light); }
.crumbs [aria-current] { color: var(--cream); }

/* ---------- Section heads ---------- */
.section-head { max-width: 46rem; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { color: var(--muted); margin: 0; font-size: 1.08rem; }
.section-head-row {
  max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.section-head-row > div { max-width: 46rem; }

/* ---------- Split (text + image) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.split-text h2 { max-width: 16em; }
.split-media { margin: 0; position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 4 / 4.4; }
.split-media img { position: absolute; inset-inline: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; filter: saturate(.7); translate: 0 var(--py, 0px); will-change: translate; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-media { aspect-ratio: 16 / 11; }
}

.checklist { display: grid; gap: 12px; margin: 26px 0 30px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; }
.checklist .icon {
  width: 26px; height: 26px; padding: 5px; margin-top: 2px;
  border-radius: 50%; background: var(--brass-soft); color: var(--ink); stroke-width: 2.2;
}
.checklist-lg li { font-size: 1.08rem; }

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: var(--brass); box-shadow: 0 18px 40px -28px rgba(37,43,33,.5); }
.service-card:focus-within { border-color: var(--brass); }
.service-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 20px;
  border-radius: 12px; background: var(--ink); color: var(--cream);
}
.service-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.22rem; margin-bottom: .45em; }
.service-card h3 a { text-decoration: none; }
.service-card h3 a:focus-visible { outline: none; }
.service-card:has(a:focus-visible) { outline: 2px solid var(--brass-deep); outline-offset: 3px; }
.stretched::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.service-card p { color: var(--muted); font-size: .97rem; line-height: 1.8; margin-bottom: 20px;
}
.service-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: .95rem; }
.service-more .icon { color: var(--brass-deep); transition: transform .2s var(--ease); }
.service-card:hover .service-more .icon { transform: translateX(-5px); }

/* ---------- Why band ---------- */
.why {
  position: relative; isolation: isolate; color: #fff; background: var(--ink);
  padding-block: var(--section); overflow: hidden;
}
.why::before, .why::after { content: ""; position: absolute; inset: 0; z-index: -1; }
.why::before { inset: -30% 0; background: var(--band-img) center / cover no-repeat; filter: saturate(.85) brightness(1.15); translate: 0 var(--py, 0px); will-change: translate; }
.why::after { background: linear-gradient(135deg, rgba(37,43,33,.8), rgba(37,43,33,.9)); }
.why h2 { color: #fff; }
.why-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: clamp(24px, 5vw, 80px); margin-bottom: clamp(40px, 5vw, 64px); align-items: start; }
.why-head p { color: rgba(255,255,255,.78); font-size: 1.08rem; margin: 0; }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255,255,255,.14); }
.why-grid li { padding: 32px 0 34px; padding-inline-end: 32px; border-bottom: 1px solid rgba(255,255,255,.14); }
.why-grid li:not(:nth-child(3n + 1)) { padding-inline-start: 32px; border-inline-start: 1px solid rgba(255,255,255,.14); }
.why-grid .icon { width: 30px; height: 30px; color: var(--cream); margin-bottom: 18px; }
.why-grid strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; margin-bottom: 4px; }
.why-lead { color: var(--cream); font-weight: 500; margin-bottom: 18px; }
.why-outro { margin: clamp(32px, 4vw, 48px) 0 0; max-width: 52rem; color: #fff; font-family: var(--font-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.8; }
.why-grid h3 { color: #fff; font-size: 1.18rem; }
.why-grid p { color: rgba(255,255,255,.72); margin: 0; font-size: 1rem; }
@media (max-width: 900px) {
  .why-head { grid-template-columns: 1fr; gap: 8px; }
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why-grid li, .why-grid li:not(:nth-child(3n + 1)) { padding-inline: 0 24px; border-inline-start: 0; }
  .why-grid li:nth-child(2n) { padding-inline-start: 24px; border-inline-start: 1px solid rgba(255,255,255,.14); }
}
@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .why-grid li, .why-grid li:nth-child(2n) { padding-inline: 0; border-inline-start: 0; }
}

/* ---------- Journey: الحبل الذي يربط المراحل ---------- */
.journey-steps {
  --dot: 58px;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px;
  position: relative; counter-reset: step;
}
.journey-steps::before {
  content: ""; position: absolute; top: calc(var(--dot) / 2); inset-inline: calc(10% - 12px);
  height: 0; border-top: 2px dashed var(--brass-deep); opacity: .55;
}
.journey-step { position: relative; }
.journey-num {
  position: relative; display: grid; place-items: center;
  width: var(--dot); height: var(--dot); margin-bottom: 22px;
  border-radius: 50%; background: var(--paper); border: 2px solid var(--brass-deep);
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; color: var(--ink);
  box-shadow: 0 0 0 8px var(--paper);
}
.journey-step:last-child .journey-num { background: var(--ink); color: var(--brass-light); border-color: var(--ink); }
.journey-step h3 { font-size: 1.2rem; margin-bottom: .35em; }
.journey-step p { color: var(--muted); font-size: .96rem; margin: 0; }
.tone-mist .journey-num { background: var(--mist); box-shadow: 0 0 0 8px var(--mist); }
@media (max-width: 900px) {
  .journey-steps { grid-template-columns: 1fr; gap: 0; --dot: 50px; }
  .journey-steps::before { top: 0; bottom: 0; inset-inline: auto; right: calc(var(--dot) / 2 - 1px); width: 0; height: auto; border-top: 0; border-right: 2px dashed var(--brass-deep); }
  .journey-step { display: grid; grid-template-columns: var(--dot) 1fr; column-gap: 20px; padding-bottom: 30px; }
  .journey-step:last-child { padding-bottom: 0; }
  .journey-num { grid-row: 1 / 3; margin-bottom: 0; }
  .journey-step h3 { align-self: center; margin-top: 10px; }
}

/* ---------- Vision & mission ---------- */
.vision-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: stretch; }
.vision-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); }
.vision-card > .icon { width: 44px; height: 44px; color: var(--brass-deep); margin-bottom: 20px; }
.vision-knot { width: 56px; margin-bottom: 16px; }
.vision-card p { color: var(--muted); margin: 0; }
.vision-card-ink { background: var(--ink); border-color: var(--ink); }
.vision-card-ink h2 { color: #fff; }
.vision-card-ink p { color: rgba(255,255,255,.72); }
.vision-card-ink .vision-lead { color: #fff; font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + .8vw, 1.55rem); line-height: 1.6; margin-bottom: 1em; }
@media (max-width: 860px) { .vision-grid { grid-template-columns: 1fr; } }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 28px; }
.team-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.team-grid-5, .team-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .team-grid { gap: 24px; } .team-grid-4, .team-grid-5, .team-grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .team-grid-3, .team-grid-4, .team-grid-5, .team-grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 480px) { .team-grid-3, .team-grid-4, .team-grid-5, .team-grid-6 { grid-template-columns: 1fr; } }

.member { height: 100%; }
.member-open {
  display: flex; flex-direction: column; width: 100%; height: 100%;
  padding: 0; border: 0; text-align: center; cursor: pointer; overflow: hidden;
  border-radius: 20px; background: #fff;
  box-shadow: 0 14px 32px rgba(37,43,33,.12);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.member-open:hover, .member-open:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(37,43,33,.16); }
.member-open:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.member-media {
  position: relative; flex: none; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  background: linear-gradient(155deg, var(--ink) 0%, var(--ink-3) 100%);
}
.member-media .member-mark {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center;
  padding: 6%; opacity: .24; transition: transform .4s var(--ease), opacity .3s;
}
.member-open:hover .member-media .member-mark { opacity: .32; transform: scale(1.04); }
.member-photo {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: center top; transform-origin: center bottom;
  transition: transform .4s var(--ease);
}
.member-open:hover .member-photo, .member-open:focus-visible .member-photo { transform: scale(1.04); }
.member-body {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 16px 20px; background: var(--paper); overflow: hidden;
}
.member-name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
.member-role { font-size: .88rem; font-weight: 500; line-height: 1.5; color: var(--brass-deep); transition: color .25s; }
.member-open:hover .member-role { color: var(--ink-3); }
.member-excerpt {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  font-size: .86rem; line-height: 1.65; color: var(--muted);
}
.member-link {
  margin-top: auto; display: inline-flex; align-items: center; padding: 7px 18px; border-radius: 999px;
  background: var(--brass-soft); color: var(--ink); font-size: .84rem; font-weight: 700;
  transition: background-color .2s, color .2s;
}
.member-open:hover .member-link, .member-open:focus-visible .member-link { background: var(--ink); color: #fff; }

.bio {
  width: min(680px, calc(100vw - 32px)); max-height: min(86vh, 900px);
  padding: 0; border: 0; border-radius: var(--radius-lg); color: var(--text);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5);
}
.bio::backdrop { background: rgba(20, 24, 18, .72); backdrop-filter: blur(3px); }
.bio[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .bio[open] { animation: none; } }
.bio-head {
  position: sticky; top: 0; display: flex; justify-content: space-between; gap: 16px; align-items: flex-start;
  padding: 28px 32px 22px; background: var(--ink); color: #fff;
}
.bio-head h3 { color: #fff; font-size: 1.45rem; margin: 6px 0 2px; }
.bio-role { font-size: .8rem; font-weight: 500; padding: 3px 10px; border-radius: 999px; background: var(--brass); color: var(--ink); }
.bio-close { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 0; color: #fff; cursor: pointer; }
.bio-close:hover { background: rgba(255,255,255,.2); }
.bio-body { padding: 24px 32px 30px; }
.bio-body p { color: var(--muted); }
.bio-body p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--brass-light); padding-block: clamp(48px, 6vw, 72px); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); margin: 0; max-width: 24em; }
.cta-inner p { margin: 0; color: var(--ink-3); max-width: 40em; }
.cta-band .btn-brass { background: var(--ink); color: #fff; }
.cta-band .btn-brass:hover { background: var(--ink-3); }

/* ---------- About page ---------- */
.opening-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(28px, 6vw, 80px); align-items: center; max-width: 1060px; }
.opening-knot { width: 100%; color: var(--brass-deep); }
.opening-title { font-size: 1.15rem; color: var(--brass-deep); margin-bottom: .6em; }
.motto { margin: 0 0 .7em; font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.5; }
@media (max-width: 700px) {
  .opening-grid { grid-template-columns: 1fr; }
  .opening-mark { width: 90px; }
}

.values-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.values-list > div { padding: 26px 0 28px; padding-inline-end: 28px; border-bottom: 1px solid var(--line); }
.values-list dt { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.values-list dd { margin: 0; color: var(--muted); }
@media (max-width: 860px) { .values-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .values-list { grid-template-columns: 1fr; } }

/* ---------- Service detail ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.detail-block { padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.detail-block h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }
.detail-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 14px; background: var(--ink); color: var(--brass-light); margin-bottom: 26px; }
.detail-icon .icon { width: 30px; height: 30px; }
.detail-block .checklist { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tags li { padding: 6px 16px; border-radius: 999px; background: var(--mist); border: 1px solid var(--line); font-weight: 400; font-size: .97rem; }

.mini-steps { display: grid; gap: 18px; margin-bottom: 22px; }
.mini-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.mini-steps li > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--brass-deep); font-family: var(--font-display); font-weight: 700; color: var(--ink); }
.mini-steps strong { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.08rem; }
.mini-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pager a { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.5; }
.pager a:hover { border-color: var(--brass); }
.pager a[rel="next"] { justify-content: space-between; text-align: end; }
.pager small { display: block; font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: .82rem; }
.pager .icon { color: var(--brass-deep); }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } }

.detail-aside { display: grid; gap: 18px; }
.aside-cta { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: 30px 28px; }
.aside-knot { width: 54px; margin-bottom: 16px; }
.aside-cta h2 { color: #fff; font-size: 1.3rem; margin-bottom: 18px; }
.aside-cta p { color: rgba(255,255,255,.72); font-size: .97rem; }
.aside-cta .btn { width: 100%; }
.aside-nav { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 12px 12px; }
.aside-nav h2 { font-size: 1.1rem; padding-inline: 12px; margin-bottom: 8px; }
.aside-nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: .95rem; font-weight: 400; color: var(--text); }
.aside-nav a:hover { background: var(--mist); }
.aside-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 960px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .aside-nav { display: none; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.form-title { font-size: 1.7rem; margin-bottom: .2em; }
.form-note { color: var(--muted); margin-bottom: 28px; }
.req { color: var(--danger); }
.optional { color: var(--muted); font-weight: 300; font-size: .9em; }
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; color: var(--ink); font-size: .98rem; padding: 0; margin-bottom: 8px; }
.field > label { margin-bottom: 0; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  font-weight: 400; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.8; }
input::placeholder, textarea::placeholder { color: #8C9A9C; font-weight: 300; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(201,181,156,.45); }
input[dir="ltr"] { text-align: right; }
input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
[aria-invalid="true"] input, input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .9rem; margin: 0; font-weight: 400; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-flex; align-items: center; min-height: 46px; padding: 6px 18px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 400; background: #fff; transition: border-color .2s, background-color .2s, color .2s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--brass-deep); outline-offset: 3px; }
fieldset[aria-invalid="true"] .choice span { border-color: var(--danger); }
.form .btn { justify-self: start; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); margin-bottom: 24px; }
.notice:focus { outline: none; }
.notice > .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; color: #fff; margin-top: 2px; stroke-width: 2.4; }
.notice p { margin: 0; }
.notice-error { background: #F8ECEA; color: #5E231D; }
.notice-error > .icon { background: var(--danger); }
.notice-success { background: #EAF3EE; color: #1E4633; padding: 28px; }
.notice-success > .icon { background: var(--success); }
.notice-success h2 { font-size: 1.5rem; color: #1E4633; margin-bottom: .2em; }
.notice-success p { margin-bottom: 14px; }

.contact-aside { display: grid; gap: 18px; position: sticky; top: 104px; }
.aside-steps, .aside-contact { background: var(--mist); border-radius: var(--radius-lg); padding: 28px; }
.aside-steps h2, .aside-contact h2 { font-size: 1.25rem; margin-bottom: 18px; }
.aside-steps .mini-steps { margin: 0; }
.aside-steps .mini-steps li > span { background: #fff; }
.contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; align-items: center; }
.contact-list .icon { color: var(--brass-deep); }
.contact-list a { text-decoration: none; font-weight: 400; }
.contact-list a:hover { text-decoration: underline; }
@media (max-width: 960px) { .contact-aside { position: static; } }

/* ---------- Map ---------- */
.map-section { padding-bottom: var(--section); }
.map-frame {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--mist); aspect-ratio: 16 / 6; min-height: 320px;
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.75) contrast(1.02); }
@media (max-width: 700px) { .map-frame { aspect-ratio: 4 / 5; min-height: 0; } }

.not-found { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding-top: clamp(56px, 7vw, 84px); font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; }
.footer-grid:has(> :nth-child(4)) { grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; }
.footer-brand .brand { margin-bottom: 22px; }
.footer-brand .logo { height: auto; width: min(100%, 300px); }
.footer-brand p { max-width: 22em; font-family: var(--font-display); font-size: 1.15rem; line-height: 1.7; color: rgba(255,255,255,.85); }
.footer-col h2 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: var(--brass-light); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: var(--brass); margin-top: 5px; }
.footer-bottom {
  padding-block: 22px; font-size: .88rem; color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: baseline;
}
.footer-bottom p { margin: 0; }
.footer-credit a { color: rgba(255,255,255,.8); text-decoration: none; border-bottom: 1px solid rgba(233,217,197,.4); }
.footer-credit a:hover { color: var(--brass); border-bottom-color: var(--brass); }
@media (max-width: 960px) { .footer-grid, .footer-grid:has(> :nth-child(4)) { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid, .footer-grid:has(> :nth-child(4)) { grid-template-columns: 1fr; gap: 32px; } }

.whatsapp-fab {
  position: fixed; bottom: 22px; left: 22px; z-index: 45;
  display: flex; align-items: center; gap: 0;
  height: 60px; width: 60px; padding: 0; border-radius: 999px;
  transition: width .35s var(--ease);
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgba(10, 60, 35, .55);
}
.whatsapp-fab svg { width: 60px; height: 60px; padding: 14px; flex: none; }
.whatsapp-fab span {
  max-width: 0; overflow: hidden; white-space: nowrap; font-weight: 500;
  transition: max-width .35s var(--ease), padding .35s var(--ease);
}
.whatsapp-fab:hover, .whatsapp-fab:focus-visible { width: auto; }
.whatsapp-fab:hover span, .whatsapp-fab:focus-visible span { max-width: 200px; padding-inline-end: 22px; }
.whatsapp-fab::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #25D366; z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-fab::before { animation: waPulse 2.8s ease-out infinite; }
}
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@media (max-width: 560px) { .whatsapp-fab { bottom: 14px; left: 14px; height: 48px; width: 48px; } .whatsapp-fab svg { width: 48px; height: 48px; padding: 11px; } .site-footer { padding-bottom: 64px; } }

/* ---------- ظهور تدريجي للمحتوى عند التمرير ---------- */
.reveal-ready [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
.reveal-ready [data-reveal="image"] { transform: scale(.96); }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- WordPress ---------- */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.entry-content { max-width: 52rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { color: var(--text); }
.entry-content ul, .entry-content ol { padding-inline-start: 1.4em; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { margin: 1.5em 0; padding-inline-start: 1.2em; border-inline-start: 3px solid var(--brass); color: var(--muted); }
.entry-content-narrow { max-width: 46rem; margin-inline: auto; }
.post-card .post-thumb { display: block; margin: -1px -1px 18px; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; aspect-ratio: 16 / 9; }
.post-card .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .post-date { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.pagination { margin-top: clamp(28px, 4vw, 44px); }
.pagination .nav-links { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
