/* ArteviA — نظام التصميم: أسود فاخر + ذهبي فرشاة الشعار، عاجي للنص، أقسام عاجية للقراءة الهادئة.
   العناوين: Amiri (عربي) / Cormorant Garamond (إنجليزي) · النصوص: IBM Plex Sans Arabic / IBM Plex Sans */

:root {
  --bg: #0b0a08;
  --bg-2: #13110e;
  --bg-3: #1c1915;
  --paper: #f4efe6;
  --paper-2: #ebe4d8;
  --ink: #f3ede3;
  --ink-2: rgba(243, 237, 227, 0.74);
  --muted: rgba(243, 237, 227, 0.5);
  --line: rgba(243, 237, 227, 0.12);
  --line-2: rgba(243, 237, 227, 0.24);
  --dark: #15120e;
  --dark-2: rgba(21, 18, 14, 0.72);
  --dark-line: rgba(21, 18, 14, 0.14);
  --gold: #c9a14a;
  --gold-2: #e3c37b;
  --gold-grad: linear-gradient(120deg, #a87d2c 0%, #e3c37b 45%, #b88a35 100%);
  --f-display: "Amiri", "Cormorant Garamond", serif;
  --f-body: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  --f-num: "Cormorant Garamond", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1440px;
}
html[lang="en"] { --f-display: "Cormorant Garamond", serif; --f-body: "IBM Plex Sans", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 16px; line-height: 1.8; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--gold); color: #000; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; margin: 0; line-height: 1.25; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-weight: 500; letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-family: var(--f-num); font-weight: 500; font-variant-numeric: lining-nums; }
.gold { color: var(--gold-2); }
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-size: 13px; color: var(--gold-2); letter-spacing: 0.04em; }
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 11.5px; }
.eyebrow .num { font-size: 17px; letter-spacing: 0; }
.eyebrow i { width: 36px; height: 1px; background: currentColor; opacity: 0.6; }
.h-xl { font-size: clamp(48px, 7vw, 116px); line-height: 1.15; }
.h-lg { font-size: clamp(36px, 4.6vw, 72px); line-height: 1.2; }
.h-md { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.3; }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); line-height: 1.9; }
.small { font-size: 13px; color: var(--muted); }

/* ———— الأزرار ———— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; padding-inline: 28px; font-size: 15px; border-radius: 999px; white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s, border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s; }
.btn svg { width: 16px; height: 16px; transition: transform 0.4s var(--ease); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-4px); }
html[dir="ltr"] .btn svg { transform: scaleX(-1); }
html[dir="ltr"] .btn:hover svg { transform: scaleX(-1) translateX(-4px); }
.btn--gold { background: var(--gold-grad); color: #120f0a; font-weight: 500; box-shadow: 0 10px 30px -12px rgba(201, 161, 74, 0.6); }
.btn--gold:hover { box-shadow: 0 16px 40px -12px rgba(201, 161, 74, 0.8); transform: translateY(-1px); }
.btn--line { border: 1px solid var(--line-2); }
.btn--line:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn--dark { background: var(--dark); color: var(--paper); }
.btn--dark:hover { background: #000; }
.link { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; position: relative; padding-bottom: 4px; color: var(--gold-2); }
.link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform-origin: right; transition: transform 0.6s var(--ease); }
.link:hover::after { transform: scaleX(0.35); }
.link svg { width: 15px; height: 15px; }
html[dir="ltr"] .link svg { transform: scaleX(-1); }

/* ———— المحمّل ———— */
.loader { position: fixed; inset: 0; z-index: 300; background: var(--bg); display: grid; place-items: center; transition: opacity 0.9s var(--ease), visibility 0.9s; }
.loader.is-done { opacity: 0; visibility: hidden; }
.loader__in { display: grid; justify-items: center; gap: 26px; }
.loader__mark { width: 110px; position: relative; }
.loader__mark img { width: 100%; }
.loader__mark img + img { position: absolute; inset: 0; clip-path: inset(calc((1 - var(--p, 0)) * 100%) 0 0 0); }
.loader__mark img:first-child { opacity: 0.14; }
.loader__word { font-family: "Cormorant Garamond", serif; font-size: 15px; letter-spacing: 0.5em; color: var(--muted); margin-right: -0.5em; }
.loader__pct { font-family: var(--f-num); font-size: 15px; color: var(--gold-2); font-variant-numeric: tabular-nums; }

/* ———— الترويسة ———— */
.header { position: fixed; inset-inline: 0; top: 0; z-index: 120; transition: background 0.5s var(--ease), box-shadow 0.5s, transform 0.6s var(--ease); }
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 86px; }
.header.is-solid { background: rgba(11, 10, 8, 0.82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.header.is-up { transform: translateY(-100%); }
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; direction: ltr; }
.brand img { width: 46px; height: auto; }
.brand b { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 24px; letter-spacing: 0.22em; }
.brand b em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand span { display: block; font-size: 9.5px; letter-spacing: 0.32em; color: var(--muted); font-family: "IBM Plex Sans", sans-serif; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 36px); font-size: 15px; }
.nav a:not(.btn) { position: relative; padding-block: 6px; color: var(--ink-2); transition: color 0.3s; }
.nav a:not(.btn):hover, .nav a.is-current { color: var(--ink); }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--gold-2); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding-inline: 22px; font-size: 14px; }
.lang { min-width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 13px; display: grid; place-items: center; transition: border-color 0.3s, color 0.3s; }
.lang:hover { border-color: var(--gold-2); color: var(--gold-2); }
.header__end { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 44px; height: 44px; place-items: center; }
.burger i { display: grid; gap: 6px; }
.burger span { display: block; width: 24px; height: 1.5px; background: currentColor; transition: transform 0.4s var(--ease); }
.menu-open .burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
@media (max-width: 1180px) { .nav { display: none; } .burger { display: grid; } }

.mmenu { position: fixed; inset: 0; z-index: 110; background: var(--bg); padding: 110px var(--gutter) 30px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); transition: clip-path 0.8s var(--ease-io); }
.menu-open .mmenu { clip-path: inset(0 0 0 0); }
.mmenu nav { display: grid; }
.mmenu nav a { font-family: var(--f-display); font-size: clamp(34px, 9vw, 54px); line-height: 1.5; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
.mmenu nav a .num { font-size: 16px; color: var(--gold-2); }
.menu-open .mmenu nav a { opacity: 1; transform: none; }
.mmenu__foot { display: grid; gap: 14px; }

/* ———— ظهور العناصر ———— */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ———— الأقسام ———— */
.section { padding-block: clamp(96px, 14vh, 170px); position: relative; }
.section--2 { background: var(--bg-2); }
.section--paper { background: var(--paper); color: var(--dark); }
.section--paper .lead { color: var(--dark-2); }
.section--paper .eyebrow { color: #9a7425; }
.section--paper .small { color: rgba(21, 18, 14, 0.55); }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px var(--gutter); align-items: end; margin-bottom: clamp(48px, 7vh, 84px); }
.sec-head .eyebrow { grid-column: 1 / -1; }
.sec-head p { max-width: 520px; justify-self: end; }
@media (max-width: 820px) { .sec-head { grid-template-columns: 1fr; } .sec-head p { justify-self: start; } }

.page-hero { padding: 190px 0 90px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 22px; max-width: 14ch; }
.page-hero .lead { max-width: 640px; margin-top: 26px; }
.page-hero__mark { position: absolute; inset-inline-start: auto; inset-inline-end: -4%; top: 50%; translate: 0 -50%; width: min(42vw, 560px); opacity: 0.08; pointer-events: none; }
html[dir="rtl"] .page-hero__mark { left: -4%; right: auto; }

/* الركائز الأربع */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.pillar { padding: 40px 30px 44px; border-inline-start: 1px solid var(--line); position: relative; transition: background 0.6s var(--ease); }
.pillar:first-child { border-inline-start: 0; }
.pillar:hover { background: var(--bg-3); }
.pillar::before { content: ""; position: absolute; top: -1px; inset-inline: 0; height: 2px; background: var(--gold-grad); transform: scaleX(0); transform-origin: right; transition: transform 0.8s var(--ease); }
.pillar:hover::before { transform: scaleX(1); }
.pillar svg { width: 46px; height: 46px; stroke: var(--gold-2); fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.pillar .num { display: block; font-size: 15px; color: var(--muted); margin-top: 28px; }
.pillar h3 { font-size: clamp(28px, 2.4vw, 36px); margin: 6px 0 12px; }
.pillar p { color: var(--ink-2); font-size: 15px; }
.pillar ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.pillar li { display: flex; gap: 10px; align-items: baseline; }
.pillar li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; translate: 0 -2px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } .pillar:nth-child(3) { border-inline-start: 0; } .pillar:nth-child(n + 3) { border-top: 1px solid var(--line); } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } .pillar { border-inline-start: 0; border-top: 1px solid var(--line); } }

/* خطوات العمل */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; top: 27px; inset-inline: 0; height: 1px; background: var(--dark-line); }
.steps__fill { position: absolute; top: 27px; inset-inline: 0; height: 1px; background: var(--gold); transform-origin: right; transform: scaleX(0); transition: transform 2.2s var(--ease-io) 0.2s; }
html[dir="ltr"] .steps__fill { transform-origin: left; }
.steps.is-in .steps__fill { transform: scaleX(1); }
.step { padding-inline-end: 30px; position: relative; }
.step__dot { width: 54px; height: 54px; border-radius: 50%; background: var(--paper); border: 1px solid rgba(21, 18, 14, 0.25); display: grid; place-items: center; position: relative; z-index: 1; transition: all 0.6s; }
.step__dot .num { font-size: 20px; }
.steps.is-in .step__dot { border-color: var(--gold); background: var(--dark); color: var(--gold-2); transition-delay: calc(var(--i) * 450ms + 300ms); }
.step h3 { font-size: 26px; margin: 28px 0 10px; }
.step p { color: var(--dark-2); font-size: 15px; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .steps::before, .steps__fill { top: 0; bottom: 0; inset-inline: auto; right: 27px; width: 1px; height: auto; }
  html[dir="ltr"] .steps::before, html[dir="ltr"] .steps__fill { right: auto; left: 27px; }
  .steps__fill { transform: scaleY(0); transform-origin: top; } .steps.is-in .steps__fill { transform: scaleY(1); }
  .step { display: grid; grid-template-columns: 54px 1fr; gap: 0 20px; padding: 0; }
  .step h3 { margin: 10px 0 4px; } .step p { grid-column: 2; }
}

/* شريط الدعوة */
.cta { position: relative; overflow: hidden; background: radial-gradient(80% 120% at 20% 0%, #2a2216 0%, var(--bg) 60%); border-top: 1px solid var(--line); }
.cta .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px var(--gutter); align-items: end; position: relative; }
.cta h2 { font-size: clamp(42px, 5.6vw, 90px); }
.cta__btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.cta__mark { position: absolute; top: 50%; translate: 0 -50%; left: -3%; width: 38%; opacity: 0.07; pointer-events: none; }
html[dir="ltr"] .cta__mark { left: auto; right: -3%; }
@media (max-width: 820px) { .cta .container { grid-template-columns: 1fr; } }

/* التواصل */
.contact .container { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px var(--gutter); }
.contact__info { display: grid; gap: 34px; align-content: start; }
.contact__info dl { margin: 0; display: grid; gap: 22px; }
.contact__info dt { font-size: 12px; color: var(--muted); }
.contact__info dd { margin: 4px 0 0; font-family: var(--f-display); font-size: 23px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.field { position: relative; border-bottom: 1px solid var(--line-2); padding-top: 22px; }
.field--full { grid-column: 1 / -1; }
.field label { position: absolute; top: 30px; inset-inline-start: 0; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform 0.4s var(--ease), font-size 0.4s, color 0.4s; }
.field input, .field textarea { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ink); font: inherit; font-size: 17px; padding: 8px 0 14px; resize: none; }
.field:focus-within label, .field.has-value label { transform: translateY(-24px); font-size: 12px; color: var(--gold-2); }
.field::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform 0.6s var(--ease); }
.field:focus-within::after { transform: scaleX(1); }
.chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 6px; }
.chips span { width: 100%; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 14px; transition: all 0.3s var(--ease); }
.chip:hover { border-color: var(--gold-2); }
.chip[aria-pressed="true"] { background: var(--gold-grad); color: #120f0a; border-color: transparent; }
.form__send { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
@media (max-width: 820px) { .contact .container, .form { grid-template-columns: 1fr; } }

/* التذييل */
.footer { background: var(--bg-2); padding-top: 90px; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px var(--gutter); padding-bottom: 60px; }
.footer h4 { font-family: var(--f-body); font-size: 12px; color: var(--muted); font-weight: 400; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--ink-2); }
.footer li a:hover { color: var(--gold-2); }
.footer__brand img { width: 170px; }
.footer__brand p { max-width: 340px; color: var(--ink-2); margin-top: 22px; font-size: 15px; }
.footer__slogan { font-family: "Cormorant Garamond", serif; letter-spacing: 0.4em; font-size: clamp(22px, 4.6vw, 64px); text-align: center; padding: 30px 0 40px; border-top: 1px solid var(--line); color: transparent; -webkit-text-stroke: 1px rgba(227, 195, 123, 0.4); direction: ltr; white-space: nowrap; }
.footer__bottom { border-top: 1px solid var(--line); padding-block: 22px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

.wa { position: fixed; left: 22px; bottom: 22px; z-index: 100; width: 56px; height: 56px; border-radius: 50%; background: #1f9d55; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(0, 0, 0, 0.6); transform: scale(0); transition: transform 0.6s var(--ease); }
html[dir="ltr"] .wa { left: auto; right: 22px; }
.wa.is-on { transform: scale(1); }
.wa svg { width: 26px; height: 26px; }
.curtain { position: fixed; inset: 0; z-index: 250; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease-io); }
.curtain.is-on { opacity: 1; pointer-events: all; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } }
