/* Crossroads Preschool · built on the Kids Table brand guide */
:root {
  --matcha: #A0C87E;
  --marble: #DDDFE8;
  --lavender: #9F84A4;
  --spyro: #64356A;
  --spyro-deep: #552C5B;
  --dev: #3B3144;
  --teal: #2981A6;
  --teal-deep: #1F6585;
  --sky: #189DD6;
  --yellow: #F9E729;
  --butter: #F7D86E;
  --orange: #E86225;
  --orange-deep: #B0471A;
  --red: #C60800;
  --paper: #F4F4F8;
  --line: #D8D2DC;

  --tint-orange: #FBE7DC;
  --tint-teal: #E1EEF4;
  --tint-purple: #EEE8F0;
  --tint-green: #EAF2E2;
  --tint-yellow: #FCF3D2;

  --decoy: "decoy", "Cooper Black", Georgia, serif;
  --brandon: "brandon-grotesque", "Avenir Next", "Century Gothic", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--dev);
  font-family: var(--brandon);
  font-weight: 400;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--butter); color: var(--spyro); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.skip:focus { top: 12px; }

/* Type */
.decoy { font-family: var(--decoy); font-weight: 700; text-transform: uppercase; line-height: .95; letter-spacing: .005em; }
.lower { font-weight: 700; text-transform: lowercase; }
.eyebrow { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
.section-title { font-size: clamp(34px, 4.6vw, 56px); color: var(--spyro); margin-bottom: 10px; }
.lede { font-size: 19px; max-width: 660px; }

/* Doodles */
.ico { display: block; width: 100%; height: 100%; overflow: visible; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 12px 22px;
  font: 700 17px/1.1 var(--brandon); text-transform: lowercase; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background-color .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-deep); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-deep); }
.btn-purple { background: var(--spyro); color: #fff; }
.btn-purple:hover { background: var(--spyro-deep); }
.btn-lavender { background: var(--lavender); color: #fff; }
.btn-lavender:hover { background: #8a6f90; }
.btn-butter { background: var(--butter); color: var(--spyro); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.sticker { border-radius: 14px; transform: rotate(-3deg); }
.sticker + .sticker { transform: rotate(2deg); }
.sticker:hover { transform: rotate(0) scale(1.04); }
.text-link { font-weight: 700; color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* Header */
.util { background: var(--spyro); color: var(--marble); font-size: 14px; font-weight: 700; letter-spacing: .03em; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.util .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--butter); margin-right: 8px; vertical-align: 1px; }
.util a { text-decoration: none; white-space: nowrap; }
.util a:hover { text-decoration: underline; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--marble); }
.site-header.scrolled { box-shadow: 0 2px 0 rgba(59, 49, 68, .08); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; font-weight: 700; }
.nav-links a { text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--butter); }
.nav-toggle { display: none; background: var(--spyro); color: #fff; border: 0; border-radius: 12px; padding: 10px 14px; font-weight: 700; cursor: pointer; }
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--marble); padding: 8px var(--gutter) 22px; box-shadow: 0 10px 0 rgba(59, 49, 68, .06); }
  .nav-menu.open { display: block; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 20px; }
  .nav-menu .btn { margin-top: 16px; width: 100%; }
  .util .hide-sm { display: none; }
}
@media (min-width: 961px) { .nav-menu { display: flex; align-items: center; gap: 26px; } }

/* Hero */
.hero { position: relative; background: var(--marble); text-align: center; overflow: hidden; padding: 64px 0 110px; }
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(44px, 7.6vw, 100px); color: var(--spyro); margin: 14px auto 18px; max-width: 1000px; }
.hero h1 span { color: var(--teal); display: inline-block; }
.hero p { max-width: 640px; margin: 0 auto 28px; font-size: 21px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.doodle { position: absolute; width: var(--s, 80px); height: var(--s, 80px); animation: bob 5.5s ease-in-out infinite; --r: 6deg; pointer-events: none; }
.doodle:nth-of-type(2n) { animation-duration: 7s; animation-delay: -2.5s; --r: -7deg; }
.doodle:nth-of-type(3n) { animation-duration: 6.2s; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(var(--r)); } }
@media (max-width: 900px) {
  .hero { padding-bottom: 150px; }
  .doodle.hide-sm { display: none; }
  .doodle { top: auto !important; bottom: 22px !important; --s: 64px !important; }
}
.page-hero { position: relative; background: var(--marble); overflow: hidden; padding: 56px 0 72px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 76px); color: var(--spyro); margin: 10px 0 14px; max-width: 820px; }
.page-hero p { max-width: 640px; font-size: 20px; margin: 0; }
.page-hero .doodle { --s: 96px; }
@media (max-width: 900px) { .page-hero { padding-bottom: 120px; } }

/* Values */
.values { background: #fff; padding: 56px 0; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.value { border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.value .i { width: 88px; height: 88px; margin: 0 auto 14px; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.value:hover .i { transform: rotate(-10deg) scale(1.12); }
.value h3 { font-size: 24px; margin-bottom: 6px; }
.value p { margin: 0; font-size: 16.5px; }
.t-orange { background: var(--tint-orange); } .t-orange h3 { color: var(--orange-deep); }
.t-teal { background: var(--tint-teal); } .t-teal h3 { color: var(--teal-deep); }
.t-purple { background: var(--tint-purple); } .t-purple h3 { color: var(--spyro); }
.t-green { background: var(--tint-green); } .t-green h3 { color: #4F7A33; }
.t-yellow { background: var(--tint-yellow); } .t-yellow h3 { color: #8A6A00; }

/* Programs */
.programs { padding: 64px 0; }
.programs .head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; margin-bottom: 26px; }
.filters { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 18px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; color: var(--lavender); margin-bottom: 8px; padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  border: 2px solid #CFC6D3; background: #fff; color: var(--dev); border-radius: 16px;
  padding: 10px 44px 10px 16px; font: 700 18px/1.2 var(--brandon); cursor: pointer; text-align: left;
  transition: border-color .15s, background-color .15s;
}
.choice small { font-weight: 400; font-size: 14px; opacity: .85; }
.choice:hover { border-color: var(--spyro); }
.choice::after { content: ""; position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; border: 2px solid #CFC6D3; background: #fff; }
.choice[aria-pressed="true"] { background: var(--spyro); border-color: var(--spyro); color: #fff; }
.choice[aria-pressed="true"]::after {
  border-color: var(--butter);
  background: var(--butter) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%2364356A' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.tag { display: inline-block; background: var(--butter); color: var(--spyro); border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-left: 6px; vertical-align: 2px; }
.choice[aria-pressed="true"] .tag { background: #fff; }
.summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; border-top: 2px dashed var(--line); padding-top: 14px; margin-bottom: 16px; font-size: 17px; }
.summary b { color: var(--spyro); }
.row { display: grid; grid-template-columns: 84px 1fr auto; gap: 22px; align-items: center; background: #fff; border-radius: var(--radius); padding: 18px 24px; margin-bottom: 12px; }
.badge { position: relative; width: 74px; height: 74px; display: flex; align-items: center; justify-content: center; }
.badge svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.badge b { position: relative; font-family: var(--decoy); font-weight: 700; font-size: 40px; color: #fff; line-height: 1; }
.badge.small b { font-size: 26px; }
.row .age { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--lavender); }
.row h3 { font-size: 23px; color: var(--spyro); line-height: 1.2; }
.sched { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.sched li { background: var(--paper); border-radius: 10px; padding: 3px 10px; font-size: 15px; }
.row .right { text-align: right; }
.price { font-family: var(--decoy); font-weight: 700; font-size: 34px; color: var(--teal); line-height: 1; white-space: nowrap; }
.price small { font-family: var(--brandon); font-size: 15px; color: var(--dev); font-weight: 400; }
.row .right .btn { margin-top: 10px; padding: 9px 18px; font-size: 16px; }
.row details { grid-column: 2 / -1; font-size: 16px; }
.row summary { cursor: pointer; font-weight: 700; color: var(--teal); width: max-content; max-width: 100%; }
.meta { margin: 8px 0 0; padding: 0; list-style: none; }
.meta li { padding: 6px 0; border-top: 1px dashed var(--marble); }
.soon { background: #fff; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; }
.soon .i { width: 90px; height: 90px; }
.soon h3 { font-size: 24px; color: var(--spyro); margin-bottom: 4px; }
.fine { font-size: 15px; margin-top: 14px; }
@media (max-width: 680px) {
  .choices { display: grid; grid-template-columns: 1fr 1fr; }
  .choice { padding-right: 38px; font-size: 17px; }
  .choice::after { right: 10px; }
  .row { grid-template-columns: 58px 1fr; gap: 14px; padding: 16px; }
  .badge { width: 58px; height: 58px; } .badge b { font-size: 30px; } .badge.small b { font-size: 21px; }
  .row .right { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .row .right .btn { margin: 0; }
  .row details { grid-column: 1 / -1; }
  .soon { grid-template-columns: 1fr; text-align: center; } .soon .i { margin: 0 auto; }
}

/* Visit / campuses */
.visit { background: #fff; padding: 64px 0; }
.campus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.campus { border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.campus .photo { aspect-ratio: 16 / 9; background: var(--marble) center / cover no-repeat; }
.campus .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.campus h3 { font-size: 30px; }
.campus .addr { display: flex; gap: 10px; align-items: flex-start; }
.campus .addr .i { width: 30px; height: 30px; flex: none; }
.campus .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.campus.west { background: var(--tint-teal); } .campus.west h3 { color: var(--teal-deep); }
.campus.south { background: var(--tint-purple); } .campus.south h3 { color: var(--spyro); }

/* Enroll band */
.enroll { background: var(--teal); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.enroll .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.enroll h2 { font-size: clamp(34px, 5vw, 60px); color: var(--butter); margin-bottom: 12px; }
.enroll .card { background: #fff; color: var(--dev); border-radius: var(--radius); padding: 24px; display: grid; gap: 10px; }
.enroll .card .btn { width: 100%; }
.enroll .doodle { --s: 120px; opacity: .9; }
@media (max-width: 820px) { .enroll .wrap { grid-template-columns: 1fr; } .enroll .doodle { display: none; } }

/* Family band */
.family { background: var(--spyro); color: #fff; }
.family .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.family h2 { font-size: clamp(32px, 4.2vw, 52px); color: var(--butter); margin-bottom: 14px; }
.family-links { display: grid; gap: 12px; }
.family-links a { display: flex; gap: 16px; align-items: center; background: rgba(255, 255, 255, .09); border-radius: 20px; padding: 16px 18px; text-decoration: none; transition: background-color .15s; }
.family-links a:hover { background: rgba(255, 255, 255, .17); }
.family-links .i { width: 50px; height: 50px; flex: none; }
.family-links b { display: block; font-size: 19px; }
.family-links span span { opacity: .85; font-size: 16px; }
@media (max-width: 820px) { .family .wrap { grid-template-columns: 1fr; } }

/* Approach page */
.areas { padding: 64px 0; background: #fff; }
.area-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; margin-top: 26px; }
.area { border-radius: var(--radius); padding: 22px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.area .i { width: 64px; height: 64px; }
.area h3 { font-size: 22px; margin-bottom: 4px; }
.area p { margin: 0; font-size: 16.5px; }
.foundations { padding: 64px 0; }
.foundation { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; margin-top: 40px; }
.foundation:nth-child(even) .pic { order: 2; }
.foundation .pic { border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%; aspect-ratio: 4 / 3; background: var(--marble) center / cover no-repeat; }
.foundation:nth-child(even) .pic { border-radius: 55% 45% 46% 54% / 44% 56% 48% 52%; }
.foundation h3 { font-size: clamp(26px, 3vw, 36px); color: var(--spyro); margin-bottom: 10px; }
.foundation ul { padding-left: 20px; margin: 0; }
@media (max-width: 760px) { .foundation { grid-template-columns: 1fr; gap: 18px; } .foundation:nth-child(even) .pic { order: 0; } }
.goals { background: var(--butter); padding: 64px 0; }
.goals h2 { color: var(--spyro); }
.goal-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; counter-reset: g; }
.goal-list li { background: #fff; border-radius: 20px; padding: 18px 20px 18px 70px; position: relative; font-size: 18px; counter-increment: g; }
.goal-list li::before { content: counter(g); position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--spyro); color: var(--butter); font: 700 20px/38px var(--decoy); text-align: center; }

/* Team page */
.team { padding: 56px 0; }
.team + .team { padding-top: 0; }
.team h2 { font-size: clamp(30px, 3.8vw, 44px); color: var(--spyro); margin-bottom: 20px; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.person { background: #fff; border-radius: var(--radius); padding: 18px; text-align: center; }
.person .photo { width: 150px; height: 150px; margin: 4px auto 14px; border-radius: 46% 54% 50% 50% / 55% 47% 53% 45%; background: var(--marble) center / cover no-repeat; position: relative; }
.person .photo.none { display: flex; align-items: center; justify-content: center; }
.person .photo.none svg { width: 72px; height: 72px; }
.person h3 { font-size: 21px; color: var(--spyro); line-height: 1.2; }
.person .role { font-size: 15px; margin: 4px 0 10px; }
.person .campus-tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 6px; padding: 2px 8px; margin-bottom: 8px; }
.campus-tag.west { background: var(--tint-teal); color: var(--teal-deep); }
.campus-tag.south { background: var(--tint-purple); color: var(--spyro); }
.campus-tag.both { background: var(--tint-yellow); color: #7A5C00; }
.person a { font-weight: 700; color: var(--teal); font-size: 15px; word-break: break-word; }

/* Footer */
.site-footer { background: var(--dev); color: var(--marble); padding: 48px 0 28px; font-size: 16px; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer img { height: 30px; width: auto; margin-bottom: 14px; }
.site-footer h4 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--butter); margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.ndp { font-size: 13.5px; opacity: .8; border-top: 1px solid rgba(221, 223, 232, .2); padding-top: 18px; margin: 32px 0 0; }
.copyright { font-size: 13.5px; opacity: .7; margin-top: 10px; }
@media (max-width: 820px) { .site-footer .cols { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .doodle { animation: none; }
  .btn, .value .i, .sticker { transition: none; }
}
