/* ==================================================================
   NUMBO Factory Tour Page — assets/factory.css
   Scoped under .numbo-factory-page to avoid bleed into other pages.
   ================================================================== */

/* ---------- GP Layout Reset ---------- */
.numbo-factory-page {
  margin: 0;
}
body.page-template-page-factory-php .site-content,
body.page-template-page-factory-php .site-main {
  padding: 0;
  margin: 0;
}
body.page-template-page-factory-php #page {
  background: transparent;
}

/* ---------- Container reset (override global flex) ---------- */
.numbo-factory-page .numbo-container {
  display: block;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- S1 Hero — Immersive full-screen background ---------- */
.numbo-factory-page .numbo-factory-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
  overflow: hidden;
  text-align: left;
}
.numbo-factory-page .numbo-factory-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: factoryHeroKenBurns 20s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes factoryHeroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}
/* Dark gradient overlay */
.numbo-factory-page .numbo-factory-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18,14,10,0.55) 0%, rgba(18,14,10,0.28) 40%, rgba(18,14,10,0.6) 100%),
    linear-gradient(90deg, rgba(18,14,10,0.4) 0%, rgba(18,14,10,0) 60%);
  z-index: 1;
}
.numbo-factory-page .numbo-factory-hero .numbo-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
}
.numbo-factory-page .numbo-factory-hero h1 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0 0 16px;
  color: #f5f2ed;
  line-height: 1.1;
}
.numbo-factory-page .numbo-factory-hero-sub {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(245, 242, 237, .75);
}
.numbo-factory-page .hero-breadcrumb {
  margin-bottom: 16px;
  font-size: 12px;
  font-family: var(--sans);
  color: rgba(245, 242, 237, .4);
}
.numbo-factory-page .hero-breadcrumb a {
  color: rgba(245, 242, 237, .5);
  text-decoration: none;
}
.numbo-factory-page .hero-breadcrumb a:hover {
  color: rgba(245, 242, 237, .8);
}
.numbo-factory-page .hero-breadcrumb .sep {
  margin: 0 8px;
  color: rgba(245, 242, 237, .4);
}
.numbo-factory-page .hero-breadcrumb .current {
  color: rgba(245, 242, 237, .7);
}
/* Hero CTA buttons */
.numbo-factory-page .numbo-factory-hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.numbo-factory-page .numbo-factory-hero-cta .numbo-btn {
  padding: 14px 32px;
}
.numbo-factory-page .numbo-btn-outline-light {
  background: transparent;
  color: #f5f2ed;
  border: 1.5px solid rgba(245, 242, 237, .5);
}
.numbo-factory-page .numbo-btn-outline-light:hover {
  background: rgba(245, 242, 237, .1);
  border-color: #f5f2ed;
}
/* Fade-up entrance animation */
.numbo-factory-page .hero-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.numbo-factory-page .hero-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.numbo-factory-page .hero-fade-up:nth-child(1) { transition-delay: 0s; }
.numbo-factory-page .hero-fade-up:nth-child(2) { transition-delay: 0.1s; }
.numbo-factory-page .hero-fade-up:nth-child(3) { transition-delay: 0.2s; }
.numbo-factory-page .hero-fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ---------- S2 Overview ---------- */
.numbo-factory-page .numbo-factory-overview {
  padding: 96px 0;
}
.numbo-factory-page .numbo-factory-overview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.numbo-factory-page .numbo-factory-overview-video {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}
.numbo-factory-page .numbo-factory-video-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.numbo-factory-page .numbo-factory-video-placeholder-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.numbo-factory-page .numbo-factory-video-placeholder-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.numbo-factory-page .numbo-factory-video-placeholder-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1;
}
.numbo-factory-page .numbo-factory-video-play-btn {
  position: relative;
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: .85;
  transition: opacity .2s, transform .2s;
}
.numbo-factory-page .numbo-factory-video-play-btn:hover {
  opacity: 1;
  transform: scale(1.08);
}
.numbo-factory-page .numbo-factory-video-play-btn:disabled {
  cursor: default;
  opacity: .6;
}
.numbo-factory-page .numbo-factory-video-play-btn:disabled:hover {
  transform: none;
  opacity: .6;
}
.numbo-factory-page .numbo-factory-video-label {
  position: relative;
  z-index: 2;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}
.numbo-factory-page .numbo-factory-overview-text h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 24px;
}
.numbo-factory-page .numbo-factory-overview-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
.numbo-factory-page .numbo-factory-overview-text a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.numbo-factory-page .numbo-factory-overview-text a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---------- S3 Production Capabilities ---------- */
.numbo-factory-page .numbo-factory-capabilities {
  padding: 96px 0;
  background: var(--bg-alt);
}
.numbo-factory-page .numbo-factory-capabilities h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 64px;
}
.numbo-factory-page .numbo-factory-cap-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.numbo-factory-page .numbo-factory-cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .3s, border-color .3s;
}
.numbo-factory-page .numbo-factory-cap-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  border-color: var(--brand-light);
}
.numbo-factory-page .numbo-factory-cap-card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbo-factory-page .numbo-factory-cap-card-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand);
  stroke-width: 1.5;
}
.numbo-factory-page .numbo-factory-cap-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.numbo-factory-page .numbo-factory-cap-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- S4 Production Process ---------- */
.numbo-factory-page .numbo-factory-process {
  padding: 96px 0;
  background: var(--surface);
}
.numbo-factory-page .numbo-factory-process h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 64px;
}
.numbo-factory-page .numbo-factory-process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.numbo-factory-page .numbo-factory-process-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.numbo-factory-page .numbo-factory-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.numbo-factory-page .numbo-factory-step-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--brand);
  opacity: .3;
  margin-bottom: 16px;
  line-height: 1;
}
.numbo-factory-page .numbo-factory-step-img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}
.numbo-factory-page .numbo-factory-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.numbo-factory-page .numbo-factory-step h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 10px;
}
.numbo-factory-page .numbo-factory-step p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
.numbo-factory-page .numbo-factory-step a {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.numbo-factory-page .numbo-factory-step a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---------- S5 Equipment & Technology ---------- */
.numbo-factory-page .numbo-factory-equipment {
  padding: 96px 0;
  background: var(--bg-alt);
}
.numbo-factory-page .numbo-factory-equipment h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 16px;
}
.numbo-factory-page .numbo-factory-equipment-intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.numbo-factory-page .numbo-factory-equip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.numbo-factory-page .numbo-factory-equip-grid .numbo-factory-equip-item:last-child:nth-child(3n+2) {
  grid-column: 2;
}
.numbo-factory-page .numbo-factory-equip-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  text-align: center;
  transition: box-shadow .3s, border-color .3s;
}
.numbo-factory-page .numbo-factory-equip-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  border-color: var(--brand-light);
}
.numbo-factory-page .numbo-factory-equip-item-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.numbo-factory-page .numbo-factory-equip-item-icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--brand);
  stroke-width: 1.5;
}
.numbo-factory-page .numbo-factory-equip-item h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}
.numbo-factory-page .numbo-factory-equip-item p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- S6 Trust Numbers (Dark) ---------- */
.numbo-factory-page .numbo-factory-trust {
  padding: 96px 0;
  background: var(--nav-bg);
  text-align: center;
}
.numbo-factory-page .numbo-factory-trust h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 64px;
}
.numbo-factory-page .numbo-factory-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.numbo-factory-page .numbo-factory-trust-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  color: var(--brand-light);
  margin-bottom: 8px;
}
.numbo-factory-page .numbo-factory-trust-label {
  font-size: 14px;
  color: rgba(255, 255, 255, .5);
  letter-spacing: .5px;
}

/* ---------- S7 Gallery ---------- */
.numbo-factory-page .numbo-factory-gallery {
  padding: 96px 0;
}
.numbo-factory-page .numbo-factory-gallery h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 64px;
}
.numbo-factory-page .numbo-factory-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.numbo-factory-page .numbo-factory-gallery-item {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
}
.numbo-factory-page .numbo-factory-gallery-item.tall {
  aspect-ratio: 3/4;
}
.numbo-factory-page .numbo-factory-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.numbo-factory-page .numbo-factory-gallery-item:hover img {
  transform: scale(1.04);
}

/* ---------- S8 CTA ---------- */
.numbo-factory-page .numbo-factory-cta {
  padding: 96px 0;
  text-align: center;
  background: #1a1a1a;
}
.numbo-factory-page .numbo-factory-cta h2 {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #f5f2ed;
}
.numbo-factory-page .numbo-factory-cta p {
  font-size: 16px;
  color: rgba(245, 242, 237, .6);
  max-width: 520px;
  margin: 0 auto 32px;
}
.numbo-factory-page .numbo-factory-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons (scoped) ---------- */
.numbo-factory-page .numbo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
}
.numbo-factory-page .numbo-btn-primary {
  background: var(--brand);
  color: #fff;
}
.numbo-factory-page .numbo-btn-primary:hover {
  background: var(--brand-dark);
}
.numbo-factory-page .numbo-btn-outline {
  background: transparent;
  color: #f5f2ed;
  border: 1.5px solid rgba(245, 242, 237, .5);
}
.numbo-factory-page .numbo-btn-outline:hover {
  background: rgba(245, 242, 237, .1);
  border-color: #f5f2ed;
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .numbo-factory-page .numbo-factory-hero {
    min-height: 70vh;
  }
  .numbo-factory-page .numbo-factory-hero h1 {
    font-size: 36px;
  }
  .numbo-factory-page .numbo-factory-overview-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .numbo-factory-page .numbo-factory-overview-video {
    aspect-ratio: 16/9;
  }
  .numbo-factory-page .numbo-factory-cap-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .numbo-factory-page .numbo-factory-process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .numbo-factory-page .numbo-factory-process-steps::before {
    display: none;
  }
  .numbo-factory-page .numbo-factory-equip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .numbo-factory-page .numbo-factory-equip-grid .numbo-factory-equip-item:last-child:nth-child(3n+2) {
    grid-column: auto;
  }
  .numbo-factory-page .numbo-factory-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .numbo-factory-page .numbo-factory-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .numbo-factory-page .numbo-factory-gallery-item.tall {
    aspect-ratio: 4/3;
  }
}
@media (max-width: 640px) {
  .numbo-factory-page .numbo-factory-hero {
    min-height: 60vh;
    padding: 0 0 40px;
  }
  .numbo-factory-page .numbo-factory-hero h1 {
    font-size: 28px;
  }
  .numbo-factory-page .numbo-factory-hero-sub {
    font-size: 15px;
  }
  .numbo-factory-page .numbo-factory-hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .numbo-factory-page .numbo-factory-hero-cta .numbo-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  .numbo-factory-page .numbo-factory-overview,
  .numbo-factory-page .numbo-factory-capabilities,
  .numbo-factory-page .numbo-factory-process,
  .numbo-factory-page .numbo-factory-equipment,
  .numbo-factory-page .numbo-factory-trust,
  .numbo-factory-page .numbo-factory-gallery,
  .numbo-factory-page .numbo-factory-cta {
    padding: 48px 0;
  }
  .numbo-factory-page .numbo-factory-cap-cards {
    grid-template-columns: 1fr;
  }
  .numbo-factory-page .numbo-factory-process-steps {
    grid-template-columns: 1fr;
  }
  .numbo-factory-page .numbo-factory-equip-grid {
    grid-template-columns: 1fr;
  }
  .numbo-factory-page .numbo-factory-trust-grid {
    grid-template-columns: 1fr;
  }
  .numbo-factory-page .numbo-factory-trust-num {
    font-size: 36px;
  }
  .numbo-factory-page .numbo-factory-gallery-grid {
    grid-template-columns: 1fr;
  }
  .numbo-factory-page .numbo-factory-cta h2 {
    font-size: 28px;
  }
  .numbo-factory-page .numbo-factory-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .numbo-factory-page .numbo-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}
