/* ==========================================================================
   Home page
   ========================================================================== */

/* Text-editor blocks keep the 14.4px paragraph margin after the last <p> (as on the live site) */
.page-home .prose > p:last-child { margin-bottom: 14.4px; }
.page-home .h-section a,
.page-home .h-section a:hover { color: inherit; text-decoration: underline; }

/* ---------- Hero ---------- */
.page-home .hero__inner { border-top: 1px solid var(--line); padding: 30px 0; }
.page-home .hero__grid { align-items: stretch; }
.page-home .hero__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.page-home .hero__title { max-width: 550px; font-size: 60px; line-height: 70px; font-weight: 500; color: var(--black); }
.page-home .hero__title span { color: var(--navy); font-weight: 700; }
.page-home .hero__lead { max-width: 629px; }
.page-home .hero__media { text-align: right; }
.page-home .hero__media img { width: 90%; }

/* ---------- About ---------- */
.page-home .about { padding-top: 80px; padding-bottom: 80px; }
.page-home .about__media img { width: 100%; display: block; }
.page-home .about__text { padding-left: 50px; }
.page-home .about__title { max-width: 320px; }
.page-home .about__body { max-width: 674px; }

/* ---------- Benefits ---------- */
.page-home .benefits { padding-top: 80px; padding-bottom: 80px; }
.page-home .benefits__intro { padding: 0 300px; margin-top: 10px; }
.page-home .benefit { display: flex; }
.page-home .benefit__media { width: 20%; flex-shrink: 0; text-align: center; }
.page-home .benefit__media img { display: block; width: 274px; margin: 0 auto; }
.page-home .benefit:not(.benefit--rev) .benefit__media img { width: 226px; margin: 0; }
.page-home .benefit__body { width: 80%; display: flex; flex-direction: column; justify-content: center; }
.page-home .benefit--rev .benefit__body { padding-left: 35px; }
.page-home .benefit__title { margin-top: 20px; font-size: 24px; line-height: 34px; font-weight: 600; color: var(--black); }

/* ---------- Diet and Intake ---------- */
.page-home .diet { padding-top: 60px; padding-bottom: 80px; }
.page-home .diet__inner { padding: 10px; }
.page-home .diet__head { max-width: var(--boxed); margin: 0 auto; }
.page-home .diet__row { align-items: stretch; }
.page-home .diet__row--1 { margin-top: 30px; }
.page-home .diet__row--2 { margin-top: 50px; }
.page-home .diet__text { display: flex; flex-direction: column; justify-content: center; }
.page-home .diet__row--1 .diet__text { padding-right: 30px; }
.page-home .diet__row--2 .diet__text { padding: 0 5px 0 50px; }
.page-home .diet__row--1 .diet__media { padding-left: 20px; }
.page-home .diet__media img { display: block; width: 100%; }
.page-home .diet .h-sub { max-width: 746px; }
.page-home .dot-list { margin-top: 10px; max-width: 742px; }
.page-home .dot-list li { padding-bottom: 0; }
.page-home .dot-list .icon-list__icon { width: 7.5px; padding-right: 0; top: 11px; color: var(--text); }
.page-home .dot-list .icon-list__icon svg { width: 6px; height: 6px; }
.page-home .diet .prose { max-width: 742px; }

/* ---------- Why buy ---------- */
.page-home .why { padding: 80px 100px; }
.page-home .why__card { background-color: var(--bg-grey); border-radius: 15px; padding: 30px 0; }
.page-home .why__grid { align-items: stretch; }
.page-home .why__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 30px; }
.page-home .why__text .prose { max-width: 742px; }
.page-home .why__media { display: flex; align-items: center; justify-content: center; padding-right: 30px; }
.page-home .why__media img { display: block; width: 100%; }

/* ---------- Testimonials ---------- */
.page-home .reviews { padding: 80px 100px; }
.page-home .reviews__sub { margin-bottom: 20px; }
.page-home .reviews__grid { display: flex; max-width: var(--boxed); margin: 0 auto; }
.page-home .tcard { display: flex; flex-direction: column; width: 33.333%; padding: 10px; }
.page-home .tcard__text { flex: 1 1 auto; }
.page-home .tcard__text { margin-top: 50px; padding: 20px 10px 20px 20px; background-color: var(--white); }
.page-home .tcard--short .tcard__text { padding-bottom: 77px; }
.page-home .tcard__bar { display: flex; align-items: center; padding: 10px; min-height: 90px; background-color: var(--navy); }
.page-home .tcard__photo { width: 70px; height: 70px; flex-shrink: 0; }
.page-home .tcard__meta { flex: 1 1 auto; margin-left: 12px; color: var(--white); }
.page-home .rating { display: flex; align-items: center; gap: 1.5px; height: 11px; color: var(--white); }
.page-home .rating svg { width: 8.5px; height: 8px; }
.page-home .rating__half { display: inline-flex; }
.page-home .rating__half svg { clip-path: inset(0 50% 0 0); }
.page-home .tcard__name { font-size: 14px; line-height: 16px; font-weight: 600; color: var(--white); }
.page-home .tcard__place { margin: 0; font-size: 12px; line-height: 16px; color: var(--white); }
.page-home .tcard__quote {
  flex-shrink: 0; width: 38px; height: 30px; margin-right: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 71 56'%3E%3Cpath fill='%23fff' d='M70.0121 28L42.3757 55.6364V0.363647H70.0121V28ZM27.6364 28L0 55.6364V0.363647H27.6364V28Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Where to buy ---------- */
.page-home .buy { padding-top: 80px; padding-bottom: 80px; }
.page-home .buy__media { padding: 10px; text-align: center; }
.page-home .buy__media img { width: 542px; }
.page-home .buy__text { padding-left: 30px; }
.page-home .buy__text .prose { max-width: 698px; }
.page-home .prices { display: flex; margin-top: 10px; }
.page-home .price { display: flex; align-items: flex-start; width: 50%; margin-right: 10px; padding: 15px; background-color: var(--navy); color: var(--white); }
.page-home .price__icon { display: flex; width: 58px; height: 32px; margin-top: 5px; flex-shrink: 0; font-size: 25px; line-height: 25px; }
.page-home .price__icon svg { width: 25px; height: 25px; }
.page-home .price__title { margin-top: 3px; font-size: 18px; line-height: 27px; font-weight: 400; color: var(--white); }
.page-home .buy__action { margin-top: 30px; }

/* ---------- Shipping ---------- */
.page-home .shipping { padding-top: 80px; padding-bottom: 80px; }
.page-home .shipping__text { width: 70%; }
.page-home .shipping__media { width: 30%; text-align: center; }
.page-home .shipping__media img { width: 76%; }
.page-home .shipping__title { max-width: 688px; color: var(--white); }
.page-home .ship-list { margin-top: 10px; }
.page-home .ship-list li { padding-bottom: 0; }
.page-home .ship-list .icon-list__icon { width: 16.75px; padding-right: 3px; top: 10px; color: var(--white); }
.page-home .ship-list .icon-list__icon svg { width: 11px; height: 11px; }
.page-home .ship-list .icon-list__text { color: var(--white); }

/* ---------- Order form ---------- */
.page-home .order { padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 0; }
.page-home .order-form { margin-top: 20px; }
.page-home .order-form__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 80px; margin-right: 20px; }
.page-home .order-form .field { display: flow-root; margin-bottom: 14.4px; }
.page-home .order-form input,
.page-home .order-form select,
.page-home .order-form textarea {
  display: block; width: 100%; margin: 0 0 30px; padding: 8px 16px;
  border: 0; border-bottom: 1px solid #A5A5A5; border-radius: 0;
  background-color: transparent; color: var(--black);
  font-family: var(--font); font-size: 18px; font-weight: 400; line-height: 27px;
  transition: border-color .3s;
}
.page-home .order-form select { height: 39px; padding-top: 0; padding-bottom: 0; line-height: normal; cursor: pointer; }
.page-home .order-form textarea { height: 57px; min-height: 57px; resize: vertical; }
.page-home .order-form input::placeholder,
.page-home .order-form textarea::placeholder { color: #757575; opacity: 1; }
.page-home .order-form input:focus,
.page-home .order-form select:focus,
.page-home .order-form textarea:focus { outline: none; border-bottom-color: var(--navy); }
.page-home .order-form input:focus-visible,
.page-home .order-form select:focus-visible,
.page-home .order-form textarea:focus-visible { box-shadow: 0 1px 0 0 var(--navy); }
.page-home .order-form [aria-invalid="true"] { border-bottom-color: #dc3232; box-shadow: 0 1px 0 0 #dc3232; }
.page-home .order-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.page-home .order-form__actions { padding-top: 9px; margin-bottom: 14.4px; }
.page-home .order-form__submit {
  display: inline-block; margin: 0 0 30px; padding: 0 30px; border: 0; border-radius: 3px;
  background-color: var(--navy-18); color: var(--black);
  font-family: var(--font); font-size: 18px; line-height: 45px; cursor: pointer;
  transition: background-color .3s, color .3s;
}
.page-home .order-form__submit:hover,
.page-home .order-form__submit:focus-visible { background-color: var(--navy); color: var(--white); }
.page-home .order-form__submit:disabled { cursor: wait; opacity: .7; }
.page-home .order-form.is-submitting .order-form__submit::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: home-spin .8s linear infinite;
}
@keyframes home-spin { to { transform: rotate(360deg); } }
.page-home .form-response { margin: 0 0 14.4px; padding: 10px 16px; border: 2px solid; font-size: 16px; line-height: 26px; }
.page-home .form-response.is-ok { border-color: #46b450; color: #2e7d32; background-color: rgba(70, 180, 80, .06); }
.page-home .form-response.is-error { border-color: #dc3232; color: #b32d2e; background-color: rgba(220, 50, 50, .05); }

/* ---------- FAQ ---------- */
.page-home .faq { padding-top: 80px; padding-bottom: 80px; }
.page-home .faq__inner { padding: 10px; }
.page-home .faq__head { max-width: var(--boxed); margin: 0 auto; padding: 10px; }
.page-home .faq__intro { margin-top: 10px; padding: 0 200px; }
.page-home .accordion { font-size: 0; }               /* removes inline-block gaps */
.page-home .accordion__item {
  display: inline-block; vertical-align: baseline;
  width: calc(49% - 20px); margin: 0 10px 30px; padding: 15px 0;
  background-color: var(--white); border-radius: 0 20px 0 20px;
  box-shadow: 19px 15px 29.5px 0 rgba(0, 0, 0, .05);
  font-size: 18px;
}
.page-home .accordion__btn {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 0;
  width: 100%; margin: 0; padding: 15px 20px; border: 0; background: none;
  text-align: left; color: var(--black); cursor: pointer;
  font-family: var(--font); font-size: 18px; line-height: 18px; font-weight: 700;
}
.page-home .accordion__q { font-size: 22px; line-height: 32px; font-weight: 500; text-decoration: underline; color: var(--black); }
.page-home .accordion__btn:hover .accordion__q { text-decoration-thickness: 2px; }
.page-home .accordion__btn .icon { width: 27px; height: 18px; flex-shrink: 0; padding-left: 11.25px; fill: var(--black); }
.page-home .accordion__btn[aria-expanded="true"] .accordion__plus,
.page-home .accordion__btn[aria-expanded="false"] .accordion__minus { display: none; }
.page-home .accordion__panel { overflow: hidden; transition: height .3s ease; }
.page-home .accordion__body { padding: 15px 20px; font-size: 16px; line-height: 26px; color: var(--black); }
.page-home .accordion__body p:last-child { margin-bottom: 14.4px; }
.page-home .accordion__body a { color: var(--black); text-decoration: underline; }
.page-home .accordion__body a:hover { color: var(--navy); }

/* ---------- Get in touch ---------- */
.page-home .contact { padding-top: 80px; padding-bottom: 80px; }
.page-home .contact__media { padding: 10px; }
.page-home .contact__media img { display: block; width: 100%; }
.page-home .contact__text { padding-left: 50px; }
.page-home .contact__title { max-width: 318px; }
.page-home .contact__text .prose { max-width: 720px; }
.page-home .contact__email { display: flex; margin-top: 10px; padding-bottom: 6px; }
.page-home .contact__icon {
  width: 9%; flex-shrink: 0; height: 41px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 65 65' fill='none'%3E%3Crect x='1' y='1' width='63' height='63' stroke='%23D9534F' stroke-width='2'/%3E%3Cpath d='M47.0837 24.2497C47.0837 22.6455 45.7712 21.333 44.167 21.333H20.8337C19.2295 21.333 17.917 22.6455 17.917 24.2497M47.0837 24.2497V41.7497C47.0837 43.3538 45.7712 44.6663 44.167 44.6663H20.8337C19.2295 44.6663 17.917 43.3538 17.917 41.7497V24.2497M47.0837 24.2497L32.5003 34.4583L17.917 24.2497' stroke='%23D9534F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat left top / 41px 41px;
}
.page-home .contact__email-text { margin-left: 5px; }
.page-home .contact__label { font-size: 18px; line-height: 24px; font-weight: 600; color: var(--black); }
.page-home .contact__email-text p { margin: 2px 0 0; font-size: 14px; line-height: 14px; font-weight: 500; }
.page-home .contact__email-text a { color: var(--black); text-decoration: underline; }
.page-home .contact__email-text a:hover { color: var(--red); }

/* ==========================================================================
   Tablet (≤1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  /* Hero */
  .page-home .hero { padding-bottom: 80px; }
  .page-home .hero__inner { padding: 0; }
  .page-home .hero__text { margin-top: 50px; align-items: center; text-align: center; }
  .page-home .hero__title { max-width: 100%; font-size: 42px; line-height: 52px; }
  .page-home .hero__lead { max-width: 100%; }
  .page-home .hero__media { text-align: center; }
  .page-home .hero__media img { width: 90%; }

  /* About */
  .page-home .about__media { text-align: center; }
  .page-home .about__media img { display: inline-block; width: 80%; }
  .page-home .about__text { padding: 60px 0 0; text-align: center; }
  .page-home .about__title,
  .page-home .about__body { max-width: 100%; }

  /* Benefits */
  .page-home .benefits { padding-right: 45px; }
  .page-home .benefits__title { margin-left: 50px; }
  .page-home .benefits__intro { padding: 0; margin-top: 0; }
  .page-home .benefit { flex-wrap: wrap; }
  .page-home .benefit__media { width: 100%; order: -1; }
  .page-home .benefit__media img,
  .page-home .benefit:not(.benefit--rev) .benefit__media img { width: 22%; margin: 0 auto; }
  .page-home .benefit__body,
  .page-home .benefit--rev .benefit__body { width: 100%; margin-top: 10px; padding-left: 0; text-align: center; }
  .page-home .benefit__title { margin-top: 0; font-size: 22px; line-height: 32px; }

  /* Diet */
  .page-home .diet__row { flex-wrap: wrap; }
  .page-home .diet__media { order: -1; text-align: center; }
  .page-home .diet__row--1 .diet__media { padding-left: 0; }
  .page-home .diet__media img { display: inline-block; width: 90%; }
  .page-home .diet__row--1 .diet__text,
  .page-home .diet__row--2 .diet__text { margin-top: 20px; padding: 0; }
  .page-home .diet__row--2 { margin-top: 0; padding-top: 30px; }
  .page-home .diet .h-sub,
  .page-home .dot-list,
  .page-home .diet .prose { max-width: 100%; }

  /* Why */
  .page-home .why { padding: 80px 25px; }
  .page-home .why__card { padding: 50px 25px; }
  .page-home .why__text { padding: 0 10px; align-items: center; text-align: center; }
  .page-home .why__text .prose { max-width: 100%; }
  .page-home .why__media { padding-right: 0; }
  .page-home .why__media img { width: 70%; margin: 50px 20px 0; padding: 0; }

  /* Testimonials */
  .page-home .reviews { padding: 80px 0; }
  .page-home .reviews__grid { display: block; max-width: none; padding: 0 60px; }
  .page-home .tcard { width: 100%; }
  .page-home .tcard__text,
  .page-home .tcard--short .tcard__text { margin-top: 10px; padding: 30px 30px 60px; }
  .page-home .tcard__bar { min-height: 87px; }
  .page-home .tcard__photo { width: 67px; height: 67px; }
  .page-home .tcard__meta { margin-left: 56px; }

  /* Where to buy */
  .page-home .buy__text { margin-top: 25px; padding-left: 0; text-align: center; }
  .page-home .buy__text .prose { max-width: 100%; }
  .page-home .prices { margin-top: 30px; padding: 0 60px; }
  .page-home .prices--2 { margin-top: 30px; }
  .page-home .price { justify-content: center; margin: 0; padding: 10px 0; }
  .page-home .price:first-child { margin-right: 10px; }
  .page-home .price:last-child { margin-left: 10px; }
  .page-home .price__icon { width: 25px; }
  .page-home .price__title { margin: 8px 0 0 10px; font-size: 14px; line-height: 21px; }

  /* Shipping */
  .page-home .shipping__grid { flex-wrap: wrap; }
  .page-home .shipping__text,
  .page-home .shipping__media { width: 100%; }
  .page-home .shipping__media { order: -1; margin-bottom: 30px; }
  .page-home .shipping__media img { width: 33%; }
  .page-home .shipping__title { max-width: 100%; }

  /* FAQ */
  .page-home .faq__intro { padding: 0; margin-top: 0; }
  .page-home .faq__wrap .accordion { width: 95%; }
  .page-home .accordion__q { font-size: 20px; line-height: 30px; }

  /* Get in touch */
  .page-home .contact__media { padding: 0; text-align: center; }
  .page-home .contact__media img { display: inline-block; width: 76%; }
  .page-home .contact__text { margin-top: 36px; padding-left: 0; }
  .page-home .contact__title { max-width: 100%; text-align: center; }
  .page-home .contact__text .prose { max-width: 100%; text-align: center; }
}

/* ==========================================================================
   Mobile (≤767px)
   ========================================================================== */
@media (max-width: 767px) {
  /* Hero */
  .page-home .hero { padding-bottom: 50px; }
  .page-home .hero__text { margin-top: 40px; }
  .page-home .hero__title { font-size: 30px; line-height: 35px; }

  /* About */
  .page-home .about { padding-top: 50px; padding-bottom: 50px; }
  .page-home .about__text { padding-top: 20px; }

  /* Benefits */
  .page-home .benefits { padding: 50px 20px; }
  .page-home .benefits__title { margin-left: 0; }
  .page-home .benefit { margin-top: 20px; }
  .page-home .benefit__media img,
  .page-home .benefit:not(.benefit--rev) .benefit__media img { width: 33%; }
  .page-home .benefit__title { line-height: 30px; }

  /* Diet */
  .page-home .diet { padding-top: 50px; padding-bottom: 50px; }
  .page-home .diet__inner { padding: 10px; }
  .page-home .diet__media img { width: 100%; }
  .page-home .diet__row--1 .diet__text,
  .page-home .diet__row--2 .diet__text { margin-top: 30px; }
  .page-home .diet__row--2 { margin-top: 20px; padding-top: 0; }
  .page-home .diet__row--2 .h-sub { padding-right: 10px; }
  .page-home .dot-list { margin-top: 20px; }

  /* Why */
  .page-home .why { padding: 50px 20px; }
  .page-home .why__card { padding: 30px 0; }
  .page-home .why__text .h-sub { padding: 0 10px; }
  .page-home .why__media img { width: calc(100% - 40px); }

  /* Testimonials */
  .page-home .reviews { padding: 50px 20px; }
  .page-home .reviews__grid { padding: 0 0 0 30px; }
  .page-home .tcard { width: auto; margin-right: 25px; padding: 0; }
  .page-home .tcard__text,
  .page-home .tcard--short .tcard__text { margin-top: 20px; padding: 20px 10px 90px 20px; }
  .page-home .tcard__bar { min-height: 63px; padding: 5px 10px; }
  .page-home .tcard__photo { width: 46px; height: 46px; }
  .page-home .tcard__meta { margin-left: 12px; }

  /* Where to buy */
  .page-home .buy { padding-top: 50px; padding-bottom: 50px; }
  .page-home .buy__media { padding: 0 0 0 30px; text-align: left; }
  .page-home .buy__media img { width: 90%; }
  .page-home .buy__text { margin-top: 20px; }
  .page-home .prices { display: block; max-width: 350px; margin: 20px auto; padding: 0 40px; }
  .page-home .prices--2 { margin: 0 auto; }
  .page-home .price { flex-direction: column; align-items: center; width: 100%; margin: 0 0 20px; }
  .page-home .price:first-child,
  .page-home .price:last-child { margin-left: 0; margin-right: 0; }
  .page-home .prices .price:last-child { margin-bottom: 0; }
  .page-home .price__icon { width: 100%; justify-content: center; }
  .page-home .price__title { width: 100%; margin: 8px 0 0; padding-left: 10px; text-align: center; }

  /* Shipping */
  .page-home .shipping { padding-top: 50px; padding-bottom: 50px; }
  .page-home .shipping__media img { width: 40%; }
  .page-home .shipping__title { text-align: center; }

  /* Order form */
  .page-home .order { padding-top: 50px; padding-bottom: 50px; }
  .page-home .order-form__grid { display: block; margin-right: 0; }

  /* FAQ */
  .page-home .faq { padding-top: 50px; padding-bottom: 50px; }
  .page-home .faq__inner { padding: 0; }
  .page-home .accordion__item { display: block; width: 100%; margin: 0 0 30px; }
  .page-home .accordion__btn { padding: 12px 15px; }
  .page-home .accordion__btn .icon { width: 21.6px; padding-left: 5.85px; }
  .page-home .accordion__q { font-size: 18px; line-height: 30px; }
  .page-home .accordion__body { padding: 7px 15px; }

  /* Get in touch */
  .page-home .contact { padding-top: 50px; padding-bottom: 50px; }
  .page-home .contact__media { padding: 0 40px 0 15px; }
  .page-home .contact__media img { width: 100%; }
  .page-home .contact__text { margin-top: 0; }
  .page-home .contact__icon { width: 16%; }
}

/* Live site stacks the order form and FAQ cards from 900px down (custom CSS on the original) */
@media (max-width: 900px) {
  .page-home .order-form__grid { display: block; margin-right: 0; }
  .page-home .accordion__item { display: block; width: 100%; margin: 0 0 30px; }
}
