/* ==========================================================================
   Concrete Co. — kconcret.com
   Single stylesheet. No dependencies. Written with CSS logical properties
   throughout so the Arabic (dir="rtl") pages mirror correctly with no
   direction-specific overrides.
   ========================================================================== */

/* ---------- 1. Tokens --------------------------------------------------- */

:root {
  /* Concrete palette: charcoal structure, grey aggregate, one amber accent. */
  --surface:        #ffffff;
  --surface-2:      #f6f7f8;
  --surface-3:      #edeff1;
  --surface-dark:   #101315;
  --surface-dark-2: #191d20;

  --line:           #e1e5e8;
  --line-strong:    #cdd3d8;
  --line-dark:      #2a3035;

  --text:           #14181b;
  --text-muted:     #56606a;
  --text-soft:      #78828b;
  --text-on-dark:   #f2f5f6;
  --text-on-dark-muted: #a8b2ba;

  --accent:         #b26f0e;   /* graphic amber          */
  --accent-ink:     #8a560a;   /* amber for text on light */
  --accent-bright:  #e0a64a;   /* amber for text on dark  */
  --accent-tint:    #fdf6ea;

  --focus:          #1f6feb;

  /* Type */
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-num:  "Inter", ui-sans-serif, system-ui, sans-serif;

  /* Scale — fluid, clamped */
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.88rem);
  --step-0:  clamp(1.00rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1:  clamp(1.15rem, 1.09rem + 0.30vw, 1.33rem);
  --step-2:  clamp(1.38rem, 1.26rem + 0.55vw, 1.75rem);
  --step-3:  clamp(1.65rem, 1.44rem + 1.00vw, 2.30rem);
  --step-4:  clamp(1.95rem, 1.58rem + 1.75vw, 3.05rem);
  --step-5:  clamp(2.25rem, 1.72rem + 2.35vw, 3.35rem);

  /* Space */
  --gap-xs: 0.5rem;
  --gap-s:  0.875rem;
  --gap-m:  1.5rem;
  --gap-l:  2.5rem;
  --gap-xl: 4rem;
  --section-y: clamp(3.5rem, 2.2rem + 5vw, 6.5rem);

  --radius:    14px;
  --radius-s:  9px;
  --radius-pill: 999px;

  --shadow-1: 0 1px 2px rgba(16, 19, 21, 0.05), 0 2px 8px rgba(16, 19, 21, 0.04);
  --shadow-2: 0 2px 4px rgba(16, 19, 21, 0.06), 0 12px 32px rgba(16, 19, 21, 0.08);

  --wrap: 1140px;
  --measure: 66ch;
}

/* Arabic pages: swap the primary family, keep Inter for Latin/numerals. */
html[lang="ar"] {
  --font-sans: "IBM Plex Sans Arabic", "Noto Kufi Arabic", ui-sans-serif, system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  /* Arabic glyphs carry more ink; ease the display size and line-height. */
  --step-5: clamp(2.05rem, 1.60rem + 2.10vw, 3.10rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface:        #0e1113;
    --surface-2:      #14181b;
    --surface-3:      #1b2024;
    --surface-dark:   #080a0b;
    --surface-dark-2: #121618;

    --line:           #262c31;
    --line-strong:    #333b41;
    --line-dark:      #262c31;

    --text:           #e7ebee;
    --text-muted:     #9ba5ac;
    --text-soft:      #869098;

    --accent:         #e0a64a;
    --accent-ink:     #e5b365;
    --accent-tint:    #1d1913;

    --focus:          #6ea8fe;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-2: 0 2px 4px rgba(0, 0, 0, 0.45), 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

/* ---------- 2. Reset / base -------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-block-start: 6rem;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[lang="ar"] body { line-height: 1.85; }

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
html[lang="ar"] h1, html[lang="ar"] h2,
html[lang="ar"] h3, html[lang="ar"] h4 {
  letter-spacing: 0;
  line-height: 1.35;
}

h1 { font-size: var(--step-5); font-weight: 800; }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { margin: 0; text-wrap: pretty; }

a { color: inherit; text-underline-offset: 0.22em; }

img, svg, picture { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0; padding: 0; }

strong, b { font-weight: 650; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: #fff; }

/* ---------- 3. Layout primitives --------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(1.15rem, 1rem + 2vw, 2.25rem);
}

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(2.5rem, 1.8rem + 3vw, 4rem); }
.section--alt { background: var(--surface-2); }
.section--line { border-block-start: 1px solid var(--line); }

.stack > * + * { margin-block-start: var(--gap-m); }
.stack-s > * + * { margin-block-start: var(--gap-s); }

.measure { max-width: var(--measure); }

/* Vertical rhythm for prose blocks (eyebrow / heading / paragraphs). */
.measure > * + * { margin-block-start: 1.05rem; }

.skip-link {
  position: absolute;
  inset-inline-start: 0.75rem;
  inset-block-start: -100%;
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background: var(--text);
  color: var(--surface);
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: var(--step--1);
  text-decoration: none;
}
.skip-link:focus { inset-block-start: 0.75rem; }

/* ---------- 4. Type helpers -------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
html[lang="ar"] .eyebrow { letter-spacing: 0.02em; text-transform: none; }

.eyebrow::before {
  content: "";
  inline-size: 1.75rem;
  block-size: 3px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}

.lede {
  font-size: var(--step-1);
  color: var(--text-muted);
  line-height: 1.6;
}
html[lang="ar"] .lede { line-height: 1.85; }

.muted { color: var(--text-muted); }
.small { font-size: var(--step--1); }
.tnum  { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* Latin fragments inside Arabic text (emails, +965, KWD) stay LTR. */
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- 5. Buttons -------------------------------------------------- */

.btn {
  --btn-bg: var(--text);
  --btn-fg: var(--surface);
  --btn-bd: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.4rem;
  min-block-size: 46px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--step--1);
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0); }

.btn svg { inline-size: 1.05em; block-size: 1.05em; flex: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  --btn-bd: var(--line-strong);
}
.btn--ghost:hover { --btn-bd: var(--text); }

.btn--wa {
  --btn-bg: #1da851;
  --btn-fg: #ffffff;
  --btn-bd: #1da851;
}

.btn--on-dark {
  --btn-bg: var(--accent-bright);
  --btn-fg: #16130c;
  --btn-bd: var(--accent-bright);
}
.btn--ghost-on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--text-on-dark);
  --btn-bd: rgba(242, 245, 246, 0.32);
}
.btn--ghost-on-dark:hover { --btn-bd: var(--text-on-dark); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-s);
  align-items: center;
}

/* Arrow that flips with direction */
.arrow { transition: transform 0.15s ease; }
a:hover > .arrow { transform: translateX(3px); }
html[dir="rtl"] a:hover > .arrow { transform: translateX(-3px); }
html[dir="rtl"] .arrow { scale: -1 1; }

.textlink {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  font-size: var(--step--1);
  color: var(--accent-ink);
  text-decoration: none;
  border-block-end: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding-block-end: 1px;
}
.textlink:hover { border-block-end-color: var(--accent); }

/* ---------- 6. Header / nav -------------------------------------------- */

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-block-end: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--gap-m);
  min-block-size: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: none;
  margin-inline-end: auto;
}
.brand__mark { inline-size: 36px; block-size: 36px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 1.02rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.brand__sub {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}
html[lang="ar"] .brand__sub { letter-spacing: 0.02em; text-transform: none; font-size: 0.72rem; }

.nav { display: flex; align-items: center; gap: 0.15rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
}
.nav__link {
  display: inline-block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-s);
  font-size: var(--step--1);
  font-weight: 550;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text); background: var(--surface-3); }
.nav__link[aria-current="page"] { color: var(--text); font-weight: 700; }

.header__actions { display: flex; align-items: center; gap: var(--gap-xs); flex: none; }

/* The in-panel WhatsApp CTA belongs to the mobile nav only. */
.nav__cta-mobile { display: none; }

.langswitch {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.langswitch a {
  padding: 0.36rem 0.7rem;
  text-decoration: none;
  color: var(--text-muted);
  line-height: 1.4;
}
.langswitch a[aria-current="true"] { background: var(--text); color: var(--surface); }
.langswitch a:not([aria-current="true"]):hover { background: var(--surface-3); color: var(--text); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  inline-size: 42px;
  block-size: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .header__cta { display: none; }
  .nav {
    position: fixed;
    inset-block: 68px auto;
    inset-inline: 0;
    display: none;
    padding: var(--gap-s) clamp(1.15rem, 1rem + 2vw, 2.25rem) var(--gap-l);
    background: var(--surface);
    border-block-end: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    max-block-size: calc(100dvh - 68px);
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0.1rem; }
  .nav__link {
    padding: 0.85rem 0.6rem;
    font-size: var(--step-0);
    border-block-end: 1px solid var(--line);
    border-radius: 0;
  }
  .nav__cta-mobile { display: block; margin-block-start: var(--gap-m); }
  .nav__cta-mobile .btn { inline-size: 100%; }
}

/* ---------- 7. Hero ---------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(3.25rem, 2rem + 6vw, 6rem) clamp(2.5rem, 1.8rem + 4vw, 4.5rem);
  background: var(--surface);
  overflow: hidden;
}
.hero::after {
  /* Structural grid — decorative, pure CSS, zero bytes on the wire. */
  content: "";
  position: absolute;
  inset-block-start: -20%;
  inset-inline-end: -12%;
  inline-size: 46rem;
  block-size: 46rem;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
  mask-image: radial-gradient(closest-side, #000 20%, transparent 76%);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 76%);
  opacity: 0.85;
  pointer-events: none;
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  gap: var(--gap-l);
  align-items: start;
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap-xl); }
}

.hero h1 { margin-block: 1.1rem 0; }
.hero__lede { margin-block-start: 1.35rem; max-width: 54ch; }
.hero .btn-row { margin-block-start: 2rem; }

.hero__aside {
  padding: var(--gap-m);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- 8. Fact strip --------------------------------------------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin-block-start: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact {
  padding: 1.15rem 1.25rem;
  background: var(--surface);
}
.fact__v {
  display: block;
  font-size: var(--step-2);
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.fact__k {
  display: block;
  margin-block-start: 0.3rem;
  font-size: var(--step--1);
  color: var(--text-muted);
  line-height: 1.45;
}

/* ---------- 9. Cards / grids ------------------------------------------ */

.grid { display: grid; gap: var(--gap-m); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: clamp(1.25rem, 1rem + 1vw, 1.85rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
}
.card--alt { background: var(--surface-2); box-shadow: none; }
.card--flush { box-shadow: none; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--text-muted); }
.card__foot { margin-block-start: auto; padding-block-start: 0.4rem; }

.card--link { text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.card--link:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-2); }

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 40px;
  block-size: 40px;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-ink);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  flex: none;
}
.icon-badge svg { inline-size: 20px; block-size: 20px; }

/* Split feature: construction | AI */
.split {
  display: grid;
  gap: var(--gap-m);
}
@media (min-width: 820px) { .split { grid-template-columns: 1fr 1fr; } }

.split__panel {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.split__panel--ai {
  background: var(--surface-dark);
  border-color: var(--surface-dark);
  color: var(--text-on-dark);
}
.split__panel--ai p { color: var(--text-on-dark-muted); }
.split__panel--ai .eyebrow { color: var(--accent-bright); }
.split__panel--ai .icon-badge {
  background: rgba(224, 166, 74, 0.14);
  border-color: rgba(224, 166, 74, 0.3);
  color: var(--accent-bright);
}

/* ---------- 10. Dark band --------------------------------------------- */

.band {
  position: relative;
  background: var(--surface-dark);
  color: var(--text-on-dark);
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset-block-start: -40%;
  inset-inline-start: -10%;
  inline-size: 38rem;
  block-size: 38rem;
  background: radial-gradient(circle, rgba(178, 111, 14, 0.22), transparent 66%);
  pointer-events: none;
}
.band > * { position: relative; }
.band p { color: var(--text-on-dark-muted); }
.band .eyebrow { color: var(--accent-bright); }
.band h2, .band h3 { color: var(--text-on-dark); }

.band .card {
  background: var(--surface-dark-2);
  border-color: var(--line-dark);
  box-shadow: none;
}
.band .card p { color: var(--text-on-dark-muted); }

/* ---------- 11. Steps ------------------------------------------------- */

.steps {
  display: grid;
  gap: var(--gap-m);
  counter-reset: step;
  list-style: none;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); } }

.step {
  position: relative;
  counter-increment: step;
  padding-block-start: 2.9rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 2.1rem;
  block-size: 2.1rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-num);
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1;
}
.step::after {
  content: "";
  position: absolute;
  inset-block-start: 1.05rem;
  inset-inline-start: 2.6rem;
  inline-size: calc(100% - 2.6rem);
  block-size: 1px;
  background: var(--line);
}
.steps > .step:last-child::after { display: none; }
@media (max-width: 759px) { .step::after { display: none; } }

.band .step::after { background: var(--line-dark); }
.step h3 { font-size: var(--step-1); margin-block-end: 0.4rem; }
.step p { color: var(--text-muted); font-size: var(--step-0); }
.band .step p { color: var(--text-on-dark-muted); }

/* ---------- 12. Status / callout -------------------------------------- */

.status {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.3rem;
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: var(--radius);
}
.status__dot {
  position: relative;
  inline-size: 0.7rem;
  block-size: 0.7rem;
  margin-block-start: 0.5rem;
  border-radius: 50%;
  background: #1da851;
  flex: none;
}
.status__dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(29, 168, 81, 0.4);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}
.status p { color: var(--text); }
.status strong { font-weight: 700; }

.band .status {
  background: rgba(224, 166, 74, 0.1);
  border-color: rgba(224, 166, 74, 0.28);
}
.band .status p { color: var(--text-on-dark); }

.callout {
  padding: clamp(1.25rem, 1rem + 1vw, 1.9rem);
  background: var(--surface-2);
  border-inline-start: 4px solid var(--accent);
  border-radius: var(--radius-s);
}
.callout p + p { margin-block-start: 0.7rem; }

/* ---------- 13. Lists ------------------------------------------------- */

.ticks { list-style: none; display: grid; gap: 0.7rem; }
.ticks--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 27rem), 1fr)); column-gap: var(--gap-l); }

/* The marker is absolutely positioned rather than a flex sibling, so a list
   item reading "<strong>Lead-in</strong> trailing clause" stays one wrapping
   sentence instead of splitting into side-by-side flex items. */
.ticks li {
  position: relative;
  padding-inline-start: 1.85rem;
  color: var(--text-muted);
}
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.28em;
  inline-size: 1.15rem;
  block-size: 1.15rem;
  border-radius: 50%;
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b26f0e' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 0.72rem;
  background-position: center;
  background-repeat: no-repeat;
}
.ticks strong { color: var(--text); font-weight: 650; }
.band .ticks li { color: var(--text-on-dark-muted); }
.band .ticks strong { color: var(--text-on-dark); }

.taglist { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; }
.tag {
  padding: 0.34rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  font-size: var(--step--1);
  color: var(--text-muted);
  background: var(--surface);
}

.plainlist { list-style: none; display: grid; gap: 0.45rem; }

/* Key/value definition lists. Styled here rather than with inline styles: an
   inline `margin:0` outranks `.stack > * + *` and collapses the gap between the
   list and the heading above it. */
.kvlist { display: grid; margin: 0; }
.stack > .kvlist,
.stack-s > .kvlist { margin-block-start: var(--gap-m); }
.kvlist dd { margin: 0; }
.kvlist--glance { gap: 0.85rem; }
.kvlist--glance dd { font-weight: 600; }
.kvlist--contact { gap: 1.75rem; }

/* ---------- 14. Definition rows (company facts) ----------------------- */

.deflist {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.deflist__row {
  display: grid;
  gap: 0.15rem 1.5rem;
  padding: 0.95rem 1.25rem;
  border-block-end: 1px solid var(--line);
  background: var(--surface);
}
.deflist__row:last-child { border-block-end: none; }
@media (min-width: 620px) {
  /* Percentage rather than a fixed 15rem: this list sits in a narrow grid
     column, where a fixed label width starves the value column. */
  .deflist__row { grid-template-columns: minmax(6.5rem, 32%) minmax(0, 1fr); align-items: baseline; }
}
.deflist dt { font-size: var(--step--1); font-weight: 650; color: var(--text-muted); }
.deflist dd { margin: 0; font-weight: 550; }

/* ---------- 15. Contact ----------------------------------------------- */

.contact-grid { display: grid; gap: var(--gap-m); }
@media (min-width: 860px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: var(--gap-xl); } }

.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-item__body { min-width: 0; }
.contact-item dt,
.contact-item .contact-item__k {
  font-size: var(--step--1);
  font-weight: 650;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
html[lang="ar"] .contact-item .contact-item__k { letter-spacing: 0; text-transform: none; }
.contact-item__v {
  font-size: var(--step-1);
  font-weight: 600;
  word-break: break-word;
}
.contact-item__v--addr { font-size: var(--step-0); font-weight: 550; }
.contact-item__v a { text-decoration: none; border-block-end: 1.5px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.contact-item__v a:hover { border-block-end-color: var(--accent); }

/* ---------- 16. CTA band ---------------------------------------------- */

.cta {
  display: grid;
  gap: var(--gap-m);
  align-items: center;
  padding: clamp(1.75rem, 1.3rem + 2vw, 3rem);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
@media (min-width: 840px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: var(--gap-l); } }
.cta::before {
  content: "";
  position: absolute;
  inset-block-end: -60%;
  inset-inline-end: -8%;
  inline-size: 26rem;
  block-size: 26rem;
  background: radial-gradient(circle, rgba(178, 111, 14, 0.28), transparent 65%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta h2 { font-size: var(--step-3); }
.cta p { color: var(--text-on-dark-muted); margin-block-start: 0.6rem; max-width: 52ch; }

/* ---------- 17. Footer ------------------------------------------------ */

.site-footer {
  padding-block: var(--gap-xl) var(--gap-m);
  background: var(--surface-dark);
  color: var(--text-on-dark);
  border-block-start: 1px solid var(--line-dark);
}
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-on-dark); text-decoration: underline; }

.footer__grid {
  display: grid;
  gap: var(--gap-l);
}
@media (min-width: 780px) {
  .footer__grid { grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr)); gap: var(--gap-xl); }
}

.footer__brand .brand__name { color: var(--text-on-dark); }
.footer__brand .brand__sub { color: var(--text-on-dark-muted); }
.footer__legalname {
  margin-block-start: 0.9rem;
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
  max-width: 40ch;
  line-height: 1.6;
}

.footer__h {
  margin-block-end: 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-on-dark);
}
html[lang="ar"] .footer__h { letter-spacing: 0.02em; text-transform: none; font-size: var(--step--1); }

.footer__list { list-style: none; display: grid; gap: 0.55rem; font-size: var(--step--1); }

.footer__social { display: flex; gap: 0.6rem; margin-block-start: 1.1rem; }
.footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 38px;
  block-size: 38px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  color: var(--text-on-dark-muted);
}
.footer__social a:hover { border-color: var(--text-on-dark-muted); color: var(--text-on-dark); }
.footer__social svg { inline-size: 18px; block-size: 18px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem var(--gap-m);
  justify-content: space-between;
  align-items: center;
  margin-block-start: var(--gap-l);
  padding-block-start: var(--gap-m);
  border-block-start: 1px solid var(--line-dark);
  font-size: var(--step--1);
  color: var(--text-on-dark-muted);
}

/* ---------- 18. Page header (interior pages) -------------------------- */

.pagehead {
  padding-block: clamp(2.5rem, 1.9rem + 3vw, 4.25rem) clamp(1.75rem, 1.4rem + 2vw, 2.75rem);
  border-block-end: 1px solid var(--line);
  background: var(--surface-2);
}
.pagehead h1 { font-size: var(--step-4); margin-block: 0.9rem 0; }
.pagehead .lede { margin-block-start: 1.1rem; max-width: 62ch; }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  list-style: none;
  font-size: var(--step--1);
  color: var(--text-soft);
}
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-inline-end: 0.4rem; color: var(--line-strong); }
html[dir="rtl"] .breadcrumb li + li::before { content: "\\"; }

/* ---------- 19. Language gate (root page) ----------------------------- */

.gate {
  min-block-size: 100dvh;
  display: grid;
  place-items: center;
  padding: var(--gap-m);
  text-align: center;
  background: var(--surface-dark);
  color: var(--text-on-dark);
}
.gate__inner { max-width: 30rem; display: grid; gap: var(--gap-m); justify-items: center; }
.gate__mark { inline-size: 60px; block-size: 60px; }
.gate h1 { font-size: var(--step-2); }
.gate p { color: var(--text-on-dark-muted); }
.gate__links { display: flex; flex-wrap: wrap; gap: var(--gap-s); justify-content: center; }
.gate__links .btn { min-inline-size: 12rem; }

/* ---------- 20. Utilities -------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  inline-size: 1px; block-size: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .measure { margin-inline: auto; }
.center .btn-row { justify-content: center; }

.divider { block-size: 1px; background: var(--line); border: 0; margin: 0; }

@media print {
  .site-header, .nav-toggle, .cta, .footer__social { display: none !important; }
  body { color: #000; background: #fff; }
}
