/*
 * Alf Theme — Products Global Quality Standards Section
 * Figma nodes: 788:2418 (desktop), 789:2479 (mobile)
 *
 * Cream background. Centered title + subtitle, quality commitment block,
 * then a red-top-bordered row of three ISO/IATF certification logos
 * cropped from a shared sprite image.
 */

/* ═══════════════════════════════════════════════════════════════════
   SECTION
   ═══════════════════════════════════════════════════════════════════ */
.products-quality {
  background-color: var(--color-bg, #f8faf0);
}

/* ── Main flex column ───────────────────────────────────────────── */
.products-quality__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER — title + subtitle (max 896px, centered)
   ═══════════════════════════════════════════════════════════════════ */
.products-quality__header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: var(--header-max-width, 896px);
  width: 100%;
  text-align: center;
}

.products-quality__title {
  font-size: 36px;
  font-weight: 600;
  line-height: 1;
  color: var(--color-dark, #252525);
  margin: 0;
}

.products-quality__subtitle {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark, #252525);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   QUALITY COMMITMENT BLOCK (max 896px, centered)
   ═══════════════════════════════════════════════════════════════════ */
.products-quality__commitment {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: var(--header-max-width, 896px);
  width: 100%;
  text-align: center;
}

.products-quality__commit-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-dark, #252525);
  margin: 0;
}

.products-quality__commit-body {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-dark, #252525);
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════
   PARTNERSHIP EXCELLENCE — red top border + logo row
   ═══════════════════════════════════════════════════════════════════ */
.products-quality__partnership {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-block: 40px;
  border-top: 1px solid var(--color-primary, #cd261d);
  width: 100%;
}

.products-quality__partner-label {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-primary, #cd261d);
  text-align: center;
  margin: 0;
}

/* ── Logo row ───────────────────────────────────────────────────── */
.products-quality__logos {
  display: flex;
  flex-wrap: wrap;
  gap: 80px;
  align-items: center;
  justify-content: center;
  padding-inline: 180px;
  width: 100%;
}

/* ── Individual logo (sprite crop) ─────────────────────────────── */
/*
 * The sprite is a single 1376×768 image with 3 certification logos
 * placed side by side. Each container crops to show one logo using
 * overflow:hidden + absolute positioning.
 *
 * Figma-derived crop values:
 *   image width  = 324.53% of container width
 *   image height = 139.89% of container height
 *   image top    = -24.04%  (same for all)
 *   logo 1 left  = -10.14%
 *   logo 2 left  = -113.43%
 *   logo 3 left  = -217.83%
 */
.products-quality__logo {
  /* Equal share of available row width, never shrinks to zero */
  flex: 1 0 0;
  min-width: 80px;
  /* floor at mobile */
  max-width: 220px;
  /* cap so logos don't grow enormous */
  aspect-ratio: 211.9 / 274.38;
  position: relative;
  overflow: hidden;
}

.products-quality__logo img {
  position: absolute;
  height: 139.89%;
  width: 324.53%;
  max-width: none;
  top: -24.04%;
  display: block;
}

.products-quality__logo--1 img {
  left: -10.14%;
}

.products-quality__logo--2 img {
  left: -113.43%;
}

.products-quality__logo--3 img {
  left: -217.83%;
}

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

/* Tablet */
@media (max-width: 900px) {
  .products-quality__logos {
    padding-inline: 80px;
    gap: 48px;
  }
}

/* Mobile (Figma 789:2479) */
@media (max-width: 640px) {
  .products-quality__title {
    font-size: 32px;
  }

  .products-quality__subtitle {
    font-weight: 300;
  }

  .products-quality__commit-body {
    font-size: 16px;
    font-weight: 300;
  }

  .products-quality__logos {
    padding-inline: 0;
    gap: 32px;
  }

  .products-quality__logo {
    max-width: 120px;
  }
}