:root {
  --primary: #F26F21;
  --primary-light: #F3A577;
  --secondary: #58595B;
  --text: #7A7A7A;
  --grey-bg: #CCCCCC;
  --max: 1140px;
  --font-head: "Raleway", sans-serif;
  --font-body: "Roboto", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: #fff;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-head); }
p { margin: 0 0 .9em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; transform: translateY(-200%); }
.skip-link:focus { transform: none; }

/* ---------- Top bar (language switcher) ---------- */
.topbar { background: var(--primary); animation: fadeDown .8s ease both; }
.topbar .container { display: flex; justify-content: flex-end; gap: 20px; padding-top: 6px; padding-bottom: 6px; }
.lang { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 14px; }
.lang:hover, .lang:focus { color: var(--primary-light); }
.lang .flag { width: 20px; height: 15px; border-radius: 1px; overflow: hidden; flex: none; }

/* ---------- Header ---------- */
.site-header { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.06); animation: fadeDown .8s .1s ease both; }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }
.site-header .container { display: flex; align-items: center; justify-content: space-between; min-height: 90px; }
.logo img { width: 280px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  position: relative; display: block; padding: 13px 18px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px; color: #000;
  transition: color .3s;
}
.nav a::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 3px;
  background: var(--primary); opacity: 0; transform: scaleX(.4); transition: all .3s;
}
.nav a:hover, .nav a:focus, .nav a.active { color: var(--primary); }
.nav a:hover::after, .nav a.active::after { opacity: 1; transform: scaleX(1); }
.menu-toggle {
  display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--secondary);
}
.menu-toggle svg { width: 26px; height: 26px; display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: calc(100vh - 120px); min-height: calc(100svh - 120px);
  background: url("../assets/hero.webp") center bottom / cover no-repeat;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 80px 16px 140px; text-align: center;
}
.hero-inner { max-width: 760px; width: 100%; margin-top: -14vh; }
.hero h1 {
  font-size: clamp(22px, 5.6vw, 40px); font-weight: 800; line-height: 1.18; color: var(--secondary);
  overflow-wrap: break-word;
}
.hero .bar { width: 684px; max-width: 90%; height: 10px; background: var(--primary); margin: 20px auto 30px; }
.hero p { font-family: var(--font-head); font-weight: 400; color: var(--secondary); font-size: 17px; }
.hero-strip {
  position: absolute; left: 0; right: 0; bottom: -51px;
  display: flex; justify-content: center;
}
.hero-strip div {
  background: var(--primary); color: #fff; text-align: center;
  padding: 18px 40px; font-size: 18px; line-height: 1.4; border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* ---------- Section headings ---------- */
.eyebrow { font-family: var(--font-head); font-size: 44px; font-weight: 900; color: var(--secondary); text-align: center; }
.section-title { font-size: 40px; font-weight: 800; color: var(--secondary); text-align: center; }
.section-sub { font-family: var(--font-head); font-size: 25px; font-weight: 600; color: var(--secondary); text-align: center; margin: 4px 0 0; }
.divider-sm { width: 134px; height: 4px; background: var(--primary); margin: 15px auto; border: 0; }
.btn {
  display: inline-block; background: var(--primary); color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  padding: 5px 15px; border-radius: 11px; transition: background .3s, transform .2s;
}
.btn:hover { background: #d95c12; transform: translateY(-1px); }

/* ---------- Expertise ---------- */
.expertise { padding: 120px 0 60px; text-align: center; }
.expertise .lead { font-family: var(--font-head); font-size: 24px; font-weight: 400; color: var(--secondary); margin-top: 10px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 30px; }
.steps.nums span { font-family: var(--font-head); font-weight: 400; font-size: 32px; color: var(--primary); }
.steps.labels { margin-top: -31px; }
.steps.labels h3 { font-size: 18px; font-weight: 600; color: var(--text); padding: 0 4px; }
.expertise-img { margin-top: 10px; }
.expertise .btn { margin-top: 30px; }

/* ---------- About ---------- */
.about { display: flex; align-items: center; overflow: hidden; }
.about-text { width: 50%; display: flex; justify-content: flex-end; padding-block: 40px; padding-inline: 16px 40px; }
.about-text .inner { max-width: 520px; }
.about-text h2 { font-size: 40px; font-weight: 800; color: var(--secondary); margin-bottom: 20px; }
.about-text p { font-family: var(--font-head); font-weight: 400; font-size: 17px; }
.about-text .btn { margin-top: 10px; }
.about-img { width: 50%; }
.about-img img { width: 100%; }

/* ---------- Technical designs ---------- */
.designs { padding: 70px 0; background: #f6f6f6; }
.designs .container { display: flex; flex-direction: column; gap: 10px; }
.designs .intro { font-family: var(--font-head); font-size: 23px; font-weight: 400; text-align: center; max-width: 760px; margin: 0 auto 20px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s ease; }
.carousel-slide { flex: 0 0 100%; padding: 0 5px; }
.carousel-slide img { width: 100%; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.85); border: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: var(--secondary);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: background .2s, color .2s;
}
.carousel-btn:hover { background: var(--primary); color: #fff; }
.carousel-btn svg { width: 18px; height: 18px; }
.carousel-btn.prev { inset-inline-start: 10px; }
.carousel-btn.next { inset-inline-end: 10px; }
.dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 0; background: #c4c4c4; cursor: pointer; }
.dots button.active { background: var(--primary); }

/* ---------- Banner ---------- */
.banner {
  min-height: 342px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  background: #45474a url("../assets/banner-bg.webp") center / cover no-repeat;
  text-align: center; padding: 50px 16px; gap: 14px;
}
.banner h2 { font-size: 36px; font-weight: 300; color: #fff; letter-spacing: .02em; }
.banner .banner-sub { font-family: var(--font-head); font-size: 44px; font-weight: 400; color: var(--primary); margin: 0; }
.banner img { width: 100%; max-width: var(--max); margin-top: 10px; }

/* ---------- Network ---------- */
.network { min-height: 417px; padding: 70px 0; display: flex; flex-direction: column; justify-content: center; }
.network h2 { margin-bottom: 30px; }
.partners { width: 100%; max-width: 1000px; margin: 0 auto; mix-blend-mode: multiply; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--grey-bg); padding: 70px 0; }
.testimonials .intro { font-family: var(--font-head); font-weight: 300; text-align: center; color: var(--secondary); max-width: 520px; margin: 10px auto 40px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 980px; margin: 0 auto; }
.card { background: #fff; padding: 26px; border-radius: 6px; box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card h3 { font-size: 24px; font-weight: 700; color: var(--secondary); }
.stars { display: flex; gap: 3px; color: #000; }
.stars svg { width: 18px; height: 18px; fill: currentColor; }
.card hr { border: 0; height: 4px; background: var(--primary); width: 94%; margin: 12px 0; }
.card p { font-family: var(--font-head); font-weight: 300; color: var(--secondary); margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { padding: 60px 0 40px; border-top: 1px solid #eee; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
.site-footer .logo img { width: 240px; }
.site-footer h2 { color: var(--primary); font-weight: 600; text-transform: uppercase; font-size: 22px; }
.site-footer .uline { width: 60px; height: 2px; background: var(--primary); margin: 8px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: block; padding: 5px 0; font-family: var(--font-head); font-weight: 600; color: var(--text); transition: color .3s; }
.site-footer li a:hover { color: var(--primary); }
.site-footer .social { text-transform: uppercase; margin-top: 6px; }
.site-footer .social a:hover { color: var(--primary); }
.copyright { text-align: center; font-size: 13px; color: #aaa; margin-top: 40px; }

/* ---------- Animations ---------- */
.js .anim { opacity: 0; transform: translateY(20px); transition: opacity .9s ease, transform .9s ease; }
.js .anim.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .anim { opacity: 1; transform: none; transition: none; }
  .topbar, .site-header { animation: none; }
  .carousel-track { transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav a { padding: 13px 10px; }
  .nav a::after { left: 10px; right: 10px; }
  .logo img { width: 220px; }
}
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff;
    box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { padding: 14px 20px; border-top: 1px solid #f0f0f0; }
  .nav a::after { display: none; }
  .about { flex-direction: column; }
  .about-text, .about-img { width: 100%; }
  .about-text { justify-content: flex-start; padding: 50px 16px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 767px) {
  .site-header .container { min-height: 70px; }
  .logo img { width: 180px; }
  .hero { padding-top: 60px; }
  .hero .bar { height: 7px; }
  .hero p { font-size: 15px; }
  .hero p br { display: none; }
  .topbar .container { justify-content: center; }
  .hero-strip div { margin: 0 16px; padding: 14px 20px; font-size: 16px; }
  .eyebrow { font-size: 32px; }
  .section-title, .about-text h2 { font-size: 30px; }
  .section-sub { font-size: 20px; }
  .expertise .lead { font-size: 19px; }
  .steps.nums span { font-size: 22px; }
  .steps.labels { margin-top: -10px; }
  .steps.labels h3 { font-size: 11px; line-height: 1.3; }
  .designs .intro { font-size: 18px; }
  .designs .intro br { display: none; }
  .carousel-btn { width: 32px; height: 32px; }
  .banner h2 { font-size: 28px; }
  .banner .banner-sub { font-size: 23px; }
  .testimonials .intro br { display: none; }
  /* Crop the empty margins either side of the logo strip so the logos are bigger. */
  .partners { aspect-ratio: 6.3; object-fit: cover; object-position: center; }
  .site-footer .container { flex-direction: column; gap: 30px; }
}

/* ---------- Arabic / RTL ---------- */
[dir="rtl"] {
  --font-head: "Cairo", "Raleway", sans-serif;
  --font-body: "Cairo", "Roboto", sans-serif;
}
[dir="rtl"] body { line-height: 1.8; }
[dir="rtl"] .hero-inner { max-width: 960px; }
[dir="rtl"] .hero h1 { line-height: 1.5; font-size: clamp(22px, 5vw, 38px); }
[dir="rtl"] .hero p { font-size: 18px; }
[dir="rtl"] .banner h2 { letter-spacing: 0; }
[dir="rtl"] .about-text p { font-size: 17px; text-align: justify; }
[dir="rtl"] .about-text .inner { max-width: 560px; }
[dir="rtl"] .steps.labels h3 { font-size: 20px; }
[dir="rtl"] .carousel-btn svg { transform: scaleX(-1); }
[dir="rtl"] .expertise-img { transform: scaleX(-1); }
[dir="rtl"] .cards { margin-top: 40px; }
[dir="rtl"] .btn { font-size: 16px; padding: 6px 18px; }
[dir="rtl"] .card p { direction: ltr; text-align: left; } /* placeholder reviews are still Latin text */
[dir="rtl"] .card h3 { direction: ltr; }
[dir="rtl"] .contact-num { direction: ltr; unicode-bidi: embed; display: inline-block; }
@media (max-width: 767px) {
  [dir="rtl"] .steps.labels h3 { font-size: 12px; }
  [dir="rtl"] .hero p { font-size: 16px; }
}

/* ---------- Contact page ---------- */
.contact-intro { padding: 80px 0 40px; text-align: center; }
.contact-intro h1 { font-size: 40px; font-weight: 800; color: var(--secondary); line-height: 1.2; }
.contact-intro .bar { width: 260px; height: 6px; background: var(--primary); margin: 18px auto 24px; }
.contact-intro p { font-family: var(--font-head); color: var(--secondary); font-size: 17px; max-width: 560px; margin: 0 auto .6em; }
.contact-intro p strong { font-weight: 700; }

.contact-form { max-width: 620px; margin: 0 auto; padding: 0 16px 70px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--secondary); margin-bottom: 6px; }
.field label .req { color: var(--primary); }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 15px; color: #333;
  padding: 11px 13px; border: 1px solid #d5d5d5; border-radius: 8px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242,111,33,.18); }
.field input[type="tel"], .field input[type="email"] { direction: ltr; }
[dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="email"] { text-align: right; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.btn-submit {
  border: 0; cursor: pointer; background: var(--primary); color: #fff;
  font-family: var(--font-body); font-weight: 500; font-size: 16px;
  padding: 11px 34px; border-radius: 11px; transition: background .3s, opacity .2s;
}
.btn-submit:hover { background: #d95c12; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 16px 0 0; padding: 12px 16px; border-radius: 8px; font-size: 15px; display: none; }
.form-status.ok { display: block; background: #eaf7ee; color: #1e6b34; border: 1px solid #b9e2c4; }
.form-status.err { display: block; background: #fdecea; color: #a12a1b; border: 1px solid #f3c1ba; }
.form-note { font-size: 14px; color: var(--text); margin-top: 14px; }
.form-note a { color: var(--primary); font-weight: 500; }

.contact-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 900px; margin: 0 auto; padding: 0 16px 40px; text-align: center; }
.contact-info img { height: 70px; width: auto; margin: 0 auto 16px; }
.contact-info h2 { color: var(--primary); font-size: 30px; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; line-height: 1.2; }
.contact-info p { margin: 0; font-size: 16px; }
.contact-info a:hover { color: var(--primary); }
.contact-map { height: 60vh; min-height: 320px; max-height: 620px; background: url("../assets/contact-map.webp") top center / cover no-repeat; }

@media (max-width: 767px) {
  .contact-intro { padding: 50px 0 30px; }
  .contact-intro h1 { font-size: 30px; }
  .contact-intro p br { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; gap: 36px; }
  .contact-info h2 { font-size: 24px; }
  .contact-map { height: 40vh; min-height: 220px; }
}
