:root {
  --navy: #13509b;
  --navy-dark: #0c2f5c;
  --navy-deep: #081f3d;
  --orange: #f37329;
  --orange-dark: #d85f18;
  --brand-navy: #1e4c80;
  --ink: #1b2533;
  --muted: #5d6b7e;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --heading: #0c2f5c;
  --accent: #13509b;
  --header-bg: rgba(255,255,255,.97);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(12, 47, 92, .10);
  --font: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --container: 1200px;
}
/* dark theme: chosen with the header moon button, remembered per visitor */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #dbe4f0;
  --muted: #9fb0c6;
  --line: #22344e;
  --bg: #0a1626;
  --bg-soft: #0e1d33;
  --surface: #12233b;
  --heading: #eef3fa;
  --accent: #6ea8ee;
  --header-bg: rgba(10,22,38,.96);
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
html[lang="en"] { --font: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); transition: background-color .3s, color .3s; line-height: 1.75; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding: 96px 0; }
.section.soft { background: var(--bg-soft); }

/* ---------- headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--orange); font-weight: 700; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--orange); }
h1, h2, h3 { line-height: 1.3; color: var(--heading); }
/* English headings use Marcellus, the serif of the MARVEL wordmark */
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] .eyebrow { font-family: "Marcellus", serif; letter-spacing: .01em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 1.2rem; font-weight: 700; }
.lead { color: var(--muted); font-size: 1.08rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 1rem; border: 2px solid transparent; cursor: pointer; transition: .25s; font-family: inherit; }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy-dark); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); }
.btn svg { width: 18px; height: 18px; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.site-header.scrolled, .site-header.solid { background: var(--header-bg); box-shadow: 0 2px 20px rgba(0,0,0,.06); backdrop-filter: blur(8px); }
/* logo: pin mark + original serif wordmark (cut from the logo file) + tagline — never mirrored in RTL */
.brand { display: flex; align-items: center; gap: 12px; direction: ltr; }
.brand-mark { height: 62px; width: auto; }
.brand-text { display: flex; flex-direction: column; width: 180px; }
.brand-word { width: 100%; height: auto; }
.brand-word.navy { display: none; }
.site-header:not(.scrolled):not(.solid):not(.menu-open) .brand-mark, .site-header:not(.scrolled):not(.solid):not(.menu-open) .brand-word.white { filter: drop-shadow(0 2px 6px rgba(4,18,40,.55)); }
.site-header:not(.scrolled):not(.solid):not(.menu-open) .brand-sub { text-shadow: 0 1px 6px rgba(4,18,40,.7); }
.brand-sub { font-family: "Marcellus", serif; font-size: .86rem; font-weight: 600; color: #fff; margin-top: 4px; text-align: justify; text-align-last: justify; line-height: 1; transition: .3s; }
.scrolled .brand-word.white, .solid .brand-word.white { display: none; }
.scrolled .brand-word.navy, .solid .brand-word.navy { display: block; }
.scrolled .brand-sub, .solid .brand-sub { color: var(--brand-navy); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 8px 14px; border-radius: 8px; color: #fff; font-weight: 500; transition: .2s; }
.nav a:hover, .nav a.active { color: var(--orange); }
.scrolled .nav a, .solid .nav a { color: var(--ink); }
.scrolled .nav a:hover, .scrolled .nav a.active, .solid .nav a:hover, .solid .nav a.active { color: var(--orange); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn { background: transparent; border: 1.5px solid rgba(255,255,255,.6); color: #fff; padding: 6px 14px; border-radius: 999px; cursor: pointer; font-weight: 600; font-family: "Inter", "IBM Plex Sans Arabic", sans-serif; transition: .2s; }
.scrolled .lang-btn, .solid .lang-btn { border-color: var(--line); color: var(--accent); }
.lang-btn:hover { border-color: var(--orange); color: var(--orange); }
.theme-btn { width: 38px; height: 38px; padding: 0; display: grid; place-items: center; }
.theme-btn svg { width: 18px; height: 18px; }
.header-actions .btn { padding: 9px 20px; font-size: .92rem; }
.menu-btn { display: none; background: none; border: 0; cursor: pointer; width: 42px; height: 42px; color: #fff; }
.scrolled .menu-btn, .solid .menu-btn { color: var(--heading); }
.menu-btn svg { width: 28px; height: 28px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.05); animation: heroZoom 18s ease-out forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,31,61,.92) 0%, rgba(12,47,92,.78) 50%, rgba(12,47,92,.35) 100%); }
html[dir="rtl"] .hero::after { background: linear-gradient(-100deg, rgba(8,31,61,.92) 0%, rgba(12,47,92,.78) 50%, rgba(12,47,92,.35) 100%); }
.hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 80px; }
.hero-content { max-width: 680px; }
/* home hero: brand photo with the surveyor on the left; the text always sits on the right, over the city */
.hero:has(.hero-media) { background: #061a38; }
html .hero:has(.hero-media)::after, html[dir="rtl"] .hero:has(.hero-media)::after { display: block; z-index: 1; background: linear-gradient(to left, rgba(6,26,56,.72) 0%, rgba(6,26,56,.5) 36%, rgba(6,26,56,.1) 58%, rgba(6,26,56,0) 70%), linear-gradient(to bottom, rgba(6,26,56,.45) 0%, rgba(6,26,56,0) 18%); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 20% 50%; }
.hero:has(.hero-media) h1 { text-shadow: 0 2px 14px rgba(4,18,40,.65); }
.hero:has(.hero-media) p { color: #fff; font-weight: 500; font-size: 1.2rem; line-height: 1.95; text-shadow: 0 1px 2px rgba(4,18,40,.9), 0 2px 16px rgba(4,18,40,.85); }
.hero:has(.hero-media) .hero-content { max-width: 560px; margin-left: auto; margin-right: 0; }
/* daylight variant: white veil on the text side, navy text, white top bar */
html .hero-day.hero:has(.hero-media)::after, html[dir="rtl"] .hero-day.hero:has(.hero-media)::after { background: linear-gradient(to left, rgba(255,255,255,.88) 0%, rgba(255,255,255,.72) 32%, rgba(255,255,255,.2) 52%, rgba(255,255,255,0) 62%); }
.hero-day.hero:has(.hero-media) { background: var(--bg); }
.hero-day .hero-media { top: 92px; }
.hero-day .hero-media img { filter: brightness(1.08) saturate(1.05); object-position: 20% 30%; }
.hero-day.hero h1, .hero-day.hero:has(.hero-media) h1 { color: var(--heading); text-shadow: none; }
.hero-day.hero p, .hero-day.hero:has(.hero-media) p { color: #1c2a3d; text-shadow: 0 0 18px rgba(255,255,255,.9); }
.hero-day .btn-outline { border-color: var(--navy); color: var(--accent); }
.hero-day .btn-outline:hover { background: var(--navy); color: #fff; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 700; margin-bottom: 20px; }
.hero h1 span { color: var(--orange); white-space: nowrap; }
.hero p { font-size: 1.15rem; color: rgba(255,255,255,.88); margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }


/* inner-page banners fill the screen like the home hero, whatever the text length or language */
.page-hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; padding: 92px 0 0; display: flex; align-items: center; color: #fff; background: var(--navy-deep); overflow: hidden; }
.page-hero .hero-bg { animation: none; transform: none; opacity: 1; }
/* start the photo under the white header so its top is not hidden */
.page-hero .hero-bg.below-header { top: 92px; background-position: center top; }
.page-hero .hero-bg.pos-contact { background-position: 60% 56%; }
/* shade only the text side so the photo itself stays clear (text sits right in Arabic, left in English) */
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(6,26,56,.78) 0%, rgba(6,26,56,.55) 34%, rgba(6,26,56,.12) 58%, rgba(6,26,56,0) 72%), linear-gradient(to bottom, rgba(6,26,56,.35) 0%, rgba(6,26,56,0) 22%); }
html[dir="rtl"] .page-hero::after { background: linear-gradient(to left, rgba(6,26,56,.78) 0%, rgba(6,26,56,.55) 34%, rgba(6,26,56,.12) 58%, rgba(6,26,56,0) 72%), linear-gradient(to bottom, rgba(6,26,56,.35) 0%, rgba(6,26,56,0) 22%); }
.page-hero h1, .page-hero p, .page-hero .crumbs { text-shadow: 0 2px 12px rgba(4,18,40,.55); }
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.85); max-width: 640px; font-size: 1.08rem; }
/* photo subject on the text side: move the Arabic text to the other side on wide screens */
@media (min-width: 641px) {
  html[dir="rtl"] .page-hero.flip .container { display: flex; flex-direction: column; align-items: flex-end; }
  html[dir="rtl"] .page-hero.flip::after { background: linear-gradient(to right, rgba(6,26,56,.78) 0%, rgba(6,26,56,.55) 34%, rgba(6,26,56,.12) 58%, rgba(6,26,56,0) 72%), linear-gradient(to bottom, rgba(6,26,56,.35) 0%, rgba(6,26,56,0) 22%); }
}
.crumbs { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 14px; }
.crumbs a:hover { color: var(--orange); }

/* ---------- stats ---------- */
.clients-stats { margin-bottom: 44px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.stat { padding: 32px 24px; text-align: center; border-inline-end: 1px solid var(--line); }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-size: 2.3rem; color: var(--accent); font-family: "Inter", sans-serif; line-height: 1.2; }
.stat b em { color: var(--orange); font-style: normal; }
.stat span { color: var(--muted); font-size: .95rem; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; transition: .3s; position: relative; overflow: hidden; }
.card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 3px; background: var(--orange); transform: scaleX(0); transform-origin: right; transition: .35s; }
html[dir="ltr"] .card::before { transform-origin: left; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .icon { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; background: rgba(19,80,155,.08); color: var(--accent); margin-bottom: 20px; transition: .3s; }
.card:hover .icon { background: var(--navy); color: #fff; }
.card .icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { margin-top: 14px; }
.card .card-sub { color: var(--orange); font-weight: 600; font-size: .95rem; margin: -4px 0 10px; }
.card li { position: relative; padding-inline-start: 22px; color: var(--muted); font-size: .94rem; margin-bottom: 6px; }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.card .more { display: inline-flex; margin-top: 16px; color: var(--accent); font-weight: 600; font-size: .94rem; }
.card .more:hover { color: var(--orange); }

/* ---------- business lines ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.line-card { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; color: #fff; display: flex; align-items: flex-end; }
.line-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.line-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,31,61,.05) 20%, rgba(8,31,61,.92) 100%); }
.line-card:hover img { transform: scale(1.07); }
.line-card .body { position: relative; z-index: 2; padding: 30px; }
.line-card .num { font-family: "Inter", sans-serif; color: var(--orange); font-weight: 700; font-size: .9rem; }
.line-card h3 { color: #fff; font-size: 1.45rem; margin: 6px 0 8px; }
.line-card p { color: rgba(255,255,255,.85); font-size: .96rem; }

/* ---------- split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
/* about page: company introduction */
.intro-box { max-width: 900px; margin: 0 auto; text-align: center; }
.intro-box .lead { margin-top: 16px; }
.intro-tagline { color: var(--orange); font-size: 1.3rem; font-weight: 700; margin: -4px 0 18px; }
.intro-closing { margin: 30px auto 0; display: inline-block; background: var(--navy-dark); color: #fff; font-weight: 600; font-size: 1.1rem; padding: 14px 28px; border-radius: 14px; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.split-media .badge { position: absolute; bottom: -26px; inset-inline-end: -10px; background: var(--orange); color: #fff; padding: 22px 26px; border-radius: var(--radius); box-shadow: var(--shadow); max-width: 220px; }
.split-media .badge b { font-size: 1.05rem; display: block; }
.split-media .badge span { font-size: .85rem; opacity: .9; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 26px 0 32px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.checks svg { flex: none; width: 22px; height: 22px; color: var(--orange); margin-top: 3px; }
.why-title { margin: 28px 0 0; font-size: 1.25rem; color: var(--heading); }
.why-list { gap: 18px 28px; margin-top: 16px; }
.why-list b { display: block; font-weight: 700; color: var(--heading); }
.why-list p { margin: 4px 0 0; font-weight: 400; font-size: .95rem; line-height: 1.75; color: var(--muted, #5b6b80); }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; padding: 28px 24px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: "Inter", sans-serif; font-weight: 800; font-size: 2.6rem; color: rgba(19,80,155,.1); position: absolute; top: 12px; inset-inline-end: 20px; line-height: 1; }
.step h3 { margin-bottom: 8px; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: .94rem; }

/* ---------- equipment ---------- */
.equip-group { text-align: center; font-size: 1.2rem; color: var(--heading); margin: 40px 0 18px; }
.equip-group:first-of-type { margin-top: 0; }
.equip { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; --cols: 5; }
.equip-item { width: calc((100% - (var(--cols) - 1) * 20px) / var(--cols)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px 18px; text-align: center; transition: .3s; }
/* 11 total stations read better as 6 + 5 on wide screens */
@media (min-width: 1081px) { .equip.equip-6 { --cols: 6; } }
.equip-item:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.equip-item img { height: 150px; width: 100%; object-fit: contain; margin-bottom: 12px; }
.equip-item b { display: block; color: var(--heading); font-size: .98rem; }
.equip-item span { color: var(--muted); font-size: .85rem; }

/* ---------- projects ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filters button { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 20px; border-radius: 999px; font-family: inherit; font-size: .95rem; cursor: pointer; color: var(--ink); transition: .2s; }
.filters button:hover { border-color: var(--orange); color: var(--orange); }
.filters button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3.2; cursor: pointer; background: var(--navy-deep); }
.project img { width: 100%; height: 100%; object-fit: cover; transition: .6s; }
.project::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,31,61,.92)); }
.project:hover img { transform: scale(1.07); }
.project .info { position: absolute; inset: auto 0 0; padding: 22px; z-index: 2; color: #fff; }
.project .tag { display: inline-block; background: var(--orange); font-size: .78rem; padding: 2px 12px; border-radius: 999px; margin-bottom: 8px; }
.project h3 { color: #fff; font-size: 1.15rem; }
.project p { color: rgba(255,255,255,.8); font-size: .88rem; }
.project .count { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; font-size: .8rem; padding: 3px 10px; border-radius: 999px; display: flex; gap: 6px; align-items: center; }
.project .count svg { width: 14px; height: 14px; }
.project.hide { display: none; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,15,30,.94); display: none; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; max-width: 100%; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox .cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #fff; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; display: grid; place-items: center; }
.lightbox button:hover { background: var(--orange); }
.lb-close { top: 18px; inset-inline-end: 18px; }
.lb-prev { inset-inline-start: 14px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 14px; top: 50%; translate: 0 -50%; }

/* ---------- clients ---------- */
.client-logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.client-logo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); height: 120px; padding: 18px; display: grid; place-items: center; transition: .3s; }
.client-logo img { max-width: 100%; max-height: 84px; object-fit: contain; }
.client-logo:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
/* ---------- app band ---------- */
.app-band { background: linear-gradient(120deg, var(--navy-dark), var(--navy)); color: #fff; border-radius: 22px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.app-band::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(243,115,41,.18); inset-inline-end: -120px; top: -140px; }
.app-band h2 { color: #fff; }
.app-band p { color: rgba(255,255,255,.85); margin-bottom: 24px; }
.app-band ul { display: grid; gap: 10px; position: relative; z-index: 1; }
.app-band li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 12px 18px; border-radius: 10px; font-size: .96rem; }

/* ---------- supporting services note ---------- */
.support-section { padding: 56px 0; }
.support-note { display: flex; align-items: center; gap: 18px; background: var(--bg-soft); border: 1px dashed var(--line); border-radius: var(--radius); padding: 20px 24px; }
.support-note .icon { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); color: var(--accent); display: grid; place-items: center; }
.support-note .icon svg { width: 22px; height: 22px; }
.support-note p { flex: 1; color: var(--muted); font-size: .97rem; }
.support-note b { color: var(--heading); }
.support-note .more { flex: none; color: var(--accent); font-weight: 600; }
.support-note .more:hover { color: var(--orange); }
@media (max-width: 640px) { .support-note { flex-direction: column; align-items: flex-start; } }

/* ---------- CTA ---------- */
.cta { background: var(--orange); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.cta .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { opacity: .92; }
.cta .btn-navy { background: var(--navy-deep); }
.cta::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 22px 22px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; }
.contact-list { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.contact-item .icon { flex: none; width: 50px; height: 50px; border-radius: 12px; background: rgba(243,115,41,.1); color: var(--orange); display: grid; place-items: center; }
.contact-item .icon svg { width: 24px; height: 24px; }
.contact-item b { display: block; color: var(--heading); margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--muted); display: block; }
.contact-item a:hover { color: var(--orange); }
.ltr { direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .contact-item .ltr { text-align: right; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form h3 { margin-bottom: 6px; font-size: 1.4rem; }
.form > p { color: var(--muted); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--heading); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 1rem; background: var(--bg-soft); transition: .2s; color: var(--ink); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); background: var(--surface); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: 12px; text-align: center; }
.form-status { font-size: .92rem; margin-top: 12px; text-align: center; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.ok { color: #1a7f4b; font-weight: 600; }
.form-status.err { color: #c0392b; font-weight: 600; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: wait; }
.map { margin-top: 40px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- legal info ---------- */
.legal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.legal div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.legal b { display: block; font-family: "Inter", sans-serif; font-size: 1.3rem; color: var(--accent); }
.legal span { color: var(--muted); font-size: .92rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding-top: 72px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand-name { color: #fff; }
.footer-mark { background: #fff; border-radius: 12px; padding: 5px; }
.site-footer p { margin-top: 18px; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--orange); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .88rem; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: .2s; }
.social a:hover { background: var(--orange); color: #fff; }
.social svg { width: 18px; height: 18px; }

/* ---------- dark theme details ---------- */
html[data-theme="dark"] .solid .brand-word.white, html[data-theme="dark"] .scrolled .brand-word.white, html[data-theme="dark"] .site-header.menu-open .brand-word.white { display: block; }
html[data-theme="dark"] .solid .brand-word.navy, html[data-theme="dark"] .scrolled .brand-word.navy, html[data-theme="dark"] .site-header.menu-open .brand-word.navy { display: none; }
html[data-theme="dark"] .solid .brand-sub, html[data-theme="dark"] .scrolled .brand-sub, html[data-theme="dark"] .site-header.menu-open .brand-sub { color: #fff; }
html[data-theme="dark"] .site-header.scrolled, html[data-theme="dark"] .site-header.solid { box-shadow: 0 2px 20px rgba(0,0,0,.4); border-bottom: 1px solid var(--line); }
/* home hero: dark veil on the text side instead of the white one */
html[data-theme="dark"] .hero-day.hero:has(.hero-media)::after { background: linear-gradient(to left, rgba(10,22,38,.9) 0%, rgba(10,22,38,.72) 32%, rgba(10,22,38,.2) 52%, rgba(10,22,38,0) 62%); }
html[data-theme="dark"] .hero-day .hero-media img { filter: none; }
html[data-theme="dark"] .hero-day.hero p, html[data-theme="dark"] .hero-day.hero:has(.hero-media) p { color: #dbe4f0; text-shadow: 0 1px 10px rgba(4,18,40,.8); }
html[data-theme="dark"] .hero-day .btn-outline { border-color: rgba(255,255,255,.7); color: #fff; }
html[data-theme="dark"] .hero-day .btn-outline:hover { background: #fff; color: var(--navy-dark); }
html[data-theme="dark"] .card .icon { background: rgba(110,168,238,.12); }
html[data-theme="dark"] .card:hover .icon { background: var(--navy); color: #fff; }
html[data-theme="dark"] .step::before { color: rgba(255,255,255,.07); }
html[data-theme="dark"] .filters button.active { color: #fff; }
html[data-theme="dark"] .field input:focus, html[data-theme="dark"] .field select:focus, html[data-theme="dark"] .field textarea:focus { border-color: var(--accent); }
html[data-theme="dark"] .form-status.ok { color: #4cc38a; }
html[data-theme="dark"] .form-status.err { color: #ff7b6b; }
/* logos and device photos are made for a white background, so they keep a white plate */
html[data-theme="dark"] .client-logo { background: #fff; border-color: transparent; }
html[data-theme="dark"] .equip-item img { background: #fff; border-radius: 10px; padding: 8px; }
html[data-theme="dark"] .site-footer { background: #061020; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .equip { --cols: 3; }
  .client-logos { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav { position: fixed; top: 92px; inset-inline: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: 14px 20px 24px; gap: 2px; box-shadow: 0 20px 30px rgba(0,0,0,.08); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { color: var(--ink) !important; padding: 12px; border-bottom: 1px solid var(--line); }
  .site-header.menu-open { background: var(--surface); }
  .site-header.menu-open .brand-word.white { display: none; }
  .site-header.menu-open .brand-word.navy { display: block; }
  .site-header.menu-open .brand-sub { color: var(--brand-navy); }
  .site-header.menu-open .menu-btn, .site-header.menu-open .lang-btn { color: var(--heading); border-color: var(--line); }
  .header-actions .btn { display: none; }
  .grid-3, .projects, .lines { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid, .app-band { grid-template-columns: 1fr; }
  .split { gap: 56px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero:has(.hero-media) { flex-direction: column; align-items: stretch; min-height: 0; }
  html .hero:has(.hero-media)::after, html[dir="rtl"] .hero:has(.hero-media)::after { display: none; }
  .hero:has(.hero-media) .container { padding-top: 8px; padding-bottom: 56px; }
  .hero:has(.hero-media) .hero-content { max-width: none; margin: 0; }
  .hero-day.hero:has(.hero-media) { background: var(--bg-soft); }
  .hero-day .hero-media { top: auto; margin-top: 84px; height: 380px; }
  .hero-day .hero-media img { -webkit-mask-image: linear-gradient(to bottom, #000 0, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, #000 0, #000 86%, transparent 100%); }
  .hero-media { position: relative; inset: auto; width: 100%; height: 420px; }
  .hero-media img { object-position: 12% 50%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 86%, transparent 100%); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  /* phones: text sits at the bottom over a dark band, photo stays clear above it */
  .page-hero { align-items: flex-end; padding-bottom: 56px; }
  html .page-hero::after, html[dir="rtl"] .page-hero::after { background: linear-gradient(to top, rgba(6,26,56,.9) 0%, rgba(6,26,56,.7) 30%, rgba(6,26,56,.15) 55%, rgba(6,26,56,0) 70%); }
  .page-hero .hero-bg.pos-left { background-position: 32% center; }
  .section { padding: 68px 0; }
  .container { padding-inline: 16px; }
  .grid-3, .grid-2, .grid-4, .projects, .lines, .steps, .legal, .checks, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .equip { --cols: 2; gap: 12px; }
  .equip-item { width: calc((100% - 12px) / 2); }
  .client-logos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .client-logo { height: 96px; padding: 14px; }
  .client-logo img { max-height: 64px; }
  .line-card { min-height: 320px; }
  .app-band { padding: 34px 24px; }
  .form { padding: 24px 18px; }
  .site-header .bar { height: 84px; }
  .page-hero .hero-bg.below-header { top: 84px; }
  .page-hero .hero-bg.pos-contact { background-position: 76% center; }
  .nav { top: 84px; }
  .brand-mark { height: 50px; }
  .brand-text { width: 140px; }
  .brand-sub { font-size: .68rem; }
  .stat { padding: 22px 12px; }
  .stat b { font-size: 1.8rem; }
  .lightbox { padding: 60px 12px; }
  .hero:has(.hero-media) p { font-size: 1.06rem; line-height: 1.9; }
  .split-media .badge { inset-inline-end: 10px; }
}
