/* Project detail pages */
.project-page-hero {
  position: relative;
  min-height: 52vh;
  background: #3b3e2d;
  overflow: hidden;
  padding-bottom: 64px;
}

.project-page-hero .navbar-wrap {
  position: relative;
  z-index: 10;
}

.project-page-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.project-page-hero-inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  max-width: 760px;
  color: #fff;
}

.project-eyebrow {
  margin: 0 0 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: #c3c7b2;
}

.project-page-title {
  margin: 0 0 16px;
  font-family: Geist, Arial, sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.project-page-lead {
  margin: 0;
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
}

.project-detail {
  background: #f5f6f1;
  padding: 72px 0 96px;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: start;
}

.project-detail-copy h2 {
  margin: 0 0 16px;
  font-family: Geist, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #3b3e2d;
}

.project-detail-copy p {
  margin: 0 0 16px;
  font-family: Geist, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #63655d;
}

.project-detail-copy a {
  color: #3b3e2d;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-detail-copy a:hover {
  color: #63655d;
}

.project-specs {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.project-specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: #fff;
  border-radius: 8px;
  font-family: Geist, Arial, sans-serif;
  font-size: 15px;
  color: #3b3e2d;
}

.project-specs span {
  color: #63655d;
}

.project-units-wrap {
  margin-top: 48px;
  overflow-x: auto;
}

.project-units-title {
  margin: 0 0 16px;
  font-family: Geist, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #3b3e2d;
}

.project-units {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  font-family: Geist, Arial, sans-serif;
}

.project-units th {
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #63655d;
  padding: 0 16px 4px;
}

.project-units td {
  background: #fff;
  padding: 14px 16px;
  font-size: 15px;
  color: #3b3e2d;
  white-space: nowrap;
}

.project-units td:first-child {
  border-radius: 8px 0 0 8px;
  font-weight: 500;
}

.project-units td:last-child {
  border-radius: 0 8px 8px 0;
  color: #63655d;
}

.project-side-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  position: sticky;
  top: 24px;
}

.project-side-card h3 {
  margin: 0 0 12px;
  font-family: Geist, Arial, sans-serif;
  font-size: 22px;
  font-weight: 500;
  color: #3b3e2d;
}

.project-side-card p {
  margin: 0 0 20px;
  font-size: 15px;
  line-height: 1.55;
  color: #63655d;
}

.project-side-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  border-radius: 999px;
  background: #3b3e2d;
  color: #fff;
  text-decoration: none;
  font-family: Geist, Arial, sans-serif;
  font-size: 15px;
  transition: opacity 0.25s ease;
}

.project-side-cta:hover {
  opacity: 0.88;
}

.project-side-cta.secondary {
  margin-top: 10px;
  background: transparent;
  color: #3b3e2d;
  border: 1px solid #c3c7b2;
}

.project-gallery {
  background: #fff;
  padding: 72px 0 96px;
}

.project-gallery h2 {
  margin: 0 0 20px;
  font-family: Geist, Arial, sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #3b3e2d;
}

.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.gallery-filter-btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c3c7b2;
  border-radius: 999px;
  padding: 8px 20px;
  background: transparent;
  color: #3b3e2d;
  font-family: Geist, Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 24px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.gallery-filter-btn:hover,
.gallery-filter-btn.is-active {
  background: #3b3e2d;
  border-color: #3b3e2d;
  color: #fff;
}

.project-gallery-grid a.is-hidden {
  display: none;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-gallery-grid a,
.project-gallery-grid figure {
  margin: 0;
  display: block;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3;
  background: #3b3e2d;
}

.project-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-gallery-grid a:hover img {
  transform: scale(1.04);
}

.project-gallery-grid .wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

.project-gallery-grid a.plan {
  background: #f5f6f1;
}

.project-gallery-grid a.plan img {
  object-fit: contain;
}

@media (max-width: 991px) {
  .project-detail-grid {
    grid-template-columns: 1fr;
  }

  .project-side-card {
    position: static;
  }

  .project-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-gallery-grid .wide {
    grid-column: span 2;
  }

  .project-page-hero-inner,
  .projects-hero-inner {
    padding-top: 148px;
  }
}

@media (max-width: 767px) {
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .project-gallery-grid .wide {
    grid-column: auto;
    aspect-ratio: 4 / 3;
  }

  .project-page-hero {
    min-height: 0;
    padding-bottom: 48px;
  }

  .project-page-hero-inner {
    padding-top: 132px;
  }

  .project-page-title {
    font-size: clamp(32px, 10vw, 48px);
  }

  .project-page-lead {
    font-size: 16px;
  }

  .project-detail,
  .project-gallery {
    padding: 48px 0 64px;
  }

  .project-detail-copy h2,
  .project-gallery h2 {
    font-size: 26px;
  }

  .project-specs li {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .project-units-title {
    font-size: 26px;
  }

  .project-units th,
  .project-units td {
    padding: 12px 10px;
    font-size: 13px;
  }

  .project-side-card {
    padding: 22px;
  }
}

@media (max-width: 479px) {
  .project-page-hero-inner {
    padding-top: 120px;
  }

  .project-side-cta {
    font-size: 14px;
    padding: 12px 16px;
  }
}
