/* zainxtec.com - one stylesheet. Logical properties only (ready for Arabic RTL). */
:root {
  --black: #17181C; --black-2: #202229; --royal: #2F378B; --royal-2: #252C73; --light: #6F7BE6; --pale-text: #C9CDEB;
  --pale: #F4F5FA; --ink: #232222; --text: #2B2F38; --mute: #5F6472; --line: #E4E6EE; --white: #FFFFFF;
  --radius: 14px; --wrap: 1120px; --shadow: 0 14px 34px rgba(23, 24, 28, .10);
  --font: Montserrat, "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 800; }
h4 { font-size: 1.02rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.skip { position: absolute; inset-inline-start: -999px; inset-block-start: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { inset-inline-start: 8px; }
.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* buttons, tags */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font: 700 .9rem/1.2 var(--font); border: 1.5px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, border-color .15s; }
.btn svg { flex: none; }
.btn-primary { background: var(--royal); color: var(--white); }
.btn-primary:hover { background: var(--royal-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .38); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-light { background: var(--white); color: var(--black); }
.btn-outline { border-color: var(--royal); color: var(--royal); }
.tag { font: 700 .75rem/1.3 var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--royal); margin-block-end: 10px; }
.on-dark .tag, .tag-light { color: #8C96F0; }
.tag a { color: inherit; }
.lead { font-size: 1.06rem; color: var(--mute); max-width: 680px; }
.link { font-weight: 700; color: var(--royal); display: inline-flex; align-items: center; gap: 6px; }

/* header */
.site-header { background: var(--black); position: sticky; inset-block-start: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 74px; }
.brand { display: flex; flex: none; }
.brand .logo { width: 150px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.nav > a, .nav .drop > button { color: #E6E8F2; font: 600 .9rem var(--font); padding: 10px 12px; border-radius: 8px; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .nav .drop > button:hover, .nav a[aria-current="page"] { color: var(--white); background: rgba(255, 255, 255, .07); text-decoration: none; }
.drop { position: relative; }
.drop-menu { position: absolute; inset-block-start: 100%; inset-inline-start: 0; background: var(--white); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; min-width: 300px; display: none; }
.drop:hover .drop-menu, html:not(.js) .drop:focus-within .drop-menu, .drop.open .drop-menu { display: block; }
.drop-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); font: 600 .88rem var(--font); }
.drop-menu a:hover { background: var(--pale); text-decoration: none; }
.drop-menu a svg { color: var(--royal); }
.nav > a.header-cta { margin-inline-start: 8px; background: var(--royal); color: var(--white); padding: 11px 18px; border-radius: 10px; }
.nav > a.header-cta:hover { background: var(--royal-2); }
.nav > a.header-wa { padding: 9px; margin-inline-start: 4px; color: #25D366; }
.header-wa-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 0; color: var(--white); padding: 8px; cursor: pointer; }

/* hero and sections */
.hero { background: var(--black); color: var(--white); position: relative; overflow: hidden; padding-block: 84px 104px; }
.hero h1 { color: var(--white); max-width: 680px; margin-block: 6px 20px; }
.hero p { color: var(--pale-text); font-size: 1.12rem; max-width: 580px; margin-block-end: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { position: absolute; inset-inline-end: -40px; inset-block-start: 40px; opacity: .15; pointer-events: none; }
.hero-mark svg { width: 520px; height: auto; }
.page-hero { padding-block: 64px 72px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.title-row { display: flex; align-items: center; gap: 16px; margin-block: 6px 18px; }
.title-row h1 { margin: 0; }
.two-col { align-items: start; }
.h4 { font-size: 1.02rem; font-weight: 700; }
.others .chips { margin-block-end: 0; }
a.chip { display: inline-block; }
a.chip:hover { border-color: var(--light); text-decoration: none; }
.band { height: 6px; background: var(--royal); }
.section { padding-block: 76px; }
.section-grey { background: var(--pale); }
.section-head { margin-block-end: 34px; }
.section-head h2 { margin-block: 4px 12px; }
.on-dark { background: var(--black); color: var(--pale-text); }
.on-dark h2, .on-dark h3, .on-dark h4 { color: var(--white); }

/* grids and cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.module { padding: 18px; }
.module h3 { font-size: 1.05rem; }
.modules-head { margin-block-end: 36px; }
.facts { margin: 0; display: grid; gap: 14px; }
.facts div { background: var(--pale); border-radius: var(--radius); padding: 18px 22px; border-inline-start: 4px solid var(--royal); }
.facts dt { font: 700 .75rem/1.3 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.facts dd { margin: 4px 0 0; font: 800 1.15rem/1.3 var(--font); color: var(--ink); }
.role-meta { font-weight: 700; color: var(--royal) !important; }
.note-info { background: var(--pale); color: var(--ink); border-inline-start: 4px solid var(--royal); max-width: 760px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card h3, .card h4 { margin-block-start: 4px; }
.card p { color: var(--mute); font-size: .92rem; margin: 0; }
.card .link { margin-block-start: auto; padding-block-start: 6px; font-size: .88rem; }
a.card { color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--light); box-shadow: var(--shadow); }
.icon-dot { width: 46px; height: 46px; border-radius: 50%; background: var(--royal); color: var(--white); display: grid; place-items: center; flex: none; }
.icon-dot.small { width: 40px; height: 40px; }
.paths { margin-block-start: -56px; position: relative; }
.paths .card { padding: 30px; box-shadow: var(--shadow); border: 0; }
.paths-section { padding-block-start: 0; }
.card h2 { font-size: 1.2rem; }
.card.path-card h2 { font-size: 1.4rem; }
.cta-section { padding-block-end: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-block: 18px 26px; padding: 0; list-style: none; }
.chip { padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid #DADDEB; font: 600 .85rem var(--font); color: var(--ink); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { display: flex; gap: 12px; align-items: flex-start; }
.list li svg { color: var(--royal); flex: none; margin-block-start: 3px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-block-start: 3px solid var(--royal); padding-block-start: 16px; }
.steps b { font: 800 .8rem var(--font); color: var(--royal); letter-spacing: .12em; }
.steps h3 { font-size: 1.1rem; margin-block: 8px 6px; }
.steps p { color: var(--mute); font-size: .9rem; margin: 0; }

/* ERP illustration (pure CSS, no screenshots) */
.screen { background: var(--black); border-radius: 16px; padding: 14px; box-shadow: 0 20px 40px rgba(23, 24, 28, .18); }
/* real ERP screenshots: a dark frame like a laptop screen; the caption under it */
.shot { display: block; background: var(--black); border-radius: 16px; padding: 10px; box-shadow: 0 20px 40px rgba(23, 24, 28, .18); color: var(--pale-text); }
.shot:hover { text-decoration: none; box-shadow: 0 24px 48px rgba(23, 24, 28, .26); }
.shot img { display: block; width: 100%; height: auto; border-radius: 8px; background: var(--white); }
.shot-cap { display: block; padding: 14px 8px 6px; font-size: .9rem; line-height: 1.5; }
.shot-cap b { display: block; color: var(--white); font-size: 1rem; margin-block-end: 2px; }
.shots { gap: 28px; }
.scr { background: var(--white); border-radius: 10px; height: 300px; display: grid; grid-template-columns: 110px 1fr; overflow: hidden; }
.scr-side { background: #1F2128; padding: 14px; display: grid; align-content: start; gap: 10px; }
.scr-side i { display: block; height: 9px; border-radius: 5px; background: #3A3D48; }
.scr-side i:first-child { background: var(--light); }
.scr-main { padding: 18px; }
.scr-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.scr-kpis i { display: block; height: 58px; border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(var(--royal), var(--royal)) 10px 28px / 60% 14px no-repeat, linear-gradient(#DADDEB, #DADDEB) 10px 10px / 40% 8px no-repeat; }
.scr-bars { display: flex; align-items: flex-end; gap: 10px; height: 160px; margin-block-start: 18px; border-block-end: 1px solid var(--line); }
.scr-bars i { flex: 1; background: var(--light); border-radius: 5px 5px 0 0; }
.scr-bars i:nth-child(2n) { background: var(--royal); }

/* call to action band */
.cta-band { background: var(--black); color: var(--pale-text); border-radius: 20px; padding: 44px 50px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-block-end: 6px; }
.cta-band p { margin: 0; }

/* contact form */
.form { display: grid; gap: 16px; }
.form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font: 700 .85rem var(--font); color: var(--ink); margin-block-end: 6px; }
.field input, .field select, .field textarea { width: 100%; font: 500 1rem var(--font); color: var(--ink); padding: 12px 14px; border: 1.5px solid #858BA1; border-radius: 10px; background: var(--white); }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--royal); outline: none; box-shadow: 0 0 0 3px rgba(47, 55, 139, .15); }
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { border-radius: 10px; padding: 12px 14px; font-weight: 600; font-size: .92rem; }
.note-ok { background: #E8F6EE; color: #17643A; }
.note-err { background: #FDECEC; color: #9B1C1C; }
.contact-box { background: var(--pale); border-radius: var(--radius); padding: 26px; display: grid; gap: 14px; align-content: start; }
.contact-box a { display: flex; gap: 12px; align-items: center; color: var(--ink); font-weight: 600; }
.contact-box small { display: block; font: 700 .72rem/1.3 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.contact-box em { display: block; font-style: normal; font-size: .85rem; color: var(--royal); }
.icon-dot.wa { background: #1E9E4F; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, .9fr); gap: 44px; align-items: start; }
.form-title { margin-block-end: 18px; }
.h3 { font-size: 1.25rem; font-weight: 800; }
.hint { font-size: .85rem; color: var(--mute); margin: 0; }
.req { font-weight: 500; color: var(--mute); }
.form-error, .form-ok { display: none; margin: 0; }
.form-error:target, .form-error.show, .form-ok.show { display: block; }
.form-error { scroll-margin-block-start: 110px; }
.form button[disabled] { opacity: .7; cursor: wait; }

/* footer */
.site-footer { background: var(--black); color: var(--pale-text); padding-block: 56px 26px; margin-block-start: 76px; font-size: .9rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer h2 { color: var(--white); font-size: .95rem; margin-block-end: 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--pale-text); }
.site-footer a:hover { color: var(--white); }
.site-footer .legal { border-block-start: 1px solid rgba(255, 255, 255, .12); margin-block-start: 36px; padding-block-start: 18px; font-size: .82rem; color: #9A9EB4; }
.wa-float { position: fixed; inset-inline-end: 22px; inset-block-end: 22px; width: 58px; height: 58px; border-radius: 50%; background: #179848; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); z-index: 45; }
.wa-float:hover { text-decoration: none; filter: brightness(1.05); }

/* prose pages (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-block: 28px 10px; }
.prose ul { padding-inline-start: 22px; }

/* phones and tablets */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .menu-btn svg + svg, .menu-btn[aria-expanded="true"] svg:first-child { display: none; }
  .menu-btn[aria-expanded="true"] svg + svg { display: block; }
  .nav { display: none; position: absolute; inset-block-start: 74px; inset-inline: 0; background: var(--black); flex-direction: column; align-items: stretch; padding: 10px 20px 22px; gap: 2px; border-block-start: 1px solid rgba(255, 255, 255, .08); max-block-size: calc(100vh - 74px); overflow-y: auto; }
  .nav.open { display: flex; }
  .drop-menu { position: static; display: block; box-shadow: none; background: transparent; padding: 0; padding-inline-start: 10px; min-width: 0; }
  .drop-menu a { color: #E6E8F2; }
  .drop-menu a svg { color: var(--light); }
  .drop-menu a:hover { background: rgba(255, 255, 255, .06); }
  .nav > a.header-cta { margin: 10px 0 0; justify-content: center; }
  .nav > a.header-wa { margin: 6px 0 0; padding: 10px 12px; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 10px; }
  .header-wa-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; color: #E6E8F2; }
  .split, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { padding-block: 56px 88px; }
  .hero-mark svg { width: 340px; }
  .form .row-2, .contact-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 32px 26px; }
  .site-footer .legal { padding-inline-end: 80px; }   /* room for the floating WhatsApp button */
  /* JavaScript off: no menu button, the menu is simply listed under the logo */
  html:not(.js) .menu-btn { display: none; }
  html:not(.js) .site-header { position: static; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .nav { display: flex; position: static; flex-basis: 100%; padding-inline: 0; border-block-start: 0; max-block-size: none; }
}
@media (max-width: 560px) {
  .grid-4, .steps, .site-footer .cols { grid-template-columns: 1fr; }
  .grid-5 { gap: 10px; }
  .module { padding: 14px; }
  .section { padding-block: 56px; }
  .paths { margin-block-start: -40px; }
  .scr { grid-template-columns: 70px 1fr; height: 240px; }
  .scr-bars { height: 110px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* language switch and the second language on the 404 page */
.nav > a.lang-switch { margin-inline-start: 4px; border: 1px solid rgba(255, 255, 255, .25); }
.alt-lang { margin-block-start: 40px; padding-block-start: 28px; border-block-start: 1px solid var(--line); }
.alt-lang p { margin-block: 8px 16px; }

/* Arabic (right to left): Latin letters stay Montserrat, Arabic letters use Tajawal */
html[lang="ar"] { --font: Montserrat, Tajawal, "Segoe UI", Tahoma, Arial, sans-serif; }
html[lang="ar"] body, html[lang="ar"] body * { letter-spacing: 0 !important; }   /* spacing would break joined letters */
html[lang="ar"] body { line-height: 1.8; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4 { line-height: 1.4; }
[dir="rtl"] .i-arrow { transform: scaleX(-1); }
