/* Support & Services page only. Linked from src/pages/support-and-services.astro.
   Every rule is scoped to a support-* class and uses the site's colour and type
   tokens. The page moves from a short opening line to the five areas, then to
   how support is shaped with the family, then to the next step. */

.support-page {
  background: var(--paper);
}

.support-kicker,
.support-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.support-kicker::before,
.support-eyebrow::before {
  content: "";
  flex: 0 0 1.75rem;
  height: 2px;
  background: var(--coral);
}

.support-eyebrow--light {
  color: var(--gold);
}

.support-section-title {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.support-button {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
}

.support-button:hover,
.support-button:focus-visible {
  background: var(--coral-dark);
}

.support-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-underline-offset: 0.3em;
}

.support-link:hover,
.support-link:focus-visible {
  color: var(--coral-dark);
}

.support-page a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

/* Opening: the photograph's open wall carries the copy, so no overlay is needed. */
.support-hero {
  position: relative;
  display: grid;
  min-height: clamp(34rem, 46vw, 44rem);
  background: #f3ebe0;
  overflow: hidden;
}

.support-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
}

.support-hero__inner {
  position: relative;
  align-self: center;
  padding-block: clamp(4rem, 8vw, 7rem);
}

.support-hero h1 {
  max-width: 11ch;
  margin-top: 1.25rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.support-hero__intro {
  max-width: 31rem;
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.support-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  align-items: center;
  margin-top: 2rem;
}

/* The five areas */
.support-area {
  scroll-margin-top: 6rem;
}

.support-area h3 {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.support-area p {
  max-width: 30rem;
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.75;
}

/* Core subjects sit on the open wall of the still life; the books and the
   flower stay visible to the right. */
.support-core {
  position: relative;
  padding-block: clamp(4.5rem, 9vw, 8rem);
  background: #efe4d3;
  overflow: hidden;
}

.support-core__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% 60%;
}

.support-core .page-shell {
  position: relative;
}

.support-core__panel {
  max-width: 40rem;
}

.support-core__lead {
  max-width: 30rem;
  margin-top: 1.25rem;
  color: var(--ink);
  font-size: 1.06rem;
  line-height: 1.7;
}

.support-core__pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 2.25rem;
}

.support-core__pair .support-area {
  padding-top: 1.25rem;
  border-top: 2px solid var(--coral-dark);
}

.support-core__pair .support-area + .support-area {
  border-top-color: var(--navy);
}

.support-school {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--paper);
}

.support-school__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
}

.support-school__media {
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem 1.5rem 5rem;
  box-shadow: var(--shadow);
}

.support-school__media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.support-school__copy .support-area {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.support-school__copy .support-area:first-of-type {
  margin-top: 1.5rem;
}

/* Heritage Languages & Culture: its own setting, distinct from English. */
.support-heritage {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  scroll-margin-top: 4rem;
}

.support-heritage__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(2.5rem, 7vw, 6.5rem);
  align-items: center;
}

.support-heritage h2 {
  margin-top: 1.25rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.support-heritage .support-heritage__names {
  display: flex;
  flex-wrap: wrap;
  gap: 0 clamp(1rem, 2.5vw, 2rem);
  margin-top: 1.5rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.support-heritage p {
  max-width: 34rem;
  margin-top: 1.25rem;
  font-size: 1.06rem;
  line-height: 1.75;
}

.support-heritage__media {
  justify-self: center;
  width: min(100%, 24rem);
  margin: 0;
  overflow: hidden;
  border-radius: 12rem 12rem 1.5rem 1.5rem;
  border: 1px solid rgba(237, 183, 53, 0.45);
}

.support-heritage__media img {
  display: block;
  width: 100%;
  height: auto;
}

/* Shaped with your family */
.support-shaped {
  padding-block: clamp(4rem, 8vw, 6.5rem);
  background: var(--paper);
}

.support-shaped__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}

.support-shaped__intro .support-section-title {
  max-width: 14ch;
}

.support-shaped__steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: shaped;
}

.support-shaped__steps li {
  position: relative;
  padding: 1rem 0 1rem 3rem;
  border-top: 1px solid var(--rule);
  color: var(--ink);
  line-height: 1.65;
  counter-increment: shaped;
}

.support-shaped__steps li::before {
  content: counter(shaped);
  position: absolute;
  top: 0.95rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--sage-pale);
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 700;
}

.support-shaped__steps strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.support-shaped__note {
  max-width: 24rem;
  margin: 1.25rem 0;
  color: var(--muted);
  line-height: 1.7;
}

/* How to start */
.support-next {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background: var(--sage-pale);
}

.support-next__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 4rem;
  align-items: center;
}

.support-next p {
  max-width: 38rem;
  margin-top: 0.85rem;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.7;
}

.support-next__links {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 860px) {
  .support-school__layout,
  .support-heritage__layout,
  .support-shaped__layout,
  .support-next__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-core__pair {
    grid-template-columns: minmax(0, 1fr);
  }

  .support-next__links {
    align-items: flex-start;
  }
}

/* Tablets: keep the copy on the open wall of each photograph. */
@media (min-width: 901px) and (max-width: 1199px) {
  .support-hero__intro {
    max-width: 26rem;
  }

  .support-hero__media img {
    object-position: 80% center;
  }
}

/* Below 1100px the still life sits beneath the core subjects. */
@media (max-width: 1100px) {
  .support-core {
    display: flex;
    flex-direction: column;
    padding-block: 3.5rem 0;
    background: #efe4d3;
  }

  .support-core__media {
    order: 2;
    margin-top: 2.5rem;
  }

  .support-core__media img {
    position: static;
    height: auto;
    aspect-ratio: 16 / 9;
    object-position: 85% 60%;
  }
}

/* Below 900px the hero photograph sits beneath the copy. */
@media (max-width: 900px) {
  .support-hero {
    min-height: 0;
    background: var(--cream);
  }

  .support-hero__media {
    order: 2;
  }

  .support-hero__media img {
    position: static;
    height: auto;
    aspect-ratio: 4 / 3;
    object-position: 78% center;
  }

  .support-hero__inner {
    padding-block: 2.75rem 2.25rem;
  }
}
