/*
Theme Name: Mopi Production
Theme URI: https://www.mopi-production.com
Author: Mopi Production
Description: Bilingual (English / Arabic, RTL) theme for Mopi Production - exhibition booths, events and brand activations. Every text, image, colour and project is managed from Mopi Theme in the WordPress admin.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mopi-production
*/
/* ==========================================================================
   Mopi Production — styles
   Brand: orange #F59C1F, ink #080907 (sampled from the logo).
   Uses logical properties throughout so the same CSS serves LTR (EN) and RTL (AR).
   ========================================================================== */

:root {
  --orange: #F59C1F;
  --orange-ink: #E58A08;        /* orange for large text on light backgrounds */
  --orange-soft: #FEF3E1;
  --ink: #0B0C0A;
  --ink-2: #141513;
  --ink-3: #1C1D1A;
  --text: #0B0C0A;
  --muted: #5E6570;
  --line: #E7E8EC;
  --soft: #F7F8FA;
  --white: #fff;

  --f-body: "Inter", "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-head: "Montserrat", "Cairo", "Inter", system-ui, sans-serif;

  --r: 18px;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --header-h: 76px;
  --sec-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:lang(ar) { --f-body: "Cairo", "Inter", system-ui, sans-serif; --f-head: "Cairo", "Montserrat", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--f-body); font-size: 1rem; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.skip { position: fixed; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--orange); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }

.ic { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[dir="rtl"] .flip { transform: scaleX(-1); }
.hl { color: var(--orange-ink); }

/* Arabic must never be letter-spaced or upper-cased (breaks letter joining). */
:lang(ar) * { letter-spacing: 0 !important; text-transform: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1.2; transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn-primary { background: var(--orange); color: var(--ink); box-shadow: 0 8px 24px -10px color-mix(in srgb, var(--orange) 70%, transparent); }
.btn-primary:hover { background: color-mix(in srgb, var(--orange), #fff 18%); transform: translateY(-2px); }
.btn-primary:hover .ic { transform: translateX(3px); }
[dir="rtl"] .btn-primary:hover .ic { transform: scaleX(-1) translateX(3px); }
.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-lg { padding: 15px 28px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 100; height: var(--header-h); background: color-mix(in srgb, var(--ink) 72%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); transition: background .3s, box-shadow .3s; }
.site-header.scrolled { background: color-mix(in srgb, var(--ink) 94%, transparent); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { height: 38px; width: auto; }
.brand-word { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); margin-inline-start: auto; color: rgba(255,255,255,.82); font-size: .93rem; font-weight: 500; }
.nav a:not(.btn) { position: relative; padding: 6px 0; transition: color .2s; }
.nav a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease); }
[dir="rtl"] .nav a:not(.btn)::after { transform-origin: right; }
.nav a:not(.btn):hover, .nav a.active { color: #fff; }
.nav a:not(.btn):hover::after, .nav a.active::after { transform: scaleX(1); }
.nav-cta { padding: 10px 20px; margin-inline-start: 6px; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-btn { background: transparent; border: 1.5px solid rgba(255,255,255,.28); color: #fff; padding: 7px 16px; border-radius: 999px; font-weight: 600; font-size: .88rem; transition: border-color .2s, color .2s; }
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }
.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: transparent; border: 1.5px solid rgba(255,255,255,.28); color: #fff; border-radius: 12px; }
.burger .ic { width: 22px; height: 22px; }
.burger .ic-close { display: none; }
.burger[aria-expanded="true"] .ic-menu { display: none; }
.burger[aria-expanded="true"] .ic-close { display: block; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: #8B919C; margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 44px; height: 3px; border-radius: 2px; background: var(--orange); flex: none; }
.eyebrow-light { color: rgba(255,255,255,.62); }
:lang(ar) .eyebrow { font-size: .95rem; font-weight: 600; }
.h2 { font-family: var(--f-head); font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.08; letter-spacing: -.02em; }
:lang(ar) .h2 { line-height: 1.3; }
.h2-xl { font-size: clamp(2.2rem, 5vw, 3.9rem); }
.lead { color: var(--muted); font-size: 1.05rem; max-width: 46ch; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--sec-y); }
.section-soft { background: var(--soft); }
.section-dark { background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.section-dark .h2 { color: #fff; }
.section-dark .hl, .hero .hl, .contact .hl { color: var(--orange); }
.sec-head { margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head-split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.dark-mark { position: absolute; z-index: -1; width: min(60vw, 720px); inset-inline-end: -8%; top: -6%; opacity: .045; pointer-events: none; }

/* Signature corner brackets (from the profile's photo frames) */
.frame { position: relative; }
.frame::after { content: ""; position: absolute; inset: -12px; pointer-events: none; --c: var(--orange); --l: 28px; --t: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding-top: var(--header-h); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 70% at 65% 45%, #000, transparent 75%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(700px 420px at 8% 100%, color-mix(in srgb, var(--orange) 16%, transparent), transparent 70%); }
.hero-mark { position: absolute; z-index: -1; width: min(70vw, 820px); inset-inline-end: -10%; top: 4%; opacity: .045; pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: clamp(32px, 5vw, 72px); min-height: min(820px, calc(100svh - var(--header-h) - 64px)); padding-block: clamp(40px, 6vw, 80px); }
.hero h1 { font-family: var(--f-head); font-weight: 800; text-transform: uppercase; line-height: 1.02; letter-spacing: -.02em; font-size: clamp(2.5rem, 6.2vw, 5.3rem); }
.hero h1 > span { display: block; }
.h1-l3 { text-transform: none; font-size: .62em; font-weight: 700; letter-spacing: -.01em; margin-top: .22em; }
:lang(ar) .hero h1 { line-height: 1.22; }
.hero-p { margin-top: 26px; max-width: 52ch; font-size: clamp(1rem, 1.5vw, 1.15rem); color: rgba(255,255,255,.74); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-visual { position: relative; aspect-ratio: 1 / .95; width: 100%; max-width: 620px; margin-inline-start: auto; }
.hv-main { position: absolute; inset: 0 0 14% 12%; margin: 12px; background: var(--ink-3); border-radius: 4px; }
[dir="rtl"] .hv-main { inset: 0 12% 14% 0; }
.hv-slides, .hv-slide, .hv-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hv-slides { overflow: hidden; border-radius: 4px; }
.hv-slide { opacity: 0; transition: opacity 1s ease; }
.hv-slide.on { opacity: 1; }
.hv-slide > img { object-fit: cover; transform: scale(1.06); transition: transform 6s linear; }
.hv-slide.on > img { transform: scale(1); }
.hv-chip { position: absolute; inset-inline-end: 14px; bottom: 14px; display: inline-flex; flex-direction: column; gap: 1px; padding: 10px 16px; background: color-mix(in srgb, var(--ink) 82%, transparent); backdrop-filter: blur(8px); border-inline-start: 3px solid var(--orange); border-radius: 6px; font-size: .78rem; color: rgba(255,255,255,.7); z-index: 2; }
.hv-chip b { color: #fff; font-size: .98rem; font-weight: 700; }
.hv-small { position: absolute; inset-inline-start: 0; bottom: 0; width: 38%; aspect-ratio: 1; border: 6px solid var(--ink); background: var(--ink); box-shadow: 0 24px 50px -20px rgba(0,0,0,.8); margin: 12px; }
.hv-small::after { inset: -18px; --l: 22px; }
.hv-small img { width: 100%; height: 100%; object-fit: cover; }

.marquee { background: var(--orange); color: var(--ink); overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
[dir="rtl"] .marquee-track { animation-name: marquee-rtl; }
.marquee-track > span { display: inline-flex; align-items: center; gap: 32px; padding-block: 20px; padding-inline-end: 32px; font-family: var(--f-head); font-weight: 800; font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee-track > span::after { content: ""; width: 10px; height: 10px; background: var(--ink); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* ---------- Cards / icons ---------- */
.ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--orange-soft); color: var(--orange); flex: none; transition: background .25s, color .25s, transform .3s var(--ease); }
.ico .ic { width: 26px; height: 26px; }
.ico-sm { width: 46px; height: 46px; border-radius: 13px; background: #fff; box-shadow: 0 6px 18px -8px rgba(0,0,0,.18); }
.ico-sm .ic { width: 22px; height: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 3%, transparent); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--orange) 50%, transparent); box-shadow: 0 22px 40px -24px color-mix(in srgb, var(--ink) 25%, transparent); }
.card h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.3; }
.card p { color: var(--muted); margin-top: 4px; font-size: .96rem; }
.card-row { display: flex; align-items: flex-start; gap: 20px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-p { margin-top: 28px; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.85; color: #262824; }
.about-tag { margin-top: 30px; }
.about-tag > span { display: inline-block; padding-inline-start: 18px; border-inline-start: 3px solid var(--orange); font-family: var(--f-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: var(--orange-ink); }
.about-cards { display: grid; gap: 16px; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 32px 28px 30px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.svc::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
[dir="rtl"] .svc::after { transform-origin: right; }
.svc:hover { transform: translateY(-5px); box-shadow: 0 26px 44px -26px color-mix(in srgb, var(--ink) 30%, transparent); border-color: color-mix(in srgb, var(--orange) 45%, transparent); }
.svc:hover::after { transform: scaleX(1); }
.svc:hover .ico { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.05); }
.svc .num { position: absolute; inset-inline-end: 22px; top: 20px; font-family: var(--f-head); font-weight: 800; font-size: .95rem; color: #D6D9DF; }
.svc h3 { margin-top: 22px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.svc p { margin-top: 6px; color: var(--muted); font-size: .96rem; }
.services-quote { margin-top: clamp(36px, 5vw, 56px); text-align: center; font-style: italic; color: #808692; font-size: 1.05rem; }
:lang(ar) .services-quote { font-style: normal; }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: #33363b; transition: border-color .2s, background .2s, color .2s, transform .2s; }
.chip small { font-size: .72rem; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); font-weight: 700; }
.chip:hover { border-color: var(--orange); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { background: var(--orange); color: var(--ink); }

.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.p-item { position: relative; display: block; padding: 0; border: 0; background: var(--ink-3); border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; animation: pop .5s var(--ease) both; text-align: start; isolation: isolate; }
.p-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.p-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,9,7,.88) 0%, rgba(8,9,7,.05) 55%); opacity: .85; transition: opacity .3s; }
.p-item::after { content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.04); transition: opacity .3s, transform .35s var(--ease); --c: var(--orange); --l: 24px; --t: 3px;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) top right / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom left / var(--t) var(--l) no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--t) no-repeat, linear-gradient(var(--c), var(--c)) bottom right / var(--t) var(--l) no-repeat; }
.p-item:hover img, .p-item:focus-visible img { transform: scale(1.07); }
.p-item:hover::after, .p-item:focus-visible::after { opacity: 1; transform: scale(1); }
.p-cap { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 18px 20px; color: #fff; display: flex; flex-direction: column; gap: 2px; }
.p-cap b { font-family: var(--f-head); font-size: 1.05rem; font-weight: 700; line-height: 1.25; }
.p-cap i { font-style: normal; font-size: .78rem; color: var(--orange); font-weight: 600; letter-spacing: .04em; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* ---------- Mission ---------- */
.mission-grid { --cols: 3; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.m-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid rgba(255,255,255,.07); border-bottom: 3px solid var(--orange); border-radius: var(--r); padding: 34px 28px 30px; text-align: center; transition: transform .3s var(--ease), background .3s; }
.m-card:hover { transform: translateY(-5px); background: linear-gradient(180deg, color-mix(in srgb, var(--ink-3), #fff 4%), var(--ink-3)); }
.m-ico { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 12%, transparent); color: var(--orange); }
.m-ico .ic { width: 28px; height: 28px; }
.m-card h3 { font-size: 1.2rem; font-weight: 700; }
.m-card p { margin-top: 10px; color: rgba(255,255,255,.66); font-size: .96rem; }
.mission-foot { margin-top: 40px; text-align: end; font-style: italic; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--orange); }
:lang(ar) .mission-foot { font-style: normal; font-size: .95rem; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why { background: #fff; border-radius: var(--r); padding: 32px 30px; border: 1px solid transparent; box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 4%, transparent); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.why:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -26px color-mix(in srgb, var(--ink) 30%, transparent); border-color: color-mix(in srgb, var(--orange) 40%, transparent); }
.why h3 { margin-top: 24px; font-size: 1.2rem; font-weight: 700; line-height: 1.3; }
.why p { margin-top: 8px; color: var(--muted); font-size: .96rem; }
.why .ico-sm { background: var(--orange-soft); box-shadow: none; }
.why-quote { display: flex; flex-direction: column; justify-content: center; text-align: center; background: var(--orange); border-radius: var(--r); padding: 32px 30px; color: #fff; }
.why-quote:hover { background: color-mix(in srgb, var(--orange), #fff 10%); border-color: transparent; }
.why-quote blockquote { font-family: var(--f-head); font-weight: 700; font-style: italic; font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; color: var(--ink); }
:lang(ar) .why-quote blockquote { font-style: normal; line-height: 1.6; }
.why-quote figcaption { margin: 18px auto 0; padding-top: 14px; border-top: 3px solid color-mix(in srgb, var(--ink) 28%, transparent); letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; font-weight: 700; color: color-mix(in srgb, var(--ink) 75%, transparent); }

/* ---------- Clients ---------- */
.clients { --cols: 4; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.clients li { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); display: grid; place-items: center; height: 132px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.clients li:hover { border-color: color-mix(in srgb, var(--orange) 50%, transparent); box-shadow: 0 20px 36px -24px color-mix(in srgb, var(--ink) 30%, transparent); transform: translateY(-3px); }
.clients li > a { display: grid; place-items: center; width: 100%; height: 100%; }
.clients img { max-width: 100%; max-height: 74px; width: auto; height: auto; object-fit: contain; transition: filter .3s, opacity .3s; }
.clients.is-gray img { filter: grayscale(1) contrast(1.05); opacity: .72; }
.clients.is-gray li:hover img { filter: none; opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contact .h2 { margin-bottom: 8px; }
.c-list { display: grid; gap: 14px; margin-top: 36px; }
.c-list li { display: flex; align-items: center; gap: 18px; padding: 18px 20px; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; transition: border-color .25s, background .25s; }
.c-list li:hover { border-color: color-mix(in srgb, var(--orange) 45%, transparent); background: rgba(255,255,255,.07); }
.c-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: color-mix(in srgb, var(--orange) 16%, transparent); color: var(--orange); flex: none; }
.c-list small { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.c-list .c-val { font-size: 1.08rem; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.c-list a.c-val:hover { color: var(--orange); }
.c-map { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; margin-inline-start: 0; font-size: .85rem; font-weight: 600; color: var(--orange); }
.c-list li > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.social { margin-top: 26px; }
.social small { display: block; margin-bottom: 10px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.social-links { display: flex; gap: 10px; }
.social-links a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.social-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); transform: translateY(-2px); }

.card-form { background: #fff; color: var(--text); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.7); }
.card-form h3 { font-family: var(--f-head); font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.form-sub { margin: 6px 0 24px; color: var(--muted); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 6px; font-size: .85rem; font-weight: 600; color: #33363b; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; background: var(--soft); border: 1.5px solid transparent; border-radius: 12px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E6570' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-size: 18px; background-position: right 14px center; padding-inline-end: 42px; }
[dir="rtl"] .field select { background-position: left 14px center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 18%, transparent); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #D9534F; }
.form-note { margin-top: 14px; text-align: center; font-size: .85rem; color: var(--muted); }
.form-note.ok { color: #1E7B45; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: color-mix(in srgb, var(--ink), #000 45%); color: rgba(255,255,255,.62); padding-block: 40px; border-top: 1px solid rgba(255,255,255,.06); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; flex-wrap: wrap; }
.foot-tag { font-family: var(--f-head); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.foot-copy { font-size: .88rem; }
.to-top { font-size: .88rem; font-weight: 600; color: #fff; padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.2); border-radius: 999px; transition: border-color .2s, color .2s; }
.to-top:hover { border-color: var(--orange); color: var(--orange); }

/* ---------- Lightbox ---------- */
.lb { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(6,7,5,.95); color: #fff; overflow: hidden; }
.lb::backdrop { background: rgba(0,0,0,.6); }
.lb[open] { display: grid; place-items: center; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb-fig { display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: min(92vw, 1100px); }
.lb-fig img { max-width: 100%; max-height: calc(100dvh - 130px); width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 30px 80px -20px #000; }
.lb-fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 14px; text-align: center; }
.lb-fig b { font-family: var(--f-head); font-size: 1.1rem; }
.lb-fig span { color: var(--orange); font-weight: 600; font-size: .9rem; }
.lb-fig em { font-style: normal; color: rgba(255,255,255,.5); font-size: .85rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.lb-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lb-btn .ic { width: 24px; height: 24px; }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { inset-inline-start: 18px; }
.lb-next { inset-inline-end: 18px; }
.lb-prev .ic { transform: scaleX(-1); }
[dir="rtl"] .lb-prev .ic { transform: none; }
[dir="rtl"] .lb-next .ic { transform: scaleX(-1); }

/* ---------- Bilingual text: both languages are in the HTML, the active one is shown ---------- */
.l-ar { display: none !important; }
html[lang="ar"] .l-en { display: none !important; }
html[lang="ar"] .l-ar { display: inline !important; }

/* Switching language: the old and new version cross-fade (started from main.js, in browsers with view transitions). */
::view-transition-old(root) { animation: lang-out .55s var(--ease) both; mix-blend-mode: plus-lighter; }   /* plus-lighter: no flash of the page background mid-fade */
::view-transition-new(root) { animation: lang-in .55s var(--ease) both; mix-blend-mode: plus-lighter; }
@keyframes lang-out { to { opacity: 0; transform: scale(1.04); filter: blur(6px); } }
@keyframes lang-in { from { opacity: 0; transform: scale(1.04); filter: blur(6px); } }

/* ---------- Misc (WordPress) ---------- */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .nav { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .nav { top: calc(var(--header-h) + 46px); }
}
@media (max-width: 600px) {
  body.admin-bar .site-header { top: 0; }   /* the admin bar scrolls away on small screens */
  body.admin-bar .nav { top: var(--header-h); }
}
.p-item[hidden] { display: none; }
.p-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.brand-text { color: #fff; font-family: var(--f-head); font-weight: 800; font-size: 1.15rem; }
.contact-grid.no-form { grid-template-columns: minmax(0, 720px); }
.form-note.err { color: #C0392B; font-weight: 600; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.page-wrap { padding: calc(var(--header-h) + clamp(48px, 7vw, 96px)) 0 var(--sec-y); min-height: 60vh; }
.entry { margin-bottom: 56px; }
.entry-title { margin-bottom: 20px; }
.entry-title a:hover { color: var(--orange-ink); }
.entry-content { max-width: 74ch; font-size: 1.05rem; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content a { color: var(--orange-ink); text-decoration: underline; }
.entry-content img { height: auto; border-radius: 10px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignwide, .alignfull { max-width: 100%; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-inline: auto; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Page loader (home page, only when JS is on): --p is the loaded share, set by main.js ---------- */
.preloader { display: none; }
.js .preloader { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 22px; background: var(--ink); transition: opacity .6s var(--ease), visibility .6s; }
.js .preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.js body:has(> .preloader:not(.done)) { overflow: hidden; }
.pl-logo { position: relative; width: clamp(130px, 26vw, 220px); }
.pl-base, .pl-fill { display: grid; gap: 10px; }
.pl-logo img { width: 100%; height: auto; }
.pl-base { opacity: .14; }
.pl-fill { position: absolute; inset: 0; clip-path: inset(calc(100% - var(--p, 0%)) 0 0 0); }
.pl-num { font-family: var(--f-head); font-weight: 700; font-size: 1.2rem; letter-spacing: .08em; color: var(--orange); font-variant-numeric: tabular-nums; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { margin-inline: auto; max-width: 560px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .services-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .clients { --cols: 3; }
  .mission-grid { --cols: 2; }
}
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 18px var(--gut) 32px; background: color-mix(in srgb, var(--ink) 98%, transparent); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; overflow-y: auto; margin: 0; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 18px 4px; font-size: 1.2rem; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin: 24px 0 0; padding: 16px; font-size: 1rem; }
  .header-tools { margin-inline-start: auto; }
}
@media (max-width: 640px) {
  :root { --header-h: 68px; }
  .brand-word { height: 30px; }
  .brand-mark { height: 32px; }
  .services-grid, .why-grid { grid-template-columns: 1fr; }
  .mission-grid { --cols: 1; }
  .clients { --cols: 2; --gap: 12px; }
  .clients li { height: 108px; padding: 16px; }
  .clients img { max-height: 58px; }
  .f-row { grid-template-columns: 1fr; gap: 0; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hv-small { width: 34%; }
  .lb-prev, .lb-next { top: auto; bottom: 22px; transform: none; }
  .lb-fig img { max-height: calc(100dvh - 200px); }
  .foot-in { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
