/* Tal Ryan — Version X identity
   Tokens and defaults follow the Version X style guide:
   1200px max width, 24/40px gutters, 16/18px body, rectangular buttons,
   fine borders, red as a controlled accent, logo always on white. */

:root {
  color-scheme: light;

  --red: #C00A22;
  --dark-red: #910C22;
  --ink: #181818;
  --muted: #666666;
  --paper: #FFFFFF;
  --soft: #EEECE9;
  --line: #DDDAD5;

  --gutter: 24px;
  --max: 1200px;
  --section: clamp(72px, 10vw, 136px);

  --font-latin: "Liberation Sans", Arimo, Arial, Helvetica, sans-serif;
  --font-arabic: Almarai, "Geeza Pro", Tahoma, sans-serif;
}

@media (min-width: 768px) {
  :root { --gutter: 40px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 71px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-latin);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 768px) {
  html { scroll-padding-top: 87px; }
  body { font-size: 18px; }
}

/* Arabic: Almarai regular, native shaping, never letter-spaced */
:lang(ar) {
  font-family: var(--font-arabic);
  letter-spacing: 0 !important;
}
html[lang="ar"] body { line-height: 1.85; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { font-weight: 400; line-height: 1.4; }
:lang(en) { font-family: var(--font-latin); }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

@media (min-width: 768px) {
  .site-header .wrap { min-height: 88px; }
}

.brand { display: block; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) {
  .brand img { height: 52px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover { border-bottom-color: var(--red); }

.nav .lang {
  padding: 6px 14px;
  border: 1px solid var(--line);
  font-size: 15px;
}
.nav .lang:hover { border-color: var(--ink); }
.nav .nav-cta { padding: 8px 18px; background: var(--red); color: #fff; border: 0; }
.nav .nav-cta:hover { background: var(--dark-red); }
@media (min-width: 1100px) { .nav { gap: 28px; } }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}
.menu-toggle .bars {
  width: 16px; height: 10px;
  border-block: 1.5px solid var(--ink);
}

@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    font-size: 17px;
    /* Short landscape phones and 400% zoom: the open menu must scroll, or the language switch is unreachable */
    max-height: calc(100vh - 89px);
    max-height: calc(100dvh - 89px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .nav.open { display: flex; }
  .nav a { flex: none; padding-block: 14px; border-bottom: 1px solid var(--line); }
  .nav .lang { margin-top: 20px; text-align: center; padding-block: 12px; }
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--red);
}
html[lang="ar"] .eyebrow { font-size: 15px; font-weight: 400; }

h1 {
  font-size: clamp(2.25rem, 5.4vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.14;
  letter-spacing: -.02em;
  font-weight: 700;
  text-wrap: balance;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  font-weight: 700;
}

.lead {
  color: var(--muted);
  font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
  line-height: 1.55;
  max-width: 34em;
}
html[lang="ar"] .lead { line-height: 1.85; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  border: 1px solid var(--red);
  border-radius: 0;
  background: var(--red);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--dark-red); border-color: var(--dark-red); }
html[lang="ar"] .btn { font-weight: 400; font-size: 17px; }

.btn.ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--paper); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-head .actions { margin-top: 32px; }

section { padding-block: var(--section); }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(48px, 7vw, 96px) var(--section);
}

.hero .wrap {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1.08fr .92fr; gap: 72px; }
}

.hero .lead { margin-top: 28px; }
.hero .actions { margin-top: 40px; }

.hero-figure {
  background: var(--soft);
  aspect-ratio: 560 / 520;
  max-height: 560px;
  width: 100%;
}
.hero-figure img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- About ---------- */

.about { border-top: 1px solid var(--line); }

.about .wrap {
  display: grid;
  gap: 40px;
}

@media (min-width: 960px) {
  .about .wrap { grid-template-columns: 1fr 1fr; gap: 96px; }
}

.about .body p + p { margin-top: 1.2em; }
.about .body p { color: var(--muted); }
.about .body p:first-child { color: var(--ink); }

.facts {
  margin-top: 48px;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: minmax(96px, 8em) 1fr;
  gap: 16px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.facts dt { color: var(--muted); }
.facts dd { font-weight: 700; }
html[lang="ar"] .facts dd { font-weight: 400; }

/* ---------- Services: the four choices ---------- */

.services { background: var(--soft); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head .lead { margin-top: 20px; }

.channel-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 860px) {
  .channel-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

.channel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-top: 2px solid var(--red);
  padding: clamp(28px, 4vw, 48px);
  transition: box-shadow .2s;
}
.channel:hover { box-shadow: 0 0 0 1px var(--ink); }
.channel[hidden] { display: none; }

.channel .mark { width: 56px; height: 56px; margin-bottom: 28px; }
.channel h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); text-wrap: balance; }
.channel p { margin-top: 14px; color: var(--muted); }

.channel ul {
  margin-top: 28px;
  border-top: 1px solid var(--line);
}
.channel li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.channel li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  background: var(--red);
  transform: translateY(-2px);
}

.channel .go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 32px;
  font-weight: 700;
  text-decoration: none;
}
html[lang="ar"] .channel .go { font-weight: 400; }
/* The whole card is the click target; the link stays the accessible name. */
.channel .go::after { content: ""; position: absolute; inset: 0; }
.channel .go:focus-visible { outline: none; }
.channel .go:focus-visible::after { outline: 2px solid var(--red); outline-offset: 3px; }
.channel .go .arrow { display: inline-block; color: var(--red); transition: transform .2s; }
.channel:hover .go .arrow { transform: translateX(4px); }
[dir="rtl"] .channel .go .arrow { transform: scaleX(-1); }
[dir="rtl"] .channel:hover .go .arrow { transform: scaleX(-1) translateX(4px); }

.hero .also {
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}
.hero .also a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--red); }
.hero .also a:hover { color: var(--red); }
.hero .also [hidden] { display: none; }

/* ---------- Form pages ---------- */

.page-head { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-head .back {
  display: inline-flex; gap: 8px; align-items: center;
  margin-bottom: 32px;
  color: var(--muted); font-size: 15px; text-decoration: none;
}
.page-head .back:hover { color: var(--ink); }
[dir="rtl"] .page-head .back .arrow { display: inline-block; transform: scaleX(-1); }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.5rem); max-width: 18em; text-wrap: balance; }
.page-head .lead { margin-top: 24px; }

.form-layout { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.form-layout .wrap { display: grid; gap: 56px; }
@media (min-width: 1024px) {
  .form-layout .wrap { grid-template-columns: minmax(0, 1fr) 340px; gap: 96px; align-items: start; }
  .form-aside { position: sticky; top: 120px; }
}

.intake { min-width: 0; }
.intake fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.intake .group + .group { margin-top: 56px; }
.intake legend {
  display: block; width: 100%;
  padding: 0 0 14px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--ink);
  font-size: 1.25rem; font-weight: 700; letter-spacing: -.01em;
}
html[lang="ar"] .intake legend { font-weight: 400; font-size: 1.375rem; }

.fields { display: grid; gap: 28px 24px; }
@media (min-width: 640px) {
  .fields { grid-template-columns: 1fr 1fr; }
  .field.wide { grid-column: 1 / -1; }
}

.field { min-width: 0; }
.field[hidden] { display: none; }
.field > label, .field > .label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px; font-weight: 700;
}
html[lang="ar"] .field > label, html[lang="ar"] .field > .label { font-weight: 400; font-size: 17px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: 14px; }
.field .req { color: var(--red); }
.field .help { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.5; }

.field input[type="text"], .field input[type="url"], .field input[type="email"],
.field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1px solid #8A857D;
  border-radius: 0;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 128px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #76716A; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  border-color: var(--ink);
  outline: 2px solid var(--red);
  outline-offset: 1px;
}

.field select {
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23181818' stroke-width='1.5'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
[dir="rtl"] .field select { background-position: left 16px center; }

/* Values that are always Latin (URLs, phones, emails, numbers) stay LTR inside RTL pages */
.field input.ltr-value { direction: ltr; text-align: left; font-family: var(--font-latin); }
[dir="rtl"] .field input.ltr-value { text-align: right; }
/* dir="auto" resolves to LTR while the field is empty: keep placeholder and caret on the right in Arabic */
[dir="rtl"] .field input[dir="auto"], [dir="rtl"] .field textarea[dir="auto"] { text-align: right; }
.field > label :lang(ar), .field > .label :lang(ar) { font-weight: 400; }

.with-unit { display: flex; }
.with-unit input { flex: 1; min-width: 0; }
.with-unit .unit {
  display: inline-flex; align-items: center;
  padding-inline: 16px;
  border: 1px solid #8A857D; border-inline-start: 0;
  background: var(--soft);
  color: var(--muted);
  font-size: 15px;
  white-space: nowrap;
}

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { position: relative; display: block; margin: 0; cursor: pointer; }
.choices input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choices span {
  display: flex; align-items: center;
  min-height: 48px;
  padding: 10px 18px;
  border: 1px solid #8A857D;
  font-size: 16px; font-weight: 400;
  transition: background .15s, color .15s, border-color .15s;
}
.choices label:hover span { border-color: var(--ink); }
.choices input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choices input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

.check, .field > label.check { display: flex; gap: 14px; align-items: flex-start; margin: 0; font-weight: 400; cursor: pointer; }
.check input {
  flex: none;
  width: 24px; height: 24px; margin: 2px 0 0;
  border: 1px solid #8A857D; border-radius: 0;
  background: var(--paper);
  -webkit-appearance: none; appearance: none;
  cursor: pointer;
}
.check input:checked {
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 100% no-repeat;
  border-color: var(--ink);
}
.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.check span { font-size: 16px; line-height: 1.5; }

.field.invalid input:not([type="radio"]):not([type="checkbox"]),
.field.invalid select, .field.invalid textarea,
.field.invalid .choices span, .field.invalid .check input { border-color: var(--red); }
.field.invalid .with-unit .unit { border-color: var(--red); }
.field .error {
  display: flex; gap: 8px; align-items: baseline;
  margin-top: 8px;
  color: var(--dark-red);
  font-size: 14px; font-weight: 700;
}
.field .error:empty { display: none; }
html[lang="ar"] .field .error { font-weight: 400; font-size: 15px; }
.field .error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; background: var(--red); color: #fff; font: 700 11px/1 var(--font-latin); }

/* ---------- Drop box ---------- */

.dropzone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 40px 24px;
  border: 2px dashed #8A857D;
  background: var(--paper);
  text-align: center;
  transition: border-color .15s, background .15s;
}
.dropzone.over { border-color: var(--red); background: #FBF3F4; }
.dropzone[aria-busy="true"] { opacity: .55; cursor: progress; }
.dropzone svg { width: 44px; height: 44px; margin-bottom: 10px; }
.dropzone .dz-title { font-size: 18px; font-weight: 700; }
html[lang="ar"] .dropzone .dz-title { font-weight: 400; font-size: 19px; }
.dropzone .dz-or { color: var(--muted); font-size: 14px; }
.dropzone .dz-pick {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px;
  margin-top: 6px; padding: 8px 22px;
  border: 1px solid var(--ink);
  background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background .15s, color .15s;
}
html[lang="ar"] .dropzone .dz-pick { font-weight: 400; font-size: 16px; }
.dropzone .dz-pick:hover { background: var(--ink); color: var(--paper); }
/* The native input stays in the accessibility tree and keyboard order */
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip-path: inset(50%); }
.dropzone input[type="file"]:focus-visible + .dz-pick { outline: 2px solid var(--red); outline-offset: 3px; }
.dropzone .dz-rules { margin-top: 14px; color: var(--muted); font-size: 13px; line-height: 1.5; max-width: 36em; }
@media (hover: none) and (pointer: coarse) {
  /* Phones cannot drag files: lead with the button */
  .dropzone .dz-title, .dropzone .dz-or { display: none; }
}

.file-list { margin-top: 16px; border-top: 1px solid var(--line); }
.file-list:empty { display: none; }
.file-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px; align-items: center;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
}
.file-list .ext {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--soft); color: var(--ink);
  font: 700 11px/1 var(--font-latin); letter-spacing: .04em;
}
.file-list .thumb { width: 44px; height: 44px; object-fit: cover; }
.file-list .name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.file-list .size { display: block; color: var(--muted); font: 400 13px/1.4 var(--font-latin); }
.file-list button {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid transparent; background: none; color: var(--muted);
  font: 400 22px/1 var(--font-latin);
  cursor: pointer;
}
.file-list button:hover { color: var(--red); border-color: var(--line); }
:lang(ar) .file-list .size { font-family: var(--font-arabic); }
.file-total { margin-top: 10px; color: var(--muted); font-size: 13px; }
.file-total:empty { display: none; }

.file-errors { margin-top: 12px; }
.file-errors:empty { display: none; }
.file-errors li { padding: 10px 14px; border-inline-start: 3px solid var(--red); background: #FBF3F4; color: var(--dark-red); font-size: 14px; }
.file-errors li + li { margin-top: 6px; }

/* ---------- Submit, status ---------- */

.submit-row { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--ink); }
.submit-row .btn { min-width: 220px; border-radius: 0; cursor: pointer; font-family: inherit; }
.submit-row .btn[disabled] { background: #76716A; border-color: #76716A; cursor: progress; }
.submit-row .fine { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 44em; }
.captcha:not(:empty) { margin-bottom: 24px; }

.progress { margin-top: 20px; }
.progress[hidden] { display: none; }
.progress .track { height: 4px; background: var(--soft); }
.progress .bar { height: 100%; width: 0; background: var(--red); transition: width .2s linear; }
.progress .pct { margin-top: 8px; color: var(--muted); font-size: 14px; }

.alert {
  margin-bottom: 40px; padding: 18px 20px;
  border: 1px solid var(--red); border-inline-start-width: 4px;
  background: #FBF3F4;
  font-size: 16px;
}
.alert[hidden] { display: none; }
.alert:focus { outline: none; }
.alert h2 { font-size: 17px; letter-spacing: 0; margin-bottom: 6px; }
.alert ul { margin-top: 8px; }
.alert li { padding-block: 3px; }
.alert a { color: var(--dark-red); }

.done { padding: clamp(32px, 5vw, 56px); border: 1px solid var(--ink); border-top: 2px solid var(--red); }
.done[hidden] { display: none; }
.done svg { width: 56px; height: 56px; margin-bottom: 24px; }
.done h2:focus { outline: none; }
.done p { margin-top: 16px; color: var(--muted); max-width: 40em; }
.done .missing { margin-top: 16px; padding: 12px 16px; border-inline-start: 3px solid var(--red); background: #FBF3F4; color: var(--dark-red); }
.done .ref { display: inline-block; margin-top: 24px; padding: 10px 16px; background: var(--soft); color: var(--ink); font: 700 16px/1.2 var(--font-latin); letter-spacing: .06em; }
.done .actions { margin-top: 32px; }

.form-aside .box { padding: 28px; background: var(--soft); }
.form-aside .box + .box { margin-top: 16px; }
.form-aside h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 16px; }
html[lang="ar"] .form-aside h2 { font-size: 17px; }
.form-aside li { padding-block: 10px; border-bottom: 1px solid var(--line); font-size: 15px; }
.form-aside li:first-child { border-top: 1px solid var(--line); }
.form-aside li[hidden] { display: none; }
.form-aside p { font-size: 15px; color: var(--muted); }
.form-aside p + p { margin-top: 10px; }
.form-aside a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--red); }
.form-aside a:hover { color: var(--red); }

.noscript { margin-bottom: 40px; padding: 18px 20px; border: 1px solid var(--ink); }

/* Preview-only markers for channels whose licence is still pending (never present in a production build) */
.pending-tag {
  display: inline-block; vertical-align: middle;
  margin-inline-start: 8px; padding: 3px 8px;
  border: 1px solid var(--red); color: var(--dark-red);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.preview-banner { background: var(--dark-red); color: #fff; font-size: 14px; padding-block: 12px; }

/* ---------- Home: full-screen opening, four photo tiles ---------- */

.hero-x {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: calc(100vh - 72px);
  min-height: calc(100svh - 72px);
  padding-block: 0 clamp(56px, 9vh, 120px);
  overflow: hidden;
  background: #0C0C0C;
  color: #fff;
  isolation: isolate;
}
@media (min-width: 768px) { .hero-x { min-height: calc(100svh - 88px); } }
.hero-x .hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%;
}
.hero-x::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,12,.15) 0%, rgba(12,12,12,.35) 45%, rgba(12,12,12,.88) 100%);
}
.hero-x .wrap { width: 100%; }
.hero-x .eyebrow { color: #fff; }
.hero-x h1 {
  margin-top: 20px;
  max-width: 11em;
  font-size: clamp(48px, 9vw, 128px);
  line-height: .98;
  letter-spacing: -.035em;
}
html[lang="ar"] .hero-x h1 { font-weight: 700; line-height: 1.2; letter-spacing: 0; font-size: clamp(46px, 8.4vw, 116px); }
.hero-x .hero-sub {
  margin-top: 24px;
  font-size: clamp(18px, 2.2vw, 26px);
  color: #E9E6E1;
}
.hero-x .actions { margin-top: 36px; }
.btn.ghost.light { border-color: #fff; color: #fff; }
.btn.ghost.light:hover { background: #fff; color: var(--ink); }
.hero-x .credit {
  position: absolute; bottom: 10px; inset-inline-end: 14px;
  margin: 0; font-size: 11px; opacity: .6;
}
.hero-x .credit a { color: #fff; text-decoration: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  .hero-x .hero-bg { animation: hero-drift 24s ease-out both; }
  @keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1); } }
}

.tiles {
  display: grid;
  padding: 0;
  background: #0C0C0C;
}
@media (min-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 62vh, 640px);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  isolation: isolate;
}
.tile img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,12,12,0) 30%, rgba(12,12,12,.9) 100%);
  transition: background .4s;
}
.tile::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 6px; width: 0;
  background: var(--red); transition: width .4s;
}
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); }
.tile:hover::after, .tile:focus-visible::after { width: 100%; }
.tile:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.tile-body { display: grid; gap: 8px; padding: 32px clamp(24px, 3vw, 40px); }
.tile .num { font: 700 13px/1 var(--font-latin); letter-spacing: .1em; color: var(--red); }
.tile-h { font-size: clamp(26px, 2.4vw, 34px); font-weight: 700; line-height: 1.15; }
html[lang="ar"] .tile-h { font-weight: 700; line-height: 1.4; }
.tile-p { font-size: 16px; color: #D9D5CF; max-width: 26em; }
.tile .arrow { font-size: 24px; margin-top: 8px; transition: transform .3s; }
.tile:hover .arrow { transform: translateX(6px); }
html[dir="rtl"] .tile:hover .arrow { transform: translateX(-6px); }

.contact .forms { margin-top: 56px; grid-column: 1 / -1; }
.contact .forms ul { display: flex; flex-wrap: wrap; gap: 10px; }
.contact .forms a {
  display: inline-block; padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.35); color: #fff; text-decoration: none; font-size: 15px;
}
.contact .forms a:hover { border-color: #fff; }
.contact .sub { color: #B9B6B1; }

/* ---------- Hotels ---------- */

.hotels { border-top: 1px solid var(--line); }
.hotels-head { display: grid; gap: 32px; margin-bottom: 48px; }
.hotels-head .section-head { margin-bottom: 0; }
.hotels-head .actions { margin-top: 32px; }
.hotels-hero { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
@media (min-width: 960px) { .hotels-head { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

.hotels-grid { display: grid; gap: 40px; margin-bottom: 56px; }
@media (min-width: 760px) { .hotels-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.hotel-col img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--soft); margin-bottom: 16px; }
.hotel-col .num { color: var(--red); font: 700 13px/1.4 var(--font-latin); letter-spacing: .08em; }
.hotel-col h3 { margin: 4px 0 12px; font-size: 20px; line-height: 1.35; }
.hotel-col li { display: flex; align-items: baseline; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); font-size: 16px; }
.hotel-col li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--red); transform: translateY(-2px); }

.hsteps { display: grid; counter-reset: step; }
@media (min-width: 760px) { .hsteps { grid-template-columns: repeat(4, 1fr); } }
.hsteps li { counter-increment: step; padding: 20px 22px; background: var(--soft); display: grid; gap: 4px; }
.hsteps li:nth-child(2) { background: #E4E1DC; }
.hsteps li:nth-child(3) { background: #D9D5CF; }
.hsteps li:nth-child(4) { background: var(--ink); color: #fff; }
.hsteps li strong::before { content: counter(step) ". "; color: var(--red); }
.hsteps li strong { font-size: 18px; }
.hsteps li span { font-size: 15px; opacity: .85; }

/* ---------- Mining ---------- */

.mining { border-top: 1px solid var(--line); }
.mining-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .mining-grid { grid-template-columns: 1.1fr .9fr; gap: 96px; align-items: start; } }

.sub {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
html[lang="ar"] .sub { font-size: 15px; font-weight: 400; }

.lines { border-top: 1px solid var(--line); }
.lines li {
  display: flex; align-items: baseline; gap: 14px;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}
.lines li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--red); transform: translateY(-2px); }

.codes { border-top: 1px solid var(--line); }
.codes li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline;
  padding-block: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.code {
  display: inline-block;
  padding: 2px 8px;
  background: var(--soft);
  color: var(--ink);
  font: 700 12px/1.6 var(--font-latin); letter-spacing: .06em;
  direction: ltr;
}
.mining .hse { margin-top: 24px; color: var(--muted); font-size: 15px; }
.mining .actions { margin-top: 32px; }
.mining .regs { margin-top: 24px; font-size: 15px; }
.mining .regs strong { font-weight: 700; }
html[lang="ar"] .mining .regs strong { font-weight: 400; }

/* ---------- Warehouses ---------- */

.warehouses { background: var(--soft); }
.warehouses .actions { margin-top: 32px; }
.warehouses .lines { background: var(--paper); padding-inline: 20px; }

.blocks { display: grid; gap: 24px; }
@media (min-width: 860px) { .blocks { grid-template-columns: 1fr 1fr; gap: 32px; } }
.block {
  background: var(--paper);
  border-top: 2px solid var(--red);
  padding: clamp(28px, 4vw, 48px);
}
.block h2 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); letter-spacing: -.01em; }
.block > p { margin-top: 12px; color: var(--muted); }
.block .lines { margin-top: 24px; }
.block.pending { border-top-color: var(--muted); }
.blocks-section { background: var(--soft); }

.steps { display: grid; border-top: 1px solid var(--ink); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step { padding-block: 28px 36px; border-bottom: 1px solid var(--line); }
@media (min-width: 1024px) { .step { border-bottom: 0; } }
.step .num { display: block; margin-bottom: 24px; color: var(--red); font: 700 14px/1 var(--font-latin); letter-spacing: .1em; }
.step h3 { font-size: 1.25rem; }
.step p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- Company page ---------- */

.company .wrap > * { max-width: 60rem; }
.company h2 { font-size: 1.25rem; letter-spacing: -.01em; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.company h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
html[lang="ar"] .company h2 { font-size: 1.375rem; }
.company h3 { margin-top: 28px; margin-bottom: 8px; font-size: 1rem; }
.company .note { margin-top: 8px; color: var(--muted); font-size: 15px; }
.company .facts { margin-top: 20px; }
.company .facts div { grid-template-columns: minmax(140px, 18em) 1fr; }
.company .lines, .company .codes { margin-top: 16px; }

.acts { width: 100%; margin-top: 12px; border-collapse: collapse; font-size: 15px; }
.acts td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
[dir="rtl"] .acts td { padding: 12px 0 12px 16px; }
.acts td:first-child { width: 1%; white-space: nowrap; }
.acts-scroll { overflow-x: auto; }

/* ---------- Text pages ---------- */

.prose { padding-block: clamp(40px, 5vw, 72px) var(--section); }
.prose .wrap > * { max-width: 44rem; }
.prose h2 { font-size: 1.25rem; letter-spacing: -.01em; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; }
html[lang="ar"] .prose h2 { font-size: 1.375rem; }
.prose p { margin-top: 12px; color: var(--muted); }
.prose a { color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--red); }

/* Honeypot: clipped rather than display:none, so naive bots still fill it. Never position it off-screen
   with a negative left offset: in a right-to-left page that area is scrollable and the page slides sideways. */
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }


/* ---------- Contact ---------- */

.contact { background: var(--ink); color: var(--paper); }
.contact :focus-visible { outline-color: #fff; } /* the red ring is only 2.8:1 on the dark band */
.contact .eyebrow { color: #fff; }
.contact .eyebrow::before { background: var(--red); }
.contact .lead { color: #B9B6B1; margin-top: 20px; }

.contact .wrap {
  display: grid;
  gap: 48px;
}
@media (min-width: 960px) {
  .contact .wrap { grid-template-columns: 1fr 1fr; gap: 96px; align-items: end; }
}

.contact .actions { margin-top: 40px; }
.contact .btn.ghost { border-color: #fff; color: #fff; }
.contact .btn.ghost:hover { background: #fff; color: var(--ink); }

.contact-list { border-top: 1px solid #3A3A3A; }
.contact-list div {
  display: grid;
  grid-template-columns: minmax(96px, 8em) 1fr;
  gap: 16px;
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid #3A3A3A;
}
.contact-list dt { color: #B9B6B1; font-size: 15px; }
.contact-list dd {
  font-family: var(--font-latin);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
}
.contact-list a { text-decoration: none; border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-list a:hover { border-bottom-color: var(--red); }

/* Contact values stay left-to-right inside the RTL layout */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- Footer ---------- */

.site-footer { padding-block: 48px; border-top: 1px solid var(--line); }

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
}

.site-footer img { height: 44px; width: auto; }

.signature {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.signature span { display: block; }

.legal {
  flex-basis: 100%;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.legal a { text-decoration: none; }
.legal a:hover { color: var(--ink); }

/* ---------- Industrial-areas map (/warehouses/) ---------- */

.zones { background: #0C0C0C; color: #fff; border-top: 4px solid var(--red); }
.zones :focus-visible { outline-color: #fff; }
.zones .eyebrow { color: #fff; }
.zones .eyebrow::before { background: var(--red); }
.zones .lead { color: #B9B6B1; }
.zones .note { color: #8E8B86; font-size: 14px; margin-top: 24px; max-width: 760px; }
.zones .note a { color: #B9B6B1; }
.map-frame { position: relative; margin-top: clamp(28px, 4vw, 48px); background: #0C0C0C; }
.map-frame:fullscreen, .map-frame.maplibregl-pseudo-fullscreen { display: flex; flex-direction: column; margin: 0; } /* pseudo: MapLibre's fallback where the Fullscreen API is missing (in-app browsers on iOS) */
#zones-map { position: relative; width: 100%; height: clamp(440px, 72vh, 780px); background: #0C0C0C; border: 1px solid #2A2A2A; }
.map-frame:fullscreen #zones-map, .map-frame.maplibregl-pseudo-fullscreen #zones-map { flex: 1; height: auto; border: 0; }
html.map-fullscreen, html.map-fullscreen body { overflow: hidden; height: 100%; }
#zones-map.failed { display: grid; place-items: center; height: 160px; }
.map-status { position: absolute; z-index: 3; top: 14px; inset-inline-start: 14px; margin: 0; padding: 8px 12px; background: var(--red); color: #fff; font-size: 14px; font-weight: 700; }
#zones-map.failed + .map-status { position: static; display: inline-block; margin-top: 12px; }
.map-status:empty { padding: 0; background: none; } /* stays in the accessibility tree while empty */
/* no map: the chips are a plain list, as in print */
.map-failed .map-legend, .map-failed .chip[data-reset] { display: none; }
.chip:disabled { cursor: default; pointer-events: none; }
.map-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin: 16px 0 0; font-size: 14px; color: #B9B6B1; }
.map-frame:fullscreen .map-legend, .map-frame.maplibregl-pseudo-fullscreen .map-legend { padding: 10px 16px; }
.map-legend .sw { display: inline-block; width: 24px; height: 14px; margin-inline-end: 8px; vertical-align: -2px; background: rgba(192, 10, 34, .65); border: 1.5px solid #FF5A66; box-shadow: 0 0 10px rgba(192, 10, 34, .9); }
.map-legend .lb { display: inline-block; margin-inline-end: 8px; vertical-align: -3px; padding: 1px 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #fff; background: #181818; border: 1.5px solid #FF5A66; border-inline-start: 5px solid var(--red); }
.map-stats { font-weight: 700; color: #fff; }
.zone-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.zone-chips .group { flex-basis: 100%; margin: 14px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8E8B86; }
.chip { font: inherit; font-size: 14px; font-weight: 700; line-height: 1.2; padding: 9px 14px; background: transparent; color: #fff; border: 1px solid #fff; cursor: pointer; transition: background .15s, border-color .15s; }
.chip:hover, .chip.active { background: var(--red); border-color: var(--red); }
.chip[data-reset] { border-color: #8E8B86; color: #B9B6B1; }
.chip[data-reset]:hover { color: #fff; }

/* zone labels: HTML markers on the map */
.zone-label { font: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #181818; border: 1.5px solid #FF5A66; border-inline-start: 6px solid var(--red); padding: 5px 9px; white-space: nowrap; cursor: pointer; box-shadow: 0 0 0 1px #000, 0 0 18px rgba(192, 10, 34, .8); }
html[lang="ar"] .zone-label { text-transform: none; letter-spacing: 0; font-size: 13px; }
.zone-label:hover, .zone-label.active { background: var(--red); border-color: #fff; }
.zone-label.kind-logistics, .zone-label.kind-special { border-inline-start-color: #fff; }
.zone-label.kind-district { font-size: 11px; padding: 4px 8px; opacity: .9; border-color: #8E8B86; border-inline-start-color: #B9B6B1; box-shadow: 0 0 0 1px #000; }
.zone-label.kind-other { border-inline-start-color: #8E8B86; }
.zone-label.approx { border-style: dashed; }
#zones-map.z-far .zone-label.kind-other, #zones-map.z-mid .zone-label.kind-district, #zones-map.z-mid .zone-label.minor { display: none; }

/* MapLibre chrome, in the site's colours */
.maplibregl-map { font: inherit; }
.maplibregl-ctrl-group { border-radius: 0; background: #181818; box-shadow: 0 0 0 1px #000; }
.maplibregl-ctrl-group button { border-radius: 0; }
.maplibregl-ctrl-group button + button { border-top-color: #333; }
.maplibregl-ctrl-group button .maplibregl-ctrl-icon { filter: invert(1); }
.maplibregl-ctrl-group button:hover { background: var(--red); }
.maplibregl-ctrl-attrib, .maplibregl-ctrl-attrib.maplibregl-compact, .maplibregl-ctrl-attrib.maplibregl-compact-show { background: rgba(0, 0, 0, .75); color: #B9B6B1; border-radius: 0; font-size: 11px; }
.maplibregl-ctrl-attrib a { color: #fff; }
.maplibregl-ctrl-attrib-button, .maplibregl-ctrl-attrib.maplibregl-compact-show .maplibregl-ctrl-attrib-button { filter: invert(1); }
.maplibregl-popup-content { font-family: inherit; background: #181818; color: #fff; border: 1px solid var(--red); border-radius: 0; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .7); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--red); }
.maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--red); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--red); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--red); }
.maplibregl-popup-close-button { color: #fff; font-size: 22px; line-height: 1; padding: 4px 10px; border-radius: 0; }
html[dir="rtl"] .maplibregl-popup-close-button { right: auto; left: 0; } /* MapLibre pins it top-right; in RTL the text starts there */
.maplibregl-popup-close-button:hover { background: var(--red); }
.hover-pop .maplibregl-popup-content { padding: 8px 10px; font-size: 13px; pointer-events: none; }
.zone-pop .kind { margin: 0; padding-inline-end: 28px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #B9B6B1; } /* room for the close button */
.zone-pop h3 { margin: 4px 0 6px; font-size: 18px; line-height: 1.25; }
.zone-pop p { margin: 0 0 8px; font-size: 14px; line-height: 1.5; }
.zone-pop .area { font-weight: 700; color: #FF5A66; }
.zone-pop .approx { color: #FF5A66; letter-spacing: 0; text-transform: none; font-weight: 600; }
.zone-pop .op { font-size: 13px; color: #B9B6B1; }
.zone-pop .op span { color: #fff; font-weight: 600; }
.zone-pop .links { margin: 10px 0 0; }
.zone-pop a { color: #fff; }
.maplibregl-cooperative-gesture-screen { font: inherit; font-weight: 700; background: rgba(12, 12, 12, .75); }
/* fingers, not pointers: taller targets without changing the desktop look */
@media (pointer: coarse) {
  .zone-label { min-height: 32px; padding-block: 7px; }
  .zone-label.kind-district { padding-block: 6px; }
  .maplibregl-ctrl-attrib-button { width: 32px; height: 32px; background-size: 24px; }
}

@media print {
  .map-frame, .zones .lead, .zone-chips .chip[data-reset] { display: none; }
  .zones { background: #fff; color: var(--ink); border-top-color: var(--ink); }
  .zones .eyebrow, .zones .note, .zones .note a, .zone-chips .group { color: var(--ink); }
  .zones .eyebrow::before { background: var(--ink); }
  .chip, .chip.active { color: var(--ink); border-color: var(--ink); background: none; }
}

/* ---------- Motion ---------- */

@media screen and (prefers-reduced-motion: no-preference) { /* screen only: print and save-as-PDF never fire the observer */
  .js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .7s ease, transform .7s ease;
  }
  .js .reveal.in { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Windows High Contrast: a selected chip must still look selected */
@media (forced-colors: active) {
  .choices input:checked + span { forced-color-adjust: none; background: Highlight; border-color: Highlight; color: HighlightText; }
  .check input:checked { forced-color-adjust: none; background-color: Highlight; border-color: Highlight; }
}

/* ---------- Policies and the complaints procedure ---------- */
.page-head .updated { margin-top: 12px; font-size: 14px; color: var(--muted, #6B6862); }
.page-head .procedure-h { margin: 32px 0 12px; font-size: 20px; }
.page-head .procedure { margin: 0; padding-inline-start: 22px; max-width: 760px; list-style: decimal; }
.page-head .procedure li { margin: 0 0 8px; line-height: 1.6; }
.site-footer .legal a { white-space: nowrap; }
