/*
 * Balance of Nature — home.css
 * Home page sections only. Owned by theme-home.
 */

/* --------------------------------------------------------------------------
 * Shared section primitives
 * ------------------------------------------------------------------------ */

.home-section {
  position: relative;
  background: var(--white);
  color: rgba(18, 18, 18, 0.9);
}

.home-section .h-display {
  color: rgb(18, 18, 18);
}

.home-section--success,
.home-section--light,
.home-section--variety {
  color: rgba(46, 42, 57, 0.9);
}

.home-section--success .h-display,
.home-section--light .h-display,
.home-section--variety .h-display {
  color: rgb(46, 42, 57);
}

.home-section__inner {
  padding-top: 36px;
  padding-bottom: 36px;
}

.home-section--flush-bottom .home-section__inner {
  padding-bottom: 0;
}

.home-section--light {
  background: var(--green-light);
}

.home-section--dark {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.9);
}

.home-section--dark .h-display {
  color: rgb(255, 255, 255);
}

.custom-columns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 40px;
  margin: 0 0 0 -20px;
}

.cc {
  width: 100%;
  padding: 0 20px;
}

.cc--half {
  width: 50%;
}

.cc--third {
  width: 33.3333%;
}

.cc--quarter {
  width: 25%;
}

.cc-block {
  margin: 0 0 20px;
}

.cc-block:last-child {
  margin-bottom: 0;
}

.cc-block--flush {
  margin-bottom: 0;
}

.rte > :last-child {
  margin-bottom: 0;
}

.eyebrow {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.96px;
}

.h-display {
  margin: 0;
  font-size: 39px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.78px;
}

.h-display--center {
  text-align: center;
}

.h-display--left {
  text-align: left;
}

.body-copy {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.text-center {
  text-align: center;
}

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

.hero {
  position: relative;
  height: 560px;
  overflow: hidden;
  background: var(--green-light);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero__image--mobile {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
}

.hero__box {
  width: 545px;
  max-width: 100%;
  padding: 40px 35px;
  color: var(--text-body);
}

.hero__title {
  margin: 0;
  max-width: 475px;
  color: var(--text-body);
  font-size: 39px;
  font-weight: 700;
  line-height: 48px;
  letter-spacing: 0.78px;
}

.hero__text {
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
  color: rgba(45, 45, 45, 0.9);
}

.hero__buttons {
  margin-top: 20px;
}

/* --------------------------------------------------------------------------
 * Stats strip (reference renders the four stats as one image)
 * ------------------------------------------------------------------------ */

.stats {
  background: var(--white);
}

.stats__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8671 / 755;
  object-fit: cover;
}

/* --------------------------------------------------------------------------
 * Success stories
 * ------------------------------------------------------------------------ */

.success__intro {
  text-align: center;
}

.success__intro .eyebrow {
  color: inherit;
}

.success__card {
  text-align: left;
}

.video-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #ededed;
  overflow: hidden;
}

.video-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__toggle {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease;
}

.video-card__play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  transition: opacity 0.3s ease;
}

.video-card__play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
}

.video-card.is-playing .video-card__play {
  opacity: 0;
}

.video-card.is-playing .video-card__toggle {
  background: transparent;
}

.video-card.is-playing:hover .video-card__play {
  opacity: 1;
}

.video-card.is-loading {
  background: #e5e5e5;
}

.success__name {
  margin-top: 25px;
}

.success__name h4 {
  margin: 6px 0 25px;
  color: rgb(46, 42, 57);
  font-size: 18.85px;
  font-weight: 700;
  line-height: 23.2px;
  letter-spacing: 0.78px;
}

.success__name strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
 * Standard
 * ------------------------------------------------------------------------ */

.standard__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.standard__image {
  aspect-ratio: 620 / 386.5;
  overflow: hidden;
  border-radius: 16px;
}

.standard__intro {
  text-align: center;
}

/* --------------------------------------------------------------------------
 * Routines
 * ------------------------------------------------------------------------ */

.routines-head .home-section__inner {
  padding-bottom: 0;
}

.routines-head__inner {
  padding-bottom: 0;
}

.routines-stats .home-section__inner {
  padding-bottom: 44px;
}

.routines__item {
  text-align: center;
}

.routines__value {
  margin: 0;
  color: var(--green);
  font-size: 55.25px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: 0.02em;
}

.routines__label {
  margin: 0;
  color: inherit;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.routines__footnote {
  text-align: center;
  color: inherit;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
 * Spectrum
 * ------------------------------------------------------------------------ */

.spectrum__intro {
  text-align: left;
}

.spectrum__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spectrum__image {
  aspect-ratio: 620 / 303;
  overflow: hidden;
  border-radius: 0;
}

/* --------------------------------------------------------------------------
 * Made for real people
 * ------------------------------------------------------------------------ */

.people-head .home-section__inner {
  padding-bottom: 24px;
}

.people__row {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.home-section--people-cards .people-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: var(--gray-card);
  border-radius: 20px;
  overflow: hidden;
}

.home-section--people-cards .people-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.home-section--people-cards .people-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-section--people-cards .people-card__body {
  padding: 24px;
}

.home-section--people-cards .people-card__title {
  margin: 0;
  color: #222126;
  font-size: 24px;
  font-weight: 700;
  line-height: 33.2308px;
  letter-spacing: 0.78px;
}

.home-section--people-cards .people-card__text {
  margin: 10px 0 0;
  color: rgba(46, 42, 57, 0.9);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
 * Consistency
 * ------------------------------------------------------------------------ */

.consistency {
  text-align: center;
}

.consistency__leaf {
  display: block;
  width: 128px;
  height: 203px;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.consistency .eyebrow {
  margin-top: 20px;
}

.consistency .h-display {
  margin-top: 20px;
}

.consistency__body {
  margin: 20px auto 0;
}

/* --------------------------------------------------------------------------
 * Variety / Get started
 * ------------------------------------------------------------------------ */

.variety__intro {
  text-align: left;
}

.variety__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.variety__image {
  aspect-ratio: 620 / 413;
  overflow: hidden;
  border-radius: 12px;
}

.get-started__inner {
  text-align: center;
}

/* --------------------------------------------------------------------------
 * Product cards (Real fruits / Real veggies)
 * ------------------------------------------------------------------------ */

.product-cards {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.home-section--products .product-card {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  background: var(--gray-card);
  border-radius: 20px;
  overflow: hidden;
}

.home-section--products .product-card__image {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
}

.home-section--products .product-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-section--products .product-card__body {
  padding: 24px;
}

.home-section--products .product-card__title {
  margin: 0;
  color: #222126;
  font-size: 24px;
  font-weight: 700;
  line-height: 33.2308px;
  letter-spacing: 0.78px;
}

.home-section--products .product-card__sub {
  margin: 10px 0 0;
  color: rgba(81, 114, 37, 0.9);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

.home-section--products .home-section__inner {
  padding-bottom: 49px;
}

/* --------------------------------------------------------------------------
 * Card slider controls (mobile only)
 * ------------------------------------------------------------------------ */

.card-slider {
  position: relative;
}

.card-slider__track {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

.card-slider__nav {
  display: none;
}

.card-slider__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #222126;
}

.card-slider__arrow svg {
  width: 18px;
  height: 18px;
}

.card-slider__arrow--prev svg {
  transform: rotate(180deg);
}

.card-slider__dots {
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  background: #c9c9c9;
}

.card-slider__dot.is-active {
  background: #222126;
}

/* --------------------------------------------------------------------------
 * FAQ
 * ------------------------------------------------------------------------ */

.faq .home-section__inner {
  padding-top: 36px;
  padding-bottom: 36px;
}

.faq__wrapper {
  max-width: 734px;
  margin: 0 auto;
  padding: 0 20px;
}

.faq__heading {
  margin: 0 0 30px;
  color: var(--text);
  font-size: 55.25px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: 0.78px;
  text-align: center;
}

.faq__item {
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.faq__item:first-child {
  border-top: 1px solid rgba(18, 18, 18, 0.08);
}

.faq__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12.5px 0;
  cursor: pointer;
  list-style: none;
}

.faq__summary::-webkit-details-marker {
  display: none;
}

.faq__question {
  margin: 0;
  padding-left: 10px;
  color: var(--text);
  font-size: 18.2px;
  font-weight: 700;
  line-height: 22.4px;
  letter-spacing: 0.78px;
}

.faq__icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  color: var(--text);
}

.faq__details {
  display: block;
}

.faq__icon--plus {
  transition: transform 0.2s ease-in-out;
}

.faq__details[open] .faq__icon--plus {
  transform: rotate(135deg);
}

.faq__content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  transition: grid-template-rows 0.2s ease-in-out;
}

.faq__details[open] + .faq__content-wrapper {
  grid-template-rows: 1fr;
}

.faq__answer {
  min-height: 0;
  padding: 0 6px;
  opacity: 0;
  transition: padding-bottom 0.2s ease, opacity 0.2s ease;
}

.faq__details[open] + .faq__content-wrapper .faq__answer {
  padding-bottom: 15px;
  opacity: 1;
}

.faq__answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
 * Home responsive (390)
 * ------------------------------------------------------------------------ */

@media screen and (max-width: 749px) {
  .home-section__inner {
    padding-top: 27px;
    padding-bottom: 27px;
  }

  .custom-columns {
    row-gap: 30px;
    margin: 0 0 0 -10px;
  }

  .cc {
    padding: 0 10px;
  }

  .cc--half,
  .cc--quarter {
    width: 100%;
  }

  .eyebrow {
    font-size: 15px;
    line-height: 1.8;
  }

  .h-display {
    font-size: 29.25px;
    line-height: 36px;
    letter-spacing: 0.78px;
  }

  .body-copy {
    font-size: 15px;
    line-height: 1.8;
  }

  /* Hero */
  .hero {
    height: auto;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    aspect-ratio: 390 / 340;
  }

  .hero__image--desktop {
    display: none;
  }

  .hero__image--mobile {
    display: block;
  }

  .hero__content {
    display: block;
    height: auto;
    padding-left: 0;
    padding-right: 0;
  }

  .hero__box {
    width: 100%;
    padding: 40px 35px;
    background: var(--green-light);
  }

  .hero__title {
    max-width: none;
    font-size: 29.25px;
    line-height: 36px;
  }

  .hero__text {
    font-size: 15px;
    line-height: 1.8;
  }

  /* Success */
  .success__intro {
    text-align: left;
  }

  .success__card {
    text-align: center;
  }

  .success__card .video-card {
    margin: 0 auto;
  }

  .success__name h4 {
    margin: 20px 0 25.4px;
  }

  /* Standard */
  .standard__intro {
    text-align: left;
  }

  /* Routines */
  .routines-head .home-section__inner,
  .routines-head__inner {
    padding-bottom: 0;
  }

  .routines-stats .home-section__inner {
    padding-bottom: 33px;
  }

  .routines__item {
    text-align: left;
  }

  .routines__value {
    font-size: 42.25px;
    line-height: 52px;
  }

  .routines__label {
    font-size: 15px;
  }

  .routines__footnote {
    text-align: left;
    font-size: 15px;
  }

  /* Spectrum */
  .spectrum__intro {
    text-align: left;
  }

  /* People */
  .people-head .home-section__inner {
    padding-bottom: 18px;
  }

  .get-started__inner {
    text-align: left;
  }

  .consistency {
    text-align: left;
  }

  .consistency .leaf-wrap {
    text-align: left;
  }

  .consistency__leaf {
    width: 35px;
    height: 55px;
    margin: 0;
  }

  .consistency .eyebrow {
    margin-top: 20px;
  }

  .consistency .h-display {
    margin-top: 20px;
  }

  .consistency__body {
    margin-top: 20px;
  }

  /* Card sliders */
  .card-slider__track {
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
  }

  .card-slider__track::-webkit-scrollbar {
    display: none;
  }

  .card-slider__track > * {
    flex: 0 0 100%;
    scroll-snap-align: center;
  }

  .home-section--people-cards .card-slider__track > .people-card,
  .home-section--products .card-slider__track > .product-card {
    flex: 0 0 100%;
  }

  .card-slider__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    height: 30px;
    margin-top: 6px;
  }

  .home-section--products .home-section__inner {
    padding-bottom: 27px;
  }

  .home-section--people-cards .people-card__title,
  .home-section--products .product-card__title {
    font-size: 22px;
    line-height: 30.4615px;
  }

  .home-section--people-cards .people-card__body,
  .home-section--products .product-card__body {
    padding: 24px;
  }

  .home-section--people-cards .people-card__text,
  .home-section--products .product-card__sub {
    font-size: 15px;
  }

  .product-cards {
    gap: 20px;
  }

  /* FAQ */
  .faq .home-section__inner {
    padding-top: 27px;
    padding-bottom: 26px;
  }

  .faq__wrapper {
    max-width: none;
    margin: 0 10px;
    padding: 0 10px;
  }

  .faq__heading {
    margin-bottom: 21px;
    font-size: 42.25px;
    line-height: 52px;
  }

  .faq__summary {
    padding-left: 10px;
  }

  .faq__question {
    padding-left: 0;
    max-width: calc(100% - 60px);
  }

  .faq__answer {
    padding-left: 6px;
  }

  .faq__answer p {
    font-size: 15px;
  }
}
