:root {
  --navy: #11237a;
  --navy-deep: #08154e;
  --blue: #0c79d8;
  --sky: #55c5e5;
  --sky-pale: #eaf9fd;
  --yellow: #ffd21f;
  --yellow-pale: #fff8d8;
  --red: #d80c1c;
  --red-pale: #fff0f1;
  --green: #188f3e;
  --green-pale: #edf9f0;
  --ink: #162043;
  --muted: #626b82;
  --cream: #fffaf0;
  --white: #ffffff;
  --line: rgba(17, 35, 122, 0.12);
  --shadow: 0 24px 70px rgba(17, 35, 122, 0.11);
  --radius: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Trebuchet MS", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

svg {
  width: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button,
summary,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

.shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 9vw, 8.5rem);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.skip-link:focus {
  top: 1rem;
}

.announcement {
  position: relative;
  z-index: 60;
  background: var(--navy-deep);
  color: white;
  font-size: 0.82rem;
}

.announcement-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.announcement p {
  margin: 0;
}

.announcement strong {
  color: var(--yellow);
}

.announcement a {
  font-weight: 800;
}

.announcement a:hover {
  color: var(--yellow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 92px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 22px rgba(17, 35, 122, 0.05);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  color: var(--navy);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 0.18rem;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
}

.desktop-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.8rem);
}

.desktop-nav a {
  position: relative;
  padding-block: 0.65rem;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.3rem;
  height: 3px;
  border-radius: 99px;
  background: var(--sky);
  transition: right 180ms ease;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  right: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.72rem 1rem;
  border-radius: 0.85rem;
  background: var(--sky);
  color: var(--navy-deep);
  font-size: 0.92rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.header-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(12, 121, 216, 0.17);
}

.mobile-menu {
  display: none;
  margin-left: auto;
  position: relative;
}

.mobile-menu summary {
  list-style: none;
  cursor: pointer;
  width: 46px;
  height: 46px;
  padding: 0.72rem;
  border-radius: 0.75rem;
  background: var(--sky-pale);
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  height: 2px;
  margin: 4px 0;
  border-radius: 99px;
  background: var(--navy);
}

.mobile-menu nav {
  position: absolute;
  right: 0;
  top: 3.4rem;
  min-width: 245px;
  display: grid;
  gap: 0.1rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  box-shadow: var(--shadow);
}

.mobile-menu nav a {
  padding: 0.78rem 0.95rem;
  border-radius: 0.7rem;
  font-weight: 800;
}

.mobile-menu nav a:hover {
  background: var(--sky-pale);
}

.mobile-menu nav .mobile-menu-cta {
  margin-top: 0.35rem;
  background: var(--yellow);
  color: var(--navy-deep);
}

.hero {
  position: relative;
  min-height: calc(100svh - 130px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -4;
  object-fit: cover;
  object-position: 55% 55%;
}

.hero-scrim {
  z-index: -3;
  background: linear-gradient(90deg, rgba(5, 15, 58, 0.94) 0%, rgba(9, 24, 75, 0.78) 42%, rgba(9, 24, 75, 0.28) 72%, rgba(9, 24, 75, 0.08) 100%);
}

.hero-orb {
  position: absolute;
  z-index: -2;
  border-radius: 50%;
  opacity: 0.88;
}

.hero-orb-one {
  right: -80px;
  top: 50px;
  width: 190px;
  height: 190px;
  border: 28px solid var(--yellow);
}

.hero-orb-two {
  right: 16%;
  bottom: -65px;
  width: 150px;
  height: 150px;
  background: var(--sky);
  opacity: 0.34;
}

.hero-content {
  padding-block: 6rem 5.2rem;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  color: var(--blue);
  font-size: 0.79rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--yellow);
}

.section-kicker.light {
  color: var(--yellow);
}

.hero h1,
.section h2,
.tour-section h2 {
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero h1 {
  max-width: 750px;
  margin: 0;
  font-size: clamp(3.6rem, 7.4vw, 7rem);
  line-height: 0.91;
}

.hero-copy {
  max-width: 610px;
  margin: 1.6rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  line-height: 1.6;
}

.hero-actions,
.tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1.25rem;
  border-radius: 0.9rem;
  font-weight: 900;
  line-height: 1.2;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary,
.button-yellow {
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: 0 12px 30px rgba(255, 210, 31, 0.25);
}

.button-primary:hover,
.button-yellow:hover {
  background: #ffe365;
}

.button-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(6px);
}

.button-secondary:hover {
  background: white;
  color: var(--navy);
}

.button-navy {
  background: var(--navy);
  color: white;
}

.button-navy:hover {
  background: var(--navy-deep);
}

.hero-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.15rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.92rem;
  font-weight: 750;
}

.hero-details span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-strip {
  position: relative;
  z-index: 4;
  background: white;
  box-shadow: 0 12px 38px rgba(17, 35, 122, 0.07);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-grid > div {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 112px;
  padding: 1.35rem 1.6rem;
  border-right: 1px solid var(--line);
}

.trust-grid > div:last-child {
  border-right: 0;
}

.trust-grid > div::before {
  content: "";
  position: absolute;
  left: 1.6rem;
  top: 1.2rem;
  width: 28px;
  height: 4px;
  border-radius: 99px;
  background: var(--yellow);
}

.trust-grid > div:nth-child(2)::before { background: var(--sky); }
.trust-grid > div:nth-child(3)::before { background: var(--green); }
.trust-grid > div:nth-child(4)::before { background: var(--red); }

.trust-grid strong {
  margin-top: 0.45rem;
  color: var(--navy);
  font-size: 1rem;
}

.trust-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.about-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(85, 197, 229, 0.19), transparent 22rem),
    var(--cream);
}

.about-section::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: 5%;
  width: 300px;
  height: 300px;
  border: 50px solid rgba(255, 210, 31, 0.18);
  border-radius: 50%;
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.photo-stack {
  position: relative;
  min-height: 630px;
}

.photo-main {
  width: min(92%, 475px);
  height: 630px;
  overflow: hidden;
  border: 10px solid white;
  border-radius: 12rem 12rem 2.3rem 2.3rem;
  box-shadow: var(--shadow);
  transform: rotate(-1.8deg);
}

.photo-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-badge {
  position: absolute;
  right: 0;
  bottom: 3.5rem;
  width: 215px;
  min-height: 190px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 1.2rem;
  border: 8px solid white;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-deep);
  box-shadow: 0 18px 46px rgba(17, 35, 122, 0.18);
  text-align: center;
  transform: rotate(4deg);
}

.badge-spark {
  color: var(--red);
  font-size: 1.55rem;
}

.experience-badge strong {
  margin-top: 0.1rem;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
}

.experience-badge span:last-child {
  max-width: 145px;
  font-size: 0.79rem;
  font-weight: 800;
  line-height: 1.35;
}

.section-copy h2,
.section-heading h2,
.curriculum-copy h2,
.tour-section h2 {
  margin: 0;
  color: var(--navy-deep);
  font-size: clamp(2.55rem, 5vw, 4.7rem);
  line-height: 1.02;
}

.section-copy > p:not(.section-kicker),
.section-heading > p:not(.section-kicker),
.section-heading > div + p {
  color: var(--muted);
}

.lead {
  font-size: 1.14rem;
  line-height: 1.72;
}

.values-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.values-mini > div {
  display: grid;
  grid-template-columns: 12px 1fr;
  column-gap: 0.7rem;
  align-items: center;
}

.values-mini strong {
  color: var(--navy);
}

.values-mini small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  grid-row: 1 / span 2;
}

.dot-red { background: var(--red); }
.dot-blue { background: var(--blue); }
.dot-green { background: var(--green); }
.dot-yellow { background: var(--yellow); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--navy);
  font-weight: 900;
}

.text-link span {
  color: var(--red);
  transition: transform 180ms ease;
}

.text-link:hover span {
  transform: translateX(4px);
}

.programs-section {
  position: relative;
  background: white;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 3.2rem;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading > p:last-child {
  margin: 1rem auto 0;
  max-width: 650px;
  font-size: 1.05rem;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.05rem;
}

.program-card {
  position: relative;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  padding: 1rem 1.6rem 1.7rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.program-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow);
}

.program-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -35px;
  width: 120px;
  height: 120px;
  border: 20px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
}

.program-infant { background: var(--yellow-pale); color: #977500; }
.program-toddler { background: var(--red-pale); color: var(--red); }
.program-preschool { background: var(--sky-pale); color: var(--blue); }
.program-school { background: var(--green-pale); color: var(--green); }

.program-number {
  position: absolute;
  right: 0.7rem;
  top: 0.7rem;
  padding: 0.36rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  box-shadow: 0 7px 20px rgba(8, 21, 78, 0.14);
}

.program-photo {
  position: relative;
  height: 175px;
  flex: 0 0 auto;
  margin-bottom: 1.35rem;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.15rem 1.15rem 1.15rem 0.4rem;
  background: white;
  box-shadow: 0 12px 28px rgba(17, 35, 122, 0.1);
}

.program-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.program-card:hover .program-photo img {
  transform: scale(1.045);
}

.program-infant .program-photo img {
  object-position: 58% 47%;
}

.program-toddler .program-photo img {
  object-position: 48% 48%;
}

.program-preschool .program-photo img {
  object-position: center 47%;
}

.program-school .program-photo img {
  object-position: center 34%;
}

.program-age {
  margin: 0 0 0.35rem;
  color: currentColor;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.program-card h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.75rem;
}

.program-card > p:not(.program-age) {
  margin: 0.8rem 0 1.3rem;
  color: #4f5870;
  font-size: 0.92rem;
}

.program-card a {
  position: relative;
  z-index: 2;
  margin-top: auto;
  color: var(--navy-deep);
  font-size: 0.82rem;
  font-weight: 900;
}

.program-card a span {
  color: currentColor;
}

.program-note {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1.15rem;
  padding: 1.3rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: var(--cream);
}

.note-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-weight: 900;
}

.program-note > div {
  display: grid;
}

.program-note strong {
  color: var(--navy-deep);
}

.program-note span:not(.note-icon) {
  color: var(--muted);
  font-size: 0.88rem;
}

.curriculum-section {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: white;
}

.curriculum-section::before {
  content: "";
  position: absolute;
  left: -140px;
  top: -140px;
  width: 340px;
  height: 340px;
  border: 60px solid rgba(85, 197, 229, 0.15);
  border-radius: 50%;
}

.curriculum-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.curriculum-copy h2 {
  color: white;
}

.curriculum-copy .lead {
  color: rgba(255, 255, 255, 0.77);
}

.subject-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
  margin: 1.8rem 0 2.2rem;
  padding: 0;
  list-style: none;
}

.subject-list li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
  font-weight: 700;
}

.subject-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.learning-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 260px 260px;
  gap: 0.9rem;
}

.learning-gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #142763;
}

.learning-gallery .gallery-feature {
  grid-row: 1 / span 2;
}

.learning-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.learning-gallery figure:hover img {
  transform: scale(1.035);
}

.learning-gallery figcaption {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.45rem 0.75rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-deep);
  font-size: 0.74rem;
  font-weight: 900;
}

.parent-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(255, 210, 31, 0.22), transparent 24rem),
    var(--cream);
}

.parent-heading {
  max-width: none;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}

.parent-heading > p {
  margin: 0 0 0.4rem;
  max-width: 500px;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.resource-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 15px 45px rgba(17, 35, 122, 0.06);
}

.resource-card.resource-featured {
  background: var(--navy);
  color: white;
}

.resource-icon {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 900;
}

.resource-blue { background: var(--sky-pale); color: var(--blue); }
.resource-yellow { background: var(--yellow-pale); color: #9a7700; }
.resource-red { background: var(--yellow); color: var(--navy-deep); }

.resource-card h3 {
  margin: 1.2rem 0 0.55rem;
  color: var(--navy-deep);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.35rem;
}

.resource-featured h3 {
  color: white;
}

.resource-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.resource-featured p {
  color: rgba(255, 255, 255, 0.75);
}

.resource-card a {
  margin-top: auto;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 900;
}

.resource-featured a {
  color: var(--yellow);
}

.locations-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: white;
}

.locations-section .section-heading h2,
.locations-section .section-heading p:last-child {
  color: white;
}

.locations-section .section-heading p:last-child {
  opacity: 0.74;
}

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

.location-card {
  overflow: hidden;
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(4, 12, 48, 0.24);
}

.location-top {
  min-height: 135px;
  display: grid;
  align-content: end;
  padding: 1.6rem;
  color: var(--navy-deep);
}

.location-wyncote {
  background: linear-gradient(120deg, var(--yellow), #ffe874);
}

.location-philly {
  background: linear-gradient(120deg, var(--sky), #b6ebf7);
}

.location-top span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.location-top strong {
  margin-top: 0.2rem;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: 1.8rem;
}

.location-body {
  padding: 1.7rem;
}

.location-body address {
  min-height: 86px;
  color: var(--navy-deep);
  font-size: 1rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.55;
}

.location-body dl {
  margin: 1rem 0 1.4rem;
  border-top: 1px solid var(--line);
}

.location-body dl div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.location-body dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.location-body dd {
  margin: 0;
  color: var(--navy-deep);
  font-weight: 800;
}

.location-body dd a:hover {
  color: var(--blue);
}

.licensing-note {
  max-width: 850px;
  margin: 1.8rem auto 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  text-align: center;
}

.tour-section {
  position: relative;
  min-height: 610px;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.tour-section > img,
.tour-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.tour-section > img {
  object-fit: cover;
  object-position: center 55%;
}

.tour-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 15, 58, 0.95), rgba(5, 15, 58, 0.7) 54%, rgba(5, 15, 58, 0.18));
}

.tour-content {
  padding-block: 6rem;
  color: white;
}

.tour-content h2 {
  max-width: 750px;
  color: white;
  font-size: clamp(2.8rem, 6vw, 5.6rem);
}

.tour-content > p:not(.section-kicker) {
  max-width: 610px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.08rem;
}

.tour-email {
  align-self: center;
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--sky);
  text-underline-offset: 0.3rem;
}

.site-footer {
  padding-block: 4.5rem 1.4rem;
  background: #050d35;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-logo .brand-copy {
  color: white;
}

.footer-brand > p {
  margin: 1rem 0 0.45rem;
  color: rgba(255, 255, 255, 0.67);
}

.footer-brand > a:not(.brand) {
  color: var(--yellow);
  font-weight: 800;
}

.footer-grid h2 {
  margin: 0 0 1rem;
  color: var(--yellow);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-grid nav {
  display: grid;
  gap: 0.55rem;
}

.footer-grid nav a,
.footer-grid > div > p,
.footer-grid > div > a {
  color: rgba(255, 255, 255, 0.69);
  font-size: 0.86rem;
}

.footer-grid nav a:hover,
.footer-grid > div > a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3.3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
}

.footer-bottom p {
  margin: 0;
}

.tour-page {
  background: #f7fbff;
}

.tour-page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 76% 35%, rgba(85, 197, 229, 0.25), transparent 18rem),
    var(--navy-deep);
  color: white;
  isolation: isolate;
}

.tour-page-heading {
  position: relative;
  z-index: 2;
  max-width: 930px;
  margin-inline: auto;
  text-align: center;
}

.tour-page-heading .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.tour-page-heading .back-link:hover {
  color: var(--yellow);
}

.tour-page-heading h1 {
  max-width: 900px;
  margin: 0 auto;
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(3rem, 7vw, 6.3rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.tour-page-heading > p:last-child {
  max-width: 670px;
  margin: 1.35rem auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.08rem;
}

.tour-page-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.tour-page-orb-yellow {
  left: -70px;
  bottom: -75px;
  width: 210px;
  height: 210px;
  border: 34px solid rgba(255, 210, 31, 0.85);
}

.tour-page-orb-blue {
  right: -35px;
  top: 55px;
  width: 145px;
  height: 145px;
  background: rgba(85, 197, 229, 0.42);
}

.scheduler-section {
  padding-block: clamp(4rem, 7vw, 7rem);
  background:
    radial-gradient(circle at 10% 90%, rgba(255, 210, 31, 0.18), transparent 21rem),
    #f7fbff;
}

.scheduler-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(560px, 1.35fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.tour-guide {
  position: sticky;
  top: 120px;
  padding-top: 1rem;
}

.tour-guide h2 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.tour-steps {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 2.4rem;
  padding: 0;
  list-style: none;
}

.tour-steps li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.tour-steps li > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 900;
}

.tour-steps li:nth-child(2) > span {
  background: var(--sky);
}

.tour-steps li:nth-child(3) > span {
  background: var(--green);
  color: white;
}

.tour-steps strong {
  color: var(--navy-deep);
}

.tour-steps p {
  margin: 0.18rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.tour-help-card {
  display: grid;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: white;
  box-shadow: 0 14px 40px rgba(17, 35, 122, 0.07);
}

.tour-help-card strong {
  color: var(--navy-deep);
}

.tour-help-card p {
  margin: 0.45rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.tour-help-card p a,
.tour-help-card > a {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 850;
}

.tour-help-card > a + a {
  margin-top: 0.3rem;
}

.scheduler-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: white;
  box-shadow: 0 28px 80px rgba(17, 35, 122, 0.12);
}

.scheduler-card-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, var(--sky-pale), white 70%);
}

.scheduler-card-head > div {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.scheduler-card-head strong {
  color: var(--navy-deep);
}

.scheduler-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.live-dot {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 143, 62, 0.12);
}

.calendly-inline-widget {
  width: 100%;
  background: white;
}

.scheduler-card-foot {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.4rem;
  border-top: 1px solid var(--line);
  background: var(--cream);
  color: var(--muted);
  font-size: 0.78rem;
}

.scheduler-card-foot a,
.scheduler-fallback a {
  color: var(--blue);
  font-weight: 900;
}

.scheduler-fallback {
  margin: 0;
  padding: 1.2rem;
  text-align: center;
}

.tour-page-footer {
  padding-block: 2.2rem;
  background: #050d35;
  color: white;
}

.tour-page-footer .shell {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.tour-page-footer p {
  margin: 0 auto 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
}

.tour-page-footer > div > a:last-child {
  color: var(--yellow);
  font-size: 0.85rem;
  font-weight: 850;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 10%, rgba(85, 197, 229, 0.25), transparent 24rem), var(--cream);
  text-align: center;
}

.error-page main {
  width: min(650px, 100%);
}

.error-page img {
  width: 140px;
  height: 140px;
  margin: 0 auto 1.4rem;
  object-fit: contain;
}

.error-page h1 {
  margin: 0;
  color: var(--navy-deep);
  font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

.error-page p:not(.section-kicker) {
  margin: 1rem 0 1.6rem;
  color: var(--muted);
}

@media (max-width: 1050px) {
  .brand-copy { display: none; }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .program-card { min-height: 455px; }
  .footer-grid { grid-template-columns: 1.2fr 0.8fr 1fr; }
  .footer-grid > div:last-child { grid-column: 3; }
  .scheduler-grid { grid-template-columns: minmax(230px, 0.55fr) minmax(500px, 1.45fr); gap: 2rem; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  .desktop-nav,
  .header-phone { display: none; }
  .mobile-menu { display: block; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid > div:nth-child(2) { border-right: 0; }
  .trust-grid > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid,
  .curriculum-grid { grid-template-columns: 1fr; }
  .photo-stack { min-height: 590px; }
  .photo-main { height: 590px; }
  .curriculum-copy { max-width: 720px; }
  .parent-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .resource-grid { grid-template-columns: 1fr; }
  .resource-card { min-height: 250px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid > div:last-child { grid-column: auto; }
  .scheduler-grid { grid-template-columns: 1fr; }
  .tour-guide { position: static; max-width: 700px; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 1180px); }
  .announcement-inner { justify-content: center; }
  .announcement a { display: none; }
  .site-header { height: 78px; }
  .brand img { width: 60px; height: 60px; }
  .hero { min-height: calc(100svh - 116px); align-items: end; }
  .hero-image { object-position: 54% center; }
  .hero-scrim { background: linear-gradient(0deg, rgba(5, 15, 58, 0.97) 0%, rgba(7, 19, 66, 0.7) 64%, rgba(7, 19, 66, 0.25) 100%); }
  .hero-content { padding-block: 10.5rem 3rem; }
  .hero h1 { font-size: clamp(3.05rem, 15vw, 4.8rem); }
  .hero-copy { font-size: 1rem; }
  .hero-actions { display: grid; }
  .hero-details { gap: 0.65rem; display: grid; }
  .hero-orb-one { width: 110px; height: 110px; border-width: 18px; right: -45px; top: 60px; }
  .hero-orb-two { display: none; }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-grid > div { min-height: 98px; border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-grid > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .trust-grid > div:last-child { border-bottom: 0; }
  .photo-stack { min-height: 520px; }
  .photo-main { width: calc(100% - 25px); height: 520px; border-radius: 8rem 8rem 1.8rem 1.8rem; }
  .experience-badge { right: -5px; bottom: 1rem; width: 165px; min-height: 150px; border-width: 6px; }
  .experience-badge strong { font-size: 1.1rem; }
  .experience-badge span:last-child { max-width: 120px; font-size: 0.7rem; }
  .values-mini { grid-template-columns: 1fr; }
  .program-grid { grid-template-columns: 1fr; }
  .program-card { min-height: 445px; }
  .program-note { grid-template-columns: auto 1fr; }
  .program-note .button { grid-column: 1 / -1; }
  .subject-list { grid-template-columns: 1fr; }
  .learning-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 180px; }
  .learning-gallery .gallery-feature { grid-column: 1 / -1; grid-row: 1; }
  .location-grid { grid-template-columns: 1fr; }
  .location-body address { min-height: auto; }
  .tour-section { min-height: 620px; align-items: end; }
  .tour-overlay { background: linear-gradient(0deg, rgba(5, 15, 58, 0.97), rgba(5, 15, 58, 0.72) 68%, rgba(5, 15, 58, 0.24)); }
  .tour-content { padding-block: 8rem 3.6rem; }
  .tour-actions { display: grid; }
  .tour-email { justify-self: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .tour-page-hero { padding-block: 4rem; }
  .tour-page-heading h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .tour-page-orb-yellow { width: 130px; height: 130px; border-width: 22px; left: -50px; }
  .tour-page-orb-blue { width: 90px; height: 90px; right: -35px; top: 35px; }
  .scheduler-section { padding-block: 3rem; }
  .scheduler-card { margin-inline: -8px; border-radius: 1.1rem; }
  .scheduler-card-head { align-items: flex-start; flex-direction: column; }
  .scheduler-card-foot { align-items: flex-start; flex-direction: column; }
  .calendly-inline-widget { min-width: 0 !important; height: 720px !important; }
  .tour-page-footer .shell { align-items: flex-start; flex-direction: column; }
  .tour-page-footer p { margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
