/* ==========================================================================
 * Factories list — two hero-parity RFQ CTAs
 *
 * Visual source of truth:
 *   static/assets/css/pages/home-hero-globe.css:257-355  (base / hover / focus / active)
 *   static/assets/css/pages/home-hero-globe.css:751-893  (responsive)
 *   static/assets/css/pages/home-hero-globe.css:953-964  (<=420 full width)
 *
 * Deliberately NOT using .btn / .home-button / .btn--primary:
 *   - Hero .home-button--primary is scoped to body.page-home .home-hero--globe;
 *   - .home-button is 50px/13px/13px radius outside the hero;
 *   - .btn--primary is a different orange + 12px radius.
 *
 * The hero row's generic `.factories-hero__links a` rule (01-hero.css:337-346)
 * is 0,1,1 and would force 18px/600 + underline + ink; the scoped rule below
 * (0,2,1) is required. It also re-declares the transition because the parent
 * rule would otherwise replace it with `text-decoration-color .2s`.
 * ========================================================================== */

@font-face {
  font-family: "DSR Manrope";
  src: url("../../fonts/Manrope-800-latin.woff2?v=1") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212,
    U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "DSR Manrope";
  src: url("../../fonts/Manrope-800-cyrillic.woff2?v=1") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.factories-rfq-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 244px;
  min-height: clamp(48px, 5.74vh, 58px);
  padding: 0 26px;
  border: 1px solid #ff6a00;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #ff7412 0%, #ff6a00 55%, #f96100 100%);
  box-shadow:
    0 14px 30px rgba(255, 106, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-family: "DSR Manrope", Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.factories-rfq-cta svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.factories-rfq-cta:hover,
.factories-rfq-cta:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #ff7c20 0%, #ff6d05 55%, #fc6503 100%);
  box-shadow:
    0 18px 36px rgba(255, 106, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.factories-rfq-cta:hover svg {
  transform: translateX(3px);
}

.factories-rfq-cta:active {
  transform: translateY(1px);
}

.factories-page a.factories-rfq-cta:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px rgba(255, 106, 0, 0.55),
    0 14px 30px rgba(255, 106, 0, 0.25);
}

/* The hero row's generic link rule must not restyle the CTA. */
.factories-hero__links a.factories-rfq-cta {
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  /* `.factories-hero__links a` (0,1,1) also sets
     `transition: text-decoration-color .2s`; re-declare the Hero transition
     here so hover/focus motion is not lost to the more specific rule. */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

html[dir="rtl"] .factories-rfq-cta {
  font-family: "DSR Hero Fa", "DSR Manrope", Inter, sans-serif;
  font-size: 14.5px;
  letter-spacing: 0;
}

html[dir="rtl"] .factories-hero__links a.factories-rfq-cta {
  font-size: 14.5px;
  letter-spacing: 0;
}

html[dir="rtl"] .factories-rfq-cta svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .factories-rfq-cta:hover svg {
  transform: translateX(-3px) scaleX(-1);
}

@media (min-width: 1200px) and (max-width: 1439px) {
  .factories-rfq-cta {
    min-width: 220px;
    padding-inline: 22px;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .factories-rfq-cta {
    min-width: 212px;
    padding-inline: 20px;
    font-size: 14.5px;
  }

  .factories-hero__links a.factories-rfq-cta {
    font-size: 14.5px;
  }
}

@media (max-width: 767px) {
  .factories-rfq-cta {
    min-width: 0;
    min-height: 48px;
    padding-inline: 18px;
    font-size: 13.5px;
  }

  .factories-hero__links a.factories-rfq-cta {
    font-size: 13.5px;
  }

  .factories-rfq-cta svg {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }
}

@media (max-width: 420px) {
  .factories-rfq-cta {
    width: 100%;
  }
}

/* The old 318x91 status card slot becomes the CTA slot. The wrapper must not
   use .factories-filter-console__status: that class is display:none at <=1020. */
.factories-filter-console__cta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  margin: 0 20px 20px;
}

.factories-filter-console__cta .factories-rfq-cta {
  width: 100%;
  max-width: 360px;
}

@media (prefers-contrast: more) {
  .factories-rfq-cta {
    background: #d24e00;
    border-color: #d24e00;
  }
}

/* Deep-page landing: the global scroll-padding resolves on <html> and cannot
   see body.dsr-header-hidden's 0px override, so it stays at header+28. Scope
   to this page and force 28 after the header is gone. */
html:has(body.page-factory_list.dsr-header-hidden) {
  scroll-padding-top: 28px;
}
