/* ============================================================
   PROJECT DETAIL PAGE — PREMIUM ARCHITECTURAL CASE STUDY
   ============================================================ */

.project-detail-page {
  background: #ffffff;
  padding-bottom: 0;
}

/* ---- HERO ---- */
.pd-hero {
  width: 100%;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background: #1a1a1a;
}

.pd-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.85);
}

/* Overlay gradient for title readability */
.pd-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  pointer-events: none;
}

/* Gallery Controls */
.pd-gallery-controls {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.pd-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pd-dot.active,
.pd-dot:hover {
  background: #fff;
  transform: scale(1.3);
}

.pd-expand {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pd-expand:hover {
  background: #fff;
  color: #1a1a1a;
}

/* ---- TITLE BLOCK ---- */
.pd-header {
  padding: 72px 0 56px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.pd-header-left {
  flex: 1;
}

.pd-title {
  font-family: var(--sans);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 900;
  color: #1a1a1a;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pd-location {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pd-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.pd-tag {
  font-size: 0.85rem;
  font-weight: 600;
  color: #999;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

/* ---- SPLIT CONTENT ---- */
.pd-content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  padding: 64px 0 80px;
}

/* Left: Metadata / Sticky sidebar */
.pd-meta-list {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 120px;
  align-self: start;
}

.pd-meta-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-meta-row:first-child {
  padding-top: 0;
}

.pd-meta-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #aaa;
}

.pd-meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a1a1a;
  text-align: left;
  max-width: 100%;
}

/* ---- WORDPRESS CONTENT (Right column) ---- */
.pd-desc {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  color: #333;
  overflow: hidden;
}

/* First paragraph = lead paragraph */
.pd-desc p:first-of-type {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.7;
  color: #1a1a1a;
}

/* ---- Style all images inside WordPress content ---- */
.pd-desc img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 32px 0;
  object-fit: cover;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
  transition: transform 4.2s ease;
}

.pd-desc img:hover {
  transform: scale(1.01);
}

/* Elementor figure images */
.pd-desc figure {
  margin: 24px 0;
  overflow: hidden;
  border-radius: 4px;
}

.pd-desc figure img {
  margin: 0;
  border-radius: 0;
}

/* Tighten Elementor sections */
.pd-desc .elementor-section,
.pd-desc .elementor-element,
.pd-desc [data-element_type="container"] {
  margin: 0 !important;
  padding: 0 !important;
}

.pd-desc .elementor-widget-wrap,
.pd-desc .e-con-inner {
  padding: 0 !important;
  gap: 24px !important;
}

/* Headings inside content */
.pd-desc h2 {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 900;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.pd-desc h3 {
  font-family: var(--sans);
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 32px 0 12px;
}

/* Carousel / swiper images */
.pd-desc .swiper-slide img,
.pd-desc .elementor-image-carousel img {
  border-radius: 4px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
}

/* Clean up excessive inline styles from Elementor */
.pd-desc .elementor-widget-text-editor {
  font-size: inherit !important;
  line-height: inherit !important;
}

/* Image grid: make multiple adjacent images flow in a grid */
.pd-desc .elementor-widget-image+.elementor-widget-image {
  margin-top: 0 !important;
}

/* Remove excessive Elementor style tags from display */
.pd-desc style {
  display: none;
}

/* ---- BOTTOM NAV ---- */
.pd-bottom-nav {
  padding: 48px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.pd-nav-btn {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 100px;
  transition: all 0.3s ease;
  background: transparent;
}

.pd-nav-btn:hover {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

.pd-nav-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: none;
  font-weight: 700;
  color: #999;
}

.pd-nav-center:hover {
  background: transparent;
  color: #1a1a1a;
  border: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pd-header {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .pd-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pd-meta-list {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  .pd-meta-row {
    flex: 1;
    min-width: 130px;
    padding: 14px 20px 14px 0;
  }

}

@media (max-width: 768px) {

  .pd-header {
    padding: 32px 0;
    gap: 16px;
  }

  .pd-title {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .pd-location {
    font-size: 0.75rem;
  }

  .pd-content {
    padding: 24px 0 40px;
    gap: 28px;
  }

  .pd-meta-list {
    flex-direction: column;
  }

  .pd-meta-row {
    padding: 10px 0;
    min-width: unset;
  }

  .pd-meta-label {
    font-size: 0.6rem;
  }

  .pd-meta-value {
    font-size: 0.9rem;
  }

  .pd-desc {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .pd-desc p:first-of-type {
    font-size: 1rem;
  }

  .pd-desc img {
    margin: 16px 0;
  }

  .pd-desc h2 {
    font-size: 1.2rem;
    margin: 28px 0 10px;
    padding-top: 16px;
  }

  .pd-desc h3 {
    font-size: 1rem;
    margin: 20px 0 8px;
  }

  .pd-bottom-nav {
    padding: 28px 0;
    gap: 12px;
  }

  .pd-nav-btn {
    font-size: 0.7rem;
    padding: 12px 20px;
  }

  .pd-nav-center {
    position: static;
    transform: none;
  }

  .pd-gallery-controls {
    bottom: 16px;
  }

  .pd-expand {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }


  .pd-tags {
    gap: 6px;
  }
}

@media (max-width: 480px) {

  .pd-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }

  .pd-header {
    padding: 24px 0;
  }

  .pd-content {
    padding: 20px 0 32px;
  }

  .pd-desc {
    font-size: 0.9rem;
  }

  .pd-bottom-nav {
    padding: 20px 0;
    gap: 10px;
  }

  .pd-nav-btn {
    font-size: 0.65rem;
    padding: 10px 16px;
  }
}