/*
 * Alf Theme — Products Advanced Manufacturing Techniques CTA
 * Figma nodes: 658:2529 (desktop), 659:3583 (mobile)
 *
 * Red-gradient full-width banner with two technique items (badge + copy)
 * and two factory images side-by-side.
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.products-cta {
  background: linear-gradient(to right, #cd261d, #a41c16);
  /* Override .alf-section vertical rhythm — Figma keeps 160px on all sizes */
  padding-block: 160px !important;
}

/* ── Inner two-column layout ────────────────────────────────────── */
.products-cta__inner {
  display: flex;
  align-items: stretch;
  gap: 40px;
  max-width: var(--section-max-width);
  margin-inline: auto;
  /* padding-inline: var(--section-pad-desktop); */
}

/* ── Left column: title + techniques + CTA button ───────────────── */
.products-cta__content {
  display: flex;
  flex-direction: column;
  gap: 32px;
  flex: 0 1 auto;
  max-width: 560px;
}

.products-cta__title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  color: #f8faf0;
  margin: 0;
}

/* ── Technique item: badge + text ───────────────────────────────── */
.products-cta__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.products-cta__badge {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #cd261d;
  border: 1px solid #f8faf0;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  color: #f8faf0;
}

.products-cta__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.products-cta__tech-title {
  font-size: 20px;
  font-weight: 700;
  color: #f8faf0;
  margin: 0;
}

.products-cta__tech-desc {
  font-size: 16px;
  font-weight: 300;
  color: #f8faf0;
  margin: 0;
}

/* ── CTA button ─────────────────────────────────────────────────── */
.products-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background-color: #f8faf0;
  border: 1px solid #cd261d;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 400;
  color: #cd261d;
  text-decoration: none;
  align-self: flex-start;
  max-width: 343px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.products-cta__btn:hover {
  background-color: #ffffff;
  transform: translateY(-2px);
}

.products-cta__btn svg {
  flex-shrink: 0;
}

/* ── Right column: two factory images ───────────────────────────── */
.products-cta__media {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  gap: 32px;
  align-items: stretch;
}

.products-cta__img-wrap {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  border-radius: 16px;
  overflow: hidden;
  min-height: 240px;
}

.products-cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  flex: 1;
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* Tablet landscape */
@media (max-width: 1280px) {
  .products-cta__title {
    font-size: 32px;
  }

  .products-cta__content {
    max-width: 480px;
  }
}

/* Tablet portrait: stack vertically */
@media (max-width: 900px) {
  .products-cta__inner {
    flex-direction: column;
  }

  .products-cta__content {
    max-width: 100%;
  }

  .products-cta__media {
    flex-direction: row;
    /* min-height: 260px; */
    gap: 16px;
  }
}

/* Mobile (Figma 659:3583) */
@media (max-width: 640px) {
  .products-cta__title {
    font-size: 32px;
  }

  .products-cta__badge {
    width: 37px;
    height: 37px;
    font-size: 12px;
    border-radius: 8px;
    border-width: 0.77px;
  }

  /* Stack images vertically; min-height per wrap handles sizing */
  .products-cta__media {
    flex-direction: column;
    gap: 16px;
  }

  .products-cta__img-wrap {
    min-height: 200px;
  }
}