body {
  background-color: #0a0a0a;
  color: #f5f5f5;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

header {
  padding: 1.25rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.logo { width: 100px; height: auto; }
nav { display: flex; }
nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  margin-right: 2rem;
}
nav a:hover { color: #fff; }

main {
  padding: 2rem;
  max-width: min(860px, 100%);
  margin: 0 auto;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Back link */
.wd-back {
  display: inline-block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.wd-back:hover { color: #fff; }

/* Project logo above title (e.g. Milsiz Art) */
.wd-project-logo {
  max-width: 140px;
  max-height: 48px;
  height: auto;
  margin-bottom: 1rem;
  object-fit: contain;
}
.wd-project-logo--light {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
/* When logo replaces title (e.g. Governate): large */
.wd-project-logo--replaces-title {
  max-width: 560px;
  max-height: 192px;
}

/* Hero */
.wd-hero {
  margin-bottom: 4rem;
}
.wd-title {
  font-size: clamp(1.8rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: #fff;
}
.wd-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 2rem;
  max-width: 48ch;
}
.wd-hero-visual {
  margin-top: 2rem;
  border-radius: 14px;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

/* Placeholders */
.wd-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  max-width: 100%;
  min-width: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.wd-placeholder .wd-img {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}
.wd-placeholder--has-image .wd-img {
  display: block;
}
.wd-placeholder--has-image .wd-placeholder-label {
  display: none;
}
.wd-placeholder--has-image {
  background: transparent;
  border-color: transparent;
}
.wd-placeholder--hero {
  aspect-ratio: 21/9;
  min-height: 200px;
}
.wd-placeholder--wide {
  aspect-ratio: 16/7;
  min-height: 160px;
}
.wd-placeholder-label { pointer-events: none; }

/* Featured image section - constrain width */
.wd-section.wd-visuals-single {
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

/* Sections */
.wd-section {
  margin-bottom: 4rem;
}

/* Overview */
.wd-overview {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.wd-overview-meta {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  min-width: 140px;
  padding-top: 0.2rem;
}
.wd-lead {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  max-width: 52ch;
}

/* ----- Per-project layout: wide (e.g. Governate) -----
   Overview: meta stays top-left, body starts to the right and uses full width so text spans below the tag.
   Details sections also use full width. */
.wd-layout--wide main {
  max-width: min(1000px, 100%);
}
.wd-layout--wide .wd-overview {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0 3rem;
  align-items: start;
}
.wd-layout--wide .wd-overview-meta {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding-top: 0.2rem;
}
.wd-layout--wide .wd-overview-body {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}
.wd-layout--wide .wd-lead {
  max-width: none;
}
.wd-layout--wide .wd-details p {
  max-width: none;
}


/* Details (text sections) */
.wd-details h2 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.wd-details p {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  max-width: 56ch;
}

/* CTA */
.wd-cta {
  text-align: center;
  padding: 2rem 0;
}
.wd-visit-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  color: #0a0a0a;
  background: #fff;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: inherit;
}
.wd-visit-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Hamburger + mobile nav */
.nav-close { display: none; }
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger div {
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: 0.4s;
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  nav.active { display: flex; }
  .nav-close {
    display: flex;
    position: absolute;
    top: 1.25rem; right: 1.5rem;
    align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0;
    background: none; border: none;
    color: #fff; font-size: 2rem; line-height: 1;
    cursor: pointer; font-family: inherit; opacity: 0.9;
  }
  .nav-close:hover { opacity: 1; }
  nav a { margin: 1rem 0; font-size: 2rem; font-weight: 500; }
  main { padding: 1.5rem 1rem; }
  .wd-title { font-size: 1.6rem; }
  .wd-subtitle { font-size: 1rem; }
  .wd-overview { flex-direction: column; gap: 1rem; }
  .wd-overview-meta { min-width: auto; }
  .wd-layout--wide .wd-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .wd-layout--wide .wd-overview-meta,
  .wd-layout--wide .wd-overview-body {
    grid-column: auto;
    grid-row: auto;
  }
  /* Prevent images from causing horizontal scroll on mobile */
  .wd-hero-visual,
  .wd-section.wd-visuals-single {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .wd-placeholder {
    width: 100%;
    box-sizing: border-box;
  }
  .wd-placeholder--hero { min-height: 160px; }
  .wd-placeholder--wide { min-height: 140px; }
  footer { flex-direction: column; text-align: center; }
  .footer-links { margin-top: 1rem; justify-content: center; }
}
