/*
 * Website premium finish (rc.16). Loaded LAST on every page, after the page's own stylesheets. Visual layer only: no markup, text, link, SEO or script change.
 * Uses the existing colour variables (so a re-brand through the theme still works), logical properties only (Arabic mirrors), no letter-spacing on Arabic,
 * no external resource, and every motion stops under prefers-reduced-motion.
 */
:root {
  --pf-line: rgba(11, 31, 68, .08);
  --pf-card-shadow: 0 1px 2px rgba(11, 31, 68, .05), 0 12px 30px -14px rgba(11, 31, 68, .18);
  --pf-card-shadow-hover: 0 2px 4px rgba(11, 31, 68, .06), 0 28px 50px -20px rgba(11, 31, 68, .3);
  --pf-primary-a: #1677ff; --pf-primary-b: #0b4fb3;
  --pf-primary-glow: rgba(15, 98, 217, .5);
}
::selection { background: rgba(22, 119, 255, .22); }
html { scrollbar-color: rgba(11, 31, 68, .3) transparent; }

/* ---- header: glass with a fine gold-to-blue hairline ---- */
.site-header {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-block-end-color: transparent;
  box-shadow: 0 10px 30px -22px rgba(11, 31, 68, .45);
}
.site-header::after {
  content: ""; position: absolute; inset-inline: 0; inset-block-end: -1px; block-size: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(22, 119, 255, .35) 20%, rgba(201, 163, 73, .5) 50%, rgba(22, 119, 255, .35) 80%, transparent);
}
.nav a { transition: background-color .2s, color .2s; }
.nav a:hover { background: rgba(22, 119, 255, .07); }
.lang { transition: border-color .2s, box-shadow .2s, background-color .2s; }
.lang:hover { border-color: var(--blue-600); box-shadow: 0 6px 16px -8px rgba(15, 98, 217, .5); }

/* ---- buttons: depth, glow, a short lift ---- */
.btn { letter-spacing: 0; }
.btn-primary {
  background: linear-gradient(180deg, var(--pf-primary-a), var(--pf-primary-b)); border-color: var(--pf-primary-b);
  box-shadow: 0 12px 26px -10px var(--pf-primary-glow), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #2b87ff, #0d5bc9);
  box-shadow: 0 18px 32px -12px var(--pf-primary-glow), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.btn-outline { box-shadow: 0 1px 2px rgba(11, 31, 68, .04); }
.btn-outline:hover { box-shadow: 0 14px 26px -12px var(--pf-primary-glow); transform: translateY(-1px); }
.btn-light { box-shadow: 0 12px 26px -12px rgba(0, 0, 0, .55), inset 0 -1px 0 rgba(11, 31, 68, .06); }
.btn-light:hover { box-shadow: 0 16px 30px -12px rgba(201, 163, 73, .6); }
.btn-ghost-light { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn:active:not([disabled]) { transform: translateY(0); }

/* ---- hero: a luminous frame around the product window ---- */
.hero-visual .shot, .hero .shot {
  border-color: rgba(143, 194, 255, .28);
  box-shadow: 0 40px 90px -30px rgba(3, 10, 26, .75), 0 0 0 1px rgba(255, 255, 255, .05), 0 0 80px -20px rgba(22, 119, 255, .45);
}
.hero h1 { text-shadow: 0 2px 30px rgba(3, 10, 26, .35); }
:lang(en) .hero h1 { letter-spacing: -.018em; }

/* ---- headings: crisper on Latin, untouched on Arabic ---- */
:lang(en) .section-head h2, :lang(en) .page-head h1, :lang(en) .band h2 { letter-spacing: -.015em; }
.section-head .lead, .page-head .lead { color: var(--muted); }

/* ---- cards: one consistent depth language ---- */
.pfcard, .ptile, .mcard, .gal-card, .form-card {
  border-color: var(--pf-line); box-shadow: var(--pf-card-shadow);
}
.pfcard:hover, .ptile:hover, .mcard:hover, .gal-card:hover { box-shadow: var(--pf-card-shadow-hover); }
.pfcard-ico, .ptile-ico { box-shadow: 0 12px 24px -10px rgba(11, 29, 58, .5), inset 0 1px 0 rgba(255, 255, 255, .16); }
.link-arrow { transition: gap .2s, color .2s; }
.link-arrow:hover { gap: .8em; }

/* ---- forms: clear, soft focus ---- */
input:not([type="checkbox"]):not([type="radio"]), select, textarea { transition: border-color .15s, box-shadow .15s; }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus {
  border-color: var(--blue-600); box-shadow: 0 0 0 4px rgba(22, 119, 255, .18); outline: none;
}

/* ---- footer: a finer top edge ---- */
.site-footer a { transition: color .2s; }

@media (prefers-reduced-motion: reduce) {
  .btn-outline:hover { transform: none; }
  .link-arrow:hover { gap: .5em; }
  .nav a, .lang, .link-arrow, .site-footer a, input, select, textarea { transition: none; }
}
@media print {
  .site-header::after { display: none; }
}
