/* =========================================
   FEATURED PROJECTS
========================================= */

.featured-projects {
  position: relative;
  padding: 120px 6%;
  background: #f5f6f3;
  color: #172019;
  overflow: hidden;
}

.fp-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}




/* =========================================
   HEADER
========================================= */

.fp-header {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 60px;
}

.fp-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #687169;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.fp-header h2 {
  margin: 0;
    font-family: Georgia, "Times New Roman", serif;
color: #0a004c;
  font-size: clamp(42px, 5.5vw, 70px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -3px;
}

.fp-intro {
  padding-bottom: 5px;
}

.fp-intro p {
  max-width: 430px;
  margin: 0;
  color: #687169;
  font-size: 16px;
  line-height: 1.8;
}


/* =========================================
   MAIN PROJECT
========================================= */

.fp-project {
  display: grid;
  grid-template-columns: 1.45fr 0.75fr;
  min-height: 620px;
  background: #fff;
}


/* =========================================
   VIDEO
========================================= */

.fp-video {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #111;
}

.fp-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.fp-video:hover video {
  transform: scale(1.015);
}


/* Video Play Button */

.fp-play {
  position: absolute;
  top: 50%;
  left: 50%;

  width: 76px;
  height: 76px;

  transform: translate(-50%, -50%);

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.8);
  border-radius: 50%;

  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(8px);

  color: #fff;

  cursor: pointer;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.fp-play:hover {
  background: rgba(255,255,255,0.18);
  transform: translate(-50%, -50%) scale(1.06);
}

.play-icon {
  margin-left: 4px;
  font-size: 17px;
}

.pause-icon {
  display: none;
  font-size: 16px;
}

.fp-play.playing .play-icon {
  display: none;
}

.fp-play.playing .pause-icon {
  display: block;
}


/* Video Label */

.fp-video-label {
  position: absolute;
  bottom: 25px;
  left: 28px;

  display: flex;
  align-items: center;
  gap: 9px;

  color: #fff;

  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fp-video-label span {
  width: 7px;
  height: 7px;

  border-radius: 50%;
  background: #fff;
}


/* =========================================
   PROJECT DETAILS
========================================= */

.fp-details {
  display: flex;
  flex-direction: column;
  justify-content: center;

  padding: 65px 55px;
}

.fp-category {
  margin-bottom: 22px;

  color: #7a827a;

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.fp-details h3 {
  max-width: 500px;
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 25px;
  font-size: clamp(30px, 3vw, 45px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.5px;
}

.fp-details > p {
  max-width: 440px;

  margin: 0 0 40px;

  color: #6b736b;

  font-size: 15px;
  line-height: 1.85;
}


/* =========================================
   PROJECT META
========================================= */

.fp-meta {
  margin-bottom: 40px;

  border-top: 1px solid #e4e6e2;
}

.fp-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 20px;

  padding: 16px 0;

  border-bottom: 1px solid #e8e9e6;
}

.fp-meta-item span {
  color: #8a908a;
  font-size: 12px;
}

.fp-meta-item strong {
  color: #172019;

  font-size: 12px;
  font-weight: 500;

  text-align: right;
}


/* =========================================
   EXPLORE BUTTON
========================================= */

.fp-gallery-btn {
  width: fit-content;

  display: flex;
  align-items: center;
  gap: 28px;

  padding: 15px 21px;

  border: 1px solid #172019;

  background: transparent;

  color: #172019;

  font-family: inherit;
  font-size: 12px;

  cursor: pointer;

  transition:
    background 0.3s ease,
    color 0.3s ease;
}

.fp-gallery-btn a {
  text-decoration: none;
  color: #172019;
}

.fp-gallery-btn span {
  font-size: 17px;

  transition: transform 0.3s ease;
}

.fp-gallery-btn:hover {
  background: #172019;
  color: #fff;
}

.fp-gallery-btn:hover span {
  transform: translate(3px, -3px);
}


/* =========================================
   IMAGE GALLERY
========================================= */

.fp-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;

  margin-top: 18px;
}

.fp-gallery-item {
  height: 280px;

  overflow: hidden;

  background: #ddd;
}

.fp-gallery-item img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  transition: transform 0.7s ease;
}

.fp-gallery-item:hover img {
  transform: scale(1.05);
}


/* =========================================
   MODAL
========================================= */

.fp-modal {
  position: fixed;
  inset: 0;

  z-index: 9999;

  display: none;

  align-items: center;
  justify-content: center;

  padding: 30px;
}

.fp-modal.active {
  display: flex;
}

.fp-modal-overlay {
  position: absolute;
  inset: 0;

  background: rgba(11, 16, 12, 0.9);

  backdrop-filter: blur(10px);
}

.fp-modal-content {
  position: relative;
  z-index: 2;

  width: min(1100px, 100%);
  max-height: 90vh;

  overflow-y: auto;

  padding: 55px;

  background: #f5f6f3;
}

.fp-modal-close {
  position: absolute;
  top: 18px;
  right: 24px;

  border: none;
  background: none;

  color: #172019;

  font-family: inherit;
  font-size: 34px;

  line-height: 1;

  cursor: pointer;
}

.fp-modal-heading {
  margin-bottom: 35px;
}

.fp-modal-heading h2 {
  margin: 0 0 8px;

  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;

  letter-spacing: -2px;
}

.fp-modal-heading p {
  margin: 0;

  color: #747b74;
  font-size: 14px;
}

.fp-modal-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.fp-modal-gallery img {
  width: 100%;
  height: 330px;

  display: block;

  object-fit: cover;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

  .featured-projects {
    padding: 85px 5%;
  }

  .fp-header {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 40px;
  }

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

  .fp-video {
    min-height: 500px;
  }

  .fp-details {
    padding: 45px 30px;
  }

}


@media (max-width: 600px) {

  .featured-projects {
    padding: 70px 5%;
  }

  .fp-header h2 {
    letter-spacing: -2px;
  }

  .fp-video {
    min-height: 380px;
  }

  .fp-play {
    width: 65px;
    height: 65px;
  }

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

  .fp-gallery-item {
    height: 280px;
  }

  .fp-modal {
    padding: 12px;
  }

  .fp-modal-content {
    padding: 45px 20px 25px;
  }

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

  .fp-modal-gallery img {
    height: 270px;
  }

}