/* المحامية أمواج نائف العتيبي — الهوية: ذهبي #827252 · أسود #1A1A1A · خط المراعي */
:root {
  --gold: #827252;
  --gold-d: #6B5D42;
  --gold-l: #B9A47C;
  --gold-50: #F4EFE6;
  --ink: #1A1A1A;
  --ink-2: #3B3935;
  --muted: #6E685E;
  --ivory: #F7F4EE;
  --line: #E6DFD2;
  --white: #FFFFFF;
  --dark: #121212;
  --dark-2: #1C1B19;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(26, 26, 26, .04), 0 8px 24px rgba(26, 26, 26, .06);
  --shadow-lg: 0 2px 4px rgba(26, 26, 26, .05), 0 18px 40px rgba(26, 26, 26, .10);
  --wrap: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Almarai", "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--gold-d); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
h1, h2, h3 { color: var(--ink); line-height: 1.45; margin: 0 0 .6em; font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.15rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 40px); }
.center { text-align: center; }
.mt { margin-top: 40px; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--gold); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip:focus { inset-inline-start: 8px; color: #fff; }

.ic { width: 24px; height: 24px; flex: none; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 15px; height: 15px; }

/* ---------- الأزرار */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  padding: 14px 26px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 6px 18px rgba(130, 114, 82, .28); }
.btn-gold:hover { background: var(--gold-d); color: #fff; }
.btn-outline { border-color: var(--gold); color: var(--gold-d); background: transparent; }
.btn-outline:hover { background: var(--gold); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-ghost-light:hover { border-color: var(--gold-l); color: #fff; background: rgba(185, 164, 124, .14); }
.btn-link-light { color: var(--gold-l); padding-inline: 8px; }
.btn-link-light:hover { color: #fff; }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-row.center { justify-content: center; }

/* ---------- الشريط العلوي والترويسة */
.topbar { background: var(--dark); color: #cfc8ba; font-size: .84rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar-contact { display: flex; gap: 22px; }
.topbar a { color: #cfc8ba; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--gold-l); }
.topbar-portal { color: var(--gold-l) !important; font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(26, 26, 26, .06); }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand-emblem { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 3px; }
.brand-name { height: 33px; width: auto; }
.brand-tag { font-size: .72rem; color: var(--gold); font-weight: 700; letter-spacing: .2px; }

.nav { margin-inline-start: auto; display: flex; align-items: center; }
.nav > ul { display: flex; align-items: center; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: 10px 13px; color: var(--ink); font-weight: 700; font-size: .95rem; border-radius: 8px; }
.nav > ul > li > a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav > ul > li > a[aria-current="page"]::after { content: ""; display: block; height: 2px; background: var(--gold); border-radius: 2px; margin-top: 4px; }
.nav-cta { display: none; }
.header-cta { flex: none; }
.sub-toggle { display: none; }
.sub {
  position: absolute; top: 100%; inset-inline-start: -10px; width: 300px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s var(--ease);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--ink-2); font-size: .92rem; font-weight: 400; }
.sub a svg { color: var(--gold); }
.sub a:hover { background: var(--gold-50); color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 46px; height: 46px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; margin-inline-start: auto; }
.nav-toggle .i-close { display: none; }

/* ---------- البطل */
.hero { position: relative; color: #fff; background: var(--dark); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to left, rgba(14, 14, 14, .92) 0%, rgba(14, 14, 14, .72) 42%, rgba(14, 14, 14, .15) 78%, rgba(14, 14, 14, 0) 100%),
    url("../img/hero-waves.jpg") center left / cover no-repeat;
  animation: heroIn 1.6s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.06); opacity: .6; } to { transform: none; opacity: 1; } }
.hero-in { min-height: min(86vh, 760px); display: flex; align-items: center; padding-block: 90px; }
.hero-copy { max-width: 640px; }
.hero h1 { margin: 0 0 26px; color: #fff; font-weight: 400; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 12px; color: var(--gold-l); font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.hero-eyebrow::before { content: ""; width: 44px; height: 1px; background: var(--gold-l); }
.hero-name { width: min(560px, 100%); height: auto; margin-bottom: 18px; }
.hero-sub { display: block; font-size: clamp(1.05rem, .9rem + .7vw, 1.4rem); color: var(--gold-l); font-weight: 700; }
.hero-lead { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); color: #fff; margin-bottom: 14px; line-height: 1.6; }
.hero-text { color: #d9d3c7; max-width: 580px; margin-bottom: 34px; }

/* ---------- عناوين الأقسام */
.sec { padding-block: clamp(64px, 5vw + 36px, 110px); }
.sec-ivory { background: var(--ivory) url("../img/ivory-waves.jpg") center bottom / 100% auto no-repeat; }
.sec-dark { background: var(--dark-2); color: #d9d3c7; }
.sec-dark h2, .sec-dark h3 { color: #fff; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.05rem; }
.sec-dark .sec-head p { color: #bdb6a8; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--gold); font-weight: 800; font-size: .9rem; margin-bottom: 10px; letter-spacing: .3px; }
.eyebrow::before, .sec-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: currentColor; }
.sec-dark .eyebrow { color: var(--gold-l); }
.sub-title { text-align: center; margin: 64px 0 28px; font-size: 1.35rem; }
.lead { font-size: 1.12rem; color: var(--ink-2); }
.h-line { font-size: 1.35rem; display: flex; align-items: center; gap: 14px; margin-top: 44px; }
.h-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- شريط القيم */
.values-strip { background: var(--ink); border-top: 1px solid rgba(185, 164, 124, .25); }
.values { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 0; }
.values li { color: #e8e2d6; font-weight: 700; padding: 18px 22px; display: flex; align-items: center; gap: 22px; }
.values li + li::before { content: ""; width: 6px; height: 6px; background: var(--gold-l); transform: rotate(45deg); margin-inline-start: -22px; }
.sec .values li { color: var(--ink); background: var(--ivory); border: 1px solid var(--line); border-radius: 999px; padding: 12px 26px; margin: 6px; }
.sec .values li::before { display: none; }

/* ---------- من نحن */
.about-split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-visual { background: var(--ivory) url("../img/ivory-waves.jpg") center bottom / cover; border-radius: 24px; padding: clamp(36px, 6vw, 70px); display: grid; place-items: center; border: 1px solid var(--line); position: relative; }
.about-visual::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(130, 114, 82, .28); border-radius: 16px; pointer-events: none; }
.about-visual img { width: min(300px, 100%); height: auto; }

/* ---------- بطاقات الخدمات */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.svc-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 24px; color: var(--ink-2); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.svc-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(to left, var(--gold), var(--gold-l)); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--ink-2); }
.svc-card:hover::before { transform: scaleX(1); }
.svc-card h3 { margin: 18px 0 8px; }
.svc-card p { font-size: .95rem; color: var(--muted); flex: 1; }
.svc-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold); transition: background .3s, color .3s; }
.svc-ic .ic { width: 28px; height: 28px; }
.svc-ic.lg { width: 64px; height: 64px; }
.svc-card:hover .svc-ic { background: var(--gold); color: #fff; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: .9rem; }
.svc-card:hover .more .ic { transform: translateX(-4px); }
.more .ic { transition: transform .3s var(--ease); }

/* ---------- أنواع الاستشارة */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.type-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 30px; text-align: center; transition: transform .35s var(--ease), box-shadow .35s; color: var(--ink-2); }
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--ink-2); }
.type-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.type-ic { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; color: var(--gold); background: var(--gold-50); border: 1px solid rgba(130, 114, 82, .25); }
.type-ic .ic { width: 30px; height: 30px; }

/* ---------- رحلة الحجز */
.journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; position: relative; }
.journey::before { content: ""; position: absolute; top: 27px; inset-inline: 12%; height: 1px; background: repeating-linear-gradient(to left, var(--gold) 0 6px, transparent 6px 12px); opacity: .6; }
.journey li { text-align: center; position: relative; }
.journey h3 { font-size: 1.02rem; margin: 16px 0 6px; }
.journey p { font-size: .92rem; color: var(--muted); margin: 0; }
.step-n { width: 56px; height: 56px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-l); font-weight: 800; font-size: 1.2rem; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--gold); position: relative; }
.sec-ivory .step-n { border-color: var(--ivory); }

.work-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.work-steps li h3 { margin: 14px 0 6px; font-size: 1.02rem; }
.work-steps li p { margin: 0; font-size: .92rem; color: var(--muted); }
.ws-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--gold-l); }
.svc-main .work-steps { grid-template-columns: repeat(2, 1fr); }

/* ---------- تقسيمات عامة */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.request-band { background: var(--dark-2) url("../img/hero-waves.jpg") left center / cover; position: relative; isolation: isolate; }
.request-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(20, 20, 19, .96) 0%, rgba(20, 20, 19, .9) 50%, rgba(20, 20, 19, .7) 100%); }
.mini-steps { display: grid; gap: 14px; counter-reset: m; }
.mini-steps li { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border: 1px solid rgba(185, 164, 124, .28); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .03); color: #fff; font-weight: 700; }
.mini-steps li svg { color: var(--gold-l); }
.mini-steps li::after { counter-increment: m; content: "0" counter(m); margin-inline-start: auto; color: rgba(185, 164, 124, .6); font-weight: 800; }
.mini-steps.light li { background: var(--ivory); border-color: var(--line); color: var(--ink); }
.mini-steps.light li svg { color: var(--gold); }
.mini-steps.light li::after { color: var(--gold-l); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 999px; background: var(--ivory); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: .94rem; }
.chips li svg { color: var(--gold); }

/* ---------- بوابة العملاء */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.feat { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: box-shadow .3s; }
.feat:hover { box-shadow: var(--shadow); }
.feat h3 { font-size: 1.02rem; margin: 2px 0 4px; }
.feat p { margin: 0; font-size: .93rem; color: var(--muted); }
.feat-ic { width: 48px; height: 48px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--gold-50); color: var(--gold); }
.portal-top { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.portal-top .feat-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.portal-access { position: sticky; top: 110px; text-align: center; display: grid; gap: 12px; }
.portal-access h2 { font-size: 1.4rem; margin: 6px 0 0; }
.portal-access p { color: var(--muted); font-size: .95rem; }
.portal-cta { display: grid; gap: 14px; justify-items: start; scroll-margin-top: 110px; }
.portal-cta .form-sub { margin: 0; }
.portal-cta .form-note { margin: 0; }

/* ---------- لماذا نحن */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.why { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.why span { width: 50px; height: 50px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--gold-l); }
.why strong { color: var(--ink); font-size: 1.02rem; }

/* ---------- الخصوصية */
.privacy-in { display: flex; align-items: center; gap: 28px; }
.privacy-in h2 { font-size: 1.5rem; margin-bottom: 6px; }
.privacy-in p { margin: 0; }
.privacy-in .btn { margin-inline-start: auto; flex: none; }
.privacy-ic { width: 76px; height: 76px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-l); color: var(--gold-l); }
.privacy-ic .ic { width: 32px; height: 32px; }

/* ---------- الأسئلة الشائعة */
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .3s, border-color .3s; }
.faq details[open] { box-shadow: var(--shadow); border-color: rgba(130, 114, 82, .4); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 700; color: var(--ink); font-size: 1.04rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { margin-inline-start: auto; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--gold-50); position: relative; transition: transform .3s, background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 12px; height: 2px; background: var(--gold); transform: translate(-50%, -50%); border-radius: 2px; }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s; }
.faq details[open] summary i { background: var(--gold); }
.faq details[open] summary i::before, .faq details[open] summary i::after { background: #fff; }
.faq details[open] summary i::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 24px 20px; color: var(--muted); }
.faq-a p { margin: 0; }

/* ---------- شريط الدعوة */
.cta-band { background: var(--ink) url("../img/hero-waves.jpg") left 70% / cover; position: relative; isolation: isolate; color: #d9d3c7; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(18, 18, 18, .95), rgba(18, 18, 18, .78) 60%, rgba(18, 18, 18, .5)); }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-block: 64px; flex-wrap: wrap; }
.cta-in h2 { color: #fff; margin-bottom: 6px; font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); }
.cta-in p { margin: 0; }

/* ---------- ترويسة الصفحات الداخلية */
.page-hero { background: var(--dark) url("../img/hero-waves.jpg") left 80% / cover; color: #d9d3c7; position: relative; isolation: isolate; padding-block: 70px 64px; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgba(14, 14, 14, .95) 0%, rgba(14, 14, 14, .82) 55%, rgba(14, 14, 14, .45) 100%); }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2vw, 2.8rem); margin-bottom: 12px; }
.page-lead { max-width: 720px; font-size: 1.08rem; margin: 0; color: #d4cdbf; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 18px; color: var(--gold-l); }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: rgba(255, 255, 255, .35); }
.crumbs a { color: #cfc8ba; }
.crumbs a:hover { color: var(--gold-l); }

/* ---------- تفاصيل الخدمة */
.svc-detail { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.svc-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.svc-head h2 { margin: 0; }
.scope { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.scope li { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; background: var(--ivory); border-radius: var(--radius-sm); color: var(--ink); font-weight: 700; font-size: .98rem; line-height: 1.6; }
.scope li svg { color: var(--gold); margin-top: 3px; }
.svc-cta { margin-top: 44px; padding: 30px; border-radius: var(--radius); border: 1px solid rgba(130, 114, 82, .35); background: linear-gradient(135deg, var(--gold-50), #fff); display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.svc-cta h3 { margin-bottom: 4px; font-size: 1.25rem; }
.svc-cta p { margin: 0; color: var(--muted); }
.svc-side { display: grid; gap: 20px; position: sticky; top: 110px; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.side-card h3 { display: flex; align-items: center; gap: 8px; }
.side-card p { font-size: .94rem; color: var(--muted); }
.side-dark { background: var(--ink); border-color: var(--ink); color: #cfc8ba; position: relative; overflow: hidden; }
.side-dark::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -40px; width: 160px; height: 160px; background: url("../img/emblem-light.svg") center / contain no-repeat; opacity: .07; }
.side-dark h3 { color: #fff; }
.side-dark p { color: #bdb6a8; }
.side-phone { display: flex; align-items: center; gap: 10px; color: var(--gold-l); font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.side-phone:hover { color: #fff; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink-2); font-size: .94rem; }
.side-links li:last-child a { border-bottom: 0; }
.side-links a svg { color: var(--gold); }
.side-links a:hover { color: var(--gold); padding-inline-start: 4px; }
.side-links a { transition: padding .2s, color .2s; }

/* ---------- الشركات */
.co-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.co-grid li { display: flex; align-items: center; gap: 12px; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); color: var(--ink); font-weight: 700; }
.co-grid li svg { color: #fff; background: var(--gold); border-radius: 50%; padding: 5px; width: 28px; height: 28px; }

/* ---------- الرؤية والرسالة */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 40px 36px; }
.vm-card h2 { font-size: 1.5rem; margin-top: 18px; }
.vm-card p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.vm-ic { width: 60px; height: 60px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--ink); color: var(--gold-l); }
.vm-ic .ic { width: 28px; height: 28px; }

/* ---------- النماذج */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.form-aside { display: grid; gap: 20px; position: sticky; top: 110px; }
.form-title { font-size: 1.5rem; margin-bottom: 4px; }
.form-sub { color: var(--muted); margin-bottom: 26px; }
.form { display: grid; gap: 18px; scroll-margin-top: 110px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field > span { font-weight: 700; color: var(--ink); font-size: .94rem; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; font-size: .85rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); width: 100%;
  padding: 13px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #FCFBF8;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(130, 114, 82, .14); background: #fff; }
.field input[dir="ltr"] { text-align: right; }
.form.tried :invalid { border-color: #B4533C; }
.radio-group { border: 0; padding: 0; margin: 0; }
.radio-group legend { font-weight: 700; color: var(--ink); font-size: .94rem; margin-bottom: 10px; padding: 0; }
.radio-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card span { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 18px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--muted); transition: .2s; font-size: .9rem; height: 100%; }
.radio-card strong { color: var(--ink); font-weight: 700; line-height: 1.4; }
.radio-card span svg { color: var(--gold); }
.radio-card input:checked + span { border-color: var(--gold); background: var(--gold-50); box-shadow: 0 0 0 3px rgba(130, 114, 82, .12); }
.radio-card input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); margin-top: 4px; flex: none; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.form-note { margin: 0; padding: 14px 18px; border-radius: var(--radius-sm); background: var(--gold-50); color: var(--ink); font-size: .94rem; border: 1px solid rgba(130, 114, 82, .3); }
.note-box { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--ivory); border: 1px dashed rgba(130, 114, 82, .45); font-size: .92rem; }
.note-box p { margin: 0; }
.note-box svg { color: var(--gold); margin-top: 4px; }
.contact-list { display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list svg { color: var(--gold-l); margin-top: 4px; }
.contact-list span { display: block; font-size: .85rem; color: #a59e90; }
.contact-list a, .contact-list p { color: #fff; font-weight: 700; margin: 0; }
.contact-list a:hover { color: var(--gold-l); }
.type-card.link h3 { color: var(--ink); }

/* ---------- المقالات */
.prose h2 { font-size: 1.35rem; margin-top: 36px; }
.prose p { color: var(--ink-2); }

.notfound img { margin: 0 auto 24px; height: 144px; width: auto; }

/* ---------- التذييل */
.site-footer { background: var(--dark); color: #a59e90; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 40px; padding-block: 72px 48px; }
.footer-brand img { width: 170px; height: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.footer-h { color: #fff; font-size: 1.05rem; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.footer-h::before { content: ""; width: 18px; height: 2px; background: var(--gold); }
.footer-links { display: grid; gap: 10px; }
.footer-links a { color: #a59e90; }
.footer-links a:hover { color: var(--gold-l); }
.footer-contact { display: grid; gap: 12px; margin-bottom: 20px; }
.footer-contact li { display: flex; align-items: center; gap: 10px; }
.footer-contact svg { color: var(--gold-l); }
.footer-contact a { color: #e8e2d6; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-bottom-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }

.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: #fff; box-shadow: 0 10px 26px rgba(26, 26, 26, .25); transition: transform .25s var(--ease), background .25s; }
.wa-float:hover { color: #fff; background: var(--gold-d); transform: translateY(-3px); }

/* ---------- الظهور التدريجي */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- الاستجابة */
@media (max-width: 1180px) {
  .header-cta { display: none; }
  .nav > ul > li > a { padding: 10px 10px; }
}
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; z-index: 60;
    flex-direction: column; align-items: stretch; padding: 90px 22px 30px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s var(--ease); box-shadow: -20px 0 60px rgba(0, 0, 0, .15);
  }
  .nav-open .nav { transform: none; }
  .nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav > ul > li { border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
  .nav > ul > li > a { padding: 14px 4px; flex: 1; }
  .nav > ul > li > a[aria-current="page"]::after { display: none; }
  .nav-cta { display: flex; margin-top: 22px; }
  .sub-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 0; background: var(--gold-50); border-radius: 8px; cursor: pointer; }
  .sub-toggle span { width: 9px; height: 9px; border-inline-end: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); margin-top: -4px; transition: transform .25s; }
  .sub-toggle[aria-expanded="true"] span { transform: rotate(-135deg); margin-top: 4px; }
  .sub { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 10px; display: none; }
  .has-sub:hover .sub { display: none; }
  .has-sub.open .sub { display: block; }
  .nav-toggle { position: relative; z-index: 70; }
  .nav-open .nav-toggle .i-open { display: none; }
  .nav-open .nav-toggle .i-close { display: block; }
  .nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 45; }
  .nav-open { overflow: hidden; }
  .svc-detail, .form-wrap, .portal-top { grid-template-columns: 1fr; }
  .svc-side, .form-aside, .portal-access { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .co-grid { grid-template-columns: repeat(2, 1fr); }
  .journey { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .journey::before { display: none; }
  .work-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .about-split, .split, .vm-grid { grid-template-columns: 1fr; }
  .type-grid, .why-grid { grid-template-columns: 1fr; }
  .privacy-in { flex-direction: column; text-align: center; }
  .privacy-in .btn { margin-inline-start: 0; }
  .hero-bg { background: linear-gradient(to top, rgba(14, 14, 14, .95) 10%, rgba(14, 14, 14, .72) 60%, rgba(14, 14, 14, .55)), url("../img/hero-waves.jpg") 20% center / cover no-repeat; }
  .hero-in { min-height: auto; padding-block: 72px 80px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .topbar-contact a:nth-child(2) { display: none; }
  .header-in { min-height: 72px; }
  .brand-emblem { height: 46px; }
  .brand-name { height: 27px; }
  .brand-tag { font-size: .64rem; }
  .grid-2, .scope, .radio-row, .work-steps, .svc-main .work-steps, .co-grid, .footer-grid { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .hero .btn-row .btn-lg { width: 100%; }
  .form-actions .btn { width: 100%; }
  .feat-grid, .portal-top .feat-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .values li { padding: 12px 14px; gap: 14px; }
  .values li + li::before { margin-inline-start: -14px; }
  .wa-float { width: 50px; height: 50px; inset-inline-end: 16px; bottom: 16px; }
}
