/* ==========================================================================
   DeilTech — shared component base styles
   Loaded globally in _Layout.cshtml (head), after tokens.css. Holds the
   minimal structural CSS for reusable components (Brand, etc.) that is the
   same everywhere the component is used. Host-specific sizing/spacing
   (e.g. header vs footer brand size) stays in the page-specific stylesheets
   that already define .hero-header__brand, .site-footer__brand, etc. — this
   file never duplicates or overrides those values.
   ========================================================================== */

/* ========== Brand component ========== */

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand__lockup {
  display: block;
  height: 2.4rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.brand__tagline {
  display: block;
}

/* ========== PageHero component ========== */
/* Optional real-photograph media layer and hero-level button row — both
   opt-in via MediaImageSrc / PrimaryText, so heroes that don't pass them
   (Developments, Capabilities, About) render exactly as before. Uses a
   fixed, non-prefixed class name since the treatment (fill the already
   absolutely-positioned __media layer / stack buttons under the lead) is
   identical regardless of which page's class prefix is in use. */

.page-hero__media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero__actions {
  margin-top: 0.75rem;
}

/* ========== ImageContentRow component ========== */
/* Alternating media/copy row (placeholder icon panel + eyebrow/heading/body).
   Relocated here (unchanged) from about.css, since the component is now
   reused outside the About page (e.g. Development detail pages). Colours
   are the light-section defaults the component has always rendered with;
   pages that host it on a light .dt-section need no overrides. */

.image-content-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.image-content-row__media {
  order: 1;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #2a2d31, #1a1c1f 70%);
}

.image-content-row__copy {
  order: 2;
}

.image-content-row--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.image-content-row--reverse .image-content-row__media {
  order: 2;
}

.image-content-row--reverse .image-content-row__copy {
  order: 1;
}

.image-content-row__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(201, 138, 62, 0.55);
}

.image-content-row__placeholder-icon svg {
  width: 24%;
  height: 24%;
}

.image-content-row__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--dt-charcoal);
}

.image-content-row__body {
  margin: 0 0 1.1rem;
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.7;
  color: #4a5158;
}

.image-content-row__placeholder-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #8a9096;
}

@media (max-width: 899px) {
  .image-content-row,
  .image-content-row--reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .image-content-row__media,
  .image-content-row--reverse .image-content-row__media {
    order: -1;
  }

  .image-content-row__copy,
  .image-content-row--reverse .image-content-row__copy {
    order: 0;
  }
}

/* ========== ProjectFacts component ========== */
/* Premium project-summary strip used immediately below a Development
   detail page hero. Grid columns match the number of facts passed in
   today (6); a future page passing a different count still lays out
   correctly since minmax(0, 1fr) columns share space evenly. */

.project-facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2rem 1.5rem;
  margin: 0;
}

.project-fact {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-right: 1.5rem;
  border-right: 1px solid rgba(26, 28, 31, 0.1);
}

.project-fact:last-child {
  padding-right: 0;
  border-right: none;
}

.project-fact__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7279;
}

.project-fact__value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dt-charcoal);
}

@media (max-width: 991.98px) {
  .project-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }

  .project-fact {
    padding-right: 0;
    border-right: none;
  }
}

@media (max-width: 575.98px) {
  .project-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
  }
}
