/* OptionX V1.1 brand system, 2026-10-16.
   Official V1.1 Navy, Blue and White with supporting functional UI colours.
   Load Manrope 400/500/600/700 and IBM Plex Sans Arabic 400/500/600.
   Retain OFL license notices when distributing font files.
   All lengths below assume the default 16px browser root size.
*/
:root {
  color-scheme: light;
  --opx-navy: #04163A;
  --opx-action: #0954E0;
  --opx-action-hover: #0954E0;
  --opx-action-pressed: #0954E0;
  --opx-on-action: #FFFFFF;
  --opx-text: #202A35;
  --opx-text-secondary: #56616D;
  --opx-surface: #FFFFFF;
  --opx-surface-warm: #F5F7FA;
  --opx-surface-data: #F5F7FA;
  --opx-border: #D8DEE5; /* separators and cards only */
  --opx-border-control: #778391; /* input/checkbox boundaries */
  --opx-disabled-bg: #E6EAF0;
  --opx-disabled-text: #596575;
  --opx-success: #21734B;
  --opx-success-bg: #EDF7F1;
  --opx-warning: #8A5700;
  --opx-warning-bg: #FFF5DE;
  --opx-error: #B42318;
  --opx-error-bg: #FFF0EE;
  --opx-info: var(--opx-action);
  --opx-info-bg: #EDF3FF;
  --opx-font-en: 'Manrope', Arial, sans-serif;
  --opx-font-ar: 'IBM Plex Sans Arabic', Tahoma, Arial, sans-serif;
  --opx-font: var(--opx-font-en);
  --opx-weight-body: 400;
  --opx-weight-label: 500;
  --opx-weight-ui: 600;
  --opx-weight-heading: 700;
  --opx-h1: 3rem;
  --opx-h2: 2.25rem;
  --opx-h3: 1.5rem;
  --opx-body: 1rem;
  --opx-lead: 1.125rem;
  --opx-small: .875rem;
  --opx-caption: .8125rem;
  --opx-line-heading: 1.2;
  --opx-line-body: 1.6;
  --opx-line-control: 1.5;
  --opx-tracking-heading: -.015em;
  --opx-space-1: .25rem;
  --opx-space-2: .5rem;
  --opx-space-3: .75rem;
  --opx-space-4: 1rem;
  --opx-space-5: 1.5rem;
  --opx-space-6: 2rem;
  --opx-space-7: 3rem;
  --opx-space-8: 4rem;
  --opx-space-9: 6rem;
  --opx-container: 75rem; /* 1200px max */
  --opx-form-container: 48rem; /* 768px max */
  --opx-page-gutter: 2rem;
  --opx-grid-gap: 1.5rem;
  --opx-section-space: 4rem;
  --opx-button-min-height: 3rem;
  --opx-input-min-height: 3rem;
  --opx-target-min: 2.75rem;
  --opx-radius-control: .375rem;
  --opx-radius-card: .5rem;
  --opx-radius-image: .25rem;
  --opx-border-width: 1px;
  --opx-focus-width: 2px;
  --opx-focus-offset: 3px;
  --opx-shadow-popover: 0 8px 24px rgb(4 22 58 / 12%);
  --opx-icon-small: 1rem;
  --opx-icon-ui: 1.25rem;
  --opx-icon-category: 1.5rem;
  --opx-icon-stroke: 1.75;
  --opx-transition: 140ms;
}
:lang(ar) {
  --opx-font: var(--opx-font-ar);
  --opx-weight-heading: 600;
  --opx-h1: 2.75rem;
  --opx-h2: 2rem;
  --opx-h3: 1.5rem;
  --opx-line-heading: 1.35;
  --opx-line-body: 1.8;
  --opx-line-control: 1.6;
  --opx-tracking-heading: 0;
}
@media (max-width: 47.99rem) {
  :root {
    --opx-h1: 2.125rem;
    --opx-h2: 1.75rem;
    --opx-h3: 1.25rem;
    --opx-page-gutter: 1rem;
    --opx-grid-gap: 1rem;
    --opx-section-space: 3rem;
  }
  :lang(ar) { --opx-h1: 2rem; --opx-h2: 1.75rem; --opx-h3: 1.25rem; }
}
.opx-page { font-family: var(--opx-font); color:var(--opx-text); background:var(--opx-surface); font-size:var(--opx-body); line-height:var(--opx-line-body); }
.opx-container { max-width:var(--opx-container); margin-inline:auto; padding-inline:var(--opx-page-gutter); }
.opx-button {
  display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  min-block-size:var(--opx-button-min-height); padding:.625rem 1.25rem;
  border:1px solid transparent; border-radius:var(--opx-radius-control);
  font-family:var(--opx-font); font-size:1rem; font-weight:var(--opx-weight-ui);
  line-height:var(--opx-line-control); background:var(--opx-action); color:var(--opx-on-action);
  transition:background-color var(--opx-transition),border-color var(--opx-transition);
}
.opx-button:hover { background:var(--opx-action-hover); }
.opx-button:active { background:var(--opx-action-pressed); }
.opx-button--secondary { background:var(--opx-surface); color:var(--opx-navy); border-color:var(--opx-border-control); }
.opx-button--secondary:hover,.opx-button--secondary:active { background:var(--opx-surface-data); }
.opx-button:disabled { background:var(--opx-disabled-bg); color:var(--opx-disabled-text); border-color:var(--opx-disabled-bg); cursor:not-allowed; }
.opx-input {
  box-sizing:border-box; inline-size:100%; min-block-size:var(--opx-input-min-height);
  padding:.625rem .75rem; border:1px solid var(--opx-border-control);
  border-radius:var(--opx-radius-control); color:var(--opx-text); background:var(--opx-surface);
  font-family:var(--opx-font); font-size:1rem; line-height:var(--opx-line-control);
}
.opx-input::placeholder { color:var(--opx-text-secondary); opacity:1; }
.opx-input[aria-invalid=true] { border-color:var(--opx-error); }
.opx-button:focus-visible,.opx-input:focus-visible,.opx-link:focus-visible {
  outline:var(--opx-focus-width) solid var(--opx-action); outline-offset:var(--opx-focus-offset);
}
.opx-link { color:var(--opx-action); text-decoration:underline; text-underline-offset:.2em; }
.opx-card { background:var(--opx-surface); border:1px solid var(--opx-border); border-radius:var(--opx-radius-card); padding:1.5rem; box-shadow:none; }
.opx-numeric { font-family:var(--opx-font-en); font-variant-numeric:tabular-nums; direction:ltr; unicode-bidi:isolate; }
.opx-icon { inline-size:var(--opx-icon-ui); block-size:var(--opx-icon-ui); stroke-width:var(--opx-icon-stroke); flex-shrink:0; }
@media (prefers-reduced-motion:reduce) { .opx-button { transition:none; } }
/* Implementation contract:
   Set html lang/dir correctly; mirror layout, NOT brand logos or part numbers.
   EN headings 700; AR headings 600; text 400; labels 500; buttons 600.
   RFQ: persistent labels, explicit required/optional text, native inputs.
   Quantity = integer >=1 plus a unit; allow a descriptive request when SKU unknown.
   Error uses icon + text + aria-describedby; preserve all values after failures.
   Loading state uses aria-busy and prevents duplicate submissions.
   Show success ONLY after confirmed server persistence in the real website.
   RFQ mobile line items stack; no horizontally scrolling form.
   No claim that mockup proves upload/storage/email/spam prevention capabilities.
   Dense tables use 14px text / 20px EN or 24px AR leading; editable fields >=16px.
   Commercial identifiers and amounts use Latin 0-9, tabular figures, bidi isolation.
   Native select is default; custom select requires keyboard and screen-reader support.
   Checkbox: 20px visible control, >=44px label target, navy/blue checked fill.
   No gradients; no decorative shadows. Popover shadow only.
   Supporting navy can carry white text; show locked logo on a white carrier.
   Photographs: natural light, accurate products, realistic scale; no color filters.
   Print quotation: A4 portrait, 16mm margins, EN 10pt/14pt, AR 11pt/17pt;
   heading 20pt EN / 19pt AR, headings 700/600; table >=9.5pt EN /10.5pt AR.
   Repeat table headers, keep rows together, embed fonts. White paper background.
   List price, quantity/unit, P/N, line total, availability/lead time, warranty,
   delivery cost, applicable tax treatment, payment terms, validity, exclusions.
   Company profile: A4 portrait, 18mm margins, EN 11pt/16pt, AR 12pt/19pt;
   one major message per page, same grid, warm image sections, no invented scale.
   CMYK is not locked: produce a print-profile-specific conversion/proof later.
*/

/* Final V1 additions: explicit language islands, heading roles and data isolation. */
.opx-page,.opx-page *,.opx-page *::before,.opx-page *::after { box-sizing:border-box; }
[lang="en"] { --opx-font:var(--opx-font-en); --opx-weight-heading:700; --opx-h1:3rem; --opx-h2:2.25rem; --opx-h3:1.5rem; --opx-line-heading:1.2; --opx-line-body:1.6; --opx-line-control:1.5; --opx-tracking-heading:-.015em; }
@media(max-width:47.99rem) { [lang="en"] { --opx-h1:2.125rem; --opx-h2:1.75rem; --opx-h3:1.25rem; } }
.opx-page [lang="en"] { font-family:var(--opx-font-en); }
.opx-page [lang="ar"] { font-family:var(--opx-font-ar); letter-spacing:0; }
.opx-h1,.opx-h2,.opx-h3 { margin:0; color:var(--opx-navy); font-family:var(--opx-font); font-weight:var(--opx-weight-heading); line-height:var(--opx-line-heading); letter-spacing:var(--opx-tracking-heading); }
.opx-h1 {font-size:var(--opx-h1)} .opx-h2 {font-size:var(--opx-h2)} .opx-h3 {font-size:var(--opx-h3)}
.opx-lead {font-size:var(--opx-lead)} .opx-small {font-size:var(--opx-small)}
.opx-label {display:block;font-size:1rem;font-weight:500;margin-block-end:var(--opx-space-2)}
.opx-help {font-size:var(--opx-small);color:var(--opx-text-secondary);margin-block-start:var(--opx-space-2)}
.opx-error {font-size:var(--opx-small);color:var(--opx-error)}
.opx-input:disabled {color:var(--opx-disabled-text);background:var(--opx-disabled-bg);cursor:not-allowed}
.opx-input[readonly] {background:var(--opx-surface-data)}
.opx-page textarea.opx-input {min-block-size:7.5rem;resize:vertical}
.opx-page :where(button,a,input,select,textarea):focus-visible {outline:var(--opx-focus-width) solid var(--opx-action);outline-offset:var(--opx-focus-offset)}
.opx-code {display:inline-block;font-family:var(--opx-font-en);direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.opx-input--ltr {direction:ltr;text-align:left;font-family:var(--opx-font-en)}
.opx-field-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--opx-grid-gap)}
.opx-form {max-inline-size:var(--opx-form-container);margin-inline:auto}
.opx-table {inline-size:100%;border-collapse:collapse;font-size:.875rem;line-height:1.4286}
.opx-table:lang(ar) {line-height:1.7143}
.opx-table :where(th,td) {padding:.75rem;text-align:start;border-block-end:1px solid var(--opx-border);vertical-align:top}
.opx-table th {background:var(--opx-surface-data);font-weight:600}
.opx-table .opx-amount {text-align:end;white-space:nowrap}
.opx-logo {display:block;max-inline-size:100%;block-size:auto;object-fit:contain;filter:none;transform:none}
.opx-icon--directional:dir(rtl) {transform:scaleX(-1)}
@media(max-width:47.99rem) {.opx-field-grid {grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce) {.opx-page * {scroll-behavior:auto;transition:none!important;animation:none!important}}
@media print {
 @page {size:A4 portrait;margin:16mm}
 .opx-page {background:white;color:var(--opx-text);font-size:10pt;line-height:1.4}
 .opx-page:lang(ar) {font-size:11pt;line-height:1.5455}
 .opx-table {font-size:9.5pt} .opx-table:lang(ar) {font-size:10.5pt}
 .opx-table thead {display:table-header-group} .opx-table tr {break-inside:avoid}
 .opx-print-hide {display:none!important}
}
/* CSS does not set language direction automatically. Set lang + dir in HTML.
   Load OptionX_Fonts_V1.css before this file. No decorative third accent.
   Responsive quotation rows must retain labels when switching to stacked cards.
   Use <bdi dir="ltr" class="opx-code"> for P/N and <bdi> for unknown names.
   Browser/assistive-technology QA remains part of the website launch gate. */
