/* ==========================================================================
   Rawae Al-Rafidain — General Trading & Services Co.
   Design tokens sampled directly from the company mark:
   navy #06306E (the two rivers) · gold #A8802A (the date palm)
   ========================================================================== */

/* ---- 1. Tokens ---------------------------------------------------------- */
:root {
  /* Brand */
  --river:        #06306E;
  --river-mid:    #0B4695;
  --river-ink:    #04193F;
  --gold:         #A8802A;
  --gold-lift:    #D9AE58;
  --gold-wash:    #F3E9D2;

  /* Surfaces — cool river-silt, deliberately not a warm cream */
  --silt:         #ECEDE7;
  --silt-deep:    #DFE1D9;
  --paper:        #FCFCFA;

  /* Ink */
  --ink:          #14181D;
  --ink-soft:     #4C5663;
  --ink-faint:    #7A8593;
  --line:         rgba(6, 48, 110, .14);
  --line-strong:  rgba(6, 48, 110, .28);

  /* Sector keylines — one colour per class of goods */
  --grain:        #A8802A;
  --pomegranate:  #9B2F35;
  --pasture:      #2F6647;

  /* Type */
  --f-display: "Bricolage Grotesque", "Public Sans", system-ui, sans-serif;
  --f-body:    "Public Sans", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --step--1: clamp(.8rem, .77rem + .15vw, .875rem);
  --step-0:  clamp(1rem, .96rem + .2vw, 1.0625rem);
  --step-1:  clamp(1.15rem, 1.08rem + .35vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.3rem + .75vw, 1.95rem);
  --step-3:  clamp(1.85rem, 1.55rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.3rem, 1.75rem + 2.75vw, 4.4rem);
  --step-5:  clamp(2.7rem, 1.8rem + 4.4vw, 5.8rem);

  /* Space */
  --gutter: clamp(1.15rem, .7rem + 2vw, 2.5rem);
  --bay:    clamp(3.75rem, 2.4rem + 6vw, 7.5rem);
  --wrap:   79rem;
  --radius: 4px;
}

[dir="rtl"] {
  --f-display: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --f-body:    "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --f-mono:    "IBM Plex Sans Arabic", "Tajawal", monospace;
}

/* ---- 2. Reset ----------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[dir="rtl"] body { line-height: 1.85; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }

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

::selection { background: var(--gold-lift); color: var(--river-ink); }

.skip {
  position: absolute; inset-inline-start: 1rem; top: -100px;
  z-index: 999; background: var(--river); color: #fff;
  padding: .7rem 1.1rem; border-radius: var(--radius);
  transition: top .18s ease;
}
.skip:focus { top: 1rem; }

/* ---- 3. Type ------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.022em;
  color: var(--river-ink);
  text-wrap: balance;
}
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
  letter-spacing: 0; line-height: 1.3;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -.012em; }
p  { text-wrap: pretty; }

.lede {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 46ch;
}
[dir="rtl"] .lede { line-height: 1.8; }

/* The mono eyebrow — the manifest voice used throughout the site */
.eyebrow {
  font-family: var(--f-mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  inline-size: 1.6rem;
  block-size: 1px;
  background: currentColor;
  flex: none;
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
  text-transform: none;
  font-size: .82rem;
  font-weight: 600;
}

/* ---- 4. Layout ---------------------------------------------------------- */
.wrap {
  inline-size: min(100% - (var(--gutter) * 2), var(--wrap));
  margin-inline: auto;
}
.bay { padding-block: var(--bay); }
.bay--tight { padding-block: calc(var(--bay) * .62); }
.bay--silt { background: var(--silt); }
.bay--paper { background: var(--paper); }

.section-head { max-width: 62ch; margin-block-end: clamp(2.2rem, 1.4rem + 2.5vw, 3.6rem); }
.section-head .eyebrow { margin-block-end: 1.1rem; }
.section-head h2 { margin-block-end: 1.1rem; }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: start;
}
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr .95fr; } }

/* ---- 5. Buttons --------------------------------------------------------- */
.btn {
  --btn-bg: var(--river);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.55rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 600;
  font-size: var(--step--1);
  letter-spacing: .01em;
  border: 1px solid var(--btn-bg);
  border-radius: 2px;
  cursor: pointer;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); background: var(--river-ink); border-color: var(--river-ink); }
.btn .arw { transition: transform .25s cubic-bezier(.2,.8,.3,1); }
.btn:hover .arw { transform: translateX(4px); }
[dir="rtl"] .btn .arw { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arw { transform: scaleX(-1) translateX(4px); }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #fff; }
.btn--gold:hover { background: #8E6C1F; border-color: #8E6C1F; }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--river-ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: transparent; color: var(--gold); border-color: var(--gold); }

.btn--ghost-light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.4); }
.btn--ghost-light:hover { background: rgba(255,255,255,.09); border-color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-block-start: 2rem; }

/* ---- 6. Header ---------------------------------------------------------- */
.topbar {
  background: var(--river-ink);
  color: rgba(255,255,255,.72);
  font-family: var(--f-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
[dir="rtl"] .topbar { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.topbar .wrap {
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; min-block-size: 2.5rem; flex-wrap: wrap;
}
.topbar a:hover { color: var(--gold-lift); }
.topbar-set {
  display: flex; align-items: center;
  gap: .3rem 1.2rem;
  flex-wrap: wrap;          /* the Arabic strip is longer and must be able to wrap */
  min-inline-size: 0;
}
.topbar-set a { word-break: break-word; }
@media (max-width: 620px) {
  /* Must out-rank ".topbar-set span" below, which is (0,1,1). */
  .topbar-set .topbar-hours { display: none; }   /* hours live on the contact page */
  .topbar-set { gap: .25rem .9rem; }
}
@media (max-width: 560px) {
  /* One clean line on a phone: city on one side, phone number on the other.
     The email address is long and pushed the strip onto three cramped lines;
     it is still in the menu, the footer and on the contact page. */
  .topbar-set a[href^="mailto:"] { display: none; }
  .topbar .wrap { flex-wrap: nowrap; gap: .75rem; }
}
@media (max-width: 400px) {
  .topbar { font-size: .62rem; }
  [dir="rtl"] .topbar { font-size: .72rem; }
}
.topbar-set span { display: inline-flex; align-items: center; gap: .45rem; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(252,252,250,.9);
  backdrop-filter: blur(14px) saturate(150%);
  border-block-end: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.is-stuck { box-shadow: 0 10px 34px -20px rgba(4,25,63,.5); }
/* MUST stay a direct-child selector. The drawer lives inside <header>, so a
   plain ".site-header .wrap" also catches the drawer's wrap and lays the menu
   list and the buttons out as a flex ROW — which pushes the page sideways and
   scrambles the open menu on a phone. */
.site-header > .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.25rem; min-block-size: clamp(6.1rem, 5.8rem + 1.4vw, 6.7rem);
}

.brand { display: flex; align-items: center; gap: .8rem; flex: none; }
/* The client's artwork is used whole — emblem plus the Arabic and English
   wordmarks. It is portrait (480x678), so its height is what makes the
   lettering legible. ~78px on a phone, ~90px on a desktop. */
.brand img { block-size: clamp(4.9rem, 4.5rem + 1.6vw, 5.6rem); inline-size: auto; }
.brand-txt { display: none; line-height: 1.15; }
@media (min-width: 560px) { .brand-txt { display: block; } }
.brand-txt strong {
  display: block; font-family: var(--f-display); font-weight: 700;
  font-size: .98rem; letter-spacing: -.01em; color: var(--river);
}
[dir="rtl"] .brand-txt strong { letter-spacing: 0; }
.brand-txt span {
  font-family: var(--f-mono); font-size: .58rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-faint);
}
[dir="rtl"] .brand-txt span { letter-spacing: 0; text-transform: none; font-size: .7rem; }

.nav { display: none; }
@media (min-width: 1060px) {
  .nav { display: flex; align-items: center; gap: clamp(1rem, .3rem + 1.4vw, 2rem); }
}
.nav a {
  position: relative;
  font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  padding-block: .4rem; transition: color .18s ease;
}
.nav a::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0;
  block-size: 2px; background: var(--gold); border-radius: 2px;
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .25s cubic-bezier(.2,.8,.3,1);
}
.nav a:hover { color: var(--river); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
/* The active item is marked with colour and the gold underline only.
   Changing font-weight here would make the item wider and shove every other
   link sideways on each page load, so the weight stays fixed at 500. */
.nav a[aria-current="page"] { color: var(--river); }
.nav > a, .nav-parent { font-weight: 500; }

.header-tools { display: flex; align-items: center; gap: .7rem; }
.header-tools .btn { display: none; }
@media (min-width: 700px) { .header-tools .btn { display: inline-flex; } }

.lang {
  display: inline-flex; align-items: center; gap: .35rem;
  font-family: var(--f-mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; padding: .5rem .8rem;
  border: 1px solid var(--line-strong); border-radius: 2px;
  color: var(--river); transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.lang:hover { background: var(--river); color: #fff; border-color: var(--river); }
.lang svg { opacity: .7; }

.burger {
  display: inline-grid; place-items: center;
  inline-size: 2.85rem; block-size: 2.85rem;
  background: none; border: 1px solid var(--line-strong); border-radius: 2px;
  cursor: pointer;
}
@media (min-width: 1060px) { .burger { display: none; } }
.burger span {
  display: block; inline-size: 18px; block-size: 1.5px;
  background: var(--river); transition: transform .28s ease, opacity .2s ease;
}
.burger span + span { margin-block-start: 4.5px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer {
  display: none;
  border-block-start: 1px solid var(--line);
  background: var(--paper);
}
.drawer.is-open { display: block; }
@media (min-width: 1060px) { .drawer, .drawer.is-open { display: none; } }
.drawer ul { padding-block: .75rem 1.5rem; }
.drawer a {
  display: flex; justify-content: space-between; align-items: center;
  padding-block: .95rem; border-block-end: 1px solid var(--line);
  font-family: var(--f-display); font-size: 1.15rem; font-weight: 600;
  color: var(--river-ink);
}
.drawer a small {
  font-family: var(--f-mono); font-size: .65rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}
[dir="rtl"] .drawer a small { letter-spacing: 0; text-transform: none; font-size: .78rem; }
/* The base .btn is inline-flex. Two of them at 100% width sit on the SAME line
   box inside the drawer, making the document wider than the viewport.
   display:flex makes each block-level so they stack. */
.drawer .btn { display: flex; inline-size: 100%; justify-content: center; margin-block-start: 1rem; }


/* --- Dropdown groups ----------------------------------------------------- */
.nav-group { position: relative; }
.nav-parent { display: inline-flex; align-items: center; gap: .38rem; }
.nav-parent .chev { transition: transform .25s ease; opacity: .6; }
.nav-group:hover .nav-parent .chev,
.nav-group:focus-within .nav-parent .chev { transform: rotate(180deg); opacity: 1; }

.nav-menu {
  position: absolute;
  /* Anchored to the parent's inline-start edge. Do NOT centre this with
     `inset-inline-start: 50%` + `translate: -50%`: `inset-inline-start` flips
     direction under RTL but `translate` does not, so the two compound instead
     of cancelling and the menu lands far away from its parent in Arabic. */
  inset-block-start: 100%;
  inset-inline-start: 0;
  min-inline-size: 17rem;
  max-inline-size: min(24rem, 92vw);
  /* The visual gap lives inside the menu as padding, so the mouse never
     crosses an unhoverable strip on its way down from the parent. */
  padding-block-start: .85rem;
  opacity: 0; visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2,.8,.3,1), visibility .2s;
  z-index: 95;
}
.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav-menu-inner {
  background: var(--paper);
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--gold);
  box-shadow: 0 26px 54px -28px rgba(4,25,63,.55);
  padding-block: .4rem;
}
.nav-menu a {
  display: block;
  padding: .72rem 1.15rem;
  border-block-end: 1px solid transparent;
}
.nav-menu a::after { content: none; }
.nav-menu a span {
  display: block;
  font-family: var(--f-display); font-weight: 600; font-size: .96rem;
  color: var(--river-ink); letter-spacing: -.01em;
}
[dir="rtl"] .nav-menu a span { letter-spacing: 0; }
.nav-menu a small {
  display: block; margin-block-start: .1rem;
  font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-faint);
}
[dir="rtl"] .nav-menu a small { letter-spacing: 0; text-transform: none; font-size: .74rem; }
.nav-menu a:hover, .nav-menu a:focus-visible { background: var(--silt); }
.nav-menu a:hover span { color: var(--gold); }
.nav-menu a[aria-current="page"] { background: var(--silt); box-shadow: inset 3px 0 0 var(--gold); }
[dir="rtl"] .nav-menu a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--gold); }

/* Drawer children */
.drawer-sub a {
  padding-inline-start: 1.15rem;
  border-inline-start: 2px solid var(--line);
  font-size: 1rem;
  color: var(--ink-soft);
}
.drawer-sub a:hover { border-inline-start-color: var(--gold); color: var(--river); }

/* ---- 7. Hero ------------------------------------------------------------ */
.hero {
  position: relative;
  background: var(--river-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(.85);
}
/* Duotone: navy shadows, gold highlights — the house image treatment */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, var(--river-ink) 8%, rgba(6,48,110,.86) 48%, rgba(168,128,42,.42) 100%);
  mix-blend-mode: multiply;
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(4,25,63,.72), rgba(4,25,63,.42) 45%, rgba(4,25,63,.9));
}
[dir="rtl"] .hero-media::after { background: linear-gradient(245deg, var(--river-ink) 8%, rgba(6,48,110,.86) 48%, rgba(168,128,42,.42) 100%); }

.hero-body { padding-block: clamp(4.5rem, 3rem + 9vw, 9.5rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero h1 { color: #fff; max-width: 17ch; font-size: var(--step-5); }
.hero .eyebrow { color: var(--gold-lift); margin-block-end: 1.6rem; }
.hero-sub {
  margin-block-start: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.55;
  color: rgba(255,255,255,.82);
  max-width: 52ch;
}
[dir="rtl"] .hero-sub { line-height: 1.85; }

/* Signature: the manifest rail — three sectors, three keylines */
.manifest {
  display: grid;
  border-block-start: 1px solid rgba(255,255,255,.16);
}
@media (min-width: 820px) { .manifest { grid-template-columns: repeat(3, 1fr); } }
.manifest-cell {
  position: relative;
  display: block;
  padding: 1.9rem clamp(1rem, .5rem + 1.6vw, 2rem) 2rem;
  border-block-end: 1px solid rgba(255,255,255,.16);
  transition: background .3s ease;
}
@media (min-width: 820px) {
  .manifest-cell { border-block-end: 0; border-inline-end: 1px solid rgba(255,255,255,.16); }
  .manifest-cell:last-child { border-inline-end: 0; }
}
.manifest-cell::before {
  content: ""; position: absolute; inset-block-start: -1px; inset-inline: 0;
  block-size: 3px; background: var(--key, var(--gold));
  transform: scaleX(0); transform-origin: inline-start;
  transition: transform .4s cubic-bezier(.2,.8,.3,1);
}
.manifest-cell:hover, .manifest-cell:focus-visible { background: rgba(255,255,255,.055); }
.manifest-cell:hover::before, .manifest-cell:focus-visible::before { transform: scaleX(1); }
.manifest-cell h2, .manifest-cell h3 {
  color: #fff; font-size: var(--step-1); margin-block-end: .3rem;
}
.manifest-ar {
  font-family: "IBM Plex Sans Arabic", "Tajawal", sans-serif;
  font-size: .95rem; color: var(--gold-lift); margin-block-end: .85rem;
}
[dir="rtl"] .manifest-ar { font-family: var(--f-body); }
.manifest-cell p { font-size: .87rem; color: rgba(255,255,255,.68); line-height: 1.6; }
.manifest-go {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-block-start: 1.1rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .13em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  transition: color .2s ease, gap .2s ease;
}
[dir="rtl"] .manifest-go { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.manifest-cell:hover .manifest-go { color: var(--key, var(--gold-lift)); gap: .75rem; }
[dir="rtl"] .manifest-go svg { transform: scaleX(-1); }

/* ---- 8. River rule — the interwoven ribbon from the mark ---------------- */
.river-rule { display: block; inline-size: 100%; block-size: 26px; color: var(--gold); opacity: .5; }
.river-rule path.a { stroke: var(--river); }
.river-rule path.b { stroke: var(--gold); }

/* ---- 9. Page header (interior pages) ------------------------------------ */
.page-head {
  position: relative;
  background: var(--river);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(2.5rem, 1.6rem + 4vw, 5rem);
  overflow: hidden;
}
.page-head::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-end: -8%;
  inline-size: 46%;
  background: radial-gradient(ellipse at center, rgba(168,128,42,.4), transparent 68%);
  pointer-events: none;
}
.page-head h1 { color: #fff; max-width: 20ch; position: relative; }
.page-head .eyebrow { color: var(--gold-lift); margin-block-end: 1.25rem; }
.page-head .lede { color: rgba(255,255,255,.8); margin-block-start: 1.4rem; max-width: 56ch; position: relative; }
.page-head[data-key] { border-block-end: 4px solid var(--key); }

.crumbs {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
  margin-block-end: 1.6rem; display: flex; gap: .5rem; flex-wrap: wrap;
}
[dir="rtl"] .crumbs { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.crumbs a:hover { color: var(--gold-lift); }
.crumbs li { display: flex; gap: .5rem; }

/* ---- 10. Stats ---------------------------------------------------------- */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--paper); padding: 1.7rem 1.5rem; min-inline-size: 0; }
.stat dt {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-block-end: .7rem;
}
[dir="rtl"] .stat dt { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.stat dd {
  font-family: var(--f-display); font-size: var(--step-1); font-weight: 700;
  color: var(--river); line-height: 1.2; letter-spacing: -.015em;
}
[dir="rtl"] .stat dd { letter-spacing: 0; }

/* ---- 11. Sector cards --------------------------------------------------- */
.cards { display: grid; gap: clamp(1.25rem, .6rem + 2vw, 2rem); }
@media (min-width: 760px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.2,.8,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -32px rgba(4,25,63,.55); border-color: var(--key, var(--line-strong)); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--silt-deep); }
.card-media img {
  inline-size: 100%; block-size: 100%; object-fit: cover;
  filter: saturate(.72) contrast(1.04);
  transition: transform .7s cubic-bezier(.2,.8,.3,1), filter .5s ease;
}
.card:hover .card-media img { transform: scale(1.055); filter: saturate(1) contrast(1.02); }
.card-key {
  position: absolute; inset-block-start: 0; inset-inline-start: 0;
  padding: .5rem .85rem;
  background: var(--key, var(--gold)); color: #fff;
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
}
[dir="rtl"] .card-key { letter-spacing: 0; text-transform: none; font-size: .76rem; }
.card-body { padding: 1.6rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-block-end: .35rem; }
.card-ar { font-size: .92rem; color: var(--gold); margin-block-end: .8rem; font-family: "IBM Plex Sans Arabic", sans-serif; }
[dir="rtl"] .card-ar { font-family: var(--f-body); }
.card-body p { color: var(--ink-soft); font-size: .95rem; }
.card-list { margin-block-start: 1.1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.card-list li {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .06em;
  padding: .28rem .6rem; border: 1px solid var(--line);
  color: var(--ink-soft); background: var(--silt);
}
[dir="rtl"] .card-list li { letter-spacing: 0; font-size: .8rem; }
.card-go {
  margin-block-start: auto; padding-block-start: 1.4rem;
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .9rem; color: var(--key, var(--river));
}
.card-go svg { transition: transform .25s ease; }
[dir="rtl"] .card-go svg { transform: scaleX(-1); }
.card:hover .card-go svg { transform: translateX(4px); }
[dir="rtl"] .card:hover .card-go svg { transform: scaleX(-1) translateX(4px); }
.card a.stretch::after { content: ""; position: absolute; inset: 0; }

/* ---- 12. Flow — a genuine sequence, so it is numbered ------------------- */
.flow { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.flow-step {
  display: grid; gap: .5rem 1.6rem;
  padding-block: 1.7rem;
  border-block-end: 1px solid var(--line);
  align-items: start;
}
@media (min-width: 800px) { .flow-step { grid-template-columns: 5.5rem 15rem 1fr; gap: 2rem; } }
.flow-num {
  font-family: var(--f-mono); font-size: .8rem; font-weight: 500;
  color: var(--gold); letter-spacing: .1em; padding-block-start: .28rem;
}
.flow-step h3 { font-size: var(--step-1); }
.flow-step p { color: var(--ink-soft); font-size: .95rem; }
.flow-step:hover .flow-num { color: var(--river); }

/* ---- 13. Feature grid --------------------------------------------------- */
.features { display: grid; gap: clamp(1.5rem, .8rem + 2vw, 2.75rem); }
@media (min-width: 700px)  { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .features--4 { grid-template-columns: repeat(4, 1fr); } }
.feature { padding-block-start: 1.35rem; border-block-start: 2px solid var(--river); }
.feature:nth-child(2n) { border-block-start-color: var(--gold); }
.feature h3 { font-size: var(--step-1); margin-block-end: .6rem; }
.feature p { color: var(--ink-soft); font-size: .95rem; }

/* ---- 14. Prose & lists -------------------------------------------------- */
.prose > * + * { margin-block-start: 1.15rem; }
.prose p { color: var(--ink-soft); }
.prose h3 { margin-block-start: 2.4rem; color: var(--river-ink); }
.prose strong { color: var(--ink); font-weight: 600; }

.ticks { display: grid; gap: .8rem; margin-block-start: 1.6rem; }
.ticks li {
  position: relative; padding-inline-start: 1.85rem;
  color: var(--ink-soft); font-size: .97rem;
}
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; inset-block-start: .58em;
  inline-size: .7rem; block-size: .7rem;
  border-inline-start: 2px solid var(--gold);
  border-block-end: 2px solid var(--gold);
  transform: rotate(-45deg);
}
[dir="rtl"] .ticks li::before { transform: rotate(-45deg) scaleX(1); }

/* ---- 15. Spec / seasonality table -------------------------------------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); background: var(--paper); }
table.spec { inline-size: 100%; border-collapse: collapse; font-size: .92rem; min-inline-size: 34rem; }
table.spec caption {
  caption-side: bottom; text-align: start; padding: .9rem 1.1rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--ink-faint); border-block-start: 1px solid var(--line);
}
[dir="rtl"] table.spec caption { letter-spacing: 0; font-size: .8rem; }
table.spec th, table.spec td { padding: .85rem 1.1rem; text-align: start; border-block-end: 1px solid var(--line); }
table.spec thead th {
  background: var(--river); color: #fff;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; font-weight: 500;
}
[dir="rtl"] table.spec thead th { letter-spacing: 0; text-transform: none; font-size: .8rem; }
table.spec tbody th { font-weight: 600; color: var(--river-ink); }
table.spec tbody tr:hover { background: var(--silt); }
table.spec td { color: var(--ink-soft); }
table.spec .mono { font-family: var(--f-mono); font-size: .82rem; color: var(--gold); }
[dir="rtl"] table.spec .mono { font-size: .88rem; }

/* ---- 16. Accordion ------------------------------------------------------ */
.acc { border-block-start: 1px solid var(--line); }
.acc details { border-block-end: 1px solid var(--line); }
.acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1.5rem;
  padding-block: 1.35rem; cursor: pointer; list-style: none;
  font-family: var(--f-display); font-weight: 600; font-size: var(--step-1);
  color: var(--river-ink);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; font-family: var(--f-mono); font-size: 1.35rem; color: var(--gold);
  transition: transform .25s ease; flex: none;
}
.acc details[open] summary::after { transform: rotate(45deg); }
.acc details p { padding-block-end: 1.4rem; color: var(--ink-soft); max-width: 68ch; }

/* ---- 17. Feature band (image + text) ----------------------------------- */
.band { position: relative; background: var(--river); color: #fff; overflow: hidden; }
.band-inner { display: grid; align-items: center; }
@media (min-width: 900px) { .band-inner { grid-template-columns: 1fr 1fr; } }
.band-media { position: relative; min-block-size: 20rem; }
.band-media img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; filter: saturate(.55) contrast(1.06); }
.band-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,48,110,.45), rgba(4,25,63,.6)); }
.band-body { padding: clamp(2.5rem, 1.5rem + 5vw, 5.5rem) var(--gutter); }
@media (min-width: 900px) { .band-body { padding-inline: clamp(2.5rem, 1rem + 5vw, 5rem); } }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--gold-lift); margin-block-end: 1.2rem; }
.band p { color: rgba(255,255,255,.78); margin-block-start: 1.2rem; max-width: 48ch; }
.band .ticks li { color: rgba(255,255,255,.8); }
.band .ticks li::before { border-color: var(--gold-lift); }

/* ---- 18. CTA ------------------------------------------------------------ */
.cta {
  position: relative;
  background: var(--river-ink);
  color: #fff; overflow: hidden; isolation: isolate;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 82% 18%, rgba(168,128,42,.5), transparent 55%),
    radial-gradient(circle at 12% 92%, rgba(11,70,149,.65), transparent 58%);
}
.cta .wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.2fr .8fr; } }
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: rgba(255,255,255,.78); margin-block-start: 1.1rem; max-width: 46ch; }
.cta .btn-row { margin-block-start: 0; }
@media (min-width: 900px) { .cta .btn-row { justify-content: flex-end; } }

/* ---- 19. Contact -------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 1fr 1.15fr; } }

.info-list { display: grid; gap: 1.6rem; }
.info-item { padding-inline-start: 1.4rem; border-inline-start: 2px solid var(--gold); }
.info-item dt {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin-block-end: .35rem;
}
[dir="rtl"] .info-item dt { letter-spacing: 0; text-transform: none; font-size: .8rem; }
.info-item dd { font-size: 1.02rem; color: var(--river-ink); font-weight: 500; }
.info-item dd a:hover { color: var(--gold); }

.form { background: var(--paper); border: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.field { margin-block-end: 1.15rem; }
.field label {
  display: block; margin-block-end: .45rem;
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-soft);
}
[dir="rtl"] .field label { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.field input, .field select, .field textarea {
  inline-size: 100%; padding: .8rem .9rem;
  background: var(--silt); border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .18s ease, background .18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); background: var(--paper);
  box-shadow: 0 0 0 3px rgba(168,128,42,.14);
}
.field textarea { min-block-size: 8rem; resize: vertical; }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.form-note { font-size: .82rem; color: var(--ink-faint); margin-block-start: 1rem; }
.form .btn { inline-size: 100%; justify-content: center; }

/* ---- 20. Footer --------------------------------------------------------- */
.site-footer { background: var(--river-ink); color: rgba(255,255,255,.66); padding-block: clamp(3rem, 2rem + 4vw, 5rem) 0; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 3rem; } }
.footer-brand img { block-size: clamp(7rem, 6rem + 3vw, 9.5rem); inline-size: auto; margin-block-end: 1.4rem; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 34ch; }
.site-footer h2 {
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-lift);
  font-weight: 500; margin-block-end: 1.15rem;
}
[dir="rtl"] .site-footer h2 { letter-spacing: 0; text-transform: none; font-size: .85rem; font-weight: 600; }
.site-footer li + li { margin-block-start: .65rem; }
.site-footer a { font-size: .92rem; transition: color .18s ease; }
.site-footer a:hover { color: var(--gold-lift); }
.footer-bar {
  margin-block-start: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-block-start: 1px solid rgba(255,255,255,.13);
  padding-block: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .08em;
  color: rgba(255,255,255,.45);
}
[dir="rtl"] .footer-bar { letter-spacing: 0; font-size: .8rem; }

/* ---- 21. Motion --------------------------------------------------------- */

/* Page-load sequence — the one orchestrated moment on the site */
@keyframes lift {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
@keyframes draw {
  from { opacity: 0; transform: scaleY(.4); }
  to   { opacity: 1; transform: none; }
}
.hero-body > * { animation: lift .8s cubic-bezier(.2,.8,.3,1) backwards; }
.hero-body > :nth-child(1) { animation-delay: .05s; }
.hero-body > :nth-child(2) { animation-delay: .16s; }
.hero-body > :nth-child(3) { animation-delay: .28s; }
.hero-body > :nth-child(4) { animation-delay: .4s; }
.manifest-cell { animation: lift .8s cubic-bezier(.2,.8,.3,1) backwards; }
.manifest-cell:nth-child(1) { animation-delay: .5s; }
.manifest-cell:nth-child(2) { animation-delay: .58s; }
.manifest-cell:nth-child(3) { animation-delay: .66s; }
.page-head > .wrap > * { animation: lift .7s cubic-bezier(.2,.8,.3,1) backwards; }
.page-head > .wrap > :nth-child(1) { animation-delay: .04s; }
.page-head > .wrap > :nth-child(2) { animation-delay: .12s; }
.page-head > .wrap > :nth-child(3) { animation-delay: .2s; }
.page-head > .wrap > :nth-child(4) { animation-delay: .28s; }

.rise { opacity: 0; transform: translateY(18px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1); }
.rise.d1 { transition-delay: .08s; }
.rise.d2 { transition-delay: .16s; }
.rise.d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise.is-in { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---- 22. Vision statements & strength pillars --------------------------- */
.statements { display: grid; gap: clamp(1.1rem, .6rem + 1.5vw, 1.75rem); }
@media (min-width: 880px) { .statements { grid-template-columns: 1fr 1fr; } }
.statement {
  padding: clamp(1.9rem, 1.2rem + 2.5vw, 3.1rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-block-start: 3px solid var(--gold);
}
.statement p {
  font-size: var(--step-2);
  line-height: 1.42;
  font-family: var(--f-display);
  font-weight: 500;
  letter-spacing: -.015em;
  color: var(--river-ink);
}
[dir="rtl"] .statement p { line-height: 1.75; letter-spacing: 0; font-weight: 500; }
.statement--dark {
  background: var(--river);
  border-color: var(--river);
  border-block-start-color: var(--gold-lift);
}
.statement--dark p { color: #fff; }
.statement--dark .eyebrow { color: var(--gold-lift); }

.pillars { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 920px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar {
  background: var(--paper);
  padding: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem);
  border-block-start: 3px solid var(--key, var(--gold));
  min-inline-size: 0;
}
.pillar h3 { font-size: var(--step-2); margin-block-end: .9rem; }
.pillar-lede { color: var(--ink-soft); font-size: .98rem; }
.pillar .ticks { margin-block-start: 1.5rem; padding-block-start: 1.4rem; border-block-start: 1px solid var(--line); }
.pillar .ticks li { font-size: .92rem; }
.pillar .ticks li::before { border-color: var(--key, var(--gold)); }

/* Footer design credit */
.footer-bar .credit a {
  color: var(--gold-lift);
  border-block-end: 1px solid rgba(217,174,88,.45);
  padding-block-end: 1px;
  transition: color .18s ease, border-color .18s ease;
}
.footer-bar .credit a:hover { color: #fff; border-block-end-color: #fff; }


/* ---- 23. Gallery strip -------------------------------------------------- */
.gallery { display: grid; gap: clamp(.7rem, .4rem + 1vw, 1.15rem); }
@media (min-width: 560px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery figure {
  position: relative; overflow: hidden; margin: 0;
  border: 1px solid var(--line); background: var(--silt-deep);
}
.gallery img {
  inline-size: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  filter: saturate(.82) contrast(1.03);
  transition: transform .8s cubic-bezier(.2,.8,.3,1), filter .5s ease;
}
.gallery figure:hover img { transform: scale(1.06); filter: saturate(1.05) contrast(1); }
.gallery figcaption {
  position: absolute; inset-inline: 0; inset-block-end: 0;
  padding: 2.2rem .95rem .8rem;
  background: linear-gradient(to top, rgba(4,25,63,.92), rgba(4,25,63,.55) 45%, transparent);
  color: #fff;
  font-family: var(--f-mono); font-size: .66rem;
  letter-spacing: .13em; text-transform: uppercase;
}
[dir="rtl"] .gallery figcaption { letter-spacing: 0; text-transform: none; font-size: .82rem; }

/* Phone button — the number stays LTR in both languages */
.btn--call { gap: .55rem; }
.btn--call span { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* Contact page picture */
.contact-figure { margin: 0; border: 1px solid var(--line); border-block-start: 3px solid var(--gold); }
.contact-figure img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Full-bleed photographic strip */
.wide-shot { position: relative; overflow: hidden; background: var(--river-ink); isolation: isolate; }
.wide-shot img {
  inline-size: 100%; object-fit: cover; aspect-ratio: 21 / 9;
  filter: saturate(.72) contrast(1.05);
}
@media (max-width: 700px) { .wide-shot img { aspect-ratio: 16 / 10; } }
.wide-shot::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, rgba(6,48,110,.55), rgba(4,25,63,.15) 55%, rgba(168,128,42,.3));
  mix-blend-mode: multiply;
}
[dir="rtl"] .wide-shot::after { background: linear-gradient(255deg, rgba(6,48,110,.55), rgba(4,25,63,.15) 55%, rgba(168,128,42,.3)); }


/* ---- 25. Opening screen ------------------------------------------------
   Shown once per visit. Driven entirely by CSS animation with
   animation-fill-mode: forwards, so it still clears itself if JavaScript is
   unavailable — the site is never left behind a stuck overlay. */
.splash {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; gap: 2.25rem;
  align-content: center;
  background: var(--paper);
  animation: splash-out .55s cubic-bezier(.4, 0, .2, 1) 1.45s forwards;
}
.splash img {
  block-size: min(44vh, 21rem); inline-size: auto;
  animation: splash-in .85s cubic-bezier(.2, .8, .3, 1) both;
}
.splash-bar {
  inline-size: min(11rem, 42vw); block-size: 2px;
  background: var(--line); overflow: hidden; position: relative;
}
.splash-bar::after {
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0;
  inline-size: 100%; background: var(--gold);
  transform-origin: inline-start;
  animation: splash-fill 1.45s cubic-bezier(.3, 0, .2, 1) both;
}
@keyframes splash-in   { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes splash-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes splash-out  { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Returning pages in the same visit, and anyone who prefers less motion */
.no-splash .splash { display: none; }
@media (prefers-reduced-motion: reduce) { .splash { display: none; } }

/* ---- 26. Utilities ------------------------------------------------------ */
[id] { scroll-margin-block-start: 6.5rem; }

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

@media print {
  .site-header, .topbar, .drawer, .cta, .btn { display: none !important; }
  body { color: #000; background: #fff; }
}
