/* ==========================================================================
   Sense Wellness: homepage sections, top to bottom
   ========================================================================== */

/* ---------- Hero video */

.home-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f1eb;
}

.home-hero video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

@media (max-width: 749px) {
  .home-hero {
    aspect-ratio: 4 / 5;
    border-radius: 12px;
  }

  .home-hero video {
    object-position: center top;
    transform: scale(1.28);
    transform-origin: center top;
  }
}

/* ---------- Product tiles and intro */

.home-products-section {
  padding: 28px 0 44px;
}

.home-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 20px 70px;
  overflow-x: hidden;
}

.product-tile {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  background: #eceae4;
}

.product-tile__link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #eceae4;
}

.product-tile__img {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 90%;
  height: 90%;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

/* "Buy Now" pill: hidden until the tile is hovered or focused. */
.product-tile__cta {
  position: absolute;
  inset: auto 14px 16px 14px;
  z-index: 30;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f1f1f;
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.34s ease, transform 0.34s ease, background-color 0.24s ease, color 0.24s ease;
}

.product-tile:hover .product-tile__cta,
.product-tile__link:hover .product-tile__cta,
.product-tile__link:focus-within .product-tile__cta {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.product-tile__cta:hover,
.product-tile__cta:active,
.product-tile__link:active .product-tile__cta {
  background: #6e6b64;
  color: #fff;
  border-color: #6e6b64;
}

.home-intro {
  grid-column: 1 / -1;
  width: 100%;
  margin: 80px auto 92px;
  padding: 0 6vw;
  text-align: center;
}

.home-intro__inner {
  max-width: 1360px;
  margin: 0 auto;
}

/* The headline uses the body font (Assistant), as on the live site. */
.home-intro__headline {
  display: block;
  max-width: 1280px;
  margin: 0 auto 34px;
  font-family: var(--font-body);
  font-size: clamp(64px, 6.8vw, 112px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.055em;
  color: #3f3f3f;
}

.home-intro__copy {
  max-width: 1240px;
  margin: 0 auto;
  font-size: clamp(24px, 1.85vw, 32px);
  font-weight: 400;
  line-height: 1.78;
  letter-spacing: 0.005em;
  color: #555;
}

@media (max-width: 989px) {
  .home-products {
    grid-template-columns: 1fr;
    padding: 0 12px 56px;
  }

  .product-tile__img {
    width: 85%;
    height: 85%;
  }

  .product-tile__cta {
    inset: auto 10px 10px 10px;
    height: 46px;
    font-size: 16px;
  }

  .home-intro {
    margin: 58px auto 62px;
    padding: 0 22px;
  }

  .home-intro__headline {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(42px, 12vw, 68px);
    line-height: 0.95;
  }

  .home-intro__copy {
    max-width: 740px;
    font-size: 19px;
    line-height: 1.72;
  }
}

/* ---------- "Questions, answered" FAQ */

.home-faq {
  padding: 72px 20px;
  background: #f7f7f8;
}

.home-faq__wrap {
  max-width: 980px;
  margin: 0 auto;
}

.home-faq__eyebrow {
  margin: 0 0 18px;
  text-align: center;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #7b746f;
}

.home-faq__heading {
  margin: 0 0 46px;
  text-align: center;
  font-family: var(--font-body);
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: #3b3b40;
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
  margin: 0 auto;
}

.home-faq__item {
  overflow: hidden;
  border: 1px solid rgba(59, 59, 64, 0.12);
  border-radius: 14px;
  background: #fff;
}

.home-faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(16px, 1.35vw, 21px);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #3b3b40;
}

.home-faq__item summary::-webkit-details-marker {
  display: none;
}

.home-faq__icon {
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 300;
  line-height: 1;
  color: #3b3b40;
  transition: transform 0.2s ease;
}

.home-faq__item[open] .home-faq__icon {
  transform: rotate(45deg);
}

.home-faq__answer {
  padding: 0 24px 24px;
  font-size: clamp(15px, 1.15vw, 18px);
  font-weight: 400;
  line-height: 1.7;
  color: #5e5e63;
}

@media (max-width: 749px) {
  .home-faq {
    padding: 54px 18px;
  }

  .home-faq__heading {
    margin-bottom: 34px;
    font-size: 38px;
    letter-spacing: -0.03em;
  }

  .home-faq__item summary {
    padding: 18px;
    font-size: 16px;
  }

  .home-faq__answer {
    padding: 0 18px 18px;
    font-size: 15px;
  }
}

/* ---------- "Natural Beef Tallow Balm for Face & Body" */

.home-about {
  padding-bottom: 39px;
}

.home-about__wrapper {
  display: flex;
  justify-content: center;
  width: calc(100% - 40px);
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

.home-about__blocks {
  width: 100%;
  text-align: center;
}

.home-about__blocks h2 {
  margin: 0;
}

.home-about__text {
  margin-top: 24px;
}

.home-about__text p {
  margin: 0;
}

@media (min-width: 750px) {
  .home-about {
    padding-bottom: 52px;
  }

  .home-about__wrapper {
    width: 100%;
  }

  .home-about__blocks {
    max-width: 600px;
  }
}

@media (min-width: 990px) {
  .home-about__wrapper {
    padding: 0 80px;
  }

  .home-about__blocks {
    max-width: 936px;
  }
}

/* ---------- "Why Trust Us" */

.home-trust__inner {
  position: relative;
  z-index: 0;
  max-width: 1440px;
  margin: 0 auto;
  padding: 27px 20px;
}

.home-trust__title {
  display: flex;
  justify-content: center;
  margin: 0 0 36px;
  padding: 0 18px;
  text-align: center;
}

.home-trust__title h2 {
  width: 100%;
  margin: 0;
  text-align: center;
}

.home-trust__list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0 18px;
  list-style: none;
}

.home-trust__item {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
}

.home-trust__info {
  padding: 0 30px 30px;
}

.home-trust__item h3 {
  margin: 0;
  line-height: 1.4444;
}

.home-trust__text {
  margin-top: 12px;
}

.home-trust__text p {
  margin: 0;
}

@media (min-width: 750px) {
  .home-trust__inner {
    padding: 36px 20px;
  }

  .home-trust__list {
    gap: 8px;
  }

  .home-trust__info {
    padding: 0 18px 30px;
  }
}

@media (min-width: 750px) and (max-width: 989px) {
  .home-trust__title,
  .home-trust__list {
    padding: 0 60px;
  }
}

@media (min-width: 990px) {
  .home-trust__inner {
    padding: 36px 80px;
  }

  .home-trust__title,
  .home-trust__list {
    padding: 0;
  }

  .home-trust__item {
    width: calc(33.33% - 5.333px);
    max-width: calc(33.33% - 5.333px);
  }
}
