:root {
  --navy: #1f3a5c;
  --navy-deep: #142840;
  --slate: #5e7385;
  --mist: #afbdc9;
  --bg: #ffffff;
  --bg-alt: #f3f5f8;
  --ink: #1b2533;
  --muted: #5b6878;
  --line: #e2e7ed;
  --accent: #c9a24a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 40, 64, .08);
  --font: "IBM Plex Sans Arabic", "Work Sans", system-ui, sans-serif;
}
html[lang="en"] { --font: "Work Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* language switching */
html[lang="ar"] [lang="en"] { display: none !important; }
html[lang="en"] [lang="ar"] { display: none !important; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(20,40,64,.06); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand img { height: 44px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { padding: 8px 12px; font-size: .93rem; font-weight: 500; color: var(--ink); border-radius: 8px; transition: color .2s, background .2s; }
.main-nav a:hover { color: var(--navy); background: var(--bg-alt); }
.main-nav .nav-cta { background: var(--navy); color: #fff; margin-inline-start: 8px; }
.main-nav .nav-cta:hover { background: var(--navy-deep); color: #fff; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.lang-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font: 600 .9rem var(--font); color: var(--navy); cursor: pointer; transition: background .2s; }
.lang-btn:hover { background: var(--bg-alt); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 22px; height: 2px; background: var(--navy); transition: .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 10px; font: 600 1rem var(--font); cursor: pointer; border: 2px solid transparent; transition: transform .2s, background .2s, color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; color: #fff; padding-top: 72px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: slowzoom 20s ease-out forwards; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,40,64,.92) 0%, rgba(31,58,92,.75) 50%, rgba(31,58,92,.35) 100%); }
html[dir="rtl"] .hero-bg::after { background: linear-gradient(260deg, rgba(20,40,64,.92) 0%, rgba(31,58,92,.75) 50%, rgba(31,58,92,.35) 100%); }
@keyframes slowzoom { to { transform: scale(1); } }
.hero-inner { position: relative; padding: 80px 0 140px; max-width: 1200px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); line-height: 1.15; font-weight: 700; margin: 14px 0 22px; letter-spacing: -.01em; }
.hero-lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 620px; color: rgba(255,255,255,.85); font-weight: 300; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-strip { position: absolute; inset: auto 0 0 0; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); border-top: 1px solid rgba(255,255,255,.15); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-grid > div { padding: 22px 16px; display: flex; flex-direction: column; border-inline-start: 1px solid rgba(255,255,255,.15); }
.strip-grid > div:first-child { border-inline-start: 0; }
.strip-grid strong { font-family: "Work Sans", sans-serif; font-size: 1.35rem; font-weight: 600; }
.strip-grid span { font-size: .85rem; color: rgba(255,255,255,.75); }

/* ---------- sections ---------- */
.section { padding: 110px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-deep); color: #fff; }
.section-head { max-width: 760px; margin-bottom: 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.eyebrow.light { color: var(--mist); }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); line-height: 1.25; font-weight: 700; color: var(--navy); margin-bottom: 18px; }
.section-dark h2 { color: #fff; }
.lead { font-size: 1.08rem; color: var(--muted); }
.section-dark .lead { color: rgba(255,255,255,.72); }
p + p { margin-top: 14px; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.about-text > p { color: var(--muted); }
.about-text strong { color: var(--navy); }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.vm-card { padding: 24px; border-radius: var(--radius); background: var(--bg-alt); border-top: 3px solid var(--navy); }
.vm-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 8px; }
.vm-card p { font-size: .94rem; color: var(--muted); }
.about-media { position: relative; }
.about-media > img { border-radius: var(--radius); aspect-ratio: 4/5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-badge { position: absolute; bottom: -28px; inset-inline-start: -28px; background: var(--navy); padding: 26px 30px; border-radius: var(--radius); box-shadow: var(--shadow); }
.about-badge img { width: 150px; }

/* ---------- certs ---------- */
.certs { padding: 60px 0 40px; }
.certs-inner { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.certs-inner img { width: min(820px, 100%); margin-top: 10px; }

/* ---------- approach ---------- */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.approach-card { background: #fff; padding: 32px 26px; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .3s; position: relative; overflow: hidden; }
.approach-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--navy); transform: scaleX(0); transition: transform .35s; transform-origin: left; }
.approach-card:hover { transform: translateY(-6px); }
.approach-card:hover::after { transform: scaleX(1); }
.approach-card .num { font-family: "Work Sans", sans-serif; font-size: 2.4rem; font-weight: 700; color: var(--mist); line-height: 1; margin-bottom: 18px; }
.approach-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 10px; }
.approach-card p { font-size: .94rem; color: var(--muted); }

/* ---------- divisions ---------- */
.div-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; }
.div-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 26px 8px; border-radius: var(--radius); border: 1px solid var(--line); transition: background .25s, transform .25s, border-color .25s; }
.div-item:hover { background: var(--navy); border-color: var(--navy); transform: translateY(-4px); }
.div-item:hover .div-ico { background: rgba(255,255,255,.12); color: #fff; }
.div-item:hover span { color: #fff; }
.div-ico { width: 62px; height: 62px; border-radius: 50%; background: var(--bg-alt); color: var(--navy); display: grid; place-items: center; transition: .25s; }
.div-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.div-item span { font-size: .9rem; font-weight: 600; color: var(--ink); }

/* ---------- products ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; transition: transform .3s, border-color .3s; text-align: start; color: inherit; font: inherit; }
.prod-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.3); }
.prod-img { aspect-ratio: 16/10; overflow: hidden; background: #fff; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prod-img.contain img { object-fit: contain; padding: 14px; }
.prod-card:hover .prod-img img { transform: scale(1.06); }
.prod-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 1.12rem; margin-bottom: 8px; line-height: 1.4; }
.prod-body p { font-size: .9rem; color: rgba(255,255,255,.68); flex: 1; }
.prod-more { margin-top: 16px; font-size: .88rem; font-weight: 600; color: var(--mist); display: inline-flex; gap: 6px; align-items: center; }
html[dir="rtl"] .prod-more .arr { transform: scaleX(-1); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(10,20,34,.7); backdrop-filter: blur(4px); }
.modal.open { display: flex; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: #fff; color: var(--ink); width: min(820px, 100%); max-height: 90vh; overflow: auto; border-radius: var(--radius); position: relative; }
.modal-box > img { width: 100%; height: 240px; object-fit: cover; }
.modal-box > img.contain { object-fit: contain; background: #f6f7f9; padding: 16px; }
.modal-content { padding: 30px 32px 34px; }
.modal-content h3 { font-size: 1.5rem; color: var(--navy); margin-bottom: 10px; }
.modal-content > p { color: var(--muted); margin-bottom: 20px; }
.modal-list { display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; }
html[dir="rtl"] .modal-list { justify-content: flex-end; }
.modal-list li { background: var(--bg-alt); color: var(--navy); padding: 6px 12px; border-radius: 999px; font: 500 .85rem "Work Sans", sans-serif; }
.modal-close { position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: var(--navy); font-size: 1.5rem; cursor: pointer; box-shadow: var(--shadow); line-height: 1; }
.modal-cta { margin-top: 26px; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; box-shadow: var(--shadow); }
.split-media.stack { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.split-media.stack img { aspect-ratio: 3/4; }
.split-media.stack img:last-child { margin-top: 48px; }
.split-text > p { color: var(--muted); }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-inline-start: 34px; }
.check-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }
.tag-list { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; direction: ltr; }
html[dir="rtl"] .tag-list { justify-content: flex-end; }
.tag-list li { background: #fff; border: 1px solid var(--line); color: var(--navy); padding: 7px 14px; border-radius: 999px; font: 500 .86rem "Work Sans", sans-serif; }

/* ---------- cta band ---------- */
.cta-band { position: relative; background-size: cover; background-position: center; background-attachment: fixed; color: #fff; padding: 110px 0; text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(20,40,64,.85); }
.cta-inner { position: relative; max-width: 780px; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); margin-bottom: 30px; font-size: 1.1rem; }
.cta-band .btn-primary { background: #fff; color: var(--navy); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.info-list { display: grid; gap: 20px; margin: 10px 0 28px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 12px; background: var(--bg-alt); fill: none; stroke: var(--navy); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-list div { display: flex; flex-direction: column; color: var(--muted); }
.info-list strong { color: var(--ink); font-size: .95rem; }
.info-list a:hover { color: var(--navy); text-decoration: underline; }
html[dir="rtl"] .info-list a, html[dir="rtl"] .info-list [dir="ltr"] { text-align: right; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 240px; }
.map iframe { width: 100%; height: 100%; border: 0; }
.contact-form { background: var(--bg-alt); padding: 36px; border-radius: var(--radius); display: grid; gap: 16px; }
.contact-form h3 { font-size: 1.4rem; color: var(--navy); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.contact-form input, .contact-form select, .contact-form textarea { font: 400 1rem var(--font); padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s; }
html[dir="rtl"] .contact-form input[dir="ltr"] { text-align: right; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(31,58,92,.12); }
.contact-form textarea { resize: vertical; }
.form-note { font-size: .82rem; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { width: 160px; margin-bottom: 16px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer a { display: block; margin-bottom: 8px; transition: color .2s; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: .85rem; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg { animation: none; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .div-grid { grid-template-columns: repeat(4, 1fr); }
  .approach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .menu-btn { display: flex; }
  .main-nav { position: fixed; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(20,40,64,.1); transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .3s, opacity .3s, visibility .3s; }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav a { padding: 12px; }
  .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .about-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse .split-media { order: 0; }
  .about-media { max-width: 520px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-grid > div:nth-child(3) { border-inline-start: 0; }
  .strip-grid > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.15); }
  .hero-inner { padding-bottom: 200px; }
  .cta-band { background-attachment: scroll; }
}
@media (max-width: 640px) {
  .section { padding: 76px 0; }
  .brand img { height: 36px; }
  .div-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .div-ico { width: 52px; height: 52px; }
  .approach-grid, .prod-grid, .vm-grid, .contact-form .row, .footer-grid { grid-template-columns: 1fr; }
  .strip-grid > div { padding: 14px 10px; }
  .strip-grid strong { font-size: 1.05rem; }
  .strip-grid span { font-size: .75rem; }
  .about-badge { inset-inline-start: 12px; bottom: -20px; padding: 16px 20px; }
  .about-badge img { width: 110px; }
  .contact-form { padding: 24px 18px; }
  .modal-content { padding: 24px 20px; }
  .hero-actions .btn { flex: 1; }
}
