/* ==========================================================================
   Investor Relations — a separate, full-width highlighted card in its own
   row after Our Associations and before the FAQ (homepage). Predominantly black/charcoal
   (as the footer), with a restrained red ombré easing in at the right edge,
   a short red rule on the top edge, white type and a white-outlined CTA.
   Target of the nav "Investors" link (#investor-relations-card); the CTA
   opens investors.html and its hit area covers the whole card.
   ========================================================================== */

/* Our Associations (white, with its own bottom padding) sits above; the
   grey FAQ section below gets the same breathing room as between sections */
.ir-band {
  padding-block: 0 clamp(40px, 4.4vw, 64px);
  background: var(--c-bg);
}

.ir-card {
  --ir-pad: clamp(22px, 2.6vw, 36px);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 28px);
  padding: clamp(26px, 2.8vw, 36px) var(--ir-pad);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background-color: #171717;
  background-image: linear-gradient(110deg, #171717 0%, #1d1d1d 55%, #3a1418 82%, #64151d 100%);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.6);
  color: #fff;
  scroll-margin-top: calc(var(--header-h) + 24px);
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-3) var(--ease-out),
    transform var(--dur-3) var(--ease-out);
}

/* thin red rule along the top edge (as on the Outlook card) */
.ir-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--ir-pad);
  width: 48px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: var(--c-red);
}

/* Hover: the card lifts; the background never changes colour */
.ir-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 50px -28px rgba(0, 0, 0, 0.7);
  transform: translateY(-2px);
}

/* Keyboard focus: ring around the whole card */
.ir-card:has(.ir-card-cta:focus-visible) {
  outline: 3px solid #fff; /* the global ring is dark — invisible on black */
  outline-offset: 4px;
}

.ir-card-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--c-red);
}

.ir-card-icon .icon {
  width: 26px;
  height: 26px;
}

.ir-card-text {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 62ch;
}

.ir-card-title {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.ir-card-line {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* CTA: white-outlined pill on the dark card, pushed to the right;
   hover/focus fills it with Clarity red */
.ir-card-cta {
  flex: none;
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.85);
  background: transparent;
  color: #fff;
}

.ir-card:hover .ir-card-cta,
.ir-card-cta:focus-visible {
  border-color: var(--c-red);
  background: var(--c-red);
  color: #fff;
}

/* Whole-card hit area (one link, one accessible name) */
.ir-card-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

/* keep the button static so its hit area always spans the card;
   the card itself lifts instead */
.ir-card .ir-card-cta:hover,
.ir-card .ir-card-cta:active {
  transform: none;
}

.ir-card:hover .ir-card-cta svg:has(use[href="#i-arrow-right"]) {
  transform: translateX(3px);
}

.ir-card-cta:focus-visible {
  outline: none; /* the card shows the ring */
}

/* Tablet: text first, CTA on its own line beneath */
@media (max-width: 899.98px) {
  .ir-card {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .ir-card-text {
    flex-basis: calc(100% - 56px - clamp(18px, 2.2vw, 28px));
  }

  .ir-card-cta {
    margin-left: calc(56px + clamp(18px, 2.2vw, 28px));
  }
}

/* Phone: icon, text and CTA stack */
@media (max-width: 599.98px) {
  .ir-card {
    flex-direction: column;
    gap: 16px;
  }

  .ir-card-text {
    flex-basis: auto;
  }

  .ir-card-cta {
    margin-left: 0;
    align-self: stretch;
  }
}
