/* ============================================================
   أكاديمية ابتكار القيمة — نظام التصميم الموحّد
   Premium Corporate Training Academy · RTL · Light Violet
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=Cairo:wght@400;500;600;700;800;900&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root{
  /* Violet ramp (light purple, premium) */
  --v-50:  oklch(0.976 0.012 300);
  --v-100: oklch(0.952 0.026 300);
  --v-200: oklch(0.905 0.048 300);
  --v-300: oklch(0.835 0.075 300);
  --v-400: oklch(0.725 0.115 298);
  --v-500: oklch(0.640 0.150 296);
  --v-600: oklch(0.565 0.172 295);
  --v-700: oklch(0.485 0.165 294);
  --v-800: oklch(0.390 0.125 293);
  --v-900: oklch(0.290 0.080 292);

  /* Neutrals — faint lavender tint */
  --bg:      oklch(0.990 0.005 300);
  --bg-soft: oklch(0.972 0.009 300);
  --surface: #ffffff;
  --ink:     oklch(0.255 0.022 290);
  --ink-2:   oklch(0.420 0.020 290);
  --muted:   oklch(0.560 0.016 290);
  --faint:   oklch(0.700 0.012 290);
  --line:    oklch(0.918 0.010 296);
  --line-2:  oklch(0.945 0.008 298);

  /* Functional */
  --gold:     oklch(0.745 0.105 78);
  --gold-bg:  oklch(0.960 0.040 85);
  --emerald:  oklch(0.600 0.110 162);
  --emerald-bg: oklch(0.955 0.035 165);
  --rose:     oklch(0.620 0.150 22);
  --rose-bg:  oklch(0.960 0.030 25);

  /* Brand gradient */
  --grad: linear-gradient(135deg, var(--v-600), var(--v-400) 70%, var(--v-300));
  --grad-deep: linear-gradient(150deg, var(--v-800), var(--v-600));

  /* Radii */
  --r-xs: 8px;  --r-sm: 12px;  --r-md: 16px;  --r-lg: 22px;  --r-xl: 30px;  --r-full: 999px;

  /* Shadows — soft, premium */
  --sh-xs: 0 1px 2px oklch(0.4 0.05 295 / .06);
  --sh-sm: 0 2px 8px oklch(0.4 0.05 295 / .07), 0 1px 2px oklch(0.4 0.05 295 / .05);
  --sh-md: 0 8px 24px oklch(0.45 0.06 295 / .09), 0 2px 6px oklch(0.45 0.06 295 / .05);
  --sh-lg: 0 18px 48px oklch(0.45 0.07 295 / .13), 0 4px 12px oklch(0.45 0.06 295 / .06);
  --sh-glow: 0 16px 40px oklch(0.565 0.172 295 / .28);

  /* Layout */
  --maxw: 1200px;
  --header-h: 76px;

  --font-display: 'Tajawal', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

/* ---------- Reset / Base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body{
  margin:0; direction:rtl; text-align:right;
  font-family:var(--font-body);
  background:var(--bg); color:var(--ink);
  font-size:16px; line-height:1.7; font-weight:400;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
h1,h2,h3,h4,h5{ font-family:var(--font-display); font-weight:800; line-height:1.2; margin:0; color:var(--v-900); letter-spacing:-0.01em; }
p{ margin:0; }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; }
ul{ margin:0; padding:0; list-style:none; }
:focus-visible{ outline:2px solid var(--v-500); outline-offset:2px; border-radius:4px; }
::selection{ background:var(--v-200); color:var(--v-900); }

/* ---------- Layout helpers ---------- */
.wrap{ max-width:var(--maxw); margin-inline:auto; padding-inline:24px; width:100%; }
.section{ padding-block:84px; }
.section-sm{ padding-block:56px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-body); font-weight:600; font-size:13px;
  letter-spacing:.04em; color:var(--v-700);
  background:var(--v-50); border:1px solid var(--v-100);
  padding:6px 14px; border-radius:var(--r-full);
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--v-500); }
.section-head{ max-width:640px; margin-bottom:48px; }
.section-head.center{ margin-inline:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.4vw,42px); margin:16px 0 14px; }
.section-head p{ color:var(--muted); font-size:18px; }
.lead{ font-size:19px; color:var(--ink-2); line-height:1.8; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:9px;
  font-family:var(--font-body); font-weight:600; font-size:15.5px;
  padding:13px 26px; border-radius:var(--r-full);
  transition:transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space:nowrap; line-height:1;
}
.btn svg{ width:18px; height:18px; }
.btn-primary{ background:var(--v-600); color:#fff; box-shadow:var(--sh-glow); }
.btn-primary:hover{ background:var(--v-700); transform:translateY(-2px); box-shadow:0 20px 44px oklch(0.565 0.172 295 / .36); }
.btn-ghost{ background:var(--surface); color:var(--v-800); border:1.5px solid var(--line); box-shadow:var(--sh-xs); }
.btn-ghost:hover{ border-color:var(--v-300); color:var(--v-700); transform:translateY(-2px); box-shadow:var(--sh-sm); }
.btn-soft{ background:var(--v-50); color:var(--v-700); border:1px solid var(--v-100); }
.btn-soft:hover{ background:var(--v-100); }
.btn-gold{ background:var(--gold); color:#3a2c05; box-shadow:0 12px 30px oklch(0.745 0.105 78 / .3); }
.btn-gold:hover{ transform:translateY(-2px); filter:brightness(1.04); }
.btn-lg{ padding:16px 32px; font-size:17px; }
.btn-sm{ padding:9px 18px; font-size:14px; }
.btn-block{ width:100%; }
.btn-icon{ padding:12px; border-radius:var(--r-full); width:44px; height:44px; }

/* ---------- Badges / Chips ---------- */
.badge{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600; padding:5px 12px; border-radius:var(--r-full);
  background:var(--v-50); color:var(--v-700); border:1px solid var(--v-100); line-height:1;
}
.badge-gold{ background:var(--gold-bg); color:oklch(0.50 0.09 70); border-color:transparent; }
.badge-emerald{ background:var(--emerald-bg); color:oklch(0.42 0.09 162); border-color:transparent; }
.badge-rose{ background:var(--rose-bg); color:oklch(0.48 0.13 22); border-color:transparent; }
.badge-dot{ width:7px; height:7px; border-radius:50%; background:currentColor; }

.chip{
  display:inline-flex; align-items:center; gap:7px; cursor:pointer;
  font-size:14px; font-weight:500; padding:9px 16px; border-radius:var(--r-full);
  background:var(--surface); color:var(--ink-2); border:1.5px solid var(--line);
  transition:all .18s ease;
}
.chip:hover{ border-color:var(--v-300); color:var(--v-700); }
.chip.active{ background:var(--v-600); color:#fff; border-color:var(--v-600); box-shadow:var(--sh-sm); }

/* ---------- Cards ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); box-shadow:var(--sh-sm); }
.card-pad{ padding:26px; }

/* ---------- Media placeholder (striped) ---------- */
.ph{
  position:relative; overflow:hidden; background:var(--v-50);
  background-image:repeating-linear-gradient(135deg, transparent 0 14px, oklch(0.835 0.075 300 / .14) 14px 15px);
}
.ph::after{
  content:attr(data-label); position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-family:ui-monospace,'SF Mono',monospace; font-size:12px; letter-spacing:.02em;
  color:var(--v-600); opacity:.7; text-align:center; padding:14px;
}

/* ---------- Forms ---------- */
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:14px; font-weight:600; color:var(--ink-2); margin-bottom:8px; }
.input, .select, textarea.input{
  width:100%; font-family:var(--font-body); font-size:15px; color:var(--ink);
  background:var(--surface); border:1.5px solid var(--line); border-radius:var(--r-sm);
  padding:13px 15px; transition:border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder{ color:var(--faint); }
.input:focus, .select:focus, textarea.input:focus{
  outline:none; border-color:var(--v-400); box-shadow:0 0 0 4px var(--v-100);
}
.input-icon{ position:relative; }
.input-icon .input{ padding-inline-start:46px; }
.input-icon svg{ position:absolute; inset-inline-start:15px; top:50%; transform:translateY(-50%); width:19px; height:19px; color:var(--faint); }

/* ---------- Star rating ---------- */
.stars{ display:inline-flex; gap:2px; color:var(--gold); }
.stars svg{ width:16px; height:16px; }

/* ---------- Tables ---------- */
.table{ width:100%; border-collapse:collapse; font-size:14.5px; }
.table th{
  text-align:right; font-weight:600; color:var(--muted); font-size:13px;
  padding:14px 16px; border-bottom:1px solid var(--line); background:var(--bg-soft);
  white-space:nowrap;
}
.table th:first-child{ border-start-start-radius:var(--r-sm); }
.table th:last-child{ border-start-end-radius:var(--r-sm); }
.table td{ padding:15px 16px; border-bottom:1px solid var(--line-2); color:var(--ink-2); vertical-align:middle; }
.table tbody tr{ transition:background .15s ease; }
.table tbody tr:hover{ background:var(--v-50); }

/* ---------- Header / Nav ---------- */
.site-header{
  position:sticky; top:0; z-index:50; height:var(--header-h);
  background:oklch(0.99 0.005 300 / .82); backdrop-filter:blur(16px) saturate(1.4);
  border-bottom:1px solid var(--line-2);
}
.site-header .wrap{ height:100%; display:flex; align-items:center; gap:28px; }
.brand{ display:flex; align-items:center; gap:11px; font-family:var(--font-display); font-weight:800; font-size:19px; color:var(--v-900); }
.brand .logo{
  width:42px; height:42px; border-radius:13px; background:var(--grad);
  display:grid; place-items:center; color:#fff; font-size:21px; box-shadow:var(--sh-glow); flex-shrink:0;
}
.brand small{ display:block; font-family:var(--font-body); font-weight:500; font-size:11px; color:var(--muted); letter-spacing:.02em; }
.nav{ display:flex; align-items:center; gap:4px; margin-inline-start:8px; }
.nav a{ padding:9px 15px; border-radius:var(--r-sm); font-size:15px; font-weight:500; color:var(--ink-2); transition:all .15s ease; }
.nav a:hover{ background:var(--v-50); color:var(--v-700); }
.nav a.active{ color:var(--v-700); background:var(--v-50); font-weight:600; }
.header-actions{ margin-inline-start:auto; display:flex; align-items:center; gap:12px; }
.icon-btn{ width:42px; height:42px; border-radius:var(--r-sm); display:grid; place-items:center; color:var(--ink-2); transition:all .15s ease; position:relative; }
.icon-btn:hover{ background:var(--v-50); color:var(--v-700); }
.icon-btn svg{ width:21px; height:21px; }
.icon-btn .ping{ position:absolute; top:8px; inset-inline-end:9px; width:8px; height:8px; border-radius:50%; background:var(--rose); border:2px solid var(--surface); }
.menu-toggle{ display:none; }

/* ---------- Footer ---------- */
.site-footer{ background:var(--v-900); color:oklch(0.85 0.02 295); padding-block:64px 32px; margin-top:40px; }
.site-footer .wrap{ }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr; gap:40px; padding-bottom:48px; border-bottom:1px solid oklch(0.4 0.06 293); }
.site-footer h5{ color:#fff; font-size:15px; margin-bottom:18px; font-family:var(--font-body); font-weight:700; }
.site-footer a{ display:block; color:oklch(0.78 0.02 295); font-size:14.5px; padding:6px 0; transition:color .15s ease; }
.site-footer a:hover{ color:#fff; }
.footer-brand .brand{ color:#fff; margin-bottom:16px; }
.footer-brand p{ color:oklch(0.78 0.02 295); font-size:14.5px; max-width:300px; }
.footer-bottom{ padding-top:28px; display:flex; justify-content:space-between; align-items:center; gap:16px; font-size:13.5px; color:oklch(0.7 0.02 295); flex-wrap:wrap; }
.social{ display:flex; gap:10px; }
.social a{ width:40px; height:40px; border-radius:11px; background:oklch(0.35 0.05 293); display:grid; place-items:center; padding:0; }
.social a:hover{ background:var(--v-600); }
.social svg{ width:18px; height:18px; }

/* ---------- Workshop card ---------- */
.w-card{
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; box-shadow:var(--sh-sm); transition:transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  display:flex; flex-direction:column;
}
.w-card:hover{ transform:translateY(-6px); box-shadow:var(--sh-lg); border-color:var(--v-200); }
.w-card .media{ aspect-ratio:16/10; position:relative; }
.w-card .media .float{ position:absolute; top:14px; inset-inline-start:14px; display:flex; gap:8px; }
.w-card .media .cat{ position:absolute; bottom:14px; inset-inline-end:14px; }
.w-card .body{ padding:20px 22px 22px; display:flex; flex-direction:column; flex:1; }
.w-card h3{ font-size:19px; margin-bottom:10px; line-height:1.35; }
.w-card .trainer{ display:flex; align-items:center; gap:9px; color:var(--muted); font-size:13.5px; margin-bottom:14px; }
.w-card .trainer .av{ width:28px; height:28px; border-radius:50%; background:var(--v-100); flex-shrink:0; }
.w-card .meta{ display:flex; gap:16px; color:var(--ink-2); font-size:13px; margin-bottom:16px; flex-wrap:wrap; }
.w-card .meta span{ display:inline-flex; align-items:center; gap:6px; }
.w-card .meta svg{ width:15px; height:15px; color:var(--v-500); }
.w-card .foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; padding-top:16px; border-top:1px solid var(--line-2); }
.price{ display:flex; align-items:baseline; gap:8px; }
.price .now{ font-family:var(--font-display); font-weight:800; font-size:22px; color:var(--v-900); }
.price .was{ font-size:14px; color:var(--faint); text-decoration:line-through; }
.price .cur{ font-size:13px; color:var(--muted); font-weight:500; }

/* ---------- Avatar ---------- */
.avatar{ border-radius:50%; background:var(--v-100); display:grid; place-items:center; color:var(--v-700); font-weight:700; flex-shrink:0; overflow:hidden; }

/* ---------- Progress steps ---------- */
.steps{ display:flex; align-items:center; gap:0; }
.steps .step{ display:flex; align-items:center; gap:12px; flex:1; }
.steps .num{ width:38px; height:38px; border-radius:50%; display:grid; place-items:center; font-weight:700; font-size:15px; background:var(--v-50); color:var(--v-400); border:2px solid var(--line); flex-shrink:0; transition:all .25s ease; }
.steps .label{ font-size:14px; font-weight:600; color:var(--muted); white-space:nowrap; }
.steps .bar{ flex:1; height:2px; background:var(--line); margin:0 14px; border-radius:2px; }
.steps .step.done .num{ background:var(--emerald); border-color:var(--emerald); color:#fff; }
.steps .step.active .num{ background:var(--v-600); border-color:var(--v-600); color:#fff; box-shadow:0 0 0 5px var(--v-100); }
.steps .step.active .label{ color:var(--v-800); }
.steps .step.done .label{ color:var(--ink-2); }

/* ---------- Animations ---------- */
@keyframes rise{ from{ opacity:0; transform:translateY(24px); } to{ opacity:1; transform:translateY(0); } }
@keyframes fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-14px); } }
.reveal{ opacity:0; transform:translateY(22px); transition:opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1 !important; transform:none !important; transition:none !important; }
  *{ scroll-behavior:auto !important; }
}

/* ---------- Utilities ---------- */
.mono{ font-family:ui-monospace,'SF Mono',monospace; }
.muted{ color:var(--muted); }
.center{ text-align:center; }
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
.flex{ display:flex; }
.between{ justify-content:space-between; }
.items-center{ align-items:center; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.hide-mobile{ }

/* ---------- Tweak variants (toggled by body class) ---------- */
/* Hero centered */
body.hero-centered .hero-grid{ grid-template-columns:1fr; text-align:center; max-width:760px; margin-inline:auto; }
body.hero-centered .hero-visual{ display:none; }
body.hero-centered .hero .lead{ margin-inline:auto; }
body.hero-centered .hero-cta{ justify-content:center; }
body.hero-centered .hero-trust{ justify-content:center; }
body.hero-centered .hero .eyebrow{ margin-inline:auto; }

/* Workshop card compact (horizontal) */
body.cards-compact .w-card{ flex-direction:row; align-items:stretch; }
body.cards-compact .w-card .media{ aspect-ratio:auto; width:148px; flex-shrink:0; }
body.cards-compact .w-card .media .cat{ display:none; }
body.cards-compact .w-card .body{ padding:16px 18px; }
body.cards-compact .w-card h3{ font-size:16px; }
body.cards-compact .w-card .trainer{ margin-bottom:8px; }
body.cards-compact .w-card .meta{ display:none; }
@media (max-width:600px){ body.cards-compact .w-card{ flex-direction:column; } body.cards-compact .w-card .media{ width:auto; aspect-ratio:16/10; } body.cards-compact .w-card .meta{ display:flex; } }

/* Date selector as list */
body.dates-list .dates-grid{ grid-template-columns:1fr !important; }
body.dates-list .date-card{ display:flex; align-items:center; gap:20px; padding:16px 20px; }
body.dates-list .date-card .tick{ position:static; order:-1; }
body.dates-list .date-card .dc-range{ margin-bottom:0; }
body.dates-list .date-card .dc-days{ margin-bottom:0; }
body.dates-list .date-card .dc-foot{ border-top:none; padding-top:0; flex-direction:column; align-items:flex-end; gap:2px; min-width:130px; margin-inline-start:auto; }

/* ---------- Responsive ---------- */
@media (max-width:1024px){
  .grid-4{ grid-template-columns:repeat(2,1fr); }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
}
@media (max-width:768px){
  .nav{ display:none; }
  .menu-toggle{ display:grid; }
  .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; }
  .section{ padding-block:56px; }
  .hide-mobile{ display:none !important; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
