/* ================================
   Homepage – Section 1 (USPs + cards)
   ================================ */
.nursery-intro{
  --s1-band-width: clamp(320px, 92vw, 1280px);

  border-radius: 24px;
  padding: 28px 0 36px;
}

.nursery-intro .container{
  text-align: center;
  max-width: 1800px;
}

/* Butterfly */
.nursery-intro__butterfly{
  display: block;
  width: min(var(--s1-band-width), 100%);
  height: 130px;
  margin: 80px auto;
}

/* Title */
.nursery-intro__title{
  margin-bottom: 50px;
}
.nursery-intro__title em,
.nursery-intro__title .accent{
  color: var(--primary-red);
  font-style: normal;
}

/* USP wrapper: 4-column grid (icon + text, icon + text) */
.nursery-intro__usps{
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr;
  column-gap: 64px;
  row-gap: 14px;
  max-width: var(--s1-band-width);
  margin: 0 auto 28px;
  text-align: left; /* override container center */
  align-items: start; /* align icon + text at top */
}

/* Reset ULs inside */
.nursery-intro__usps-col{
  list-style: none;
  margin: 0;
  padding: 0;
  display: contents; /* children participate in parent grid */
}

/* Each USP item → display: contents to let icon+text map to parent columns */
.nursery-intro__usps-col li{
  display: contents;
}

/* Icons / bullets */
.nursery-intro__usp-icon,
.nursery-intro__usp-bullet{
  width: 24px;
  height: 24px;
  display: inline-block;
  line-height: 1;
  align-self: start;
  justify-self: start;
}

/* Text */
.nursery-intro__usp-text{
  margin: 0;
  color: var(--black);
  line-height: 1.5;
  font-size: clamp(14px, 1.5vw, 18px);

  /* equal height behaviour */
  display: flex;
  align-items: center;
}

/* Mobile: collapse to single column (icon + text) */
@media (max-width: 767px){
  .nursery-intro__usps{
    display: inline-grid;             /* shrink grid to content */
    grid-template-columns: 28px auto; /* icon + text */
    column-gap: 10px;                 /* keep the tick → text gap */
    row-gap: 14px;
    justify-content: center;          /* center whole block */
    text-align: left;                 /* keep text readable */
  }

  .nursery-intro__usp-icon,
  .nursery-intro__usp-bullet{
    justify-self: end;   /* make sure tick sits snug next to text */
    align-self: start;
  }

  .nursery-intro__usp-text{
    text-align: left;
  }
}


/* Paragraph under USPs */
.nursery-intro__desc{
  width: min(var(--s1-band-width), 100%);
  margin: 50px auto 0;
  color: var(--black);
  line-height: 1.6;
}

/* Cards row */
.nursery-intro__cards{
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 28px;
}

/* Tablet (≥768px) → 2 columns */
@media (min-width:768px){
  .nursery-intro__cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .nursery-intro__cards > *:nth-child(3) {
    grid-column: 1 / -1; /* 3rd card spans full width */
  }
}

/* Large desktop (≥1280px) → back to 3 columns */
@media (min-width:1280px){
  .nursery-intro__cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .nursery-intro__cards > *:nth-child(3) {
    grid-column: auto; /* reset, 3 across normally */
  }
}



/* Card (full-bleed image header + aligned content/CTA) */
.nursery-intro__card{
  display: flex;
  flex-direction: column;
  padding: 0;                   /* image bleeds to edges */
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  text-align: left;
}

/* Image fills width and crops nicely */
.nursery-intro__card-img{
  width: 100%;
  height: clamp(240px, 25vw, 360px);
  object-fit: cover;
  display: block;
}

/* Text blocks use consistent side padding */
.nursery-intro__card-title{
  margin: 16px 0 8px;
  padding: 0 18px;
  font-weight: 700;
  color: var(--black);
  font-size: clamp(20px, 2.2vw, 28px);
  align-self: center;
}
.nursery-intro__card-text{
  margin: 20px 0 16px;
  padding: 0 18px;
  color: var(--black);
  line-height: 1.55;
}

/* CTA aligns across cards */
.nursery-intro__card-cta{
  margin-top: auto;             /* push to baseline */
  padding: 0 18px 18px;
}

/* ================================
   Buttons – unify CTA styling
   ================================ */
.btn,
.btn-primary,
.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
  background: var(--primary-red);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-primary:hover,
.btn--primary:hover {
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  text-decoration: none;
}

.nursery-intro__card-cta {
  margin-top: auto;
  padding: 0 18px 18px;
  text-align: center; /* center CTA button */
}
/* Card wrapper (anchor) */
.nursery-intro__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;               /* force equal height */
  text-decoration: none;      /* remove underline */
  color: inherit;             /* inherit text color */
}

/* Card itself should flex-grow */
.nursery-intro__card {
  display: flex;
  flex-direction: column;
  flex: 1;                    /* expand evenly */
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nursery-intro__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 28px rgba(0,0,0,.1);
}

/* Push CTA to bottom consistently */
.nursery-intro__card-cta {
  margin-top: auto;
  padding: 0 18px 18px;
  text-align: center; /* center the button */
}

