/* Home CSS relocated from late winning layers in style.css and target-c-closeout.css. */

/* Phase 3i-18: tighten Home promo and Best Sellers rhythm against Figma Home frames. */
.home .nv-trust--global,
.home .nv-trust--home {
  padding-top: 48px;
}

.home .nv-trust--global .nv-trust__grid,
.home .nv-trust--home .nv-trust__grid {
  width: min(calc(100% - 64px), 1145px);
  min-height: 128px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--norven-radius-md);
  background: var(--norven-surface-promo);
}

.home .nv-trust--global .nv-trust__item,
.home .nv-trust--home .nv-trust__item {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 22px 40px;
  text-align: center;
}

.home .nv-trust--global .nv-trust__icon,
.home .nv-trust--home .nv-trust__icon {
  display: none;
}

.home .nv-trust--global strong,
.home .nv-trust--home strong {
  max-width: 820px;
  margin: 0 auto;
  color: var(--norven-text);
  font-family: var(--norven-font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}

.home .nv-trust--global p,
.home .nv-trust--home p {
  max-width: 520px;
  margin: 0 auto;
  color: var(--norven-text-muted);
  font-size: 12px;
  line-height: 19px;
}

.home .nv-best-sellers {
  padding-top: 80px;
  padding-bottom: 96px;
}

.home .nv-best-sellers__layout {
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.home .nv-best-sellers__intro .nv-section__heading {
  max-width: 310px;
  font-size: 32px;
  line-height: 41.6px;
}

.home .nv-best-sellers__intro p:not(.nv-section__eyebrow) {
  max-width: 276px;
  margin-top: 16px;
  color: var(--norven-text-muted);
  font-size: 13px;
  line-height: 21px;
}

.home .nv-best-sellers__intro .nv-text-link {
  margin-top: 20px;
  font-size: 12px;
  line-height: 17px;
}

.home .nv-products--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 24px;
}

.home .nv-card--home .nv-card__body {
  padding-top: 12px;
}

.home .nv-card--home .nv-card__label {
  margin-bottom: 4px;
  font-size: 9.5px;
  line-height: 13px;
}

.home .nv-card--home .nv-card__title,
.home .nv-card--home .nv-card__price {
  font-size: 15px;
  line-height: 20.8px;
}

.home .nv-card--home .nv-card__summary,
.home .nv-card--home .nv-card__hint {
  display: none;
}

.home .nv-card--home .nv-card__action {
  min-height: 46px;
  margin-top: 12px;
  border-radius: var(--norven-radius-sm);
  font-size: 12px;
  line-height: 16.9px;
}

@media (max-width: 900px) {
  .home .nv-trust--global,
  .home .nv-trust--home {
    padding-top: 16px;
  }

  .home .nv-trust--global .nv-trust__grid,
  .home .nv-trust--home .nv-trust__grid {
    width: calc(100% - 32px);
    max-width: 358px;
    min-height: 92px;
  }

  .home .nv-trust--global .nv-trust__item,
  .home .nv-trust--home .nv-trust__item {
    min-height: 92px;
    padding: 20px 18px;
  }

  .home .nv-trust--global strong,
  .home .nv-trust--home strong {
    max-width: 292px;
    font-size: 16px;
    line-height: 22.4px;
  }

  .home .nv-trust--global p,
  .home .nv-trust--home p {
    display: none;
  }

  .home .nv-best-sellers {
    padding-top: 56px;
    padding-bottom: 64px;
  }

  .home .nv-best-sellers__layout {
    display: block;
  }

  .home .nv-best-sellers__intro {
    margin-bottom: 28px;
  }

  .home .nv-best-sellers__intro .nv-section__heading {
    max-width: 342px;
    font-size: 24px;
    line-height: 31.2px;
  }

  .home .nv-best-sellers__intro p:not(.nv-section__eyebrow) {
    max-width: 332px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 20px;
  }

  .home .nv-best-sellers__intro .nv-text-link {
    margin-top: 16px;
  }

  .home .nv-products--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 12px;
  }

  .home .nv-card--home .nv-card__body {
    padding-top: 9px;
  }

  .home .nv-card--home .nv-card__label {
    font-size: 9px;
    line-height: 12.5px;
  }

  .home .nv-card--home .nv-card__title,
  .home .nv-card--home .nv-card__price {
    font-size: 13px;
    line-height: 18.2px;
  }

  .home .nv-card--home .nv-card__action {
    min-height: 38px;
    margin-top: 8px;
    padding-inline: 8px;
    font-size: 11.5px;
  }
}

/* Phase 3i-19: lower Home section rhythm and mobile containment. */
.home .nv-brand-intro,
.home .nv-story,
.home .nv-solutions-section,
.home .nv-setup,
.home .nv-notes,
.home .nv-materials {
  overflow: hidden;
}

.home .nv-brand-intro {
  min-height: 362px;
}

.home .nv-story {
  padding-top: 96px;
  padding-bottom: 96px;
}

.home .nv-story__inner {
  width: calc(100% - 64px);
  max-width: 1376px;
  min-height: 633px;
  margin-inline: auto;
}

.home .nv-solutions-section {
  min-height: 729px;
  padding-top: 72px;
  padding-bottom: 96px;
}

.home .nv-solutions-section > .nv-container {
  width: calc(100% - 64px);
  max-width: 1376px;
}

.home .nv-solution,
.home .nv-solution img {
  min-height: 450px;
}

.home .nv-setup {
  min-height: 940px;
  display: grid;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 96px;
}

.home .nv-setup__inner {
  width: calc(100% - 64px);
  max-width: 1376px;
  min-height: 748px;
  margin-inline: auto;
}

.home .nv-setup__products,
.home .nv-setup__product {
  min-width: 0;
}

@media (max-width: 900px) {
  .home .nv-brand-intro,
  .home .nv-story,
  .home .nv-solutions-section,
  .home .nv-setup,
  .home .nv-notes,
  .home .nv-materials {
    overflow-x: clip;
  }

  .home .nv-brand-intro .nv-container,
  .home .nv-story__inner,
  .home .nv-solutions-section > .nv-container,
  .home .nv-setup__inner,
  .home .nv-notes .nv-container,
  .home .nv-materials .nv-container {
    width: calc(100% - 32px);
    max-width: 358px;
    margin-inline: auto;
    padding-inline: 0;
    box-sizing: border-box;
  }

  .home .nv-brand-intro {
    min-height: 258px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .home .nv-brand-intro h2 {
    max-width: 358px;
  }

  .home .nv-brand-intro p:last-child {
    max-width: 330px;
  }

  .home .nv-story {
    min-height: 923px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .home .nv-story__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 795px;
  }

  .home .nv-story__inner::before {
    min-height: 520px;
  }

  .home .nv-story img {
    min-height: 520px;
  }

  .home .nv-story__copy {
    grid-column: 1;
    grid-row: 2;
    padding: 32px 20px 36px;
  }

  .home .nv-story h2 {
    max-width: 300px;
  }

  .home .nv-story p {
    max-width: 300px;
  }

  .home .nv-solutions-section {
    min-height: 1247px;
    padding-top: 23px;
    padding-bottom: 40px;
  }

  .home .nv-solutions-section .nv-section__heading {
    text-align: left;
  }

  .home .nv-solutions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }

  .home .nv-solution,
  .home .nv-solution img {
    width: 100%;
    min-height: 274px;
    box-sizing: border-box;
  }

  .home .nv-solution img {
    padding: 18px;
  }

  .home .nv-setup {
    min-height: 1011px;
    display: block;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .home .nv-setup__inner {
    min-height: 851px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px;
    box-sizing: border-box;
  }

  .home .nv-setup__copy,
  .home .nv-setup__products,
  .home .nv-setup__cta {
    min-width: 0;
    max-width: 100%;
  }

  .home .nv-setup__products {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    overflow: hidden;
  }

  .home .nv-setup__product {
    width: 100%;
    max-width: 100%;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
  }

  .home .nv-setup__product img {
    width: 82px;
    height: 82px;
    grid-row: span 2;
  }

  .home .nv-setup__product span,
  .home .nv-setup__product strong {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .home .nv-setup__plus {
    display: none;
  }

  .home .nv-setup__copy .nv-button,
  .home .nv-setup__cta .nv-button {
    width: 100%;
    max-width: 326px;
  }
}

/* Target C product card consolidation: single source of truth. */
.home .nv-products--home {
  min-width: 0;
}

.home .nv-card--home {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--norven-radius-card);
  background: transparent;
  box-shadow: none;
}

.home .nv-card--home .nv-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: var(--norven-radius-image);
  background: transparent;
}

.home .nv-card--home .nv-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border-radius: inherit;
  object-fit: cover;
  background: transparent;
}

.home .nv-card--home .nv-card__body {
  min-width: 0;
  padding: 12px 0 0;
}

.home .nv-card--home .nv-card__label {
  min-height: 0;
  display: block;
  margin: 0 0 6px;
  color: var(--norven-text-muted);
  font-family: var(--norven-font-sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.home .nv-card--home .nv-card__title {
  min-height: 0;
  margin: 0;
  color: var(--norven-text);
  font-family: var(--norven-font-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 21px;
  overflow-wrap: normal;
  word-break: normal;
}

.home .nv-card--home .nv-card__price {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 0;
  color: var(--norven-text);
  font-family: var(--norven-font-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.home .nv-card--home .nv-card__price .amount,
.home .nv-card--home .nv-card__price .woocommerce-Price-amount {
  display: inline;
  white-space: nowrap;
}

.home .nv-card--home .nv-card__summary,
.home .nv-card--home .nv-card__hint {
  display: none;
}

.home .nv-card--home .nv-card__action {
  display: none !important;
}

@media (max-width: 900px) {
  .home .nv-card--home .nv-card__label {
    font-size: 11px;
    line-height: 14.5px;
  }

  .home .nv-card--home .nv-card__title,
  .home .nv-card--home .nv-card__price {
    font-size: 15px;
    line-height: 20px;
  }
}

/* Target C home section layout fix: remove blank space and clipped solution labels. */
.home .nv-solution {
  position: relative;
  min-height: 450px;
  display: block;
  overflow: hidden;
  background: transparent;
}

.home .nv-solution img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  display: block;
  padding: 0;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.home .nv-solution::after {
  inset: auto 0 0;
  height: 112px;
  z-index: 1;
  background: linear-gradient(180deg, rgba(27, 36, 54, 0), rgba(27, 36, 54, .58));
}

.home .nv-solution span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  min-height: 76px;
  display: flex;
  align-items: flex-end;
  padding: 0 20px 18px;
  box-sizing: border-box;
  color: var(--norven-dark-text);
  line-height: 24px;
  text-shadow: 0 1px 10px rgba(27, 36, 54, .2);
}

@media (max-width: 900px) {
  .home .nv-best-sellers {
    min-height: 0;
    padding-bottom: 56px;
  }

  .home .nv-products--home .nv-card:nth-child(n+3) {
    display: block;
  }

  .home .nv-solutions-section {
    min-height: 0;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .home .nv-solutions {
    gap: 16px;
  }

  .home .nv-solution,
  .home .nv-solution img {
    min-height: 358px;
  }
}

/* Target C Home closeout: source-like image-led first viewport using NORVEN assets. */
.home .nv-home-hero {
  width: 100%;
  height: 778px;
  min-height: 778px;
  padding: 0;
  overflow: hidden;
  background: var(--norven-bg);
}

.home .nv-home-hero__track {
  position: relative;
  width: 100%;
  max-width: none;
  height: 778px;
  min-height: 778px;
  display: block;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--norven-surface-muted);
}

.home .nv-home-hero__card,
.home .nv-home-hero__card:not(:first-child) {
  display: none;
}

.home .nv-home-hero__card:first-child {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 778px;
  border: 0;
  background: var(--norven-surface-muted);
}

.home .nv-home-hero__card:first-child::after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  display: block;
  background: linear-gradient(180deg, rgba(18, 22, 26, 0), rgba(18, 22, 26, .18));
  pointer-events: none;
}

.home .nv-home-hero__media,
.home .nv-home-hero__image,
.home .nv-home-hero__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.home .nv-home-hero__image,
.home .nv-home-hero__card img,
.home .nv-home-hero__card--product .nv-home-hero__image,
.home .nv-home-hero__card--product img {
  opacity: 1;
  object-fit: cover;
  object-position: center 54%;
  padding: 0;
  background: transparent;
}

.home .nv-home-hero__content,
.home .nv-home-hero__card--editorial .nv-home-hero__content {
  position: absolute;
  left: 56px;
  right: auto;
  bottom: 48px;
  z-index: 2;
  width: min(404px, calc(100% - 112px));
  max-width: none;
  display: block;
  padding: 36px 32px 32px;
  border-radius: var(--norven-radius-md);
  background: rgba(255, 255, 255, .96);
  color: var(--norven-cta-dark);
  text-align: left;
  text-shadow: none;
  box-shadow: 0 16px 48px rgba(20, 24, 28, .12);
}

.home .nv-home-hero__label {
  margin: 0 0 18px;
  color: var(--norven-text-muted);
  font-size: 10px;
  line-height: 13px;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.home .nv-home-hero h2 {
  max-width: 360px;
  margin: 0;
  color: var(--norven-text);
  font-family: var(--norven-font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 34px;
  letter-spacing: 0;
}

.home .nv-home-hero__content p:not(.nv-home-hero__label) {
  max-width: 320px;
  margin: 14px 0 0;
  color: var(--norven-text-soft);
  font-size: 13px;
  line-height: 20px;
}

.home .nv-home-hero__link,
.home .nv-home-hero__card--editorial .nv-home-hero__link {
  width: fit-content;
  min-height: 48px;
  margin-top: 28px;
  padding: 0 20px;
  border: var(--norven-border-width) solid var(--norven-color-cta);
  border-radius: var(--norven-radius-button);
  background: var(--norven-color-cta);
  color: var(--norven-color-inverse);
  box-shadow: none;
}

.home .nv-home-hero__controls {
  display: none;
}

@media (max-width: 900px) {
  .home .nv-home-hero {
    height: auto;
    min-height: 676px;
    padding: 0;
    overflow: hidden;
    background: #fff;
  }

  .home .nv-home-hero__track {
    height: auto;
    min-height: 0;
    display: block;
    overflow: visible;
    background: #fff;
  }

  .home .nv-home-hero__card:first-child {
    height: auto;
    min-height: 0;
    background: #fff;
  }

  .home .nv-home-hero__card:first-child::after {
    display: none;
  }

  .home .nv-home-hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 360px;
    overflow: hidden;
  }

  .home .nv-home-hero__image,
  .home .nv-home-hero__card img,
  .home .nv-home-hero__card--product .nv-home-hero__image,
  .home .nv-home-hero__card--product img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-position: center;
  }

  .home .nv-home-hero__content,
  .home .nv-home-hero__card--editorial .nv-home-hero__content {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: none;
    min-height: 316px;
    padding: 32px var(--norven-page-padding-mobile) 36px;
    border-radius: 0;
    background: #fff;
    color: var(--norven-cta-dark);
    text-align: center;
    box-shadow: none;
  }

  .home .nv-home-hero__label {
    margin: 0 auto 12px;
    font-size: 9.5px;
    line-height: 13px;
  }

  .home .nv-home-hero h2,
  .home .nv-home-hero__card:not(:first-child) h2 {
    max-width: 330px;
    margin-inline: auto;
    font-size: 22px;
    line-height: 29px;
  }

  .home .nv-home-hero__content p:not(.nv-home-hero__label) {
    max-width: 322px;
    margin: 12px auto 0;
    font-size: 13px;
    line-height: 20px;
  }

  .home .nv-home-hero__link,
  .home .nv-home-hero__card--editorial .nv-home-hero__link {
    width: min(100%, 316px);
    min-height: 48px;
    margin: 24px auto 0;
  }
}

/* Target C product card consolidation guard.
   Staging may enqueue target-c-closeout.css after style.css, so this preserves the Home card contract last. */
.home .nv-card--home {
  min-width: 0;
  overflow: visible;
  border: 0;
  border-radius: var(--norven-radius-card);
  background: transparent;
  box-shadow: none;
}

.home .nv-card--home .nv-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: var(--norven-radius-image);
  background: transparent;
}

.home .nv-card--home .nv-card__image img {
  width: 100%;
  height: 100%;
  display: block;
  padding: 0;
  border-radius: inherit;
  object-fit: cover;
  background: transparent;
}

.home .nv-card--home .nv-card__body {
  min-width: 0;
  padding: 12px 0 0;
}

.home .nv-card--home .nv-card__label {
  min-height: 0;
  display: block;
  margin: 0 0 6px;
  color: var(--norven-text-muted);
  font-family: var(--norven-font-sans);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 15px;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.home .nv-card--home .nv-card__title {
  min-height: 0;
  margin: 0;
  color: var(--norven-text);
  font-family: var(--norven-font-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 21px;
  overflow-wrap: normal;
  word-break: normal;
}

.home .nv-card--home .nv-card__price {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0 0;
  color: var(--norven-text);
  font-family: var(--norven-font-sans);
  font-size: 15.5px;
  font-weight: 400;
  line-height: 21px;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}

.home .nv-card--home .nv-card__price .amount,
.home .nv-card--home .nv-card__price .woocommerce-Price-amount {
  display: inline;
  white-space: nowrap;
}

.home .nv-card--home .nv-card__summary,
.home .nv-card--home .nv-card__hint {
  display: none;
}

.home .nv-card--home .nv-card__action {
  display: none !important;
}

@media (max-width: 900px) {
  .home .nv-card--home .nv-card__label {
    font-size: 11px;
    line-height: 14.5px;
  }

  .home .nv-card--home .nv-card__title,
  .home .nv-card--home .nv-card__price {
    font-size: 15px;
    line-height: 20px;
  }
}
