/* ZHA GROUP — design tokens & base styles */

:root {
  --c-bg: #07111F;
  --c-bg-2: #0B1728;
  --c-surface: #101E31;
  --c-surface-alt: #14243A;
  --c-text: #F5F7FA;
  --c-text-2: #AAB7C7;
  --c-text-muted: #8291A5;
  --c-border: #26364B;
  --c-accent: #1EA7F2;
  --c-accent-hover: #55C2F7;
  --c-on-accent: #07111F;
  --c-silver: #C7D2E0;
  --c-light: #FFFFFF;
  --c-light-2: #F4F7FB;
  --c-light-link: #0E6FB8;
  --font-en: 'Inter', system-ui, -apple-system, sans-serif;
  --font-ckb: 'Noto Sans Arabic', 'Inter', sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.5);

  /* §10.1 token additions */
  --c-border-2: rgba(255, 255, 255, 0.06);
  --grad-hero: linear-gradient(180deg, #07111F, #0B1728);
  --grad-section: linear-gradient(180deg, transparent, rgba(30, 167, 242, 0.04));
  --grad-cta: linear-gradient(135deg, #101E31, #14243A 55%, rgba(30, 167, 242, 0.18));
  --glow-accent: 0 0 0 1px rgba(30, 167, 242, 0.35), 0 18px 60px rgba(30, 167, 242, 0.22);
  --shadow-soft: 0 6px 24px rgba(2, 8, 20, 0.35);

  /* §9 light-section tokens */
  --c-light-bg: #FFFFFF;
  --c-light-3: #E9EFF7;
  --c-light-border: #DCE5F0;
  --c-light-text: #0B1A2A;
  --c-light-text-2: #40566E;

  /* §10.2 type scale */
  --fs-display: clamp(2.5rem, 1.4rem + 4.4vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.2rem + 4vw, 4.25rem);
  --fs-h2: clamp(1.75rem, 1.1rem + 2.5vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.05rem + 1.4vw, 1.75rem);
  --fs-lede: clamp(1rem, 0.95rem + 0.4vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-eyebrow: 0.82rem;

  /* §10.3 spacing */
  --sp-sec: clamp(48px, 6vw, 96px);
  --sp-sec-tight: clamp(32px, 4vw, 64px);
  --sp-sec-lg: clamp(64px, 8vw, 128px);
}

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-en);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[dir="rtl"] body,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3,
[dir="rtl"] h4, [dir="rtl"] h5, [dir="rtl"] h6,
[dir="rtl"] p, [dir="rtl"] li, [dir="rtl"] a, [dir="rtl"] span,
[dir="rtl"] button, [dir="rtl"] input, [dir="rtl"] textarea, [dir="rtl"] select {
  font-family: var(--font-ckb);
}

/* Selection */
::selection { background: var(--c-accent); color: var(--c-on-accent); }

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Links on dark */
a { color: var(--c-accent); }
a:hover, a:focus { color: var(--c-accent-hover); }

/* Links on light surfaces */
.zha-light a,
.zha-light a:visited { color: var(--c-light-link); }
.zha-light a:hover { color: #0a568f; }

/* Headings scale */
h1, .zha-h1 { font-size: var(--fs-h1); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; }
h2, .zha-h2 { font-size: var(--fs-h2); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
h3, .zha-h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
h4, .zha-h4 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; }
h1, h2, h3, .zha-h1, .zha-h2, .zha-h3 { text-wrap: balance; }
.zha-lede, .zha-section-lede { font-size: var(--fs-lede); text-wrap: pretty; }

/* Muted text */
.zha-muted { color: var(--c-text-2); }
.zha-muted-2 { color: var(--c-text-muted); }

/* Surfaces */
.zha-surface { background: var(--c-surface); color: var(--c-text); }
.zha-surface-alt { background: var(--c-surface-alt); color: var(--c-text); }
.zha-light { background: var(--c-light-bg); color: var(--c-light-text); }
.zha-light-2 { background: var(--c-light-2); color: var(--c-light-text); }

/* Buttons */
.zha-btn,
.et_pb_button,
button.zha-btn,
a.zha-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--c-accent);
  color: var(--c-on-accent) !important;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.zha-btn:hover, .zha-btn:focus,
.et_pb_button:hover, .et_pb_button:focus {
  background: var(--c-accent-hover);
  color: var(--c-on-accent) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30, 167, 242, 0.35);
}
.zha-btn--ghost {
  background: transparent;
  color: var(--c-text) !important;
  border-color: var(--c-border);
}
.zha-btn--ghost:hover { background: var(--c-surface-alt); color: var(--c-text) !important; }

/* Skip link */
.zha-skip-link {
  position: absolute;
  inset-inline-start: -9999px;
  top: 0;
  background: var(--c-accent);
  color: var(--c-on-accent);
  padding: 10px 14px;
  border-radius: 0 0 8px 0;
  z-index: 999999;
}
.zha-skip-link:focus { inset-inline-start: 0; }

/* Numbers, phones, emails — always LTR inside */
[dir="ltr-inline"] { direction: ltr; unicode-bidi: embed; }
