/* =========================================================
   الألوان والخطوط
   ========================================================= */
:root {
  --navy: #222830;
  --navy-2: #2a313a;
  --navy-3: #1a1f26;
  --gold: #a67112;
  --gold-2: #c4943e;
  --gold-soft: rgba(166, 113, 18, .35);
  --white: #ffffff;
  --soft: #f8f8f8;
  --line: #e4e4e4;
  --text: #333333;
  --muted: #6b6b6b;
  --on-navy: #d9d9d9;
  --head: "El Messiri", "Tajawal", serif;
  --body: "Tajawal", system-ui, sans-serif;
  --leaf: 20px 0;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; background: var(--white); }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.85; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.4; margin: 0 0 .5em; color: var(--navy); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-size: .9em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(900px, 100% - 32px); margin-inline: auto; }
.skip { position: fixed; inset-inline-start: 8px; top: -60px; background: var(--gold); color: #fff; padding: 8px 14px; z-index: 300; transition: top .2s; }
.skip:focus { top: 8px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
svg .solid, .solid { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* =========================================================
   الأزرار
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 500 1.05rem/1.4 var(--head); text-decoration: none; cursor: pointer;
  padding: .7em 2.2em; border-radius: var(--leaf); border: 2px solid transparent;
  transition: background .35s, color .35s, border-color .35s, transform .35s var(--ease), box-shadow .35s;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8d5f0f; transform: translateY(-2px); box-shadow: 0 10px 20px -8px rgba(166,113,18,.6); }
.btn-line { border-color: var(--gold); color: var(--gold); background: transparent; }
.btn-line:hover { background: var(--gold); color: #fff; }
.btn-line.on-navy { color: var(--gold-2); border-color: var(--gold); }
.btn-line.on-navy:hover { color: #fff; }
.btn-block { width: 100%; }

/* عنوان الكبسولة الذهبية (مثل «خدماتنا») */
.pill {
  display: inline-block; font: 500 1.35rem/1.5 var(--head); color: #fff;
  padding: .35em 2.4em; border-radius: 999px;
  background: linear-gradient(180deg, #d1a654, var(--gold) 60%, #8a5c0d);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--gold), 0 10px 22px -10px rgba(0,0,0,.45);
}
.pill-wrap { text-align: center; margin-bottom: 48px; }

/* عنوان القسم الذهبي */
.sec-title { text-align: center; margin-bottom: 44px; }
.sec-title h2 { color: var(--gold); font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-bottom: .2em; }
.sec-title p { color: var(--muted); font-size: .95rem; margin: 0; }
.on-navy .sec-title p, .sec-navy .sec-title p { color: var(--on-navy); }

/* =========================================================
   الترويسة
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy); box-shadow: 0 4px 18px -8px rgba(0,0,0,.5); }
.hdr { position: relative; width: min(1320px, 100% - 32px); margin-inline: auto; height: 96px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.hdr-start, .hdr-end { display: flex; align-items: center; gap: 26px; }
.hdr-end { justify-content: flex-end; }
.hdr-icons { display: flex; align-items: center; gap: 12px; }
.hdr-icons a { color: #fff; display: grid; place-items: center; transition: color .3s, transform .3s; }
.hdr-icons a:hover { color: var(--gold-2); transform: translateY(-2px); }
.hdr-icons svg { width: 17px; height: 17px; }
.hdr-logo { display: block; }
.hdr-logo img { height: 74px; width: auto; transition: transform .6s var(--ease); }
.hdr-logo:hover img { transform: scale(1.05); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a, .nav-group-btn { color: #fff; text-decoration: none; font: 500 1rem/1.6 var(--head); transition: color .3s; background: none; border: 0; padding: 0; cursor: pointer; }
.nav a:hover, .nav a[aria-current="page"], .nav-group-btn:hover, .nav-group.current > .nav-group-btn { color: var(--gold-2); }
.nav-group { position: relative; }
.nav-group-btn { display: inline-flex; align-items: center; gap: 4px; }
.nav-group-btn svg { width: 14px; height: 14px; transition: transform .3s; }
.submenu {
  position: absolute; top: calc(100% + 18px); inset-inline-start: -14px; min-width: 190px; display: grid; padding: 8px;
  background: var(--navy); border-top: 3px solid var(--gold); border-radius: 0 0 12px 12px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s;
}
.submenu::before { content: ""; position: absolute; inset-inline: 0; top: -21px; height: 21px; }
.submenu a { padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.submenu a:hover, .submenu a[aria-current="page"] { background: rgba(255,255,255,.06); }
.nav-group:hover .submenu, .nav-group:focus-within .submenu, .nav-group.open .submenu { opacity: 1; visibility: visible; transform: none; }
.nav-group:hover .nav-group-btn svg, .nav-group.open .nav-group-btn svg { transform: rotate(180deg); }
.hdr-cta { margin-top: 26px; padding: .55em 1.5em; font-size: 1.05rem; box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.lang { color: #cfcfcf; font: 500 .85rem var(--body); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px 12px; transition: border-color .3s, color .3s; }
.lang:hover { border-color: var(--gold); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* القائمة الجانبية للجوال */
@media (min-width: 1181px) { .drawer, .nav-backdrop { display: none; } }
.drawer {
  position: fixed; top: 0; bottom: 0; right: 0; z-index: 120; width: min(320px, 86vw);
  background: var(--navy); padding: 90px 26px 26px; display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s;
  box-shadow: -20px 0 40px -10px rgba(0,0,0,.5);
}
[dir="ltr"] .drawer { right: auto; left: 0; transform: translateX(-100%); }
.drawer.open { transform: none; visibility: visible; }
.drawer a { color: #fff; text-decoration: none; font: 500 1.05rem var(--head); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer a[aria-current="page"] { color: var(--gold-2); }
.drawer .sub { padding-inline-start: 16px; font-size: .95rem; color: #ccc; }
.drawer .btn { margin-top: 20px; border-bottom: 0; }
.nav-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .4s; }
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* =========================================================
   المقدمة
   ========================================================= */
.hero {
  position: relative; min-height: calc(100vh - 96px); min-height: calc(100svh - 96px);
  display: grid; place-items: center; text-align: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 40%, #3a414b 0%, #262c34 45%, #171b21 100%);
  padding: 80px 0 170px;
}
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s; }
.hero-photo.ready { opacity: .55; }
.hero-scales { position: absolute; left: 50%; top: 48%; height: 112%; transform: translate(-50%, -50%); color: #8c8f94; stroke-width: 2.4; opacity: .28; }
.hero-scales .bowl { fill: rgba(140,143,148,.18); }
.hero-scales .beam { transform-box: view-box; transform-origin: 300px 122px; animation: beam 7s ease-in-out infinite; }
.hero-scales .pan-l { animation: panL 7s ease-in-out infinite; }
.hero-scales .pan-r { animation: panR 7s ease-in-out infinite; }
@keyframes beam { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
@keyframes panL { 0%, 100% { transform: translateY(7px); } 50% { transform: translateY(-7px); } }
@keyframes panR { 0%, 100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,27,33,.35), rgba(23,27,33,.15) 40%, rgba(23,27,33,.55)); }
.hero-inner { position: relative; z-index: 1; }
.hero-eyebrow { color: var(--gold); font: 500 clamp(1rem, 2.2vw, 1.5rem) var(--body); margin-bottom: 10px; }
.hero-name { margin: 0 auto; }
.hero-name img { width: min(560px, 86vw); height: auto; margin-inline: auto; filter: drop-shadow(0 4px 14px rgba(0,0,0,.45)); }

/* بطاقة طلب الخدمة فوق المقدمة */
.request-strip { position: relative; z-index: 2; margin-top: -140px; padding-bottom: 70px; }
.request-card {
  background: #fff; border-radius: 28px; border-top: 5px solid var(--gold);
  box-shadow: 0 24px 50px -20px rgba(0,0,0,.35); padding: 34px 44px 38px; text-align: center;
}
.request-card h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0; }
.request-card > p { color: var(--muted); font-size: .92rem; margin-bottom: 26px; }
.inline-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.request-card .btn { min-width: 260px; }

/* الحقول */
.field { margin-bottom: 16px; text-align: start; }
.field label { display: block; font: 500 .95rem var(--head); margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea, .pill-input {
  width: 100%; font: 400 1rem var(--head); color: var(--text); background: #fff;
  border: 1px solid #dddddd; border-radius: 30px 0; padding: .65em 1.1em; transition: border-color .3s, box-shadow .3s;
}
.field textarea { border-radius: 18px 0; }
.field input:focus, .field select:focus, .field textarea:focus, .pill-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field input[dir="ltr"] { text-align: right; }
[dir="ltr"] .field input[dir="ltr"] { text-align: left; }
.field [aria-invalid="true"], .pill-input[aria-invalid="true"] { border-color: #b03a2e; }
.inline-fields .field { margin: 0; }
.inline-fields .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); margin: 4px 0 18px; text-align: start; }
.consent input { margin-top: 6px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.consent a { color: var(--gold); }
.form-error { color: #b03a2e; background: rgba(176,58,46,.08); padding: 10px 14px; border-radius: 8px; font-size: .92rem; text-align: start; }
.form-note { margin: 12px 0 0; font-size: .85rem; color: var(--muted); }

/* =========================================================
   الأقسام
   ========================================================= */
.section { padding: 90px 0; position: relative; }
.sec-soft { background: var(--soft); }
.sec-navy {
  background-color: var(--navy); color: var(--on-navy);
  background-image:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 22px),
    radial-gradient(ellipse at 80% 0%, rgba(166,113,18,.12), transparent 55%);
}
.sec-navy h2, .sec-navy h3 { color: #fff; }
.slant-top { clip-path: polygon(0 60px, 100% 0, 100% 100%, 0 100%); padding-top: 140px; margin-top: -60px; }

/* نبذة الرئيسية */
.about-home { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-home .text p { font-size: 1.05rem; color: #555; }
.about-home .text h2 { font-size: 2rem; }
.stack { position: relative; width: min(420px, 100%); aspect-ratio: 1 / 1; margin-inline: auto; }
.stack .layer { position: absolute; inset: 0; border-radius: 26px; }
.stack .l1 { background: var(--gold); transform: translate(26px, -26px); }
.stack .l2 { background: var(--navy-2); transform: translate(13px, -13px); }
.stack .l3 { background: radial-gradient(ellipse at 50% 30%, #3a414b, var(--navy) 70%); display: grid; place-items: center; padding: 50px; box-shadow: var(--shadow); }
.stack .l3 img { width: 100%; height: auto; }
.stack:hover .l1 { transform: translate(32px, -32px); }
.stack .layer { transition: transform .6s var(--ease); }
[dir="ltr"] .stack .l1 { transform: translate(-26px, -26px); }
[dir="ltr"] .stack .l2 { transform: translate(-13px, -13px); }

/* التراخيص */
.tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; }
.tile {
  width: 230px; min-height: 210px; background: #fff; border-radius: 46px; color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 26px 18px;
  box-shadow: 0 16px 30px -14px rgba(0,0,0,.6); transition: transform .5s var(--ease);
}
.tile:hover { transform: translateY(-8px) rotate(-1.5deg); }
.tile svg { width: 52px; height: 52px; color: var(--gold); }
.tile strong { font: 600 1.05rem/1.4 var(--head); }
.tile small { color: var(--muted); font-size: .82rem; }

/* بطاقات الخدمات */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.svc {
  position: relative; overflow: hidden; color: var(--on-navy); text-align: center;
  background-color: var(--navy);
  background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.07), transparent 60%), repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 14px);
  padding: 40px 30px 34px; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 18px 30px -18px rgba(0,0,0,.6); transition: transform .5s var(--ease), box-shadow .5s;
}
.svc::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform .5s var(--ease); }
.svc:hover { transform: translateY(-8px); box-shadow: 0 26px 40px -18px rgba(0,0,0,.7); }
.svc:hover::after { transform: scaleX(1); }
.svc .ico { width: 54px; height: 54px; color: var(--gold-2); margin-bottom: 14px; transition: transform .5s var(--ease); }
.svc:hover .ico { transform: scale(1.12) rotate(-6deg); }
.svc h3 { color: #fff; font-size: 1.45rem; margin-bottom: .4em; }
.svc p { font-size: .95rem; line-height: 1.9; margin-bottom: 24px; }
.svc ul { list-style: none; padding: 0; margin: -8px 0 22px; text-align: start; width: 100%; font-size: .93rem; }
.svc li { position: relative; padding-inline-start: 18px; margin-bottom: 4px; }
.svc li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.svc .btn { margin-top: auto; padding: .45em 2.2em; font-size: .95rem; }
.more-link { display: block; text-align: center; margin-top: 40px; color: var(--gold); font: 600 1.1rem var(--head); text-decoration: none; }
.more-link:hover { text-decoration: underline; }
.group + .group { margin-top: 70px; }

/* القيم */
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px 70px; }
.value { text-align: center; width: 150px; }
.value .ring { width: 118px; height: 118px; border-radius: 50%; border: 2px solid var(--gold); display: grid; place-items: center; margin: 0 auto 14px; color: #fff; transition: background .4s, transform .5s var(--ease); }
.value .ring svg { width: 48px; height: 48px; }
.value:hover .ring { background: var(--gold); transform: translateY(-6px); }
.value strong { color: #fff; font: 500 1.1rem var(--head); }
.value p { font-size: .85rem; margin: 6px 0 0; color: var(--on-navy); }

/* الأسئلة الشائعة */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--navy); color: #fff; border-radius: 14px; overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px; font: 500 1.02rem var(--head); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .tg { flex: none; width: 26px; height: 26px; border-radius: 5px; background: var(--gold); display: grid; place-items: center; transition: transform .35s; }
.faq summary .tg svg { width: 16px; height: 16px; color: #fff; stroke-width: 2.4; }
.faq details[open] summary .tg { transform: rotate(180deg); }
.faq-body { padding: 0 22px 18px; color: var(--on-navy); font-size: .97rem; }
.faq-body p { margin: 0; }
.faq-body ul { margin: 0; padding-inline-start: 1.2em; }
.faq-body a { color: var(--gold-2); }
.faq details[open] .faq-body { animation: open .45s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-6px); } }

/* التواصل */
.contact-split { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: start; }
.contact-card {
  position: relative; overflow: hidden; border-radius: 22px; padding: 40px 38px 36px; color: #fff;
  background: radial-gradient(ellipse at 70% 20%, #3c434d, var(--navy) 60%, var(--navy-3));
  box-shadow: 0 26px 50px -20px rgba(0,0,0,.5);
}
.contact-card .bg-scales { position: absolute; inset-inline-start: -10%; bottom: -12%; height: 90%; color: #7d8187; opacity: .18; stroke-width: 2.4; pointer-events: none; }
.contact-card > * { position: relative; }
.contact-card .emblem { width: 70px; margin: 0 auto 18px; }
.contact-card .field label { color: #fff; }
.contact-card .field input, .contact-card .field select, .contact-card .field textarea { border-radius: 3px; border-color: transparent; }
.contact-card .consent { color: #cfcfcf; }
.contact-card .btn { margin-inline: auto; display: flex; width: min(240px, 100%); }
.contact-card .form-note { color: #bdbdbd; text-align: center; }
.contact-intro { padding-top: 30px; }
.kicker-bar { display: inline-block; color: var(--navy); font: 600 1.25rem var(--head); padding-bottom: 6px; margin-bottom: 14px; border-bottom: 8px solid var(--gold); }
.contact-intro h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.contact-intro p { color: #555; font-size: 1.05rem; }
.info-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: center; }
.info-list .ic { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: grid; place-items: center; flex: none; }
.info-list .ic svg { width: 19px; height: 19px; }
.info-list strong { display: block; font: 600 .95rem var(--head); color: var(--navy); }
.info-list a, .info-list span { color: #555; text-decoration: none; font-size: .95rem; }
.info-list a:hover { color: var(--gold); }

/* =========================================================
   الصفحات الداخلية
   ========================================================= */
.page-hero {
  position: relative; text-align: center; padding: 50px 0 120px; color: #fff; overflow: hidden;
  background-color: var(--navy-3);
  background-image:
    repeating-linear-gradient(100deg, rgba(255,255,255,.035) 0 1px, transparent 1px 9px),
    radial-gradient(ellipse at 20% 30%, rgba(166,113,18,.22), transparent 45%),
    radial-gradient(ellipse at 85% 60%, rgba(255,255,255,.08), transparent 45%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 0 100%);
}
.crumbs { display: flex; justify-content: center; gap: 10px; font: 500 .95rem var(--head); margin-bottom: 14px; color: #ddd; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs span:last-child { color: var(--gold-2); }
.tag-title {
  display: inline-block; font: 600 clamp(1.6rem, 3.4vw, 2.3rem)/1.3 var(--head); color: #fff; margin: 0;
  padding: .25em 1.8em; background: linear-gradient(180deg, #c99a45, var(--gold) 60%, #8a5c0d);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.page-lead { max-width: 680px; margin: 18px auto 0; color: #d6d6d6; }
.intro-text { max-width: 980px; margin: 0 auto 50px; text-align: center; font-size: 1.08rem; color: #555; }

/* بطاقات بيضاء (هدفنا، طموحنا...) */
.white-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.white-card { background: #fff; border-radius: 6px; padding: 36px 30px 30px; text-align: center; box-shadow: 0 12px 34px -14px rgba(0,0,0,.25); transition: transform .5s var(--ease), box-shadow .5s; border-bottom: 3px solid transparent; }
.white-card:hover { transform: translateY(-6px); border-bottom-color: var(--gold); }
.white-card svg { width: 58px; height: 58px; color: var(--gold); margin: 0 auto 14px; }
.white-card h3 { font-size: 1.4rem; }
.white-card p { color: #555; margin: 0; font-size: .97rem; }

/* الملف الشخصي في «من نحن» */
.profile { display: grid; grid-template-columns: 360px 1fr; gap: 60px; align-items: start; }
.profile-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; background: radial-gradient(ellipse at 50% 30%, #3a414b, var(--navy) 70%); display: grid; place-items: center; box-shadow: 0 0 0 10px #fff, 0 0 0 12px var(--gold), var(--shadow); }
.profile-photo img.photo { width: 100%; height: 100%; object-fit: cover; }
.profile-photo .ph { width: 46%; }
.profile .sub { color: var(--gold); font: 600 1.05rem var(--head); margin-top: -.3em; }
.profile p { color: #555; }
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.creds li { background: var(--soft); border-inline-start: 3px solid var(--gold); padding: 12px 16px; border-radius: 4px; line-height: 1.5; }
.creds small { display: block; color: var(--muted); font-size: .82rem; }
.creds b { font: 600 .98rem var(--head); color: var(--navy); }

/* مربعات الروابط */
.link-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 26px; }
.link-tile {
  min-height: 140px; border-radius: 22px; border: 2px solid var(--gold); background: var(--navy); color: #fff; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 18px; gap: 4px;
  box-shadow: 0 14px 26px -14px rgba(0,0,0,.6); transition: background .35s, transform .45s var(--ease);
}
.link-tile strong { font: 600 1.08rem/1.5 var(--head); }
.link-tile small { color: #bdbdbd; font-size: .82rem; line-height: 1.5; transition: color .35s; }
.link-tile:hover { background: var(--gold); transform: translateY(-6px); }
.link-tile:hover small { color: #fff; }
.group-title { text-align: center; margin-bottom: 30px; }

/* صفحات الطلبات */
.request-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 34px; align-items: start; }
.info-card { background: #fff; border-radius: 22px; padding: 30px; box-shadow: 0 12px 34px -14px rgba(0,0,0,.22); border-top: 4px solid var(--gold); }
.info-card + .info-card { margin-top: 24px; }
.info-card h3 { font-size: 1.3rem; }
.info-card p { color: #555; font-size: .97rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: var(--navy); color: #fff; padding: 4px 14px; border-radius: 14px 0; font: 500 .88rem var(--head); }
.notice { display: flex; gap: 12px; align-items: flex-start; background: #fbf6ec; border-inline-start: 4px solid var(--gold); border-radius: 6px; padding: 14px 18px; font-size: .94rem; color: #555; }
.notice svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 3px; }
.notice p { margin: 0; }
.notice a { color: var(--gold); }

/* صفحات النصوص */
.doc { padding: 70px 0 90px; }
.doc h1 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); color: var(--gold); }
.doc h2 { font-size: 1.3rem; margin-top: 1.8em; }
.doc ul { padding-inline-start: 1.3em; }
.doc a { color: var(--gold); }
.doc .updated { color: var(--muted); }

/* =========================================================
   التذييل
   ========================================================= */
.footer-map {
  height: 110px; background-color: #e9e9e9;
  background-image:
    linear-gradient(28deg, transparent 47%, #fff 47% 49%, transparent 49%),
    linear-gradient(-62deg, transparent 47%, #fff 47% 48.5%, transparent 48.5%),
    linear-gradient(8deg, transparent 47%, #fafafa 47% 48%, transparent 48%);
  background-size: 260px 110px, 180px 140px, 340px 90px;
}
.site-footer { background: var(--navy); color: var(--on-navy); }
.footer-main { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 40px; text-align: center; align-items: start; }
.footer-col .f-ic { width: 46px; height: 46px; color: var(--gold); margin: 0 auto 10px; }
.footer-col h4 { color: var(--gold-2); font-size: 1.35rem; margin-bottom: .5em; }
.footer-col p, .footer-col a { color: var(--on-navy); text-decoration: none; font-size: .95rem; margin: 0 0 4px; display: block; }
.footer-col a:hover { color: var(--gold-2); }
.footer-col .big { font-size: 1.2rem; color: #fff; direction: ltr; }
.footer-logo img { width: 230px; margin-inline: auto; }
.newsletter { display: grid; gap: 12px; justify-items: center; }
.newsletter label { color: #fff; font: 500 1rem var(--head); }
.newsletter input { width: 100%; max-width: 260px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); color: #fff; padding: .6em .9em; font: 400 .95rem var(--body); }
.newsletter input:focus { outline: none; border-color: var(--gold); }
.newsletter .btn { padding: .45em 2em; }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 14px; }
.socials a { color: #fff; display: grid; place-items: center; transition: color .3s, transform .3s; }
.socials a:hover { color: var(--gold-2); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0 22px; text-align: center; font-size: .88rem; color: #c8c8c8; }
.footer-bottom a { color: #c8c8c8; text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-2); }
.footer-bottom .legal { margin-inline-start: 10px; }

/* زر واتساب العائم */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -6px rgba(0,0,0,.4);
  animation: pulse 2.6s ease-in-out infinite; transition: transform .3s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 34px; height: 34px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5), 0 10px 24px -6px rgba(0,0,0,.4); } 50% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 10px 24px -6px rgba(0,0,0,.4); } }

/* =========================================================
   حركة الظهور عند التمرير (انزلاق، ارتداد، تكبير، قلب، تلاشي)
   ========================================================= */
.js [data-anim] { opacity: 0; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-anim="slide"] { transform: translateX(60px); }
.js [data-anim="slide-alt"] { transform: translateX(-60px); }
[dir="ltr"].js [data-anim="slide"] { transform: translateX(-60px); }
[dir="ltr"].js [data-anim="slide-alt"] { transform: translateX(60px); }
.js [data-anim="up"] { transform: translateY(50px); }
.js [data-anim="zoom"] { transform: scale(.82); }
.js [data-anim="flip"] { transform: perspective(900px) rotateX(-70deg); transform-origin: top center; }
.js [data-anim="fade"] { transform: none; }
.js [data-anim].in { opacity: 1; transform: none; }
.js [data-anim="bounce"] { transform: scale(.4); }
.js [data-anim="bounce"].in { animation: bounceIn .9s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes bounceIn { 0% { opacity: 0; transform: scale(.4); } 55% { opacity: 1; transform: scale(1.08); } 75% { transform: scale(.96); } 100% { opacity: 1; transform: scale(1); } }
.hero-in { opacity: 0; animation: heroIn 1.2s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }

/* =========================================================
   الشاشات الأصغر
   ========================================================= */
@media (max-width: 1180px) {
  .hdr { grid-template-columns: auto 1fr auto; height: 80px; }
  .hdr-start .nav, .hdr-end .nav, .hdr-icons, .lang.desk { display: none; }
  .hdr-logo { grid-column: 2; justify-self: center; }
  .hdr-logo img { height: 60px; }
  .hdr-start { grid-column: 1; grid-row: 1; }
  .hdr-end { grid-column: 3; grid-row: 1; }
  .nav-toggle { display: block; }
  .hdr-cta { margin-top: 0; padding: .45em 1.1em; font-size: .92rem; }
  .hero { min-height: calc(100svh - 80px); }
  html { scroll-padding-top: 86px; }
}
@media (max-width: 960px) {
  .svc-grid, .white-cards { grid-template-columns: repeat(2, 1fr); }
  .about-home, .contact-split, .request-layout, .profile { grid-template-columns: 1fr; gap: 44px; }
  .inline-fields { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .profile-photo { max-width: 340px; margin-inline: auto; width: 100%; }
  .contact-intro { padding-top: 0; order: -1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .svc-grid, .white-cards, .inline-fields, .field-row, .creds, .footer-main { grid-template-columns: 1fr; }
  .request-card { padding: 26px 20px 28px; border-radius: 22px; }
  .request-card .btn { min-width: 0; width: 100%; }
  .request-strip { margin-top: -110px; }
  .hero { padding: 60px 0 140px; }
  .hdr-cta { display: none; }
  .tile { width: 100%; max-width: 300px; }
  .values { gap: 26px 30px; }
  .value { width: 130px; }
  .value .ring { width: 96px; height: 96px; }
  .contact-card { padding: 28px 20px; }
  .page-hero { padding: 40px 0 90px; }
  .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-in, .js [data-anim] { opacity: 1 !important; transform: none !important; }
}
/* منع التمرير الجانبي أثناء حركات الانزلاق */
main, .site-footer { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 640px) {
  .hero-scales { height: 78%; }
  .stack { width: calc(100% - 34px); }
}

/* =========================================================
   الميزان النحاسي المتحرك وخلفية الفيديو في المقدمة
   ========================================================= */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s; filter: grayscale(.25) brightness(.75); }
.hero-video.ready { opacity: 1; }
.hero-video.ready ~ .hero-stage, .hero-photo.ready ~ .hero-stage { opacity: 0; }
.hero-stage { position: absolute; inset: 0; transition: opacity 1.2s; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
.pro-scales {
  position: absolute; left: 50%; top: 52%; height: 118%; max-height: 1000px; transform: translate(-50%, -50%);
  opacity: .5; filter: saturate(.55) brightness(.85) drop-shadow(0 30px 40px rgba(0,0,0,.6));
}
.pro-scales .beam { transform-box: view-box; transform-origin: 300px 113px; animation: proBeam 6.5s cubic-bezier(.45,.05,.55,.95) infinite; }
.pro-scales .pan-l { transform-box: view-box; transform-origin: 110px 129px; animation: proPan 6.5s cubic-bezier(.45,.05,.55,.95) infinite; animation-delay: -.35s; }
.pro-scales .pan-r { transform-box: view-box; transform-origin: 490px 129px; animation: proPan 6.5s cubic-bezier(.45,.05,.55,.95) infinite; animation-delay: -.35s; }
@keyframes proBeam { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes proPan { 0%, 100% { transform: rotate(5deg); } 50% { transform: rotate(-5deg); } }
/* أضواء ضبابية في الخلفية */
.bokeh { position: absolute; inset: 0; filter: blur(2px); }
.bokeh i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,236,190,.22), rgba(255,236,190,0) 70%); animation: floaty 14s ease-in-out infinite alternate; }
.bokeh i:nth-child(1) { width: 220px; height: 220px; top: 8%; right: 10%; }
.bokeh i:nth-child(2) { width: 140px; height: 140px; top: 62%; right: 22%; animation-delay: -3s; }
.bokeh i:nth-child(3) { width: 300px; height: 300px; top: 30%; left: 6%; animation-delay: -6s; opacity: .7; }
.bokeh i:nth-child(4) { width: 90px; height: 90px; top: 18%; left: 30%; animation-delay: -2s; }
.bokeh i:nth-child(5) { width: 180px; height: 180px; bottom: 6%; left: 18%; animation-delay: -8s; }
.bokeh i:nth-child(6) { width: 110px; height: 110px; top: 45%; right: 40%; animation-delay: -5s; opacity: .5; }
.bokeh i:nth-child(7) { width: 260px; height: 260px; bottom: -6%; right: 2%; animation-delay: -10s; opacity: .6; }
@keyframes floaty { from { transform: translate(0, 0); } to { transform: translate(-30px, 24px); } }
.hero::after { background: radial-gradient(ellipse at center, rgba(23,27,33,.25) 0%, rgba(23,27,33,.55) 60%, rgba(16,19,24,.9) 100%); }
@media (max-width: 640px) { .pro-scales { height: 82%; top: 46%; } }
/* تعتيم الفيديو ليبرز الاسم الذهبي (مثل sq.sa) */
.hero-video { filter: grayscale(.6) brightness(.42) contrast(1.08); }
.hero:has(.hero-video.ready)::after { background: radial-gradient(ellipse at center, rgba(20,24,30,.35) 0%, rgba(20,24,30,.55) 55%, rgba(14,17,22,.85) 100%); }
.hero-eyebrow, .hero-name img { text-shadow: 0 2px 12px rgba(0,0,0,.6); }

/* سطر «محامون ومستشارون قانونيون» تحت الاسم */
.hero-tagline {
  display: flex; align-items: center; justify-content: center; gap: 18px; margin: 18px auto 0;
  font: 500 clamp(1.05rem, 2.3vw, 1.65rem)/1.5 var(--head); color: #efe4c9; letter-spacing: .5px;
  text-shadow: 0 2px 12px rgba(0,0,0,.65);
}
.hero-tagline::before, .hero-tagline::after { content: ""; width: clamp(34px, 7vw, 90px); height: 1.5px; background: linear-gradient(to var(--dir, left), transparent, var(--gold-2)); }
.hero-tagline::after { --dir: right; }
[dir="ltr"] .hero-tagline { letter-spacing: 1.5px; }
.hero-name img { width: min(620px, 88vw); }

/* الشعار في منتصف الترويسة تماماً في كل المقاسات */
.hdr-logo { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 2; line-height: 0; }
.hdr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.hdr-start { grid-column: 1; grid-row: 1; padding-inline-end: 60px; }
.hdr-end { grid-column: 2; grid-row: 1; padding-inline-start: 60px; }
@media (max-width: 1180px) {
  .hdr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hdr-start { grid-column: 1; }
  .hdr-end { grid-column: 2; }
}
.hdr-logo, .hdr .hdr-logo { grid-column: 1 / -1; grid-row: 1; justify-self: auto; }
.nav a, .nav-group-btn, .hdr-cta, .lang { white-space: nowrap; }
@media (max-width: 1320px) {
  .hdr { height: 80px; }
  .hdr-start .nav, .hdr-end .nav, .hdr-icons, .lang.desk { display: none; }
  .nav-toggle { display: block; }
  .hdr-logo img { height: 60px; }
  .hdr-cta { margin-top: 0; padding: .45em 1.1em; font-size: .92rem; }
  .drawer { display: flex; }
  .nav-backdrop { display: block; }
  .hero { min-height: calc(100svh - 80px); }
}

/* سطر «محامون ومستشارون قانونيون» بخط نسخ ذهبي يناسب خط الاسم، بلا خطوط جانبية */
.hero-tagline {
  display: block; margin: 14px auto 0; gap: 0;
  font: 700 clamp(1.25rem, 2.7vw, 2rem)/1.5 "Amiri", var(--head); letter-spacing: 0;
  background: linear-gradient(180deg, #f1d896 0%, #d4a94f 50%, #a67112 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.hero-tagline::before, .hero-tagline::after { content: none; }
[dir="ltr"] .hero-tagline { letter-spacing: .5px; }
.hero-tagline { background: linear-gradient(180deg, #e8c97f 0%, #c99a45 55%, #a67112 100%); -webkit-background-clip: text; background-clip: text; }

/* =========================================================
   ملمس ورق الذهب واللمعة على «مكتب المحامي والموثّق» و«محامون ومستشارون قانونيون»
   (نفس ألوان الاسم ووميضه: لمعة تمرّ كل ٦ ثوانٍ)
   ========================================================= */
.hero-eyebrow, .hero-tagline {
  background-image:
    linear-gradient(110deg, rgba(255,251,233,0) 42%, rgba(255,251,233,.95) 50%, rgba(255,251,233,0) 58%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.09' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .26 0 0 0 0 .03 0 0 0 3 -1.45'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #f6dc93 0%, #dcb15a 35%, #b8862b 70%, #8a5a0e 100%);
  background-size: 300% 100%, 160px 160px, 100% 100%;
  background-repeat: no-repeat, repeat, no-repeat;
  background-position: 150% 0, 0 0, 0 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(255,236,180,.35)) drop-shadow(0 3px 3px rgba(43,26,2,.75));
  animation: heroIn 1.2s var(--ease) forwards, foilShine 6s linear 1.2s infinite;
}
.hero-eyebrow { font-weight: 700; font-size: clamp(1.05rem, 2.3vw, 1.6rem); letter-spacing: .3px; }
@keyframes foilShine { 0% { background-position: 150% 0, 0 0, 0 0; } 45%, 100% { background-position: -50% 0, 0 0, 0 0; } }
@media (prefers-reduced-motion: reduce) { .hero-eyebrow, .hero-tagline { animation: none !important; opacity: 1 !important; } }
.hero-eyebrow, .hero-tagline { animation-delay: var(--d, 0s), calc(var(--d, 0s) + .9s); }

/* خط السطرين: نسخ مشكول بعلامات زخرفية يناسب خط الاسم (الثلث) */
.hero-eyebrow, .hero-tagline { font-family: "Amiri Quran", "Amiri", serif; font-weight: 400; line-height: 2.1; letter-spacing: 0; padding: 0 .2em; }
.hero-eyebrow { font-size: clamp(1.25rem, 2.6vw, 1.95rem); margin-bottom: -6px; }
.hero-tagline { font-size: clamp(1.4rem, 3vw, 2.3rem); margin-top: 2px; }
[dir="ltr"] .hero-eyebrow, [dir="ltr"] .hero-tagline { font-family: "Amiri", serif; font-weight: 700; line-height: 1.6; letter-spacing: .5px; }

/* السطران بحجم الاسم */
.hero-name img { width: min(600px, 86vw); }
.hero-eyebrow { font-size: clamp(2rem, 8.6vw, 4.1rem); line-height: 1.75; margin: 0 auto -4px; }
.hero-tagline { font-size: clamp(1.6rem, 6.4vw, 3.15rem); line-height: 1.85; margin: 4px auto 0; }
.hero { padding-top: 50px; }
/* عرض السطرين = عرض الاسم في كل المقاسات */
.hero-eyebrow { font-size: clamp(1.6rem, 12.2vw, 5.33rem); line-height: 1.5; margin: 0 auto -10px; }
.hero-tagline { font-size: clamp(1.4rem, 9.6vw, 4.18rem); line-height: 1.6; margin: 0 auto; }
.hero-name { margin: 0 auto; }
/* أميري العادي: ياء آخر الكلمة بنقطتين (أميري قرآن يكتبها بلا نقط) */
.hero-eyebrow, .hero-tagline { font-family: "Amiri", serif; font-weight: 700; }
.hero-eyebrow { font-size: clamp(1.65rem, 12.7vw, 5.56rem); margin: 0 auto 4px; }

/* =========================================================
   تنسيق المقدمة مثل sq.sa: سطر صغير بخط عادي ذهبي، ثم الاسم كبيراً وعريضاً
   ========================================================= */
.hero-eyebrow, .hero-tagline {
  background: none; -webkit-background-clip: border-box; background-clip: border-box;
  color: var(--gold); filter: none; text-shadow: 0 2px 10px rgba(0,0,0,.55);
  font-family: var(--body); font-weight: 500; letter-spacing: 0; padding: 0;
  animation: heroIn 1.2s var(--ease) forwards; animation-delay: var(--d, 0s);
}
.hero-eyebrow { font-size: clamp(1.05rem, 2.6vw, 1.75rem); line-height: 1.6; margin: 0 auto 14px; }
.hero-name img { width: min(780px, 90vw); }
.hero-tagline { font-size: clamp(1rem, 2.3vw, 1.5rem); line-height: 1.6; margin: 14px auto 0; color: #c9a65e; }
[dir="ltr"] .hero-eyebrow, [dir="ltr"] .hero-tagline { font-family: var(--body); font-weight: 500; letter-spacing: .5px; line-height: 1.6; }
/* نفس لون «مكتب المحامي والموثق» */
.hero-tagline { color: var(--gold); }
/* السطران بلون «محامون ومستشارون قانونيون» الأصلي */
.hero-eyebrow, .hero-tagline { color: #c9a65e; }

/* المؤهلات والاعتمادات */
.cred-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cred-cards li {
  background: #fff; border-radius: 16px 0; padding: 22px 20px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: 0 12px 30px -16px rgba(0,0,0,.3); border-top: 3px solid var(--gold); transition: transform .45s var(--ease);
}
.cred-cards li:hover { transform: translateY(-5px); }
.cred-cards .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; flex: none; }
.cred-cards .ic svg { width: 21px; height: 21px; }
.cred-cards small { display: block; color: var(--muted); font-size: .82rem; margin-bottom: 2px; }
.cred-cards b { font: 600 1rem/1.55 var(--head); color: var(--navy); }
.highlights { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.highlights li { position: relative; padding-inline-start: 22px; color: #444; }
.highlights li::before { content: ""; position: absolute; inset-inline-start: 0; top: .72em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
@media (max-width: 1100px) { .cred-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cred-cards { grid-template-columns: 1fr; } }
/* ست بطاقات مؤهلات: ثلاث في كل صف */
.cred-cards { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .cred-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cred-cards { grid-template-columns: 1fr; } }

/* =========================================================
   ترويسة متوازنة: الروابط على الجانبين بنفس البعد عن الشعار وبمسافات متساوية،
   والأيقونات وزر الطلب واللغة على الأطراف، وكلها على خط أفقي واحد
   ========================================================= */
@media (min-width: 1321px) {
  .hdr { gap: 0; }
  .hdr-start, .hdr-end { justify-content: flex-start; gap: 18px; }
  .hdr-start { padding-inline-end: 64px; }
  .hdr-end { padding-inline-start: 64px; }
  .hdr-start .nav { margin-inline-start: auto; }   /* روابط اليمين تلتصق بالشعار */
  .hdr-end .nav { margin-inline-end: auto; }       /* روابط اليسار تلتصق بالشعار */
  .hdr .nav { gap: 28px; align-items: center; }
  .hdr .nav a, .hdr .nav-group-btn { line-height: 1.6; padding: 6px 0; }
  .hdr-icons { gap: 14px; }
  .hdr-cta { margin-top: 0; }
}
@media (min-width: 1321px) {
  .hdr-start { padding-inline-end: 86px; }
  .hdr-end { padding-inline-start: 86px; }
}

/* =========================================================
   مسافة واحدة متساوية (30 نقطة) بين كل عنصرين في الترويسة،
   وبين الشعار وأقرب رابط على كل جانب، والشعار في المنتصف
   ========================================================= */
@media (min-width: 1321px) {
  .hdr { --g: 30px; }
  .hdr-start, .hdr-end { gap: var(--g); padding: 0; }
  .hdr-start { justify-content: flex-end; padding-inline-end: calc(var(--g) + 30px); }   /* 30 = نصف عرض الشعار */
  .hdr-end { justify-content: flex-start; padding-inline-start: calc(var(--g) + 30px); }
  .hdr-start .nav, .hdr-end .nav { margin: 0; gap: var(--g); }
  .hdr-icons { gap: var(--g); }
  .hdr .nav a, .hdr .nav-group-btn, .hdr-icons a { padding: 6px 0; }
}
@media (min-width: 1321px) {
  .hdr-start { padding-inline-end: calc(var(--g) + 29.45px); }
  .hdr-end { padding-inline-start: calc(var(--g) + 29.45px); }
}

/* شعار التذييل على نفس خط الأعمدة الأخرى:
   حدّه العلوي المرئي = أعلى الأيقونات، وحدّه السفلي المرئي = أسفل العناوين */
.footer-col .f-ic { display: block; }
@media (min-width: 961px) {
  .footer-logo img { width: auto; height: 106.4px; margin: -3.72px auto; max-width: none; }
}
@media (min-width: 961px) {
  .footer-logo img { height: 92.68px; margin: -3.24px auto; }
}
@media (min-width: 961px) { .footer-main { grid-template-columns: repeat(4, 1fr); } }

/* أزرار الهاتف والبريد في الترويسة: دوائر واضحة بمساحة ضغط كافية */
.hdr-icons a.hdr-contact { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s; }
.hdr-icons a.hdr-contact:hover { background: var(--gold); border-color: var(--gold); color: #fff; transform: none; }
.hdr-icons a.hdr-contact svg { width: 17px; height: 17px; }
@media (max-width: 1320px) {
  .hdr-icons { display: flex; gap: 10px; }
  .hdr-icons a[data-social] { display: none; }
  .hdr-start { gap: 12px; }
}
@media (max-width: 380px) { .hdr-icons a.hdr-contact { width: 34px; height: 34px; } }
.drawer a.drawer-contact { display: flex; align-items: center; gap: 10px; color: #ddd; font-family: var(--body); font-size: .95rem; }
.drawer a.drawer-contact svg { width: 17px; height: 17px; color: var(--gold-2); flex: none; }

/* إشعار صغير عند نسخ البريد أو الرقم */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 20px); opacity: 0;
  background: var(--navy); color: #fff; border: 1px solid var(--gold); border-radius: 12px 0; padding: 10px 18px;
  font: 500 .95rem var(--body); box-shadow: var(--shadow); transition: opacity .3s, transform .3s; pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* الشاشات الصغيرة جداً: يبقى زر الاتصال فقط حتى لا يقترب من الشعار (البريد موجود في القائمة) */
@media (max-width: 359px) { .hdr-icons a.hdr-contact[href^="mailto"] { display: none; } }

/* الجوال والجهاز اللوحي: زر القائمة يميناً، الشعار وسطاً، الاتصال والبريد يساراً */
.hdr-icons-m { display: none; }
@media (max-width: 1320px) {
  .hdr-start .hdr-icons { display: none; }
  .hdr-end .hdr-icons-m { display: flex; gap: 10px; }
  .hdr-end { justify-content: flex-end; gap: 12px; }
}
