﻿/* ==========================================================================
   Manufacturing (I02) — /manufacturing/
   Page-specific layout. Shared tokens and components live in main.css.
   The certificate carousel reuses the homepage ex-slider pattern and ids.
   ========================================================================== */

.jn-manufacturing {
  background: var(--jn-color-bg);
}

/* --------------------------------------------------------------------------
   S01 Hero
   -------------------------------------------------------------------------- */
.mf-hero {
  position: relative;
  overflow: hidden;
  padding: 9.5rem 0 5.5rem;
  background:
    radial-gradient(circle at 84% 16%, rgba(198, 161, 91, 0.16), transparent 34%),
    var(--jn-color-surface-soft);
}

.mf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 2.25rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(30, 34, 40, 0.46);
}

.mf-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mf-breadcrumb a:hover {
  color: var(--jn-color-gold);
}

.mf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.mf-hero__title {
  max-width: 18ch;
  margin: 0 0 1.5rem;
  font-family: var(--jn-font-serif);
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--jn-color-text);
}

.mf-hero__lede {
  max-width: 38rem;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: rgba(30, 34, 40, 0.72);
}

.mf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.mf-hero__media {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background: var(--jn-color-surface-muted);
  box-shadow: 0 30px 70px rgba(30, 34, 40, 0.14);
}

.mf-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
   S02 Factory Overview
   -------------------------------------------------------------------------- */
.mf-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.mf-overview__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  background: var(--jn-color-surface-muted);
}

.mf-overview__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-overview__copy p {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.85;
  color: rgba(30, 34, 40, 0.72);
}

/* --------------------------------------------------------------------------
   S03 Production Process
   -------------------------------------------------------------------------- */
.mf-process {
  background: var(--jn-color-surface-soft);
}

.mf-process__title {
  text-align: center;
  margin-bottom: 3rem;
}

.mf-process__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.mf-process-card {
  flex: 0 1 calc((100% - 3rem) / 3);
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--jn-color-border);
  border-radius: 10px;
}

.mf-process-card figure {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--jn-color-surface-muted);
}

.mf-process-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.mf-process-card:hover img {
  transform: scale(1.04);
}

.mf-process-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.mf-process-card h3 {
  margin: 0;
  font-family: var(--jn-font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--jn-color-text);
}

.mf-process-card p {
  margin: 0.6rem 0 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(30, 34, 40, 0.68);
}

/* --------------------------------------------------------------------------
   S04 Quality Checks
   -------------------------------------------------------------------------- */
.mf-qc__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.mf-qc__media {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 11;
  border-radius: 12px;
  background: var(--jn-color-surface-muted);
}

.mf-qc__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mf-qc__list {
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: mfqc;
}

.mf-qc__list li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--jn-color-border);
  counter-increment: mfqc;
}

.mf-qc__list li:last-child {
  border-bottom: 1px solid var(--jn-color-border);
}

.mf-qc__list li::before {
  content: counter(mfqc, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--jn-font-serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--jn-color-gold);
}

.mf-qc__stage {
  display: block;
  font-family: var(--jn-font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--jn-color-text);
}

.mf-qc__text {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(30, 34, 40, 0.66);
}

/* --------------------------------------------------------------------------
   S04 Hand Polishing
   -------------------------------------------------------------------------- */
.mf-polish {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  background: var(--jn-color-steel);
  text-align: center;
}

.mf-polish__bg {
  position: absolute;
  inset: 0;
  background: url("/wp-content/uploads/2026/09/P01_S06_Highly-Hand-Polishing.webp") center / cover no-repeat;
}

.mf-polish::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(38, 42, 48, 0.62);
}

.mf-polish__inner {
  position: relative;
  z-index: 2;
  max-width: 46rem;
  margin: 0 auto;
}

.mf-polish__title {
  margin: 0;
  font-family: var(--jn-font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.mf-polish__text {
  margin: 1.25rem auto 0;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.82);
  max-width: 36rem;
}

/* --------------------------------------------------------------------------
   S06 Certificates — same pattern and ids as the homepage
   -------------------------------------------------------------------------- */
.mf-cert {
  background: var(--jn-color-surface-soft);
}

.mf-section-head {
  max-width: 46rem;
  margin: 0 auto 3rem;
  text-align: center;
}

#certSlider .ex-slide figcaption {
  text-align: center;
}

#certSlider .cert-image {
  cursor: zoom-in;
}

#certSlider .ex-track {
  will-change: transform;
}

#certSlider > .overflow-hidden {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

#certLightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 5vh 5vw;
  background: rgba(17, 19, 22, 0.92);
}

#certLightbox.is-open {
  display: flex;
}

#certLightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.4);
}

#certLightboxClose {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.mf-cert__more {
  margin-top: 2rem;
  text-align: center;
}

.mf-cert__more a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jn-color-gold);
  text-decoration: none;
}

.mf-cert__more span {
  transition: transform 0.2s ease;
}

.mf-cert__more a:hover span {
  transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   S07 Guarantees
   -------------------------------------------------------------------------- */
.mf-guarantee__title {
  margin-bottom: 3rem;
}

.mf-guarantee__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.mf-guarantee-card {
  padding: 1.5rem;
  border: 1px solid var(--jn-color-border);
  border-radius: 10px;
  background: #fff;
}

.mf-guarantee-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(198, 161, 91, 0.12);
  color: var(--jn-color-gold);
}

.mf-guarantee-card__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.mf-guarantee-card h3 {
  margin: 0;
  font-family: var(--jn-font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--jn-color-text);
}

.mf-guarantee-card p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(30, 34, 40, 0.66);
}

/* --------------------------------------------------------------------------
   S08 Closing Inquiry
   -------------------------------------------------------------------------- */
.mf-cta {
  padding: 5.5rem 0;
  background: var(--jn-color-steel);
}

.mf-cta__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.mf-cta__title {
  margin: 0;
  font-family: var(--jn-font-serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #fff;
}

.mf-cta__text {
  margin-top: 1.25rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
  max-width: 26rem;
}

.mf-cta__benefits {
  margin-top: 2rem;
  max-width: 26rem;
}

.mf-cta__form {
  padding: 2rem;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .mf-hero {
    padding-top: 8.5rem;
  }

  .mf-hero__grid,
  .mf-overview__grid,
  .mf-qc__grid,
  .mf-cta__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .mf-hero__title {
    max-width: 100%;
  }

  .mf-hero__media,
  .mf-overview__media,
  .mf-qc__media {
    max-width: 42rem;
  }

  .mf-process-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }

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

@media (max-width: 767px) {
  .mf-hero {
    padding: 7.5rem 0 4rem;
  }

  .mf-hero__actions .jn-button {
    width: 100%;
  }

  .mf-process-card {
    flex-basis: 100%;
  }

  .mf-guarantee__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  

  .mf-polish {
    padding: 4rem 0;
  }

  .mf-cta {
    padding: 4rem 0;
  }

  .mf-cta__form {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jn-manufacturing *,
  .jn-manufacturing *::before,
  .jn-manufacturing *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
