/**
 * YHN Homepage Phase 1B
 * Scoped homepage refinements for structure, readability and mobile UX.
 */

.home #main {
  background: #fffdfd;
}

/* Stronger brand contrast for small header text (WCAG AA). */
.home .header-top,
.home #wide-nav {
  background-color: #d91478 !important;
}

.home .header-top a,
.home .header-top .nav > li > a,
.home .header-top .nav > li > span,
.home #wide-nav .nav > li > a {
  color: #fff !important;
}

/* Hero: preserve the source artwork ratio, remove visual distortion and make
   the whole banner the real CTA. */
.home .yhn-home-hero {
  padding-top: 44% !important;
  background: #3e3029;
  overflow: hidden;
}

.home .yhn-home-hero .bg {
  background-position: center center !important;
  background-size: cover !important;
}

.home .yhn-home-hero .banner-link {
  z-index: 5;
}

.home .yhn-home-hero:focus-within {
  outline: 3px solid #fe259a;
  outline-offset: -3px;
}

/* Trust strip */
.home .section.yhn-home-trust {
  position: relative;
  z-index: 8;
  margin-top: -28px !important;
  padding: 0 18px !important;
}

.home .yhn-home-trust > .section-content > .row {
  max-width: 1120px !important;
  padding: 12px 8px;
  background: #fff;
  border: 1px solid #f1e5eb;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(55, 35, 45, .11);
}

.home .yhn-home-trust .col-inner {
  height: 100%;
}

.home .yhn-home-trust .icon-box {
  height: 100%;
  padding: 8px 12px;
}

.home .yhn-home-trust .icon-box-text,
.home .yhn-home-trust .ux-text {
  color: #433a40 !important;
}

.home .yhn-home-trust .ux-text p,
.home .yhn-home-trust .ux-text span {
  line-height: 1.55;
}

.home .yhn-home-trust a {
  color: #bf176f;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

/* Homepage introduction and the single semantic H1. */
.home .section.yhn-home-intro {
  padding: 58px 18px 30px !important;
}

.home .yhn-home-intro .row {
  max-width: 940px !important;
}

.home .yhn-home-intro-copy {
  margin: 0 auto;
}

.home .yhn-home-title {
  margin: 0 0 14px;
  color: #2d272b;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.18;
  text-transform: none;
}

.home .yhn-home-intro-copy p {
  max-width: 820px;
  margin: 0 auto;
  color: #665b62;
  font-size: 16px;
  line-height: 1.75;
}

/* Product sections */
.home .section.yhn-home-product-section {
  padding: 34px 18px 18px !important;
  border-top: 1px solid #f4e9ef;
}

.home .section.yhn-home-product-section.is-soft {
  background: #fff8fb;
}

.home .yhn-home-product-section > .section-content > .row,
.home .yhn-home-editorial > .section-content > .row,
.home .yhn-home-brands > .section-content > .row {
  max-width: 1180px !important;
}

.home .yhn-home-product-section .section-title-container {
  margin-bottom: 20px !important;
}

.home .yhn-home-product-section .section-title-main {
  color: #2d272b !important;
  font-size: 21px !important;
  letter-spacing: .015em !important;
}

.home .yhn-home-product-section .section-title-link {
  min-height: 40px;
  padding: 10px 14px !important;
  color: #a31361 !important;
  border: 1px solid #f0c9dc;
  border-radius: 999px;
  background: #fff;
}

.home .yhn-home-product-section .section-title-link:hover,
.home .yhn-home-product-section .section-title-link:focus-visible {
  color: #fff !important;
  border-color: #d91c7f;
  background: #d91c7f;
}

.home .yhn-home-product-section .products {
  margin-right: -9px !important;
  margin-left: -9px !important;
}

.home .yhn-home-product-section .product-small.col {
  padding-right: 9px !important;
  padding-left: 9px !important;
  margin-bottom: 18px !important;
}

.home .yhn-home-product-section .product-small .box {
  border-radius: 16px !important;
  box-shadow: 0 5px 16px rgba(49, 30, 40, .045) !important;
}

.home .yhn-home-product-section .product-small .box:hover {
  box-shadow: 0 13px 28px rgba(49, 30, 40, .1) !important;
}

.home .yhn-home-product-section .product-small .price,
.home .yhn-home-product-section .woocommerce-Price-amount.amount {
  color: #c9176b !important;
}

.home .yhn-home-product-section .onsale,
.home .yhn-home-product-section .badge-circle .badge-inner {
  background: #d91478 !important;
}

/* Editorial and brand blocks */
.home .section.yhn-home-editorial {
  padding: 38px 18px !important;
  border-top: 1px solid #f4e9ef;
  background: #fff;
}

.home .yhn-home-editorial .post-item .box {
  height: 100%;
}

.home .section.yhn-home-brands {
  padding: 28px 18px 38px !important;
  border-top: 1px solid #f4e9ef;
  background: #fff8fb;
}

.home .yhn-home-brands .slider-wrapper {
  padding: 12px 0;
}

.home .yhn-home-brands .ux-logo .ux-logo-link {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background: #fff;
  border: 1px solid #f1e7ec;
  border-radius: 14px;
}

@media (max-width: 849px) {
  .home .yhn-home-hero {
    padding-top: 47.9167% !important;
  }

  .home .yhn-home-hero .bg {
    background-size: contain !important;
    background-repeat: no-repeat !important;
  }

  .home .section.yhn-home-trust {
    margin-top: -12px !important;
    padding: 0 12px !important;
  }

  .home .yhn-home-trust > .section-content > .row {
    padding: 5px 10px;
    border-radius: 15px;
  }

  .home .yhn-home-trust .col {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .home .yhn-home-trust .icon-box {
    display: flex;
    align-items: center;
    padding: 9px 4px;
    border-bottom: 1px solid #f5e9ef;
  }

  .home .yhn-home-trust .col:last-child .icon-box {
    border-bottom: 0;
  }

  .home .yhn-home-trust .icon-box-img {
    width: 36px !important;
    min-width: 36px;
    margin-right: 9px !important;
  }

  .home .yhn-home-trust .icon-box-text,
  .home .yhn-home-trust .ux-text {
    text-align: left !important;
  }

  .home .section.yhn-home-intro {
    padding: 36px 16px 22px !important;
  }

  .home .yhn-home-title {
    margin-bottom: 11px;
    font-size: clamp(24px, 7vw, 31px);
    line-height: 1.24;
  }

  .home .yhn-home-intro-copy p {
    font-size: 14.5px;
    line-height: 1.65;
  }

  .home .section.yhn-home-product-section {
    padding: 26px 10px 12px !important;
  }

  .home .yhn-home-product-section .section-title-main {
    font-size: 17px !important;
  }

  .home .yhn-home-product-section .section-title-link {
    min-height: 34px;
    padding: 7px 10px !important;
    font-size: 11px !important;
  }

  .home .yhn-home-product-section .products {
    margin-right: -5px !important;
    margin-left: -5px !important;
  }

  .home .yhn-home-product-section .product-small.col {
    flex-basis: 50% !important;
    max-width: 50% !important;
    padding-right: 5px !important;
    padding-left: 5px !important;
    margin-bottom: 10px !important;
  }

  .home .yhn-home-product-section .product-small .box {
    border-radius: 13px !important;
  }

  .home .section.yhn-home-editorial,
  .home .section.yhn-home-brands {
    padding-right: 12px !important;
    padding-left: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home .yhn-home-hero .bg,
  .home .yhn-home-product-section .box,
  .home .yhn-home-product-section .box-image img {
    transition: none !important;
  }

  .home .yhn-home-hero:hover .bg,
  .home .yhn-home-product-section .box:hover,
  .home .yhn-home-product-section .box:hover .box-image img {
    transform: none !important;
  }
}
