/**************************/
/* STICKY NAVIGATION      */
/**************************/
/* Initial state of the spacer (no height) */
.header-spacer {
  height: 0;
  /* Optional: Add a transition for a smoother effect if the height changes visually */
  transition: height 0.3s ease-out;
}

/* When body is sticky, give the spacer the exact height of the sticky header */
body.sticky .header-spacer {
  height: 8rem; /* Matches the height of .sticky .site-header */
}

/* Your existing sticky header rules (ensure height matches the spacer) */
.sticky .site-header {
  position: fixed;
  top: 0;
  width: 100%;
  /* height: 8rem; This must match the spacer's height */
  padding-top: 0;
  padding-bottom: 0;
  background-color: var(--color-white);
  z-index: 999;
  box-shadow: 0 1.2rem 3.2rem var(--shadow-xs);
}

.menu--dashboard-mobile {
  display: none;
}

/* Label on paid content */
.blog-secondary-header::before {
  content: 'PAID';
  background-color: var(--color-accent-warning);
  color: var(--color-grey-2);
  font-size: 1.6rem;
  font-weight: bold;
  display: inline-block;
  padding: 0.5rem 1rem;
  position: absolute;
  top: -1rem;
  right: -2.5rem;
}

.author-box {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.favorites-notes-icon {
  height: 2.4rem;
  width: 2.4rem;
  color: orangered;
}

/* Rating / review */
.review-links {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  align-content: center;
  margin-top: 1rem;
}

.rating-replace {
  font-style: italic;
}

/**************************/
/* BLOG BROWSING          */
/**************************/

.section-blog {
  padding: 3.2rem 0;
}

.blog-box {
  /* background-color: #fdf2e9; */
  border-radius: 11px;
  padding: 1.6rem;
}

.blog-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.blog-metadata {
  color: var(--color-grey-1);
  font-weight: 400;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 0.8rem;
}

.blog-title {
  font-size: 3.2rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.blog-preview-text {
  font-weight: 400;
  font-size: 2rem;
  line-height: 1.6;
  color: var(--color-grey-1);
  margin-bottom: 3.2rem;
  text-align: center;
}

.blog-read-more {
  text-align: center;
}

.grid-view {
  row-gap: 3.2rem;
}

/**************************/
/* HERO SECTION           */
/**************************/

.section-hero {
  background-color: var(--color-primary-light);
  padding: 4.8rem 0 9.6rem 0;
}

/**************************/
/* HERO LAYOUT            */
/**************************/

.hero {
  max-width: 130rem;
  margin: 0 auto;
  padding: 0 3.2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 9.6rem;
  align-items: center;
}

/**************************/
/* HERO TEXT              */
/**************************/

.hero-description {
  font-size: 2.5rem;
  line-height: 1.4;
  margin-bottom: 4.8rem;
}

/**************************/
/* HERO MICRO STORY       */
/**************************/

.hero-micro-story {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-grey-2);
  margin-bottom: 3.2rem;
}

/**************************/
/* HERO BELIEF SHIFT      */
/**************************/

.hero-belief {
  font-size: 1.7rem;
  line-height: 1.6;
  color: var(--color-grey-1);
  margin-bottom: 2.4rem;
  text-align: center;
  font-weight: 500;
}

/**************************/
/* HERO TAGLINE (POST CTA)*/
/**************************/

.hero-tagline {
  font-size: 1.6rem;
  color: var(--color-grey-2);
  margin-top: 1.6rem;
  text-align: center;
}

/**************************/
/* HERO IMAGE (UPGRADED)  */
/**************************/

.hero-img-box {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(2.4rem);
}

.hero-img {
  width: 100%;
  height: auto;
  border-radius: 1.2rem;

  /* 🔥 depth (key upgrade) */
  box-shadow: 0 2.4rem 4.8rem rgba(0, 0, 0, 0.08);

  transition: all 0.4s ease;
}

.hero-img:hover {
  transform: scale(1.04);
}

/**************************/
/* HERO RESPONSIVE        */
/**************************/

@media (max-width: 60rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 4.8rem;
    text-align: center;
  }

  .hero-img-box {
    margin-top: 3.2rem;
    transform: none;
  }

  .hero-img {
    max-width: 100%;
  }

  .hero-description {
    font-size: 2.2rem;
  }
}

/**************************/
/* FEATURED SECTION       */
/**************************/

.section-featured {
  padding: 4.8rem 0 3.2rem 0;
}

.heading-featured-in {
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  text-align: center;
  margin-bottom: 2.4rem;
  color: var(--color-grey-5);
}

.logos {
  display: flex;
  justify-content: space-around;
}

.logos img {
  height: 3.2rem;
  filter: brightness(0);
  opacity: 50%;
}

/**************************/
/* CTA (HOME) SECTION     */
/**************************/

.delivered-meals {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin-top: 8rem;
}

.delivered-imgs {
  display: flex;
}

.delivered-imgs img {
  height: 4.8rem;
  width: 4.8rem;
  border-radius: 50%;
  margin-right: -1.6rem;
  border: 3px solid var(--color-primary-light);
}

.delivered-imgs img:last-child {
  margin: 0;
}

.delivered-text {
  font-size: 1.8rem;
  font-weight: 600;
}

.delivered-text span {
  color: var(--color-primary-dark);
  font-weight: 700;
}

/**************************/
/* HOW IT WORKS SECTION   */
/**************************/

.section-how {
  padding: 9.6rem 0;
  background-color: var(--color-primary-light);
}

.step-number {
  font-size: 8.6rem;
  font-weight: 600;
  color: var(--color-border-light);
  margin-bottom: 1.2rem;
}

.step-description {
  font-size: 1.8rem;
  line-height: 1.8;
}

/**************************/
/* SYSTEM LOOP SECTION    */
/**************************/

.section-system {
  padding: 9.6rem 0;
  background-color: var(--color-white);
}

.system-intro {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-grey-2);
  margin-bottom: 4.8rem;
}

.system-grid {
  margin-bottom: 4.8rem;
  gap: 3.2rem;
}

.system-step {
  background-color: var(--color-primary-light);
  border-radius: 0.9rem;
  padding: 3.2rem;
  text-align: center;
  box-shadow: 0 2.4rem 4.8rem var(--shadow-md);
  transition: all 0.3s;
}

.system-step:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 3.2rem 6.4rem var(--shadow-medium);
}

.system-number {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1.2rem;
}

.system-step h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--color-grey-1);
}

.system-step p {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-grey-2);
}

.system-outro {
  font-size: 1.8rem;
  text-align: center;
  color: var(--color-grey-1);
  font-weight: 500;
}

/**************************/
/* DECISION BRIDGE        */
/**************************/

.section-bridge {
  padding: 6.4rem 0;
  background-color: var(--color-primary-light);
}

.bridge-text {
  font-size: 2rem;
  line-height: 1.6;
  color: var(--color-grey-1);
  max-width: 80rem;
  margin: 0 auto;
}

.system-grid {
  position: relative;
}

@media (min-width: 59em) {
  .system-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 0.2rem;
    background-color: var(--color-border-light);
    z-index: 0;
  }

  .system-step {
    position: relative;
    z-index: 1;
  }
}

/**************************/
/* HERO ENHANCEMENTS      */
/**************************/

.hero-sub-note {
  font-size: 1.6rem;
  color: var(--color-grey-2);
  margin-top: 1.6rem;
  font-style: italic;
}

/**************************/
/* PRICING / Memberships       */
/**************************/

.section-pricing {
  padding: 9.6rem 0;
}

.pricing-plan {
  border-radius: 11px;
  width: 75%;
}

/**************************/
/* PLAN BADGE             */
/**************************/

.plan-badge {
  font-size: 1.4rem;
  color: var(--color-primary-dark);
  font-weight: 500;
  margin-top: -1.6rem;
  margin-bottom: 2.4rem;
}

.pricing-plan--starter {
  justify-self: end;
  border: 2px solid var(--color-primary-light);
  padding: 4.6rem;
}

.pricing-plan--complete {
  background-color: var(--color-primary-light);
  transform: scale(1.03);
  box-shadow: 0 3.2rem 6.4rem var(--shadow-medium);
  padding: 4.8rem;
  position: relative;
  overflow: hidden;
}

/**************************/
/* BEST VALUE BADGE       */
/**************************/

.pricing-plan--complete::before {
  content: 'Most Families Choose This';
  position: absolute;
  top: 1.6rem;
  right: 1.6rem;
  background-color: var(--color-accent-warning);
  color: var(--color-grey-1);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-header {
  text-align: center;
  margin-bottom: 4.8rem;
}

.plan-name {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 3.2rem;
}

.plan-price {
  font-size: 6.2rem;
  font-weight: 600;
  color: var(--color-grey-1);
  margin-bottom: 1.6rem;
}

.plan-price span {
  font-size: 3rem;
  font-weight: 500;
  margin-right: 0.8rem;
}

.plan-text {
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-grey-3);
}

.plan-sign-up {
  text-align: center;
  margin-top: 4.8rem;
}

.plan-details {
  font-size: 1.6rem;
  line-height: 1.6;
  text-align: center;
}

.feature-icon {
  color: var(--color-primary);
  height: 3.2rem;
  width: 3.2rem;
  background-color: var(--color-primary-light);
  margin-bottom: 3.2rem;
  padding: 1.6rem;
  border-radius: 50%;
}

.feature-title {
  font-size: 2.4rem;
  color: var(--color-grey-1);
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.feature-text {
  font-size: 1.8rem;
  line-height: 1.8;
}

/**************************/
/* SUCCESS STORIES        */
/**************************/

.section-success {
  padding: 6.4rem 0;
  /* background-color: #fdf2e9; */
}

.success-container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 3.2rem;
}

.section-success .subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.075rem;
}

.section-success .heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 4.8rem;
  color: var(--color-grey-1);
}

.success-intro {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-grey-2);
  margin-bottom: 4.8rem;
}

.success-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
  gap: 3.2rem;
  margin-bottom: 4.8rem;
}

.success-card {
  background-color: var(--color-white);
  border-radius: 0.9rem;
  box-shadow: 0 2.4rem 4.8rem var(--shadow-md);
  padding: 2.4rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.success-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 3.2rem 6.4rem var(--shadow-medium);
}

.success-content ion-icon {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1.6rem;
}

.success-title {
  font-size: 2.4rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.6rem;
  color: var(--color-primary-darker);
}

.success-card p {
  font-size: 1.8rem;
  line-height: 1.6;
  color: var(--color-grey-2);
}

.success-cta {
  text-align: center;
  margin-top: 4.8rem;
}

.success-cta h3 {
  font-size: 2.4rem;
  font-weight: 600;
  margin-bottom: 2.4rem;
  color: var(--color-grey-1);
}

.success-cta .btn {
  font-size: 2rem;
  padding: 1.6rem 3.2rem;
}

/**************************/
/* FAQ SECTION            */
/**************************/

.section-faq {
  padding: 6.4rem 0;
  background-color: var(--color-primary-light);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-width: 120rem;
  margin: 0 auto;
}

.faq-item {
  border: 0.1rem solid var(--color-border-light);
  border-radius: 0.9rem;
  box-shadow: 0 2.4rem 4.8rem var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-question {
  width: 100%;
  text-align: left;
  font-family: 'Rubik', sans-serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.05rem;
  padding: 1.6rem 2.4rem;
  background-color: var(--color-primary-soft);
  color: var(--color-primary-darker);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  transition: background-color 0.3s;
}

.faq-question:hover {
  background-color: var(--color-primary-hover);
  color: var(--color-white);
}

.faq-question::after {
  content: '+';
  font-weight: 700;
  transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  font-family: 'Rubik', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-grey-2);
  padding: 0 2.4rem;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 50rem;
  padding: 1.6rem 2.4rem;
}

.section-faq .subheading {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--color-primary-dark);
  text-transform: uppercase;
  margin-bottom: 1.6rem;
  letter-spacing: 0.075rem;
}

.section-faq .heading-secondary {
  font-size: 4.4rem;
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 9.6rem;
  color: var(--color-grey-1);
}

/* shared image styling */
.step-img-box {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 32rem;
}

/* step-specific images */
.step-img--one {
  background-image: url('/resources/img/Capture.svg');
}

.step-img--two {
  background-image: url('/resources/img/Organize.svg');
}

.step-img--three {
  background-image: url('/resources/img/Share.svg');
}

/**************************/
/* HOME RESPONSIVE */
/**************************/

@media (max-width: 84em) {
  .hero {
    max-width: 120rem;
  }

  .heading-primary {
    font-size: 4.4rem;
  }
}

@media (max-width: 75em) {
  .hero {
    gap: 4.8rem;
  }

  .heading-secondary {
    font-size: 3.6rem;
  }

  .heading-tertiary {
    font-size: 2.4rem;
  }
}

@media (max-width: 59em) {
  .hero {
    grid-template-columns: 1fr;
    padding: 0 8rem;
    gap: 6.4rem;
  }

  .hero-text-box,
  .hero-img-box {
    text-align: center;
  }

  /* .hero-img {
    width: 60%;
  } */

  .delivered-meals {
    justify-content: center;
    margin-top: 3.2rem;
  }

  .step-number {
    font-size: 7.4rem;
  }

  .meal-content {
    padding: 2.4rem 3.2rem;
  }
  /* 
  .grid--2-cols {
    grid-template-columns: 1fr;
  }

  .pricing-plan {
    width: 100%;
    justify-self: center;
  }

  .pricing-plan--starter {
    justify-self: center;
  } */
}

@media (max-width: 34em) {
  .section-hero {
    padding: 2.4rem 0 6.4rem;
  }

  .hero {
    padding: 0 3.2rem;
  }

  /* .hero-img {
    width: 80%;
  } */
}
