/* ==========================================================
   TRDESIGNS FEATURED PORTFOLIO
   Add this to the END of your existing stylesheet,
   or save as css/trdesigns-portfolio.css and link it after
   your existing theme stylesheets.
   ========================================================== */

.tr-featured {
  --tr-navy: #211e3b;
  --tr-ink: #292735;
  --tr-muted: #6c6a73;
  --tr-gold: #b49a70;
  --tr-paper: #f6f5f2;
  --tr-line: #b49a70;
	background: #fff;
	color: var(--tr-ink);
	padding: 60px 0 100px;
}

.tr-featured,
.tr-featured * {
  box-sizing: border-box;
}

.tr-featured__container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.tr-featured__intro {
  max-width: 760px;
  margin: 0 auto 58px;
  text-align: center;
}

.tr-featured__eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--tr-gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
}

.tr-featured__intro h2 {
  margin: 0 0 18px;
  color: var(--tr-navy);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.15;
}

.tr-featured__intro p {
  margin: 0;
  color: var(--tr-muted);
  font-size: 17px;
  line-height: 1.8;
}

.tr-featured__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

.tr-project {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--tr-line);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(25, 24, 42, .055);
  transition: transform .25s ease, box-shadow .25s ease;
}

.tr-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 17px 38px rgba(25, 24, 42, .11);
}

.tr-project__visual {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--tr-paper);
  aspect-ratio: 16 / 10;
}

.tr-project__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform .45s ease;
}

.tr-project:hover .tr-project__visual img {
  transform: scale(1.025);
}

.tr-project__visit {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 9px 13px;
  border-radius: 5px;
  background: rgba(33, 30, 59, .94);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .2s ease, transform .2s ease;
}

.tr-project:hover .tr-project__visit,
.tr-project__visual:focus-visible .tr-project__visit {
  opacity: 1;
  transform: translateY(0);
}

.tr-project__content {
  padding: 27px 29px 30px;
}

.tr-project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
  color: #82745e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.tr-project__meta span + span::before {
  content: "•";
  margin-right: 16px;
  color: #c8b99f;
}

.tr-project__content h3 {
  margin: 0 0 11px;
  color: var(--tr-navy);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.25;
}

.tr-project__content p {
  margin: 0 0 20px;
  color: var(--tr-muted);
  font-size: 15px;
  line-height: 1.75;
}

.tr-project__link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--tr-navy) !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  border-bottom: 1px solid var(--tr-gold);
  padding-bottom: 4px;
}

.tr-project__link:hover,
.tr-project__link:focus-visible {
  color: #75603e !important;
}

.tr-featured__cta {
  margin-top: 76px;
  padding: 52px 25px;
  border-radius: 12px;
  background: var(--tr-navy);
  text-align: center;
  color: #fff;
}

.tr-featured__cta h2 {
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(27px, 3vw, 36px);
  line-height: 1.2;
}

.tr-featured__cta p {
  max-width: 620px;
  margin: 0 auto 25px;
  color: rgba(255,255,255,.82);
  font-size: 16px;
  line-height: 1.7;
}

.tr-featured__button {
  display: inline-block;
  padding: 13px 24px;
  border: 1px solid var(--tr-gold);
  border-radius: 5px;
  background: var(--tr-gold);
  color: #171633 !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .2s ease, color .2s ease;
}

.tr-featured__button:hover,
.tr-featured__button:focus-visible {
  background: transparent;
  color: #fff !important;
}

.tr-featured a:focus-visible {
  outline: 3px solid var(--tr-gold);
  outline-offset: 4px;
}

/* ==========================================================
   TABLET AND MOBILE
   ========================================================== */

@media (max-width: 767px) {
  .tr-featured {
    padding: 58px 0 68px;
  }

  .tr-featured__container {
    width: min(100% - 30px, 560px);
  }

  .tr-featured__intro {
    margin-bottom: 36px;
    text-align: left;
  }

  .tr-featured__intro p {
    font-size: 16px;
  }

  .tr-featured__list {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .tr-project__content {
    padding: 22px;
  }

  .tr-project__content h3 {
    font-size: 22px;
  }

  .tr-project__visit {
    opacity: 1;
    transform: none;
  }

  .tr-featured__cta {
    margin-top: 48px;
    padding: 38px 22px;
  }
}

/* ==========================================================
   ACCESSIBILITY: REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {
  .tr-project,
  .tr-project__visual img,
  .tr-project__visit,
  .tr-featured__button {
    transition: none;
  }
}
