/* ==========================================================================
   درع التحصيل — DERAA COLLECTION
   ألوان وعناصر التصميم مأخوذة حرفيًا من ملف بروفايل الشركة
   ========================================================================== */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-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: 'Cairo';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url('../fonts/cairo-latin.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: #a9782f;
  --gold-light: #d3a052;
  --gold-dark: #8c6224;
  --gold-glow: rgba(169, 120, 47, .18);

  --ink: #4a3326;
  --ink-soft: #6d5645;
  --ink-faint: #8a7565;

  --bg: #d8c7b2;
  --bg-soft: #e4d8c6;
  --card: #efe5d8;
  --cream: #f7f1e8;
  --dark: #2a1d14;
  --dark-soft: #3a2a1d;

  --line: rgba(74, 51, 38, .18);
  --line-gold: rgba(169, 120, 47, .35);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(74, 51, 38, .07);
  --shadow: 0 10px 30px rgba(74, 51, 38, .10);
  --shadow-lg: 0 22px 50px rgba(74, 51, 38, .16);

  --wrap: 1200px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  overflow-x: clip;
}
img, picture, svg { max-width: 100%; display: block; }
img { height: auto; }   /* وإلا فرضت سمة height في HTML ارتفاعًا ثابتًا وشوّهت النسبة */
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; text-wrap: balance; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
/* يُخفى رأسيًا لا أفقيًا — الإزاحة الأفقية في RTL تُنتج تمريرًا جانبيًا */
.skip-link {
  position: absolute; inset-inline-start: 20px; top: -120px; z-index: 200;
  background: var(--dark); color: var(--cream); padding: 12px 20px; border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

/* ---------- الشريط الذهبي العلوي (من البروفايل) ---------- */
.top-rule {
  height: 7px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light) 45%, var(--gold) 100%);
}

/* ---------- الهيدر ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(232, 221, 205, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: var(--header-h);
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 54px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-gold);
  border-radius: 10px; padding: 9px 11px; line-height: 0; color: var(--gold);
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 4px 0; transition: .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 15px; border-radius: 10px;
  font-weight: 600; font-size: 16px; color: var(--ink);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.main-nav a:hover { color: var(--gold-dark); background: rgba(169, 120, 47, .10); }
.main-nav a[aria-current="page"] { color: var(--gold-dark); }
.main-nav a[aria-current="page"]::after {
  content: ''; display: block; height: 2px; margin-top: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}
.header-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #fff; padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap;
  box-shadow: 0 6px 18px var(--gold-glow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(169, 120, 47, .32); }

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; transition: .22s var(--ease); text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold) 60%, var(--gold-light));
  color: #fff; box-shadow: 0 8px 22px var(--gold-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(169, 120, 47, .3); }
.btn-ghost { border-color: var(--gold); color: var(--gold-dark); background: transparent; }
.btn-ghost:hover { background: var(--gold); color: #fff; }
.btn-dark { background: var(--dark); color: var(--cream); }
.btn-dark:hover { background: var(--dark-soft); transform: translateY(-2px); }

/* ---------- عناوين الأقسام (نمط البروفايل) ---------- */
.section { padding: 84px 0; position: relative; }
.section-alt { background: var(--bg-soft); }
.section-cream { background: var(--cream); }
.section-dark { background: var(--dark); color: #e9dfd1; }

.section-head { margin-bottom: 44px; }
.section-head.center { text-align: center; }
.section-title {
  font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; color: var(--gold);
  letter-spacing: -.01em;
}
.section-dark .section-title { color: var(--gold-light); }
.section-title + .rule { margin-top: 14px; }
.rule {
  width: 190px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold), rgba(169, 120, 47, 0));
}
.center .rule { margin-inline: auto; background: linear-gradient(90deg, rgba(169,120,47,0), var(--gold), rgba(169,120,47,0)); }
.section-lead { margin-top: 18px; max-width: 780px; color: var(--ink-soft); font-size: 18px; }
.center .section-lead { margin-inline: auto; }

/* الشريط الذهبي الرأسي على حافة الصفحة — مأخوذ من تخطيط البروفايل */
.edge-rule { position: relative; }
.edge-rule::before {
  content: ''; position: absolute; inset-block: 60px; inset-inline-start: 0; width: 5px;
  background: linear-gradient(180deg, rgba(169,120,47,0), var(--gold) 20%, var(--gold) 80%, rgba(169,120,47,0));
  border-radius: 5px;
}

/* ---------- الواجهة (Hero) ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -10%, rgba(211, 160, 82, .30), transparent 62%),
    linear-gradient(160deg, var(--bg-soft) 0%, var(--bg) 58%, #cdb99f 100%);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 110px);
}
.hero::before,
.hero::after {
  content: ''; position: absolute; pointer-events: none;
  border: 1px solid rgba(169, 120, 47, .32);
}
.hero::before { inset-inline-end: -180px; top: -220px; width: 620px; height: 620px; transform: rotate(38deg); border-radius: 90px; }
.hero::after  { inset-inline-start: -260px; bottom: -300px; width: 640px; height: 640px; transform: rotate(24deg); border-radius: 110px; }

.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .5); border: 1px solid var(--line-gold);
  color: var(--gold-dark); font-weight: 700; font-size: 14px;
  padding: 8px 18px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(30px, 4.4vw, 52px); font-weight: 900; line-height: 1.3;
  color: var(--ink); letter-spacing: -.02em;
}
.hero h1 .gold { color: var(--gold); }
.hero p.lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-soft); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img { width: min(100%, 262px); filter: drop-shadow(0 26px 40px rgba(74, 51, 38, .22)); }
.hero-art::before {
  content: ''; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 160, 82, .34), transparent 68%);
}

.hero-stats {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 58px;
}
.stat {
  background: rgba(247, 241, 232, .78); border: 1px solid var(--line-gold);
  border-radius: var(--radius); padding: 20px 18px; text-align: center;
  backdrop-filter: blur(4px);
}
.stat b { display: block; font-size: clamp(22px, 2.6vw, 30px); font-weight: 900; color: var(--gold-dark); line-height: 1.3; }
.stat span { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- البطاقات ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-gold); }
.card h3 { color: var(--gold-dark); font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--ink-soft); margin: 0; font-size: 16.5px; }
.card-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(169, 120, 47, .16), rgba(211, 160, 82, .28));
  color: var(--gold-dark); margin-bottom: 16px;
}
.card-icon svg { width: 27px; height: 27px; }

/* بطاقة قيمة مرقّمة — نمط صفحة «قيمنا» */
.value-card { display: flex; gap: 18px; align-items: flex-start; }
.value-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 900; font-size: 19px;
  color: var(--gold-dark); background: rgba(169, 120, 47, .14);
  border: 1px solid var(--line-gold);
}

/* ---------- قسم بصورة ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; height: 100%; object-fit: cover; }
.split-media { position: relative; }
.split-media::after {
  content: ''; position: absolute; inset-inline-end: -14px; bottom: -14px;
  width: 62%; height: 58%; border: 2px solid var(--line-gold); border-radius: var(--radius-lg); z-index: -1;
}
.prose p { color: var(--ink-soft); font-size: 17.5px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- قائمة الخدمات ---------- */
.service-list { display: grid; gap: 16px; }
.service-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.service-item:hover { transform: translateX(-6px); border-color: var(--line-gold); }
.service-item .diamond { flex: 0 0 auto; color: var(--gold); margin-top: 6px; font-size: 13px; }
.service-item p { margin: 0; color: var(--ink-soft); }

/* ---------- خط مراحل التحصيل ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.steps::before {
  content: ''; position: absolute; top: 37px; inset-inline: 9%; height: 2px;
  background: linear-gradient(90deg, rgba(169,120,47,.15), var(--gold), rgba(169,120,47,.15));
}
.step { position: relative; text-align: center; }
.step-dot {
  width: 74px; height: 74px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 26px;
  color: var(--gold-dark); background: var(--card);
  border: 2px solid var(--gold); box-shadow: 0 6px 16px var(--gold-glow);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.step:hover .step-dot { transform: translateY(-5px); background: var(--gold); color: #fff; }
.step h3 { font-size: 17px; color: var(--gold-dark); margin-bottom: 8px; }
.step p { font-size: 15.5px; color: var(--ink-soft); margin: 0; }

/* مراحل مفصّلة */
.stage { border-inline-start: 3px solid var(--line-gold); padding: 4px 26px 30px; position: relative; }
.stage:last-child { padding-bottom: 0; }
.stage::before {
  content: ''; position: absolute; inset-inline-start: -9px; top: 8px;
  width: 15px; height: 15px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 4px rgba(169, 120, 47, .18);
}
.stage h3 { color: var(--gold-dark); font-size: 20px; margin-bottom: 6px; }
.stage p { color: var(--ink-soft); margin: 0; }

/* ---------- وسائل التواصل ---------- */
.channels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin-inline: auto; }
.channel {
  background: var(--card); border: 1px solid var(--gold); border-radius: var(--radius);
  padding: 26px 18px; text-align: center; color: var(--gold-dark); font-weight: 700;
  transition: transform .22s var(--ease), background .22s var(--ease), color .22s var(--ease);
}
.channel svg { width: 36px; height: 36px; margin: 0 auto 12px; }
.channel:hover { transform: translateY(-4px); background: var(--gold); color: #fff; }

/* ---------- الشركاء ---------- */
.partner {
  display: grid; grid-template-columns: 190px 1fr; gap: 26px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px 28px;
}
.partner-logo { display: grid; place-items: center; min-height: 78px; }
.partner-logo img { max-height: 62px; width: auto; }
.partner p { margin: 0; color: var(--ink-soft); }
.partner h3 { color: var(--gold-dark); font-size: 18px; margin-bottom: 6px; }

/* ---------- شريط الدعوة ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--dark) 0%, #3d2b1c 55%, var(--gold-dark) 190%);
  color: #f1e7d8; border-radius: var(--radius-lg); padding: 46px 42px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ''; position: absolute; inset-inline-end: -80px; top: -80px;
  width: 280px; height: 280px; border: 1px solid rgba(211, 160, 82, .3);
  border-radius: 60px; transform: rotate(35deg);
}
.cta-band h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 900; color: var(--gold-light); }
.cta-band p { margin: 8px 0 0; color: #d9cbb8; max-width: 620px; }
.cta-band .actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- بطاقات التواصل ---------- */
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; display: flex; gap: 16px; align-items: flex-start;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card .card-icon { margin: 0; width: 48px; height: 48px; }
.contact-card h3 { font-size: 16px; color: var(--gold-dark); margin-bottom: 4px; }
.contact-card p, .contact-card a { margin: 0; color: var(--ink-soft); font-size: 16px; word-break: break-word; }
.contact-card a:hover { color: var(--gold-dark); text-decoration: underline; }

/* ---------- النموذج ---------- */
.form-wrap {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 7px; color: var(--ink); }
.field .req { color: #b4442f; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 11px; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169, 120, 47, .16);
}
.field .error { display: none; color: #a5392a; font-size: 14px; margin-top: 6px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c2543f; }
.field.invalid .error { display: block; }
/* حقل مصيدة السبام: مخفي بصريًا دون إزاحة أفقية */
.hp-field {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- نموذج التوظيف ---------- */
/* نموذج طويل يقف بمفرده في الصفحة (لا داخل split)، فيُحصر عرضه ليبقى السطر مقروءًا */
.form-wrap-wide { max-width: 900px; margin-inline: auto; }
.form-section {
  font-size: 18px; font-weight: 800; color: var(--gold-dark);
  margin: 34px 0 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line-gold);
}
.form-section:first-of-type { margin-top: 4px; }
.field-note { font-size: 14px; color: var(--ink-faint); margin: 7px 0 0; }

/* حقل الملف: بلا JavaScript يظهر عنصر المتصفح الأصلي منسّقًا بهوية الموقع */
.field input[type="file"] { padding: 9px 12px; cursor: pointer; }
.field input[type="file"]::file-selector-button {
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
  margin-inline-end: 14px; padding: 9px 18px; border: 0; border-radius: 9px;
  color: #fff; background: var(--gold-dark); transition: background .18s var(--ease);
}
.field input[type="file"]::file-selector-button:hover { background: var(--gold); }

/* ومع JavaScript نستبدله بزر عربي (نص زر المتصفح يتبع لغة المتصفح لا لغة الصفحة) */
.file-btn, .file-name { display: none; }
.has-js .file-field {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--cream); border: 1.5px solid var(--line);
  border-radius: 11px; padding: 9px 12px;
}
.has-js .file-field input[type="file"] {
  position: absolute; width: 1px; height: 1px; opacity: 0; padding: 0; border: 0;
}
.has-js .file-btn {
  display: inline-block; font-weight: 700; font-size: 15px; cursor: pointer;
  padding: 10px 20px; border-radius: 9px; margin: 0; flex: 0 0 auto;
  color: #fff; background: var(--gold-dark); transition: background .18s var(--ease);
}
.has-js .file-btn:hover { background: var(--gold); }
.has-js .file-name { display: inline; font-size: 15px; color: var(--ink-faint); word-break: break-all; }
.has-js .file-name.has-file { color: var(--ink); font-weight: 600; }
/* حلقة التركيز تنتقل إلى الغلاف لأن الحقل نفسه مخفي بصريًا */
.has-js .file-field:focus-within {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(169, 120, 47, .16);
}
.field.invalid .file-field { border-color: #c2543f; }

/* مربع الموافقة */
.field-check label { display: flex; gap: 11px; align-items: flex-start; font-weight: 600; }
.field-check input[type="checkbox"] {
  width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; padding: 0;
  border-radius: 5px; accent-color: var(--gold-dark);
}

/* الحقول الشرطية: يخفيها JS حسب إجابة الحقل الحاكم — وبدونه تبقى ظاهرة للجميع */
.has-js .field-hidden { display: none; }

.alert { padding: 16px 20px; border-radius: 12px; font-weight: 600; margin-bottom: 24px; border: 1px solid; }
.alert-ok { background: #e7efe3; border-color: #86a877; color: #33512a; }
.alert-err { background: #f6e4e0; border-color: #c88f83; color: #8c3626; }

/* ---------- الفوتر ---------- */
.site-footer { background: var(--dark); color: #cdbda9; padding: 62px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr; gap: 42px; }
.footer-brand img { height: 84px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: #b6a390; font-size: 16px; max-width: 380px; }
.site-footer h4 { color: var(--gold-light); font-size: 17px; margin-bottom: 16px; font-weight: 700; }
.site-footer a { color: #cdbda9; transition: color .18s var(--ease); }
.site-footer a:hover { color: var(--gold-light); }
.footer-links li { margin-bottom: 10px; }
.footer-contact li { display: flex; gap: 11px; margin-bottom: 13px; align-items: flex-start; font-size: 15.5px; }
.footer-contact svg { width: 19px; height: 19px; color: var(--gold-light); flex: 0 0 auto; margin-top: 5px; }
.footer-bottom {
  margin-top: 46px; border-top: 1px solid rgba(211, 160, 82, .22);
  padding: 20px 0; text-align: center; font-size: 14.5px; color: #9d8b78;
}

/* ---------- زر واتساب العائم ---------- */
.wa-float {
  position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .22s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- ظهور تدريجي عند التمرير ----------
   الإخفاء مشروط بوجود JavaScript، حتى لا يختفي المحتوى إن تعطّل السكربت. */
.has-js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.has-js .reveal.visible { opacity: 1; transform: none; }

/* ---------- صفحة 404 ---------- */
.err-page { text-align: center; padding: 100px 0; }
.err-page .code { font-size: clamp(70px, 13vw, 140px); font-weight: 900; color: var(--gold); line-height: 1; }

/* ==========================================================================
   الاستجابة
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .hero-art { order: -1; }
  .hero-art img { width: min(62%, 250px); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split-media::after { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* القائمة صارت ستة عناصر، فتضيق على الشعار ورقم الهاتف قبل أن تتحول إلى قائمة الجوال
   عند 860px — نضغط حشو الروابط في هذا النطاق بدل أن يلتف النص داخلها. */
@media (max-width: 1100px) and (min-width: 861px) {
  .main-nav ul { gap: 2px; }
  .main-nav a { padding: 10px 9px; font-size: 15px; }
  .header-cta { padding-inline: 12px; }
}
/* آخر شريحة قبل قائمة الجوال: لا تتسع لرقم الهاتف أيضًا — والرقم يبقى في التذييل وصفحة التواصل */
@media (max-width: 920px) and (min-width: 861px) {
  .header-cta { display: none; }
}

@media (max-width: 860px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; inset-inline: 0; top: 100%;
    background: var(--bg-soft); border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); display: none; padding: 12px 22px 20px;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 12px; border-radius: 10px; font-size: 17px; }
  .main-nav a[aria-current="page"] { background: rgba(169, 120, 47, .12); }
  .main-nav a[aria-current="page"]::after { display: none; }
  .header-cta { display: none; }
  .brand img { height: 44px; }
  .site-header { position: relative; }
  html { scroll-padding-top: 20px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 58px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .partner { grid-template-columns: 1fr; text-align: center; gap: 16px; }
  .partner-logo img { margin-inline: auto; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .cta-band { padding: 32px 24px; flex-direction: column; align-items: flex-start; }
  .form-wrap { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .wa-float { width: 50px; height: 50px; inset-inline-start: 16px; bottom: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .has-js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .wa-float, .cta-band, .site-footer { display: none; }
  body { background: #fff; color: #000; }
}
