/* family: room landing pages — owner: agent G3 (living-room-furniture, bedroom-furniture, dining-furniture, fabric-sofa)
   Scope every rule with the page body class: .nv-living-room-furniture …
   Loaded after main.css + ui-v8.css. Only overrides live here; no new facts, no copy changes. */

/* =====================================================================
   1. HERO IMAGE DOES NOT COVER THE HERO (Critical)
   main.css: `.nv-*-page img { height: auto }` (0,1,1) beats
   `.nv-*-hero__bg { height: 100% }` (0,1,0), so at 1440 the bg renders
   960px tall inside a 558px hero (top-aligned): the photo is cropped from
   the top instead of centred. At 390 it renders 260px tall inside a
   563–664px hero, leaving a flat olive band under the photo and a visible
   seam behind the spec chips.
   ===================================================================== */
.nv-living-room-furniture .nv-lr-hero > img.nv-lr-hero__bg,
.nv-bedroom-furniture .nv-bd-hero > img.nv-bd-hero__bg,
.nv-dining-furniture .nv-dn-hero > img.nv-dn-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
}

/* =====================================================================
   2. BROKEN GLYPHS — smart quotes in main.css killed three declarations
   `content: ‘2713’` / `content: ‘+’` / `content: ‘2212’` are invalid CSS,
   so the whole declaration (including position/left/colour) is dropped:
   the assurance lists render with no checkmark and the FAQ accordion has
   no +/− affordance at all. Re-state every property, not just content.
   ===================================================================== */
.nv-living-room-furniture .nv-lr-check li::before,
.nv-bedroom-furniture .nv-bd-check li::before,
.nv-dining-furniture .nv-dn-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 2px;
  color: #3D473C;
  font-weight: 700;
  font-size: .95em;
  line-height: 1;
}

.nv-living-room-furniture .nv-lr-faq summary::after,
.nv-bedroom-furniture .nv-bd-faq summary::after,
.nv-dining-furniture .nv-dn-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1;
  color: #3D473C;
}

.nv-living-room-furniture .nv-lr-faq details[open] summary::after,
.nv-bedroom-furniture .nv-bd-faq details[open] summary::after,
.nv-dining-furniture .nv-dn-faq details[open] summary::after {
  content: "\2212";
}

/* FAQ rows are the tap target: lift the closed row to a 44px target and keep
   the indicator clear of the question text. */
.nv-living-room-furniture .nv-lr-faq summary,
.nv-bedroom-furniture .nv-bd-faq summary,
.nv-dining-furniture .nv-dn-faq summary {
  padding: 10px 34px 10px 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  line-height: 1.4;
}

/* =====================================================================
   3. HERO PARAGRAPH LINKS INVISIBLE (dining only)
   `.nv-dn-hero__inner p` is #EDEDED on a dark photo, but the two inline
   links inherit the global olive `a` colour (#1A1F19 on a ~#2B312A
   overlay, contrast ≈ 1.2:1). Nothing styled `p a` in the hero.
   ===================================================================== */
.nv-dining-furniture .nv-dn-hero__inner p a {
  color: #FAF9F4;
  /* main.css:450 is a bare `a { text-decoration: none !important }`,
     so the underline must be re-declared as important too. */
  text-decoration-line: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  text-decoration-color: rgba(250, 249, 244, .55) !important;
  letter-spacing: normal;
  transition: text-decoration-color .2s ease, color .2s ease;
}

.nv-dining-furniture .nv-dn-hero__inner p a:hover,
.nv-dining-furniture .nv-dn-hero__inner p a:focus-visible {
  color: #FAF9F4;
  text-decoration-color: #FAF9F4 !important;
}

/* =====================================================================
   4. HERO CTA (all three room pages)
   The rooms shipped with spec chips only: no first-screen action, while
   fabric-sofa (same family) has an ivory "Request Quote". Same markup and
   same look as `.nv-sofa .hero__btn`.
   ===================================================================== */
.nv-living-room-furniture .nv-lr-hero__btn,
.nv-bedroom-furniture .nv-bd-hero__btn,
.nv-dining-furniture .nv-dn-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 28px;
  padding: 14px 38px;
  background: #FAF9F4;
  color: #262E25;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 1px solid rgba(250, 249, 244, .6);
  transition: transform .25s cubic-bezier(.22, 1, .36, 1), background-color .25s ease;
}

.nv-living-room-furniture .nv-lr-hero__btn:hover,
.nv-bedroom-furniture .nv-bd-hero__btn:hover,
.nv-dining-furniture .nv-dn-hero__btn:hover,
.nv-living-room-furniture .nv-lr-hero__btn:focus-visible,
.nv-bedroom-furniture .nv-bd-hero__btn:focus-visible,
.nv-dining-furniture .nv-dn-hero__btn:focus-visible {
  background: #F2F0E7;
  transform: translateY(-2px);
}

/* =====================================================================
   5b. HERO COPY UNDER THE FIXED HEADER
   The header is fixed at 92px (105px tall incl. the mobile floating bar)
   while `__inner` only pads 100px, and flex-centring pushes the box up
   when the hero is taller than its content: measured breadcrumb clearance
   was +7px on desktop and -8px on the bedroom phone view (first line
   clipped by the header). Pad past the header on both viewports.
   ===================================================================== */
.nv-living-room-furniture .nv-lr-hero__inner,
.nv-bedroom-furniture .nv-bd-hero__inner,
.nv-dining-furniture .nv-dn-hero__inner {
  padding-top: 118px;
}

@media (max-width: 1024px) {
  .nv-living-room-furniture .nv-lr-hero__inner,
  .nv-bedroom-furniture .nv-bd-hero__inner,
  .nv-dining-furniture .nv-dn-hero__inner {
    /* ui-v8.css:226 pins calc(64px + 44px) = 108px here, but the floating
       mobile header is 105px tall, so the breadcrumb lands 3px under it. */
    padding-top: 128px !important;
  }
}

/* =====================================================================
   5. SPEC CHIPS WRAP UNEVENLY ON PHONES (dining: 1 + 1 + 2 rows)
   flex-wrap + content-driven widths produced a ragged 3-row block; the
   same four chips are a clean 2×2 on living-room and bedroom. Force the
   2-column grid below 560px so every room page matches.
   ===================================================================== */
@media (max-width: 560px) {
  .nv-living-room-furniture .nv-lr-hero__chips,
  .nv-bedroom-furniture .nv-bd-hero__chips,
  .nv-dining-furniture .nv-dn-hero__chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .nv-living-room-furniture .nv-lr-hero__chips span,
  .nv-bedroom-furniture .nv-bd-hero__chips span,
  .nv-dining-furniture .nv-dn-hero__chips span {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 9px 8px;
    font-size: .7rem;
    letter-spacing: .04em;
    line-height: 1.35;
  }
}

/* =====================================================================
   6. CARD CTA UNDER THE 44px TOUCH FLOOR (39px measured, both viewports)
   ===================================================================== */
.nv-living-room-furniture .nv-lr-prod__cta,
.nv-bedroom-furniture .nv-bd-prod__cta,
.nv-dining-furniture .nv-dn-prod__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
}

/* =====================================================================
   7. SPACING — dining program grid collides with the split above it
   `.nv-dn-programs` has no top margin, so its 3px dark top rule sits
   exactly on the factory photo's bottom edge (measured: split bottom
   2266 / grid top 2265).
   ===================================================================== */
.nv-dining-furniture .nv-dn-programs {
  margin-top: 44px;
}

@media (max-width: 768px) {
  .nv-dining-furniture .nv-dn-programs {
    margin-top: 32px;
  }
}

/* =====================================================================
   8. BEDROOM CERT BADGES — emoji as iconography
   &#128293; / &#128737; / &#9989; rendered as OS emoji (and WP replaced
   two of them with Twemoji <img alt="🔥"> / <img alt="✅">). Replaced with
   one neutral compliance mark drawn in CSS; the markup now carries an
   empty aria-hidden div.
   ===================================================================== */
.nv-bedroom-furniture .nv-bd-cert__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(61, 71, 60, .28);
  border-radius: 50%;
  font-size: 0;
  color: #3D473C;
}

.nv-bedroom-furniture .nv-bd-cert__icon::before {
  content: "\2713";
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

/* =====================================================================
   9. FABRIC-SOFA (same family, `.nv-sofa` wrapper + `nv-fabric-sofa` body)
   a) hero is 78vh (702px) while the three room pages are 62vh (558px):
      same-family landings opened at visibly different heights.
   b) mobile: 100px top padding puts the breadcrumb under the 105px fixed
      header, and the hero grows to 756px (90% of the viewport).
   c) split media carried a 6px radius while every card in the family is
      square-cornered.
   ===================================================================== */
.nv-fabric-sofa .hero {
  min-height: 62vh;
}

.nv-fabric-sofa .hero__inner {
  padding: 108px 24px 72px;
}

.nv-fabric-sofa .split__media img {
  border-radius: 0;
}

@media (max-width: 1024px) {
  .nv-fabric-sofa .hero {
    min-height: 0;
  }

  .nv-fabric-sofa .hero__inner {
    padding: 124px 20px 56px;
  }

  .nv-fabric-sofa .hero__inner h1 {
    font-size: clamp(1.75rem, 7.4vw, 2.4rem);
  }
}

/* =====================================================================
   10. TYPEFACE DROPPED BY THE SAME SMART-QUOTE BUG
   main.css: `.nv-*-page { font-family: ‘Open Sans’, … ‘Segoe UI’ … }`.
   The curly quotes make the family list unresolvable, so every paragraph
   and list in these three pages falls back to the system UI font while
   the rest of the site renders Open Sans (measured: body = "Open Sans",
   room pages = "‘Open Sans’"). h1/h2 escaped it via the global rule.
   ===================================================================== */
.nv-living-room-furniture .nv-lr-page,
.nv-bedroom-furniture .nv-bd-page,
.nv-dining-furniture .nv-dn-page {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

