﻿/* ============================================================
   OFOQ AlNajah â€” Global Stylesheet  (v2 Â· editorial redesign)
   Palette from logo: deep navy #12226D Â· brass gold Â· warm paper
   Display serif: Fraunces (EN) / Cairo (AR)
   ============================================================ */

:root {
  /* Navy scale */
  --navy-950: #0A1440;
  --navy-900: #0C1A4E;
  --navy:     #12226D;
  --navy-700: #1D2E86;
  --navy-600: #2A3EA0;

  /* Gold â€” deeper brass for a richer, less "light" feel */
  --gold:        #C99A38;
  --gold-bright: #E6C46A;
  --gold-deep:   #A67C2A;
  --gold-text:   #7C5C16; /* AA-compliant gold for small text on light surfaces */

  /* Warm light surfaces (no stark white) */
  --paper:   #FBF8F1;
  --cream:   #F0EADC;
  --cream-2: #EAE2D0;

  --ink:   #171B33;
  --muted: #565B75;
  --line:  #E4DECF;
  --line-navy: rgba(255,255,255,.12);

  /* Effects */
  --shadow-sm: 0 3px 14px rgba(12,26,78,.07);
  --shadow-md: 0 16px 40px rgba(12,26,78,.12);
  --shadow-lg: 0 34px 80px rgba(10,20,64,.22);
  --shadow-gold: 0 14px 30px rgba(166,124,42,.32);

  --radius:    12px;
  --radius-lg: 20px;
  --radius-sm: 8px;

  --maxw: 1200px;
  --header-h: 78px;

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-ui:   'Inter', system-ui, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

html[lang="ar"] {
  --font-display: 'Cairo', system-ui, sans-serif;
  --font-body:    'Cairo', system-ui, sans-serif;
  --font-ui:      'Cairo', system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* scroll-padding keeps anchor targets (and the skip link) clear of the sticky header */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-padding-top: var(--header-h); }
body {
  margin: 0; font-family: var(--font-body); color: var(--ink);
  background: var(--paper); line-height: 1.7; font-size: 17px;
  overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; color: var(--navy); font-weight: 600; letter-spacing: -.015em; }
/* Arabic sits taller than Latin â€” 1.1 crowds the tashkeel once a heading wraps */
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { letter-spacing: 0; font-weight: 700; line-height: 1.35; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--gold); color: var(--navy-950); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }
.container-narrow { max-width: 860px; }

/* Film-grain texture for dark surfaces */
.grain { position: relative; }
.grain::after, .hero::after, .page-hero::after, .feature-media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: overlay; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

/* ---------- Eyebrow / kicker ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-ui); font-weight: 600; font-size: .74rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 1.1rem;
}
.kicker::before { content: ""; width: 26px; height: 1.5px; background: var(--gold); display: inline-block; }
.section-navy .kicker, .hero .kicker, .page-hero .kicker { color: var(--gold-bright); }
html[lang="ar"] .kicker { letter-spacing: .06em; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-ui); font-weight: 600;
  font-size: .96rem; letter-spacing: .01em; padding: .9rem 1.7rem; border-radius: 4px; border: 1.5px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s, border-color .3s;
  /* NOT nowrap: a long label sets the min-width of its grid track, which pushed whole
     sections past the viewport on narrow phones â€” and overflow-x:hidden hid the evidence. */
  white-space: normal; text-align: center; max-width: 100%;
}
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 58%, var(--gold-deep) 100%); color: var(--navy-950); box-shadow: var(--shadow-gold), inset 0 1px 0 rgba(255,255,255,.4); }
.btn-gold:hover { background: linear-gradient(180deg, #f2d98d 0%, var(--gold-bright) 100%); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-outline { border-color: var(--gold-deep); color: var(--gold-text); background: transparent; }
.btn-outline:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); }
.btn-outline-white { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-outline-white:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }
.btn-ghost { padding-inline: 0; color: var(--gold-text); border: 0; position: relative; }
.btn-ghost::after { content:""; position:absolute; inset-inline: 0; bottom: 2px; height: 1.5px; background: currentColor; transform: scaleX(.4); transform-origin: inline-start; opacity:.5; transition: transform .3s var(--ease), opacity .3s; }
.btn-ghost:hover::after { transform: scaleX(1); opacity: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(10,20,64,.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-navy); transition: background .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(10,20,64,.96); box-shadow: 0 10px 30px rgba(10,20,64,.4); }
.nav { max-width: var(--maxw); margin-inline: auto; height: var(--header-h); display: flex; align-items: center; justify-content: space-between; padding-inline: 26px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 44px; width: auto; border-radius: 7px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--font-display); color: #fff; font-size: 1.2rem; letter-spacing: .02em; font-weight: 600; }
.brand-txt span { color: var(--gold-bright); font-size: .6rem; letter-spacing: .34em; text-transform: uppercase; margin-top: 4px; }
html[lang="ar"] .brand-txt span { letter-spacing: .1em; }

.nav-links { display: flex; align-items: center; gap: .1rem; }
.nav-links a { color: rgba(255,255,255,.78); font-family: var(--font-ui); font-weight: 500; font-size: .92rem; padding: .55rem .8rem; position: relative; transition: color .2s; }
.nav-links a::after { content: ""; position: absolute; inset-inline-start: .8rem; bottom: 8px; width: 0; height: 1.5px; background: var(--gold); transition: width .28s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: calc(100% - 1.6rem); }
.nav-right { display: flex; align-items: center; gap: .9rem; }
.lang-toggle { background: transparent; color: #fff; border: 1px solid var(--line-navy); border-radius: 4px; padding: .45rem .8rem; font-family: var(--font-ui); font-weight: 600; font-size: .78rem; letter-spacing: .08em; transition: all .2s; }
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }
.nav-cta { display: inline-flex; }
.menu-cta { display: none; }
.hamburger { display: none; background: transparent; border: 0; width: 42px; height: 42px; padding: 9px; flex-direction: column; justify-content: center; gap: 5px; }
.hamburger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: .3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Ticker ---------- */
.ticker { background: var(--navy-950); border-bottom: 1px solid var(--line-navy); overflow: hidden; }
.ticker-track { display: inline-flex; align-items: center; white-space: nowrap; animation: ticker 34s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 1.4rem; padding: 13px 0; }
.ticker-item > span { font-family: var(--font-ui); font-weight: 500; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.66); padding-inline: 1.4rem; }
html[lang="ar"] .ticker-item > span { letter-spacing: .02em; font-size: .82rem; }
.ticker-item i { width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); display: inline-block; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
html[dir="rtl"] .ticker-track { animation-direction: reverse; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(155deg, var(--navy) 0%, var(--navy-950) 92%); padding: clamp(70px,11vw,124px) 0 clamp(80px,11vw,130px); }
.hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 520px at 80% -5%, rgba(42,62,160,.55), transparent 60%); pointer-events: none; }
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); align-items: center; gap: 48px; }
.hero h1 { color: #fff; font-size: clamp(2.5rem, 6vw, 4.3rem); font-weight: 500; line-height: 1.04; margin-bottom: 1.3rem; }
.hero h1 .g { color: var(--gold-bright); font-style: italic; }
html[lang="ar"] .hero h1 .g { font-style: normal; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.24rem); color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 2.2rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-rule { width: 60px; height: 2px; background: var(--gold); margin-bottom: 2rem; opacity: .9; }
.hero-stats { display: flex; gap: 2.6rem; margin-top: 3rem; flex-wrap: wrap; padding-top: 2rem; border-top: 1px solid var(--line-navy); }
.hero-stats .stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; color: var(--gold-bright); line-height: 1; font-weight: 500; }
.hero-stats .stat span { font-size: .82rem; color: rgba(255,255,255,.62); letter-spacing: .04em; margin-top: 6px; display: block; }
.hero-art { display: flex; justify-content: center; }
.hero-svg { width: 100%; max-width: 470px; height: auto; filter: drop-shadow(0 20px 44px rgba(166,124,42,.28)); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); } }
.hero-sun-glow { transform-box: fill-box; transform-origin: center; animation: sunpulse 5s ease-in-out infinite; }
@keyframes sunpulse { 0%,100%{ opacity: .8; transform: scale(1); } 50%{ opacity: 1; transform: scale(1.06); } }
.skyline { transform-box: fill-box; transform-origin: 50% 100%; animation: skylineRise 1.1s var(--ease) .15s both; }
@keyframes skylineRise { from{ transform: scaleY(0); opacity: 0; } to{ transform: scaleY(1); opacity: 1; } }
@media (max-width: 900px){ .hero-grid { grid-template-columns: minmax(0,1fr);} .hero-art { display: none; } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--cream); }
.section-navy { background: var(--navy-900); color: #fff; position: relative; }
.section-navy::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(650px 420px at 88% 12%, rgba(230,196,106,.12), transparent 62%); }
.section-navy > .container { position: relative; z-index: 1; }
.section-deep { background: var(--navy-950); color: #fff; }
.section-navy h2, .section-navy h3, .section-deep h2, .section-deep h3 { color: #fff; }
.section-navy .card:not(.card-gold) h3, .section-deep .card:not(.card-gold) h3 { color: var(--navy); }

.section-head { max-width: 730px; margin: 0 auto clamp(42px,5vw,64px); text-align: center; }
.section-head .kicker { justify-content: center; }
.section-head.left { text-align: start; margin-inline: 0; }
.section-head.left .kicker { justify-content: flex-start; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.85rem); font-weight: 600; text-wrap: balance; }
.section-head p { color: var(--muted); font-size: 1.1rem; margin-top: .4rem; text-wrap: balance; }
.section-navy .section-head p, .section-deep .section-head p { color: rgba(255,255,255,.78); }
.sec-index { font-family: var(--font-display); font-size: 1rem; color: var(--gold-deep); letter-spacing: .1em; display: block; margin-bottom: 1rem; }
.section-navy .sec-index, .section-deep .sec-index { color: var(--gold-bright); }

.divider { display: flex; align-items: center; gap: 10px; margin-top: 1.4rem; justify-content: center; }
.section-head.left .divider { justify-content: flex-start; }
.divider span { height: 1.5px; width: 40px; background: var(--gold); }
.divider i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); display: block; }

/* ---------- Grids / cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2,1fr); }
.grid-3 { grid-template-columns: repeat(3,1fr); }
.grid-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 980px){ .grid-3,.grid-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px){ .grid-2,.grid-3,.grid-4 { grid-template-columns: minmax(0,1fr);} }

.card {
  --c-index: "";
  background: linear-gradient(180deg, #ffffff 0%, #fdfbf5 100%); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 38px 32px; box-shadow: 0 4px 18px rgba(12,26,78,.05); position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.card::before { content: ""; position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 3px; height: 46px; background: var(--gold); opacity: 0; transition: opacity .35s, height .35s var(--ease); }
.card:hover { transform: translateY(-7px); box-shadow: 0 26px 52px rgba(12,26,78,.15), 0 0 0 1px rgba(201,154,56,.32); border-color: rgba(201,154,56,.4); }
.card:hover::before { opacity: 1; height: 100%; }
.card h3 { font-size: 1.32rem; margin-bottom: .55rem; font-weight: 600; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .99rem; line-height: 1.7; }
.card .idx { position: absolute; inset-block-start: 26px; inset-inline-end: 30px; font-family: var(--font-display); font-size: 1rem; color: var(--line); font-weight: 600; }
.icon-badge { width: 60px; height: 60px; border-radius: 15px; display: grid; place-items: center; background: linear-gradient(150deg, var(--navy-700) 0%, var(--navy-950) 100%); color: var(--gold-bright); margin-bottom: 22px; box-shadow: 0 14px 26px rgba(18,34,109,.30), inset 0 1px 0 rgba(255,255,255,.14); border: 1px solid rgba(230,196,106,.18); }
.icon-badge svg { width: 28px; height: 28px; }
.card-gold { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); border-color: transparent; }
.card-gold h3 { color: #fff; }
.card-gold p { color: rgba(255,255,255,.8); }
.card-gold .icon-badge { background: var(--gold); color: var(--navy-950); }
.card-gold .idx { color: rgba(255,255,255,.22); }
.card-gold:hover::before { background: var(--gold-bright); }

/* Feature (editorial two-column) */
.feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(34px,5vw,72px); align-items: center; }
.feature.reverse .feature-media { order: 2; }
@media (max-width: 880px){ .feature { grid-template-columns: minmax(0,1fr);} .feature.reverse .feature-media { order: 0; } }
.feature h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
.feature-media { position: relative; border-radius: var(--radius-lg); background: radial-gradient(130% 120% at 28% 18%, var(--navy-700) 0%, var(--navy-950) 68%); min-height: 360px; display: grid; place-items: center; color: var(--gold-bright); box-shadow: var(--shadow-lg); overflow: hidden; }
.feature-media::before { content: ""; position: absolute; width: 290px; height: 290px; border-radius: 50%; border: 1px solid rgba(230,196,106,.30); box-shadow: 0 0 0 32px rgba(230,196,106,.07), 0 0 0 66px rgba(230,196,106,.045), 0 0 0 104px rgba(230,196,106,.022), 0 0 90px rgba(230,196,106,.15); }
.feature-media svg { position: relative; z-index: 1; filter: drop-shadow(0 0 26px rgba(230,196,106,.42)); }
.lead { font-size: 1.16rem; color: var(--muted); line-height: 1.75; }
.section-navy .lead, .section-deep .lead { color: rgba(255,255,255,.82); }

.check-list li { position: relative; padding-inline-start: 2rem; margin-bottom: .95rem; color: var(--ink); }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); }
.section-navy .check-list li, .section-deep .check-list li { color: rgba(255,255,255,.9); }

/* Editorial numbered list (values / de-templated blocks) */
.list-editorial { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 clamp(30px,5vw,64px); }
@media (max-width: 720px){ .list-editorial { grid-template-columns: minmax(0,1fr);} }
.list-editorial li { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
.list-editorial .n { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-deep); font-weight: 600; line-height: 1; padding-top: 4px; }
.list-editorial h3 { font-size: 1.28rem; margin-bottom: .3rem; }
.list-editorial p { color: var(--muted); margin: 0; font-size: .98rem; }
.section-navy .list-editorial li, .section-deep .list-editorial li { border-color: var(--line-navy); }
.section-navy .list-editorial p, .section-deep .list-editorial p { color: rgba(255,255,255,.75); }
.section-navy .list-editorial .n, .section-deep .list-editorial .n { color: var(--gold-bright); }

/* Pull-quote / manifesto */
.pullquote { position: relative; text-align: center; max-width: 900px; margin-inline: auto; }
.pullquote .mark { font-family: var(--font-display); font-size: 5rem; line-height: .6; color: var(--gold); opacity: .5; display: block; margin-bottom: 1rem; }
.pullquote blockquote { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.32; color: #fff; letter-spacing: -.01em; }
.pullquote blockquote em { color: var(--gold-bright); font-style: italic; }
html[lang="ar"] .pullquote blockquote em { font-style: normal; }
.pullquote cite { display: block; margin-top: 1.6rem; font-family: var(--font-ui); font-style: normal; font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.6); }
html[lang="ar"] .pullquote cite { letter-spacing: 0; font-size: .95rem; text-transform: none; }

/* Steps (process) */
.step-index { font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; color: var(--gold-deep); line-height: 1; margin-bottom: 14px; display: block; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-950) 100%); color: #fff; border-radius: var(--radius-lg); padding: clamp(48px,6vw,76px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(560px 300px at 82% 120%, rgba(230,196,106,.20), transparent 62%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem,3.8vw,2.7rem); font-weight: 500; text-wrap: balance; }
/* balance stops the last line dropping to a single orphan word */
.cta-band p { color: rgba(255,255,255,.82); max-width: 620px; margin-inline: auto; margin-bottom: 2.2rem; text-wrap: balance; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--navy) 0%, var(--navy-950) 100%); color: #fff; padding: clamp(64px,9vw,104px) 0 clamp(56px,8vw,84px); text-align: center; }
.page-hero::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 50% -10%, rgba(42,62,160,.5), transparent 62%); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero .kicker { justify-content: center; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem,5vw,3.5rem); font-weight: 500; }
.page-hero p { color: rgba(255,255,255,.8); max-width: 600px; margin-inline: auto; font-size: 1.12rem; }
.breadcrumb { color: rgba(255,255,255,.55); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.2rem; }
/* Arabic is cursive â€” positive letter-spacing prises the joined letterforms apart */
html[lang="ar"] .breadcrumb { letter-spacing: 0; font-size: .92rem; text-transform: none; }
/* the link needs to look like a link without relying on hover (no hover on touch) */
.breadcrumb a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.breadcrumb a:hover { color: var(--gold-bright); }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); background: transparent; transition: border-color .25s; }
.faq-item.open { border-color: var(--gold); }
.faq-q { width: 100%; text-align: start; background: transparent; border: 0; padding: 26px 4px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q .ic { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-deep); display: grid; place-items: center; font-size: 1.3rem; transition: transform .3s, background .3s, color .3s; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); background: var(--gold); color: var(--navy-950); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
/* Without JS the accordion can never open, so the answers must not be collapsed */
html:not(.js) .faq-a { max-height: none; }
.faq-a p { padding: 0 4px 26px; color: var(--muted); margin: 0; font-size: 1.02rem; }

/* ---------- Forms ---------- */
.form-wrap { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: clamp(30px,5vw,64px); }
@media (max-width: 880px){ .form-wrap { grid-template-columns: minmax(0,1fr);} }
.form { display: grid; gap: 18px; }
.field label { display: block; font-family: var(--font-ui); font-weight: 600; font-size: .82rem; letter-spacing: .04em; color: var(--navy); margin-bottom: .5rem; text-transform: uppercase; }
.field input, .field select, .field textarea { width: 100%; padding: .95rem 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s; }
/* Gold border + glow is decoration only — it measures ~2.5:1, under the 3:1 WCAG
   floor — so the real focus ring must survive rather than be switched off here. */
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,154,56,.16); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-msg { padding: .95rem 1.1rem; border-radius: var(--radius-sm); font-size: .95rem; display: none; }
.form-msg.ok { display: block; background: rgba(46,150,86,.1); color: #1c7a44; border: 1px solid rgba(46,150,86,.3); }
.form-msg.err { display: block; background: rgba(198,60,60,.09); color: #a83232; border: 1px solid rgba(198,60,60,.28); }

.contact-info { display: grid; gap: 16px; align-content: start; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .25s, transform .25s; }
.contact-card:hover { border-color: var(--gold); transform: translateY(-3px); }
.contact-card .ic { width: 46px; height: 46px; flex: none; border-radius: 11px; background: var(--navy); color: var(--gold-bright); display: grid; place-items: center; }
.contact-card .ic svg { width: 21px; height: 21px; }
.contact-card b { display: block; font-family: var(--font-display); color: var(--navy); font-size: 1.05rem; margin-bottom: 2px; }
.contact-card span, .contact-card a { color: var(--muted); font-size: .96rem; }
.contact-card a:hover { color: var(--gold-text); }
/* Long unbreakable strings (the email) otherwise set the grid track's min-width */
.contact-card a, .contact-card span, .footer-col a, .phone-list a { overflow-wrap: anywhere; }
/* Several numbers under one card â€” each labelled with its country */
.phone-list { display: grid; gap: 5px; margin-top: 3px; }
.phone-list a { display: flex; align-items: baseline; gap: 9px; }
.phone-list em { font-style: normal; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); min-width: 62px; }
html[lang="ar"] .phone-list em { letter-spacing: 0; font-size: .82rem; }

/* ---------- Licence / registration table ---------- */
.legal-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: linear-gradient(180deg,#ffffff 0%,#fdfbf5 100%); box-shadow: 0 4px 18px rgba(12,26,78,.05); }
.legal-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: 10px 26px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.legal-row:last-child { border-bottom: 0; }
.legal-row:nth-child(even) { background: rgba(240,234,220,.34); }
.legal-table dt { font-family: var(--font-ui); font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); align-self: center; }
html[lang="ar"] .legal-table dt { letter-spacing: 0; font-size: .92rem; }
/* margin:0 kills the UA's 40px dd indent, which resolves against each dd's OWN dir —
   so LTR values (numbers, the Latin name) indented opposite the Arabic ones. */
.legal-table dd { margin: 0; color: var(--navy); font-size: 1rem; line-height: 1.6; align-self: center; overflow-wrap: anywhere; }
.legal-table dd b { font-family: var(--font-display); font-size: 1.22rem; letter-spacing: .02em; }
@media (max-width: 620px){
  .legal-row { grid-template-columns: minmax(0,1fr);gap: 4px; padding: 15px 18px; }
  .legal-table dd { font-size: .98rem; }
}
/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 34px; max-width: 900px; margin-inline: auto; }
@media (max-width: 720px){ .team { grid-template-columns: minmax(0,1fr);gap: 26px; } }
.team-card { background: linear-gradient(180deg,#ffffff 0%,#fdfbf5 100%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 18px rgba(12,26,78,.05); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.team-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 26px 52px rgba(12,26,78,.15), 0 0 0 1px rgba(201,154,56,.32); }
.team-photo { position: relative; aspect-ratio: 5 / 6; background: var(--cream); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; display: block; transition: transform .6s var(--ease); }
.team-card:hover .team-photo img { transform: scale(1.04); }
/* whisper of a navy wash at the foot of the portrait, so it settles into the card */
.team-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,20,64,0) 68%, rgba(10,20,64,.14) 100%); pointer-events: none; }
.team-body { padding: 22px 24px 26px; }
.team-body h3 { font-size: 1.28rem; color: var(--navy); margin-bottom: 3px; }
.team-role { display: block; font-family: var(--font-ui); font-size: .74rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); margin-bottom: .8rem; }
html[lang="ar"] .team-role { letter-spacing: .02em; font-size: .88rem; }
.team-body p { font-size: .95rem; line-height: 1.75; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--navy-950); color: rgba(255,255,255,.66); padding: clamp(56px,7vw,84px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 48px; }
@media (max-width: 860px){ .footer-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 34px; } }
@media (max-width: 520px){ .footer-grid { grid-template-columns: minmax(0,1fr);} }
.footer-brand img { height: 52px; border-radius: 9px; margin-bottom: 16px; }
.footer-brand p { font-size: .94rem; max-width: 310px; line-height: 1.7; }
.footer-tag { font-family: var(--font-display); font-style: italic; color: var(--gold-bright); font-size: 1.02rem; margin-top: 6px; }
html[lang="ar"] .footer-tag { font-style: normal; }
.footer-col h3 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1.3rem; font-family: var(--font-ui); font-weight: 600; }
html[lang="ar"] .footer-col h3 { letter-spacing: .04em; }
.footer-col a, .footer-col li { color: rgba(255,255,255,.64); font-size: .95rem; margin-bottom: .7rem; display: block; transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--gold-bright); padding-inline-start: 5px; }
.social { display: flex; gap: 12px; margin-top: 8px; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-navy); display: grid; place-items: center; color: rgba(255,255,255,.8); transition: all .25s; }
.social a:hover { background: var(--gold); color: var(--navy-950); border-color: var(--gold); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid var(--line-navy); padding: 24px 0; font-size: .84rem; color: rgba(255,255,255,.5); letter-spacing: .02em; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 20px; text-align: center; }
.footer-bottom .footer-licence { color: rgba(255,255,255,.62); transition: color .2s; }
.footer-bottom .footer-licence:hover { color: var(--gold-bright); }
@media (max-width: 520px){ .footer-bottom { flex-direction: column; gap: 8px; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; inset-block-end: 26px; inset-inline-end: 26px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .25s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 29px; height: 29px; }

/* ---------- Reveal ---------- */
.reveal { transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce){
  html { scroll-behavior: auto; }
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-svg, .ticker-track { animation: none !important; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Mobile nav ---------- */
/* 1060px, not 940 — the English nav needs ~1045px, so between those widths
   "Commodities & Timing" wrapped to a second line inside the fixed-height header. */
@media (max-width: 1060px) {
  /* Off-canvas menu is position:fixed inside the header; backdrop-filter on the header
     would make it a containing block and trap the menu. Drop it on mobile. */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--navy-950); }
  .hamburger { display: flex; }
  .nav-links { position: fixed; inset-block-start: var(--header-h); inset-inline: 0; inset-block-end: 0; background: var(--navy-950); flex-direction: column; align-items: stretch; gap: 0; padding: 22px; transform: translateX(100%); visibility: hidden; transition: transform .35s var(--ease), visibility .35s; overflow-y: auto; }
  html[dir="rtl"] .nav-links { transform: translateX(-100%); }
  .nav-links.open { transform: translateX(0); visibility: visible; }
  .nav-links a { padding: 17px 8px; font-size: 1.15rem; border-bottom: 1px solid var(--line-navy); }
  .nav-links a::after { display: none; }
  .nav-cta { display: none; }
  .menu-cta { display: inline-flex; justify-content: center; margin-top: 20px; }
}

/* ---------- Pills / utilities ---------- */
.pill { display:inline-block; background: rgba(124,92,22,.12); color: var(--gold-text); font-family: var(--font-ui); font-weight: 600; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border-radius: 3px; margin-bottom: 18px; }
html[lang="ar"] .pill { letter-spacing: .02em; font-size: .8rem; }
.card-gold .pill { background: rgba(230,196,106,.16); color: var(--gold-bright); }
.text-center { text-align: center; }
.hide { display: none !important; }
.mt { margin-top: 2rem; }

/* ---------- Focus visibility (WCAG 2.4.7) ---------- */
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible,
.section-navy :focus-visible, .section-deep :focus-visible, .cta-band :focus-visible, .ticker :focus-visible
{ outline-color: var(--gold-bright); }
/* Gold on the green button / paper behind it is ~1.2:1 — keep the navy ring there. */
.wa-float:focus-visible { outline-color: var(--navy); }
/* White cards inside navy sections need a dark ring, not the section's gold one. */
.section-navy .card :focus-visible, .section-deep .card :focus-visible { outline-color: var(--navy); }
/* Focusing <main> via the skip link would otherwise ring the whole page. */
#main:focus-visible { outline: none; }

/* ---------- Skip link (a11y) ---------- */
.skip-link { position: absolute; inset-inline-start: 12px; top: -70px; z-index: 200; background: var(--gold); color: var(--navy-950); padding: .75rem 1.15rem; border-radius: 6px; font-family: var(--font-ui); font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-md); transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }
