@font-face {
  font-family: "Nunito KIE";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/nunito-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC,
    U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --kie-navy: #07366f;
  --kie-navy-deep: #032855;
  --kie-teal: #16989a;
  --kie-teal-dark: #0d7477;
  --kie-gold: #f5ad24;
  --kie-cream: #fbf8f1;
  --kie-paper: #fffdf9;
  --kie-mist: #edf6f4;
  --kie-ink: #18334d;
  --kie-muted: #5d7182;
  --kie-line: rgba(7, 54, 111, 0.14);
  --kie-radius: 1.6rem;
  --kie-shadow: 0 1.5rem 4rem rgba(3, 40, 85, 0.12);
  --kie-shell: min(1180px, calc(100vw - 3rem));
  --kie-header: 5.5rem;
}

* {
  box-sizing: border-box;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

html {
  scroll-behavior: smooth;
}

body.kie-site {
  margin: 0;
  color: var(--kie-ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  background: var(--kie-paper);
  -webkit-font-smoothing: antialiased;
}

.kie-site h1,
.kie-site h2,
.kie-site h3,
.kie-site p,
.kie-site figure {
  margin-top: 0;
}

/*
 * The heading colour lives in theme.json so that a per-block colour set in the
 * editor can override it. A rule here would be more specific than the class
 * WordPress emits for that choice, and would silently win.
 */
.kie-site h1,
.kie-site h2,
.kie-site h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.035em;
}

.kie-site h1 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  font-family: "Nunito KIE", Nunito, "Avenir Next", "Segoe UI", sans-serif;
  font-size: clamp(2.85rem, 6vw, 5.55rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.kie-site h2 {
  max-width: 16ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  line-height: 1.02;
}

.kie-site h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.kie-site p {
  color: var(--kie-muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.75;
}

.kie-site a {
  color: inherit;
}

.kie-site img {
  max-width: 100%;
}

.kie-shell {
  width: var(--kie-shell);
  margin-inline: auto;
}

.kie-skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.8rem 1.1rem;
  color: #fff;
  background: var(--kie-navy);
  transform: translateY(-160%);
}

.kie-skip-link:focus {
  transform: translateY(0);
}

.kie-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--kie-header);
  border-bottom: 1px solid transparent;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.kie-header.is-scrolled,
.kie-header:focus-within {
  border-color: var(--kie-line);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 0.65rem 2.5rem rgba(3, 40, 85, 0.08);
  backdrop-filter: blur(14px);
}

.kie-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.kie-brand {
  display: inline-flex;
  align-items: center;
  width: 7.6rem;
  height: 4.65rem;
}

.kie-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kie-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.kie-nav > a:not(.kie-button) {
  position: relative;
  color: var(--kie-navy-deep);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.kie-nav > a:not(.kie-button)::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  background: var(--kie-gold);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.kie-nav > a:hover::after,
.kie-nav > a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.kie-language {
  color: var(--kie-teal-dark) !important;
}

.kie-menu-toggle {
  display: none;
}

.kie-button {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 2px solid var(--kie-navy);
  border-radius: 999px;
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: var(--kie-navy);
  box-shadow: 0 0.75rem 1.8rem rgba(7, 54, 111, 0.18);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.kie-button:hover {
  color: #fff;
  background: var(--kie-navy-deep);
  box-shadow: 0 1rem 2rem rgba(7, 54, 111, 0.24);
  transform: translateY(-2px);
}

.kie-button:focus-visible,
.kie-link-button:focus-visible,
.kie-menu-toggle:focus-visible,
.kie-site a:focus-visible,
.kie-site input:focus-visible,
.kie-site select:focus-visible,
.kie-site button:focus-visible,
.kie-site textarea:focus-visible,
.kie-site summary:focus-visible {
  outline: 3px solid var(--kie-gold);
  outline-offset: 4px;
}

.kie-button--small {
  min-height: 2.8rem;
  padding: 0.7rem 1.1rem;
  font-size: 0.8rem;
}

.kie-button--ghost {
  color: var(--kie-navy) !important;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: none;
}

.kie-button--ghost:hover {
  color: #fff !important;
}

/*
 * The form's own submit action.
 *
 * Every other call to action on the site is navy and says "Reserve Your Child's
 * Spot"; this one is the last step rather than another link to it, so it takes
 * the brand's dark teal to tell the two apart. White on #0d7477 measures 5.2:1,
 * past AA.
 */
.kie-button--send {
  border-color: var(--kie-teal-dark);
  background: var(--kie-teal-dark);
  box-shadow: 0 0.75rem 1.8rem rgba(13, 116, 119, 0.22);
}

.kie-button--send:hover {
  border-color: var(--kie-teal);
  background: var(--kie-teal);
  box-shadow: 0 1rem 2rem rgba(13, 116, 119, 0.28);
}

.kie-button--light {
  border-color: #fff;
  color: var(--kie-navy-deep) !important;
  background: #fff;
}

.kie-button--light:hover {
  border-color: var(--kie-gold);
  color: var(--kie-navy-deep) !important;
  background: var(--kie-gold);
}

.kie-link-button {
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  background: none;
  cursor: pointer;
}

.kie-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #e8ece5;
}

.kie-hero__image,
.kie-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kie-hero__image {
  object-fit: cover;
  object-position: center;
  animation: kie-hero-image 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.kie-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100svh;
  align-items: center;
  padding-top: calc(var(--kie-header) + 2rem);
  padding-bottom: 3rem;
}

.kie-hero__copy {
  width: min(47rem, 58%);
}

.kie-hero__lead {
  max-width: 38rem;
  margin-bottom: 0.6rem;
}

.kie-hero__area {
  margin-bottom: 1.75rem;
  font-weight: 800;
}

.kie-eyebrow,
.kie-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kie-eyebrow::before,
.kie-kicker::before {
  width: 0.72rem;
  height: 0.72rem;
  background: var(--kie-gold);
  clip-path: polygon(50% 0, 61% 36%, 100% 38%, 69% 59%, 79% 100%, 50% 75%, 20% 100%, 30% 59%, 0 38%, 39% 36%);
  content: "";
}

.kie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.kie-hero__path {
  position: absolute;
  z-index: 2;
  right: -2rem;
  bottom: -0.5rem;
  width: min(25vw, 20rem);
  fill: var(--kie-gold);
  opacity: 0.75;
  pointer-events: none;
}

.kie-hero__path path:first-child {
  fill: none;
  stroke: #fff;
  stroke-dasharray: 8 10;
  stroke-linecap: round;
  stroke-width: 3;
}

.kie-intro__body {
  padding-top: 2.2rem;
}

.kie-intro__body > p {
  margin-bottom: 2rem;
  font-size: clamp(1.12rem, 1.8vw, 1.35rem);
}

.kie-plain-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--kie-line);
}

.kie-plain-list li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-bottom: 1px solid var(--kie-line);
}

.kie-plain-list li::before {
  position: absolute;
  top: 1.42rem;
  left: 0.25rem;
  width: 0.75rem;
  height: 0.35rem;
  border-bottom: 2px solid var(--kie-teal);
  border-left: 2px solid var(--kie-teal);
  content: "";
  transform: rotate(-45deg);
}

.kie-story--reverse .wp-block-column:first-child {
  order: 2;
}

.kie-story--reverse .wp-block-column:last-child {
  order: 1;
}

.kie-photo {
  position: relative;
  margin: 0;
}

.kie-photo::after {
  position: absolute;
  z-index: -1;
  right: -1.2rem;
  bottom: -1.2rem;
  width: 46%;
  height: 54%;
  border-radius: var(--kie-radius);
  background: var(--kie-gold);
  content: "";
}

.kie-photo img {
  display: block;
  width: 100%;
  min-height: 29rem;
  object-fit: cover;
}

.kie-story__copy p {
  margin-bottom: 1.8rem;
}

.kie-step-number {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--kie-gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  font-weight: 800;
}

.kie-text-link {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  color: var(--kie-navy) !important;
  font-weight: 900;
  text-decoration: none;
}

.kie-text-link span {
  transition: transform 180ms ease;
}

.kie-text-link:hover span {
  transform: translateX(0.35rem);
}

.kie-journey {
  overflow: hidden;
}

.kie-section-heading {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.kie-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kie-steps li {
  position: relative;
  min-height: 12rem;
  padding: 1.5rem 2rem 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.kie-steps li:not(:last-child)::after {
  position: absolute;
  top: -0.33rem;
  right: 1rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--kie-gold);
  content: "";
}

.kie-steps span {
  display: block;
  margin-bottom: 2.8rem;
  color: #70d4d0;
  font-size: 0.8rem;
  font-weight: 900;
}

.kie-steps strong {
  display: block;
  max-width: 12rem;
  color: #fff;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.kie-price-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(7, 54, 111, 0.22);
}

.kie-price-line strong {
  color: var(--kie-navy-deep);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.8rem, 3.5vw, 3.35rem);
}

.kie-price-line span {
  color: var(--kie-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.kie-scholarship {
  padding-left: 1.4rem;
  border-left: 4px solid var(--kie-gold);
  font-weight: 700;
}

.kie-final-cta {
  text-align: center;
}

.kie-final-cta__inner {
  display: grid;
  justify-items: center;
}

.kie-final-cta h2 {
  max-width: 14ch;
}

.kie-final-cta p {
  max-width: 38rem;
  margin-bottom: 2rem;
}

.kie-page-hero {
  overflow: hidden;
}

.kie-page-hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.6rem);
}

.kie-page-hero p {
  max-width: 38rem;
  font-size: clamp(1.1rem, 1.7vw, 1.3rem);
}

.kie-page-hero img {
  width: 100%;
  min-height: 31rem;
  object-fit: cover;
}

.kie-page-hero--plain {
  min-height: 35rem;
  display: flex;
  align-items: center;
}

.kie-page-hero--plain h1 {
  max-width: 13ch;
}

.kie-program-flow {
  display: grid;
  gap: 0;
}

.kie-program-flow__item {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  padding: 2.5rem 0;
  border-top: 1px solid var(--kie-line);
}

.kie-program-flow__item:last-child {
  border-bottom: 1px solid var(--kie-line);
}

.kie-program-flow__item > span {
  color: var(--kie-teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.kie-program-flow__item > .kie-flow-number {
  margin: 0;
  color: var(--kie-teal-dark);
  font-size: 0.9rem;
  font-weight: 900;
}

.kie-program-flow__item h2 {
  margin-bottom: 0.6rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.kie-program-flow__item p {
  max-width: 46rem;
  margin-bottom: 0;
}

.kie-schedule__facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.kie-schedule__facts > div {
  display: grid;
  align-content: center;
}

.kie-schedule__facts strong {
  margin-bottom: 0.35rem;
  color: var(--kie-gold);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.kie-schedule__facts span {
  color: rgba(255, 255, 255, 0.72);
}

.kie-schedule__facts .kie-fact-value {
  max-width: none;
  margin-bottom: 0.35rem;
  color: var(--kie-gold);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.2rem);
}

.kie-schedule__facts .kie-schedule-fact p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.kie-family-note img {
  width: 100%;
  min-height: 29rem;
  object-fit: cover;
}

.kie-pricing__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--kie-line);
  border-bottom: 1px solid var(--kie-line);
}

.kie-pricing article {
  padding: clamp(2rem, 5vw, 4.5rem);
}

.kie-pricing article + article {
  border-left: 1px solid var(--kie-line);
}

.kie-pricing article > span {
  color: var(--kie-teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kie-pricing article > strong {
  display: block;
  margin: 1.5rem 0 0.25rem;
  color: var(--kie-navy-deep);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.kie-pricing h2 {
  margin: 1rem 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.kie-included ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kie-included li {
  position: relative;
  padding: 1rem 0 1rem 2.2rem;
  border-bottom: 1px solid var(--kie-line);
}

.kie-included li::before {
  position: absolute;
  top: 1.25rem;
  left: 0;
  color: var(--kie-gold);
  content: "★";
}

.kie-scholarship-band p {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.78);
}

.kie-note {
  text-align: center;
}

.kie-note > div {
  display: grid;
  justify-items: center;
}

.kie-note h2 {
  max-width: none;
}

.kie-note p {
  max-width: 48rem;
}

.kie-contact__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--kie-line);
  border-bottom: 1px solid var(--kie-line);
}

.kie-contact__grid article {
  min-height: 25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.kie-contact__grid article + article {
  border-left: 1px solid var(--kie-line);
}

.kie-contact__grid h2 {
  max-width: 12ch;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 3.7vw, 3.5rem);
}

.kie-contact__grid p {
  max-width: 32rem;
  margin-bottom: 1.8rem;
}

.kie-contact__form-column {
  justify-content: flex-start !important;
}

.kie-contact-form {
  width: 100%;
  max-width: 40rem;
}

.kie-contact-form > h2 {
  max-width: 15ch;
}

.kie-contact-form > p {
  margin-bottom: 1.8rem;
}

.kie-contact-form .kie-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.kie-faq__list {
  display: grid;
  max-width: 58rem;
  gap: 0;
}

.kie-faq details {
  border-top: 1px solid var(--kie-line);
}

.kie-faq details:last-child {
  border-bottom: 1px solid var(--kie-line);
}

/* Question typography lives on the details block; this is layout only. */
.kie-faq summary {
  display: flex;
  min-height: 5.4rem;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  list-style: none;
}

.kie-faq summary::-webkit-details-marker {
  display: none;
}

.kie-faq summary i {
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
}

.kie-faq summary::after {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  color: var(--kie-teal);
  content: "+";
  font-family: system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 0.8;
  text-align: center;
  transition: transform 180ms ease;
}

.kie-faq details[open] summary::after {
  content: "−";
}

.kie-faq summary i::before,
.kie-faq summary i::after {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--kie-teal);
  content: "";
  transition: transform 180ms ease;
}

.kie-faq summary i::after {
  transform: rotate(90deg);
}

.kie-faq details[open] summary i::after {
  transform: rotate(0);
}

.kie-faq details p {
  max-width: 48rem;
  margin-bottom: 2rem;
}

.kie-reserve-section__grid {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.kie-reserve-section aside {
  position: sticky;
  top: calc(var(--kie-header) + 2rem);
}

.kie-reserve-section aside ol {
  margin: 0 0 2rem;
  padding: 0;
  counter-reset: kie-next;
  list-style: none;
}

.kie-reserve-section aside li {
  position: relative;
  padding: 1rem 0 1rem 2.75rem;
  border-bottom: 1px solid var(--kie-line);
  counter-increment: kie-next;
}

.kie-reserve-section aside li::before {
  position: absolute;
  top: 0.95rem;
  left: 0;
  color: var(--kie-gold);
  content: counter(kie-next, decimal-leading-zero);
  font-size: 0.75rem;
  font-weight: 900;
}

.kie-reservation-form {
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--kie-line);
  border-radius: var(--kie-radius);
  background: var(--kie-cream);
}

.kie-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.kie-field {
  display: grid;
  gap: 0.45rem;
}

.kie-field--full,
.kie-consent,
.kie-form-status,
.kie-reservation-form .kie-button {
  grid-column: 1 / -1;
}

.kie-field label,
.kie-field > span {
  color: var(--kie-navy-deep);
  font-size: 0.83rem;
  font-weight: 850;
}

.kie-field input,
.kie-field select,
.kie-field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(7, 54, 111, 0.25);
  border-radius: 0.75rem;
  color: var(--kie-ink);
  font: inherit;
  background: #fff;
}

.kie-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.kie-consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--kie-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

.kie-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  accent-color: var(--kie-navy);
}

.kie-form-status {
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  font-weight: 750;
}

.kie-form-status--success {
  color: #135d47;
  background: #dff3e9;
}

.kie-form-status--error {
  color: #8c2632;
  background: #f9e2e4;
}

.kie-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
}

.kie-prose {
  max-width: 56rem;
}

.kie-prose h1 {
  max-width: none;
}

.kie-prose h2 {
  max-width: none;
  margin-top: 3rem;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.kie-prose p,
.kie-prose li {
  font-size: 1.05rem;
  line-height: 1.8;
}

.kie-footer {
  padding: 5rem 0 7rem;
  color: rgba(255, 255, 255, 0.78);
  background: #021f43;
}

.kie-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 0.55fr;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.kie-footer__logo {
  width: 8.5rem;
  height: auto;
  filter: brightness(0) invert(1);
}

.kie-footer p {
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.kie-footer__links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
}

.kie-footer__links a,
.kie-footer__links button {
  color: #fff;
}

.kie-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 4rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kie-mobile-cta {
  display: none;
}

.kie-site .site-content > .ast-container {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0;
}

.kie-site #masthead {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--kie-line);
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 0.55rem 2rem rgba(3, 40, 85, 0.06);
  backdrop-filter: blur(14px);
}

.kie-site .ast-primary-header-bar {
  min-height: var(--kie-header);
  border-bottom: 0;
  background: transparent;
}

.kie-site .site-logo-img img {
  width: auto;
  max-height: 4.65rem;
}

.kie-site .main-header-menu > .menu-item > .menu-link {
  color: var(--kie-navy-deep);
  font-size: 0.9rem;
  font-weight: 750;
}

.kie-site .main-header-menu > .menu-item > .menu-link:hover,
.kie-site .main-header-menu > .current-menu-item > .menu-link {
  color: var(--kie-teal-dark);
}

.kie-site .main-header-menu > .kie-language-item > .menu-link {
  color: var(--kie-teal-dark);
}

/* Flag switch: sized to sit on the cap height of the neighbouring menu labels. */
.kie-site .kie-language-item > .menu-link {
  display: inline-flex;
  align-items: center;
}

.kie-site .kie-flag {
  display: block;
  width: 1.5rem;
  height: auto;
  border: 1px solid rgba(7, 54, 111, 0.18);
  border-radius: 0.15rem;
  transition: transform 180ms ease;
}

.kie-site .kie-language-item > .menu-link:hover .kie-flag {
  transform: translateY(-2px);
}

.kie-site .site-footer .kie-flag {
  border-color: rgba(255, 255, 255, 0.35);
}

/*
 * Astra gives every header menu link a line-height as tall as the header bar, so
 * the pill has to opt out of it or it grows to the full header height.
 */
.kie-site .main-header-menu > .kie-nav-cta > .menu-link {
  min-height: 2.6rem;
  height: 2.6rem;
  margin-left: 0.6rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  color: #fff;
  line-height: 1.2;
  background: var(--kie-navy);
  box-shadow: 0 0.75rem 1.8rem rgba(7, 54, 111, 0.18);
}

.kie-site .main-header-menu > .kie-nav-cta > .menu-link:hover,
.kie-site .main-header-menu > .kie-nav-cta.current-menu-item > .menu-link {
  color: #fff;
  background: var(--kie-navy-deep);
}

.kie-site .ast-mobile-header-wrap .ast-primary-header-bar {
  min-height: var(--kie-header);
}

.kie-site .site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #021f43;
}

/*
 * The main row sits on the footer's own dark background. The bottom bar has its
 * own light background set in the Customizer, so it must not be forced
 * transparent here, and its text cannot inherit the light colour used above it.
 */
.kie-site .site-footer .site-primary-footer-wrap {
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
}

.kie-site .site-footer .site-primary-footer-wrap a {
  color: #fff;
}

/*
 * Set the colour rather than inheriting it: the copyright sits inside a paragraph,
 * so `inherit` picks up the muted body colour, which measures 2.9:1 on the light
 * bar and fails AA.
 */
.kie-site .site-footer .site-below-footer-wrap a {
  color: var(--kie-navy-deep);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.kie-site .site-footer .site-below-footer-wrap a:hover {
  color: var(--kie-navy);
}

.kie-site .site-footer .footer-nav-wrap a:hover {
  color: var(--kie-gold);
}

.kie-site .site-footer #astra-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem clamp(1.15rem, 2.5vw, 2.25rem);
}

.kie-site .site-footer .footer-nav-wrap .menu-item {
  margin: 0;
}

.kie-block-content > *,
.kie-block-content > .wp-block-group {
  margin-block: 0;
}

.kie-block-content .wp-block-group,
.kie-block-content .wp-block-columns,
.kie-block-content .wp-block-image {
  margin-top: 0;
  margin-bottom: 0;
}

.kie-price-line > p {
  display: flex;
  width: 100%;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0;
}

.kie-steps {
  counter-reset: kie-block-step;
}

.kie-steps li {
  counter-increment: kie-block-step;
}

.kie-steps li::before {
  display: block;
  margin-bottom: 2.8rem;
  color: #70d4d0;
  content: counter(kie-block-step, decimal-leading-zero);
  font-size: 0.8rem;
  font-weight: 900;
}

.kie-steps li > strong {
  display: block;
  max-width: 12rem;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1.25;
}

.wp-block-button.kie-block-button .wp-block-button__link {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border: 2px solid var(--kie-navy);
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--kie-navy);
  box-shadow: 0 0.75rem 1.8rem rgba(7, 54, 111, 0.18);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.wp-block-button.kie-block-button .wp-block-button__link:hover {
  color: #fff;
  background: var(--kie-navy-deep);
  box-shadow: 0 1rem 2rem rgba(7, 54, 111, 0.24);
  transform: translateY(-2px);
}

.wp-block-button.kie-block-button--light .wp-block-button__link {
  border-color: #fff;
  color: var(--kie-navy-deep);
  background: #fff;
}

.wp-block-button.kie-block-button--light .wp-block-button__link:hover {
  border-color: var(--kie-gold);
  color: var(--kie-navy-deep);
  background: var(--kie-gold);
}

.kie-hero > .kie-hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.kie-hero > .kie-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kie-hero-image 1.1s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.kie-hero > .kie-hero__veil {
  position: absolute;
  z-index: 1;
  inset: 0;
}

.kie-hero .kie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/*
 * WordPress gives every block after the first in a group a top margin of one
 * block gap. The row is centred, so that margin sits inside the centring and
 * drops the second button half a gap below the first. Clearing it on every child
 * covers the button block and the call shortcode alike.
 */
.kie-actions > * {
  margin-block: 0;
}

.kie-page-hero__media img {
  width: 100%;
  min-height: 31rem;
  object-fit: cover;
}

.kie-pricing__grid > .wp-block-column > .kie-price-label {
  color: var(--kie-teal-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kie-pricing__grid > .wp-block-column > .kie-price {
  display: block;
  margin: 1.5rem 0 0.25rem;
  color: var(--kie-navy-deep);
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(4.5rem, 9vw, 8.5rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.9;
}

.kie-pricing__grid > .wp-block-column > h2 {
  margin: 1rem 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

[data-kie-reveal].wp-block-group,
[data-kie-reveal].wp-block-image {
  will-change: opacity, transform;
}

[data-kie-reveal] {
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.25, 1);
}

[data-kie-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes kie-hero-image {
  from {
    opacity: 0.6;
    transform: scale(1.035);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 980px) {
  :root {
    --kie-header: 4.7rem;
  }

  .kie-menu-toggle {
    display: grid;
    width: 2.9rem;
    height: 2.9rem;
    place-content: center;
    gap: 0.3rem;
    border: 1px solid var(--kie-line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
  }

  .kie-menu-toggle > span:not(.screen-reader-text) {
    width: 1.15rem;
    height: 2px;
    background: var(--kie-navy);
  }

  .kie-nav {
    position: fixed;
    z-index: -1;
    top: 0;
    right: 0;
    display: flex;
    width: min(25rem, 88vw);
    height: 100svh;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    padding: 7rem 2.2rem 3rem;
    background: var(--kie-paper);
    box-shadow: -1rem 0 3rem rgba(3, 40, 85, 0.15);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  .kie-nav.is-open {
    transform: translateX(0);
  }

  .kie-nav > a:not(.kie-button) {
    padding-block: 0.6rem;
    font-size: 1.15rem;
  }

  .kie-reserve-section__grid {
    grid-template-columns: 1fr;
  }

  .kie-story__grid,
  .kie-intro__grid,
  .kie-tuition-preview__grid,
  .kie-page-hero__grid,
  .kie-schedule__grid,
  .kie-family-note__inner,
  .kie-included__grid {
    flex-wrap: wrap;
  }

  .kie-story__grid > .wp-block-column,
  .kie-intro__grid > .wp-block-column,
  .kie-tuition-preview__grid > .wp-block-column,
  .kie-page-hero__grid > .wp-block-column,
  .kie-schedule__grid > .wp-block-column,
  .kie-family-note__inner > .wp-block-column,
  .kie-included__grid > .wp-block-column {
    flex-basis: 100% !important;
  }

  .kie-reserve-section aside {
    position: static;
  }

  .kie-story--reverse .wp-block-column {
    order: initial;
  }

  .kie-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .kie-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .kie-footer__grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --kie-shell: min(100% - 2rem, 42rem);
  }

  /* Reserves room for the sticky action so it never covers the last line. */
  body.kie-site {
    padding-bottom: 5.4rem;
  }

  .kie-brand {
    width: 6.3rem;
  }

  .kie-hero {
    min-height: 44rem;
    background: var(--kie-cream);
  }

  /*
   * The photograph drops to the lower half so the copy above it sits on cream
   * rather than on the child's face. The desktop rule pins the figure to the
   * whole hero with two classes, so this override has to match that weight.
   */
  .kie-hero > .kie-hero__image {
    top: 40%;
    bottom: auto;
    height: 60%;
  }

  .kie-hero > .kie-hero__image img {
    object-position: 58% center;
  }

  /*
   * No veil on a phone.
   *
   * The hero's own cream background already covers everything above the
   * photograph, so dropping the veil leaves a clean edge where the image starts
   * instead of the soft wash the gradient produced.
   */
  .kie-hero > .kie-hero__veil {
    display: none;
  }

  /*
   * The masthead is sticky, so it already occupies its own space above the hero.
   * The old value added the header height a second time and pushed the copy on
   * to the photograph.
   */
  .kie-hero__inner {
    min-height: 44rem;
    align-items: stretch;
    padding-top: 30px;
    padding-bottom: 2.5rem;
  }

  /* A column so the call to action can be pushed to the foot of the photograph. */
  .kie-hero__copy {
    display: flex;
    width: 100%;
    flex-direction: column;
  }

  /*
   * Two lines on a phone.
   *
   * The heading carries a fixed 55px set on the block in the editor, which lands
   * as an inline style and cannot scale. Overriding it needs !important; the
   * character cap that forced a third line is dropped at the same time.
   */
  .kie-site .kie-hero h1 {
    max-width: none;
    font-size: clamp(1.7rem, 7.4vw, 2.3rem) !important;
  }

  /*
   * The lead carries a right padding set on the block in the editor, which keeps
   * the measure short beside the photograph on a wide screen. On a phone the
   * photograph is below the copy, so that padding only wastes a third of the
   * line. It is an inline style, hence the !important.
   */
  .kie-hero__lead {
    max-width: none;
    padding-right: 0 !important;
    line-height: 1.4 !important;
  }

  /*
   * Availability reads better as a note under the button than above it.
   *
   * The line sits on the photograph, so the black letters carry a white halo:
   * four hard offsets draw the outline and the soft one underneath fills the
   * diagonals, which keeps the text legible over the wood and the book.
   */
  .kie-hero__area {
    order: 3;
    /* Lines up with the label inside the button above, not with the pill's edge:
       the button's own padding and border set that inset. */
    padding-left: calc(1.35rem + 2px);
    margin-top: 0.9rem;
    margin-bottom: 0;
    text-shadow:
      0 0 4px #fff,
      -1px -1px 0 #fff,
      1px -1px 0 #fff,
      -1px 1px 0 #fff,
      1px 1px 0 #fff;
  }

  .kie-actions .kie-button {
    min-height: 2.9rem;
  }

  /* One action on the small screen, sitting low over the photograph. */
  .kie-hero .kie-actions {
    order: 2;
    margin-top: auto;
  }

  .kie-hero .kie-actions .kie-button--ghost {
    display: none;
  }

  .kie-contact__grid {
    grid-template-columns: 1fr;
  }

  .kie-contact__grid article {
    min-height: auto;
    padding: 3rem 1.25rem;
  }

  .kie-contact__grid article + article {
    border-top: 1px solid var(--kie-line);
    border-left: 0;
  }

  .kie-section {
    padding-block: 5.25rem;
  }

  .kie-photo img {
    min-height: 22rem;
  }

  /*
   * The gold block behind each photograph sits 1.2rem proud of it. On a wide
   * screen the shell's margins absorb that; on a phone the shell nearly fills the
   * viewport, so it pushed 3px past the right edge and gave the page a sideways
   * scroll. Pulled in to clear the margin.
   */
  .kie-photo::after {
    right: -0.6rem;
    bottom: -0.6rem;
  }

  .kie-steps {
    grid-template-columns: 1fr;
  }

  .kie-steps li {
    min-height: auto;
    padding: 1.25rem 0 1.5rem;
  }

  .kie-steps li::after {
    display: none;
  }

  .kie-steps span {
    margin-bottom: 0.75rem;
  }

  .kie-steps strong {
    max-width: none;
  }

  .kie-price-line {
    display: grid;
  }

  .kie-price-line > p {
    display: grid;
  }

  .kie-hero > .kie-hero__image img {
    object-position: 62% center;
  }

  .kie-page-hero {
    padding-top: calc(var(--kie-header) + 3rem);
  }

  .kie-page-hero img {
    min-height: 22rem;
  }

  .kie-program-flow__item {
    grid-template-columns: 2.5rem 1fr;
    gap: 1rem;
  }

  .kie-schedule__facts,
  .kie-pricing__grid,
  .kie-form-grid {
    grid-template-columns: 1fr;
  }

  .kie-pricing article + article {
    border-top: 1px solid var(--kie-line);
    border-left: 0;
  }

  .kie-pricing__grid > .wp-block-column + .wp-block-column {
    border-top: 1px solid var(--kie-line);
    border-left: 0 !important;
  }

  .kie-field--full,
  .kie-consent,
  .kie-form-status,
  .kie-reservation-form .kie-button {
    grid-column: 1;
  }

  .kie-footer__grid {
    grid-template-columns: 1fr;
  }

  .kie-footer__grid > div:first-child {
    grid-column: auto;
  }

  .kie-footer__bottom {
    gap: 0.7rem;
    flex-direction: column;
  }

  /*
   * Hidden until the reader has scrolled past the hero, which carries the same
   * action. `visibility` is delayed out so the button cannot be tapped while it
   * is fading, and so it leaves the tab order when hidden.
   */
  .kie-mobile-cta {
    opacity: 0;
    visibility: hidden;
    transform: translateY(0.5rem);
    transition: opacity 260ms ease, transform 260ms ease, visibility 0s linear 260ms;
    position: fixed;
    z-index: 80;
    right: 0.75rem;
    /* Clear of the screen edge: sitting on it made the button awkward to hit,
       and on a handset with a gesture bar it lands under the system area. */
    bottom: 1.4rem;
    left: 0.75rem;
    display: flex;
    min-height: 3.7rem;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    color: #fff !important;
    font-size: 1rem;
    font-weight: 900;
    text-decoration: none;
    background: var(--kie-navy);
    box-shadow: 0 0.65rem 1.8rem rgba(3, 40, 85, 0.3);
  }

  .kie-mobile-cta.is-visible {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-kie-reveal] {
    opacity: 1;
    transform: none;
  }
}

/*
 * Mobile header and off-canvas menu.
 *
 * 921px is where Astra swaps to its mobile header. Astra Free offers no way to
 * add a button to that row — every builder item that could carry one is a Pro
 * item — so the call action is injected by the theme and placed here.
 */
@media (max-width: 920px) {
  .kie-site .ast-primary-header-bar {
    position: relative;
  }

  /*
   * Centred in the band between the logo and the toggle rather than on the bar
   * itself: the logo reaches past the middle, so a bar-centred button would sit
   * on top of it. The band is set in rem so it tracks the logo, which is sized
   * from a rem max-height and shrinks with it.
   */
  .kie-site .kie-mobile-call {
    position: absolute;
    z-index: 2;
    top: 50%;
    right: 4.8rem;
    left: 12rem;
    display: inline-flex;
    width: max-content;
    margin-inline: auto;
    transform: translateY(-50%);
  }

  /*
   * The reservation item in the off-canvas menu.
   *
   * Astra styles mobile menu links from a dynamic stylesheet printed after this
   * file and with heavier selectors, so colour, width, and spacing all have to be
   * forced; without that the label disappears into the navy pill and the button
   * runs the full width of the drawer.
   */
  .kie-site .ast-mobile-header-content .kie-nav-cta > .menu-link {
    width: 80% !important;
    min-height: 2.8rem;
    /* Astra sets these links to display:block from its own stylesheet, which
       leaves the label sitting on the top edge of the pill. */
    display: flex !important;
    /* In px, not rem: Astra drops the root font size on small screens, so a
       rem value here lands under the 20px the design calls for. */
    margin: 12px auto 22px !important;
    padding: 0.7rem 1.1rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff !important;
    line-height: 1.2;
    background: var(--kie-navy);
    box-shadow: 0 0.75rem 1.8rem rgba(7, 54, 111, 0.18);
  }

  .kie-site .ast-mobile-header-content .kie-nav-cta {
    display: flex;
    justify-content: center;
  }

  /* The flag is an inline SVG in a link that Astra left-aligns like a text item. */
  .kie-site .ast-mobile-header-content .kie-language-item > .menu-link {
    display: flex !important;
    justify-content: center;
    align-items: center;
  }

  /*
   * Astra gives mobile menu links a tall line-height for the tap target, which
   * inside the flex pill pushes the label off centre. The line box is reset so
   * the flex centring can do its job.
   */
  .kie-site .ast-mobile-header-content .kie-nav-cta > .menu-link {
    line-height: 1.2 !important;
  }
}

@media (min-width: 921px) {
  .kie-site .kie-mobile-call {
    display: none;
  }
}

/*
 * Mobile footer.
 *
 * The rows stack at this width, so left alignment leaves the logo, the menu, and
 * the credit line hanging off to one side. Everything is centred instead.
 */
@media (max-width: 920px) {
  .kie-site .site-footer .footer-widget-area,
  .kie-site .site-footer .ast-builder-grid-row,
  .kie-site .site-footer .site-footer-section {
    justify-content: center;
    text-align: center;
  }

  .kie-site .site-footer .kie-footer-logo {
    display: flex;
    justify-content: center;
    margin-inline: auto;
  }

  .kie-site .site-footer #astra-footer-menu {
    justify-content: center;
  }

  .kie-site .site-footer .ast-footer-copyright {
    text-align: center;
  }
}
