/* ==================================================================
   NUMBO Our Story Page — assets/our-story.css
   Scoped under .numbo-story-page to avoid bleed into other pages.
   ================================================================== */

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

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

/* ---------- S1 Hero (immersive full-screen bg) ---------- */
.numbo-story-page .numbo-story-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: flex-end;
  padding: 0 0 64px;
  overflow: hidden;
  text-align: left;
}
.numbo-story-page .numbo-story-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: storyHeroKenBurns 20s ease-in-out infinite alternate;
  z-index: 0;
}
@keyframes storyHeroKenBurns {
  0%   { transform: scale(1); }
  100% { transform: scale(1.06); }
}
/* Dark gradient overlay */
.numbo-story-page .numbo-story-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-story-page .numbo-story-hero .numbo-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
}
.numbo-story-page .numbo-story-hero h1 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #f5f2ed;
}
.numbo-story-page .numbo-story-hero-sub {
  max-width: 560px;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(245, 242, 237, 0.8);
}

/* --- Hero CTA Buttons --- */
.numbo-story-page .numbo-story-hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Breadcrumb (inside immersive hero) --- */
.numbo-story-page .numbo-story-hero .hero-breadcrumb {
  margin-bottom: 20px;
  font-size: 12px;
  font-family: var(--sans);
  color: rgba(245, 242, 237, 0.4);
}
.numbo-story-page .numbo-story-hero .hero-breadcrumb a {
  color: rgba(245, 242, 237, 0.5);
  text-decoration: none;
}
.numbo-story-page .numbo-story-hero .hero-breadcrumb a:hover {
  color: rgba(245, 242, 237, 0.8);
}
.numbo-story-page .numbo-story-hero .hero-breadcrumb .sep {
  margin: 0 8px;
  color: rgba(245, 242, 237, 0.4);
}
.numbo-story-page .numbo-story-hero .hero-breadcrumb .current {
  color: rgba(245, 242, 237, 0.7);
}

/* --- Hero Fade-up Animation --- */
.numbo-story-page .hero-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.numbo-story-page .hero-fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.numbo-story-page .hero-fade-up:nth-child(2) { transition-delay: 0.1s; }
.numbo-story-page .hero-fade-up:nth-child(3) { transition-delay: 0.2s; }
.numbo-story-page .hero-fade-up:nth-child(4) { transition-delay: 0.3s; }
.numbo-story-page .hero-fade-up:nth-child(5) { transition-delay: 0.4s; }

/* ---------- S2 Origin ---------- */
.numbo-story-page .numbo-story-origin {
  padding: 96px 0;
}
.numbo-story-page .numbo-story-origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.numbo-story-page .numbo-story-origin-img {
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
}
.numbo-story-page .numbo-story-origin-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.numbo-story-page .numbo-story-origin-text h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 24px;
}
.numbo-story-page .numbo-story-origin-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}
.numbo-story-page .numbo-story-origin-text p:last-child {
  margin-bottom: 0;
}

/* ---------- S3 Philosophy ---------- */
.numbo-story-page .numbo-story-philosophy {
  padding: 96px 0;
  background: var(--surface);
}
.numbo-story-page .numbo-story-philosophy-quote {
  text-align: center;
  margin-bottom: 64px;
}
.numbo-story-page .numbo-story-philosophy-quote h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 32px;
}
.numbo-story-page .numbo-story-philosophy-quote blockquote {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  font-style: italic;
  color: var(--brand);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.5;
  position: relative;
  padding: 0 24px;
}
.numbo-story-page .numbo-story-philosophy-quote blockquote::before {
  content: '\201C';
  font-size: 72px;
  color: var(--brand-light);
  opacity: .3;
  position: absolute;
  top: -24px;
  left: -8px;
  font-family: var(--serif);
}
.numbo-story-page .numbo-story-philosophy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.numbo-story-page .numbo-story-phil-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 32px;
  text-align: center;
  transition: box-shadow .3s, border-color .3s;
}
.numbo-story-page .numbo-story-phil-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
  border-color: var(--brand-light);
}
.numbo-story-page .numbo-story-phil-card-icon {
  width: 48px;
  height: 3px;
  background: var(--brand);
  margin: 0 auto 24px;
  border-radius: 2px;
}
.numbo-story-page .numbo-story-phil-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
}
.numbo-story-page .numbo-story-phil-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.numbo-story-page .numbo-story-phil-card a {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.numbo-story-page .numbo-story-phil-card a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

/* ---------- S4 Timeline ---------- */
.numbo-story-page .numbo-story-timeline {
  padding: 96px 0;
  background: var(--bg-alt);
}
.numbo-story-page .numbo-story-timeline h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 64px;
}
.numbo-story-page .numbo-story-timeline-track {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.numbo-story-page .numbo-story-timeline-track::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}
.numbo-story-page .numbo-story-tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
.numbo-story-page .numbo-story-tl-item:last-child {
  margin-bottom: 0;
}
.numbo-story-page .numbo-story-tl-dot {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--bg-alt);
  transform: translateX(-50%);
  z-index: 2;
}
.numbo-story-page .numbo-story-tl-year {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--brand);
}
.numbo-story-page .numbo-story-tl-item:nth-child(odd) .numbo-story-tl-left {
  text-align: right;
  padding-right: 32px;
}
.numbo-story-page .numbo-story-tl-item:nth-child(odd) .numbo-story-tl-right {
  padding-left: 32px;
}
.numbo-story-page .numbo-story-tl-item:nth-child(even) .numbo-story-tl-left {
  order: 2;
  text-align: right;
  padding-right: 32px;
}
.numbo-story-page .numbo-story-tl-item:nth-child(even) .numbo-story-tl-right {
  order: 1;
  padding-left: 32px;
}
.numbo-story-page .numbo-story-tl-desc {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.numbo-story-page .numbo-story-tl-desc a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.numbo-story-page .numbo-story-tl-desc a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

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

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

/* ---------- S7 Values ---------- */
.numbo-story-page .numbo-story-values {
  padding: 96px 0;
}
.numbo-story-page .numbo-story-values h2 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 64px;
}
.numbo-story-page .numbo-story-values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.numbo-story-page .numbo-story-values-grid.reverse {
  direction: rtl;
}
.numbo-story-page .numbo-story-values-grid.reverse > * {
  direction: ltr;
}
.numbo-story-page .numbo-story-values-img {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
}
.numbo-story-page .numbo-story-values-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.numbo-story-page .numbo-story-values-text h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 16px;
}
.numbo-story-page .numbo-story-values-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 12px;
}
.numbo-story-page .numbo-story-values-text p:last-child {
  margin-bottom: 0;
}
.numbo-story-page .numbo-story-values-text a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  transition: color .2s;
}
.numbo-story-page .numbo-story-values-text a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}
.numbo-story-page .numbo-story-values-cta {
  text-align: center;
  padding-top: 16px;
}
.numbo-story-page .numbo-story-values-cta a {
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--brand-light);
  padding-bottom: 2px;
  transition: color .2s, border-color .2s;
}
.numbo-story-page .numbo-story-values-cta a:hover {
  color: var(--brand-dark);
  border-color: var(--brand-dark);
}

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

/* ---------- Buttons (scoped) ---------- */
.numbo-story-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-story-page .numbo-btn-primary {
  background: var(--brand);
  color: #fff;
}
.numbo-story-page .numbo-btn-primary:hover {
  background: var(--brand-dark);
}
.numbo-story-page .numbo-btn-outline {
  background: transparent;
  color: #f5f2ed;
  border: 1.5px solid rgba(245, 242, 237, .5);
}
.numbo-story-page .numbo-btn-outline:hover {
  background: rgba(245, 242, 237, .1);
  border-color: #f5f2ed;
}
.numbo-story-page .numbo-btn-outline-light {
  background: transparent;
  color: #f5f2ed;
  border: 1.5px solid rgba(245, 242, 237, 0.4);
}
.numbo-story-page .numbo-btn-outline-light:hover {
  background: rgba(245, 242, 237, 0.1);
  border-color: rgba(245, 242, 237, 0.7);
}

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  .numbo-story-page .numbo-story-hero { min-height: 70vh; }
  .numbo-story-page .numbo-story-hero h1 {
    font-size: 40px;
  }
  .numbo-story-page .numbo-story-origin-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .numbo-story-page .numbo-story-origin-img {
    aspect-ratio: 16/9;
  }
  .numbo-story-page .numbo-story-philosophy-cards {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .numbo-story-page .numbo-story-philosophy-quote blockquote {
    font-size: 22px;
  }
  .numbo-story-page .numbo-story-timeline-track::before {
    left: 20px;
  }
  .numbo-story-page .numbo-story-tl-item {
    grid-template-columns: 1fr;
    padding-left: 52px;
  }
  .numbo-story-page .numbo-story-tl-dot {
    left: 20px;
  }
  .numbo-story-page .numbo-story-tl-item:nth-child(odd) .numbo-story-tl-left,
  .numbo-story-page .numbo-story-tl-item:nth-child(even) .numbo-story-tl-left {
    text-align: left;
    padding-right: 0;
  }
  .numbo-story-page .numbo-story-tl-item:nth-child(odd) .numbo-story-tl-right,
  .numbo-story-page .numbo-story-tl-item:nth-child(even) .numbo-story-tl-right {
    order: unset;
    padding-left: 0;
  }
  .numbo-story-page .numbo-story-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .numbo-story-page .numbo-story-process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .numbo-story-page .numbo-story-process-steps::before {
    display: none;
  }
  .numbo-story-page .numbo-story-values-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .numbo-story-page .numbo-story-values-grid.reverse {
    direction: ltr;
  }
}
@media (max-width: 640px) {
  .numbo-story-page .numbo-story-hero {
    min-height: 60vh;
    padding: 0 0 40px;
  }
  .numbo-story-page .numbo-story-hero h1 {
    font-size: 28px;
  }
  .numbo-story-page .numbo-story-hero-sub {
    font-size: 15px;
  }
  .numbo-story-page .numbo-story-hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .numbo-story-page .numbo-story-origin,
  .numbo-story-page .numbo-story-philosophy,
  .numbo-story-page .numbo-story-timeline,
  .numbo-story-page .numbo-story-trust,
  .numbo-story-page .numbo-story-process,
  .numbo-story-page .numbo-story-values,
  .numbo-story-page .numbo-story-cta {
    padding: 48px 0;
  }
  .numbo-story-page .numbo-story-philosophy-quote blockquote {
    font-size: 20px;
  }
  .numbo-story-page .numbo-story-trust-grid {
    grid-template-columns: 1fr;
  }
  .numbo-story-page .numbo-story-trust-num {
    font-size: 36px;
  }
  .numbo-story-page .numbo-story-process-steps {
    grid-template-columns: 1fr;
  }
  .numbo-story-page .numbo-story-cta h2 {
    font-size: 28px;
  }
  .numbo-story-page .numbo-story-cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .numbo-story-page .numbo-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
    justify-content: center;
  }
}
