/* ==========================================================================
   Preprimary (admissions.html, #preprimary only).
   Image on the left, content on the right. The heading sits in the kicker +
   title style used across the site, with "lifelong learning." in index.html's
   orange script. The four points are white cards in a 2 x 2 grid, each with an
   orange dash before its title. Stacks on tablet and phone.
   ========================================================================== */

#preprimary.pp-sec {
  position: relative;
  background: #faf7f1;
  overflow-x: clip;
}

#preprimary .pp-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

/* ---------- image (left) ---------- */
#preprimary .pp-art {
  margin: 0;
}

/* picture shown as supplied: no frame, shadow or rounded card behind it */
#preprimary .pp-art {
  background: none;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

#preprimary .pp-art img {
  display: block;
  width: 100%;
  height: auto;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

/* ---------- copy (right) ---------- */
#preprimary .pp-head {
  margin: 0 0 22px;
  text-align: left;
  max-width: none;
}

/* reset the older page-wide list styles so each card is a plain block */
#preprimary .pp-list > li {
  display: block;
  grid-template-columns: none;
  gap: 0;
  padding: 18px 20px;
  margin: 0;
  border: 1px solid #e6e2d8;
  border-radius: 16px;
  background: #fff;
  list-style: none;
}

#preprimary .pp-list > li > div {
  display: block;
}

#preprimary .pp-head .kicker {
  display: inline-block;
  font-family: var(--hp-nav);
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--hp-orange);
  margin-bottom: 14px;
}

#preprimary .pp-head .kicker::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1.5px;
  margin-right: 12px;
  vertical-align: middle;
  background: var(--hp-orange);
}

#preprimary .pp-head .h2 {
  font-family: var(--hp-serif);
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--hp-blue);
  margin: 0;
  text-wrap: balance;
}

#preprimary .pp-head .hp-script {
  font-size: 1.05em;
  letter-spacing: 0;
  white-space: normal;
}

#preprimary .pp-intro {
  font-family: var(--hp-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--hp-ink);
  max-width: 620px;
  margin: 0 0 30px;
}

/* ---------- 2 x 2 point cards ---------- */
#preprimary .pp-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#preprimary .pp-card {
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}

#preprimary .pp-list > li:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(14, 42, 71, .07);
}

#preprimary .pp-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  white-space: normal;
  font-family: var(--hp-sans);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: #0b1f3a;
  margin: 0 0 8px;
}

#preprimary .pp-card h3::before {
  content: "–";
  color: var(--hp-orange);
  font-weight: 700;
}

#preprimary .pp-card p {
  font-family: var(--hp-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--hp-ink);
  margin: 0 0 0 18px;
}

/* ---------- button: index.html pill ---------- */
#preprimary .btn-row {
  margin: 0;
}

/* ---------- tablet: image on top, copy below ---------- */
@media (max-width: 1024px) {
  #preprimary .pp-wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  #preprimary .pp-art {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
  }
}

/* ---------- phone: one column of cards ---------- */
@media (max-width: 640px) {
  #preprimary .pp-head .h2 {
    font-size: clamp(32px, 9vw, 40px);
  }
  #preprimary .pp-intro {
    font-size: 16px;
    margin-bottom: 24px;
  }
  #preprimary .pp-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  #preprimary .pp-list > li {
    padding: 18px;
  }
  #preprimary .pp-card h3 {
    font-size: 16px;
  }
  #preprimary .pp-card p {
    font-size: 14px;
  }
  #preprimary .btn-row .hp-pill {
    width: 100%;
    min-height: 52px;
    padding: 0 20px;
    font-size: 16px;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  #preprimary .pp-card {
    transition: none;
  }
  #preprimary .pp-list > li:hover {
    transform: none;
  }
}
