/* Profab Machine — Stainless Steel Ball Joint product page. Built 2026-09-24
   as a fact-and-wording pass on an already rich existing page (~275 lines
   extracted) rather than a full rebuild: strong model-series (QD/ES/QI/CS),
   grade, industries, and custom-options content, but carrying an EN 10204
   3.1/XRF claim in Why Us, an in-house-heat-treatment implication, a
   Zone 1/Zone 2 hygienic-design claim with no certification backing, a
   passivation-as-standard claim, an invented universal FAQ temperature
   range, aerospace/motorsport framed as markets Profab supplies rather than
   material properties, generic hero tags, a DIN 71803/71805 mislabeling
   (both were labeled as separate joint types when they are actually the
   ball-stud and ball-socket component standards for the DIN 71802 assembly),
   and — found during build, not the original review — the same
   "material certs and inspection report inside every box" claim already
   fixed on Tube Clamps and flagged on Clevis. See
   pages/rebuild/stainless-steel-ball-joint-review.md and the delegated
   research at pages/调研/findings/stainless-steel-ball-joint-research.md.
   Page-specific layout/content only; shared tokens and cross-page-reusable
   patterns (including .pp-spec-list, first established on Boat Cleats) come
   from product-base.css, reused identically to every other rebuild-track
   page. */


.profab-page-ball-joint .skip-link {
  background: var(--pp-blue);
  color: var(--color-white);
  left: 12px;
  padding: 8px 12px;
  position: fixed;
  top: -50px;
  z-index: 100;
}
.profab-page-ball-joint .skip-link:focus { top: 12px; }

/* ---------- Hero ---------- */

.profab-page-ball-joint .bj-hero { padding: 56px 0 64px; }
.profab-page-ball-joint .bj-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 1fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.profab-page-ball-joint .bj-hero h1 {
  color: #000000;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  margin-bottom: 20px;
}
.profab-page-ball-joint .bj-hero p {
  color: #000000;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 24px;
}
.profab-page-ball-joint .bj-hero .btn-outline { border-color: #000000; color: #000000; }
.profab-page-ball-joint .bj-hero .btn-outline:hover { background: #000000; color: #FFFFFF; }
.profab-page-ball-joint .bj-hero__media img { width: 100%; height: auto; }

/* ---------- What Is ---------- */

.profab-page-ball-joint .bj-intro__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-card-lg);
}
.profab-page-ball-joint .bj-intro .section-kicker { display: block; margin-bottom: 10px; }
.profab-page-ball-joint .bj-intro__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.profab-page-ball-joint .bj-intro__tags .pp-tag-pill { background: #E8ECFF; color: var(--pp-blue); }

/* ---------- Product type grid (4 series) + DIN/GN standard reference cards ---------- */

.profab-page-ball-joint .bj-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}
.profab-page-ball-joint .bj-type-card {
  background: var(--color-white);
  border: 1px solid var(--pp-line);
  border-top: 3px solid var(--pp-blue);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.profab-page-ball-joint .bj-type-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}
.profab-page-ball-joint .bj-type-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profab-page-ball-joint .bj-type-card__body { padding: 18px 18px 22px; display: flex; flex-direction: column; flex: 1; }
.profab-page-ball-joint .bj-type-card__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.profab-page-ball-joint .bj-type-card h3 { font-family: var(--font-heading); font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.profab-page-ball-joint .bj-type-card .btn { align-self: flex-start; padding: 8px 16px; font-size: 0.82rem; margin-top: 4px; }
.profab-page-ball-joint .bj-type-card__tags .pp-tag-pill { background: #E8ECFF; color: var(--pp-blue); }
.profab-page-ball-joint .bj-type-card .pp-spec-list { font-size: 0.82rem; }

.profab-page-ball-joint .bj-standard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.profab-page-ball-joint .bj-standard-card {
  background: var(--color-white);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  text-align: center;
}
.profab-page-ball-joint .bj-standard-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profab-page-ball-joint .bj-standard-card__body { padding: 14px 12px 18px; }
.profab-page-ball-joint .bj-standard-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.profab-page-ball-joint .bj-standard-card p { font-family: var(--font-heading); font-weight: 400; color: var(--pp-muted); font-size: 13.5px; margin: 0; }

/* ---------- Selection guide note ---------- */

.profab-page-ball-joint .bj-select-note {
  margin-top: 20px;
  color: var(--pp-muted);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

/* ---------- Safety Catch / Left-Hand Thread explainer cards ---------- */

.profab-page-ball-joint .bj-explainer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.profab-page-ball-joint .bj-explainer-card {
  background: var(--color-white);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-card-lg);
  padding: 28px 30px;
}
.profab-page-ball-joint .bj-explainer-card h3 { font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; margin-bottom: 12px; }
.profab-page-ball-joint .bj-explainer-card p { color: var(--pp-muted); margin: 0; }

/* ---------- Grade / material comparison (BLUE block, 3-way) ---------- */

.profab-page-ball-joint .bj-grade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 8px;
}
.profab-page-ball-joint .sb-grade-card {
  border: 1px solid rgba(209, 200, 200, 0.5);
  background-color: rgba(226, 223, 223, 0.19);
  padding: 32px 28px;
}
.profab-page-ball-joint .sb-grade-card h3 { color: #FFFFFF; font-size: 1.3rem; font-weight: 600; margin-bottom: 12px; }
.profab-page-ball-joint .sb-grade-card p { color: #FFFFFF; font-size: 0.92rem; margin-bottom: 12px; }

/* ---------- Applications carousel ---------- */

.profab-page-ball-joint #bj-industry-carousel .pp-cta-card { aspect-ratio: 4 / 3; align-items: center; }
.profab-page-ball-joint #bj-industry-carousel .pp-cta-card__body h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; }
.profab-page-ball-joint #bj-industry-carousel .pp-cta-card__body p { font-family: var(--font-body); font-size: 17px; }
.profab-page-ball-joint #bj-industry-carousel .pp-carousel__track > * { flex-basis: calc(33.333% - 14.67px); }

/* ---------- Two content blocks ---------- */

.profab-page-ball-joint .bc-accent-heading {
  border-left: 5px solid var(--pp-blue);
  padding-left: 10px;
}
.profab-page-ball-joint .bj-content-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-card-lg);
}

/* ---------- Why Profab --
   Sits between Applications (tint) and Kits (white) -- neither dark -- so
   it takes the navy default per the site-wide background rule. ---------- */

.profab-page-ball-joint .sb-why-row {
  display: flex;
  gap: 41px;
  margin-bottom: 48px;
}
.profab-page-ball-joint .sb-why-item { flex: 1; }
.profab-page-ball-joint .sb-why-item__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--font-heading);
  font-weight: 700;
  color: #FFFFFF;
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 16px;
}
.profab-page-ball-joint .sb-why-item h3 { font-family: var(--font-heading); color: #F1ECEC; font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.profab-page-ball-joint .sb-why-item p { font-family: var(--font-heading); font-weight: 400; color: #D6D3D3; font-size: 17px; margin: 0; }
.profab-page-ball-joint #bj-trust-carousel .pp-carousel__track img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-card);
}

/* ---------- Ball Joint Kits (Companion Kits, text-card grid --
   no dedicated standalone-component photos exist yet for ball studs,
   sockets, springs, or caps, unlike Clevis's kit photos). ---------- */

.profab-page-ball-joint .bj-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.profab-page-ball-joint .bj-kit-card {
  background: var(--color-white);
  border: 1px solid var(--pp-line);
  border-top: 3px solid var(--pp-blue);
  border-radius: var(--radius-card);
  padding: 24px 22px;
}
.profab-page-ball-joint .bj-kit-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.profab-page-ball-joint .bj-kit-card p { font-family: var(--font-heading); font-weight: 400; color: var(--pp-muted); font-size: 15px; margin: 0; }

/* ---------- Custom Options ---------- */

.profab-page-ball-joint .bj-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.profab-page-ball-joint .bj-custom-card {
  background: var(--color-white);
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-card);
  padding: 22px 20px;
}
.profab-page-ball-joint .bj-custom-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; margin-bottom: 10px; }
.profab-page-ball-joint .bj-custom-card p { font-family: var(--font-heading); font-weight: 400; color: var(--pp-muted); font-size: 14px; margin: 0; }

/* ---------- Technical Reference (thread table + real dimension drawing) ---------- */

.profab-page-ball-joint .bj-tech-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(240px, 1fr);
  gap: 32px;
  align-items: start;
}
.profab-page-ball-joint .bj-tech-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.profab-page-ball-joint .bj-tech-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius-card-lg);
}
.profab-page-ball-joint .bj-tech-video {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
}
.profab-page-ball-joint .bj-tech-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Surface Finish Options ---------- */

.profab-page-ball-joint .bj-finish-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.profab-page-ball-joint .bj-finish-card {
  background: var(--pp-blue-tint);
  border-radius: var(--radius-card);
  padding: 22px 20px;
}
.profab-page-ball-joint .bj-finish-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pp-blue);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.profab-page-ball-joint .bj-finish-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.profab-page-ball-joint .bj-finish-card p { font-family: var(--font-heading); font-weight: 400; color: var(--pp-muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */

.profab-page-ball-joint .sb-faq-layout { display: flex; gap: 48px; align-items: flex-start; }
.profab-page-ball-joint .sb-faq-aside { flex: 0 0 35%; }
.profab-page-ball-joint .sb-faq-list { flex: 1; display: grid; gap: 0; }

/* ---------- Often Ordered Together carousel ---------- */

.profab-page-ball-joint .sb-related-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--pp-line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.profab-page-ball-joint .sb-related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.profab-page-ball-joint .sb-related-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.profab-page-ball-joint .sb-related-card h3 { margin: 14px 16px 16px; }

/* ---------- How to Order -- MOQ wording matches FACTS-TO-CONFIRM.md
   verbatim ("no hard minimum...typically around 100 pieces"). ---------- */

.profab-page-ball-joint .tc-order-note {
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

/* ---------- Knowledge Base -- 3 real relevant articles. ---------- */

.profab-page-ball-joint .bj-kb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.profab-page-ball-joint .bj-kb-grid .pp-card { text-decoration: none; color: inherit; }
.profab-page-ball-joint .bc-read-more {
  color: var(--pp-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  align-self: flex-start;
}

/* ---------- Final CTA + RFQ form ---------- */

.profab-page-ball-joint .sb-quote { position: relative; overflow: hidden; }
.profab-page-ball-joint .sb-quote::before {
  content: "Profab";
  position: absolute;
  right: -0.05em;
  bottom: -0.28em;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(6rem, 14vw, 9.4rem);
  color: rgba(255, 255, 255, 0.06);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
}
.profab-page-ball-joint .sb-quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: 48px;
  align-items: start;
  position: relative;
}
.profab-page-ball-joint .sb-quote h2 { color: #FFFFFF; }
.profab-page-ball-joint .sb-quote p { color: #E3E3E3; }
.profab-page-ball-joint .sb-quote-email { color: #FFFFFF; font-family: var(--font-heading); font-weight: 700; text-decoration: underline; }
.profab-page-ball-joint .sb-quote-form {
  background: rgba(255,255,255,0.95);
  border-radius: var(--radius-card-lg);
  box-shadow: 0 0 10px rgba(243,243,243,0.37);
  padding: 32px;
  color: var(--pp-ink);
}
.profab-page-ball-joint .sb-quote-form__heading { color: var(--pp-blue); font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; margin-bottom: 18px; }
.profab-page-ball-joint .sb-quote-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.profab-page-ball-joint .sb-quote-form__full { grid-column: 1 / -1; }
.profab-page-ball-joint .sb-quote-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 700; }
.profab-page-ball-joint .sb-quote-form input,
.profab-page-ball-joint .sb-quote-form textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid var(--pp-line);
  border-radius: 4px;
  padding: 10px 12px;
}
.profab-page-ball-joint .sb-quote-form__note { font-size: 0.82rem; color: var(--pp-muted); margin: 14px 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .profab-page-ball-joint .bj-hero__grid,
  .profab-page-ball-joint .sb-quote-layout { grid-template-columns: 1fr; }
  .profab-page-ball-joint .sb-faq-layout { flex-direction: column; }
  .profab-page-ball-joint .sb-faq-aside { flex-basis: auto; }
  .profab-page-ball-joint .sb-why-row { flex-direction: column; gap: 26px; }
  .profab-page-ball-joint .bj-explainer-grid { grid-template-columns: 1fr; }
  .profab-page-ball-joint .bj-tech-layout { grid-template-columns: 1fr; }
  .profab-page-ball-joint .bj-type-grid,
  .profab-page-ball-joint .bj-standard-grid,
  .profab-page-ball-joint .bj-kit-grid,
  .profab-page-ball-joint .bj-custom-grid,
  .profab-page-ball-joint .bj-finish-grid,
  .profab-page-ball-joint .bj-grade-grid,
  .profab-page-ball-joint .bj-kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profab-page-ball-joint #bj-industry-carousel .pp-carousel__track > * { flex-basis: calc(50% - 11px); }
}

@media (max-width: 620px) {
  .profab-page-ball-joint .bj-type-grid,
  .profab-page-ball-joint .bj-standard-grid,
  .profab-page-ball-joint .bj-kit-grid,
  .profab-page-ball-joint .bj-custom-grid,
  .profab-page-ball-joint .bj-finish-grid,
  .profab-page-ball-joint .bj-grade-grid,
  .profab-page-ball-joint .bj-kb-grid { grid-template-columns: 1fr; }
  .profab-page-ball-joint .sb-quote-form__grid { grid-template-columns: 1fr; }
  .profab-page-ball-joint #bj-industry-carousel .pp-carousel__track > * { flex-basis: 82%; }
}

/* 2026-11-10: View More button beside Send Inquiry Now on the series cards (same pattern as the Rod Ends cards) */
.profab-page-ball-joint .bj-type-card__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.profab-page-ball-joint .bj-type-card__actions .btn { margin-top: 4px; }
