/* SYNFRA — Security & Access Systems (revision 4)
   Layout language borrowed from industrial catalogue sites: white header with mega menu,
   full-bleed hero slider, icon category row, split image/text blocks, a dark band of duo cards,
   and a project rail. Brand colours stay SYNFRA: ink navy, brass, warm paper.
   Latin: Archivo (expanded uppercase for display). Arabic: Reem Kufi (display) + IBM Plex Sans Arabic. */

:root {
  --ink: #0e1628;
  --ink-2: #0a111f;
  --navy: #16213a;
  --steel: #1f3557;
  --brass: #b4873a;
  --brass-2: #94691f;
  --brass-3: #e2c48b;
  --paper: #f6f1e8;
  --mist: #f2f3f5;
  --white: #fff;
  --text: #22304a;
  --muted: #667089;
  --line: rgba(14, 22, 40, 0.12);
  --line-2: rgba(14, 22, 40, 0.22);
  --line-ink: rgba(246, 241, 232, 0.16);
  --on-ink: #c3cbdb;

  --display: "Archivo", "Reem Kufi", system-ui, sans-serif;
  --body: "Archivo", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --wd: 118%;               /* display width (Archivo wdth axis) */
  --tt: uppercase;          /* display case */
  --ls: 0.01em;

  --wrap: 1280px;
  --gut: clamp(16px, 3.6vw, 48px);
  --r: 6px;
  --head-h: 76px;
  --shadow: 0 18px 50px -24px rgba(14, 22, 40, 0.35);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --t-1: 0.875rem;
  --t0: 1rem;
  --t1: 1.125rem;
  --t2: clamp(1.25rem, 1.6vw, 1.5rem);
  --t3: clamp(1.6rem, 2.6vw, 2.15rem);
  --t4: clamp(2rem, 3.6vw, 2.9rem);
  --t5: clamp(2.4rem, 5.6vw, 4.6rem);
}
[dir="rtl"] {
  --display: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --tt: none;
  --ls: 0;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: var(--t0); line-height: 1.6; overflow-x: hidden; }
[dir="rtl"] body { line-height: 1.85; font-size: 1.04rem; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0 0 0.5em; line-height: 1.08; font-weight: 700; letter-spacing: var(--ls); }
h1, h2 { text-transform: var(--tt); font-stretch: var(--wd); font-variation-settings: "wdth" 118; }
h1 { font-size: var(--t5); font-weight: 800; }
h2 { font-size: var(--t4); }
h3 { font-size: var(--t2); font-weight: 650; line-height: 1.2; }
h4 { font-size: var(--t-1); text-transform: var(--tt); letter-spacing: 0.06em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.35; font-weight: 700; }
[dir="rtl"] h4 { letter-spacing: 0; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r); }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: clamp(56px, 7vw, 104px); }
.tint { background: var(--mist); }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: var(--t-1); margin-top: 1.5rem; }
.lead { font-size: var(--t1); max-width: 62ch; }
.ico { width: 100%; height: 100%; }
[dir="rtl"] .more .ico, [dir="rtl"] .hero-arrows .ico, [dir="rtl"] .rail-ctrl .ico { transform: scaleX(-1); }

.kicker, .kicker-h { font-family: var(--body); font-size: var(--t-1); font-weight: 700; color: var(--brass-2); text-transform: uppercase; letter-spacing: 0.12em; margin: 0 0 1rem; display: flex; align-items: center; gap: 10px; font-stretch: 100%; font-variation-settings: normal; }
.kicker-h { font-size: 0.95rem; margin-bottom: clamp(20px, 3vw, 36px); }
[dir="rtl"] .kicker, [dir="rtl"] .kicker-h { letter-spacing: 0; text-transform: none; font-size: 1rem; }

.flag-dot { width: 10px; height: 10px; border-radius: 50%; background: #0b6b3a; box-shadow: 0 0 0 3px rgba(11, 107, 58, 0.18); flex: none; display: inline-block; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--brass); color: #fff; border: 1.5px solid var(--brass); border-radius: var(--r); padding: 14px 26px; font: 700 0.86rem/1 var(--body); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease), box-shadow .25s; white-space: nowrap; }
[dir="rtl"] .btn { letter-spacing: 0; font-size: 0.98rem; text-transform: none; padding-block: 13px; }
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(148, 105, 31, .7); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { padding: 10px 18px; font-size: 0.78rem; }
.btn-wa { background: #1f9d55; border-color: #1f9d55; }
.btn-wa:hover { background: #168044; border-color: #168044; }
.btn.block { width: 100%; margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 30px -18px rgba(14, 22, 40, .45); }
.bar { height: var(--head-h); display: flex; align-items: center; gap: 28px; max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { height: 15px; width: auto; }
.brand-arabic { font-family: "Reem Kufi", serif; font-size: 1.05rem; font-weight: 600; color: var(--brass-2); padding-inline-start: 10px; border-inline-start: 1px solid var(--line-2); line-height: 1; }
.nav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-list { display: flex; align-items: center; justify-content: center; flex: 1; gap: clamp(6px, 1.4vw, 22px); }
.nav-link { display: inline-flex; align-items: center; gap: 6px; height: var(--head-h); padding: 0 6px; background: none; border: 0; cursor: pointer; font: 700 0.8rem/1 var(--body); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink); text-decoration: none; position: relative; }
[dir="rtl"] .nav-link { font-size: 0.98rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; inset-inline: 6px; bottom: 0; height: 3px; background: var(--brass); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-link:hover::after, .nav-link[aria-current]::after, .nav-link[aria-expanded="true"]::after { transform: scaleX(1); }
button.nav-link::before { content: ""; order: 2; width: 6px; height: 6px; border-inline-end: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
button.nav-link[aria-expanded="true"]::before { transform: rotate(-135deg) translateY(-1px); }
.nav-foot { display: flex; align-items: center; gap: 16px; }
.lang { font-weight: 700; font-size: 0.9rem; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: var(--r); }
.lang:hover { background: var(--mist); }
.nav-foot .btn { padding: 11px 18px; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; }
.burger { display: grid; gap: 5px; width: 24px; margin: auto; }
.burger i { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.bar-end { margin-inline-start: auto; }

/* mega menu */
.has-mega { position: static; }
.mega { position: absolute; inset-inline: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(14, 22, 40, .45); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
.has-mega.open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .3s var(--ease); }
.mega-inner { max-width: var(--wrap); margin-inline: auto; padding: 32px var(--gut) 36px; display: grid; grid-template-columns: repeat(3, 1fr) 1.1fr; gap: 32px; }
.mega-h { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass-2); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
[dir="rtl"] .mega-h { letter-spacing: 0; font-size: 0.95rem; }
.mega-col a { display: flex; align-items: center; gap: 12px; padding: 9px 8px; margin-inline: -8px; border-radius: var(--r); text-decoration: none; font-weight: 600; color: var(--ink); font-size: 0.95rem; transition: background .2s, color .2s; }
.mega-col a:hover { background: var(--mist); color: var(--brass-2); }
.mi { width: 30px; height: 30px; flex: none; color: var(--steel); }
.mega-feature { position: relative; border-radius: var(--r); overflow: hidden; display: block; min-height: 200px; text-decoration: none; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature span { position: absolute; inset-inline: 0; bottom: 0; padding: 16px 18px; background: linear-gradient(transparent, rgba(10, 17, 31, .85)); color: #fff; font-weight: 700; display: flex; justify-content: space-between; }
[dir="rtl"] .mega-feature i { transform: scaleX(-1); display: inline-block; }
.mega-inner.soft { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.mega-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .25s var(--ease), box-shadow .25s; }
.mega-card .mi { width: 36px; height: 36px; color: var(--brass-2); margin-bottom: 6px; }
.mega-card small { color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.mega-card:hover { border-color: var(--brass); transform: translateY(-2px); box-shadow: var(--shadow); }
.mega-card.is-featured { background: var(--ink); color: #fff; border-color: var(--ink); }
.mega-card.is-featured small { color: var(--on-ink); }
.mega-card.is-featured .mi { color: var(--brass-3); }

/* ---------- hero slider ---------- */
.hero { position: relative; height: clamp(540px, 82vh, 820px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.hero-slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s 1.1s; }
.slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease; z-index: 1; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.slide.is-on .slide-img { animation: kenburns 9s ease-out both; }
@keyframes kenburns { from { transform: scale(1.12) translate3d(0, 1%, 0); } to { transform: scale(1.02); } }
.slide-veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 17, 31, .88) 0%, rgba(10, 17, 31, .55) 45%, rgba(10, 17, 31, .15) 100%), linear-gradient(0deg, rgba(10, 17, 31, .6), transparent 40%); }
[dir="rtl"] .slide-veil { background: linear-gradient(270deg, rgba(10, 17, 31, .88) 0%, rgba(10, 17, 31, .55) 45%, rgba(10, 17, 31, .15) 100%), linear-gradient(0deg, rgba(10, 17, 31, .6), transparent 40%); }
.slide-copy { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-bottom: 60px; }
.slide-l1 { font-family: var(--display); font-weight: 800; font-size: var(--t5); line-height: 1; color: var(--brass-3); text-transform: var(--tt); font-stretch: var(--wd); font-variation-settings: "wdth" 118; margin: 0 0 .2em; letter-spacing: var(--ls); }
.slide-l2 { color: #fff; font-size: clamp(1.6rem, 3.6vw, 3rem); font-weight: 700; max-width: 18ch; margin-bottom: 1.4em; }
[dir="rtl"] .slide-l1 { line-height: 1.25; }
.slide .btn { opacity: 0; transform: translateY(14px); }
.slide .slide-l1, .slide .slide-l2 { opacity: 0; transform: translateY(24px); }
.slide.is-on .slide-l1, .slide.is-on .slide-l2, .slide.is-on .btn { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); }
.slide.is-on .slide-l1 { transition-delay: .25s; }
.slide.is-on .slide-l2 { transition-delay: .45s; }
.slide.is-on .btn { transition-delay: .65s; }
.hero-ui { position: absolute; inset-inline: 0; bottom: 30px; z-index: 3; display: flex; align-items: center; gap: 24px; }
.hero-dots { display: flex; gap: 8px; }
.hero-dots button { width: 44px; height: 24px; background: none; border: 0; cursor: pointer; padding: 10px 0; }
.hero-dots span { display: block; height: 3px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; border-radius: 2px; }
.hero-dots span::after { content: ""; position: absolute; inset: 0; background: var(--brass-3); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .hero-dots span::after { transform-origin: right; }
.hero-dots [aria-selected="true"] span::after { animation: dotfill var(--dur, 7s) linear forwards; }
.hero.paused .hero-dots [aria-selected="true"] span::after { animation-play-state: paused; }
@keyframes dotfill { to { transform: scaleX(1); } }
.hero-arrows { display: flex; gap: 8px; }
.hero-arrows button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .4); background: rgba(10, 17, 31, .25); color: #fff; padding: 11px; cursor: pointer; transition: background .2s, border-color .2s; }
.hero-arrows button:first-child .ico { transform: scaleX(-1); }
[dir="rtl"] .hero-arrows button:first-child .ico { transform: none; }
.hero-arrows button:hover { background: var(--brass); border-color: var(--brass); }
.hero-badge { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 40px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); font-weight: 600; font-size: 0.88rem; backdrop-filter: blur(6px); }
.hero-badge.static { margin: 1.6rem 0 0; }

/* ---------- featured categories ---------- */
.cats { background: var(--mist); padding: clamp(40px, 5vw, 64px) 0; }
.cat-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cat-row a { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; text-decoration: none; padding: 18px 8px; border-radius: var(--r); transition: background .25s, transform .3s var(--ease); }
.cat-ico { width: 64px; height: 64px; color: var(--ink); transition: color .25s, transform .4s var(--ease); }
.cat-ico .ico { stroke-width: 1.15; }
.cat-name { font-weight: 700; font-size: 0.92rem; color: var(--ink); line-height: 1.3; }
.cat-row a:hover { background: #fff; transform: translateY(-3px); }
.cat-row a:hover .cat-ico { color: var(--brass); transform: scale(1.06); }
.cat-all .cat-ico, .cat-all .cat-name { color: var(--brass-2); }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 640px; background: #fff; }
.split-copy { padding: clamp(48px, 7vw, 110px) clamp(24px, 6vw, 96px); align-self: center; max-width: 720px; justify-self: end; }
.split-copy p { color: var(--text); }
.split-copy .btn { margin-top: 1rem; }
.split-media { position: relative; overflow: hidden; background: var(--ink); }
.split-media img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }

/* ---------- cloud spotlight ---------- */
.spot { background: var(--ink); color: var(--on-ink); position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 120px); }
.spot::before { content: ""; position: absolute; inset: 0; 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: 48px 48px; mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 70%); }
.spot-grid { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.spot h2 { color: #fff; }
.spot .lead { color: #e6eaf2; }
.ticks { display: grid; gap: 10px; margin: 1.4rem 0 0; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks .ico { width: 22px; height: 22px; flex: none; color: var(--brass-3); stroke-width: 2; margin-top: 2px; }
.ticks.light li { color: #fff; }

/* mock dashboard */
.mock { position: relative; margin: 0; padding-bottom: 28px; }
.mock-win { background: #fff; border-radius: 12px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); overflow: hidden; color: var(--text); }
.mock-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f4; border-bottom: 1px solid var(--line); }
.mock-top i { width: 10px; height: 10px; border-radius: 50%; background: #d3d7df; }
.mock-top span { margin-inline-start: 10px; font-size: 0.75rem; color: var(--muted); direction: ltr; }
.mock-body { padding: 18px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.mock-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
.mock-head b { display: block; font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
.mock-head small { color: var(--muted); font-size: 0.8rem; }
.mock-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.7rem; font-weight: 700; color: #0b6b3a; letter-spacing: .1em; }
.mock-live span { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5); } 100% { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0); } }
.mock-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st { border-radius: 8px; padding: 12px 14px; background: var(--mist); }
.st b { display: block; font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--ink); }
.st span { font-size: 0.78rem; color: var(--muted); }
.st0 { background: #e9f6ee; } .st0 b { color: #0b6b3a; }
.st1 { background: #fbf2e2; } .st1 b { color: var(--brass-2); }
.mock-chart, .mock-feed { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.mock-chart small, .mock-feed small { font-size: 0.72rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
[dir="rtl"] .mock-chart small, [dir="rtl"] .mock-feed small { text-transform: none; letter-spacing: 0; }
.bars { height: 120px; display: flex; align-items: flex-end; gap: 7px; margin-top: 10px; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(var(--steel), var(--ink)); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(0); }
.bars i:nth-child(5) { background: linear-gradient(var(--brass-3), var(--brass)); }
.mock.in .bars i { animation: grow .9s var(--ease) forwards; animation-delay: calc(var(--i) * 80ms + .2s); }
@keyframes grow { to { transform: scaleY(1); } }
.mock-feed ul { margin-top: 8px; display: grid; gap: 6px; }
.mock-feed li { display: grid; grid-template-columns: 28px 1fr auto; grid-template-rows: auto auto; column-gap: 8px; align-items: center; font-size: 0.74rem; opacity: 0; transform: translateY(8px); }
.mock.in .mock-feed li { animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 140ms + .5s); }
@keyframes rise { to { opacity: 1; transform: none; } }
.av { grid-row: 1 / 3; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 0.65rem; font-weight: 700; }
.who b { display: block; color: var(--ink); line-height: 1.2; }
.who em { font-style: normal; color: var(--muted); }
.how { grid-column: 2; color: var(--brass-2); font-weight: 600; }
.mock-feed time { grid-column: 3; grid-row: 1 / 3; color: var(--muted); font-variant-numeric: tabular-nums; }
.mock-phone { position: absolute; inset-inline-end: -14px; bottom: 0; width: 150px; height: 290px; border-radius: 26px; background: #0a0f1c; padding: 10px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); border: 2px solid #2a3550; }
.ph-notch { width: 50px; height: 6px; border-radius: 6px; background: #222b40; margin: 2px auto 8px; }
.ph-screen { height: calc(100% - 16px); border-radius: 18px; background: linear-gradient(160deg, #13203a, #0d1527); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; color: #fff; padding: 12px; }
.ph-time { font-size: 1.5rem; font-weight: 700; font-family: var(--display); }
.ph-ring { width: 64px; height: 64px; border-radius: 50%; border: 2px solid #16a34a; color: #16a34a; padding: 14px; animation: ring 2.4s infinite; }
.ph-ring .ico { stroke-width: 2.4; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .4); } 50% { box-shadow: 0 0 0 12px rgba(22, 163, 74, 0); } }
.ph-screen b { font-size: 0.85rem; }
.ph-screen small { font-size: 0.68rem; color: var(--on-ink); }
.mock figcaption { position: absolute; bottom: 0; inset-inline-start: 0; font-size: 0.72rem; color: rgba(195, 203, 219, .7); }

/* ---------- dark band with duo cards ---------- */
.band { background: var(--ink-2); padding: clamp(56px, 7vw, 110px) 0; }
.band-title { color: #fff; font-size: var(--t3); margin-bottom: clamp(28px, 4vw, 48px); }
.duo { display: grid; grid-template-columns: 1fr 1fr; min-height: 440px; margin-bottom: clamp(40px, 6vw, 96px); }
.duo:last-child { margin-bottom: 0; }
.duo.flip .duo-media { order: 2; }
.duo-media { position: relative; overflow: hidden; background: var(--navy); }
.duo-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.duo:hover .duo-media img { transform: scale(1.04); }
.duo-panel { display: flex; flex-direction: column; }
.duo-tags { display: flex; justify-content: space-between; gap: 12px; padding: 16px clamp(20px, 3vw, 40px); border-bottom: 1px solid currentColor; font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
[dir="rtl"] .duo-tags { text-transform: none; letter-spacing: 0; font-size: 0.92rem; }
.duo-tags span:first-child { opacity: .85; }
.duo-body { padding: clamp(24px, 4vw, 52px) clamp(20px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.duo-body h3 { font-size: var(--t3); color: inherit; text-transform: var(--tt); font-stretch: var(--wd); font-variation-settings: "wdth" 118; font-weight: 800; }
.duo-body p { max-width: 54ch; }
.duo-body .btn { margin-top: auto; }
.duo-ico { width: 46px; height: 46px; margin-bottom: 18px; opacity: .9; }
.tone-brass .duo-panel { background: var(--brass); color: #fff; border-color: rgba(255,255,255,.4); }
.tone-brass .duo-tags { border-color: rgba(255, 255, 255, .45); }
.tone-sky .duo-panel { background: var(--steel); color: #fff; }
.tone-sky .duo-tags { border-color: rgba(255, 255, 255, .3); }
.tone-paper .duo-panel { background: var(--paper); color: var(--ink); }
.tone-paper .duo-tags { border-color: var(--line-2); }
.tone-paper .btn-light { background: var(--ink); color: #fff; border-color: var(--ink); }
.tone-paper .btn-light:hover { background: var(--brass); border-color: var(--brass); }
.integ { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: .4rem; }
.integ li { padding-inline-start: 16px; position: relative; }
.integ li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 7px; height: 7px; background: var(--brass-3); transform: rotate(45deg); }

/* ---------- section heads, software cards ---------- */
.sec-head { display: grid; gap: 8px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-head p { color: var(--muted); font-size: var(--t1); margin: 0; }
.sec-head.with-ctrl { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
.soft-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.soft-grid.wide { grid-template-columns: repeat(3, 1fr); }
.soft-card { display: flex; flex-direction: column; gap: 8px; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s, border-color .25s; position: relative; overflow: hidden; }
.soft-card::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
[dir="rtl"] .soft-card::after { transform-origin: right; }
.soft-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.soft-card:hover::after { transform: scaleX(1); }
.soft-ico { width: 44px; height: 44px; color: var(--brass-2); margin-bottom: 8px; }
.soft-card small { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
[dir="rtl"] .soft-card small { text-transform: none; letter-spacing: 0; font-size: 0.85rem; }
.soft-card h3 { font-size: 1.15rem; margin: 0; }
.soft-card p { font-size: 0.92rem; color: var(--muted); margin: 0; }
.soft-card .more { margin-top: auto; padding-top: 10px; }
.soft-card.is-featured { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.soft-card.is-featured h3 { color: #fff; }
.soft-card.is-featured p, .soft-card.is-featured small { color: var(--on-ink); }
.soft-card.is-featured .soft-ico { color: var(--brass-3); }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--brass-2); }
[dir="rtl"] .more { text-transform: none; letter-spacing: 0; font-size: 0.95rem; }
.more .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); }
a:hover .more .ico { transform: translateX(4px); }
[dir="rtl"] a:hover .more .ico { transform: scaleX(-1) translateX(4px); }
.is-featured .more { color: var(--brass-3); }

/* ---------- sector rail ---------- */
.rail-sec { background: #fff; }
.rail-ctrl { display: flex; gap: 8px; }
.rail-ctrl button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; color: var(--ink); padding: 12px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.rail-ctrl button:first-child .ico { transform: scaleX(-1); }
[dir="rtl"] .rail-ctrl button:first-child .ico { transform: none; }
.rail-ctrl button:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(270px, 30vw, 400px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))) 28px; scrollbar-width: thin; scroll-padding-inline: max(var(--gut), calc((100vw - var(--wrap)) / 2 + var(--gut))); }
.rail-card { scroll-snap-align: start; background: #fff; border-radius: var(--r); box-shadow: 0 2px 0 var(--line), 0 18px 40px -28px rgba(14, 22, 40, .5); overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); }
.rail-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.rail-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rail-card:hover .rail-img img { transform: scale(1.05); }
.rail-ico, .prod-ico { position: absolute; inset-inline-start: 14px; bottom: 14px; width: 48px; height: 48px; padding: 9px; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5); }
.rail-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.rail-body h3 { font-size: 1.2rem; }
.rail-body p { color: var(--muted); font-size: 0.95rem; }
.rail-body .btn { margin-top: auto; align-self: flex-start; }

/* ---------- values ---------- */
.values { background: var(--paper); padding: clamp(36px, 5vw, 60px) 0; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value { border-top: 2px solid var(--brass); padding-top: 16px; display: grid; gap: 6px; }
.value b { font-family: var(--display); font-size: 1.2rem; color: var(--ink); text-transform: var(--tt); font-stretch: var(--wd); font-variation-settings: "wdth" 112; }
.value span { color: var(--muted); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; padding-inline-end: 40px; font-weight: 700; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 300; color: var(--brass); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--text); max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: var(--on-ink); padding: clamp(64px, 8vw, 120px) 0; overflow: hidden; isolation: isolate; }
.cta-photo { position: absolute; inset: 0; z-index: -1; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.cta-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 30%, rgba(14, 22, 40, .6)); }
[dir="rtl"] .cta-photo::after { background: linear-gradient(270deg, var(--ink) 30%, rgba(14, 22, 40, .6)); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta-copy h2 { color: #fff; }
.cta-copy p { font-size: var(--t1); color: #dde3ee; max-width: 52ch; }
.cta-copy .kicker { color: var(--brass-3); }
.form-card { background: #fff; color: var(--text); border-radius: 10px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form-card h3 { font-size: 1.4rem; margin-bottom: .2em; }
.form-card.flat { box-shadow: none; border: 1px solid var(--line); }
.form-card h2 { font-size: var(--t3); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; margin-top: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 0.85rem; color: var(--ink); }
.field small { color: var(--muted); font-size: 0.82rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(180, 135, 58, .2); }
[dir="rtl"] .field input[dir="ltr"] { text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--brass); }
.form-note { font-size: 0.78rem; color: var(--muted); margin: 0; }
.form-note a { color: var(--brass-2); }
.form .btn { width: 100%; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: var(--r); padding: 14px 16px; margin-top: 12px; }
.alert p { margin: 0; }
.alert.ok { background: #e9f6ee; color: #0b4d2a; border: 1px solid #b7e1c6; }
.alert.err { background: #fdecec; color: #8a1c1c; border: 1px solid #f3c0c0; }

/* ---------- inner page banner ---------- */
.page-banner { background: var(--mist); border-bottom: 1px solid var(--line); overflow: hidden; }
.pb-grid { display: grid; grid-template-columns: 1fr; gap: 40px; padding-block: clamp(40px, 6vw, 80px); align-items: center; }
.has-photo .pb-grid { grid-template-columns: 1.05fr 1fr; padding-block: clamp(32px, 4vw, 56px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumbs a { text-decoration: none; font-weight: 600; color: var(--steel); }
.crumbs a:hover { color: var(--brass-2); }
.pb-copy h1 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); }
.pb-copy .lead { color: var(--text); }
.pb-photo { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); background: var(--ink); }
.pb-photo img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.4s var(--ease) both; }
@keyframes settle { from { transform: scale(1.08); opacity: .4; } to { transform: none; opacity: 1; } }
.pb-badge { position: absolute; inset-inline-start: 18px; bottom: 18px; width: 64px; height: 64px; padding: 12px; border-radius: 50%; background: var(--brass); color: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
.pb-badge .ico { stroke-width: 1.6; }

/* ---------- product grids ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-grid.compact { grid-template-columns: repeat(4, 1fr); }
.prod-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: var(--text); transition: transform .35s var(--ease), box-shadow .35s; }
.prod-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.prod-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.prod-card:hover .prod-img img { transform: scale(1.05); }
.prod-body { padding: 22px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.prod-body h3 { font-size: 1.2rem; margin: 0; }
.prod-body p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.prod-body .more { margin-top: auto; padding-top: 10px; }
.compact .prod-body h3 { font-size: 1.02rem; }

.variant-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.variant { padding: 30px 28px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; position: relative; transition: background .3s; }
.variant:hover { background: var(--paper); }
.variant-n { display: block; font-family: var(--display); font-weight: 800; font-size: 0.95rem; color: var(--brass); margin-bottom: 14px; letter-spacing: .1em; }
.variant-n .ico { width: 40px; height: 40px; }
.variant h3 { font-size: 1.2rem; }
.variant p { color: var(--muted); margin: 0; }

.spec { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.spec-list { display: grid; gap: 0; }
.spec-list li { display: flex; gap: 14px; align-items: flex-start; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.spec-list .ico { width: 22px; height: 22px; color: var(--brass); stroke-width: 2.2; flex: none; margin-top: 2px; }
.spec-side { background: #fff; border-radius: 10px; padding: 26px; border: 1px solid var(--line); }
.spec-side h3 { font-size: 1.1rem; }
.spec-photo { margin: -26px -26px 22px; border-radius: 10px 10px 0 0; overflow: hidden; }
.spec-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.spec-photo figcaption { font-size: 0.78rem; color: var(--muted); padding: 8px 26px 0; }
.uses li { padding: 10px 0; border-bottom: 1px dashed var(--line-2); padding-inline-start: 20px; position: relative; }
.uses li::before { content: ""; position: absolute; inset-inline-start: 0; top: 1.15em; width: 8px; height: 8px; border: 2px solid var(--brass); border-radius: 50%; }

.links-2 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.chips { display: grid; gap: 10px; }
.chip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; background: #fff; transition: border-color .2s, transform .25s var(--ease); }
.chip:hover { border-color: var(--brass); transform: translateX(3px); }
[dir="rtl"] .chip:hover { transform: translateX(-3px); }
.chip-ico { width: 38px; height: 38px; color: var(--brass-2); flex: none; }
.chip b { display: block; color: var(--ink); }
.chip small { color: var(--muted); font-size: 0.82rem; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { padding: 28px 24px; border-radius: var(--r); background: var(--mist); position: relative; overflow: hidden; }
.feat::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 3px; background: var(--brass); transform: scaleY(.25); transform-origin: top; transition: transform .5s var(--ease); }
.feat:hover::before { transform: scaleY(1); }
.feat-n { font-family: var(--display); font-weight: 800; color: var(--brass); font-size: 0.95rem; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.feat h3 { font-size: 1.15rem; }
.feat p { color: var(--muted); margin: 0; }

.quote-band { background: var(--brass); color: #fff; padding: clamp(44px, 6vw, 80px) 0; }
.quote-band blockquote { margin: 0; font-family: var(--display); font-size: var(--t3); line-height: 1.3; max-width: 30ch; font-weight: 600; }

/* services steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.step-ico { display: block; width: 46px; height: 46px; color: var(--brass-2); margin-bottom: 18px; }
.step-n { position: absolute; inset-inline-end: 22px; top: 22px; font-family: var(--display); font-weight: 800; font-size: 2.2rem; color: var(--mist); line-height: 1; }
.steps h3 { font-size: 1.2rem; }
.steps p { color: var(--muted); margin: 0; }

/* sector */
.need-answer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); }
.need { counter-reset: n; display: grid; gap: 0; }
.need li { counter-increment: n; display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.need li::before { content: counter(n, decimal-leading-zero); font-family: var(--display); font-weight: 800; color: var(--brass); }
.answer { background: var(--ink); color: var(--on-ink); padding: clamp(24px, 4vw, 44px); border-radius: 10px; }
.answer .kicker-h { color: var(--brass-3); }
.answer p { font-size: var(--t1); color: #e6eaf2; }

/* company */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); margin: 0; }
.facts div { padding: 20px 0; border-bottom: 1px solid var(--line); padding-inline-end: 20px; }
.facts dt { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
[dir="rtl"] .facts dt { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.facts dd { margin: 0; font-weight: 700; color: var(--ink); }

/* contact */
.contact { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 4px; }
.ci { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ci-ico { width: 40px; height: 40px; flex: none; color: var(--brass-2); padding: 8px; background: var(--mist); border-radius: 50%; }
.ci h4 { margin-bottom: 4px; color: var(--muted); }
.ci p { margin: 0; font-weight: 600; color: var(--ink); }
.ci a { color: var(--ink); }
.contact-info .btn { margin-top: 18px; }

/* legal */
.legal-doc { max-width: 820px; }
.legal-doc h2 { font-size: var(--t2); text-transform: none; font-stretch: 100%; font-variation-settings: normal; margin-top: 2em; }

/* credits */
.credits { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.credits figure { margin: 0; }
.credits img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: var(--r); }
.credits figcaption { font-size: 0.82rem; color: var(--muted); padding-top: 8px; }

/* landing page */
.lp-hero { position: relative; color: #fff; background: var(--ink); padding: clamp(40px, 6vw, 90px) 0; overflow: hidden; isolation: isolate; }
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.lp-hero .slide-veil { z-index: -1; }
.lp-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-copy h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.lp-copy .lead { color: #e6eaf2; }
.lp-copy .slide-l1 { font-size: 1rem; opacity: 1; transform: none; letter-spacing: .12em; font-stretch: 100%; }
[dir="rtl"] .lp-copy .slide-l1 { letter-spacing: 0; }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; font-size: 0.8rem; color: var(--muted); }
.trust-row li::before { content: "✓ "; color: #16a34a; font-weight: 700; }
body.minimal .site-header .brand-arabic { display: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-2); color: var(--on-ink); padding-top: clamp(48px, 6vw, 80px); font-size: 0.92rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-arabic { color: var(--brass-3); border-color: var(--line-ink); }
.foot-top { display: grid; grid-template-columns: 1fr 2.6fr; gap: clamp(28px, 5vw, 80px); padding-bottom: 48px; }
.foot-brand p { margin-top: 18px; max-width: 36ch; }
.saudi { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.site-footer h4 { color: #fff; margin-bottom: 16px; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { text-decoration: none; color: var(--on-ink); transition: color .2s; }
.site-footer a:hover { color: var(--brass-3); }
.addr span { display: block; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 28px; border-top: 1px solid var(--line-ink); font-size: 0.82rem; }
.foot-legal .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* WhatsApp */
.wa { position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; background: #1f9d55; color: #fff; text-decoration: none; padding: 12px 16px; border-radius: 40px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5); font-weight: 700; }
.wa:hover { background: #168044; }

/* consent */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-box { max-width: 760px; background: #fff; border-radius: 10px; padding: 22px 24px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); border: 1px solid var(--line); }
.consent-box h3 { font-size: 1.1rem; }
.consent-box p { font-size: 0.9rem; }
.consent-options { display: grid; gap: 8px; margin: 10px 0 16px; font-size: 0.9rem; }
.consent-options[hidden] { display: none; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-actions .btn { padding: 11px 18px; }

/* reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide.is-on .slide-img, .pb-photo img { animation: none; }
  .bars i { transform: none; }
  .mock-feed li, .bub { opacity: 1; transform: none; }
}

/* admin */
.admin { font-family: system-ui, sans-serif; padding: 24px; color: #222; background: #fff; }
.admin table { border-collapse: collapse; width: 100%; font-size: 14px; }
.admin th, .admin td { border-bottom: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.admin td.msg { max-width: 420px; white-space: pre-wrap; }

/* ---------- AI & digital transformation section ---------- */
.mega-inner.soft.dig { grid-template-columns: repeat(6, 1fr); }
.foot-cols { grid-template-columns: repeat(5, 1fr); }
.foot-cols h4 a { color: inherit; text-decoration: none; }
.nav-link { white-space: nowrap; }
@media (min-width: 981px) and (max-width: 1439px) {
  .bar { gap: 16px; }
  .nav { gap: 12px; }
  .nav-list { gap: 2px; }
  .nav-link { letter-spacing: 0.04em; font-size: 0.74rem; padding: 0 5px; }
  [dir="rtl"] .nav-link { font-size: 0.9rem; }
  .nav-foot .btn { padding: 10px 12px; font-size: 0.72rem; }
}
@media (min-width: 981px) and (max-width: 1120px) {
  .nav .nav-foot .btn { display: none; }
  .nav .nav-foot .lang { display: block; }
}
.foot-cols.three { grid-template-columns: repeat(3, 1fr); }
.brand-tag { font: 700 0.72rem/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--brass); border-radius: 3px; padding: 5px 7px; }
[dir="rtl"] .brand-tag { letter-spacing: 0; text-transform: none; font-size: 0.85rem; }
.nav-peer { color: var(--brass-2); }
.nav-peer i { font-style: normal; font-size: 0.9em; }
.dig-hero { padding-block: clamp(56px, 7vw, 104px); }
.dig-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.9rem); margin-bottom: .45em; }
.dig-hero .kicker { color: var(--brass-3); }
.dig-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.peer-band { padding-block: clamp(40px, 6vw, 88px); }
/* long button labels must wrap instead of widening the page on phones */
.peer-band .duo > * { min-width: 0; }
.peer-band .duo-body .btn { white-space: normal; max-width: 100%; text-align: start; line-height: 1.3; }
.tone-ink .duo-panel { background: var(--ink); color: #fff; }
.tone-ink .duo-tags { border-color: rgba(255, 255, 255, .25); }
.tone-ink .duo-ico { color: var(--brass-3); }
.duo-body .btn i { font-style: normal; margin-inline-start: 6px; }
/* switch between the two SYNFRA sites — fixed, opposite corner from WhatsApp */
.site-switch { position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 12px; max-width: min(340px, calc(100vw - 110px)); padding: 10px 16px 10px 10px; border-radius: 44px; text-decoration: none; color: #fff; background: var(--ink); border: 1px solid rgba(226, 196, 139, .55); box-shadow: 0 16px 40px -14px rgba(14, 22, 40, .7); transition: transform .3s var(--ease), background .3s, box-shadow .3s; }
[dir="rtl"] .site-switch { padding: 10px 10px 10px 16px; }
.site-switch { touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; cursor: grab; }
.site-switch.is-dragging { cursor: grabbing; transition: none; transform: scale(1.03); box-shadow: 0 26px 50px -12px rgba(14, 22, 40, .85); }
.sw-grip { flex: none; width: 6px; height: 18px; opacity: .55; background: radial-gradient(currentColor 1.2px, transparent 1.6px) 0 0 / 6px 6px; margin-inline-end: -4px; }
.site-switch.to-hw { background: var(--brass); border-color: rgba(255, 255, 255, .5); }
.site-switch:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -14px rgba(14, 22, 40, .8); }
.sw-ico { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: var(--brass-3); }
.to-hw .sw-ico { color: #fff; background: rgba(14, 22, 40, .22); }
.sw-ico .ico { width: 24px; height: 24px; }
.sw-text { display: grid; gap: 2px; line-height: 1.2; min-width: 0; }
.sw-text small { font-size: 0.68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brass-3); }
.to-hw .sw-text small { color: rgba(255, 255, 255, .85); }
[dir="rtl"] .sw-text small { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }
.sw-text b { font-size: 0.9rem; font-weight: 700; }
.sw-arrow { flex: none; display: grid; }
.sw-arrow .ico { width: 18px; height: 18px; stroke-width: 2; transition: transform .3s var(--ease); }
[dir="rtl"] .sw-arrow .ico { transform: scaleX(-1); }
.site-switch:hover .sw-arrow .ico { transform: translateX(4px); }
[dir="rtl"] .site-switch:hover .sw-arrow .ico { transform: scaleX(-1) translateX(4px); }
@media (max-width: 640px) {
  .site-switch { gap: 8px; padding: 6px 12px 6px 6px; inset-inline-start: 12px; bottom: 14px; }
  [dir="rtl"] .site-switch { padding: 6px 6px 6px 12px; }
  .sw-ico { width: 34px; height: 34px; }
  .sw-text b { font-size: 0.8rem; }
  .sw-arrow { display: none; }
  .foot-cols.three { grid-template-columns: 1fr 1fr; }
}
/* room at the end of the page so the fixed buttons never sit on the footer's last lines */
body:not(.minimal) .site-footer { padding-bottom: 96px; }
/* phones: a long button label wraps instead of pushing the page wider than the screen */
@media (max-width: 640px) { .btn { white-space: normal; max-width: 100%; text-align: center; line-height: 1.25; } }
@media (max-width: 360px) { .brand { gap: 7px; } .brand-tag { font-size: 0.6rem; letter-spacing: .04em; padding: 4px 5px; } .brand-arabic { padding-inline-start: 7px; } }
@media print { .site-switch { display: none; } }
.chatmock { padding-bottom: 30px; }
.chat-body { padding: 18px; display: grid; gap: 10px; }
.chat-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.7rem; font-weight: 700; color: var(--brass-2); letter-spacing: .1em; border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; }
[dir="rtl"] .chat-badge { letter-spacing: 0; font-size: 0.8rem; }
.chat-badge .ico { width: 14px; height: 14px; stroke-width: 2; }
.bub { margin: 0; max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 0.88rem; line-height: 1.55; opacity: 0; transform: translateY(8px); }
.chatmock.in .bub { animation: rise .6s var(--ease) forwards; animation-delay: calc(var(--i) * 420ms + .2s); }
.bub p { margin: 0; }
.bub.q { justify-self: end; background: var(--ink); color: #fff; border-end-end-radius: 3px; }
.bub.a { justify-self: start; background: var(--mist); color: var(--text); border-end-start-radius: 3px; display: grid; gap: 8px; }
.chat-rows { margin: 0; display: grid; gap: 4px; }
.chat-rows div { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px dashed var(--line); padding-bottom: 4px; }
.chat-rows dt { color: var(--muted); }
.chat-rows dd { margin: 0; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.chat-src { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-src span { font-size: 0.72rem; color: var(--brass-2); border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 2px 9px; }
.chat-btn { justify-self: start; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--brass); border-radius: 4px; padding: 6px 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .soft-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-row { grid-template-columns: repeat(4, 1fr); }
  .mega-inner { grid-template-columns: repeat(3, 1fr); }
  .mega-feature { display: none; }
  .mega-inner.soft, .mega-inner.soft.dig { grid-template-columns: repeat(3, 1fr); }
  .foot-cols { grid-template-columns: repeat(3, 1fr); }
  .nav-foot .lang { display: none; }
}
@media (max-width: 980px) {
  :root { --head-h: 64px; }
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--head-h) 0 0 0; background: #fff; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 8px var(--gut) 32px; overflow-y: auto; opacity: 0; transform: translateY(-10px); visibility: hidden; transition: opacity .3s, transform .4s var(--ease), visibility 0s .4s; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .4s var(--ease); }
  .nav-list { flex-direction: column; align-items: stretch; flex: none; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { height: auto; width: 100%; padding: 18px 0; justify-content: space-between; font-size: 0.95rem; }
  .nav-link::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; opacity: 1; visibility: visible; transform: none; display: none; }
  .has-mega.open .mega { display: block; }
  .mega-inner, .mega-inner.soft, .mega-inner.soft.dig { grid-template-columns: 1fr; padding: 0 0 18px; gap: 18px; }
  .nav-foot { flex-direction: column; align-items: stretch; margin-top: 22px; gap: 10px; }
  .nav-foot .lang { display: block; text-align: center; border: 1px solid var(--line); }
  body.nav-open { overflow: hidden; }
  .split, .duo, .spot-grid, .cta-grid, .has-photo .pb-grid, .spec, .links-2, .need-answer, .contact, .lp-grid, .faq-wrap, .foot-top { grid-template-columns: 1fr; }
  .split-copy { justify-self: stretch; max-width: none; }
  .split-media { min-height: 380px; }
  .duo.flip .duo-media { order: 0; }
  .duo-media { min-height: 260px; }
  .prod-grid, .feat-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .prod-grid.compact { grid-template-columns: repeat(2, 1fr); }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .mock-phone { width: 120px; height: 236px; inset-inline-end: 0; }
}
@media (max-width: 640px) {
  .brand-word { height: 13px; }
  .brand-mark { width: 34px; height: 34px; }
  .hero { height: clamp(520px, 86vh, 700px); }
  .slide-copy { justify-content: flex-end; padding-bottom: 120px; }
  .hero-ui { flex-wrap: wrap; gap: 14px; bottom: 20px; }
  .hero-badge { margin-inline-start: 0; }
  .hero-arrows { display: none; }
  .cat-row { grid-template-columns: repeat(2, 1fr); }
  .cat-ico { width: 52px; height: 52px; }
  .soft-grid, .soft-grid.wide, .prod-grid, .prod-grid.compact, .feat-grid, .steps, .values-grid, .facts { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .sec-head.with-ctrl { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-phone { display: none; }
  .integ { grid-template-columns: 1fr; }
  .duo-tags { font-size: 0.7rem; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .wa span { display: none; }
  .wa { padding: 12px; }
}

/* Arabic: Kufi for display sizes only; small headings in Plex Arabic for legibility */
[dir="rtl"] h3, [dir="rtl"] h4, [dir="rtl"] .mock-head b, [dir="rtl"] .value b, [dir="rtl"] .ph-time { font-family: "IBM Plex Sans Arabic", system-ui, sans-serif; font-weight: 700; }
[dir="rtl"] .duo-body h3 { font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif; }

/* brands we work with — typographic tiles (no logo reproduction) */
.brands-sec { background: var(--paper); }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-inline-start: 1px solid var(--line-2); }
.brand-grid li { display: grid; gap: 4px; align-content: center; min-height: 112px; padding: 20px 22px; border-inline-end: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: rgba(255, 255, 255, .55); transition: background .25s; }
.brand-grid li:hover { background: #fff; }
.brand-grid b { font-family: "Archivo", system-ui, sans-serif; font-stretch: 112%; font-variation-settings: "wdth" 112; font-weight: 800; font-size: 1.3rem; letter-spacing: .02em; color: var(--ink); text-transform: uppercase; }
[dir="rtl"] .brand-grid b { text-align: right; }
.brand-grid span { font-size: .85rem; color: var(--muted); }
@media (max-width: 980px) { .brand-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .brand-grid { grid-template-columns: repeat(2, 1fr); } .brand-grid li { min-height: 92px; padding: 14px; } .brand-grid b { font-size: 1.05rem; } }

/* mobile menu: backdrop-filter on the header made it the containing block of the fixed drawer,
   squeezing the drawer to 40px. Plain white header on small screens, drawer sized to the viewport. */
@media (max-width: 980px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nav { top: var(--head-h); bottom: auto; height: calc(100vh - var(--head-h)); height: calc(100dvh - var(--head-h)); z-index: 60; }
}
