/* ====================================
   PROJECT DETAIL PAGE STYLES
   Pixel-perfect match to Figma design
   ==================================== */

/* Header - Solid maroon background */
.project-detail-page .header {
  position: relative;
  background-color: var(--primary-color);
}

.project-detail-page .header .navbar {
  background-color: var(--primary-color);
}

/* ====================================
   HERO BANNER
   Full-width image, gold "Modern Concept"
   at bottom center
   ==================================== */
.detail-hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.detail-hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.detail-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(56, 6, 6, 0) 0%,
    rgba(56, 6, 6, 1) 100%
  );
  z-index: 2;
}

.detail-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding-bottom: 50px;
}

/* Gold title, Trajan Pro small caps */
.detail-hero-content h1 {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-color);
  letter-spacing: 6px;
  margin: 0;
  /* NO text-transform — Trajan Pro small caps */
}

/* ====================================
   PROJECT DESCRIPTION SECTION
   White bg, title left + text left,
   image right
   ==================================== */
.project-description {
  background-color: var(--bg-page);
  padding: 70px 0 80px;
}

.project-description > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

/* Title — Trajan Pro small caps, maroon */
.project-main-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  letter-spacing: 1px;
  margin-bottom: 25px;
  line-height: 1.35;
  /* NO text-transform — Trajan Pro small caps */
}

/* Body text */
.project-text p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 22px;
  margin-bottom: 0;
  text-align: left;
}

.project-text p strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* Right-side image */
.project-description-image {
  height: 100%;
}

.project-description-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ====================================
   SHARED HERITAGE SECTION
   White bg, image left, gold title right
   ==================================== */
.heritage-section {
  background-color: var(--bg-page);
  padding: 0 0 80px;
}

.heritage-section > .container {
  max-width: 100%;
  padding-left: 23px;
  padding-right: 23px;
}

.heritage-images {
  position: relative;
  padding-right: 0;
}

.heritage-overlay-image {
  width: 100%;
  height: auto;
  display: block;
}

/* Heritage content — right side */
.heritage-content {
  padding-left: 45px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.heritage-title {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.35;
  font-style: normal;
  letter-spacing: 1px;
}

.heritage-content p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  line-height: 22px;
  text-align: left;
  margin-bottom: 0;
}

.heritage-content p strong {
  color: var(--primary-color);
  font-weight: 700;
}

/* ====================================
   RESPONSIVE STYLES
   ==================================== */
@media (max-width: 1199.98px) {
  .detail-hero-content h1 {
    font-size: 36px;
  }

  .project-main-title {
    font-size: 25px;
  }

  .heritage-title {
    font-size: 25px;
  }
}

@media (max-width: 991.98px) {
  .detail-hero {
    height: 60vh;
    min-height: 400px;
  }

  .detail-hero-content h1 {
    font-size: 30px;
    letter-spacing: 4px;
  }

  .detail-hero-content {
    padding-bottom: 40px;
  }

  .project-description {
    padding: 60px 0;
  }

  .heritage-section {
    padding: 0 0 60px;
  }

  .project-main-title {
    font-size: 22px;
  }

  .heritage-content {
    padding-left: 0;
    margin-top: 40px;
  }

  .heritage-title {
    font-size: 22px;
  }
}

@media (max-width: 767.98px) {
  .detail-hero {
    height: 50vh;
    min-height: 350px;
  }

  .detail-hero-content h1 {
    font-size: 24px;
    letter-spacing: 3px;
  }

  .detail-hero-content {
    padding-bottom: 30px;
  }

  .project-description {
    padding: 50px 0;
  }

  .heritage-section {
    padding: 0 0 50px;
  }

  .project-main-title {
    font-size: 18px;
  }

  .project-text p,
  .heritage-content p {
    font-size: 13px;
  }

  .heritage-title {
    font-size: 20px;
  }
}

@media (max-width: 575.98px) {
  .detail-hero-content h1 {
    font-size: 20px;
    letter-spacing: 2px;
  }

  .project-main-title {
    font-size: 16px;
  }

  .heritage-title {
    font-size: 18px;
  }
}

/* ====================================
   EQUAL HEIGHT: Image matches text column
   Add these overrides to your project-detail.css
   ==================================== */

/* Both sections: stretch columns to same height */
.project-description .row,
.heritage-section .row {
  align-items: stretch !important;
}

/* Description section — right image fills full height */
.project-description-image {
  height: 100%;
}

.project-description-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Heritage section — left image fills full height */
.heritage-images {
  height: 100%;
}

.heritage-overlay-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Heritage content — vertically center text */
.heritage-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
