@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap");

:root {
  --leaf: #277a43;
  --leaf-dark: #143b29;
  --mint: #eadcf6;
  --sky: #eef6e7;
  --stone: #f6f1e8;
  --terracotta: #a86438;
  --purple: #6b21a8;
  --purple-dark: #2e1065;
  --gold: #d4af37;
  --ink: #181d18;
  --muted: #667063;
  --line: #e2dacb;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(52, 21, 82, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

body[dir="rtl"] {
  font-family: "Cairo", Tahoma, "Segoe UI", Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 229, 222, 0.85);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--purple-dark);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--leaf) 72%, var(--terracotta));
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(107, 47, 143, 0.24);
}

.brand-name {
  display: grid;
  line-height: 1.2;
}

.brand-name small {
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 10px 9px;
  border-radius: 7px;
  color: #33443a;
  font-weight: 650;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--mint);
  color: var(--purple-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.lang-toggle {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--leaf-dark);
  border-radius: 7px;
  min-width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-weight: 800;
}

.menu-btn {
  display: none;
}

.lang-toggle {
  padding: 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(135deg, var(--purple), var(--leaf));
  color: var(--white);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--purple-dark);
  border-color: rgba(255, 255, 255, 0.7);
}

.btn.outline {
  color: var(--leaf-dark);
  border-color: var(--line);
  background: var(--white);
}

.hero {
  min-height: calc(100vh - 74px);
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 12, 34, 0.9) 0%, rgba(52, 21, 82, 0.62) 42%, rgba(20, 59, 41, 0.14) 78%),
    url("assets/gallery/gallery-01.jpeg") center / cover no-repeat;
  z-index: -2;
}

body[dir="rtl"] .hero::before {
  background:
    linear-gradient(270deg, rgba(22, 12, 34, 0.9) 0%, rgba(52, 21, 82, 0.62) 42%, rgba(20, 59, 41, 0.14) 78%),
    url("assets/gallery/gallery-01.jpeg") center / cover no-repeat;
}

.hero-inner,
.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  width: min(680px, 100%);
  color: var(--white);
  padding: 80px 0 120px;
}

.eyebrow {
  color: #f1d9ff;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(42px, 8vw, 82px);
  line-height: 1.02;
  margin-bottom: 22px;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--purple-dark);
}

h3 {
  font-size: 22px;
  line-height: 1.25;
  color: var(--purple-dark);
}

.lead {
  font-size: clamp(18px, 2.2vw, 23px);
  color: rgba(255, 255, 255, 0.9);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.metrics {
  width: min(1180px, calc(100% - 32px));
  min-height: 86px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.metric {
  padding: 18px 20px;
  border-inline-start: 1px solid var(--line);
}

.metric strong {
  display: block;
  font-size: 24px;
  color: var(--purple-dark);
}

.metric span {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: 86px 0;
}

.section.alt {
  background: linear-gradient(180deg, var(--stone), #ffffff);
}

.section.sky {
  background: var(--sky);
}

.section-head {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-head p,
.body-copy p {
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  box-shadow: 0 10px 28px rgba(52, 21, 82, 0.07);
}

.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--purple);
  background: var(--mint);
  border-radius: 8px;
  margin-bottom: 16px;
}

.card p,
.timeline p,
.project p,
.contact-panel p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.image-panel {
  min-height: 480px;
  border-radius: 8px;
  overflow: hidden;
  background: url("assets/gallery/gallery-02.jpeg") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #34473c;
  font-weight: 650;
}

.check-list svg {
  flex: 0 0 22px;
  color: var(--purple);
  margin-top: 2px;
}

.project {
  min-height: 280px;
  display: grid;
  align-content: end;
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-radius: 8px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(52, 21, 82, 0.16), rgba(20, 59, 41, 0.9)),
    url("assets/gallery/gallery-04.jpeg") center / cover no-repeat;
}

.project h3,
.project p {
  color: var(--white);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-step {
  border-top: 4px solid var(--gold);
  padding-top: 18px;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.contact-panel {
  background: var(--purple-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 32px;
}

.contact-panel h2,
.contact-panel p {
  color: var(--white);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 14px 34px rgba(18, 70, 47, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--purple-dark);
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cddbd2;
  border-radius: 7px;
  padding: 12px 13px;
  min-height: 46px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfb;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.page-hero {
  padding: 88px 0;
  background:
    linear-gradient(90deg, rgba(52, 21, 82, 0.95), rgba(39, 122, 67, 0.66)),
    url("assets/gallery/gallery-04.jpeg") center / cover no-repeat;
  color: var(--white);
}

body[dir="rtl"] .page-hero {
  background:
    linear-gradient(270deg, rgba(52, 21, 82, 0.95), rgba(39, 122, 67, 0.66)),
    url("assets/gallery/gallery-04.jpeg") center / cover no-repeat;
}

.page-hero h1 {
  font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
  max-width: 760px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.site-footer {
  background: #15101a;
  color: rgba(255, 255, 255, 0.8);
  padding: 42px 0;
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer h3 {
  color: var(--white);
}

.footer-links {
  display: grid;
  gap: 10px;
}

.image-panel-main {
  background-image: url("assets/gallery/gallery-11.jpeg");
}

.image-panel-restaurant {
  background-image: url("assets/gallery/gallery-24.jpeg");
}

.photo-card {
  overflow: hidden;
  display: grid;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(52, 21, 82, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.photo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(52, 21, 82, 0.16);
}

.photo-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.photo-card.tall img {
  height: 310px;
}

.photo-card div {
  padding: 24px;
}

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

.mosaic,
.gallery-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mosaic-item,
.gallery-wall a {
  position: relative;
  overflow: hidden;
  min-height: 235px;
  border-radius: 8px;
  background: var(--stone);
  box-shadow: 0 12px 28px rgba(52, 21, 82, 0.09);
}

.mosaic-item.wide,
.gallery-wall .big {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 486px;
}

.mosaic-item img,
.gallery-wall img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.mosaic-item:hover img,
.gallery-wall a:hover img {
  transform: scale(1.04);
}

.mosaic-item span {
  position: absolute;
  inset-inline: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 7px;
  color: var(--white);
  background: rgba(52, 21, 82, 0.78);
  font-weight: 850;
  backdrop-filter: blur(8px);
}

.video-box {
  overflow: hidden;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.video-box video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.study-index {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.study-index a {
  min-height: 72px;
  display: grid;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--purple-dark);
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(52, 21, 82, 0.06);
}

.deep-explain {
  display: grid;
  gap: 18px;
}

.explain-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(52, 21, 82, 0.07);
}

.explain-block h3 {
  margin-bottom: 10px;
}

.explain-block p {
  color: var(--muted);
  font-size: 18px;
}

.value-chain {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.chain-step {
  position: relative;
  min-height: 130px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-radius: 8px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-dark), var(--leaf-dark));
}

.chain-step strong {
  color: var(--gold);
  font-size: 24px;
}

.chain-step span {
  font-weight: 800;
}

.chain-step small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.report-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  align-items: start;
}

.report-nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(52, 21, 82, 0.08);
}

.report-nav strong {
  color: var(--purple-dark);
  margin-bottom: 6px;
}

.report-nav a {
  padding: 9px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-weight: 750;
}

.report-nav a:hover {
  color: var(--purple-dark);
  background: var(--mint);
}

.report-content {
  display: grid;
  gap: 24px;
}

.report-section {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(52, 21, 82, 0.07);
}

.report-section h2 {
  margin-bottom: 12px;
}

.report-section p {
  color: var(--muted);
  font-size: 18px;
}

.report-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 7px;
  color: var(--purple-dark);
  background: var(--mint);
  font-weight: 900;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.insight {
  padding: 18px;
  border-inline-start: 4px solid var(--gold);
  border-radius: 8px;
  background: #fbfaf7;
}

.insight h3 {
  margin-bottom: 8px;
}

.report-table {
  overflow: hidden;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.report-row {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr 1.2fr;
  gap: 0;
  border-top: 1px solid var(--line);
}

.report-row:first-child {
  border-top: 0;
  background: linear-gradient(135deg, var(--purple-dark), var(--leaf-dark));
  color: var(--white);
  font-weight: 900;
}

.report-row > div {
  padding: 14px;
  border-inline-start: 1px solid var(--line);
}

.report-row:first-child > div {
  border-color: rgba(255, 255, 255, 0.2);
}

.report-row > div:first-child {
  border-inline-start: 0;
}

.tech-band {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  padding: 34px;
  color: var(--white);
  background: linear-gradient(135deg, var(--purple-dark), var(--leaf-dark));
  box-shadow: var(--shadow);
}

.tech-band::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 170px;
  background:
    radial-gradient(circle at 12% 40%, rgba(212, 175, 55, 0.36), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.18) 0 18px, rgba(255,255,255,0.03) 18px 38px);
  opacity: 0.7;
  animation: waterFlow 8s linear infinite;
}

.tech-band > * {
  position: relative;
  z-index: 1;
}

.tech-band h2,
.tech-band p {
  color: var(--white);
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.growth-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(52, 21, 82, 0.08);
}

.growth-card::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  bottom: 0;
  width: 44px;
  height: 92px;
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(107, 33, 168, 0.28), rgba(20, 83, 45, 0.9));
  transform-origin: bottom;
  animation: treeGrow 3.8s ease-in-out infinite alternate;
}

.growth-card h3,
.growth-card p {
  position: relative;
  z-index: 1;
}

@keyframes waterFlow {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(18%);
  }
}

@keyframes treeGrow {
  from {
    transform: scaleY(0.72);
    opacity: 0.68;
  }
  to {
    transform: scaleY(1);
    opacity: 1;
  }
}

.fade-section {
  animation: sectionFade 0.75s ease both;
}

@keyframes sectionFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(14, 10, 22, 0.88);
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(1120px, 94vw);
  max-height: 86vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox button {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  font-size: 28px;
  cursor: pointer;
}

[data-lang="en"] .ar,
[data-lang="ar"] .en {
  display: none !important;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .menu-btn {
    display: inline-grid;
  }

  .nav-links {
    position: absolute;
    inset-inline: 16px;
    top: 74px;
    display: none;
    grid-template-columns: 1fr;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: grid;
  }

  .metrics,
  .grid.three,
  .grid.two,
  .split,
  .timeline,
      .contact-wrap,
      .footer-grid,
  .mosaic,
  .gallery-wall,
  .growth-grid,
  .study-index,
  .value-chain,
  .report-layout,
  .insight-grid,
  .report-row {
    grid-template-columns: 1fr;
  }

  .report-nav {
    position: static;
  }

  .mosaic-item.wide,
  .gallery-wall .big {
    grid-column: auto;
    grid-row: auto;
    min-height: 280px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-copy {
    padding-top: 56px;
  }

  .hero-strip {
    position: relative;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 22px, 1180px);
  }

  .brand-name small {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    min-height: 680px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(15, 47, 34, 0.9), rgba(22, 65, 46, 0.6)),
      url("assets/gallery/gallery-01.jpeg") center / cover no-repeat;
  }

  .hero-copy {
    padding-bottom: 64px;
  }

  .metrics {
    gap: 0;
  }

  .metric {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .image-panel {
    min-height: 340px;
  }
}
