/* Stax Trading design tokens - CSS custom properties.
   Source of truth: Novamira DESIGN.md (stax-trading-institutional-trade-ai)
   and design-implementation-spec.md. These are additive variables only -
   no element selectors are overridden here. */
:root {
  /* Spacing scale */
  --stax-space-sm: 16px;
  --stax-space-md: 32px;
  --stax-space-lg: 64px;
  --stax-space-xl: 88px;

  /* Radius */
  --stax-radius-sm: 2px;
  --stax-radius-pill: 999px;

  /* Colors (mirrors the Elementor global variables of the same names,
     for use in custom CSS/theme files outside the Elementor editor) */
  --stax-color-bg: #FBFAF8;
  --stax-color-surface: #FFFFFF;
  --stax-color-ink: #14181D;
  --stax-color-accent-teal: #0EA5A4;
  --stax-color-navy: #0B1F3A;
  --stax-color-gold: #C9A227;
  --stax-color-teal-text: #0B7C7B;
  --stax-color-link-hover: #064F4E;
  --stax-color-muted: #5A6472;
  --stax-color-border: #DDE3EA;
  --stax-color-navy-muted: #C2CEDD;
  --stax-color-text-on-gold: #241A00;
  --stax-color-text-on-teal: #00251F;
  --stax-color-error: #D14343;

  /* Typography */
  --stax-font-heading: 'Cairo', sans-serif;
  --stax-font-body: 'Cairo', sans-serif;
  --stax-font-numeric: 'IBM Plex Sans', sans-serif;
}

html[lang="ar"] {
  --stax-line-height-heading: 1.35;
  --stax-line-height-body: 1.95;
}

html:not([lang="ar"]) {
  --stax-line-height-heading: 1.1;
  --stax-line-height-body: 1.7;
}
/* Apply the Arabic/English line-height tokens to actual heading and body
   elements, per design-implementation-spec.md section 3. Additive rule
   layer (added after initial token publish, which defined the variables
   but never consumed them anywhere -- caught during QA on 2026-09-17). */
/* Scoped to html[lang="ar"] only -- English headings keep their own
   per-style line-heights from spec table (Display 0.98, H1/H2 1.1, H3 1.3);
   only Arabic collapses every heading level to the single 1.35 ratio the
   spec calls for. !important needed because Elementor generates a
   higher-specificity per-element rule (.elementor-element-{id}
   .elementor-heading-title) for every heading's own font-size/line-height,
   which otherwise wins over a plain class+tag selector. */
html[lang="ar"] h1.elementor-heading-title,
html[lang="ar"] h2.elementor-heading-title,
html[lang="ar"] h3.elementor-heading-title,
html[lang="ar"] h4.elementor-heading-title,
html[lang="ar"] h5.elementor-heading-title,
html[lang="ar"] h6.elementor-heading-title {
  line-height: var(--stax-line-height-heading) !important;
}

html[lang="ar"] .elementor-widget-text-editor p {
  line-height: var(--stax-line-height-body) !important;
}

/* Language switcher: compact rounded toggle, no flags (2026-10-18) */
.elementor-element-0761f5a .trp-shortcode-switcher__wrapper{--font-size:13px;--border-radius:999px}
.elementor-element-0761f5a .trp-language-switcher{padding:0!important;width:auto!important;min-width:0!important;border-radius:999px!important;overflow:hidden}
.elementor-element-0761f5a .trp-language-item{padding:4px 14px!important;min-height:0!important;height:auto!important;font-family:Cairo,sans-serif!important;font-weight:600!important;font-size:13px!important;line-height:1.3!important;gap:0!important}
.elementor-element-0761f5a .trp-flag-image{display:none!important}

/* Certificates cards */
.stax-cert-card{border-top-color:#0EA5A4!important}
.stax-cert-card img{width:100%;height:auto;display:block}

/* RFQ submit button: brand primary (2026-10-18) */
.wpforms-container .wpforms-form button[type=submit].wpforms-submit{background:#0EA5A4!important;color:#00251F!important;border:0!important;border-radius:2px!important;padding:16px 32px!important;height:auto!important;font-family:Cairo,sans-serif!important;font-weight:700!important;font-size:16px!important;line-height:1.2!important;box-shadow:none!important}
.wpforms-container .wpforms-form button[type=submit].wpforms-submit:hover{background:#0B7C7B!important;color:#fff!important}
.wpforms-container .wpforms-form button[type=submit].wpforms-submit:active{background:#064F4E!important;color:#fff!important}
.wpforms-container .wpforms-form button[type=submit].wpforms-submit:focus-visible{outline:2px solid #0EA5A4!important;outline-offset:2px}
