/* School Life page (design artboards 6a desktop / 6b mobile). */

/* Intro: text on the left, photo on the right. On a phone the photo sits
   between the heading and the paragraphs. */
.life-intro { display: grid; gap: 0; padding-block: clamp(22px, 4.4vw, 56px) clamp(8px, 2.5vw, 32px); }
.life-intro__head { order: 1; }
.life-intro__photo { order: 2; }
.life-intro__text { order: 3; }
@media (min-width: 860px) {
  .life-intro {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    grid-template-areas: "head photo" "text photo";
    column-gap: 56px; align-items: start;
  }
  .life-intro__head { grid-area: head; }
  .life-intro__text { grid-area: text; }
  .life-intro__photo { grid-area: photo; }
}
.life-intro__head .eyebrow { margin: 0; }
.life-intro__head h1 { margin: 14px 0 16px; font-size: clamp(29px, 3.6vw, 46px); line-height: 1.06; }
.life-intro__text p { max-width: 620px; font-size: 17px; line-height: 1.75; margin: 0 0 14px; }
.life-intro__text p:last-child { margin-bottom: 0; }
.life-intro__text .lede--strong { font-size: 19px; line-height: 1.6; margin-bottom: 16px; }
.life-intro__photo img { width: 100%; height: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; }
@media (max-width: 859px) {
  .life-intro__head h1 { margin: 10px 0; }
  .life-intro__photo img { height: 200px; margin-bottom: 12px; }
  .life-intro__text p { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
  .life-intro__text .lede--strong { font-size: 16px; line-height: 1.55; }
}

/* The four areas of school life. */
.life-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: clamp(18px, 2.5vw, 32px) clamp(24px, 3.4vw, 44px); }
.life-card { background: #fff; border: 1.5px solid var(--sand-deep); border-radius: 10px; padding: 0 0 24px; overflow: hidden; box-shadow: 0 2px 12px rgba(22, 35, 58, .06); }
/* Each card is a link to its own address (e.g. /school-life/#sel), the same addresses the sub-navigation uses. */
.life-card { display: block; text-decoration: none; color: inherit; scroll-margin-top: 24px; transition: border-color .16s ease, transform .16s ease; }
.life-card:hover { border-color: var(--brick); transform: translateY(-2px); color: inherit; }
.life-card:hover h2 { text-decoration: underline; text-decoration-color: var(--brick); text-underline-offset: 4px; }
.life-card img { width: 100%; height: 240px; object-fit: cover; object-position: center 40%; display: block; margin-bottom: 18px; }
/* The Social Emotional Learning card shows the top four class-agreement cards on the poster,
   from "I am honest and inclusive" to "I am respectful and kind" (Karen, Nov 2026). */
.life-card#sel img { height: auto; aspect-ratio: 1.95 / 1; object-position: center 55%; }
.life-card h2, .life-card p { padding-inline: 26px; }
.life-card h2 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--navy); line-height: 1.2; }
.life-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.6; color: var(--warm-600); }
/* A brick arrow after each title shows the card opens a page, as on the About Us tiles (Karen, Nov 2026). */
.life-card__arrow { color: var(--brick); display: inline-block; margin-left: 2px; transition: transform .16s ease; }
.life-card:hover .life-card__arrow { transform: translateX(4px); }
@media (max-width: 700px) {
  .life-cards { grid-template-columns: 1fr; gap: 10px; }
  .life-card { padding: 0 0 16px; }
  .life-card img { height: 180px; margin-bottom: 12px; }
  .life-card h2, .life-card p { padding-inline: 18px; }
  .life-card h2 { font-size: 17px; }
  .life-card p { font-size: 13px; line-height: 1.5; margin-top: 4px; }
}

/* Navy Narwhal band. */
.life-narwhal { padding-block: clamp(26px, 3.8vw, 48px); }
.life-narwhal .eyebrow { margin: 0; }
.life-narwhal h2 { margin: 14px 0; font-size: clamp(22px, 2.7vw, 34px); letter-spacing: -.025em; line-height: 1.15; }
.life-narwhal p { margin: 0; font-size: 17px; line-height: 1.75; color: rgba(255,255,255,.78); max-width: 620px; }
@media (max-width: 700px) {
  .life-narwhal h2 { margin: 10px 0; }
  .life-narwhal p { font-size: 14px; line-height: 1.7; }
}
