/* ============================================
   صندوق POS — Design Tokens
   Concept: الصندوق = درج النقدية. كل شي يترتب جواه.
   ============================================ */

:root{
  /* Color */
  --ink:        #07161A;   /* خلفية أساسية - بترولي غامق جدًا */
  --ink-2:      #0D2226;   /* سطح أفتح شوي (بطاقات) */
  --ink-3:      #13302F;   /* سطح أفتح (حدود/فواصل) */
  --paper:      #F4EFE3;   /* أبيض دافئ - لون ورق الإيصال */
  --brass:      #C9992E;   /* ذهبي/برونزي - من لون العملة بالشعار */
  --brass-dim:  #8A6A26;
  --teal:       #2E8C82;   /* تركوازي مطفي - ثانوي */
  --rust:       #B85C38;   /* دافئ للتنبيه/التمييز - نادر الاستخدام */
  --text-hi:    #F4EFE3;
  --text-mid:   #B9C4C2;
  --text-dim:   #6E7E7C;
  --line:       rgba(244,239,227,.09);

  /* Type */
  --f-display: 'Cairo', sans-serif;
  --f-body: 'IBM Plex Sans Arabic', sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --radius: 14px;
  --radius-sm: 8px;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--ink);
  color:var(--text-hi);
  font-family:var(--f-body);
  direction:rtl;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }
::selection{ background:var(--brass); color:var(--ink); }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.01ms !important; animation-iteration-count:1 !important; transition-duration:0.01ms !important; }
}

.wrap{ max-width:1180px; margin:0 auto; padding-inline:32px; }
@media (max-width:720px){ .wrap{ padding-inline:20px; } }

/* ---------- Header ---------- */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(7,22,26,.82);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}
.site-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  padding-block:16px; gap:24px;
}
.brand{ display:flex; align-items:center; gap:10px; text-decoration:none; }
.brand img{ height:34px; filter:invert(1) brightness(1) sepia(1) saturate(3) hue-rotate(-10deg); opacity:.95; }
.brand img{ filter:brightness(0) invert(1); }
.nav-links{ display:flex; align-items:center; gap:8px; }
.nav-links a{
  color:var(--text-mid); text-decoration:none; font-size:14.5px; font-weight:500;
  padding:9px 14px; border-radius:8px; transition:color .2s, background .2s;
}
.nav-links a:hover{ color:var(--text-hi); background:var(--ink-3); }
.nav-links a.active{ color:var(--brass); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.burger{ display:none; background:none; border:1px solid var(--line); border-radius:8px; width:40px; height:40px; color:var(--text-hi); cursor:pointer; }

@media (max-width: 880px){
  .nav-links{
    position:fixed; inset:66px 0 auto 0; flex-direction:column; align-items:stretch;
    background:var(--ink-2); border-bottom:1px solid var(--line); padding:12px;
    transform:translateY(-130%); transition:transform .25s ease; gap:2px;
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a{ padding:14px 16px; }
  .burger{ display:block; }
}

/* ---------- Buttons ---------- */
.btn{
  cursor:pointer; border:none; font-family:var(--f-body); font-weight:700; font-size:15px;
  padding:13px 26px; border-radius:10px; text-decoration:none; display:inline-flex;
  align-items:center; justify-content:center; gap:8px; transition:transform .18s, box-shadow .18s, filter .18s;
}
.btn-primary{
  background:linear-gradient(135deg,#DDAF4A,var(--brass));
  color:#1A1206; box-shadow:0 14px 26px -12px rgba(201,153,46,.55);
}
.btn-primary:hover{ transform:translateY(-1px); filter:brightness(1.05); }
.btn-ghost{
  background:transparent; border:1px solid var(--line); color:var(--text-hi);
}
.btn-ghost:hover{ border-color:var(--brass); color:var(--brass); }
.btn-sm{ padding:9px 16px; font-size:14px; }
.btn-block{ width:100%; }

/* ---------- Eyebrow / labels ---------- */
.eyebrow{
  display:inline-flex; align-items:center; gap:9px; background:var(--ink-2);
  border:1px solid var(--line); padding:7px 15px; border-radius:100px;
  font-size:13.5px; font-weight:600; color:var(--brass);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--brass); }

/* ---------- Typography helpers ---------- */
h1,h2,h3{ font-family:var(--f-display); margin:0; letter-spacing:-.4px; }
.h1{ font-size:52px; font-weight:900; line-height:1.18; }
.h2{ font-size:36px; font-weight:800; line-height:1.28; }
.h3{ font-size:22px; font-weight:800; line-height:1.35; }
.lede{ font-size:18px; line-height:1.8; color:var(--text-mid); }
.mono{ font-family:var(--f-mono); }
@media (max-width:720px){ .h1{ font-size:36px; } .h2{ font-size:28px; } }

section{ position:relative; padding-block:80px; }
.section-head{ max-width:620px; margin-bottom:48px; }
.section-head .eyebrow{ margin-bottom:16px; }
.section-head p{ margin-top:14px; }

/* ---------- Cards ---------- */
.card{
  background:var(--ink-2); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px;
}

/* ---------- Drawer signature element ---------- */
.drawer{
  position:relative; width:100%; max-width:440px; margin-inline-start:auto;
}
.drawer-body{
  position:relative; background:linear-gradient(180deg,#1A3B38,#0D2226);
  border:1px solid var(--line); border-radius:18px; padding:22px;
  box-shadow:0 50px 90px -30px rgba(0,0,0,.65);
}
.drawer-slot{
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  background:var(--ink); border:1px solid var(--line); border-radius:10px;
  padding:14px 16px; margin-bottom:10px;
  opacity:0; transform:translateY(14px);
  animation:slot-in .6s ease forwards;
}
.drawer-slot:last-child{ margin-bottom:0; }
.drawer-slot .label{ font-size:13.5px; color:var(--text-mid); font-weight:600; }
.drawer-slot .value{ font-family:var(--f-mono); font-size:15px; color:var(--text-hi); }
.drawer-slot .swatch{ width:34px; height:34px; border-radius:8px; flex:none; display:flex; align-items:center; justify-content:center; font-size:16px; }
@keyframes slot-in{ to{ opacity:1; transform:translateY(0); } }
.drawer-slot:nth-child(1){ animation-delay:.15s; }
.drawer-slot:nth-child(2){ animation-delay:.32s; }
.drawer-slot:nth-child(3){ animation-delay:.49s; }
.drawer-slot:nth-child(4){ animation-delay:.66s; }
.drawer-handle{
  position:absolute; top:-9px; left:50%; transform:translateX(-50%);
  width:64px; height:7px; border-radius:6px; background:linear-gradient(90deg,var(--brass-dim),var(--brass));
}

/* ---------- Footer ---------- */
.site-footer{ background:#04100F; border-top:1px solid var(--line); color:var(--text-dim); }
.site-footer .grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr; gap:40px; padding-block:56px 28px; }
.site-footer h4{ color:var(--text-hi); font-size:14.5px; margin:0 0 16px; }
.site-footer p{ font-size:14px; line-height:1.75; max-width:280px; margin:14px 0 0; }
.footer-links{ display:flex; flex-direction:column; gap:11px; }
.footer-links a{ color:var(--text-dim); text-decoration:none; font-size:14px; }
.footer-links a:hover{ color:var(--brass); }
.footer-bottom{
  border-top:1px solid var(--line); padding:20px 0; font-size:13px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
}
@media (max-width:720px){ .site-footer .grid{ grid-template-columns:1fr; } }

/* ---------- Grids ---------- */
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; }
@media (max-width:880px){ .grid-3{ grid-template-columns:1fr; } .grid-4{ grid-template-columns:1fr 1fr; } .grid-2{ grid-template-columns:1fr; gap:40px; } }
@media (max-width:560px){ .grid-4{ grid-template-columns:1fr; } }

.tag{
  display:inline-block; font-family:var(--f-mono); font-size:12.5px; font-weight:600;
  letter-spacing:.02em; padding-bottom:2px; border-bottom:2px solid currentColor;
}
.feat-icon{
  width:44px; height:44px; border-radius:11px; display:flex; align-items:center; justify-content:center;
}

/* ---------- Utility ---------- */
.stack{ display:flex; flex-direction:column; }
.center{ text-align:center; }
.mt-8{ margin-top:8px; } .mt-16{ margin-top:16px; } .mt-24{ margin-top:24px; } .mt-32{ margin-top:32px; } .mt-48{ margin-top:48px; }
