:root {
  --ink: #14202b;
  --muted: #647181;
  --line: #d7e0e8;
  --steel: #edf3f7;
  --panel: #f8fbfd;
  --navy: #071d35;
  --petrol: #0d4c63;
  --aqua: #29b8d0;
  --white: #fff;
  --shadow: 0 24px 70px rgba(7, 29, 53, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7,29,53,.045) 1px, transparent 1px),
    linear-gradient(rgba(7,29,53,.035) 1px, transparent 1px),
    #ffffff;
  background-size: 72px 72px;
  font-family: "Cairo", "Inter", Arial, sans-serif;
}
body.en { direction: ltr; font-family: "Inter", "Cairo", Arial, sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 9px clamp(16px, 5vw, 74px);
  color: rgba(255,255,255,.84);
  background: var(--navy);
  font-size: .82rem;
  font-weight: 800;
}
.topbar div { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar a { text-decoration: none; color: rgba(255,255,255,.88); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 13px clamp(16px, 5vw, 74px);
  background: rgba(248, 251, 253, .94);
  border-bottom: 1px solid rgba(215,224,232,.9);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 230px; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 50%; background: var(--white); border: 1px solid var(--line); padding: 4px; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 1rem; line-height: 1.3; }
.brand small { color: var(--petrol); font-size: .78rem; font-weight: 800; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(16px,2.2vw,34px); color: #2c3a48; font-size: .92rem; font-weight: 800; }
.nav-links a { position: relative; text-decoration: none; padding-block: 8px; }
.nav-links a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--aqua); transform: scaleX(0); transform-origin: center; transition: transform .22s ease; }
.nav-links a:hover::after { transform: scaleX(1); }

.menu-toggle { display: none; width: 46px; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.menu-toggle span { display: block; width: 21px; height: 2px; margin: 5px auto; background: var(--navy); border-radius: 99px; transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.header-actions, .hero-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle, .header-call, .btn { min-height: 44px; border-radius: 6px; font-family: inherit; font-weight: 800; }
.lang-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); background: var(--white); color: var(--muted); cursor: pointer; }
.lang-toggle span { min-width: 34px; padding: 8px 9px; border-radius: 4px; line-height: 1; }
.lang-toggle .active-lang { color: var(--white); background: var(--petrol); }
.header-call, .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.header-call { padding: 0 18px; color: var(--white); background: var(--petrol); }
.btn { padding: 13px 22px; border: 1px solid transparent; cursor: pointer; }
.btn.primary { color: var(--white); background: linear-gradient(135deg,var(--petrol),var(--navy)); box-shadow: 0 16px 34px rgba(7,29,53,.18); }
.btn.secondary { color: var(--navy); background: transparent; border-color: #b9c9d5; }

.hero {
  min-height: calc(100vh - 112px);
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(390px,1.05fr);
  align-items: center;
  gap: clamp(34px,5vw,78px);
  padding: clamp(56px,7vw,112px) clamp(18px,6vw,86px);
  background:
    linear-gradient(115deg, rgba(237,243,247,.92) 0%, rgba(255,255,255,.75) 52%, rgba(41,184,208,.08) 100%);
  overflow: hidden;
}
.hero-copy { max-width: 760px; }
.eyebrow, .section-kicker { margin: 0 0 14px; color: var(--petrol); font-size: .92rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 24px; color: var(--navy); font-size: clamp(2.4rem,5.4vw,5rem); line-height: 1.04; letter-spacing: 0; }
h2 { margin-bottom: 18px; color: var(--navy); font-size: clamp(1.8rem,3.3vw,3rem); line-height: 1.18; letter-spacing: 0; }
h3 { margin-bottom: 10px; color: var(--navy); font-size: 1.16rem; line-height: 1.35; }
.hero-text, .section-body > p, .page-hero p { color: var(--muted); font-size: clamp(1rem,1.55vw,1.15rem); line-height: 1.9; font-weight: 650; }
.spec-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
.spec-line span { padding: 9px 12px; color: var(--petrol); background: rgba(41,184,208,.10); border: 1px solid rgba(41,184,208,.26); border-radius: 999px; font-size: .84rem; font-weight: 900; }
.hero-media { position: relative; min-height: 590px; border-radius: 0; }
.hero-media::before { content: ""; position: absolute; inset: 32px -22px -22px 42px; border: 1px solid rgba(13,76,99,.25); background: repeating-linear-gradient(135deg, rgba(13,76,99,.06), rgba(13,76,99,.06) 1px, transparent 1px, transparent 14px); }
.hero-media img { position: relative; width: 100%; height: 590px; object-fit: cover; box-shadow: var(--shadow); clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%); }
.hero-stat { position: absolute; inset: auto 24px 24px auto; width: min(285px,calc(100% - 48px)); padding: 18px 20px; color: var(--white); background: rgba(7,29,53,.92); border-right: 4px solid var(--aqua); }
.hero-stat strong { display: block; font-size: 2.2rem; line-height: 1; }
.hero-stat span { color: rgba(255,255,255,.78); font-weight: 800; }

.trust-strip { display: grid; grid-template-columns: repeat(3,1fr); border-block: 1px solid var(--line); background: var(--white); }
.trust-strip div { min-height: 132px; padding: 28px clamp(18px,4vw,52px); border-inline-end: 1px solid var(--line); background: linear-gradient(180deg,#fff,var(--panel)); }
.trust-strip div:last-child { border-inline-end: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip strong { color: var(--navy); font-size: 1.12rem; margin-bottom: 6px; }
.trust-strip span { color: var(--muted); font-weight: 750; }

.section { padding: clamp(66px,8vw,114px) clamp(18px,6vw,86px); }
.soft-section, .clients-section { background: linear-gradient(180deg,var(--steel),#fff); }
.split, .operations, .contact-page { display: grid; grid-template-columns: minmax(0,.9fr) minmax(340px,1.1fr); gap: clamp(30px,5vw,78px); align-items: start; }
.section-body { max-width: 760px; }
.section-head { max-width: 860px; margin-bottom: 34px; }
.section-head.with-action { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.vision-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.vision-grid article, .service-card, .logo-panel, .contact-form, .contact-card { border: 1px solid var(--line); background: rgba(255,255,255,.88); }
.vision-grid article { padding: 24px; border-radius: 0; border-top: 4px solid var(--aqua); }
.vision-grid span { display: inline-block; margin-bottom: 10px; color: var(--petrol); font-weight: 900; }
.vision-grid p, .service-card p { margin-bottom: 0; color: var(--muted); line-height: 1.8; font-weight: 650; }

.service-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; counter-reset: services; }
.service-card { min-height: 260px; padding: 28px; border-radius: 0; box-shadow: none; transition: transform .22s ease, background .22s ease, border-color .22s ease; }
.service-card:hover { transform: translateY(-6px); background: #fff; border-color: rgba(41,184,208,.55); }
.service-card > span { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 24px; color: var(--white); background: var(--petrol); border-radius: 2px; font-weight: 900; }

.ops-image img { width: 100%; height: 520px; object-fit: cover; box-shadow: var(--shadow); clip-path: polygon(0 0, 92% 0, 100% 12%, 100% 100%, 0 100%); }
.check-list { display: grid; gap: 14px; padding: 0; margin: 28px 0 0; list-style: none; }
.check-list li { padding: 16px 20px; color: #344054; background: var(--panel); border: 1px solid var(--line); border-inline-start: 4px solid var(--aqua); font-weight: 800; }

.project-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.project-grid article { position: relative; min-height: 280px; overflow: hidden; background: var(--navy); }
.project-grid img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; opacity: .86; transition: transform .28s ease, opacity .28s ease, filter .28s ease; }
.project-grid article:hover img { transform: scale(1.05); opacity: .98; filter: saturate(1.05); }
.project-grid span { position: absolute; inset: auto 14px 14px; width: fit-content; max-width: calc(100% - 28px); padding: 10px 14px; color: var(--white); background: rgba(7,29,53,.88); border-inline-start: 3px solid var(--aqua); font-weight: 900; }
.full-gallery article:nth-child(3n + 1) { min-height: 360px; }

.logo-panel { padding: 26px 0; margin-top: 18px; overflow: hidden; background: rgba(255,255,255,.78); border-radius: 0; }
.logo-panel h3 { margin-bottom: 20px; padding-inline: 26px; }
.logo-marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { width: max-content; display: flex; align-items: center; gap: 14px; animation: logoScroll 34s linear infinite; padding: 4px 14px 8px; }
body.en .logo-track { animation-name: logoScrollLtr; }
.logo-marquee.compact .logo-track { animation-duration: 28s; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-tile { width: 168px; min-height: 94px; flex: 0 0 168px; display: grid; place-items: center; padding: 16px; background: #fff; border: 1px solid rgba(215,224,232,.9); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.logo-tile:hover { transform: translateY(-5px); border-color: rgba(13,76,99,.28); box-shadow: 0 18px 36px rgba(7,29,53,.10); }
.logo-tile img { max-height: 60px; object-fit: contain; filter: grayscale(1) saturate(0) contrast(.92); opacity: .68; transition: filter .22s ease, opacity .22s ease, transform .22s ease; }
.logo-tile:hover img { filter: grayscale(0) saturate(1) contrast(1); opacity: 1; transform: scale(1.03); }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(50%); } }
@keyframes logoScrollLtr { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.page-hero { padding: clamp(64px,8vw,118px) clamp(18px,6vw,86px) clamp(36px,5vw,62px); background: linear-gradient(120deg,var(--steel),#fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 980px; }
.page-hero p { max-width: 760px; }

.contact-page { align-items: stretch; padding-top: 36px; }
.contact-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; padding: clamp(20px,3vw,32px); box-shadow: var(--shadow); border-radius: 0; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-weight: 900; }
.contact-form input, .contact-form textarea, .contact-form select { width: 100%; border: 1px solid var(--line); border-radius: 2px; padding: 13px 14px; font: inherit; color: var(--ink); background: #fff; }
.contact-form textarea { resize: vertical; }
.contact-form .full { grid-column: 1 / -1; }
.contact-card { display: grid; align-content: start; gap: 12px; padding: clamp(20px,3vw,32px); background: var(--navy); color: var(--white); border-radius: 0; }
.contact-card h2 { color: var(--white); }
.contact-card a, .contact-card address { padding: 16px; border: 1px solid rgba(255,255,255,.16); text-decoration: none; font-style: normal; font-weight: 800; background: rgba(255,255,255,.08); }
.map-section { padding: 0 clamp(18px,6vw,86px) clamp(64px,8vw,112px); }
.map-section iframe { width: 100%; height: 430px; border: 0; box-shadow: var(--shadow); }

.site-footer { display: grid; justify-items: center; gap: 6px; padding: 22px clamp(18px,6vw,86px); color: var(--muted); border-top: 1px solid var(--line); font-weight: 800; background: linear-gradient(180deg,#fff,var(--steel)); text-align: center; }
.site-footer p { margin: 0; font: inherit; }
.developer-credit { color: var(--muted); font: inherit; font-size: .82rem; font-weight: 700; text-decoration: none; transition: color .2s ease; }
.developer-credit:hover { color: var(--petrol); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.float-card { animation: floatCard 5s ease-in-out infinite; }
@keyframes floatCard { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 1040px) {
  .site-header { grid-template-columns: auto auto 1fr; top: 0; }
  .menu-toggle { display: block; order: 2; }
  .brand { order: 1; }
  .header-actions { order: 3; justify-content: flex-end; }
  .nav-links {
    position: fixed;
    inset: 118px 14px auto;
    display: grid;
    gap: 8px;
    padding: 14px;
    background: rgba(248,251,253,.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
  }
  .menu-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 14px 16px; background: #fff; border: 1px solid var(--line); }
  .hero, .split, .operations, .contact-page { grid-template-columns: 1fr; }
  .hero-media, .hero-media img { min-height: 420px; height: 420px; }
  .service-grid, .project-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .logo-tile { width: 150px; flex-basis: 150px; }
}

@media (max-width: 680px) {
  .topbar { display: none; }
  .site-header { grid-template-columns: 1fr auto; gap: 10px; padding: 10px 14px; }
  .brand { min-width: 0; }
  .brand img { width: 44px; height: 44px; }
  .brand strong { font-size: .95rem; }
  .header-actions { grid-column: 1 / -1; width: 100%; justify-content: space-between; }
  .header-call { flex: 1; }
  .menu-toggle { grid-column: 2; grid-row: 1; }
  .nav-links { inset: 126px 14px auto; }
  h1 { font-size: clamp(2.1rem,12vw,3.4rem); }
  h2 { font-size: clamp(1.75rem,9vw,2.45rem); }
  .hero { padding-top: 42px; }
  .hero-actions, .section-head.with-action { flex-direction: column; align-items: stretch; }
  .hero-media, .hero-media img { min-height: 330px; height: 330px; }
  .trust-strip, .vision-grid, .service-grid, .project-grid, .contact-form { grid-template-columns: 1fr; }
  .logo-tile { width: 138px; min-height: 86px; flex-basis: 138px; }
  .ops-image img { height: 340px; }
  .contact-form .full { grid-column: auto; }
  .site-footer { gap: 6px; }
}
