@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --ink: #111516;
  --muted: #667071;
  --paper: #f7f8f7;
  --line: #dce1df;
  --brand: #087f82;
  --brand-dark: #005e63;
  --white: #ffffff;
  --max: 1240px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Manrope", "IBM Plex Sans Arabic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body[dir="rtl"] { font-family: "IBM Plex Sans Arabic", "Manrope", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; inset-inline-start: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--brand); color: white; }
.skip-link:focus { top: 16px; }

.site-header {
  position: absolute; inset: 0 0 auto; z-index: 30; color: white;
  border-bottom: 1px solid rgba(255,255,255,.22);
}
.site-header.inner { position: relative; color: var(--ink); border-color: var(--line); background: white; }
.nav { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: 86px; height: 66px; object-fit: contain; }
.site-header:not(.inner) .brand img { filter: brightness(0) invert(1); }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: .83rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav-links a { position: relative; padding: 8px 0; }
.nav-links a::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 0; height: 2px; background: var(--brand); transition: width .25s ease; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.language { border: 1px solid currentColor; padding: 9px 14px !important; letter-spacing: 0; text-transform: none; }
.menu-button { display: none; border: 0; background: transparent; color: inherit; width: 42px; height: 42px; padding: 8px; }
.menu-button span { display: block; width: 100%; height: 2px; margin: 6px 0; background: currentColor; transition: .2s ease; }

.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: white; overflow: hidden; background: #111; }
.hero-media, .page-hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media { animation: heroScale 10s ease-out both; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,13,.86) 0%, rgba(5,12,13,.42) 55%, rgba(5,12,13,.2) 100%); }
.hero-content { position: relative; z-index: 2; padding: 190px 0 88px; width: min(860px, 100%); }
.eyebrow { margin: 0 0 20px; color: #75d6d3; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 7vw, 6.8rem); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
body[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.18; }
.hero-copy { max-width: 650px; margin-bottom: 34px; color: rgba(255,255,255,.82); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 1px solid var(--brand); background: var(--brand); color: white; font-size: .84rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: background .25s, color .25s, transform .25s; }
.button:hover { background: var(--brand-dark); transform: translateY(-2px); }
.button.ghost { margin-inline-start: 10px; border-color: rgba(255,255,255,.55); background: transparent; }
.button.ghost:hover { background: white; color: var(--ink); }

.section { padding: 110px 0; }
.section.soft { background: var(--paper); }
.section.dark { background: #101415; color: white; }
.section-head { display: grid; grid-template-columns: minmax(250px, .85fr) minmax(300px, 1.15fr); gap: 70px; align-items: end; margin-bottom: 58px; }
.section-kicker { display: flex; align-items: center; gap: 15px; margin-bottom: 14px; color: var(--brand); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.section-kicker::before { content: ""; width: 33px; height: 27px; flex: 0 0 auto; background: url('heading-shape.svg') center / contain no-repeat; }
.section-title { margin-bottom: 0; font-size: clamp(2.1rem, 4.1vw, 4.15rem); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; }
body[dir="rtl"] .section-title { letter-spacing: 0; line-height: 1.25; }
.lead { margin-bottom: 0; color: var(--muted); font-size: 1.12rem; }
.dark .lead { color: #aab4b3; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 84px; align-items: center; }
.split.reverse { grid-template-columns: .95fr 1.05fr; }
.split-image { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.split-image.wide { aspect-ratio: 4/3; }
.content h2 { font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.content p { color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--brand-dark); font-weight: 700; }
.text-link::after { content: "→"; transition: transform .2s; }
body[dir="rtl"] .text-link::after { content: "←"; }
.text-link:hover::after { transform: translateX(4px); }

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.service-card { min-height: 285px; padding: 34px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .25s, color .25s, transform .25s; }
.service-card:hover { background: var(--ink); color: white; transform: translateY(-4px); }
.service-number { display: block; margin-bottom: 62px; color: var(--brand); font-size: .8rem; font-weight: 700; letter-spacing: .08em; }
.service-card h3 { margin-bottom: 12px; font-size: 1.35rem; }
.service-card p { margin: 0; color: var(--muted); font-size: .94rem; }
.service-card:hover p { color: #b8c1c0; }

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2a3031; border: 1px solid #2a3031; }
.value { padding: 38px; background: #101415; }
.value span { color: #75d6d3; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.value h3 { margin: 24px 0 10px; font-size: 1.4rem; }
.value p { color: #aab4b3; margin: 0; font-size: .95rem; }

.page-hero { position: relative; min-height: 520px; display: flex; align-items: flex-end; overflow: hidden; color: white; background: #111; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,12,13,.83), rgba(5,12,13,.18)); }
.page-hero-content { position: relative; z-index: 2; padding: 95px 0 65px; }
.page-hero h1 { max-width: 900px; font-size: clamp(3.2rem, 6.5vw, 6.4rem); }
.page-hero p { max-width: 670px; margin-bottom: 0; color: rgba(255,255,255,.8); font-size: 1.12rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.principle { padding-top: 24px; border-top: 2px solid var(--brand); }
.principle h3 { font-size: 1.3rem; }
.principle p { color: var(--muted); margin: 0; }
.process { counter-reset: process; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.process-item { counter-increment: process; padding: 28px 0; border-top: 1px solid var(--line); }
.process-item::before { content: "0" counter(process); display: block; margin-bottom: 28px; color: var(--brand); font-size: .8rem; font-weight: 700; }
.process-item h3 { font-size: 1.15rem; }
.process-item p { color: var(--muted); font-size: .92rem; }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.contact-detail { padding: 22px 0; border-top: 1px solid var(--line); }
.contact-detail span { display: block; color: var(--muted); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.contact-detail strong { display: block; margin-top: 6px; font-size: 1.1rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 700; }
.field input, .field textarea { width: 100%; border: 0; border-bottom: 1px solid #aab1b0; border-radius: 0; padding: 13px 0; background: transparent; outline: none; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 1px 0 var(--brand); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: .82rem; }
.form-status { color: var(--brand-dark); font-weight: 600; }

.cta { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 70px; background: var(--brand-dark); color: white; }
.cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.08; }
.cta .button { background: white; border-color: white; color: var(--ink); }
.cta .button:hover { background: var(--ink); color: white; }

.footer { padding: 72px 0 30px; background: #0c1011; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.footer-logo { width: 94px; filter: brightness(0) invert(1); }
.footer-copy { max-width: 390px; margin-top: 25px; color: #97a1a0; }
.footer h3 { color: #c6cecd; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-links { display: grid; gap: 10px; color: #eef1f0; }
.footer-links a:hover { color: #75d6d3; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 62px; padding-top: 24px; border-top: 1px solid #293031; color: #7f8988; font-size: .82rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.75,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@keyframes heroScale { from { transform: scale(1.06); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .container { width: min(100% - 34px, var(--max)); }
  .nav { min-height: 78px; }
  .brand img { width: 70px; height: 54px; }
  .menu-button { display: block; }
  .nav-links { position: absolute; inset: 78px 0 auto; display: none; align-items: stretch; gap: 0; padding: 16px 24px 28px; background: white; color: var(--ink); box-shadow: 0 18px 38px rgba(0,0,0,.12); }
  .nav-links.open { display: grid; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .language { margin-top: 12px; text-align: center; }
  .hero { min-height: 760px; }
  .hero-content { padding-bottom: 62px; }
  .section { padding: 78px 0; }
  .section-head, .split, .split.reverse, .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .value-row, .principles { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 48px 34px; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.2fr .8fr; }
}

@media (max-width: 600px) {
  .hero { min-height: 700px; }
  h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .hero-copy { font-size: 1rem; }
  .hero .button { width: 100%; }
  .hero .button.ghost { margin: 10px 0 0; }
  .page-hero { min-height: 460px; }
  .page-hero-content { padding: 70px 0 48px; }
  .section { padding: 64px 0; }
  .service-grid, .process, .form-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 235px; }
  .service-number { margin-bottom: 40px; }
  .field.full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; }
}
