/* ==========================================================================
   DeilTech — Developments page
   Scoped to the hero-only page layout (ViewData["HeroLayout"] = true).
   Reuses the bronze / charcoal / white tokens and .dt-section / .dt-card /
   .dt-btn / .card-grid primitives defined in home-hero.css and
   home-sections.css. Does not modify either shared stylesheet.
   ========================================================================== */

/* ========== Page hero / introduction ========== */
/* .hero-header is position:absolute over the top of the page, so the first
   section needs extra top padding to clear it (mirrors .hero__content on
   the homepage, which reserves the same space beneath the transparent nav). */

.dt-page-hero {
  padding-top: clamp(9.5rem, calc(9vh + 5.5rem), 12rem);
}

.dt-page-hero__content {
  max-width: 46rem;
}

.dt-page-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dt-white);
}

.dt-page-hero__lead {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--dt-muted);
}

/* ========== Featured Developments (large premium cards) ========== */

.feature-dev-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.feature-dev-card {
  display: flex;
  flex-direction: column;
  background: var(--dt-white);
  border: 1px solid rgba(26, 28, 31, 0.08);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-dev-card:hover {
  border-color: rgba(201, 138, 62, 0.4);
  box-shadow: 0 20px 44px rgba(26, 28, 31, 0.14);
}

.feature-dev-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.feature-dev-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.feature-dev-card:hover .feature-dev-card__media img {
  transform: scale(1.035);
}

.feature-dev-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a2d31, #1a1c1f 70%);
}

.feature-dev-card__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(201, 138, 62, 0.55);
  transition: transform 0.4s ease;
}

.feature-dev-card__placeholder-icon svg {
  width: 22%;
  height: 22%;
}

.feature-dev-card:hover .feature-dev-card__placeholder-icon {
  transform: scale(1.045);
}

.feature-dev-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 2rem;
}

.feature-dev-card__title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dt-charcoal);
}

.feature-dev-card__desc {
  margin: 0 0 0.15rem;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #4a5158;
}

.feature-dev-card__location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7279;
}

.feature-dev-card__location svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--dt-gold-hover);
}

.feature-dev-card__body .dt-btn {
  align-self: flex-start;
  margin-top: 0.25rem;
}

/* ========== Responsive ========== */

@media (max-width: 991.98px) {
  .dt-page-hero {
    padding-top: clamp(8rem, 18vh, 9.5rem);
  }

  .feature-dev-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 575.98px) {
  .dt-page-hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .feature-dev-card__body {
    padding: 1.5rem;
  }

  .feature-dev-card__body .dt-btn {
    width: 100%;
  }
}
