/* family: home — owned by agent G6 (home, home-test, furniture-blog)
 * G6 pass 2026-10-19 · page-scoped: body.nv-home / .nv-home
 * register=brand · A=olive/cream · B=display-sans+small-caps · C=editorial photo grid
 * D=CSS-only (scroll-snap, hover) · E=upholstery photography · SOUL=6 SPECTACLE=5 DENSITY=4
 */

/* 1. HEADER — superseded 2026-10-27: home now uses the global evergocasa-spec
   header skin from functions.php #nv-ui-critical (black top-bar + white navbar). */

/* ==========================================================================
   2. SECTION RHYTHM — one padding scale (84 / 56) and brand-tinted surfaces
   instead of pure #fff/#f9f9f9.
   ========================================================================== */
.nv-home > section#nv-product-grid,
.nv-home > section#nv-factory-6grid,
.nv-home > section#nv-showroom-hub,
.nv-home > section#nv-ordering-process,
.nv-home > section#nv-blog-grid,
.nv-home > section#nv-faq-pro {
  padding-top: 84px;
  padding-bottom: 84px;
}
.nv-home > section#nv-showroom-hub { padding-bottom: 0; }

.nv-home > section#nv-product-grid,
.nv-home > section#nv-showroom-hub,
.nv-home > section#nv-blog-grid { background-color: #FCFBF7; }

.nv-home > section#nv-factory-6grid,
.nv-home > section#nv-ordering-process,
.nv-home > section#nv-faq-pro { background-color: #F5F7F5; }

.nv-home #nv-product-grid .nvpg-header,
.nv-home #nv-ordering-process .process-header,
.nv-home #nv-blog-grid .blog-header,
.nv-home #nv-faq-pro .faq-header { margin-bottom: 48px; }

.nv-home #nv-blog-grid .blog-cta { margin-top: 40px; }

@media (max-width: 768px) {
  .nv-home > section#nv-product-grid,
  .nv-home > section#nv-factory-6grid,
  .nv-home > section#nv-showroom-hub,
  .nv-home > section#nv-ordering-process,
  .nv-home > section#nv-blog-grid,
  .nv-home > section#nv-faq-pro {
    padding-top: 56px;
    padding-bottom: 56px;
  }
  .nv-home > section#nv-showroom-hub { padding-bottom: 0; }

  .nv-home #nv-product-grid .nvpg-header,
  .nv-home #nv-ordering-process .process-header,
  .nv-home #nv-blog-grid .blog-header,
  .nv-home #nv-faq-pro .faq-header { margin-bottom: 32px; }
}

/* ==========================================================================
   3. HERO — clear the fixed header on small screens, keep the stats band on a
   dark enough bed to read.
   ========================================================================== */
@media (max-width: 1024px) {
  .nv-home .nv-hero__inner { padding-top: 132px !important; }
}
.nv-home .nv-hero__overlay { background: rgba(24, 30, 23, .48); }

.nv-home .nv-hero__trust {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(250, 249, 244, .22);
}
.nv-home .nv-hero__trust b {
  color: #FAF9F4;
  font-weight: 700;
  margin-bottom: 4px;
}
.nv-home .nv-hero__trust span {
  color: rgba(250, 249, 244, .78);
  font-size: .74rem;
  letter-spacing: .1em;
}
.nv-home .nv-hero__btn {
  color: #262E25;
  background: #FAF9F4;
  border: 1px solid #FAF9F4;
  box-shadow: none;
}
.nv-home .nv-hero__btn:hover { background: #fff; }

@media (max-width: 768px) {
  .nv-home .nv-hero__trust { gap: 16px 28px; margin-top: 28px; }
  .nv-home .nv-hero__trust b { font-size: 1rem; }
  .nv-home .nv-hero__trust span { font-size: .7rem; }
}

/* ==========================================================================
   4. CATEGORY CARDS — white type sits on very light upholstery photography.
   Deepen the bottom scrim, lift the small type, tighten the grid tracks.
   ========================================================================== */
.nv-home #nv-product-grid .nvpg-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
/* dark bed under the photo: if an image ever fails the white type still reads */
.nv-home #nv-product-grid .nvpg-card { background-color: #2F382E; }
.nv-home #nv-product-grid .nvpg-overlay {
  background: linear-gradient(
    to bottom,
    rgba(20, 26, 19, 0) 46%,
    rgba(20, 26, 19, .1) 66%,
    rgba(20, 26, 19, .34) 84%,
    rgba(20, 26, 19, .66) 100%
  );
  opacity: 1;
}
.nv-home #nv-product-grid .nvpg-content {
  padding: 30px 28px;
  text-shadow: 0 1px 2px rgba(12, 16, 11, .55), 0 0 14px rgba(12, 16, 11, .38);
}
.nv-home #nv-product-grid .nvpg-num {
  color: rgba(250, 249, 244, .92);
  border-bottom-color: rgba(250, 249, 244, .5);
  font-size: 11px;
  letter-spacing: .14em;
}
.nv-home #nv-product-grid .nvpg-content h3 {
  font-size: 23px;
  margin-bottom: 10px;
}
.nv-home #nv-product-grid .nvpg-desc {
  color: rgba(250, 249, 244, .96);
  font-weight: 400;
  line-height: 1.55;
  margin-bottom: 18px;
}
.nv-home #nv-product-grid .nvpg-btn {
  border-color: rgba(250, 249, 244, .72);
  letter-spacing: .18em;
}
.nv-home #nv-product-grid .nvpg-card:hover .nvpg-overlay { opacity: 1; }

@media (max-width: 1100px) {
  .nv-home #nv-product-grid .nvpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .nv-home #nv-product-grid .nvpg-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .nv-home #nv-product-grid .nvpg-card { padding-top: 112%; }
  .nv-home #nv-product-grid .nvpg-content { padding: 24px 22px; }
  .nv-home #nv-product-grid .nvpg-content h3 { font-size: 21px; }
  .nv-home #nv-product-grid .nvpg-desc { font-size: 13px; margin-bottom: 14px; }
}

/* ==========================================================================
   5. FACTORY SECTION — the 6-photo strip was a horizontal scroller on phones
   (no affordance, 4 photos never seen). Two-up grid instead.
   ========================================================================== */
.nv-home #nv-factory-6grid .grid-image-item { background-color: #E7EAE3; }
.nv-home #nv-factory-6grid .feature-item { border-top-color: rgba(27, 34, 26, .12); }
.nv-home #nv-factory-6grid .feature-item:last-child { border-bottom-color: rgba(27, 34, 26, .12); }
.nv-home #nv-factory-6grid .cta-btn { min-height: 44px; }

@media (max-width: 768px) {
  .nv-home #nv-factory-6grid .image-grid-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }
  .nv-home #nv-factory-6grid .grid-image-item {
    min-width: 0;
    padding-top: 78%;
  }
  .nv-home #nv-factory-6grid .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

/* ==========================================================================
   6. SHOWROOM SLIDER — desktop arrows were 45px white slabs over the photo;
   on phones the arrows did nothing and hid 4 of 5 photos. Native swipe there.
   ========================================================================== */
.nv-home #nv-showroom-hub .slider-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(27, 34, 26, .82);
  color: #FAF9F4;
  font-size: 15px;
  border: 1px solid rgba(250, 249, 244, .28);
  box-shadow: 0 10px 24px rgba(12, 16, 11, .28);
  transition: background-color .25s ease;
}
.nv-home #nv-showroom-hub .slider-nav:hover { background-color: #262E25; }
.nv-home #nv-showroom-hub .nav-prev { left: 14px; }
.nv-home #nv-showroom-hub .nav-next { right: 14px; }
.nv-home #nv-showroom-hub .cta-btn { min-height: 44px; }

.nv-home #nv-showroom-hub .gallery-header { margin-top: 84px; margin-bottom: 40px; }
.nv-home #nv-showroom-hub .full-screen-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
}
.nv-home #nv-showroom-hub .fs-item {
  height: 420px;
  background-color: #E4E7E0;
}

@media (max-width: 768px) {
  .nv-home #nv-showroom-hub .slider-container {
    height: 242px;
    padding-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nv-home #nv-showroom-hub .slider-container::-webkit-scrollbar { display: none; }
  .nv-home #nv-showroom-hub .slider-track {
    position: relative;
    height: 100%;
    gap: 8px;
    transform: none;
    transition: none;
  }
  .nv-home #nv-showroom-hub .slide-item {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
  }
  .nv-home #nv-showroom-hub .slider-nav { display: none; }

  .nv-home #nv-showroom-hub .gallery-header { margin-top: 56px; margin-bottom: 28px; }
  .nv-home #nv-showroom-hub .full-screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }
  .nv-home #nv-showroom-hub .fs-item { height: 210px; }
  .nv-home #nv-showroom-hub .fs-item:last-child { grid-column: 1 / -1; }
  .nv-home #nv-showroom-hub .cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-bottom: 0;
    text-decoration: underline;
    text-underline-offset: 6px;
  }
}

/* trade-fair captions: the strip read as anonymous photography before */
.nv-home #nv-showroom-hub .fs-item img { filter: none; }
.nv-home #nv-showroom-hub .nv-fs-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 10px 14px 11px;
  background-color: rgba(16, 21, 15, .82);
  color: #FAF9F4;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .13em;
  text-transform: uppercase;
  pointer-events: none;
}
@media (max-width: 768px) {
  .nv-home #nv-showroom-hub .nv-fs-cap {
    padding: 8px 10px 9px;
    font-size: 9px;
    letter-spacing: .08em;
  }
}

/* ==========================================================================
   7. BLOG — placeholder tone on the thumbnail bed (no cold grey).
   ========================================================================== */
.nv-home #nv-blog-grid .img-wrapper { background-color: #E7EAE3; }
.nv-home #nv-blog-grid .b2b-card { border-color: rgba(27, 34, 26, .1); }

/* ==========================================================================
   8. FAQ — the sheet styles `.faq-trigger h4` but the markup is h3, so the
   questions fell back to theme heading type.
   ========================================================================== */
.nv-home #nv-faq-pro .faq-trigger { min-height: 56px; }
.nv-home #nv-faq-pro .faq-trigger h3 {
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #1B221A;
  margin: 0;
  padding-right: 20px;
  text-align: left;
  text-wrap: balance;
}
.nv-home #nv-faq-pro .faq-trigger:hover h3 { opacity: .72; }
.nv-home #nv-faq-pro .faq-item { border-bottom-color: rgba(27, 34, 26, .12); }
.nv-home #nv-faq-pro .faq-content-inner { color: #55524A; }

@media (max-width: 768px) {
  .nv-home #nv-faq-pro .faq-trigger { padding: 18px 0; }
  .nv-home #nv-faq-pro .faq-trigger h3 { font-size: 16px; padding-right: 14px; }
}

/* ==========================================================================
   9. TYPE DETAIL — balance wrapping, no orphan display lines
   ========================================================================== */
.nv-home h1,
.nv-home h2,
.nv-home h3 { text-wrap: balance; }
.nv-home #nv-product-grid .nvpg-content h3,
.nv-home #nv-blog-grid h3 { text-wrap: pretty; }
