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

:root {
  --navy: #062b3b;
  --navy-soft: #0c4154;
  --blue: #087fa2;
  --cyan: #1ac4d8;
  --aqua: #72e4e5;
  --sand: #f5efe5;
  --mist: #eef8f8;
  --white: #fff;
  --ink: #16333c;
  --muted: #6e858c;
  --line: rgba(6, 43, 59, 0.12);
  --shadow: 0 20px 60px rgba(6, 43, 59, 0.12);
  --radius: 26px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Cairo", Tahoma, sans-serif;
  line-height: 1.8;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.container { width: var(--container); margin-inline: auto; }
.section { padding: 96px 0; }
.section-soft { background: var(--mist); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--blue);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.eyebrow::before { width: 30px; height: 2px; background: var(--cyan); content: ""; }
.section-title {
  max-width: 760px;
  margin: 0 0 18px;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.35;
}
.section-intro { max-width: 680px; margin: 0 0 42px; color: var(--muted); font-size: 1.04rem; }
.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 800;
  transition: 0.25s ease;
}
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(26, 196, 216, 0.28); }
.button-outline { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; }
.button-dark { background: var(--navy); color: #fff; }
.button-small { min-height: 44px; padding: 0 18px; font-size: 0.9rem; }

.topbar { background: var(--navy); color: rgba(255,255,255,.78); font-size: .82rem; }
.topbar-inner { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; align-items: center; gap: 20px; }
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(6,43,59,.06);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
}
.nav { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 32px; }
.logo img { width: 168px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { position: relative; color: #36515a; font-size: .93rem; font-weight: 700; }
.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transition: width .2s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--navy); }
.menu-toggle { display: none; padding: 8px; border: 0; background: transparent; color: var(--navy); }
.menu-toggle span { display: block; width: 26px; height: 2px; margin: 6px; background: currentColor; transition: .2s; }

.hero {
  position: relative;
  display: grid;
  min-height: 720px;
  align-items: end;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
}
.hero::before {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4,35,48,.2), rgba(4,35,48,.84)),
    linear-gradient(0deg, rgba(4,35,48,.55), transparent 55%),
    url("../assets/images/hero-pool-new.webp") center 56%/cover;
  content: "";
}
.hero::after {
  position: absolute;
  right: -8vw;
  bottom: -120px;
  width: 540px;
  height: 280px;
  border: 1px solid rgba(114,228,229,.28);
  border-radius: 50%;
  content: "";
  transform: rotate(-12deg);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 130px 0 90px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px;
  background: rgba(255,255,255,.08); color: var(--aqua); font-size: .88rem; font-weight: 700;
}
.hero h1 { margin: 24px 0 20px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: 1.12; }
.hero h1 span { color: var(--aqua); }
.hero p { max-width: 650px; margin: 0 0 32px; color: rgba(255,255,255,.82); font-size: 1.13rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  width: var(--container); margin: 0 auto -52px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
  background: rgba(6,43,59,.88); box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.stat { padding: 26px 30px; border-left: 1px solid rgba(255,255,255,.12); color: #fff; }
.stat:last-child { border-left: 0; }
.stat strong { display: block; color: var(--aqua); font-size: 1.55rem; }
.stat span { color: rgba(255,255,255,.66); font-size: .86rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  position: relative; overflow: hidden; padding: 30px; border: 1px solid var(--line);
  border-radius: var(--radius); background: #fff; box-shadow: 0 12px 35px rgba(6,43,59,.05);
  transition: .28s ease;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card-icon {
  display: grid; width: 56px; height: 56px; margin-bottom: 24px; place-items: center;
  border-radius: 18px; background: var(--mist); color: var(--blue); font-size: 1.7rem;
}
.card h3 { margin: 0 0 10px; color: var(--navy); font-size: 1.18rem; }
.card p { margin: 0; color: var(--muted); font-size: .94rem; }
.card-link { display: inline-flex; margin-top: 20px; color: var(--blue); font-weight: 800; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 72px; }
.image-frame { position: relative; min-height: 520px; overflow: hidden; border-radius: 34px; }
.image-frame img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.image-note {
  position: absolute; right: 24px; bottom: 24px; max-width: 260px; padding: 22px;
  border-radius: 20px; background: rgba(6,43,59,.9); color: #fff; backdrop-filter: blur(10px);
}
.image-note strong { display: block; color: var(--aqua); font-size: 1.5rem; }
.check-list { display: grid; gap: 12px; margin: 28px 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-right: 32px; }
.check-list li::before { position: absolute; right: 0; top: 4px; color: var(--cyan); content: "✓"; font-weight: 900; }

.page-hero { position: relative; overflow: hidden; padding: 105px 0 80px; background: var(--navy); color: #fff; }
.page-hero::before {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(26,196,216,.22), transparent 30%),
              linear-gradient(120deg, transparent 55%, rgba(255,255,255,.05));
  content: "";
}
.page-hero .container { position: relative; }
.breadcrumbs { display: flex; gap: 8px; color: var(--aqua); font-size: .86rem; }
.page-hero h1 { margin: 14px 0 10px; font-size: clamp(2.6rem, 5vw, 4.8rem); line-height: 1.3; }
.page-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.72); }

.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: steps; }
.step { position: relative; padding: 28px 24px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); counter-increment: steps; }
.step::before { display: block; margin-bottom: 16px; color: var(--cyan); content: "0" counter(steps); font-size: 2rem; font-weight: 800; }
.step h3 { margin: 0 0 8px; color: var(--navy); }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

.service-detail { display: grid; grid-template-columns: 220px 1fr; gap: 30px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.service-detail h3 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.service-detail p { margin: 0; color: var(--muted); }
.service-number { color: var(--cyan); font-size: 2.4rem; font-weight: 800; }

.clients-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.client-chip {
  padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; color: var(--navy); font-size: .88rem; font-weight: 800;
  box-shadow: 0 8px 24px rgba(6,43,59,.05);
}
.project-showcase { display: grid; grid-template-columns: 1.25fr .75fr .75fr; grid-template-rows: 230px 230px; gap: 14px; margin-top: 42px; }
.project-showcase figure { position: relative; overflow: hidden; margin: 0; border-radius: 24px; background: var(--navy); }
.project-showcase figure:first-child { grid-row: 1 / 3; }
.project-showcase img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.project-showcase figure:hover img { transform: scale(1.04); }
.project-showcase figcaption {
  position: absolute; right: 14px; bottom: 14px; padding: 8px 13px;
  border-radius: 999px; background: rgba(6,43,59,.88); color: #fff; font-size: .78rem; font-weight: 800;
}

.vision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vision-card { padding: 34px; border-radius: 26px; background: var(--navy); color: rgba(255,255,255,.76); }
.vision-card:nth-child(2) { background: var(--blue); }
.vision-card:nth-child(3) { background: #147787; }
.vision-card span { color: var(--aqua); font-size: .8rem; font-weight: 800; }
.vision-card h3 { margin: 8px 0 12px; color: #fff; font-size: 1.4rem; }
.vision-card p { margin: 0; }

.system-tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.system-tag { padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--navy); font-size: .82rem; font-weight: 800; }
.brand-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 30px; }
.brand-name { display: grid; min-height: 90px; place-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--navy); font-weight: 800; text-align: center; }

.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 34px; }
.filter-button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; }
.filter-button.active, .filter-button:hover { border-color: var(--navy); background: var(--navy); color: #fff; }
.search-box { position: relative; flex: 1; min-width: 250px; margin-left: 10px; }
.search-box input { width: 100%; min-height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; outline: none; }
.search-box input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(26,196,216,.12); }
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.product-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: .25s; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.product-image { position: relative; height: 240px; overflow: hidden; background: var(--mist); }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.product-card:hover img { transform: scale(1.04); }
.product-status { position: absolute; top: 16px; right: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--blue); font-size: .75rem; font-weight: 800; }
.product-body { padding: 22px; }
.product-category { color: var(--blue); font-size: .78rem; font-weight: 800; }
.product-body h3 { margin: 6px 0 10px; color: var(--navy); }
.product-body p { min-height: 54px; margin: 0 0 18px; color: var(--muted); font-size: .88rem; }
.product-actions { display: flex; gap: 8px; }
.product-actions .button { flex: 1; padding-inline: 12px; }
.empty-state { grid-column: 1/-1; padding: 60px; border-radius: 24px; background: var(--mist); text-align: center; color: var(--muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  position: relative; height: 290px; overflow: hidden; padding: 0; border: 0; border-radius: 20px; background: var(--navy);
}
.gallery-item:nth-child(5n+1) { grid-column: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.gallery-item::after { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(6,43,59,.5); color: #fff; content: "عرض الصورة  +"; font-weight: 800; opacity: 0; transition: .25s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item.is-hidden { display: none; }
.project-block { margin-bottom: 70px; }
.project-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.project-heading h2 { margin: 0; color: var(--navy); font-size: clamp(1.5rem, 3vw, 2.2rem); }
.project-heading p { max-width: 560px; margin: 0; color: var(--muted); font-size: .9rem; }
.gallery-item-label {
  position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 7px 11px;
  border-radius: 999px; background: rgba(6,43,59,.86); color: #fff; font-size: .72rem; font-weight: 800;
}

.modal {
  position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center;
  padding: 24px; background: rgba(2,25,34,.86); backdrop-filter: blur(12px);
}
.modal.open { display: flex; }
.modal-panel { position: relative; width: min(820px, 100%); max-height: 90vh; overflow: auto; border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.modal-close { position: absolute; z-index: 2; top: 14px; left: 14px; display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 50%; background: var(--navy); color: #fff; font-size: 1.2rem; }
.modal-content { display: grid; grid-template-columns: .9fr 1.1fr; }
.modal-content > img { width: 100%; height: 100%; min-height: 430px; object-fit: cover; }
.modal-copy { padding: 42px; }
.modal-copy h2 { margin: 8px 0 12px; color: var(--navy); }
.specs { display: grid; gap: 8px; margin: 24px 0; padding: 0; list-style: none; }
.specs li { padding: 8px 12px; border-radius: 10px; background: var(--mist); font-size: .88rem; }
.lightbox-panel { width: min(1000px,100%); background: transparent; }
.lightbox-panel img { width: 100%; max-height: 84vh; object-fit: contain; border-radius: 20px; }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 42px; }
.contact-card { padding: 32px; border-radius: 26px; background: var(--navy); color: #fff; }
.contact-item { padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-item:last-child { border-bottom: 0; }
.contact-item span { display: block; color: var(--aqua); font-size: .78rem; font-weight: 800; }
.contact-item strong { font-size: 1.05rem; }
.contact-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { color: var(--navy); font-size: .88rem; font-weight: 800; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; outline: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(26,196,216,.12); }
.map { min-height: 380px; overflow: hidden; border-radius: 28px; }
.map iframe { width: 100%; height: 380px; border: 0; }
.branch-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.branch-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.branch-card > p, .branch-card > .branch-numbers, .branch-card > .map { grid-column: 1 / -1; }
.branch-card h3 { margin: 2px 0 0; color: var(--navy); font-size: 1.4rem; }
.branch-card p { min-height: 58px; margin: 0; color: var(--muted); }
.branch-flag { font-size: 2.2rem; line-height: 1; }
.branch-numbers { display: flex; flex-wrap: wrap; gap: 12px; }
.branch-numbers a { flex: 1; min-width: 150px; padding: 12px 14px; border-radius: 14px; background: var(--mist); color: var(--navy); font-weight: 800; direction: ltr; text-align: right; }
.branch-numbers small { display: block; color: var(--muted); font-size: .72rem; direction: rtl; }
.branch-card .map, .branch-card .map iframe { min-height: 260px; height: 260px; }

.cta { position: relative; overflow: hidden; padding: 60px; border-radius: 34px; background: var(--navy); color: #fff; }
.cta::after { position: absolute; left: -80px; top: -100px; width: 300px; height: 300px; border: 60px solid rgba(26,196,216,.08); border-radius: 50%; content: ""; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta h2 { max-width: 650px; margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.4; }

.site-footer { margin-top: 96px; padding: 72px 0 24px; background: #041f2b; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr .9fr; gap: 70px; }
.footer-logo { width: 190px; height: auto; margin-bottom: 20px; filter: none; }
.footer-title { margin: 0 0 18px; color: #fff; font-size: 1rem; }
.footer-links { display: grid; gap: 9px; }
.footer-links a:hover { color: var(--aqua); }
.copyright { display: flex; margin-top: 52px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); justify-content: space-between; gap: 20px; font-size: .8rem; }
.floating-actions { position: fixed; z-index: 45; left: 22px; bottom: 22px; display: grid; gap: 10px; }
.float-button { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; box-shadow: 0 10px 28px rgba(6,43,59,.25); color: #fff; font-size: .82rem; font-weight: 800; }
.float-whatsapp { background: #1fb86a; }
.float-uae { background: #158457; }
.float-facebook { background: #1877f2; font-family: Arial, sans-serif; font-size: 1.25rem; }
.float-phone { background: var(--blue); }

.reveal { opacity: 0; transform: translateY(22px); transition: .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .nav-links {
    position: fixed; inset: 120px 20px auto; display: grid; padding: 24px;
    border-radius: 22px; background: #fff; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-12px); transition: .2s;
  }
  .menu-open .nav-links { opacity: 1; pointer-events: auto; transform: none; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .cards, .products-grid { grid-template-columns: repeat(2, 1fr); }
  .vision-grid { grid-template-columns: 1fr; }
  .project-showcase { grid-template-columns: 1fr 1fr; }
  .project-showcase figure:first-child { grid-column: 1 / 3; grid-row: auto; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .branch-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .image-frame { order: -1; min-height: 420px; }
  .image-frame img { min-height: 420px; }
}

@media (max-width: 680px) {
  :root { --container: min(100% - 28px, 1180px); }
  .section { padding: 68px 0; }
  .topbar { display: none; }
  .nav { min-height: 72px; }
  .logo img { width: 142px; }
  .nav-links { inset: 84px 14px auto; }
  .hero { min-height: 680px; }
  .hero::before { background-position: 58% center; }
  .hero-content { padding: 90px 0 72px; }
  .hero h1 { font-size: 2.9rem; }
  .hero-stats { grid-template-columns: 1fr; margin-bottom: -120px; }
  .stat { padding: 18px 22px; border-bottom: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .home-after-hero { padding-top: 175px; }
  .cards, .products-grid, .steps, .gallery-grid { grid-template-columns: 1fr; }
  .project-showcase { grid-template-columns: 1fr; grid-template-rows: none; }
  .project-showcase figure, .project-showcase figure:first-child { grid-column: auto; height: 240px; }
  .brand-row { grid-template-columns: repeat(2, 1fr); }
  .project-heading { display: block; }
  .gallery-item:nth-child(5n+1) { grid-column: auto; }
  .gallery-item { height: 260px; }
  .service-detail { grid-template-columns: 1fr; gap: 10px; }
  .filter-bar { align-items: stretch; }
  .search-box { order: -1; flex-basis: 100%; margin: 0 0 8px; }
  .cta { padding: 36px 24px; }
  .cta-inner { display: grid; }
  .modal-content { grid-template-columns: 1fr; }
  .modal-content > img { min-height: 260px; max-height: 310px; }
  .modal-copy { padding: 30px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .copyright { display: grid; }
  .floating-actions { left: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
