:root {
  --primary: #0F4C81;
  --primary-deep: #0a355c;
  --accent: #78B347;
  --accent-dark: #5f9334;
  --ink: #122033;
  --muted: #5b6b7c;
  --sand: #eef3f7;
  --line: rgba(15, 76, 129, 0.12);
  --white: #fff;
  --shadow: 0 18px 50px rgba(10, 37, 64, 0.12);
  --radius: 18px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --display: "Tajawal", "Cairo", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 100% -10%, rgba(120, 179, 71, 0.14), transparent 55%),
    radial-gradient(900px 400px at 0% 0%, rgba(15, 76, 129, 0.12), transparent 50%),
    linear-gradient(180deg, #f7fafc 0%, #eef3f7 45%, #f8fafc 100%);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,0.86);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 84px;
}
.brand img { height: 62px; width: auto; }
.nav-desktop { display: none; gap: 1.1rem; align-items: center; }
.nav-desktop a {
  font-weight: 700; font-size: .95rem; color: var(--ink);
  position: relative; padding: .35rem 0;
}
.nav-desktop a::after {
  content: ""; position: absolute; right: 0; bottom: 0; width: 0; height: 2px;
  background: var(--accent); transition: width .25s ease;
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 0; cursor: pointer; font-weight: 800; font-family: inherit;
  border-radius: 999px; padding: .75rem 1.25rem; transition: .25s ease;
}
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(120,179,71,.35); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-deep); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); }
.menu-toggle {
  display: inline-flex; border: 0; background: transparent; padding: .4rem; cursor: pointer;
}
.mobile-panel {
  display: none; border-top: 1px solid var(--line); padding: .75rem 0 1.25rem;
}
.mobile-panel.open { display: block; }
.mobile-panel a {
  display: block; padding: .7rem 0; font-weight: 700; border-bottom: 1px dashed var(--line);
}

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 720px);
  display: grid; place-items: center; color: #fff; overflow: hidden;
  background: #0a355c center/cover no-repeat;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(10,53,92,.78), rgba(15,76,129,.45) 45%, rgba(10,40,60,.7)),
    linear-gradient(to top, rgba(8,24,40,.65), transparent 45%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  width: min(920px, calc(100% - 2rem));
  padding: 5rem 0 4rem;
  animation: rise .8s ease both;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(120,179,71,.92); color: #fff;
  padding: .4rem .9rem; border-radius: 999px; font-weight: 800; font-size: .85rem;
  margin-bottom: 1.2rem; border: 1px solid rgba(255,255,255,.25);
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.25; margin: 0 0 1rem; font-weight: 900;
  text-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.hero p { margin: 0 auto 1.6rem; max-width: 40rem; color: rgba(255,255,255,.92); font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }

.search-sheet {
  margin-top: 2rem; background: rgba(255,255,255,.96); color: var(--ink);
  border-radius: 28px; padding: .85rem; box-shadow: var(--shadow);
  display: grid; gap: .6rem;
}
.search-sheet .field {
  text-align: right; padding: .65rem .9rem; border-radius: 18px; background: #f4f7fa;
}
.search-sheet label { display: block; font-size: .75rem; color: var(--muted); font-weight: 700; }
.search-sheet input, .search-sheet select {
  width: 100%; border: 0; background: transparent; font: inherit; font-weight: 800;
  outline: none; padding: .2rem 0; color: var(--ink);
}

/* Sections */
.section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; }
.section-head h2 {
  font-family: var(--display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 .4rem; font-weight: 900;
}
.section-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.reveal { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.city-grid, .card-grid, .dev-grid, .article-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}
.city-card, .project-card, .dev-card, .article-card {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10,37,64,.05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.city-card:hover, .project-card:hover, .dev-card:hover, .article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.city-card .media, .project-card .media, .article-card .media {
  aspect-ratio: 16/10; background: #d9e3ec; position: relative; overflow: hidden;
}
.city-card .media img, .project-card .media img, .article-card .media img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.city-card .body, .project-card .body, .dev-card .body, .article-card .body { padding: 1rem 1.1rem 1.2rem; }
.badge {
  display: inline-flex; padding: .2rem .55rem; border-radius: 999px;
  background: rgba(15,76,129,.08); color: var(--primary); font-size: .75rem; font-weight: 800;
}
.meta-row {
  display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .75rem;
}
.meta-pill {
  background: #f1f5f9; border-radius: 999px; padding: .25rem .65rem;
  font-size: .78rem; font-weight: 700; color: var(--muted);
}
.project-card h3, .article-card h3, .city-card h3 { margin: .45rem 0; font-size: 1.05rem; line-height: 1.45; }
.muted { color: var(--muted); }
.dev-card { padding: 1.1rem; text-align: center; }
.dev-card img { width: 88px; height: 88px; object-fit: contain; margin: 0 auto .8rem; }

.cta-band {
  margin: 1rem 0 0;
  border-radius: 28px;
  padding: 2rem;
  background:
    linear-gradient(135deg, var(--primary), var(--primary-deep)),
    radial-gradient(circle at 20% 20%, rgba(120,179,71,.35), transparent 45%);
  color: #fff;
  display: grid; gap: 1rem;
  align-items: center;
}
.cta-band h2 { margin: 0; font-family: var(--display); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* Project detail */
.page-hero {
  padding: 3.5rem 0 2rem;
  background:
    linear-gradient(135deg, rgba(15,76,129,.08), rgba(120,179,71,.08));
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin: .4rem 0; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.prose {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 1.4rem 1.2rem; box-shadow: 0 10px 30px rgba(10,37,64,.04);
}
.prose h2, .prose h3 { font-family: var(--display); color: var(--primary-deep); }
.prose img { border-radius: 14px; margin: 1rem 0; }
.prose .cta-wrapper {
  margin: 1.4rem 0; padding: 1rem; border-radius: 16px;
  background: linear-gradient(135deg, #f3f8ef, #eef5fb);
  border: 1px solid var(--line);
}
.prose .cta-buttons-container { display: flex; flex-wrap: wrap; gap: .6rem; }
.prose .cta-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .65rem 1rem; border-radius: 999px; font-weight: 800; color: #fff;
}
.prose .btn-whatsapp { background: #25d366; }
.prose .btn-call { background: var(--primary); }
.prose .btn-email { background: #334155; }

.side-card {
  position: sticky; top: 100px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem;
  box-shadow: var(--shadow);
}
.side-card .stat { display: flex; justify-content: space-between; padding: .55rem 0; border-bottom: 1px dashed var(--line); font-weight: 700; }
.layout-2 {
  display: grid; gap: 1.25rem;
}
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .6rem; margin: 1rem 0;
}
.gallery a {
  aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: #e2e8f0 center/cover;
}

/* Forms */
.form-grid { display: grid; gap: .85rem; }
.form-grid input, .form-grid textarea, .form-grid select {
  width: 100%; border: 1px solid var(--line); border-radius: 14px;
  padding: .85rem 1rem; font: inherit; background: #fff;
}
.alert { padding: .85rem 1rem; border-radius: 12px; font-weight: 700; margin-bottom: 1rem; }
.alert-ok { background: #ecfdf3; color: #166534; }
.alert-err { background: #fef2f2; color: #991b1b; }

/* Footer */
.site-footer {
  margin-top: 3rem; color: #dbe7f3;
  background:
    linear-gradient(180deg, #0b3358, #071f36);
  padding: 3rem 0 1.5rem;
}
.footer-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h3 { color: #fff; margin: 0 0 .8rem; font-family: var(--display); }
.site-footer a { color: #c9d8e8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; font-size: .9rem;
}
.whatsapp-float {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  animation: pulse 2.4s infinite;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .search-sheet { grid-template-columns: 1.2fr 1fr 1fr auto; align-items: end; }
  .layout-2 { grid-template-columns: 1.6fr .8fr; }
  .cta-band { grid-template-columns: 1.4fr auto; }
}
'''

