/* =========================================================================
   Component: fm-promo-card
   Clickable card modeled on Freedom's marketing tiles:
   image on top, white body with title and circular arrow "Learn more" CTA.
   Grouped inside .fm-promo-cards which lays them out side-by-side.
   ========================================================================= */

.fm-promo-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--fm-sp-4);
}

@media (min-width: 720px) {
  .fm-promo-cards { grid-template-columns: repeat(3, 1fr); gap: var(--fm-sp-5); }
}

.fm-promo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--fm-radius);
  background: var(--fm-white);
  color: inherit;
}

.fm-promo-card__media {
  aspect-ratio: 16 / 10;
  background-color: var(--fm-gray-50);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fm-promo-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--fm-sp-3);
  padding: var(--fm-sp-5) var(--fm-sp-5) var(--fm-sp-6);
  flex: 1;
}

.fm-promo-card__title {
  margin: 0;
  color: var(--fm-black);
  font-size: var(--fm-fs-lg);
  font-weight: var(--fm-fw-bold);
  line-height: var(--fm-lh-tight);
}

.fm-promo-card__desc {
  margin: 0;
  color: var(--fm-text);
  font-size: var(--fm-fs-base);
  line-height: var(--fm-lh-normal);
}

.fm-promo-card__cta {
  /* Pinned to the bottom of the body so CTAs align across all cards,
     regardless of description length. */
  margin-top: auto;
  padding-top: var(--fm-sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--fm-sp-3);
  color: var(--fm-black);
  font-size: var(--fm-fs-base);
}

/* Circular arrow. Fills with orange from left-to-right on card hover. */
.fm-promo-card__cta-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--fm-accent);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fm-accent);
  font-size: 1.25rem;
  line-height: 1;
  /* Gradient tile 2x wider than the icon: left half = orange, right half = transparent.
     Positioned to the right initially → only transparent shows.
     On hover, shift to the left → orange half sweeps in from the left. */
  background-image: linear-gradient(to right, var(--fm-accent) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: 100% 0;
  transition: background-position 320ms var(--fm-ease),
              color 200ms var(--fm-ease) 100ms;
}

.fm-promo-card:hover .fm-promo-card__cta-icon {
  background-position: 0 0;
  color: var(--fm-white);
}
