:root {
  --ink: #14181c;
  --ink-soft: #4a5158;
  --paper: #fbfbf9;
  --paper-dim: #f1efe9;
  --line: #e2dfd6;
  --accent: #1e3a5f;
  --accent-bright: #3b6ea5;
  --footer-ink: #0f1216;
  --radius: 2px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Heebo', 'Cairo', sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body { font-family: 'Cairo', 'Heebo', sans-serif; }

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

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.eyebrow {
  display: block;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; }
p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251,251,249,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}

.logo-mark { display: block; color: var(--ink); width: 132px; }
.logo-mark svg { width: 100%; height: auto; display: block; }

.logo-link { display: block; flex: none; }

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

nav.main-nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color .15s ease;
}
nav.main-nav a:hover { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-switch button {
  border: 0;
  background: transparent;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: inherit;
}
.lang-switch button + button { border-inline-start: 1px solid var(--line); }
.lang-switch button.active { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--ink);
  transition: background .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(251,251,249,.55), rgba(251,251,249,.95)),
    var(--paper-dim);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: .55;
  mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 4vw, 52px); max-width: 18ch; letter-spacing: -.01em; }
.hero .lede { margin-top: 22px; font-size: 18px; color: var(--ink-soft); max-width: 46ch; }
.hero .cta-row { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art img { width: 100%; height: auto; }
.hero-stats {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 32px;
}
.hero-stats div strong { display: block; font-size: 26px; color: var(--ink); }
.hero-stats div span { font-size: 13px; color: var(--ink-soft); }

/* ---------- Section shell ---------- */
section { padding: 88px 0; scroll-margin-top: 76px; }
section.tight { padding: 64px 0; }
.section-head { max-width: 62ch; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--ink-soft); }

.alt-bg { background: var(--paper-dim); border-block: 1px solid var(--line); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 56px;
  align-items: start;
}
.about-grid p { font-size: 16.5px; color: var(--ink-soft); }
.about-grid p + p { margin-top: 16px; }
.about-figure {
  border: 1px solid var(--line);
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
}
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.timeline li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.timeline .yr { font-weight: 700; color: var(--accent); font-size: 15px; }
.timeline .tx { font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Services ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 32px 28px;
  border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
}
.service-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.service-icon {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin-bottom: 22px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { font-size: 15px; color: var(--ink-soft); }
.service-card .tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  border: 1px solid var(--line);
  padding: 5px 10px;
  border-radius: var(--radius);
}

/* ---------- Building types ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.type-card {
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.type-card .type-icon { width: 40px; height: 40px; margin: 0 auto 16px; color: var(--ink); }
.type-card h4 { font-size: 15px; font-weight: 600; }
.type-note {
  margin-top: 28px;
  font-size: 15px;
  color: var(--ink-soft);
  border-inline-start: 3px solid var(--accent);
  padding-inline-start: 16px;
}

/* ---------- Projects ---------- */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.project-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.project-art {
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.project-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.project-card:hover .project-art img { transform: scale(1.03); }
.project-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--radius);
}
.project-body { padding: 20px 22px 24px; }
.project-body h4 { font-size: 16px; margin-bottom: 6px; }
.project-body p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 36px;
  border-radius: var(--radius);
}
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: 0; }
.contact-row .ic { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.contact-row .lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 4px; }
.contact-row .val { font-size: 16px; font-weight: 600; }
.contact-row a.val { text-decoration: none; }
.contact-row a.val:hover { color: var(--accent); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--footer-ink);
  color: #cfd3d8;
  padding: 56px 0 28px;
}
footer .footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
footer .logo-mark { color: #fff; }
footer .footer-tagline { margin-top: 14px; font-size: 14px; color: #8b9096; max-width: 34ch; }
footer .footer-cols { display: flex; gap: 64px; }
footer .footer-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #8b9096; margin-bottom: 14px; }
footer .footer-col a, footer .footer-col span { display: block; font-size: 14px; color: #cfd3d8; text-decoration: none; margin-bottom: 10px; }
footer .footer-col a:hover { color: #fff; }
footer .footer-bottom {
  padding-top: 24px;
  font-size: 13px;
  color: #6b7076;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.main-nav { display: none; }
  .nav-toggle { display: flex; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 320px; }
  .about-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  footer .footer-top { flex-direction: column; }
}

body.nav-open .main-nav {
  display: flex;
  position: absolute;
  top: 76px;
  inset-inline: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  padding: 20px 28px 28px;
  gap: 18px;
}
