/* ==========================================================================
   NEWTECH — design system and shared styles (all pages)
   Direction: premium industrial / international B2B / modern engineering.

   1. Tokens          5. Header & navigation     9. Brand & product pages
   2. Base            6. Home                   10. About
   3. Typography      7. Shared sections        11. Contact & forms
   4. Components      8. Page heads             12. Footer
                                                13. Responsive & preferences
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
@font-face {
  font-family: 'DM Sans';
  src: url('assets/fonts/dm-sans-latin-wght.woff2') format('woff2');
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
/* Metric-adjusted fallback (approximate) so text barely moves when DM Sans swaps in. */
@font-face {
  font-family: 'DM Sans Fallback';
  src: local('Arial');
  size-adjust: 102%;
  ascent-override: 96%;
  descent-override: 30%;
  line-gap-override: 0%;
}

:root {
  /* Colour */
  --red: #cf222d;            /* action red: white text passes AA (5.4:1) */
  --red-hover: #b51c26;
  --red-text: #bd1e29;       /* red as text on white / light grey */
  --red-on-dark: #ff5a63;    /* red as text on charcoal */
  --ink: #15181c;            /* headings */
  --charcoal: #1b1e22;       /* dark surfaces */
  --charcoal-deep: #07090c;  /* matches the hero artwork edge */
  --text: #2f353c;
  --muted: #5b626b;
  --line: #e2e4e7;
  --paper: #f3f4f4;
  --on-dark: #c9ced4;
  --on-dark-muted: #9aa1a9;
  --line-dark: rgba(255, 255, 255, .14);

  /* Type */
  --font: 'DM Sans', 'DM Sans Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-hero: clamp(2.125rem, 1.2rem + 3.4vw, 4.25rem);      /* 34 → 68 (tablet ≈ 45) */
  --fs-h1: clamp(2.125rem, 1.5rem + 1.8vw, 3rem);           /* 34 → 48 */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.1vw, 2.25rem);        /* 28 → 36 */
  --fs-h3: clamp(1.1875rem, 1.1rem + .35vw, 1.375rem);      /* 19 → 22 */
  --fs-lead: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);     /* 17 → 19 */
  --fs-body: 1rem;                                          /* 16 */
  --fs-small: .875rem;                                      /* 14 */
  --fs-xs: .8125rem;                                        /* 13 */

  /* Spacing — 8px rhythm */
  --s-1: 4px;  --s-2: 8px;  --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px;
  --section-y: clamp(64px, 5vw + 32px, 104px);
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1240px;
  --grid-gap: clamp(16px, 2vw, 24px);

  /* Shape */
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-sm: 0 1px 2px rgba(21, 24, 28, .06);
  --shadow-md: 0 8px 24px rgba(21, 24, 28, .09);

  --header-h: 72px;
  --ease: cubic-bezier(.2, .6, .2, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: var(--fs-body); font-weight: 400;
  line-height: 1.7; color: var(--text); background: #fff; overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.section--dark :focus-visible, .site-footer :focus-visible, .home-hero :focus-visible, .page-head :focus-visible, .cta-band:not(.cta-band--light) :focus-visible { outline-color: #fff; }
.skip-link { position: absolute; left: var(--s-3); top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; font-weight: 600; border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--s-3); }

.container { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--paper { background: var(--paper); }
.section--dark { background: var(--charcoal); color: var(--on-dark); }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-family: var(--font); color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }
h2, .h-lg { font-size: var(--fs-h2); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.28; letter-spacing: -.01em; }
h4 { font-size: var(--fs-body); font-weight: 600; line-height: 1.4; }
.section--dark h1, .section--dark h2, .section--dark h3,
.cta-band h2, .page-head h1 { color: #fff; }
.lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--ink); max-width: 62ch; }
.muted { color: var(--muted); max-width: 62ch; }
.section--dark .muted, .section--dark .lead { color: var(--on-dark); }
.section--dark .muted { color: var(--on-dark-muted); }
.fine-print { font-size: var(--fs-xs); color: var(--on-dark-muted); }
.stack > * + * { margin-top: var(--s-3); }
.stack--narrow { max-width: 640px; }

/* ---------- 4. Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: 12px 24px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  font-size: .9375rem; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-hover); }
.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: #fff; }
.btn--on-dark { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.card-link { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.card-link::after { content: ''; width: 7px; height: 7px; border-top: 2px solid var(--red); border-right: 2px solid var(--red); transform: rotate(45deg); transition: transform .2s var(--ease); }
a:hover > * > .card-link::after, a:hover > .card-link::after, .card-link:hover::after { transform: translateX(3px) rotate(45deg); }
.link { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.link:hover { color: var(--red-text); }

.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: var(--fs-small); font-weight: 600; color: var(--ink); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--red); color: var(--red-text); }

.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-bottom: var(--s-5); font-size: var(--fs-small); color: var(--on-dark-muted); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }
.breadcrumb span[aria-hidden] { opacity: .5; }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-6); }
.section-head > p { color: var(--muted); }

.flag { width: 28px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }

/* ---------- 5. Header & navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 48px; width: auto; }
.main-nav { display: flex; align-items: center; gap: var(--s-1); }
.nav-link { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; font-size: .9375rem; font-weight: 500; color: var(--text); transition: color .2s; }
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current] { color: var(--ink); font-weight: 600; }
.nav-link[aria-current]::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); }
.nav-link .caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.nav-cta { display: inline-flex; align-items: center; min-height: 42px; margin-left: var(--s-3); padding: 8px 20px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font-size: .9375rem; font-weight: 600; transition: background-color .2s; }
.nav-cta:hover { background: var(--red); }
.nav-cta[aria-current] { background: var(--red); }

.nav-item { position: relative; }
.subnav {
  position: absolute; top: 100%; left: 50%; width: 340px; padding: var(--s-2);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav a { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); }
.subnav a:hover { background: var(--paper); }
.subnav img { grid-row: span 2; width: 22px; height: 15px; border-radius: 2px; }
.subnav span { font-size: .9375rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.subnav small { font-size: var(--fs-xs); color: var(--muted); line-height: 1.3; }

.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 6. Home ---------- */
/* The supplied hero artwork is never cropped or stretched. Wide screens layer the text over its empty
   left half; narrower screens show the whole artwork first and the text below it. */
.home-hero { position: relative; background: var(--charcoal-deep); color: #fff; }
.hero-cover { width: 100%; height: auto; aspect-ratio: 1991 / 789; }
.hero-overlay { padding: var(--s-6) 0 var(--s-7); }
.hero-content { max-width: 36rem; }
.hero-content h1 { color: #fff; font-size: var(--fs-hero); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.hero-content p { margin-top: var(--s-4); max-width: 34rem; font-size: var(--fs-lead); color: var(--on-dark); }
.hero-content h1 span { display: block; }
.hero-content h1 span + span { max-width: 9.6em; }
.hero-content .btn-row { margin-top: var(--s-5); }

.home-intro-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--s-6) var(--s-8); align-items: start; }
.home-intro-copy { display: grid; gap: var(--s-4); justify-items: start; padding-top: var(--s-2); }
.service-ribbon { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--s-7); border-top: 1px solid var(--line); }
.service-ribbon li { padding: var(--s-4) var(--s-4) 0 0; font-weight: 600; color: var(--ink); }

.brand-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--grid-gap); }
.brand-card { grid-column: span 3; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.brand-card:nth-child(-n+3) { grid-column: span 4; }
.brand-card:hover { border-color: #c4c8cd; box-shadow: var(--shadow-md); }
.brand-card-logo { position: relative; display: flex; align-items: center; justify-content: center; height: 112px; padding: var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); }
.brand-card-logo .flag { position: absolute; top: var(--s-3); right: var(--s-3); width: 26px; }
.brand-card-logo > img:not(.flag) { max-width: 78%; max-height: 56px; width: auto; height: auto; object-fit: contain; }
.brand-card-logo .logo-rif { max-height: 64px; }
.brand-card-logo .logo-jj { max-height: 60px; max-width: 64%; }
.brand-card-logo .logo-tfe { max-width: 56%; max-height: 64px; }
.brand-card-logo .logo-bison { max-width: 44%; max-height: 72px; }
.brand-card-body { display: flex; flex: 1; flex-direction: column; padding: var(--s-4); }
.brand-card-category { font-size: var(--fs-small); color: var(--muted); }
.brand-card h3 { margin-top: var(--s-1); text-wrap: pretty; }
.brand-name { display: block; margin-top: var(--s-1); font-size: var(--fs-small); font-weight: 600; color: var(--red-text); }
.brand-card-body p:not(.brand-card-category) { margin-top: var(--s-3); font-size: .9375rem; color: var(--muted); }
.brand-card .card-link { margin-top: auto; padding-top: var(--s-4); }

.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7) var(--s-8); align-items: center; }
.feature-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; border-radius: var(--radius); background: var(--charcoal-deep); }
.blade-feature-copy { display: grid; gap: var(--s-4); justify-items: start; }
.blade-feature-copy .muted { max-width: 52ch; }
.feature-points { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); padding-block: var(--s-3); border-block: 1px solid var(--line-dark); width: 100%; font-size: .9375rem; font-weight: 500; color: #fff; }
.feature-points span { display: inline-flex; align-items: center; gap: var(--s-2); }
.feature-points span::before { content: ''; width: 8px; height: 2px; background: var(--red-on-dark); }

/* ---------- 7. Shared sections ---------- */
.cta-band { padding-block: var(--s-7); background: var(--charcoal); color: var(--on-dark); }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5) var(--s-6); }
.cta-band h2 { font-size: var(--fs-h2); }
.cta-band p { margin-top: var(--s-2); color: var(--on-dark); }
.cta-band--light { background: var(--paper); color: var(--text); }
.cta-band--light h2 { color: var(--ink); }
.cta-band--light p { color: var(--muted); }

/* ---------- 8. Page heads ---------- */
.page-head { background: var(--charcoal); color: var(--on-dark); padding: var(--s-6) 0 var(--s-7); }
.page-head-inner { max-width: 46rem; }
.page-head-inner p { margin-top: var(--s-3); font-size: var(--fs-lead); }
.brand-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: var(--s-6) var(--s-8); align-items: center; }
.brand-hero .category { margin-top: var(--s-2); font-size: var(--fs-lead); font-weight: 600; color: var(--red-on-dark); }
.brand-hero .intro { margin-top: var(--s-3); max-width: 48ch; font-size: var(--fs-lead); }
.brand-hero .btn-row { margin-top: var(--s-5); }
.brand-mark { position: relative; display: flex; align-items: center; justify-content: center; min-height: 200px; padding: var(--s-5); background: #fff; border-radius: var(--radius); }
.brand-mark > img:not(.flag) { width: auto; height: auto; max-width: 78%; max-height: 96px; object-fit: contain; }
.brand-mark .logo-jj { max-width: 70%; }
.brand-mark .logo-bison { max-height: 128px; max-width: 46%; }
.brand-mark .logo-tfe { max-height: 112px; max-width: 62%; }
.brand-mark .logo-rif { max-height: 104px; }
.brand-mark .flag { position: absolute; top: var(--s-3); right: var(--s-3); width: 32px; }

/* ---------- 9. Brand & product pages ---------- */
.range-nav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.range-nav .container { display: flex; align-items: center; gap: var(--s-2); padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.range-nav .container::-webkit-scrollbar { display: none; }
.range-nav-label { flex: none; margin-right: var(--s-2); font-size: var(--fs-small); color: var(--muted); }
.range-nav .chip { flex: none; }

.range-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-6); margin-bottom: var(--s-5); }
.range-head > p, .range-head > div > p { margin-top: var(--s-2); max-width: 56ch; color: var(--muted); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--grid-gap); }
.product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.product-card:hover { border-color: #c4c8cd; box-shadow: var(--shadow-md); }
.product-art { aspect-ratio: 1 / 1; background: var(--charcoal-deep); overflow: hidden; }
.product-art img { width: 100%; height: 100%; object-fit: contain; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: var(--s-4); }
.product-body h3 { font-size: var(--fs-h3); }
.product-body p { margin-top: var(--s-2); font-size: .9375rem; color: var(--muted); }
.product-body p.product-types { margin-top: var(--s-3); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: var(--fs-xs); font-weight: 500; color: var(--ink); }
.product-body .card-link { margin-top: auto; padding-top: var(--s-4); }

/* Ranges with one or two products: title on the left, cards beside it, so the row never looks half empty. */
@media (min-width: 1000px) {
  .range-section > .container:has(.product-grid > .product-card:nth-child(-n+2):last-child) {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--grid-gap); align-items: start;
  }
  .range-section > .container:has(.product-grid > .product-card:nth-child(-n+2):last-child) > .range-head {
    grid-column: 1; flex-direction: column; align-items: flex-start; margin: 0; padding-right: var(--s-4);
  }
  .range-section > .container:has(.product-grid > .product-card:nth-child(-n+2):last-child) > .product-grid {
    grid-column: 2 / 4; grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* R.I.F. STAHL ranges */
.supply-format-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.supply-format-card { padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.format-icon { width: 44px; height: 44px; margin-bottom: var(--s-4); color: var(--red-text); }
.format-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.supply-format-card p { margin-top: var(--s-2); font-size: .9375rem; color: var(--muted); }

.rif-product-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--grid-gap); align-items: stretch; }
.rif-product-figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--charcoal-deep); }
.rif-product-figure img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.rif-product-figure figcaption { position: absolute; inset: auto 0 0 0; padding: var(--s-3) var(--s-4); background: linear-gradient(transparent, rgba(7, 9, 12, .86)); font-size: var(--fs-small); font-weight: 500; color: #fff; }
.rif-spec-panel { display: flex; flex-direction: column; gap: var(--s-4); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.rif-panel-label { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.rif-availability-copy { font-size: .9375rem; color: var(--muted); }
.rif-width-options { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.rif-width-chip { padding: 6px 14px; background: var(--paper); border-radius: var(--radius-sm); font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.rif-size-legend { margin-top: calc(-1 * var(--s-2)); font-size: var(--fs-xs); color: var(--muted); }
.rif-application-note { padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rif-application-note p { margin-top: var(--s-1); font-size: .9375rem; font-weight: 500; color: var(--ink); }
.rif-panel-cta { margin-top: auto; }
.rif-range-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4) var(--s-5); margin-top: var(--grid-gap); padding: var(--s-4) var(--s-5); background: var(--paper); border-radius: var(--radius); }
.section--paper .rif-range-footer { background: #fff; }
.rif-range-footer p { color: var(--muted); }
.rif-range-footer strong { color: var(--ink); }

.selection-points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.selection-points li { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.selection-points li::before { content: ''; display: inline-block; width: 10px; height: 2px; margin-right: var(--s-3); vertical-align: middle; background: var(--red); }
.rif-selection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6) var(--s-8); align-items: start; }

/* ---------- 10. About ---------- */
.about-overview { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-6) var(--s-8); align-items: center; }
.about-overview img { width: 100%; border-radius: var(--radius); background: var(--charcoal-deep); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-5) var(--s-8); align-items: start; }
.spec-rows { display: grid; }
.spec-row { display: grid; grid-template-columns: 11rem 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line-dark); }
.spec-row:first-child { border-top: 1px solid var(--line-dark); }
.spec-row dt { font-weight: 600; color: #fff; }
.spec-row dd { margin: 0; color: var(--on-dark); }
.mini-brands { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.mini-brand { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 168px; padding: var(--s-5) var(--s-4) var(--s-4); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-align: center; transition: border-color .2s, box-shadow .2s; }
.mini-brand:hover { border-color: #c4c8cd; box-shadow: var(--shadow-md); }
.mini-brand > img:not(.flag) { width: auto; max-width: 80%; height: 52px; object-fit: contain; }
.mini-brand span { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.mini-brand .flag { position: absolute; top: var(--s-3); right: var(--s-3); width: 22px; }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.cap { padding: var(--s-5) 0 0; border-top: 2px solid var(--ink); }
.cap p { margin-top: var(--s-2); font-size: .9375rem; color: var(--muted); }
.value-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); margin-top: var(--s-6); }
.value { padding: var(--s-5) 0 0; border-top: 1px solid var(--line-dark); }
.value p { margin-top: var(--s-2); color: var(--on-dark-muted); }

/* ---------- 11. Contact & forms ---------- */
.contact-hero { padding-bottom: var(--s-7); }
.contact-channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.contact-channel { display: flex; flex-direction: column; gap: var(--s-1); padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.contact-channel:hover { border-color: #c4c8cd; box-shadow: var(--shadow-md); }
.channel-label { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }
.contact-channel strong { font-size: var(--fs-h3); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-channel .card-link { margin-top: var(--s-3); }

.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.location-card { display: flex; flex-direction: column; padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.location-card--dark { background: var(--charcoal); border-color: var(--charcoal); color: var(--on-dark); }
.location-card--dark h3, .location-card--dark .location-type { color: #fff; }
.location-type { font-size: var(--fs-small); font-weight: 600; color: var(--red-text); }
.location-card--dark .location-type { color: var(--red-on-dark); }
.location-card h3 { margin-top: var(--s-1); }
.location-address { margin-top: var(--s-3); color: var(--muted); }
.location-card--dark .location-address { color: var(--on-dark); }
.location-note { margin-top: var(--s-3); padding-left: var(--s-3); border-left: 2px solid var(--red-on-dark); font-size: .9375rem; color: var(--on-dark); }
.location-map-link { display: inline-flex; margin-top: auto; padding-top: var(--s-4); font-weight: 600; color: var(--ink); }
.location-map-link span { border-bottom: 2px solid var(--red); padding-bottom: 2px; }
.location-card--dark .location-map-link { color: #fff; }
.location-card--dark .location-map-link span { border-color: var(--red-on-dark); }
.contact-meta-strip { display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); margin-top: var(--grid-gap); }
.contact-meta-strip > div { padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.meta-label { display: block; font-size: var(--fs-small); color: var(--muted); }
.contact-meta-strip strong { color: var(--ink); }
.contact-meta-strip a { font-weight: 600; color: var(--ink); border-bottom: 2px solid var(--red); }
.contact-social > a + a { margin-left: var(--s-4); }
.contact-social > a { display: inline-block; margin-top: var(--s-1); }

.contact-enquiry-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-6) var(--s-8); align-items: start; }
.contact-enquiry-copy > p { margin-top: var(--s-3); }
.enquiry-steps { margin-top: var(--s-5); border-top: 1px solid var(--line); counter-reset: step; }
.enquiry-steps li { position: relative; padding: var(--s-3) 0 var(--s-3) var(--s-6); border-bottom: 1px solid var(--line); counter-increment: step; }
.enquiry-steps li::before { content: counter(step); position: absolute; left: 0; top: var(--s-3); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: var(--fs-small); font-weight: 600; }
.enquiry-steps strong { display: block; color: var(--ink); }
.enquiry-steps small { color: var(--muted); font-size: var(--fs-small); }

.quote-form { padding: var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quote-form h3 { font-size: var(--fs-h3); }
.req-note { margin: var(--s-1) 0 var(--s-4); font-size: var(--fs-small); color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { display: block; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #b9bec5; border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-body); line-height: 1.4; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 132px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8d949c; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(21, 24, 28, .16); }
.field select:disabled { background: var(--paper); color: var(--muted); cursor: not-allowed; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--red-text); }
.field .error { display: none; margin-top: 6px; font-size: var(--fs-small); font-weight: 500; color: var(--red-text); }
.field.has-error .error { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); margin-top: var(--s-2); }
.form-email-note { flex: 1 1 14rem; font-size: var(--fs-small); color: var(--muted); }
.form-status { display: none; margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-left: 3px solid var(--ink); border-radius: var(--radius-sm); background: var(--paper); font-size: .9375rem; }
.form-status.is-visible { display: block; }
.form-status strong { display: block; color: var(--ink); }
.form-status[data-state='error'] { border-color: var(--red-text); }
.form-status[data-state='success'] { border-color: #1d7a46; }
.form-status button { display: block; margin-top: var(--s-2); padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: #fff; font-size: var(--fs-small); font-weight: 600; cursor: pointer; }
.form-status button:hover { background: var(--ink); color: #fff; }

/* ---------- 12. Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--on-dark); padding-top: var(--s-7); }
.footer-grid { display: grid; grid-template-columns: 1.1fr .7fr .9fr 1.6fr; gap: var(--s-6) var(--s-5); padding-bottom: var(--s-7); }
.footer-logo img { height: 56px; width: auto; }
.footer-about { margin-top: var(--s-3); max-width: 24ch; font-size: .9375rem; color: var(--on-dark-muted); }
.footer-title { margin-bottom: var(--s-3); font-size: .9375rem; font-weight: 600; color: #fff; }
.site-footer li + li { margin-top: var(--s-2); }
.site-footer a { color: var(--on-dark); transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer li a, .footer-contact a { font-size: .9375rem; }
.footer-contact { display: grid; gap: var(--s-4); font-size: .9375rem; }
.footer-contact .footer-title { margin-bottom: calc(-1 * var(--s-2)); }
.footer-contact strong { display: block; color: #fff; font-weight: 600; }
.footer-contact address { color: var(--on-dark-muted); }
.footer-contact address a { display: inline-block; margin-top: var(--s-1); color: #fff; border-bottom: 1px solid var(--red-on-dark); }
.footer-contact .footer-direct a { display: block; color: #fff; }
.footer-bottom { padding-block: var(--s-4); border-top: 1px solid var(--line-dark); font-size: var(--fs-small); color: var(--on-dark-muted); }

/* ---------- 13. Responsive & preferences ---------- */
@media (min-width: 1180px) {
  /* Text sits over the empty left half of the artwork; its left edge lines up with the artwork's own label. */
  .home-hero { overflow: hidden; }
  .hero-overlay { position: absolute; inset: 0; display: flex; align-items: center; padding: 0 0 0 7.5%; }
  .hero-overlay > .container { width: auto; margin: 0; }
  .hero-content h1 { font-size: min(var(--fs-hero), 3.9vw); }
  .hero-content { width: 33vw; max-width: 33vw; margin-top: 2%; }
  .hero-content p { font-size: clamp(1rem, .55rem + .45vw, 1.125rem); }
}

@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cap-grid, .mini-brands { grid-template-columns: repeat(2, 1fr); }
  .rif-product-layout { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .logo img { height: 42px; }
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: var(--s-2) var(--gutter) var(--s-4); background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav-link[aria-current]::after { display: none; }
  .nav-link[aria-current] { color: var(--red-text); }
  .nav-link .caret { display: none; }
  .subnav { position: static; width: auto; padding: 0 0 var(--s-2) var(--s-3); border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .has-sub:hover .subnav, .has-sub:focus-within .subnav { transform: none; }
  .subnav a { padding: 10px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-cta { margin: var(--s-4) 0 0; justify-content: center; min-height: 48px; }

  .section-head, .home-intro-grid, .brand-hero-grid, .about-overview, .split, .feature-grid, .contact-enquiry-grid, .rif-selection-grid { grid-template-columns: 1fr; }
  .brand-hero-grid { gap: var(--s-5); }
  .brand-mark { min-height: 160px; order: -1; }
  .feature-media { max-width: 440px; }
  .service-ribbon { grid-template-columns: 1fr 1fr; }
  .service-ribbon li:nth-child(n+3) { margin-top: var(--s-3); }
  .brand-card, .brand-card:nth-child(-n+3) { grid-column: span 6; }
  .brand-card:last-child { grid-column: 1 / -1; }
  .supply-format-grid, .contact-channel-grid, .value-list { grid-template-columns: 1fr; }
  .location-grid, .contact-meta-strip { grid-template-columns: 1fr; }
  .range-head, .cta-band-inner, .rif-range-footer { flex-direction: column; align-items: flex-start; }
  .hero-overlay { padding: var(--s-6) 0 var(--s-7); }
  .hero-content { max-width: 40rem; }
}

@media (max-width: 600px) {
  .brand-card, .brand-card:nth-child(-n+3), .brand-card:last-child { grid-column: 1 / -1; }
  .form-row { grid-template-columns: 1fr; }
  .quote-form { padding: var(--s-4); }
  .btn-row .btn, .form-actions .btn, .rif-panel-cta, .rif-range-footer .btn, .range-head > .btn { width: 100%; }
  .footer-grid, .cap-grid, .mini-brands { grid-template-columns: 1fr; }
  .mini-brands { grid-template-columns: 1fr 1fr; }
  .spec-row { grid-template-columns: 1fr; gap: var(--s-1); }
  .service-ribbon { grid-template-columns: 1fr; }
  .service-ribbon li, .service-ribbon li:nth-child(n+3) { padding: var(--s-3) 0; margin-top: 0; border-top: 1px solid var(--line); }
  .service-ribbon li:first-child { border-top: 0; padding-top: var(--s-4); }
  .rif-spec-panel, .supply-format-card { padding: var(--s-4); }
  .brand-mark { padding: var(--s-4); }
  .brand-mark .flag { width: 28px; }
}

@media (hover: none) {
  .subnav a:hover, .brand-card:hover, .product-card:hover, .mini-brand:hover, .contact-channel:hover { box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .site-header, .menu-toggle, .cta-band, .range-nav { display: none; }
  body { color: #000; }
}

/* ---------- 14. About page — company profile refresh ---------- */
.about-hero {
  overflow: hidden;
  padding: clamp(56px, 6vw, 88px) 0;
  color: var(--on-dark);
  background: radial-gradient(circle at 72% 45%, rgba(207,34,45,.12), transparent 34%), var(--charcoal);
}
.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.about-hero .breadcrumb { margin-bottom: clamp(34px, 4vw, 54px); }
.about-kicker, .section-kicker {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 16px; color: var(--red-text);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; line-height: 1.4;
}
.about-kicker { color: #fff; }
.about-kicker span { width: 30px; height: 2px; background: var(--red-on-dark); }
.about-hero h1 { max-width: 12ch; color: #fff; font-size: clamp(2.6rem, 4.2vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; }
.about-hero-lead { max-width: 58ch; margin-top: 24px; color: #c9ced4; font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.75; }
.about-hero-actions { margin-top: 30px; }
.about-hero-note { max-width: 50ch; margin-top: 24px; padding-left: 14px; border-left: 2px solid var(--red-on-dark); color: #aeb5bd; font-size: 13px; line-height: 1.6; }
.about-hero-media { position: relative; padding: 10px; border: 1px solid rgba(255,255,255,.13); background: rgba(255,255,255,.035); }
.about-hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #090b0e; }
.about-image-index { display: block; padding: 13px 8px 3px; color: #aeb5bd; font-size: 10px; font-weight: 600; letter-spacing: .13em; text-align: center; }
.about-facts { background: #fff; border-bottom: 1px solid var(--line); }
.about-facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.about-fact { display: flex; flex-direction: column; gap: 2px; padding: 24px 28px; border-left: 1px solid var(--line); }
.about-fact:first-child { border-left: 0; }
.about-fact strong { color: var(--ink); font-size: 27px; font-weight: 700; line-height: 1.15; letter-spacing: -.04em; }
.about-fact span { color: var(--muted); font-size: 12px; line-height: 1.45; }
.about-story-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 104px); align-items: start; }
.about-section-intro h2 { max-width: 12ch; }
.about-story-copy { max-width: 720px; }
.about-story-copy > * + * { margin-top: 18px; }
.about-brands-head { align-items: end; }
.about-brands-head > p { max-width: 48ch; }
.about-brand-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.about-brand { display: flex; flex-direction: column; justify-content: space-between; min-height: 126px; padding: 18px 18px 14px; border: 1px solid var(--line); background: #fff; transition: border-color .2s, transform .2s; }
.about-brand:hover { border-color: #b8bec5; transform: translateY(-2px); }
.about-brand-logo { display: flex; align-items: center; justify-content: center; min-height: 70px; }
.about-brand-logo img { width: auto; max-width: 82%; max-height: 52px; object-fit: contain; }
.about-brand-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; }
.about-brand-meta img { width: 22px; height: 15px; object-fit: cover; }
.about-capability-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.about-capability { padding-top: 18px; border-top: 2px solid var(--ink); }
.about-cap-number { color: var(--red-text); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.about-capability h3 { margin-top: 18px; }
.about-capability p { margin-top: 9px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.about-dark-head h2 { color: #fff; }
.about-dark-head > p { color: var(--on-dark-muted); }
.about-advantage-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 28px); }
.about-advantage { padding: 20px 0 0; border-top: 1px solid var(--line-dark); }
.about-advantage > span { color: var(--red-on-dark); font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.about-advantage h3 { margin-top: 17px; color: #fff; }
.about-advantage p { margin-top: 9px; color: var(--on-dark-muted); font-size: 14px; line-height: 1.7; }
.about-facility-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.about-facility-media { position: relative; padding: 10px; background: var(--paper); }
.about-facility-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.about-media-caption { display: block; padding: 12px 8px 2px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-align: center; }
.about-facility-copy h2 { max-width: 15ch; }
.about-facility-copy > .lead { margin-top: 20px; }
.about-facility-points { display: grid; gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.about-facility-points > div { display: grid; grid-template-columns: minmax(150px, .7fr) 1.3fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.about-facility-points strong { color: var(--ink); font-size: 13px; font-weight: 600; }
.about-facility-points span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.about-facility-copy .card-link { margin-top: 24px; }
.about-facility-footnote { margin-top: 18px; color: var(--muted); }
.about-market-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 100px); align-items: start; }
.about-market-grid h2 { max-width: 14ch; }
.about-market-grid .muted { margin-top: 16px; }
.about-sector-list { display: flex; flex-wrap: wrap; gap: 10px; }
.about-sector-list span { display: inline-flex; align-items: center; min-height: 38px; padding: 8px 14px; border: 1px solid #d9dde1; background: rgba(255,255,255,.7); color: var(--text); font-size: 13px; font-weight: 500; }
.about-coverage { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 100px); align-items: center; margin-top: 68px; padding-top: 28px; border-top: 1px solid var(--line); }
.about-coverage-label h3 { max-width: 22ch; font-size: 18px; }
.about-coverage-places { display: flex; flex-wrap: wrap; gap: 10px; }
.about-coverage-places span { padding: 9px 14px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.about-vision { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(36px, 6vw, 88px); padding: clamp(32px, 5vw, 64px); background: var(--charcoal); color: var(--on-dark); }
.about-vision h2 { max-width: 16ch; color: #fff; }
.about-vision-copy .lead { margin-top: 20px; color: var(--on-dark); }
.about-vision-side { padding-left: clamp(20px, 3vw, 42px); border-left: 1px solid var(--line-dark); }
.about-vision-side > p { color: #fff; font-size: 14px; font-weight: 600; }
.about-vision-side ul { display: grid; gap: 13px; margin: 18px 0 26px; }
.about-vision-side li { position: relative; padding-left: 18px; color: var(--on-dark-muted); font-size: 14px; line-height: 1.55; }
.about-vision-side li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; background: var(--red-on-dark); }

@media (max-width: 1080px) {
  .about-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-capability-grid, .about-advantage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-hero-grid, .about-story-grid, .about-facility-grid, .about-market-grid, .about-coverage, .about-vision { grid-template-columns: 1fr; }
  .about-hero-grid { gap: 34px; }
  .about-hero-media { max-width: 560px; }
  .about-facts-grid { grid-template-columns: repeat(2, 1fr); }
  .about-fact:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .about-fact:nth-child(4) { border-top: 1px solid var(--line); }
  .about-vision-side { padding: 26px 0 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .about-coverage { gap: 18px; margin-top: 48px; }
}
@media (max-width: 600px) {
  .about-hero { padding: 34px 0 48px; }
  .about-hero .breadcrumb { margin-bottom: 28px; }
  .about-hero h1 { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .about-hero-actions { flex-direction: column; }
  .about-hero-actions .btn { width: 100%; }
  .about-fact { padding: 19px 14px; }
  .about-fact strong { font-size: 23px; }
  .about-brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .about-brand { min-height: 112px; padding: 13px 12px 11px; }
  .about-brand-logo { min-height: 62px; }
  .about-brand-logo img { max-height: 44px; max-width: 88%; }
  .about-capability-grid, .about-advantage-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-facility-points > div { grid-template-columns: 1fr; gap: 4px; }
  .about-vision { padding: 28px 22px; }
}

/* ---------- Bilingual language switch + Arabic RTL ---------- */
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-inline-start: 10px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: .875rem;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .18s, border-color .18s, background-color .18s;
}
.language-toggle:hover { color: var(--red-text); border-color: var(--red); background: var(--paper); }
.language-toggle:focus-visible { outline: 3px solid rgba(207,34,45,.25); outline-offset: 2px; }

html[dir="rtl"] body,
html.is-arabic body {
  font-family: Tahoma, Arial, "Noto Sans Arabic", sans-serif;
  letter-spacing: 0;
}
html[dir="rtl"] body { direction: rtl; }
html[dir="rtl"] .main-nav { direction: rtl; }
html[dir="rtl"] .nav-cta { margin-left: 0; margin-right: var(--s-3); }
html[dir="rtl"] .brand-card-logo .flag { right: auto; left: var(--s-3); }
html[dir="rtl"] .breadcrumb { direction: rtl; }
html[dir="rtl"] .hero-content,
html[dir="rtl"] .blade-feature-copy,
html[dir="rtl"] .about-hero-copy,
html[dir="rtl"] .about-story-copy,
html[dir="rtl"] .about-facility-copy,
html[dir="rtl"] .about-vision,
html[dir="rtl"] .contact-enquiry-copy { text-align: right; }
html[dir="rtl"] .about-hero-note,
html[dir="rtl"] .location-note {
  padding-left: 0;
  padding-right: 14px;
  border-left: 0;
  border-right: 2px solid var(--red-on-dark);
}
html[dir="rtl"] .about-fact { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .about-fact:first-child { border-right: 0; }
html[dir="rtl"] .about-vision-side {
  padding-left: 0;
  padding-right: clamp(20px, 3vw, 42px);
  border-left: 0;
  border-right: 1px solid var(--line-dark);
}
html[dir="rtl"] .about-vision-side li { padding-left: 0; padding-right: 18px; }
html[dir="rtl"] .about-vision-side li::before { left: auto; right: 0; }
html[dir="rtl"] .contact-social > a + a { margin-left: 0; margin-right: var(--s-4); }
html[dir="rtl"] .enquiry-steps li { padding-left: 0; padding-right: 44px; }
html[dir="rtl"] .enquiry-steps li::before { left: auto; right: 0; }
html[dir="rtl"] .form-status { border-left: 0; border-right: 3px solid var(--ink); }
html[dir="rtl"] .subnav { direction: rtl; text-align: right; }
html[dir="rtl"] .location-address,
html[dir="rtl"] .footer-contact address { text-align: right; }
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] .footer-direct a[href^="mailto:"],
html[dir="rtl"] .footer-direct a[href^="tel:"] { direction: ltr; text-align: right; unicode-bidi: plaintext; }
html[dir="rtl"] .about-image-index,
html[dir="rtl"] .about-media-caption { letter-spacing: 0; }
html[dir="rtl"] .about-facility-points > div { direction: rtl; }
html[dir="rtl"] .about-facility-points strong,
html[dir="rtl"] .about-facility-points span { text-align: right; }

@media (max-width: 900px) {
  .language-toggle { width: 100%; min-height: 46px; margin: var(--s-3) 0 0; }
  html[dir="rtl"] .subnav { padding: 0 var(--s-3) var(--s-2) 0; }
  html[dir="rtl"] .nav-cta { margin: var(--s-4) 0 0; }
  html[dir="rtl"] .about-vision-side { padding: 26px 0 0; border-right: 0; border-top: 1px solid var(--line-dark); }
  html[dir="rtl"] .about-fact:nth-child(3) { border-right: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  html[dir="rtl"] .about-hero-actions { align-items: stretch; }
  html[dir="rtl"] .about-facility-points > div { grid-template-columns: 1fr; }
}

/* Arabic hero labels replace English lettering embedded in the supplied cover artwork. */
.hero-art-ar { display: none; }
html[dir="rtl"] .hero-art-ar { display: block; position: absolute; z-index: 2; inset: 0; pointer-events: none; color: #fff; }
html[dir="rtl"] .hero-art-ar::before {
  content: '';
  position: absolute;
  left: 5.5%; top: 6.5%; width: 31%; height: 15%;
  background: linear-gradient(90deg, rgba(7,9,12,.99) 0%, rgba(7,9,12,.96) 72%, rgba(7,9,12,0) 100%);
}
html[dir="rtl"] .hero-art-ar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0; height: 16%;
  background: linear-gradient(0deg, rgba(7,9,12,.99) 0%, rgba(7,9,12,.96) 68%, rgba(7,9,12,0) 100%);
}
html[dir="rtl"] .hero-art-ar-kicker {
  position: absolute; z-index: 1; left: 7.5%; top: 8.5%;
  font: 700 clamp(11px, 1vw, 16px)/1.5 Tahoma, Arial, sans-serif;
  color: #fff; direction: rtl; text-align: right;
}
html[dir="rtl"] .hero-art-ar-categories {
  position: absolute; z-index: 1; left: 7%; right: 7%; bottom: 4.2%;
  display: block; color: #fff; text-align: center;
  font: 600 clamp(10px, 1vw, 15px)/1.5 Tahoma, Arial, sans-serif;
}
html[dir="rtl"] .hero-art-ar-categories b { color: var(--red-on-dark); padding: 0 .55em; }

/* Fine-tuning Arabic reading rhythm and technical values. */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] .about-kicker,
html[dir="rtl"] .section-kicker,
html[dir="rtl"] .brand-card-category { letter-spacing: 0; }
html[dir="rtl"] .hero-content h1,
html[dir="rtl"] .about-hero h1 { line-height: 1.35; }
html[dir="rtl"] .hero-content h1 span + span { max-width: none; }
html[dir="rtl"] .rif-width-chip,
html[dir="rtl"] .rif-size-legend,
html[dir="rtl"] .rif-spec-panel .spec-value { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .home-hero .hero-overlay { direction: ltr; }
html[dir="rtl"] .home-hero .hero-content { direction: rtl; text-align: right; }
html[dir="rtl"] .home-hero .hero-content .btn-row { direction: rtl; }
@media (max-width: 1179px) {
  html[dir="rtl"] .hero-art-ar::before { left: 4%; top: 5%; width: 46%; height: 15%; }
  html[dir="rtl"] .hero-art-ar-kicker { left: 6%; top: 7%; }
  html[dir="rtl"] .hero-art-ar-categories { left: 4%; right: 4%; bottom: 3%; }
  html[dir="rtl"] .home-hero .hero-overlay { direction: rtl; }
}
@media (max-width: 600px) {
  html[dir="rtl"] .hero-art-ar::before { width: 58%; height: 19%; }
  html[dir="rtl"] .hero-art-ar::after { height: 19%; }
  html[dir="rtl"] .hero-art-ar-categories { font-size: 10px; bottom: 2.5%; }
}
html[dir="rtl"] .card-link::after { transform: scaleX(-1) rotate(45deg); }
html[dir="rtl"] a:hover > * > .card-link::after,
html[dir="rtl"] a:hover > .card-link::after,
html[dir="rtl"] .card-link:hover::after { transform: translateX(-3px) scaleX(-1) rotate(45deg); }
html[dir="rtl"] .selection-points li::before { margin-right: 0; margin-left: var(--s-3); }
html[dir="rtl"] .skip-link { left: auto; right: var(--s-3); }
