/* Sesiuh UI — نظام التصميم المشترك لصفحات المتجر والباقات والاشتراكات
   (نفس هوية الصفحة الرئيسية والحاسبة: كحلي + ذهبي، IBM Plex Sans Arabic + Noto Kufi Arabic) */
:root {
  --ink: #0A1628; --ink-2: #0F2040; --ink-3: #172B52;
  --gold: #C9A84C; --gold-lt: #F0DCA0; --gold-dk: #7E6317; --gold-wash: #FBF6E4;
  --paper: #F4F6FB; --sheet: #FFFFFF; --line: #D8DEEB; --text: #1E2A44; --muted: #5B6783;
  --ok: #0F7A56; --ok-wash: #E8F7F0; --error: #D93A3A; --radius: 14px;
  --font-body: 'IBM Plex Sans Arabic', 'IBM Plex Sans', 'Segoe UI', Tahoma, sans-serif;
  --font-display: 'Noto Kufi Arabic', 'IBM Plex Sans Arabic', sans-serif;
}
html[dir="ltr"] { --font-body: 'IBM Plex Sans', 'IBM Plex Sans Arabic', 'Segoe UI', sans-serif; --font-display: 'IBM Plex Sans', 'Noto Kufi Arabic', sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); background: var(--paper); color: var(--text); line-height: 1.7; font-size: 15.5px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 700; z-index: 10000; }
.skip-link:focus { top: 12px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(10,22,40,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.site-header .bar { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { height: 42px; width: auto; }
.primary-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.primary-nav a.link { color: rgba(255,255,255,.82); font-weight: 500; font-size: 14.5px; padding: 9px 12px; border-radius: 10px; transition: background .2s, color .2s; }
.primary-nav a.link:hover { background: rgba(255,255,255,.08); color: #fff; }
.primary-nav a.link[aria-current="page"] { color: var(--gold-lt); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 10px 10px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; font-weight: 700; font-size: 15px; line-height: 1.2; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s, border-color .2s; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold-lt)); color: var(--ink); box-shadow: 0 8px 22px rgba(201,168,76,.28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(201,168,76,.42); }
.btn-outline { background: var(--sheet); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.site-header .btn { padding: 10px 18px; font-size: 14px; }
.lang-switch { color: var(--gold-lt); font-weight: 700; font-size: 13px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 10px; transition: background .2s; }
.lang-switch:hover { background: rgba(255,255,255,.1); }
.menu-toggle { display: none; margin-inline-start: auto; background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff; width: 46px; height: 46px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

/* Page hero */
.page-hero { background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 360px at 85% 0%, rgba(201,168,76,.16), transparent 60%), linear-gradient(180deg, var(--ink), var(--ink-2)); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .45; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px); background-size: 100% 40px; -webkit-mask-image: linear-gradient(180deg,#000,transparent 90%); mask-image: linear-gradient(180deg,#000,transparent 90%); }
.page-hero .wrap { padding: 48px 0 56px; }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 46px); line-height: 1.3; margin: 0 0 12px; }
.page-hero h1 span { color: inherit; }
.page-hero .lead { color: rgba(255,255,255,.78); font-size: clamp(15px, 1.5vw, 18px); max-width: 40em; margin: 0; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 40px 0 28px; font-size: 14px; margin-top: 56px; }
.site-footer .row { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; align-items: center; }
.site-footer strong { color: var(--gold-lt); }
.site-footer a:hover { color: var(--gold-lt); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }

.wa-float { position: fixed; inset-block-end: max(22px, env(safe-area-inset-bottom)); inset-inline-start: 22px; width: 54px; height: 54px; background: linear-gradient(135deg, #25D366, #128C7E); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 22px rgba(37,211,102,.4); z-index: 99; transition: transform .25s; }
.wa-float:hover { transform: scale(1.1); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

@media (max-width: 980px) { .menu-toggle { display: inline-flex; }
  .primary-nav { position: fixed; inset: 68px 0 0 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 6px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); margin: 0; overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; }
  .primary-nav.open { opacity: 1; transform: none; visibility: visible; }
  .primary-nav a.link { font-size: 18px; padding: 16px 14px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
  .primary-nav a.link[aria-current="page"] { box-shadow: none; color: var(--gold-lt); }
  .primary-nav .btn { margin-top: 14px; padding: 16px; font-size: 17px; }
  .primary-nav .lang-switch { align-self: flex-start; margin-top: 10px; }
}
@media (max-width: 640px) { .wrap { width: min(1180px, 100% - 28px); } .site-header .bar { min-height: 60px; } .primary-nav { inset-block-start: 60px; } .brand img { height: 38px; } .page-hero .wrap { padding: 32px 0 40px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
