/**
 * InTBIR homepage hero.
 *
 * The two-column hero from the reviewed design: a crimson panel carrying the
 * eyebrow, headline, lede and call to action, with the photograph filling the
 * column beside it.
 *
 * This replaces a full-bleed slider that put white text straight over a bright
 * photograph. Splitting the two means the words sit on a solid ground and need
 * no scrim, and the picture is never dimmed to make them readable.
 */

.intbir-hero2 {
  background: #8f0000;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.intbir-hero2__grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: stretch;
  gap: 0;
}

.intbir-hero2__copy {
  padding: 68px 44px 68px 0;
  align-self: center;
}

.intbir-hero2 .intbir-eyebrow {
  font-family: 'Source Sans 3', system-ui, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: #f0c040;
  line-height: 1.55;
  margin: 0;
}

.intbir-hero2 h1 {
  font-family: 'Source Sans 3', system-ui, Arial, sans-serif;
  font-size: 46px;
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
  margin: 16px 0 20px;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 15em;
}

.intbir-hero2__lede {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
  /* Not pure white: the lede is secondary to the headline, and a warm tint
     keeps it legible without competing. Still above 4.5:1 on this crimson. */
  color: #f4dede;
  max-width: 34em;
  margin: 0 0 28px;
}

.intbir-hero2__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.intbir-hero2 .intbir-btn {
  display: inline-block;
  padding: 13px 22px;
  font-family: 'Source Sans 3', system-ui, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background-color .12s ease, color .12s ease;
}

.intbir-hero2 .intbir-btn--gold {
  background: #f0c040;
  color: #2b2b2b;
}

.intbir-hero2 .intbir-btn--gold:hover,
.intbir-hero2 .intbir-btn--gold:focus {
  background: #fff;
  color: #8f0000;
  text-decoration: none;
}

.intbir-hero2 .intbir-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* The photograph bleeds to the right edge of the viewport rather than stopping
   at the grid, which is what stops the panel reading as a boxed banner. */
.intbir-hero2__media {
  position: relative;
  min-height: 420px;
  margin-right: calc((100vw - 1200px) / -2 - 28px);
}

.intbir-hero2__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

/* ---- Narrow screens ----
   Below the breakpoint the columns stack. The image is dropped rather than
   shown above the text: at phone width it would push the headline below the
   fold, and a decorative photograph is not worth that. */
@media (max-width: 900px) {
  .intbir-hero2__grid { grid-template-columns: 1fr; }
  .intbir-hero2__copy { padding: 44px 0 40px; }
  .intbir-hero2 h1 { font-size: 32px; }
  .intbir-hero2__lede { font-size: 17.5px; }
  .intbir-hero2__media { display: none; }
}
