/* ==========================================================================
   DeilTech — Capabilities page
   Scoped to the hero-only page layout (ViewData["HeroLayout"] = true).
   Reuses the bronze / charcoal / white tokens and .dt-section / .dt-card /
   .dt-btn / .cta-band primitives defined in home-hero.css and
   home-sections.css. Does not modify either shared stylesheet.
   ========================================================================== */

/* ========== Capabilities hero ========== */
/* Distinct from the homepage hero (full-bleed photo, 100vh) and the
   Developments page hero (flat dark band). Built with a dedicated media
   layer so a final photograph can be dropped in later — see
   .capabilities-hero__media. .hero-header is position:absolute, so this
   section reserves top padding to clear it. */

.capabilities-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. */
  padding: clamp(9.25rem, 16vh, 10.75rem) 0 3.5rem;
  overflow: hidden;
  background: var(--dt-charcoal);
}

.capabilities-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(135deg, rgba(201, 138, 62, 0.05) 0 2px, transparent 2px 26px),
    linear-gradient(125deg, #23262b 0%, #1a1c1f 55%, #14161a 100%);
}

.capabilities-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);
}

.capabilities-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(26, 28, 31, 0.92) 0%, rgba(26, 28, 31, 0.68) 45%, rgba(26, 28, 31, 0.3) 100%);
}

.capabilities-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 44rem;
  padding: 0 clamp(1.25rem, 4vw, 3.5rem);
}

.capabilities-hero__title {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dt-white);
}

.capabilities-hero__lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  line-height: 1.7;
  color: var(--dt-muted);
}

/* ========== Our Capabilities — alternating rows ========== */

.capability-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 7vw, 6rem);
  margin-top: 1rem;
}

.capability-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.capability-row__media {
  order: 1;
}

.capability-row__copy {
  order: 2;
}

.capability-row--reverse {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.capability-row--reverse .capability-row__media {
  order: 2;
}

.capability-row--reverse .capability-row__copy {
  order: 1;
}

.capability-row__media {
  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%);
}

.capability-row__placeholder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: rgba(201, 138, 62, 0.55);
}

.capability-row__placeholder-icon svg {
  width: 24%;
  height: 24%;
}

.capability-row__title {
  margin: 0 0 1.1rem;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 800;
  color: var(--dt-charcoal);
}

.capability-row__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.capability-row__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.98rem;
  line-height: 1.5;
  color: #4a5158;
}

.capability-row__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.5rem;
  height: 2px;
  background: var(--dt-gold);
}

/* ========== Our Approach — horizontal process ========== */

.process-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 3.25rem 0 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  padding: 0 0.5rem;
  text-align: center;
}

.process-step::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 1.3rem;
  left: -50%;
  width: 100%;
  height: 1px;
  background: var(--dt-gold-line);
}

.process-step:first-child::before {
  display: none;
}

.process-step__number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dt-gold);
  background: var(--dt-charcoal);
  border: 1.5px solid var(--dt-gold);
  border-radius: 50%;
}

.process-step__label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--dt-white);
}

/* ========== Why DeilTech — value grid (no cards) ==========
   Structural rules (.value-grid / .value-item) now live in the shared
   home-sections.css primitive. Only the light-section text colours are
   set here. */

.value-item__title {
  color: var(--dt-charcoal);
}

.value-item__body {
  color: #4a5158;
}

/* ========== Responsive ========== */

@media (max-width: 991.98px) {
  .capabilities-hero {
    min-height: 56vh;
  }
}

@media (max-width: 899px) {
  .capability-row,
  .capability-row--reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .capability-row__media,
  .capability-row--reverse .capability-row__media {
    order: -1;
  }

  .capability-row__copy,
  .capability-row--reverse .capability-row__copy {
    order: 0;
  }

  .capability-row__list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .process-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 1.75rem;
  }

  .process-step {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 1.1rem;
  }

  .process-step::before {
    top: -1.75rem;
    left: 1.3rem;
    width: 1px;
    height: 1.75rem;
  }
}

@media (max-width: 575.98px) {
  .capabilities-hero__title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .cta-band .dt-btn-row .dt-btn {
    width: 100%;
  }
}
