/* ==========================================================================
   DeilTech — Development detail page template
   Scoped to the hero-only page layout (ViewData["HeroLayout"] = true).
   This is the SHARED stylesheet for every individual Development detail
   page (Strathmore Hub is the first; iTex Flex Park, Affordable Housing,
   Advocate Building, and future developments reuse it as-is). A future
   page should only need its own hero photograph, copy, and fact/gallery
   content — not new CSS — to slot into this template.

   Reuses the bronze / charcoal / white tokens and .dt-section / .dt-card /
   .card-grid / .value-grid / .dev-grid / .dt-btn / .cta-band primitives
   defined in home-hero.css, home-sections.css, and components.css. Does
   not modify any of those shared files.
   ========================================================================== */

/* ========== Flagship photo hero ========== */
/* Built on the PageHero component's "media" variant with a real
   MediaImageSrc (see components.css .page-hero__media-image) instead of
   the placeholder gradient used by Capabilities/About. Occupies roughly
   55-65% of the initial viewport height (62vh), matching the approved
   Strathmore Hub / Capabilities hero proportions. .hero-header is
   position:absolute, so this section reserves top padding to clear it. */

.dev-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62vh;
  /* Min bound raised from 7.5rem to clear the taller header logo
     (.hero-header__mark, home-hero.css) introduced in the production
     readiness pass — the old 7.5rem floor sat below the new ~134px
     header height at short-viewport widths. The tablet override below
     (max-width: 991.98px) already clears the smaller tablet logo size
     and is unchanged. */
  padding: clamp(9.25rem, 16vh, 10.75rem) 0 3.5rem;
  overflow: hidden;
  background: var(--dt-charcoal);
}

.dev-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #2a2d31, #1a1c1f 70%);
}

/* Only rendered when a page hasn't supplied MediaImageSrc yet (e.g. iTex Flex
   Park, pending approved photography) — mirrors .capabilities-hero__media-note
   / .about-hero__media-note so a "no photo yet" hero reads the same way
   anywhere on the site. Not needed by Strathmore Hub, which has a real photo. */

.dev-hero__media-note {
  position: absolute;
  right: clamp(1.25rem, 4vw, 3.5rem);
  bottom: 1.5rem;
  z-index: 1;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 247, 245, 0.32);
}

.dev-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(20, 22, 26, 0.92) 0%, rgba(20, 22, 26, 0.62) 48%, rgba(20, 22, 26, 0.24) 100%);
}

.dev-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 46rem;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

.dev-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 4.8vw, 3.85rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--dt-white);
}

.dev-hero__subtitle {
  margin: 0 0 1.1rem;
  max-width: 42rem;
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--dt-gold-hover);
}

.dev-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--dt-muted);
}

/* ========== Project facts band ========== */
/* Full-bleed white strip that pairs with .project-facts (components.css)
   to form the premium project-summary section immediately below the hero. */

.project-facts-section {
  padding-block: clamp(2.25rem, 4vw, 3rem);
  padding-inline: clamp(1.25rem, 4vw, 3.5rem);
  background: var(--dt-white);
  border-bottom: 1px solid rgba(26, 28, 31, 0.08);
}

/* ========== Placeholder copy disclaimer ========== */
/* Generic italic caption for any section whose written copy is temporary
   pending owner-approved content — mirrors the pattern already used by
   ImageContentRow's own placeholder note. */

.dt-placeholder-note {
  margin: 1.25rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #8a9096;
}

.dt-section--dark .dt-placeholder-note,
.dt-section--soft .dt-placeholder-note {
  color: rgba(247, 247, 245, 0.45);
}

/* ========== Project gallery ========== */
/* Responsive tile grid. Additional <figure class="dev-gallery__item"> tiles
   can be appended later (real photography or more placeholders) without
   any redesign — the grid simply reflows. */

.dev-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dev-gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.dev-gallery__item--wide {
  grid-column: span 2;
}

.dev-gallery__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0.6rem;
  background: linear-gradient(160deg, #2a2d31, #1a1c1f 70%);
}

.dev-gallery__item--wide .dev-gallery__media {
  aspect-ratio: 16 / 9;
}

.dev-gallery__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.dev-gallery__item:hover .dev-gallery__media img {
  transform: scale(1.035);
}

.dev-gallery__placeholder-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201, 138, 62, 0.55);
}

.dev-gallery__placeholder-icon svg {
  width: 22%;
  height: 22%;
}

.dev-gallery__caption {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #6b7279;
}

.dt-section--dark .dev-gallery__caption,
.dt-section--soft .dev-gallery__caption {
  color: var(--dt-muted);
}

/* ========== Responsive ========== */

@media (max-width: 991.98px) {
  .dev-hero {
    min-height: 56vh;
    padding: clamp(8rem, 20vh, 9.5rem) 0 3.5rem;
  }

  .project-facts-section {
    padding-block: clamp(2rem, 5vw, 2.5rem);
  }

  .dev-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dev-gallery__item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 575.98px) {
  .dev-hero__title {
    font-size: clamp(2.1rem, 8vw, 2.6rem);
  }

  .dev-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dev-gallery__item--wide {
    grid-column: span 1;
  }

  .dt-btn-row .dt-btn {
    width: 100%;
  }
}
