/* هوية مجموعة آي إيه دي — النسخة الفاتحة، نفس رموز اللون في iad-sa.com */
:root{
  --ink:#1B2221;--shadow:#232C2B;--ivory:#E6E1D5;--sand:#CBC6B8;
  --bronze:#BE9670;--bronze2:#CDA47C;
  --wash:#DFDACE;            /* عاجي مغسول برملي — لفصل المشاهد بلا لون جديد */
  --line:rgba(27,34,33,.16);--line2:rgba(27,34,33,.30);--faint:rgba(27,34,33,.06);
  --muted:rgba(27,34,33,.72);--strong:rgba(27,34,33,.76);
  --header-surface:rgba(230,225,213,.94);
  --ar-display:"Noto Kufi Arabic",sans-serif;--ar-body:"IBM Plex Sans Arabic",sans-serif;
  --en-display:"Cormorant Garamond",serif;--en-body:"EB Garamond",serif;
  --label:"Archivo",sans-serif;
}
*{box-sizing:border-box}
html{background:var(--ivory);overflow-x:clip}
body{margin:0;overflow-x:clip;background:var(--ivory);color:var(--ink);font-family:var(--ar-body);line-height:1.85;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html[lang=en] body{font-family:var(--en-body)}
img{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
button{font:inherit}
.en{display:none}
html[lang=en]{direction:ltr}
html[lang=en] .ar{display:none}
html[lang=en] .en{display:inline}
:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
::selection{background:rgba(203,198,184,.64);color:var(--ink)}
/* العربية بلا تتبّع حروف — قاعدة الهوية نفسها في موقع المجموعة. */
html[lang=ar],html[lang=ar] *{letter-spacing:normal!important}
/* ---------- الترويسة ---------- */
.site-header{position:fixed;z-index:90;top:0;left:0;right:0;height:72px;display:flex;align-items:center;gap:34px;padding:0 clamp(20px,4vw,68px);background:var(--header-surface);backdrop-filter:blur(22px);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:11px;margin-inline-end:auto;color:var(--ink)}
.brand img{width:34px;height:34px;object-fit:contain}
.brand span{font-family:var(--ar-display);font-size:12px;font-weight:500;line-height:1.5;white-space:nowrap}
html[lang=en] .brand span{font-family:var(--label);font-size:10px;letter-spacing:.14em}
.primary-nav{display:flex;align-items:center;gap:24px;font-size:13px}
.primary-nav a{color:var(--muted)}
.primary-nav a:hover,.primary-nav a.is-active{color:var(--ink)}
.language{width:38px;height:38px;border:1px solid var(--line2);background:transparent;color:var(--ink);font-size:12px;cursor:pointer}
.language:hover{background:var(--faint)}

/* ---------- الأزرار: مربّعة، حبر على عاجي — كما في موقع المجموعة ---------- */
.hero-cta,.scene-cta{display:inline-flex;align-items:center;justify-content:center;min-height:52px;margin-top:34px;padding:12px 26px;border:1px solid var(--ink);background:var(--ink);color:var(--ivory);font-size:14px;font-weight:500;line-height:1.2}
.hero-cta:hover,.scene-cta:hover{background:var(--shadow);border-color:var(--shadow)}
.scene-cta.is-secondary{background:transparent;color:var(--ink)}
.scene-cta.is-secondary:hover{background:var(--faint);border-color:var(--ink)}
.scene-cta.is-disabled{border-color:var(--line2);background:transparent;color:var(--muted);pointer-events:none}
/* الاستجابة عند الضغط لا عند الإفلات. التحويم غائب على اللمس، فبدونها نصف الزوار يضغطون ولا يحسّون بشيء.
   بلا تحريك: تعتيم فوري لا تصغير. */
.hero-cta:active,.scene-cta:active,.language:active,.primary-nav a:active{opacity:.68}
.scene-actions{display:flex;flex-wrap:wrap;gap:12px}
.scene-actions .scene-cta{margin-top:34px}

/* ---------- الافتتاحية ---------- */
.family-hero{position:relative;min-height:100svh;overflow:hidden;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(440px,1.1fr);align-items:center;gap:4vw;padding:130px clamp(24px,7vw,120px) 80px;background:radial-gradient(circle at 74% 42%,#F0ECE3 0,var(--ivory) 46%,#DFDACE 100%)}
.hero-copy{position:relative;z-index:2;max-width:660px}
/* الـkicker كما في موقع المجموعة: نص حبري وخيط برونزي قبله — البرونز لا يحمل نصاً. */
.hero-label,.scene-label{display:inline-flex;align-items:center;gap:12px;margin:0 0 18px;color:var(--strong);font-family:var(--label);font-size:11px;font-weight:600;letter-spacing:.13em;line-height:1.4;text-transform:uppercase}
.hero-label:before,.scene-label:before{content:"";flex:0 0 28px;width:28px;height:1px;background:var(--bronze)}
html[lang=ar] .hero-label,html[lang=ar] .scene-label{font-family:var(--ar-body);font-size:13px;font-weight:500;text-transform:none}
.hero-copy h1,.scene-copy h2,.close-copy h2{margin:0;font-family:var(--ar-display);font-weight:300;line-height:1.35}
html[lang=en] .hero-copy h1,html[lang=en] .scene-copy h2,html[lang=en] .close-copy h2{font-family:var(--en-display);font-weight:400;line-height:1.12;letter-spacing:-.02em}
.close-copy h2{line-height:1.18}
.hero-copy h1{font-size:clamp(42px,5.3vw,82px)}
.hero-lead,.scene-lead{max-width:610px;margin:28px 0 0;color:var(--muted);font-size:clamp(17px,1.45vw,21px);line-height:1.9}
.family-devices{position:relative;height:min(73vh,760px);perspective:1200px}
.family-phone{position:absolute;top:50%;left:50%;width:min(23vw,275px);aspect-ratio:1206/2622;background:#0A0B0C;box-shadow:0 0 0 2px #3C3F42,0 34px 70px rgba(27,34,33,.26);border-radius:clamp(28px,3vw,52px);overflow:hidden}
.family-phone img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.family-wird{transform:translate(-112%,-48%) rotate(-9deg)}
.family-sakinah{z-index:2;transform:translate(-50%,-54%)}
.family-bite{transform:translate(12%,-48%) rotate(9deg)}
.scroll-cue{position:absolute;bottom:28px;left:50%;transform:translateX(-50%);color:var(--muted);font-family:var(--label);font-size:11px;letter-spacing:.12em}
html[lang=ar] .scroll-cue{font-family:var(--ar-body);font-size:12px}

/* ---------- مشاهد المنتجات ---------- */
.product-scene{position:relative}
.scene-sticky{position:relative;min-height:100svh;display:grid;grid-template-columns:minmax(320px,.88fr) minmax(450px,1.12fr);align-items:center;gap:6vw;padding:110px clamp(24px,8vw,140px) 70px;overflow:hidden;border-top:1px solid var(--line)}
.scene-copy{position:relative;z-index:3;max-width:660px}
.scene-index{direction:ltr;margin:0 0 54px;color:var(--muted);font:500 11px/1 var(--label);letter-spacing:.18em}
.scene-copy h2{font-size:clamp(39px,4.7vw,70px)}
.scene-points{display:flex;flex-wrap:wrap;gap:8px;padding:0;margin:28px 0 0;list-style:none}
.scene-points li{padding:9px 14px;border:1px solid var(--line2);color:var(--muted);font-size:12px;line-height:1.5}
/* أسطح المشاهد: عاجي وغسلة رملية بالتناوب — لا لون خارج هوية المجموعة. */
.scene-hub .scene-sticky,.scene-sakinah .scene-sticky{background:var(--ivory)}
.scene-wird .scene-sticky,.scene-biteprint .scene-sticky{background:var(--wash)}

/* ---------- الأجهزة ---------- */
.device-stage{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:72vh;filter:drop-shadow(0 34px 46px rgba(27,34,33,.22))}
.iphone-frame{position:relative;width:min(28vw,336px);aspect-ratio:1206/2622;background:#090A0B;border-radius:min(4.5vw,58px);box-shadow:0 0 0 2px #3C3F42,inset 0 0 0 1px #050505,0 0 0 3px rgba(27,34,33,.14);overflow:hidden;isolation:isolate}
.iphone-frame:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 0 0 2px rgba(255,255,255,.08),inset 0 0 18px rgba(0,0,0,.22);pointer-events:none;z-index:6}
.iphone-frame>.dynamic-island{display:none}
/* اللقطة تملأ الإطار كاملاً: نسبة الإطار 1206/2622 مطابقة للقطة، فـcover لا يقصّ. */
.scene-shot{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit;background:#050606;opacity:0}
.scene-shot.is-active{opacity:1}
/* الشفافيات محسوبة لا مذوّقة: 0.55 من الحبر على العاجي = 3.4:1، وهو أدنى ما يمرّ
   في تباين عناصر الواجهة (WCAG 1.4.11). ما دونه يختفي تحت الشمس.
   نقاط التبديل أزرار حقيقية: مساحة لمس 24 بكسل حول نقطة 5 بكسل (WCAG 2.5.8).
   لا دوران تلقائي — التبديل بالنقر وحده. */
.shot-dots{display:flex;align-items:center;gap:2px;margin-top:16px}
.shot-dot{display:grid;place-items:center;min-width:26px;height:26px;padding:0;border:0;background:transparent;cursor:pointer}
.shot-dot:before{content:"";width:5px;height:5px;border-radius:50%;background:var(--ink);opacity:.55}
.shot-dot.is-active:before{width:22px;border-radius:9px;opacity:.85}
.shot-dot:hover:before{opacity:.72}
.shot-dot.is-active:hover:before{opacity:1}
/* اللابتوب: الحافة رفيعة والذقن أعرض — كما هو الجهاز فعلاً. الحواف القديمة
   كانت ٦٪ من العرض على كل جانب (٤٨ بكسل) فتقرأ كإطار صورة لا كشاشة.
   الزجاج نفسه بنسبة اللقطة 1720/1075، والصورة cover — فلا شريط فارغ إطلاقاً. */
.mac-stage{--lid:min(54vw,860px);--bezel:clamp(5px,.72vw,11px);--chin:clamp(11px,1.65vw,25px);min-height:auto}
.macbook-frame{position:relative;width:var(--lid);padding:var(--bezel) var(--bezel) var(--chin);border-radius:clamp(8px,1vw,14px) clamp(8px,1vw,14px) 4px 4px;background:linear-gradient(160deg,#4E5157,#232529 10%,#131518 55%,#0B0C0E);box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 0 0 1px rgba(255,255,255,.07),0 0 0 1px rgba(27,34,33,.22)}
.macbook-screen{position:relative;aspect-ratio:1720/1075;overflow:hidden;border-radius:2px;background:var(--ivory);box-shadow:inset 0 0 0 1px rgba(0,0,0,.55)}
.macbook-frame .scene-shot{inset:0;width:100%;height:100%;object-fit:cover;border-radius:0;background:var(--ivory)}
.mac-camera{position:absolute;z-index:9;top:0;left:0;right:0;height:var(--bezel);display:grid;place-items:center}
.mac-camera:before{content:"";width:3px;height:3px;border-radius:50%;background:#000;opacity:.7}
/* القاعدة بعرض الغطاء نفسه، والمقبض تجويف في مقدمتها. */
.mac-base{width:var(--lid);height:clamp(9px,1.1vw,15px);background:linear-gradient(#C9CACC,#8C9095 42%,#616469);clip-path:polygon(0 0,100% 0,99.2% 62%,96% 100%,4% 100%,.8% 62%);border-radius:0 0 6px 6px}
.mac-base:after{content:"";position:absolute;left:50%;transform:translateX(-50%);width:9%;height:22%;margin-top:-1px;border-radius:0 0 40px 40px;background:rgba(27,34,33,.28)}
.mac-stage .mac-base{position:relative}

/* ---------- الخاتمة ---------- */
.family-close{min-height:90svh;display:flex;flex-direction:column;justify-content:space-between;padding:clamp(110px,14vw,200px) clamp(24px,8vw,140px) 34px;background:var(--shadow);color:var(--ivory)}
.close-copy{max-width:850px}
.close-copy h2{font-size:clamp(52px,8vw,112px)}
.close-copy .hero-label{color:var(--sand)}
.close-copy>p:not(.hero-label){color:var(--sand);font-size:18px}
.family-close .scene-cta{border-color:var(--ivory);background:transparent;color:var(--ivory)}
.family-close .scene-cta:hover{background:var(--ivory);color:var(--ink)}
.family-close :focus-visible{outline-color:var(--ivory)}
footer{display:flex;justify-content:space-between;gap:20px;padding-top:60px;border-top:1px solid rgba(230,225,213,.18);color:var(--sand);font:10px var(--label);letter-spacing:.12em}

/* ---------- الجوال ---------- */
@media(max-width:860px){
  .site-header{height:64px;padding:0 18px}
  .brand span,.primary-nav a:not(:first-child){display:none}
  .primary-nav{margin-inline-start:auto}
  .family-hero{min-height:100svh;display:flex;flex-direction:column;justify-content:center;padding:105px 22px 55px}
  .hero-copy{text-align:center}
  .hero-copy h1{font-size:clamp(35px,10vw,52px)}
  .hero-lead{font-size:16px}
  .family-devices{order:-1;width:100%;height:39vh;margin-bottom:20px}
  .family-phone{width:min(36vw,150px);border-radius:24px}
  .product-scene{min-height:auto;scroll-margin-top:64px}
  .scene-sticky{position:relative;min-height:auto;display:flex;flex-direction:column;gap:42px;padding:100px 22px 90px}
  .device-stage{order:-1;min-height:auto}
  .iphone-frame{width:min(72vw,300px);border-radius:43px}
  .mac-stage{--lid:90vw}
  .scene-index{margin-bottom:28px}
  .scene-copy{text-align:center}
  .scene-copy h2{font-size:clamp(34px,9.5vw,52px)}
  .scene-lead{font-size:16px}
  .scene-points,.scene-actions{justify-content:center}
  .family-close{min-height:75svh;padding:110px 22px 28px}
  .close-copy h2{font-size:clamp(46px,15vw,72px)}
  footer{flex-direction:column}
}

@media(prefers-reduced-transparency:reduce){.site-header{background:var(--ivory);backdrop-filter:none}}
@media(prefers-contrast:more){:root{--line:rgba(27,34,33,.34);--line2:rgba(27,34,33,.56);--muted:rgba(27,34,33,.9)}}
