/* ==================================================================
   NUMBO CATEGORY SEO SECTIONS — assets/category-seo.css
   Styles for S3 (SEO Intro), S5 (Scenes), S6 (Trust), S7 (Deep Content)
   Loaded on WooCommerce category archive pages via functions.php
   All selectors scoped to section classes to prevent bleed
   ================================================================== */

/* ---------- Shared Section Spacing ---------- */
.numbo-cat-seo-intro,
.numbo-cat-scenes,
.numbo-cat-trust,
.numbo-cat-deep {
  padding: 64px 0;
}

.numbo-cat-seo-intro .numbo-container,
.numbo-cat-scenes .numbo-container,
.numbo-cat-trust .numbo-container,
.numbo-cat-deep .numbo-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Scroll Reveal ---------- */
.numbo-cat-seo-intro,
.numbo-cat-scenes,
.numbo-cat-trust,
.numbo-cat-deep {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.numbo-cat-seo-intro.numbo-revealed,
.numbo-cat-scenes.numbo-revealed,
.numbo-cat-trust.numbo-revealed,
.numbo-cat-deep.numbo-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Section Title (shared) ---------- */
.numbo-cat-section-title {
  font-family: var(--numbo-serif, 'Playfair Display', Georgia, serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--numbo-text, #1a1a1a);
  text-align: center;
  margin: 0 0 40px;
  line-height: 1.25;
}

/* ==================================================================
   S3: SEO Intro — Category Overview (Option A: Editorial Minimal)
   ================================================================== */
.numbo-cat-seo-intro {
  background: var(--numbo-bg, #fafaf8);
  border-bottom: 1px solid var(--numbo-border, #e5e5e0);
}

.numbo-seo-intro-wrap {
  max-width: 640px;
  margin: 0 auto;
}

.numbo-seo-intro-wrap::before {
  content: '';
  display: block;
  width: 40px;
  height: 3px;
  background: var(--numbo-brand, #8b7355);
  margin-bottom: 20px;
}

.numbo-seo-intro-text {
  max-width: none;
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 15.5px;
  line-height: 1.72;
  color: #3d3d3d;
  letter-spacing: 0.01em;
}

.numbo-seo-intro-text p {
  margin: 0 0 18px;
}

.numbo-seo-intro-text p:last-child {
  margin-bottom: 0;
}

.numbo-seo-intro-text a {
  color: var(--numbo-brand, #8b7355);
  text-decoration: none;
  border-bottom: 1px solid rgba(139,115,85,0.3);
  transition: border-color 0.2s;
}

.numbo-seo-intro-text a:hover {
  border-bottom-color: var(--numbo-brand, #8b7355);
}

/* ==================================================================
   S5: Application Scenes
   ================================================================== */
.numbo-cat-scenes {
  background: #f5f2ed;
}

.numbo-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.numbo-scene-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
  text-decoration: none;
}

.numbo-scene-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.numbo-scene-card:hover img {
  transform: scale(1.05);
}

.numbo-scene-card .scene-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--numbo-text, #1a1a1a);
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* ==================================================================
   S6: Why NUMBO — Trust Bar
   ================================================================== */
.numbo-cat-trust {
  background: var(--numbo-dark, #1a1a1a);
  color: #f5f2ed;
  text-align: center;
}

.numbo-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.numbo-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.trust-number {
  font-family: var(--numbo-serif, 'Playfair Display', Georgia, serif);
  font-size: 40px;
  font-weight: 500;
  color: var(--numbo-brand, #8b7355);
  line-height: 1;
}

.trust-label {
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  color: rgba(245, 242, 237, 0.7);
  letter-spacing: 0.02em;
}

.numbo-trust-cta {
  margin: 0;
}

.numbo-trust-cta a {
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--numbo-brand, #8b7355);
  text-decoration: none;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.numbo-trust-cta a:hover {
  color: #f5f2ed;
}

/* ==================================================================
   S7: Deep SEO Content + FAQ
   ================================================================== */
.numbo-cat-deep {
  background: var(--numbo-bg, #fafaf8);
  border-top: 1px solid var(--numbo-border, #e5e5e0);
}

/* S7a: Buying Guide */
.numbo-buying-guide {
  max-width: 800px;
  margin: 0 auto 56px;
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.75;
  color: var(--numbo-text, #1a1a1a);
}

.numbo-buying-guide h2 {
  font-family: var(--numbo-serif, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--numbo-text, #1a1a1a);
  margin: 0 0 24px;
  line-height: 1.3;
}

.numbo-buying-guide h3 {
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--numbo-text, #1a1a1a);
  margin: 32px 0 12px;
}

.numbo-buying-guide p {
  margin: 0 0 16px;
  color: var(--numbo-muted, #6b6b6b);
}

.numbo-buying-guide ul,
.numbo-buying-guide ol {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--numbo-muted, #6b6b6b);
}

.numbo-buying-guide li {
  margin-bottom: 8px;
}

.numbo-buying-guide a {
  color: var(--numbo-brand, #8b7355);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.numbo-buying-guide a:hover {
  color: var(--numbo-brand-dark, #6d5a43);
}

/* S7b: Custom Program CTA */
.numbo-cat-custom-cta {
  max-width: 800px;
  margin: 0 auto 56px;
  text-align: center;
  padding: 48px 32px;
  background: #f5f2ed;
  border: 1px solid var(--numbo-border, #e5e5e0);
}

.numbo-cat-custom-cta h2 {
  font-family: var(--numbo-serif, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--numbo-text, #1a1a1a);
  margin: 0 0 16px;
  line-height: 1.3;
}

.numbo-cat-custom-cta p {
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--numbo-muted, #6b6b6b);
  margin: 0 0 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.numbo-cat-custom-cta p a {
  color: var(--numbo-brand, #8b7355);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.numbo-custom-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* S7c: FAQ */
.numbo-cat-faq {
  max-width: 800px;
  margin: 0 auto;
}

.numbo-cat-faq > h2 {
  font-family: var(--numbo-serif, 'Playfair Display', Georgia, serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--numbo-text, #1a1a1a);
  text-align: center;
  margin: 0 0 32px;
  line-height: 1.3;
}

.numbo-cat-faq details {
  border-bottom: 1px solid var(--numbo-border, #e5e5e0);
  padding: 0;
}

.numbo-cat-faq details:first-of-type {
  border-top: 1px solid var(--numbo-border, #e5e5e0);
}

.numbo-cat-faq summary {
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--numbo-text, #1a1a1a);
  padding: 20px 40px 20px 0;
  cursor: pointer;
  list-style: none;
  position: relative;
  transition: color 0.2s;
}

.numbo-cat-faq summary::-webkit-details-marker {
  display: none;
}

.numbo-cat-faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 300;
  color: var(--numbo-brand, #8b7355);
  transition: transform 0.2s;
}

.numbo-cat-faq details[open] summary::after {
  content: '\2212';
}

.numbo-cat-faq summary:hover {
  color: var(--numbo-brand, #8b7355);
}

.numbo-cat-faq details div {
  font-family: var(--numbo-sans, 'Inter', system-ui, sans-serif);
  font-size: 15px;
  line-height: 1.7;
  color: var(--numbo-muted, #6b6b6b);
  padding: 0 0 20px;
}

.numbo-cat-faq details div p {
  margin: 0;
}

.numbo-cat-faq details a {
  color: var(--numbo-brand, #8b7355);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ==================================================================
   RESPONSIVE — Tablet (max-width: 1024px)
   ================================================================== */
@media (max-width: 1024px) {
  .numbo-cat-seo-intro,
  .numbo-cat-scenes,
  .numbo-cat-trust,
  .numbo-cat-deep {
    padding: 48px 0;
  }

  .numbo-cat-section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .numbo-scene-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .numbo-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .trust-number {
    font-size: 34px;
  }

  .numbo-buying-guide h2,
  .numbo-cat-custom-cta h2,
  .numbo-cat-faq > h2 {
    font-size: 24px;
  }
}

/* ==================================================================
   RESPONSIVE — Mobile (max-width: 768px)
   ================================================================== */
@media (max-width: 768px) {
  .numbo-cat-seo-intro,
  .numbo-cat-scenes,
  .numbo-cat-trust,
  .numbo-cat-deep {
    padding: 40px 0;
  }

  .numbo-cat-section-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .numbo-seo-intro-text {
    font-size: 15px;
  }

  .numbo-seo-intro-wrap::before {
    width: 32px;
    margin-bottom: 16px;
  }

  .numbo-scene-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .numbo-trust-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
  }

  .trust-number {
    font-size: 28px;
  }

  .trust-label {
    font-size: 13px;
  }

  .numbo-buying-guide {
    margin-bottom: 40px;
  }

  .numbo-buying-guide h2,
  .numbo-cat-custom-cta h2,
  .numbo-cat-faq > h2 {
    font-size: 22px;
  }

  .numbo-cat-custom-cta {
    padding: 32px 20px;
    margin-bottom: 40px;
  }

  .numbo-custom-cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .numbo-custom-cta-buttons .numbo-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

  .numbo-cat-faq summary {
    font-size: 15px;
    padding: 16px 36px 16px 0;
  }

  .numbo-cat-faq details div {
    font-size: 14px;
    padding-bottom: 16px;
  }
}
