/* C&L website — shared by the Arabic (rtl) and English (ltr) pages; uses logical properties throughout. */
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url(/fonts/tajawal-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url(/fonts/tajawal-arabic-500-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url(/fonts/tajawal-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: "Tajawal"; font-weight: 400; font-display: swap; src: url(/fonts/tajawal-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Tajawal"; font-weight: 500; font-display: swap; src: url(/fonts/tajawal-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Tajawal"; font-weight: 700; font-display: swap; src: url(/fonts/tajawal-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Fira Sans"; font-weight: 300; font-display: swap; src: url(/fonts/fira-sans-latin-300-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 400; font-display: swap; src: url(/fonts/fira-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans"; font-weight: 500; font-display: swap; src: url(/fonts/fira-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 600; font-display: swap; src: url(/fonts/fira-sans-condensed-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Fira Sans Condensed"; font-weight: 700; font-display: swap; src: url(/fonts/fira-sans-condensed-latin-700-normal.woff2) format("woff2"); }

:root {
  --ink: #0d0d0d; --char: #171717; --paper: #f6f3ee; --paper2: #ece7df; --gold: #d9a006; --gold-l: #f0b81c;
  --muted: #7d776c; --line: rgba(0,0,0,.1); --cream: #f3efe7;
  --body: "Fira Sans", "Tajawal", system-ui, sans-serif; --display: "Fira Sans Condensed", "Tajawal", system-ui, sans-serif;
  --r: 14px; --gut: clamp(16px, 4vw, 40px); --sec: clamp(64px, 9vw, 128px);
  color-scheme: light;
}
:lang(ar) { --body: "Tajawal", system-ui, sans-serif; --display: "Tajawal", system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--ink); font: 300 clamp(16px, 1.1vw, 18px)/1.65 var(--body); -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { font-weight: 400; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
:lang(ar) :is(h1, h2, h3) { line-height: 1.35; letter-spacing: 0; }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gut); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 500; }
.skip:focus { top: 12px; }
.kick { font-size: 13px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); display: flex; align-items: center; gap: 12px; margin-block-end: 16px; }
.kick::before { content: ""; width: 28px; height: 2px; background: currentColor; flex: none; }
:lang(ar) .kick { letter-spacing: 0; font-size: 15px; }
.lead { font-size: clamp(17px, 1.4vw, 21px); color: rgba(243,239,231,.78); max-width: 46ch; }
.dim { color: var(--muted); }
.ic { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }
[dir="rtl"] .flip { transform: scaleX(-1); }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 500 16px/1 var(--body); border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-l); }
.btn-ghost { border-color: rgba(243,239,231,.4); color: var(--cream); }
.btn-ghost:hover { border-color: var(--cream); background: rgba(243,239,231,.06); }
.btn-wa { background: #1fa855; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 0 28px; font-size: 17px; }

/* ---------- header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(13,13,13,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.07); color: var(--cream); }
.top-in { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; }
.nav a { opacity: .78; transition: opacity .2s, color .2s; padding-block: 6px; }
.nav a:hover { opacity: 1; color: var(--gold); }
.top-act { display: flex; align-items: center; gap: 14px; }
.lang { font-size: 15px; opacity: .78; padding: 6px 4px; }
.lang:hover { opacity: 1; color: var(--gold); }
.menu-btn { display: none; background: none; border: 0; color: inherit; padding: 8px; cursor: pointer; font-size: 22px; }

/* ---------- hero */
.hero { position: relative; min-height: min(92vh, 880px); display: flex; align-items: center; overflow: hidden; color: var(--cream); background: var(--ink); isolation: isolate; }
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; z-index: -2; }
[dir="rtl"] .hero-art, [dir="rtl"] .contact-art { transform: scaleX(-1); }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, rgba(13,13,13,.97) 0%, rgba(13,13,13,.86) 38%, rgba(13,13,13,.25) 70%, rgba(13,13,13,.1) 100%); }
[dir="rtl"] .hero-shade { background: linear-gradient(to left, rgba(13,13,13,.97) 0%, rgba(13,13,13,.86) 38%, rgba(13,13,13,.25) 70%, rgba(13,13,13,.1) 100%); }
.hero-in { padding-block: clamp(56px, 9vw, 110px); }
.hero-logo { width: clamp(120px, 15vw, 190px); margin-block-end: clamp(28px, 4vw, 44px); }
.hero h1 { font-size: clamp(32px, 4.3vw, 60px); max-width: 21ch; margin-block-end: 22px; color: #fff; }
.hero .lead { margin-block-end: 36px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- sections */
.sec { padding-block: var(--sec); }
.paper { background: var(--paper); }
.paper2 { background: var(--paper2); }
.dark { background: var(--ink); color: var(--cream); }
.dark h2 { color: #fff; }
.h-max { max-width: 20ch; margin-block-end: clamp(36px, 5vw, 64px); }
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-block-end: clamp(32px, 4vw, 52px); flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; border-bottom: 1.5px solid var(--gold); padding-block-end: 4px; }
.more:hover { color: #9c7200; }

.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 6vw, 96px); }
.about .big { font-size: clamp(19px, 1.7vw, 25px); line-height: 1.6; margin-block-end: 40px; }
.vm { max-width: 52ch; padding-inline-start: 20px; border-inline-start: 2px solid var(--gold); }
.vm h3 { font-size: 15px; font-family: var(--body); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9c7200; margin-block-end: 8px; }
:lang(ar) .vm h3 { letter-spacing: 0; font-size: 18px; }
.vm p { color: #4b463e; font-size: 17px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-block-start: clamp(48px, 7vw, 88px); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; border-inline-end: 1px solid var(--line); padding-inline: 0 24px; }
.stat + .stat { padding-inline-start: 24px; }
.stat:last-child { border: 0; }
.stat b { display: block; font: 700 clamp(38px, 4.5vw, 60px)/1 "Fira Sans Condensed", var(--display); color: var(--ink); }
.stat span { display: block; margin-block-start: 10px; color: var(--muted); font-size: 15px; }

.svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; background: var(--char); isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; opacity: .85; }
.svc::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,10,10,.95) 0%, rgba(10,10,10,.7) 38%, rgba(10,10,10,.05) 75%); }
.svc:hover img { transform: scale(1.05); }
.svc-t { position: absolute; inset-inline: 0; bottom: 0; padding: 28px; }
.svc-n { font: 600 14px/1 "Fira Sans Condensed", sans-serif; color: var(--gold); letter-spacing: .1em; }
.svc h3 { font-size: clamp(22px, 2vw, 28px); color: #fff; margin-block: 10px 8px; }
.svc p { font-size: 15px; color: rgba(243,239,231,.75); }

/* ---------- work cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card a { display: block; }
.card-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--paper2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card a:hover .card-img img { transform: scale(1.05); }
.card-n { position: absolute; inset-inline-end: 10px; bottom: 10px; background: rgba(13,13,13,.72); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 99px; backdrop-filter: blur(6px); }
.card-t { padding-block-start: 14px; }
.card-cat { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #9c7200; }
:lang(ar) .card-cat { letter-spacing: 0; font-size: 13px; }
.card h3 { font-size: 20px; margin-block: 4px 2px; }
.card p { font-size: 14px; color: var(--muted); }
.card[hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 36px 40px; }
.chip { font: 500 15px/1 var(--body); padding: 11px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.page-top { padding-block-start: clamp(48px, 7vw, 96px); }
.h-page { font-size: clamp(42px, 6vw, 80px); margin-block-end: 16px; }

/* ---------- clients (logo wall) */
.logos { --cols: 6; --gap: 12px; list-style: none; padding: 0; margin: clamp(32px, 4vw, 52px) 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.logos li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); background: #fff; border-radius: 12px; aspect-ratio: 3 / 2; min-width: 0; padding: clamp(16px, 2vw, 28px) clamp(18px, 2.4vw, 34px); }
.logos img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1); opacity: .72; transition: filter .3s, opacity .3s; }
.logos li:hover img { filter: none; opacity: 1; }

/* ---------- contact */
.contact { position: relative; overflow: hidden; isolation: isolate; }
.contact-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; z-index: -2; opacity: .35; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to right, var(--ink) 30%, rgba(13,13,13,.6)); }
[dir="rtl"] .contact::before { background: linear-gradient(to left, var(--ink) 30%, rgba(13,13,13,.6)); }
.contact-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.contact h2 { margin-block-end: 18px; }
.city { margin-block-start: 24px; color: rgba(243,239,231,.55); font-size: 15px; }
.cl-list { display: grid; gap: 12px; }
.cl-row { display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--r); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); transition: background .2s, border-color .2s; }
.cl-row:hover { background: rgba(217,160,6,.12); border-color: rgba(217,160,6,.5); }
.cl-row .ic { width: 26px; height: 26px; color: var(--gold); }
.cl-row small { display: block; font-size: 13px; color: rgba(243,239,231,.55); }
.cl-row b { font-weight: 500; font-size: clamp(18px, 1.6vw, 22px); color: #fff; }
.cl-row:first-child { background: var(--gold); border-color: var(--gold); }
.cl-row:first-child .ic, .cl-row:first-child b { color: var(--ink); }
.cl-row:first-child small { color: rgba(13,13,13,.65); }
.cl-row:first-child:hover { background: var(--gold-l); }

.nf { min-height: 70vh; display: flex; align-items: center; }
.nf .lead { margin-block-end: 12px; }
.nf .cta { margin-block-start: 28px; }

/* ---------- footer */
.foot { background: #080808; color: rgba(243,239,231,.6); padding-block: 48px; font-size: 15px; border-top: 1px solid rgba(255,255,255,.06); }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 18px 40px; align-items: center; }
.foot img { height: 58px; width: auto; }
.foot a:hover { color: var(--gold); }
.foot-social { display: flex; gap: 14px; }
.foot-social .ic { width: 22px; height: 22px; }
.copy { grid-column: 1 / -1; padding-block-start: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }

/* ---------- mobile call bar */
.callbar { display: none; }

/* ---------- lightbox */
.lb { border: 0; padding: 0; margin: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(8,8,8,.96); color: #fff; }
.lb::backdrop { background: rgba(8,8,8,.9); }
.lb[open] { display: flex; align-items: center; justify-content: center; }
.lb figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb img { max-width: 92vw; max-height: 80dvh; width: auto; height: auto; border-radius: 8px; object-fit: contain; }
.lb figcaption { font-size: 15px; color: rgba(255,255,255,.7); text-align: center; }
.lb button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255,255,255,.18); }
.lb button .ic { width: 24px; height: 24px; }
.lb-x { top: 16px; inset-inline-end: 16px; }
.lb-p, .lb-n { top: 50%; translate: 0 -50%; }
.lb-p { inset-inline-start: 16px; }
.lb-n { inset-inline-end: 16px; }
.lb-p .ic { transform: scaleX(-1); }
[dir="rtl"] .lb-p .ic { transform: none; }
[dir="rtl"] .lb-n .ic { transform: scaleX(-1); }
.lb.single .lb-p, .lb.single .lb-n { display: none; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .nav { gap: 18px; }
}
@media (max-width: 900px) {
  .nav { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 0; background: rgba(13,13,13,.97); padding: 8px var(--gut) 20px; border-bottom: 1px solid rgba(255,255,255,.08); margin: 0; font-size: 18px; }
  .nav.open { display: flex; }
  .nav a { padding-block: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .top-act { margin-inline-start: auto; }
  .menu-btn { display: grid; }
  .about, .contact-in { grid-template-columns: 1fr; }
  .svcs { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat + .stat { padding-inline: 0 16px; border: 0; }
  .stat:nth-child(even) { padding-inline-start: 16px; border-inline-start: 1px solid var(--line); }
  .logos { --cols: 4; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(to top, rgba(13,13,13,.98) 0%, rgba(13,13,13,.88) 55%, rgba(13,13,13,.55) 100%); }
}
@media (max-width: 640px) {
  .top-act .btn-sm { display: none; }
  .top-in { height: 64px; }
  .nav { top: 64px; }
  .brand img { height: 40px; }
  .svcs, .cards { grid-template-columns: 1fr; }
  .logos { --cols: 3; --gap: 8px; }
  .logos li { padding: 12px 14px; }
  .svc { aspect-ratio: 5 / 4; }
  .hero { min-height: auto; }
  .hero-art { object-position: 70% 50%; }
  .cta .btn { width: 100%; }
  .foot-in { grid-template-columns: 1fr; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .callbar { display: flex; gap: 10px; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(13,13,13,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid rgba(255,255,255,.08); }
  .callbar .btn { flex: 1; min-height: 52px; }
  .stat b { font-size: 40px; }
}
