/* ==========================================================================
   JOYBEAN — Manufacturing Capabilities page
   Sticky in-page navigation, factory metrics, capability blocks, QC and
   certification cards, engineering specification table.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Page shell
   -------------------------------------------------------------------------- */

.mfg-hero .page-hero-content > p {
  max-width: 860px;
}

.mfg-shell {
  padding: clamp(36px, 4.4vw, 56px) 0 clamp(64px, 8vw, 110px);
}

.mfg-layout {
  display: block;
}

.mfg-main {
  min-width: 0;
}

/* Floating dot navigation pinned to the left edge of the viewport */

.mfg-sidebar {
  position: fixed;
  top: 50%;
  left: clamp(10px, 1.6vw, 26px);
  z-index: 40;
  transform: translateY(-50%);
}

.mfg-nav {
  position: relative;
}

.mfg-nav ul {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Vertical guide line running behind the dots */

.mfg-nav ul::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 9px;
  width: 1px;
  background: rgba(23, 19, 15, 0.14);
}

.mfg-nav a {
  position: relative;
  display: flex;
  align-items: center;
  padding: 8px 20px 8px 4px;
  color: var(--muted);
  background: none;
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}

.mfg-dot {
  position: relative;
  z-index: 1;
  display: block;
  flex: none;
  width: 11px;
  height: 11px;
  background: #fff;
  border: 2px solid #c5b8ad;
  border-radius: 50%;
  transition: background-color 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.mfg-label {
  position: absolute;
  top: 50%;
  left: 26px;
  padding: 6px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translate(-6px, -50%);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.mfg-nav a:hover .mfg-dot,
.mfg-nav a:focus-visible .mfg-dot {
  border-color: var(--primary);
}

.mfg-nav a:hover .mfg-label,
.mfg-nav a:focus-visible .mfg-label,
.mfg-nav a.is-active .mfg-label {
  opacity: 1;
  visibility: visible;
  transform: translate(0, -50%);
}

.mfg-nav a.is-active .mfg-dot {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 5px rgba(228, 33, 27, 0.14);
}

.mfg-nav a.is-active .mfg-label {
  color: var(--primary);
  border-color: #f0c3bf;
  font-weight: 800;
}

/* Anchor offset under the sticky header */

.mfg-anchor {
  scroll-margin-top: 140px;
}

/* --------------------------------------------------------------------------
   Factory metrics
   -------------------------------------------------------------------------- */

.mfg-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: clamp(44px, 5.5vw, 68px);
}

.mfg-metric {
  padding: 24px 20px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease,
    border-color 0.25s ease;
}

.mfg-metric:hover {
  transform: translateY(-3px);
  border-color: #f0c3bf;
  box-shadow: var(--shadow-sm);
}

.mfg-metric-value {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.mfg-metric-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.35;
}

.mfg-metric p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Capability blocks
   -------------------------------------------------------------------------- */

.mfg-block {
  display: grid;
  grid-template-columns: 0.94fr 1.06fr;
  gap: clamp(26px, 4vw, 48px);
  align-items: center;
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

.mfg-block.is-reversed .mfg-media {
  order: 2;
}

.mfg-media {
  position: relative;
  margin: 0;
}

.mfg-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.mfg-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.mfg-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.78;
}

.mfg-spec-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.mfg-spec-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
}

.mfg-spec-list li::before {
  content: "\2713";
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.mfg-spec-list strong {
  color: var(--ink);
  font-weight: 700;
}

.mfg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.mfg-actions .btn {
  padding: 13px 22px;
  font-size: 13px;
}

/* --------------------------------------------------------------------------
   Inner section heading
   -------------------------------------------------------------------------- */

.mfg-section-head {
  max-width: 760px;
  margin-bottom: clamp(26px, 3vw, 36px);
}

.mfg-section-head h2 {
  margin: 12px 0 12px;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.mfg-section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.76;
}

.mfg-panel-section {
  padding: clamp(48px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   Quality control cards
   -------------------------------------------------------------------------- */

.mfg-qc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mfg-qc-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mfg-qc-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.mfg-qc-card h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
}

.mfg-qc-standard {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 9px;
  color: var(--muted);
  background: #f6f1ec;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mfg-qc-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

/* --------------------------------------------------------------------------
   Certifications
   -------------------------------------------------------------------------- */

.mfg-cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mfg-cert-card {
  display: flex;
  gap: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.mfg-cert-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 50%;
}

.mfg-cert-icon svg {
  width: 24px;
  height: 24px;
}

.mfg-cert-card h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.35;
}

.mfg-cert-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   Engineering specification table
   -------------------------------------------------------------------------- */

.mfg-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  -webkit-overflow-scrolling: touch;
}

.mfg-table-wrap table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

.mfg-table-wrap th {
  padding: 15px 18px;
  color: var(--muted);
  background: #faf7f4;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.mfg-table-wrap td {
  padding: 15px 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.55;
  vertical-align: top;
}

.mfg-table-wrap td:first-child {
  color: var(--ink);
  font-weight: 700;
}

.mfg-table-wrap tbody tr {
  transition: background-color 0.2s ease;
}

.mfg-table-wrap tbody tr:hover {
  background: #fdf9f6;
}

/* --------------------------------------------------------------------------
   Technical FAQ (reuses the shared .faq-item accordion)
   -------------------------------------------------------------------------- */

.mfg-faq {
  display: grid;
  gap: 12px;
}

.mfg-faq .faq-question {
  font-size: 14.5px;
}

.mfg-faq-num {
  flex: none;
  margin-right: 4px;
  color: var(--primary);
  font-weight: 850;
}

.mfg-faq .faq-question > span:first-child {
  display: flex;
  gap: 10px;
}

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

@media (max-width: 1199px) {
  .mfg-sidebar {
    display: none;
  }
}

@media (max-width: 1100px) {
  .mfg-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mfg-qc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .mfg-block {
    grid-template-columns: 1fr;
  }

  .mfg-block.is-reversed .mfg-media {
    order: 0;
  }
}

@media (max-width: 760px) {
  .mfg-metric {
    padding: 20px 18px;
  }

  .mfg-cert-grid {
    grid-template-columns: 1fr;
  }

  .mfg-actions .btn {
    flex: 1 1 auto;
  }
}

@media (max-width: 520px) {
  .mfg-metrics {
    grid-template-columns: 1fr;
  }

  .mfg-qc-grid {
    grid-template-columns: 1fr;
  }

  .mfg-media img {
    border-radius: 16px;
  }

  .mfg-faq .faq-question {
    font-size: 13.5px;
  }
}
