/* =============================================
   REAL ESTATE HUB — "Our Real Estate Brands" grid on real-estate.php
   5 project cards, each linking through to that project's own page.
   Reuses the site's card language (rounded corners, hover lift,
   gold/maroon accents) already established by .kd-card / .tm-card.
   ============================================= */

.re-projects {
  padding: 20px 20px 30px;
  background: #fff;
}

.re-container {
  max-width: 1300px;
  margin: 0 auto;
}

/* ---- Heading ---- */
.re-head {
  text-align: center;
  margin-bottom: 46px;
}
.re-pill {
  display: inline-block;
  padding: 7px 20px;
  border: 1.5px solid var(--gold);
  border-radius: 50px;
  font-size: 11.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-weight: 600;
  margin-bottom: 16px;
}
.re-head h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
  margin: 0;
}
.re-head h2 span {
  color: var(--maroon);
}
.re-line {
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--maroon));
  margin: 16px auto 0;
}

/* ---- Grid ---- */
.re-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (min-width: 901px) {
  .re-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---- Card ---- */
.re-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(212, 148, 58, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(40, 12, 26, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.3, 1),
    box-shadow 0.4s ease;
}
.re-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(139, 26, 74, 0.14);
}

/* Media — logo / photo / wordmark, three treatments depending on
   what real asset each brand actually has available. */
.re-card-media {
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
}
/* .re-card-media--light {
  background: linear-gradient(150deg, #faf6f1 0%, #f5ede3 100%);
} */
.re-card-media--light {
  background: linear-gradient(150deg, #ededed87 0%, #dfdfdfa8 100%);
}

.re-card-media--light img {
  max-width: 103%;
  max-height: 117%;
  object-fit: contain;
}
.re-card-media--dark {
  background: linear-gradient(
    150deg,
    var(--espresso, #2e1a10) 0%,
    #1a1008 100%
  );
}
.re-card-media--dark img {
  max-width: 62%;
  max-height: 60%;
  object-fit: contain;
}
.re-card-media--photo {
  padding: 0;
}
.re-card-media--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.re-card:hover .re-card-media--photo img {
  transform: scale(1.06);
}
.re-card-media--wordmark {
  background: linear-gradient(
    150deg,
    var(--maroon) 0%,
    var(--maroon-dark) 100%
  );
}
.re-card-media--wordmark span {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.re-card-media--wordmark span b {
  font-weight: 300;
  opacity: 0.85;
}

/* Body */
.re-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
}
.re-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 8px;
}
.re-card-body p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--charcoal-light, #555);
  margin-bottom: 16px;
  text-align: justify;
}
.re-readmore {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--maroon);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 30px;
  background: var(--maroon-tint);
  transition: all 0.3s ease;
}
.re-readmore i {
  transition: transform 0.3s ease;
}
.re-readmore:hover {
  background: var(--maroon);
  color: #fff;
}
.re-readmore:hover i {
  transform: translateX(4px);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .re-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .re-projects {
    padding: 10px 16px 60px;
  }
  .re-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
  .re-head h2 {
    font-size: 27px;
  }
}
