/* ════════════════════════════════════════════════════════
   ELARA MARKETS 2.0 — Design System
   Colors: Midnight Navy / Elara Gold / Champagne / Deep Teal
   Type: Playfair Display (display) · Inter (body) · JetBrains Mono (data)
   ════════════════════════════════════════════════════════ */

:root {
  --navy: #0A1428;
  --navy-soft: #0F1D38;
  --gold: #C9A227;
  --gold-light: #E8C84A;
  --champagne: #E8DCC4;
  --teal: #0F3D3E;
  --teal-light: #1A5557;
  --green: #3FB950;
  --red: #E5484D;
  --muted: #8A95A6;
  --muted-dim: #5C6678;
  --border: rgba(201, 162, 39, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--navy);
  color: var(--champagne);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.ea-display { font-family: 'Playfair Display', serif; }
.ea-mono { font-family: 'JetBrains Mono', monospace; }

[dir="rtl"] body { font-family: 'Inter', 'Tajawal', -apple-system, sans-serif; }

/* ── Skip link / focus visibility (accessibility) ── */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════ */
.ea-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 20, 40, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.ea-header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.ea-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ea-logo-text {
  font-family: 'Playfair Display', serif; font-size: 19px; font-weight: 700;
  color: #fff; letter-spacing: 0.3px;
}

.ea-nav-desktop {
  display: flex; gap: 22px; font-size: 13.5px; color: var(--muted);
  flex-wrap: nowrap; overflow: hidden;
}
.nav-link { white-space: nowrap; transition: color 0.2s; padding: 4px 0; position: relative; }
.nav-link:hover { color: var(--gold-light); }
.nav-link-active { color: var(--gold); font-weight: 600; }
.nav-link-active::after {
  content: ''; position: absolute; bottom: -6px; left: 0; right: 0; height: 2px; background: var(--gold);
}

.ea-header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.ea-lang-toggle {
  background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--champagne);
  font-size: 12px; font-weight: 700; padding: 6px 11px; border-radius: 7px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
}
.ea-lang-toggle:hover { border-color: var(--gold); color: var(--gold-light); }
.ea-nav-cta {
  background: var(--gold); color: var(--navy); padding: 9px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.ea-nav-cta:hover { background: var(--gold-light); }

.ea-mobile-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px;
}
.ea-mobile-toggle span { width: 22px; height: 2px; background: var(--champagne); transition: 0.25s; }
.ea-mobile-toggle-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ea-mobile-toggle-active span:nth-child(2) { opacity: 0; }
.ea-mobile-toggle-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.ea-nav-mobile {
  display: none; flex-direction: column; gap: 4px; padding: 0 20px;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  background: var(--navy-soft); border-top: 1px solid transparent;
}
.ea-nav-mobile a { padding: 12px 4px; font-size: 14px; color: var(--muted); border-bottom: 1px solid rgba(255,255,255,0.05); }
.ea-nav-mobile-open { max-height: 600px; border-top-color: var(--border); }

@media (max-width: 1080px) {
  .ea-nav-desktop { display: none; }
  .ea-mobile-toggle { display: flex; }
  .ea-nav-mobile { display: flex; }
}
@media (max-width: 560px) {
  .ea-nav-cta { display: none; }
}

/* ════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════ */
.ea-footer { border-top: 1px solid rgba(255,255,255,0.06); padding: 64px 28px 32px; background: var(--navy-soft); }
.ea-footer-inner { max-width: 1200px; margin: 0 auto; }
.ea-footer-top { display: flex; justify-content: space-between; gap: 50px; flex-wrap: wrap; margin-bottom: 44px; }
.ea-footer-brand { max-width: 280px; }
.ea-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ea-footer-name { font-family: 'Playfair Display', serif; font-size: 17px; font-weight: 700; color: #fff; }
.ea-footer-tagline { font-size: 13px; color: var(--muted); font-style: italic; }
.ea-footer-cols { display: flex; gap: 50px; flex-wrap: wrap; }
.ea-footer-col h4 { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.ea-footer-col a { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 10px; transition: color 0.2s; }
.ea-footer-col a:hover { color: var(--champagne); }
.ea-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--muted-dim);
}

/* ════════════════════════════════════════════════════════
   SIGNATURE ELEMENT — Vertical Timeline Thread
   ════════════════════════════════════════════════════════ */
.ea-timeline-thread {
  position: absolute; top: 0; bottom: 0; left: 50%;
  width: 1px; background: linear-gradient(180deg, transparent, var(--gold) 15%, var(--gold) 85%, transparent);
  opacity: 0.35;
}
[dir="rtl"] .ea-timeline-thread { left: 50%; }

/* ════════════════════════════════════════════════════════
   GENERIC LAYOUT HELPERS
   ════════════════════════════════════════════════════════ */
.ea-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.ea-container-narrow { max-width: 760px; margin: 0 auto; padding: 0 28px; }
section { padding: 90px 0; position: relative; }
.ea-section-eyebrow {
  font-size: 11px; letter-spacing: 3px; color: var(--gold); text-transform: uppercase;
  font-weight: 600; margin-bottom: 16px; text-align: center;
}
.ea-section-title {
  font-family: 'Playfair Display', serif; font-size: 38px; font-weight: 700; color: #fff;
  text-align: center; margin-bottom: 18px; letter-spacing: 0.2px;
}
.ea-section-desc {
  text-align: center; color: var(--muted); font-size: 15.5px; max-width: 580px;
  margin: 0 auto 60px; line-height: 1.85;
}

.ea-btn-gold {
  background: var(--gold); color: var(--navy); padding: 15px 30px; border-radius: 10px;
  font-weight: 700; font-size: 15px; display: inline-block; transition: background 0.2s, transform 0.2s;
}
.ea-btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); }
.ea-btn-ghost {
  border: 1px solid rgba(255,255,255,0.18); color: #fff; padding: 15px 30px;
  border-radius: 10px; font-weight: 600; font-size: 15px; display: inline-block; transition: border-color 0.2s;
}
.ea-btn-ghost:hover { border-color: var(--gold); }

@media (max-width: 600px) {
  section { padding: 60px 0; }
  .ea-section-title { font-size: 28px; }
}
