/* =============================================================================
   Home — "Where We Work" (residential / commercial capability cards)
   -----------------------------------------------------------------------------
   Companion stylesheet for Views/Home/Sections/_WhatWeMake.cshtml. Builds on
   the shared .media-card component; scoped so it cannot collide with other
   pages' section CSS.
   ============================================================================= */

.home-what-we-make__lead {
  max-width: 44rem;
}

.home-what-we-make__card {
  display: block;
  color: inherit;
}

.home-what-we-make__card:hover,
.home-what-we-make__card:focus-visible {
  text-decoration: none;
}

.home-what-we-make__card .media-card__media {
  transition: transform 600ms ease;
}

.home-what-we-make__card:hover .media-card__media,
.home-what-we-make__card:focus-visible .media-card__media {
  transform: scale(1.04);
}

/* The card is a single link: make the panel text behave like body copy,
   not link text, while keeping the arrow accent interactive-looking. */
.home-what-we-make__card .media-card__text {
  display: block;
  color: var(--color-text-on-navy-muted);
  font-size: var(--text-small);
  margin-bottom: var(--space-2);
}

.home-what-we-make__card:hover .media-card__link {
  color: var(--color-white);
}

/* Labelled placeholder rendered until the asset agent's web derivatives land
   (see TODO in _WhatWeMake.cshtml). */
.home-what-we-make__media-placeholder {
  background-color: var(--color-cream-deep);
  border: 1px solid var(--border-color);
}

/* --- One shared span for text + cards (user request 2026-10-13) -------------
   Matches "Elevate 1.png": eyebrow, heading, lead and the two cards all live
   on the same full-width span — the same left/right margins — so the text and
   the images align edge-to-edge (the export measures 79px @ 1440 ≈ 5.5vw;
   capped so ultra-wide screens don't stretch the line length). */
.home-what-we-make__inner {
  padding-inline: clamp(1.25rem, 5.5vw, 6rem);
}

/* The export's cards are square-cornered (no card inset). */
.home-what-we-make__inner .media-card {
  border-radius: 0;
}

/* Type scale + card geometry measured from "Elevate 1.png" (~24px title,
   ~17px body, ~41px panel inset, card aspect 619x360 ≈ 12:7). Scoped here so
   the shared .media-card component keeps its original look elsewhere. */
.home-what-we-make__card .media-card__media {
  aspect-ratio: 12 / 7;
}

.home-what-we-make__card .media-card__panel {
  padding: var(--space-5) 2.5rem;
}

.home-what-we-make__card .media-card__panel h3 {
  font-size: 1.5rem;
}

.home-what-we-make__card .media-card__text {
  font-size: 1.0625rem;
}

.home-what-we-make__card .media-card__link {
  font-size: 1rem;
}

/* The export leaves generous air between the heading and the cards. */
.home-what-we-make__inner .grid {
  margin-top: clamp(3.5rem, 7.5vw, 6.5rem);
}

/* --- Readability without the navy gradient (user request 2026-10-13) --------
   The blue overlay is gone (the design export's photos carry no tint). White
   copy stays readable via a neutral bottom scrim on the image + a soft text
   shadow — no colour cast. Scoped to this section only; the shared
   .media-card component (project highlights) keeps its original look. */
.home-what-we-make__card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 58%;
  background: linear-gradient(to top, rgba(10, 16, 28, 0.62), rgba(10, 16, 28, 0) 78%);
  pointer-events: none;
}

.home-what-we-make__card .media-card__panel {
  /* Above the ::after scrim (both are positioned children; DOM order would
     paint the pseudo-element last). */
  z-index: 1;
  background: transparent;
  color: var(--color-white);
  text-shadow: 0 1px 10px rgba(10, 16, 28, 0.55), 0 0 2px rgba(10, 16, 28, 0.35);
}

.home-what-we-make__card .media-card__panel h3 {
  color: var(--color-white);
}

.home-what-we-make__card .media-card__text {
  color: rgba(255, 255, 255, 0.92);
}
