/* ==========================================================
   أريب العمران — Areeb Al Omran | Main Stylesheet
   Brand gold extracted from official logo: #C0AB36
   ========================================================== */

:root{
  /* ===== الهوية (ثابتة في الوضعين) ===== */
  --gold:#C0AB36;
  --gold-light:#D8C566;
  --gold-dark:#7A6B1C;
  --gold-tint:#FBF8EC;
  --gold-line:rgba(192,171,54,.28);
  --charcoal:#14161A;
  --charcoal-soft:#1E2228;
  --wa:#25D366;
  --wa-dark:#1DA851;

  /* ===== توكنات المظهر — الوضع الفاتح ===== */
  --bg:#FFFFFF;              /* الخلفية الأساسية */
  --bg-alt:#FAF9F6;          /* الأقسام الثانوية */
  --surface:#FFFFFF;         /* البطاقات والنماذج */
  --surface-2:#FAF9F6;       /* حقول ومناطق فرعية */
  --text:#14161A;            /* النص الرئيسي */
  --text-body:#2A2E35;       /* نص الفقرات */
  --text-muted:#6B7280;      /* النص الثانوي */
  --text-on-gold:#14161A;   /* فحمي على الذهبي — تباين عالٍ في الوضعين */
  --border:#E7E5DE;
  --header-bg:rgba(255,255,255,.92);
  --menu-bg:#FFFFFF;
  --img-veil:rgba(0,0,0,0);  /* طبقة الصور — شفافة في الفاتح */

  --shadow-sm:0 1px 2px rgba(20,22,26,.06);
  --shadow:0 6px 24px rgba(20,22,26,.07);
  --shadow-lg:0 18px 48px rgba(20,22,26,.12);

  /* أسماء قديمة محفوظة للتوافق */
  --ink:var(--text-body);
  --muted:var(--text-muted);
  --line:var(--border);
  --light:var(--surface);
  --sh-sm:var(--shadow-sm);
  --sh:var(--shadow);
  --sh-lg:var(--shadow-lg);

  /* Type */
  --font-ar:'IBM Plex Sans Arabic','Tajawal','Noto Sans Arabic','Segoe UI',
            'Geeza Pro','Arabic Typesetting',Tahoma,system-ui,sans-serif;
  --font-en:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;

  /* Layout */
  --wrap:1200px;
  --nav-h:72px;
  --r-sm:8px; --r:14px; --r-lg:20px;
  --t:.28s cubic-bezier(.4,0,.2,1);
  --theme-t:.38s cubic-bezier(.4,0,.2,1);
}

/* ===== الوضع الداكن ===== */
html[data-theme="dark"]{
  --bg:#11120F;
  --bg-alt:#181914;
  --surface:#20211C;
  --surface-2:#181914;
  --text:#F5F1E6;
  --text-body:#E6E2D6;
  --text-muted:#BDB9AE;
  --text-on-gold:#14161A;
  --border:rgba(245,241,230,.13);
  --gold-tint:rgba(192,171,54,.10);
  --gold-line:rgba(192,171,54,.34);
  --gold-dark:#D8C566;          /* الذهبي الغامق يفتح ليبقى مقروءًا */
  --header-bg:rgba(17,18,15,.92);
  --menu-bg:#181914;
  --charcoal:#0D0E0C;           /* الأقسام الداكنة تصير أعمق قليلًا من الخلفية */
  --charcoal-soft:#1B1C17;
  --img-veil:rgba(10,11,9,.14); /* طبقة خفيفة جدًا فوق الصور لراحة العين */

  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow:0 6px 24px rgba(0,0,0,.45);
  --shadow-lg:0 18px 48px rgba(0,0,0,.55);
}

/* انتقال ناعم عند تبديل المظهر */
body.theme-anim .site-header,
body.theme-anim .card,
body.theme-anim .choice,
body.theme-anim .step,
body.theme-anim .faq-item,
body.theme-anim .form-card,
body.theme-anim .info-tile,
body.theme-anim .nav-links,
body.theme-anim .section--alt,
body.theme-anim input,
body.theme-anim select,
body.theme-anim textarea{
  transition:background-color var(--theme-t),color var(--theme-t),
             border-color var(--theme-t),box-shadow var(--theme-t) !important;
}

*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--nav-h) + 16px)}
body{
  font-family:var(--font-ar);
  color:var(--text-body);
  background:var(--bg);
  line-height:1.75;
  font-size:16px;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
html[lang="en"] body{font-family:var(--font-en);line-height:1.65}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none;transition:color var(--t)}
ul{list-style:none}
button{font:inherit;cursor:pointer;border:0;background:none;color:inherit}
svg{max-width:100%;height:auto}
.btn svg,.wa-float svg,.to-top svg,.card-ico svg,.info-tile svg,.foot-contact svg,.choice-badge svg{height:auto}
:focus-visible{outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}

/* skip link */
.skip-link{
  position:fixed;inset-block-start:-80px;inset-inline-start:16px;z-index:1500;
  background:var(--gold);color:#14161A;padding:.7rem 1.2rem;border-radius:var(--r-sm);
  font-weight:600;font-size:.92rem;transition:inset-block-start var(--t);
}
.skip-link:focus{inset-block-start:12px;color:#14161A}

/* ---------- Typography ---------- */
h1,h2,h3,h4{font-weight:700;line-height:1.3;color:var(--text);letter-spacing:-.01em}
h1{font-size:clamp(1.85rem,5.2vw,3.15rem);font-weight:800}
h2{font-size:clamp(1.5rem,3.6vw,2.35rem)}
h3{font-size:clamp(1.12rem,2.2vw,1.4rem)}
h4{font-size:1.05rem}
p{color:var(--text-body)}
.lead{font-size:clamp(1rem,2vw,1.16rem);color:var(--text-muted);line-height:1.9}
.eyebrow{
  display:inline-block;font-size:.8rem;font-weight:700;letter-spacing:.12em;
  color:var(--gold-dark);text-transform:uppercase;margin-bottom:.7rem;
}

/* ---------- Layout ---------- */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:20px}
.section{padding:clamp(48px,7vw,92px) 0}
.section--alt{background:var(--bg-alt)}
.section--dark{background:var(--charcoal);color:#EDEBE4}
.section--dark h2,.section--dark h3{color:#fff}
.section--dark p,
.section--dark .sec-head p,
.section--dark .lead{color:#C6C4BD}

.sec-head{max-width:680px;margin:0 auto clamp(32px,5vw,56px);text-align:center}
.sec-head p{color:var(--text-muted);margin-top:.6rem}
.sec-head--start{text-align:start;margin-inline:0}
.rule{width:56px;height:3px;background:var(--gold);border-radius:2px;margin:14px auto 0}
.sec-head--start .rule{margin-inline:0}

.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(270px,1fr))}
.grid-4{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.55rem;
  padding:.82rem 1.6rem;border-radius:var(--r-sm);font-weight:600;font-size:.97rem;
  transition:var(--t);cursor:pointer;text-align:center;min-height:48px;
  border:1.5px solid transparent;
}
.btn svg{width:18px;height:18px;flex:none;display:block}
svg{max-width:100%}
.btn-gold{background:var(--gold);color:var(--text-on-gold)}
.btn-gold:hover{background:var(--gold-dark);color:var(--text-on-gold);transform:translateY(-2px);box-shadow:0 8px 22px rgba(192,171,54,.32)}
.btn-outline{border-color:var(--gold);color:var(--gold-dark);background:transparent}
.btn-outline:hover{background:var(--gold);color:var(--text-on-gold)}
.btn-ghost-light{border-color:rgba(255,255,255,.5);color:#fff}
.btn-ghost-light:hover{background:#fff;color:#14161A;border-color:#fff}
.btn-dark{background:var(--charcoal);color:#F5F1E6}
.btn-dark:hover{background:var(--charcoal-soft);transform:translateY(-2px)}
.btn-wa,.nav-links a.btn-wa{background:var(--wa);color:#fff}
.btn-wa:hover,.nav-links a.btn-wa:hover{color:#fff}
.btn-wa:hover{background:var(--wa-dark);transform:translateY(-2px)}
.btn-sm{padding:.55rem 1rem;font-size:.87rem;min-height:40px}
.btn-row{display:flex;gap:12px;flex-wrap:wrap}
.btn-row--center{justify-content:center}

/* ---------- Header / Nav ---------- */
.site-header{
  position:fixed;inset-block-start:0;inset-inline:0;z-index:900;
  background:var(--header-bg);backdrop-filter:saturate(180%) blur(12px);
  border-bottom:1px solid var(--border);transition:box-shadow var(--t),background-color var(--theme-t);
}
.site-header.scrolled{box-shadow:var(--sh-sm)}
.nav{
  height:var(--nav-h);display:flex;align-items:center;justify-content:space-between;gap:16px;
  max-width:var(--wrap);margin-inline:auto;padding-inline:20px;
}
.brand{display:flex;align-items:center;gap:10px;flex:none}
.brand img{height:44px;width:auto}
.brand-text{display:flex;flex-direction:column;line-height:1.15}
.brand-ar{font-weight:800;font-size:1rem;color:var(--text)}
.brand-sub{font-size:.68rem;color:var(--muted);letter-spacing:.04em}

.nav-links{display:flex;align-items:center;gap:26px}
.nav-links a{font-size:.94rem;font-weight:500;color:var(--ink);padding:6px 0;position:relative}
.nav-links a::after{
  content:'';position:absolute;inset-block-end:0;inset-inline-start:0;
  width:0;height:2px;background:var(--gold);transition:width var(--t);
}
.nav-links a:hover{color:var(--gold-dark)}
.nav-links a:hover::after,.nav-links a[aria-current="page"]::after{width:100%}
.nav-links a[aria-current="page"]{color:var(--gold-dark);font-weight:600}

.nav-actions{display:flex;align-items:center;gap:12px;flex:none}
.lang-btn{
  border:1px solid var(--border);border-radius:var(--r-sm);padding:.45rem .8rem;
  font-weight:700;font-size:.85rem;color:var(--text-body);transition:var(--t);min-height:40px;
}
.lang-btn:hover{border-color:var(--gold);color:var(--gold-dark);background:var(--gold-tint)}

.burger{display:none;flex-direction:column;gap:5px;padding:10px;border-radius:var(--r-sm)}
.burger span{width:22px;height:2px;background:var(--text);border-radius:2px;transition:var(--t)}
.burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.nav-overlay{
  position:fixed;inset:var(--nav-h) 0 0;background:rgba(20,22,26,.45);
  opacity:0;visibility:hidden;transition:var(--t);z-index:880;
}
.nav-overlay.open{opacity:1;visibility:visible}

/* ---------- Hero ---------- */
.hero{
  position:relative;margin-block-start:var(--nav-h);
  min-height:clamp(520px,82vh,720px);
  display:flex;align-items:center;justify-content:center;
  color:#fff;text-align:center;overflow:hidden;
}
.hero picture{position:absolute;inset:0;z-index:0;display:contents}
.hero-bg{position:absolute;inset:0;z-index:0;width:100%;height:100%;object-fit:cover;display:block}
.hero::after{
  content:'';position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(20,22,26,.58) 0%,rgba(20,22,26,.50) 42%,rgba(20,22,26,.74) 100%);
  pointer-events:none;
}
.hero-inner{
  position:relative;z-index:2;
  max-width:820px;padding:100px 20px;
  opacity:1 !important;visibility:visible !important;transform:none !important;
}
.hero h1{color:#fff;margin-bottom:1rem;text-shadow:0 2px 20px rgba(0,0,0,.3)}
.hero h1 .accent{color:var(--gold-light)}
.hero p{color:rgba(255,255,255,.9);font-size:clamp(1rem,2.1vw,1.2rem);max-width:640px;margin:0 auto 2rem;line-height:1.9}
.hero .btn-row{justify-content:center}
.hero-mark{height:64px;width:auto;margin:0 auto 1.6rem;filter:brightness(0) invert(1) opacity(.9)}

.page-hero{
  margin-block-start:var(--nav-h);background:var(--charcoal);color:#fff;
  padding:clamp(52px,8vw,88px) 0;position:relative;overflow:hidden;
}
.page-hero::before{
  content:'';position:absolute;inset-block-start:-40%;inset-inline-end:-10%;
  width:520px;height:520px;border-radius:50%;
  background:radial-gradient(circle,rgba(192,171,54,.18),transparent 68%);
}
.page-hero .wrap{position:relative}
.page-hero h1{color:#fff;max-width:18ch}
.page-hero p{color:rgba(255,255,255,.78);max-width:60ch;margin-top:1rem;font-size:1.06rem}

/* ---------- Path chooser (مطور / مالك) ---------- */
.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:24px}
.choice{
  position:relative;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  overflow:hidden;box-shadow:var(--sh-sm);transition:var(--t);display:flex;flex-direction:column;
}
.choice:hover{transform:translateY(-6px);box-shadow:var(--sh-lg);border-color:var(--gold-line)}
.choice-media{position:relative;aspect-ratio:16/9;background:var(--bg-alt);overflow:hidden}
.choice-media picture{display:block;width:100%;height:100%}
.choice{position:relative}
.choice-media img{width:100%;height:100%;object-fit:cover;transition:transform .6s ease;
  background:var(--bg-alt)}
.choice:hover .choice-media img{transform:scale(1.05)}

.choice-badge{
  width:48px;height:48px;border-radius:14px;background:var(--gold);
  display:grid;place-items:center;
  box-shadow:0 4px 14px rgba(192,171,54,.3);
  margin-bottom:14px;
}
.choice-badge svg{width:24px;height:24px;color:var(--text-on-gold)}
.choice-body{position:relative;padding:46px 24px 26px;display:flex;flex-direction:column;flex:1}
.choice-body h3{margin-bottom:.5rem}
.choice-body p{color:var(--text-muted);font-size:.96rem;flex:1;margin-bottom:1.3rem}

/* Sticky "change my path" bar */
.path-bar{background:var(--gold-tint);border-block-end:1px solid var(--gold-line)}
.path-bar .wrap{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding-block:12px;flex-wrap:wrap;
}
.path-bar span{font-size:.92rem;color:var(--gold-dark);font-weight:600}


.content-img{
  width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;
  border-radius:var(--r-lg);box-shadow:var(--sh);background:var(--surface-2);
}
picture{display:block}

/* ---------- Cards ---------- */
.card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r);
  padding:26px 22px;box-shadow:var(--sh-sm);transition:var(--t);height:100%;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--sh);border-color:var(--gold-line)}
.card-ico{
  width:48px;height:48px;border-radius:12px;background:var(--gold-tint);
  display:grid;place-items:center;margin-bottom:16px;
}
.card-ico svg{width:24px;height:24px;color:var(--gold-dark)}
.card h3{font-size:1.08rem;margin-bottom:.5rem}
.card p{color:var(--text-muted);font-size:.94rem;line-height:1.8}
.card ul{margin-top:.8rem;display:grid;gap:.5rem}
.card ul li{
  position:relative;padding-inline-start:18px;font-size:.9rem;color:var(--text-muted);line-height:1.7;
}

.card ul li::before{
  content:'';position:absolute;inset-inline-start:0;inset-block-start:.65em;
  width:6px;height:6px;border-radius:50%;background:var(--gold);
}
.section--dark .card{background:var(--charcoal-soft);border-color:rgba(255,255,255,.09)}
.section--dark .card p,.section--dark .card ul li{color:#A9A7A0}
.section--dark .card-ico{background:rgba(192,171,54,.14)}
.section--dark .card-ico svg{color:var(--gold-light)}

.num-card{position:relative;padding-block-start:34px}
.num-card .num{
  position:absolute;inset-block-start:22px;inset-inline-end:22px;
  font-size:2rem;font-weight:800;color:var(--gold);opacity:.22;line-height:1;
}

/* Plain feature list */
.tick-list{display:grid;gap:12px}
.tick-list li{
  position:relative;padding-inline-start:32px;color:var(--text-body);font-size:.97rem;line-height:1.8;
}
.tick-list li::before{
  content:'';position:absolute;inset-inline-start:0;inset-block-start:.35em;
  width:20px;height:20px;border-radius:50%;background:var(--gold-tint);
  border:1px solid var(--gold-line);
}
.tick-list li::after{
  content:'';position:absolute;inset-inline-start:6px;inset-block-start:.72em;
  width:8px;height:4px;border-inline-start:2px solid var(--gold-dark);
  border-block-end:2px solid var(--gold-dark);transform:rotate(-45deg);
}

/* ---------- Steps / process ---------- */
.steps{display:grid;gap:18px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));counter-reset:s}
.step{
  position:relative;background:var(--surface);border:1px solid var(--border);
  border-radius:var(--r);padding:24px 20px;transition:var(--t);
}
.step:hover{border-color:var(--gold-line);box-shadow:var(--sh)}
.step-n{
  width:40px;height:40px;border-radius:50%;background:var(--charcoal);color:var(--gold-light);
  display:grid;place-items:center;font-weight:700;font-size:.95rem;margin-bottom:14px;
}
.step h4{font-size:1rem;margin-bottom:.35rem}
.step p{font-size:.89rem;color:var(--text-muted);line-height:1.7}

/* ---------- Stats / value strip ---------- */
.value-strip{
  background:linear-gradient(135deg,var(--charcoal) 0%,var(--charcoal-soft) 100%);
  color:#fff;border-radius:var(--r-lg);padding:clamp(28px,4vw,44px);
  display:grid;gap:26px;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));
}
.value-strip h3{color:var(--gold-light);font-size:1.05rem;margin-bottom:.4rem}
.value-strip p{color:rgba(255,255,255,.72);font-size:.92rem;line-height:1.75}

/* ---------- Accordion (FAQ) ---------- */
.faq{max-width:820px;margin-inline:auto;display:grid;gap:12px}
.faq-item{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);overflow:hidden}
.faq-item.open{border-color:var(--gold-line);box-shadow:var(--sh-sm)}
.faq-q{
  width:100%;display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:18px 20px;text-align:start;font-weight:600;font-size:1rem;color:var(--text);
  min-height:56px;transition:var(--t);
}
.faq-q:hover{color:var(--gold-dark)}
.faq-icon{flex:none;width:22px;height:22px;position:relative}
.faq-icon::before,.faq-icon::after{
  content:'';position:absolute;inset-block-start:50%;inset-inline-start:50%;
  background:var(--gold);border-radius:2px;transform:translate(-50%,-50%);transition:var(--t);
}
.faq-icon::before{width:14px;height:2px}
.faq-icon::after{width:2px;height:14px}
.faq-item.open .faq-icon::after{transform:translate(-50%,-50%) rotate(90deg);opacity:0}
.faq-a{max-height:0;overflow:hidden;transition:max-height .35s ease}
.faq-a p{padding:0 20px 20px;color:var(--text-muted);font-size:.95rem;line-height:1.85}

/* ---------- Forms ---------- */
.form-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);
  padding:clamp(22px,3.5vw,36px);box-shadow:var(--sh);
}
.field{margin-bottom:18px}
.field label{display:block;font-weight:600;font-size:.9rem;margin-bottom:.45rem;color:var(--text)}
.field .req{color:#C0392B}
.field input,.field select,.field textarea{
  width:100%;padding:.8rem .95rem;border:1px solid var(--border);border-radius:var(--r-sm);
  font:inherit;font-size:.96rem;color:var(--text-body);background:var(--surface);transition:var(--t);min-height:48px;
}
.field textarea{min-height:130px;resize:vertical;line-height:1.7}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--gold);box-shadow:0 0 0 3px rgba(192,171,54,.15);
}
.field input.invalid,.field select.invalid,.field textarea.invalid{border-color:#C0392B;background:rgba(192,57,43,.08)}
.field-row{display:grid;gap:0 18px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.consent{display:flex;align-items:flex-start;gap:10px;margin-bottom:20px}
.consent input{width:20px;height:20px;min-height:20px;accent-color:var(--gold);flex:none;margin-top:3px}
.consent label{font-size:.9rem;color:var(--text-muted);font-weight:400;line-height:1.7}
.consent a{color:var(--gold-dark);text-decoration:underline}
.form-note{font-size:.84rem;color:var(--text-muted);margin-top:14px;line-height:1.7}

.form-success{
  display:none;text-align:center;padding:36px 20px;
  background:var(--gold-tint);border:1px solid var(--gold-line);border-radius:var(--r);
}
.form-success.show{display:block}
.form-success .ok{
  width:56px;height:56px;border-radius:50%;background:var(--gold);color:var(--text-on-gold);
  display:grid;place-items:center;margin:0 auto 14px;font-size:1.6rem;
}
.form-success h3{margin-bottom:.4rem}
.form-success p{color:var(--text-muted);font-size:.95rem}

/* ---------- Contact info tiles ---------- */
.info-tile{
  display:flex;align-items:center;gap:14px;padding:18px 20px;background:var(--surface);
  border:1px solid var(--border);border-radius:var(--r);transition:var(--t);
}
.info-tile:hover{border-color:var(--gold-line);box-shadow:var(--sh-sm);transform:translateY(-2px)}
.info-tile .ico{
  width:44px;height:44px;border-radius:12px;background:var(--gold-tint);
  display:grid;place-items:center;flex:none;
}
.info-tile .ico svg{width:22px;height:22px;color:var(--gold-dark)}
.info-tile .lbl{font-size:.8rem;color:var(--text-muted);display:block}
.info-tile .val{font-weight:700;color:var(--text);font-size:1rem;direction:ltr;display:block}
html[lang="ar"] .info-tile .val{text-align:start}

.map-placeholder{
  border:1px dashed var(--gold-line);background:var(--gold-tint);border-radius:var(--r);
  padding:40px 24px;text-align:center;color:var(--text-muted);font-size:.94rem;
}

/* ---------- CTA band ---------- */
.cta-band{
  background:linear-gradient(135deg,var(--charcoal) 0%,#23262C 100%);
  color:#fff;text-align:center;padding:clamp(44px,6vw,76px) 0;position:relative;overflow:hidden;
}
.cta-band::before{
  content:'';position:absolute;inset-block-start:-50%;inset-inline-start:50%;transform:translateX(-50%);
  width:700px;height:700px;border-radius:50%;
  background:radial-gradient(circle,rgba(192,171,54,.14),transparent 70%);
}
.cta-band .wrap{position:relative}
.cta-band h2{color:#fff;max-width:22ch;margin-inline:auto}
.cta-band p{color:rgba(255,255,255,.75);max-width:56ch;margin:.9rem auto 1.8rem}

/* ---------- Footer ---------- */
.site-footer{background:var(--charcoal);color:#B9B7B0;padding:clamp(44px,6vw,72px) 0 0}
.foot-grid{display:grid;gap:32px;grid-template-columns:1.6fr 1fr 1.2fr}
.foot-brand img{height:88px;margin-bottom:20px}
.foot-brand p{font-size:1.05rem;line-height:1.95;color:#B5B2AB;max-width:52ch}
.site-footer h4{color:#fff;font-size:.98rem;margin-bottom:16px}
.site-footer ul{display:grid;gap:10px}
.site-footer a{color:#9C9A94;font-size:.92rem}
.site-footer a:hover{color:var(--gold-light)}
.foot-contact li{display:flex;gap:9px;align-items:center;font-size:.92rem}
.foot-contact svg{width:16px;height:16px;color:var(--gold);flex:none}
.foot-contact a{direction:ltr;unicode-bidi:isolate}
.foot-bottom{
  border-block-start:1px solid rgba(255,255,255,.08);margin-top:36px;padding-block:20px;
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  font-size:.86rem;color:#9A978E;
}
.foot-social{display:flex;gap:10px}
.foot-social a{
  width:36px;height:36px;border-radius:50%;border:1px solid rgba(255,255,255,.14);
  display:grid;place-items:center;transition:var(--t);
}
.foot-social a:hover{background:var(--gold);border-color:var(--gold)}
.foot-social svg{width:16px;height:16px}

/* ---------- Floating buttons ---------- */
.wa-float{
  position:fixed;inset-block-end:24px;inset-inline-start:20px;z-index:850;
  width:55px;height:55px;border-radius:50%;background:var(--wa);color:#fff;
  display:grid;place-items:center;box-shadow:0 8px 24px rgba(37,211,102,.4);
  transition:var(--t);
}
.wa-float:hover{transform:scale(1.07);background:var(--wa-dark)}
.wa-float svg{width:27px;height:27px;display:block;flex:none}
.wa-float.tucked{opacity:.25;pointer-events:none}

.to-top{
  position:fixed;inset-block-end:24px;inset-inline-end:20px;z-index:850;
  width:46px;height:46px;border-radius:50%;background:var(--charcoal);color:#fff;
  display:grid;place-items:center;opacity:0;visibility:hidden;transition:var(--t);
  box-shadow:var(--sh);
}
.to-top.show{opacity:1;visibility:visible}
.to-top:hover{background:var(--gold);transform:translateY(-3px)}
.to-top svg{width:20px;height:20px}

/* ---------- Toast ---------- */
.toast{
  position:fixed;inset-block-start:calc(var(--nav-h) + 14px);inset-inline:20px;z-index:1200;
  max-width:420px;margin-inline:auto;padding:14px 18px;border-radius:var(--r-sm);
  color:#fff;font-size:.94rem;font-weight:500;box-shadow:var(--sh-lg);
  opacity:0;transform:translateY(-14px);transition:var(--t);text-align:center;
}
.toast.show{opacity:1;transform:translateY(0)}
.toast.ok{background:#1E9E5A}
.toast.err{background:#C0392B}

/* ---------- Privacy / prose ---------- */
.prose{max-width:780px;margin-inline:auto}
.prose h2{margin:34px 0 12px;font-size:1.3rem}
.prose h2:first-child{margin-top:0}
.prose p,.prose li{color:var(--text-muted);font-size:.98rem;line-height:1.9}
.prose p{margin-bottom:14px}
.prose ul{display:grid;gap:8px;margin-bottom:16px}
.prose ul li{position:relative;padding-inline-start:18px}
.prose ul li::before{
  content:'';position:absolute;inset-inline-start:0;inset-block-start:.7em;
  width:6px;height:6px;border-radius:50%;background:var(--gold);
}

/* ---------- 404 ---------- */
.err-page{
  margin-block-start:var(--nav-h);min-height:calc(100vh - var(--nav-h) - 100px);
  display:grid;place-items:center;text-align:center;padding:60px 20px;
}
.err-code{font-size:clamp(4.5rem,16vw,9rem);font-weight:800;color:var(--gold);line-height:1;opacity:.9}

/* ---------- Reveal animation ---------- */
/* Reveal معطّل — كل المحتوى ظاهر دائمًا */
.reveal{opacity:1 !important;visibility:visible !important;transform:none !important}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms !important;transition-duration:.01ms !important}
  html{scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
}

/* ---------- i18n visibility ---------- */
[data-lang-only]{display:none}
html[lang="ar"] [data-lang-only="ar"],
html[lang="en"] [data-lang-only="en"]{display:revert}

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .foot-grid{grid-template-columns:1fr 1fr}
  .nav-links{gap:18px}
  .nav-links a{font-size:.9rem}
}

@media (max-width:900px){
  .burger{display:flex}
  .nav-links{
    position:fixed;inset-block-start:var(--nav-h);inset-inline-end:0;
    width:min(84vw,340px);height:calc(100dvh - var(--nav-h));
    background:var(--menu-bg);flex-direction:column;align-items:stretch;gap:0;
    padding:16px 22px;overflow-y:auto;z-index:890;
    transform:translateX(110%);visibility:hidden;
    transition:transform var(--t),visibility var(--t);
    box-shadow:-8px 0 30px rgba(0,0,0,.12);
  }
  html[dir="ltr"] .nav-links{transform:translateX(110%)}
  .nav-links.open{transform:translateX(0) !important;visibility:visible}
  html[dir="rtl"] .nav-links{transform:translateX(-110%)}
  .nav-links a{
    padding:15px 0;border-block-end:1px solid var(--line);font-size:1rem;min-height:52px;
    display:flex;align-items:center;
  }
  .nav-links a::after{display:none}
  .nav-links .btn{margin-top:18px;width:100%}
  .nav-actions .btn-wa{display:none}
}

@media (max-width:640px){
  body{font-size:15.5px}
  .brand img{height:38px}
  .brand-sub{display:none}
  .brand-ar{font-size:.95rem}
  .hero{min-height:78vh}
  .hero-inner{padding:80px 20px 70px;position:relative;z-index:2}
  .hero .btn-row .btn{width:100%}
  .btn-row{flex-direction:column;width:100%}
  .btn-row .btn{width:100%}
  .value-strip{padding:26px 20px}
  .foot-grid{grid-template-columns:1fr;gap:26px}
  .foot-bottom{flex-direction:column;text-align:center;align-items:center}
  .wa-float{inset-block-end:18px;inset-inline-start:16px;width:50px;height:50px}
  .wa-float svg{width:25px;height:25px}
  .to-top{inset-block-end:18px;inset-inline-end:16px;width:42px;height:42px}
  .field-row{grid-template-columns:1fr}
  .path-bar .wrap{flex-direction:column;align-items:stretch;text-align:center}
}

@media (max-width:380px){
  .wrap{padding-inline:16px}
  .brand-text{display:none}
  h1{font-size:1.7rem}
}

/* ==========================================================
   زر تبديل المظهر — Theme Toggle
   ========================================================== */

.theme-toggle{
  position:relative;
  display:inline-flex;align-items:center;justify-content:center;
  width:82px;height:40px;padding:0;flex:0 0 auto;
  border-radius:999px;
  background:linear-gradient(180deg,#25272A 0%,#171A1D 100%);
  border:1px solid rgba(245,241,230,.14);
  cursor:pointer;
  overflow:hidden;
  direction:ltr;
  box-sizing:border-box;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.55),
    inset 0 -1px 0 rgba(245,241,230,.07),
    0 2px 6px rgba(20,22,26,.22);
  transition:transform var(--t),box-shadow var(--t),border-color var(--t);
  -webkit-tap-highlight-color:transparent;
}
.theme-toggle::before{
  content:'';position:absolute;inset:-4px -2px;border-radius:999px;
}
.theme-toggle:hover{
  transform:translateY(-2px);
  border-color:rgba(192,171,54,.32);
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.55),
    inset 0 -1px 0 rgba(245,241,230,.07),
    0 5px 14px rgba(20,22,26,.3);
}
.theme-toggle:active{
  transform:translateY(1px);
  box-shadow:
    inset 0 3px 7px rgba(0,0,0,.62),
    0 1px 3px rgba(20,22,26,.24);
}
.theme-toggle:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}

/* الأيقونتان داخل المسار */
.theme-toggle .tt-ico{
  position:absolute;top:50%;width:18px;height:18px;
  transform:translateY(-50%);
  pointer-events:none;
  transition:opacity var(--theme-t),transform var(--theme-t);
}
.theme-toggle .tt-sun{inset-inline-start:11px;color:#C0AB36}
.theme-toggle .tt-moon{inset-inline-end:11px;color:#9EA3AA}

/* الدائرة المتحركة */
.theme-toggle .tt-knob{
  position:absolute;top:50%;inset-inline-start:4px;
  width:32px;height:32px;border-radius:50%;
  transform:translateY(-50%);
  display:grid;place-items:center;
  background:radial-gradient(circle at 34% 30%,#F3E4A4 0%,#D9C15C 45%,#B39A2C 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,.42),
    inset 0 1px 1px rgba(255,255,255,.55),
    inset 0 -2px 3px rgba(120,98,18,.4),
    0 0 12px rgba(192,171,54,.45);
  transition:transform var(--theme-t),background var(--theme-t),box-shadow var(--theme-t);
  will-change:transform;
}
.theme-toggle .tt-knob svg{width:17px;height:17px;color:#4A3D08;transition:opacity var(--theme-t),transform var(--theme-t)}
.theme-toggle .tt-knob .k-moon{position:absolute;opacity:0;transform:scale(.55) rotate(-35deg);color:#20232A}
.theme-toggle .tt-knob .k-sun{opacity:1;transform:scale(1) rotate(0)}

/* الحالة الداكنة: المؤشر ينتقل نحو الهلال */
html[data-theme="dark"] .theme-toggle{
  background:linear-gradient(180deg,#1C1E19 0%,#101210 100%);
  border-color:rgba(245,241,230,.16);
}
html[data-theme="dark"] .theme-toggle .tt-knob{
  /* RTL و LTR: الاتجاه المنطقي يتكفّل بالجهة الصحيحة */
  transform:translateY(-50%) translateX(42px);
  background:radial-gradient(circle at 34% 30%,#FBFAF6 0%,#DEDCD4 48%,#AFAEA7 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,.5),
    inset 0 1px 1px rgba(255,255,255,.7),
    inset 0 -2px 3px rgba(120,120,118,.34),
    0 0 12px rgba(245,241,230,.34);
}
html[data-theme="dark"] .theme-toggle .tt-knob .k-sun{opacity:0;transform:scale(.55) rotate(35deg)}
html[data-theme="dark"] .theme-toggle .tt-knob .k-moon{opacity:1;transform:scale(1) rotate(0)}
html[data-theme="dark"] .theme-toggle .tt-sun{opacity:.34;transform:translateY(-50%) scale(.86)}
html[data-theme="dark"] .theme-toggle .tt-moon{color:#E8E5DB;opacity:1}
html[data-theme="light"] .theme-toggle .tt-moon,
html:not([data-theme="dark"]) .theme-toggle .tt-moon{opacity:.4;transform:translateY(-50%) scale(.86)}



/* الهاتف */
@media (max-width:640px){
  .theme-toggle{width:70px;height:36px}
  .theme-toggle .tt-knob{width:28px;height:28px}
  .theme-toggle .tt-knob svg{width:15px;height:15px}
  .theme-toggle .tt-ico{width:16px;height:16px}
  .theme-toggle .tt-sun{inset-inline-start:9px}
  .theme-toggle .tt-moon{inset-inline-end:9px}
  html[data-theme="dark"] .theme-toggle .tt-knob{transform:translateY(-50%) translateX(32px)}

}

@media (prefers-reduced-motion:reduce){
  .theme-toggle,.theme-toggle *{transition-duration:.01ms !important}
  body.theme-anim,body.theme-anim *{transition-duration:.01ms !important}
}

/* ==========================================================
   تحسينات الوضع الداكن على العناصر المتبقية
   ========================================================== */

/* طبقة لطيفة جدًا فوق الصور لراحة العين */
html[data-theme="dark"] picture{position:relative}
html[data-theme="dark"] .content-img,
html[data-theme="dark"] .choice-media img{filter:brightness(.92) saturate(.97)}
html[data-theme="dark"] .hero::after{
  background:linear-gradient(180deg,rgba(10,11,9,.66) 0%,rgba(10,11,9,.58) 42%,rgba(10,11,9,.8) 100%);
}


/* الأقسام الداكنة تبقى متميزة عن الخلفية */
html[data-theme="dark"] .section--dark{border-block:1px solid rgba(245,241,230,.07)}
html[data-theme="dark"] .section--dark .card{background:#1A1B16;border-color:rgba(245,241,230,.1)}
html[data-theme="dark"] .site-footer{border-block-start:1px solid rgba(245,241,230,.08)}
html[data-theme="dark"] .cta-band{
  background:linear-gradient(135deg,#0D0E0C 0%,#191A15 100%);
  border-block:1px solid rgba(245,241,230,.07);
}
html[data-theme="dark"] .value-strip{
  background:linear-gradient(135deg,#1A1B16 0%,#232419 100%);
  border:1px solid rgba(245,241,230,.09);
}
html[data-theme="dark"] .step-n{background:#2A2B22;color:var(--gold-light)}
html[data-theme="dark"] .page-hero{background:#0D0E0C}

/* الشعار يبقى واضحًا على الخلفية الداكنة */
html[data-theme="dark"] .brand img{filter:brightness(1.12)}

/* زر العودة للأعلى */
html[data-theme="dark"] .to-top{background:#2A2B22;border:1px solid rgba(245,241,230,.12)}
html[data-theme="dark"] .to-top:hover{background:var(--gold);color:#14161A}

/* الحقول والنماذج */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{background:var(--surface-2);color:var(--text)}
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder{color:#8A877E}
html[data-theme="dark"] select option{background:#20211C;color:var(--text)}
html[data-theme="dark"] .field input.invalid,
html[data-theme="dark"] .field select.invalid,
html[data-theme="dark"] .field textarea.invalid{
  border-color:#E06C5F;background:rgba(224,108,95,.1);
}
html[data-theme="dark"] .field .req,
html[data-theme="dark"] .form-success .ok{color:inherit}

/* رسائل النجاح والخطأ */
html[data-theme="dark"] .toast.ok{background:#1E8A52}
html[data-theme="dark"] .toast.err{background:#B5453A}
html[data-theme="dark"] .form-success{
  background:rgba(192,171,54,.09);border-color:rgba(192,171,54,.3);
}

/* الأسئلة الشائعة والقائمة */
html[data-theme="dark"] .faq-item.open{border-color:var(--gold-line)}
html[data-theme="dark"] .nav-links{box-shadow:-8px 0 30px rgba(0,0,0,.55)}
html[data-theme="dark"] .lang-btn:hover{background:rgba(192,171,54,.12);color:var(--gold-light)}
html[data-theme="dark"] .nav-links a[aria-current="page"],
html[data-theme="dark"] .nav-links a:hover{color:var(--gold-light)}
html[data-theme="dark"] .eyebrow{color:var(--gold-light)}
html[data-theme="dark"] .section-title h2,
html[data-theme="dark"] .sec-head h2{color:var(--text)}

/* شريط المسار وبطاقات الاختيار */
html[data-theme="dark"] .path-bar{background:rgba(192,171,54,.08);border-block-end-color:var(--gold-line)}
html[data-theme="dark"] .path-bar span{color:var(--gold-light)}
html[data-theme="dark"] .map-placeholder{background:rgba(192,171,54,.06)}

/* الروابط داخل النصوص */
html[data-theme="dark"] .consent a,
html[data-theme="dark"] .prose a{color:var(--gold-light)}

/* ==========================================================
   نظام المؤثرات الخفيفة — Light Motion System
   آمن تمامًا: المحتوى ظاهر دائمًا، الحركة إضافة فقط
   يُفعّل عبر <html class="fx"> التي يضيفها JS بعد التأكد
   ========================================================== */

/* ظهور العناصر عند التمرير — يعمل فقط مع .fx */
html.fx .fx-in{
  opacity:0;
  transform:translateY(20px);
  transition:opacity .7s cubic-bezier(.22,.61,.36,1),
             transform .7s cubic-bezier(.22,.61,.36,1);
  will-change:opacity,transform;
}
html.fx .fx-in.fx-show{
  opacity:1;
  transform:none;
}
/* تأخير متدرّج لعناصر الشبكة (stagger) */
html.fx .fx-stagger > *{transition-delay:calc(var(--i,0) * 80ms)}

/* بطاقات ترتفع بلطف عند المرور (فوق ما هو موجود) */
.card,.choice,.step,.info-tile{will-change:transform}

/* الأزرار: لمعة خفيفة تمر عند المرور */
html.fx .btn-gold{position:relative;overflow:hidden}
html.fx .btn-gold::after{
  content:'';position:absolute;inset-block:0;inset-inline-start:-120%;
  width:60%;height:100%;pointer-events:none;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.28),transparent);
  transform:skewX(-18deg);
  transition:inset-inline-start .7s ease;
}
html.fx .btn-gold:hover::after{inset-inline-start:130%}

/* زر واتساب العائم: نبضة خفيفة جدًا */
html.fx .wa-float{animation:wa-pulse 3.4s ease-in-out infinite}
@keyframes wa-pulse{
  0%,100%{box-shadow:0 8px 24px rgba(37,211,102,.4)}
  50%{box-shadow:0 8px 24px rgba(37,211,102,.4),0 0 0 10px rgba(37,211,102,.08)}
}
html.fx .wa-float:hover{animation:none}

/* الصور داخل البطاقات: تكبير لطيف عند المرور (موجود جزئيًا — نعزّزه) */
html.fx .choice-media img{transition:transform .8s cubic-bezier(.22,.61,.36,1)}
html.fx .choice:hover .choice-media img{transform:scale(1.06)}

/* ===== حركة اللوجو ===== */
/* لوجو الهيدر: يطفو بلطف شديد باستمرار */
html.fx .brand img{animation:logo-float 4.5s ease-in-out infinite}
@keyframes logo-float{
  0%,100%{transform:translateY(0) rotate(0)}
  25%{transform:translateY(-3px) rotate(-1.5deg)}
  75%{transform:translateY(-1px) rotate(1.5deg)}
}
/* عند المرور على العلامة: توهّج ذهبي خفيف + دوران بسيط */
html.fx .brand:hover img{
  animation:logo-spin .9s cubic-bezier(.34,1.56,.64,1);
  filter:drop-shadow(0 0 8px rgba(192,171,54,.5));
}
@keyframes logo-spin{
  0%{transform:rotate(0) scale(1)}
  60%{transform:rotate(8deg) scale(1.08)}
  100%{transform:rotate(0) scale(1)}
}

/* لوجو الهيرو (الشعلة): يظهر بنبض خفيف عند فتح الصفحة */
html.fx .hero-mark{animation:mark-in 1s ease-out both,logo-float 5s ease-in-out infinite 1s}
@keyframes mark-in{
  0%{opacity:0;transform:translateY(12px) scale(.9)}
  100%{opacity:.9;transform:translateY(0) scale(1)}
}

/* لوجو الفوتر: توهّج خفيف عند المرور */
html.fx .foot-brand img{transition:filter .4s ease,transform .4s ease}
html.fx .foot-brand img:hover{
  filter:drop-shadow(0 0 10px rgba(192,171,54,.45));
  transform:scale(1.04);
}

/* أيقونات البطاقات: نبضة خفيفة عند المرور على البطاقة */
html.fx .card:hover .card-ico,
html.fx .choice:hover .choice-badge{
  transform:translateY(-2px) scale(1.06);
  transition:transform .35s cubic-bezier(.34,1.56,.64,1);
}
html.fx .card-ico,html.fx .choice-badge{transition:transform .35s ease}

/* شارة الرقم في بطاقات الخدمات: تتحرك قليلًا عند المرور */
html.fx .num-card:hover .num{
  transform:translateY(-3px);
  opacity:.32;
  transition:transform .4s ease,opacity .4s ease;
}
html.fx .num-card .num{transition:transform .4s ease,opacity .4s ease}

/* احترام تفضيل تقليل الحركة — يوقف كل شيء */
@media (prefers-reduced-motion:reduce){
  html.fx .fx-in{opacity:1 !important;transform:none !important;transition:none !important}
  html.fx .brand img,
  html.fx .hero-mark,
  html.fx .wa-float{animation:none !important}
  html.fx .btn-gold::after{display:none}
}
