/* Hero — bg image; pull up by nav height (80px), pad like bandb pages */
.hero {
  position: relative;
  margin-top: -80px;
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 560px;
  background-color: var(--colour-4);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  overflow: hidden;
}

/*
  White overlay on hero photo — solid left, soft fade to clear photo on right.
*/
.hero::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0) 90%
  );
  pointer-events: none;
  z-index: 0;
}

.hero1 {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 min(5vw, 50px);
  display: flex;
  align-items: center;
  min-height: 420px;
}

.hero1 .text {
  text-align: left;
  max-width: 260px;
  padding: 2rem 0;
}

.hero1 .text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: var(--colour-5);
}

.hero1 .text h1 span {
  color: var(--color-light-blue);
}

.hero1 .text .standfirst {
  font-size: 1.05rem;
  color: var(--colour-5);
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.hero1 .text h1,
.hero1 .text .standfirst {
  text-shadow: 0 0 16px var(--overlay-white-muted), 0 0 32px rgba(255, 255, 255, 0.6);
}

.hero1 .cta-button {
  display: inline-block;
  text-decoration: none;
  max-width: 92%;
}

.hero1 .cta-button > button {
  width: auto;
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
  padding: 12px 22px;
  font-size: 0.85rem;
}

/* Second fold — problem statement */
.second_fold {
  background-color: #F3F4F6;
  padding: 80px min(5vw, 50px);
}

.second_fold > .content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.second_fold .icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  background-color: var(--color-yellow);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.second_fold .icon-badge img {
  width: 36px;
  height: 36px;
}

.second_fold h2 {
  margin: 0 0 1rem;
}

.second_fold p {
  margin: 0;
  color: var(--colour-5);
}

/* Third fold — methodology 2x2 */
.third_fold {
  background-color: var(--colour-4);
  padding: 80px min(5vw, 50px);
  text-align: center;
}

.third_fold > h2 {
  margin: 0 0 0.75rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.third_fold > p {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--colour-5);
}

.third_fold > .solution-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 560px;
  margin: 0 auto;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px var(--shadow-navy-md);
}

.third_fold > .solution-cards > .card {
  background: var(--colour-4);
  border-radius: 0;
  padding: 1.75rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid var(--colour-6);
}

.third_fold > .solution-cards > .card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.third_fold > .solution-cards > .card .icon img {
  width: 32px;
  height: 32px;
}

.third_fold > .solution-cards > .card .icon--blue { background-color: var(--color-dark-blue); }
.third_fold > .solution-cards > .card .icon--light-blue { background-color: var(--color-light-blue); }
.third_fold > .solution-cards > .card .icon--red { background-color: var(--color-red); }
.third_fold > .solution-cards > .card .icon--yellow { background-color: var(--color-yellow); }

.third_fold > .solution-cards > .card:nth-child(1) { background-color: var(--colour-6); }
.third_fold > .solution-cards > .card:nth-child(2) { background-color: var(--tint-blue); }
.third_fold > .solution-cards > .card:nth-child(3) { background-color: var(--tint-red); }
.third_fold > .solution-cards > .card:nth-child(4) { background-color: var(--tint-yellow); }

.third_fold > .solution-cards > .card:nth-child(1) h3 { color: var(--colour-5); }
.third_fold > .solution-cards > .card:nth-child(2) h3 { color: var(--color-light-blue); }
.third_fold > .solution-cards > .card:nth-child(3) h3 { color: var(--color-red); }
.third_fold > .solution-cards > .card:nth-child(4) h3 { color: var(--color-yellow); }

.third_fold > .solution-cards > .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.third_fold > .solution-cards > .card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--colour-5);
}

/* Fourth fold — quote */
.fourth_fold {
  background-color: var(--color-dark-blue);
  padding: 80px min(5vw, 50px);
}

.fourth_fold > .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.fourth_fold .text blockquote {
  font-size: 1.75rem;
  font-weight: 500;
  font-style: italic;
  color: var(--colour-4);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.fourth_fold .text p {
  color: var(--overlay-white-muted);
  margin: 0;
  line-height: 1.7;
}

.fourth_fold .quote-media {
  position: relative;
  width: 100%;
  max-width: 480px;
}

.fourth_fold .quote-media > img {
  width: 100%;
  border-radius: 20px;
  object-fit: cover;
  display: block;
}

/* Fifth fold — why parents choose us 2x2 */
.fifth_fold {
  background-color: var(--colour-4);
  padding: 80px min(5vw, 50px);
  text-align: center;
}

.fifth_fold > h2 {
  margin: 0 0 2.5rem;
}

.fifth_fold > .solution-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  text-align: left;
}

.fifth_fold > .solution-cards > .card {
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 2px 16px var(--shadow-navy-lg);
}

.fifth_fold > .solution-cards > .card.card-tint-purple { background-color: var(--shadow-navy); }
.fifth_fold > .solution-cards > .card.card-tint-red { background-color: var(--tint-red); }
.fifth_fold > .solution-cards > .card.card-tint-yellow { background-color: var(--tint-yellow); }
.fifth_fold > .solution-cards > .card.card-tint-blue { background-color: var(--tint-blue); }

.fifth_fold > .solution-cards > .card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--colour-4);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.fifth_fold > .solution-cards > .card .icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.fifth_fold > .solution-cards > .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.fifth_fold > .solution-cards > .card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--colour-5);
}

/* Sixth fold — targeted programmes */
.sixth_fold {
  background-color: var(--color-dark-blue);
  padding: 80px min(5vw, 50px);
  text-align: center;
}

.sixth_fold > h2 {
  color: var(--colour-4);
  margin: 0 0 2.5rem;
}

.sixth_fold > .programme-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.sixth_fold > .programme-cards > .card {
  border-radius: 20px;
  padding: 2.5rem 2.75rem;
  text-align: left;
  min-height: 320px;
}

.sixth_fold > .programme-cards > .card h3 {
  color: var(--colour-4);
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
}

.sixth_fold > .programme-cards > .card p {
  color: var(--overlay-white-muted);
  margin: 0;
  font-size: 0.95rem;
}

.sixth_fold > .programme-cards > .card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--overlay-white-faint);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.sixth_fold > .programme-cards > .card .icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.sixth_fold > .programme-cards > .card--blue { background-color: var(--color-light-blue); }
.sixth_fold > .programme-cards > .card--red { background-color: var(--color-red); }
.sixth_fold > .programme-cards > .card--yellow { background-color: var(--color-yellow); }
.sixth_fold > .programme-cards > .card--yellow h3 { color: var(--colour-5); }
.sixth_fold > .programme-cards > .card--yellow p { color: var(--colour-5); }

/* Seventh fold — testimonials */
.seventh_fold {
  background-color: var(--background-colour);
  padding: 80px min(5vw, 50px);
  text-align: center;
}

.seventh_fold > h2 {
  margin: 0 0 2.5rem;
}

.seventh_fold > .testimonial-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.seventh_fold > .testimonial-cards > .card {
  background: var(--colour-4);
  border-radius: 20px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 4px 24px var(--shadow-navy-md);
  display: flex;
  flex-direction: column;
}

.seventh_fold .quote-mark {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  display: block;
}

.seventh_fold > .testimonial-cards > .card > p:not(.author) {
  margin: 0 0 1rem;
  color: var(--colour-5);
}

.seventh_fold .author {
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--colour-5);
}

/* Eighth fold — red CTA */
.eighth_fold {
  background-color: var(--color-red);
  padding: 80px min(5vw, 50px);
  text-align: center;
}

.eighth_fold > .content {
  max-width: 640px;
  margin: 0 auto;
}

.eighth_fold h2 {
  color: var(--colour-4);
  margin: 0 0 1rem;
  font-size: 1.75rem;
}

.eighth_fold p {
  color: var(--overlay-white);
  margin: 0 0 1.5rem;
}

.eighth_fold .cta-button {
  display: inline-block;
  text-decoration: none;
}

/* Responsive */
@media screen and (min-width: 421px) {
  .third_fold > .solution-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 501px) {
  .hero1 .text {
    max-width: 300px;
  }

  .hero1 .text h1 {
    font-size: 1.8rem;
  }
}

@media screen and (min-width: 600px) {
  .fifth_fold > .solution-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet / square viewports — keep subject visible under text column */
@media screen and (min-width: 769px) and (max-width: 1023px) {
  .hero {
    background-position: center top;
  }

  .hero::before {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 80%
    );
  }
}

@media screen and (min-width: 769px) {
  .hero {
    background-position: center top;
    min-height: 580px;
  }

  .hero1 {
    min-height: 480px;
  }

  .hero1 .text {
    max-width: 360px;
  }

  .hero1 .text h1 {
    font-size: 2.75rem;
  }

  .fourth_fold > .content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .fourth_fold .text {
    flex: 1;
    max-width: 560px;
  }

  .sixth_fold > .programme-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .seventh_fold > .testimonial-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (min-width: 1024px) {
  .hero1 .text h1 {
    font-size: 3rem;
  }

  .fourth_fold .text blockquote {
    font-size: 2.25rem;
  }
}

