:root {
  --bg: #f2f4f7;
  --surface: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d5dbe3;
  --blue-100: #e6eef9;
  --blue-500: #3f6ea8;
  --blue-700: #27486f;
  --orange-500: #d98324;
  --orange-100: #fff3e5;
  --radius: 16px;
  --shadow: 0 16px 40px rgba(31, 41, 55, 0.08);
  --container: min(1120px, calc(100% - 2rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.js.i18n-pending body {
  visibility: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: radial-gradient(circle at top right, #eef3fb 0%, transparent 32%),
    linear-gradient(180deg, #f7f8fa 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Manrope", "Cairo", sans-serif;
  line-height: 1.65;
}

body[dir="rtl"] {
  font-family: "Cairo", "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(213, 219, 227, 0.85);
  backdrop-filter: blur(12px);
  background: rgba(247, 248, 250, 0.9);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover,
.nav-link.current {
  color: var(--blue-700);
  background: var(--blue-100);
}

.lang-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--blue-500);
  color: #fff;
}

main {
  flex: 1;
  padding-block: 2.2rem 4rem;
}

.hero {
  padding-block: 2rem 1rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: center;
}

.eyebrow {
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 999px;
  display: inline-block;
  padding: 0.35rem 0.8rem;
  font-weight: 700;
  font-size: 0.85rem;
}

.hero h1 {
  margin: 0.75rem 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.2;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
}

.cta-row {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(140deg, var(--blue-500), #5884b8);
}

.btn-ghost {
  color: var(--blue-700);
  background: transparent;
  border: 1px solid var(--line);
}

.hero-visual {
  position: relative;
  min-height: 340px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #f7f9fc 0%, #ebf0f8 100%);
  box-shadow: var(--shadow);
  overflow: hidden;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(39, 72, 111, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(39, 72, 111, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
}

.silhouette {
  position: absolute;
  bottom: 0;
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  padding: 1.2rem;
}

.tower {
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #6f97c5, #3f6ea8);
  opacity: 0.9;
}

.tower:nth-child(1) {
  width: 18%;
  height: 120px;
}

.tower:nth-child(2) {
  width: 24%;
  height: 180px;
}

.tower:nth-child(3) {
  width: 20%;
  height: 140px;
}

.tower:nth-child(4) {
  width: 28%;
  height: 220px;
}

.tower:nth-child(5) {
  width: 10%;
  height: 90px;
  background: linear-gradient(180deg, #f0b067, var(--orange-500));
}

.section {
  margin-top: 3rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.3rem, 2.4vw, 2rem);
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.services-grid,
.about-grid,
.contact-grid {
  margin-top: 1.2rem;
  display: grid;
  gap: 1rem;
}

.services-grid,
.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.05);
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-700);
  display: grid;
  place-items: center;
}

.card h3 {
  margin: 0.8rem 0 0.2rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.stats {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.stat-box {
  border-radius: var(--radius);
  background: linear-gradient(160deg, #ffffff, #f4f7fc);
  border: 1px solid var(--line);
  text-align: center;
  padding: 1rem;
}

.stat-num {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue-700);
  font-weight: 800;
}

.gallery-controls {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
  color: var(--blue-700);
  border-color: #a7bbd4;
  background: #f1f6fd;
}

.gallery-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.gallery-item img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  transition: transform 0.45s ease;
}

.gallery-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 0.7rem 0.9rem;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.78) 100%);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.contact-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.contact-item .card-icon {
  flex-shrink: 0;
  background: var(--orange-100);
  color: var(--orange-500);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body[dir="rtl"] .cta-row {
  justify-content: flex-start;
}

@media (max-width: 1024px) {
  .hero-grid,
  .services-grid,
  .about-grid,
  .contact-grid,
  .stats,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 68px;
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  .nav-list {
    width: 100%;
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero-grid,
  .services-grid,
  .about-grid,
  .contact-grid,
  .stats,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 260px;
  }
}
