/* /par-mums — title, hero photo, vision, "mācību vide" block and the six values
   (desktop: two text columns; phones: photo cards). */

.parmums { background: #fff5ed; } /* peach page background shows as a thin strip under the lilac band */

/* ---------- Title ---------- */
.parmums-head { height: 18.2rem; background: var(--cream); text-align: center; }
.parmums-head__title { height: 11.6rem; padding: 2.8rem 0 0 2.2rem; background: var(--paper); } /* sits slightly right of centre */
.parmums-head h1 { font-size: 5.2rem; line-height: 6.24rem; color: var(--green-900); }
.parmums-head__sub { margin-top: 2.8rem; font-size: 2rem; line-height: 2.8rem; color: var(--purple); }

/* ---------- Hero photo ---------- */
.parmums-hero-band { background: var(--paper); } /* hides the peach page background beside the rounded photo */
.parmums-hero { height: 50rem; }
.parmums-hero img { width: 100%; height: 50rem; object-fit: cover; }

/* ---------- Vision ---------- */
.parmums-vision { height: 18.5rem; padding-top: 1.3rem; background: var(--paper); text-align: center; }
.parmums-vision h2 { font-size: 4.5rem; line-height: 6.3rem; }
.parmums-vision h2 span { display: inline-block; position: relative; }
.parmums-vision h2 span::after { /* lilac underline, wider than the text */
  content: ""; position: absolute; left: -2.3rem; right: -2.3rem; top: 6.3rem;
  border-top: .5rem solid var(--lilac-500);
}
.parmums-vision p { margin-top: 2.3rem; font-size: 2.2rem; line-height: 3.08rem; color: var(--purple); }
.parmums-vision em { font-style: normal; color: #033b34; }

/* ---------- "Pētnieki - mācību vide": text box + photo on a lilac band ---------- */
.parmums-about { margin-bottom: .4rem; padding: 6rem 0; background: var(--lilac-300); }
.parmums-about__box { /* full width less 60px side margins, like the original at every screen width */
  display: grid; grid-template-columns: 67.35% 1fr;
  height: 79.3rem; margin: 0 6rem;
  background: var(--cream);
}
.parmums-about__text { width: 57.9rem; margin: 0 auto; padding-top: 3.5rem; color: var(--purple); }
.parmums-about h2 { padding-top: .5rem; font-weight: var(--bold); font-size: 3.5rem; line-height: 5.6rem; }
.parmums-about__tagline { margin-top: 0; font-size: 2.4rem; line-height: 2.4rem; color: var(--lilac-500); }
.parmums-about__text p:not(.parmums-about__tagline) {
  width: 57.9rem; margin-top: 2.8rem; font-size: 2rem; line-height: 2.8rem; text-align: justify;
}
.parmums-about__tagline + p:not(.parmums-about__tagline) { margin-top: 1.6rem; }
.parmums-about__photo img { width: 100%; height: 79.3rem; object-fit: cover; }
.parmums-about__photo picture:last-child { display: none; } /* wider crop used on phones */

/* ---------- Values, desktop ---------- */
.parmums-values { height: 77.1rem; padding-top: 6.7rem; background: var(--paper); }
.parmums-values__list {
  display: grid; grid-auto-flow: column; grid-template-columns: 54.5rem 1fr;
  grid-template-rows: 25.4rem 24.6rem auto; align-items: start;
}
.parmums-values li { position: relative; }
.parmums-values img { position: absolute; top: .4rem; width: 2.7rem; height: 4.1rem; }
.parmums-values h3 {
  height: 5.1rem; border-bottom: .5rem solid rgba(0, 76, 45, .51);
  font-weight: var(--bold); font-size: 3.4rem; line-height: 4.76rem; color: var(--lilac-300); white-space: nowrap;
}
.parmums-values p { margin-top: .2rem; font-size: 2.4rem; line-height: 3.36rem; text-align: justify; }
.parmums-values h3, .parmums-values p { width: 37.7rem; }
/* The original is laid out by hand; these offsets reproduce each item's position. */
.parmums-values li:nth-child(1) { margin: .4rem 0 0 4.7rem; }
.parmums-values li:nth-child(1) img { left: -4.7rem; }
.parmums-values li:nth-child(2) { margin: .4rem 0 0 4.8rem; }
.parmums-values li:nth-child(2) img { left: -4.8rem; top: .3rem; }
.parmums-values li:nth-child(2) h3, .parmums-values li:nth-child(2) p { width: 38.3rem; margin-left: .1rem; }
.parmums-values li:nth-child(3) { margin: .4rem 0 0 4.9rem; }
.parmums-values li:nth-child(3) img { left: -4.9rem; top: .3rem; }
.parmums-values li:nth-child(4) { margin-left: 4.9rem; }
.parmums-values li:nth-child(4) img { left: -4.9rem; }
.parmums-values li:nth-child(4) p { width: 37.2rem; margin: .7rem 0 0 .4rem; }
.parmums-values li:nth-child(5) { margin-left: 4.8rem; }
.parmums-values li:nth-child(5) img { left: -4.8rem; }
.parmums-values li:nth-child(5) p { width: 37.2rem; margin: .5rem 0 0 .5rem; }
.parmums-values li:nth-child(6) { margin: .1rem 0 0 4.5rem; }
.parmums-values li:nth-child(6) img { left: -5.6rem; top: .3rem; }
.parmums-values li:nth-child(6) p { width: 37.2rem; margin: .5rem 0 0 .3rem; }

@media (max-width: 600px) {
  .parmums-head { height: 16.5rem; }
  .parmums-head__title { height: 14.5rem; padding: 1.25rem 1.2rem 0 1.3rem; }
  .parmums-head h1 { font-size: 2.6rem; line-height: 3.12rem; }
  .parmums-head__sub { width: 23rem; margin: 1.3rem auto 0; font-size: 1.5rem; line-height: 2.1rem; }

  .parmums-hero, .parmums-hero img { height: 13.1rem; }

  .parmums-vision { height: 23.4rem; padding-top: 2rem; }
  .parmums-vision h2 { font-size: 2.2rem; line-height: 3.08rem; }
  .parmums-vision h2 span::after { left: -.8rem; right: -.8rem; top: 3.6rem; }
  .parmums-vision p { margin: 2rem 2rem 0 3rem; font-size: 1.7rem; line-height: 2.38rem; }

  .parmums-about { margin-bottom: 4.4rem; }
  .parmums-about__box { display: block; width: auto; height: auto; margin: 0; }
  .parmums-about__text { width: auto; height: 74.9rem; padding: 2rem 2rem 0; }
  .parmums-about h2 { padding-top: .2rem; font-size: 2.4rem; line-height: 3.1rem; }
  .parmums-about__tagline { margin-top: .8rem; font-size: 1.8rem; line-height: 1.9rem; }
  .parmums-about__text p:not(.parmums-about__tagline) { width: auto; margin-top: 2.24rem; font-size: 1.6rem; line-height: 2.24rem; }
  .parmums-about__tagline + p:not(.parmums-about__tagline) { margin-top: 1rem; }
  .parmums-about__photo picture:first-child { display: none; }
  .parmums-about__photo picture:last-child { display: block; }
  .parmums-about__photo img { height: 27.7rem; }

  /* ---------- Values, phones ---------- */
  .parmums-cards { padding: 2rem 1.8rem 4rem; background: var(--paper); }
  .parmums-cards h2 { position: relative; font-size: 2.3rem; line-height: 3.22rem; text-align: center; }
  .parmums-cards h2::after {
    content: ""; display: block; width: 16rem; height: .5rem; margin: 1.3rem auto 0;
    border-radius: 2rem; background: var(--lilac-300);
  }
  .parmums-card { margin-top: 1.2rem; padding: 1.6rem; border-radius: 2.2rem; background: var(--white); }
  .parmums-card:first-child { margin-top: 2.3rem; }
  .parmums-card img { width: 25.2rem; height: 19rem; border-radius: 1.6rem; object-fit: cover; }
  .parmums-card h3 { margin-top: 1.6rem; font-size: 2rem; line-height: 2.8rem; color: var(--purple); }
  .parmums-card p { margin-top: .8rem; font-size: 1.5rem; line-height: 2.25rem; color: var(--ink); }
}

/* First photo: same gaps to the text above and below as the homepage hero */
.parmums-hero-band { padding: 2.9rem 0 4.0rem; }
@media (max-width: 600px) {
  .parmums-hero-band { margin-top: -0.66rem; padding: 0 0 0.16rem; }
}

/* Wider phones: the 320px design stays centred (--gutter in base.css) */
@media (max-width: 600px) {
  .parmums-card { padding-inline: calc(1.6rem + var(--gutter)); }
}
