/* Kidz Corner — production build of reference/design-preview.html */
/* Self-hosted Google Fonts (latin subset) */
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:400;font-display:swap;src:url(fonts/atkinson-hyperlegible-400.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}
@font-face{font-family:'Atkinson Hyperlegible';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/atkinson-hyperlegible-700.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}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:600;font-display:swap;src:url(fonts/zilla-slab-600.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}
@font-face{font-family:'Zilla Slab';font-style:normal;font-weight:700;font-display:swap;src:url(fonts/zilla-slab-700.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{
  --red:#D7261E;--blue:#1B6FD1;--green:#1E7E33;--yellow:#FFC20E;--purple:#7340B0;--orange:#EE7620;
  --navy:#1B2A4A;--sky:#E8F3FF;--cream:#FFF7DE;--wood:#F7E8CB;--footer:#13203A;
  --muted:#3A4A6B;--line:#E4E9F2;--field:#A9B6CC;
  --slab:'Zilla Slab',Georgia,serif;
  --sans:'Atkinson Hyperlegible',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
body{margin:0;background:#fff;font-family:var(--sans);color:var(--navy);font-size:18px;line-height:1.55;overflow-x:clip}
img{max-width:100%}
a{color:var(--blue)}a:hover{color:#124f97}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
h1,h2,h3{font-family:var(--slab);font-weight:700}
.skip{position:absolute;left:16px;top:-100px;z-index:100;background:var(--navy);color:#fff;padding:12px 18px;border-radius:10px;font-weight:700}
.skip:focus{top:12px;color:#fff}
.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}

.wrap{max-width:1200px;margin:0 auto;padding:0 32px}
.stack{display:flex;flex-direction:column}
.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:48px;align-items:center}
.three{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 40px}
.h2{font-size:44px;line-height:1.1;margin:0}
.lede{margin:0}
.cloud{position:absolute;left:0;width:100%;display:block;pointer-events:none}

/* Header */
.site-header{background:#fff;border-bottom:1px solid var(--line)}
.site-header .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;height:84px}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--navy)}
.brand:hover{color:var(--navy)}
.brand img{width:48px;height:48px;border-radius:10px}
.brand span{font-family:var(--slab);font-weight:700;font-size:26px}
.navlinks{display:flex;gap:32px;font-weight:700;font-size:17px}
.navlinks a{color:var(--navy);text-decoration:none}
.navlinks a:hover{color:var(--blue)}
.header-actions{display:flex;align-items:center;gap:20px}
.callnav{font-weight:700;color:var(--navy);text-decoration:none}
.btn{font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.btn-red{background:var(--red);color:#fff}
.btn-red:hover{background:#b81f18;color:#fff}
.btn-sm{padding:12px 22px;border-radius:12px;min-height:44px}

/* Hero */
.hero{background:var(--sky);position:relative;padding:56px 0 140px}
.hero-copy{display:flex;flex-direction:column;gap:24px}
.hero-logo{width:100%;max-width:440px;height:auto}
.h1{font-size:54px;line-height:1.05;margin:0;letter-spacing:-0.5px}
.hero-intro{margin:0;font-size:20px;max-width:520px}
.hero-ctas{display:flex;flex-wrap:wrap;gap:14px}
.btn-lg{padding:16px 28px;border-radius:14px;font-size:19px}
.btn-outline{background:#fff;color:var(--navy);padding:14px 26px;border-radius:14px;border:2px solid var(--navy);font-size:19px}
.btn-outline:hover{color:var(--navy);background:#f3f7fd}
.hours{margin:0;font-size:16px;color:var(--muted)}
.hero-photo{margin:0;position:relative}
.hero-frame{border:14px solid var(--yellow);border-radius:32px;overflow:hidden;transform:rotate(1.5deg);box-shadow:0 18px 0 -6px var(--blue)}
.hero-frame img{display:block;width:100%;height:560px;object-fit:cover}
.hero-photo figcaption{position:absolute;left:-18px;bottom:36px;background:#fff;border-radius:14px;padding:10px 16px;font-weight:700;font-size:16px;box-shadow:0 2px 0 #C9D6EA}
.hero .cloud{bottom:-1px;height:130px}

/* Programs */
.programs{padding:40px 0 150px}
.programs .wrap{gap:40px}
.section-intro{max-width:640px}
.section-intro .h2{margin-bottom:12px}
.block{border:10px solid var(--c);border-radius:26px;background:var(--wood);overflow:hidden;display:flex;flex-direction:column}
.block img{width:100%;height:170px;object-fit:cover;display:block}
.block-body{padding:20px 20px 24px;display:flex;flex-direction:column;gap:8px}
.tag{align-self:flex-start;background:var(--c);color:#fff;font-weight:700;font-size:14px;padding:4px 12px;border-radius:8px}
.block h3{font-size:28px;margin:0;line-height:1.1}
.block p{margin:0;font-size:16px}
.c-red{--c:var(--red)}.c-blue{--c:var(--blue)}.c-green{--c:var(--green)}.c-purple{--c:var(--purple)}
.spots{margin:0;font-weight:700}

/* Our center */
.center{background:var(--cream);padding:56px 0 170px;position:relative}
.center .cloud-top{top:-129px;height:130px}
.center .cloud-bottom{bottom:-1px;height:130px}
.center>.wrap{gap:56px}
.lego{width:100%;height:440px;object-fit:cover;border-radius:28px;border:12px solid var(--green)}
.center-copy{display:flex;flex-direction:column;gap:16px}
.spaces{margin:8px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;font-weight:700}
.spaces li{display:flex;gap:12px;align-items:center}
.dot{width:14px;height:14px;border-radius:4px;background:var(--c);flex:none}
.c-yellow{--c:var(--yellow)}
.two.stretch{align-items:stretch}
.panel{background:#fff;border-radius:28px;overflow:hidden;display:flex;flex-direction:column}
.panel img{width:100%;height:260px;object-fit:cover;display:block}
.panel-body{padding:28px}
.panel h3{font-size:30px;margin:0 0 8px}
.panel p{margin:0}

/* FAQ-ish facts */
.facts{padding:40px 0 150px}
.facts .wrap{gap:40px}
.facts .h2{max-width:640px}
.fact{display:flex;gap:16px}
.fact svg{flex:none}
.fact h3{font-family:var(--sans);font-size:19px;margin:0 0 4px}
.fact p{margin:0;font-size:16px}

/* Tuition */
.tuition{background:var(--yellow);padding:24px 0 120px;position:relative}
.tuition .cloud{top:-109px;height:110px}
.tuition .two{gap:40px}
.tuition .h2{margin-bottom:12px}
.tuition p{margin:0;font-size:19px}
.chips{margin:0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:12px}
.chips li{background:#fff;border-radius:12px;padding:12px 18px;font-weight:700}

/* Visit */
.visit{background:var(--navy);color:#fff;padding:40px 0 96px;position:relative}
.visit .cloud{top:-99px;height:100px}
.visit .two{align-items:start}
.visit-copy{display:flex;flex-direction:column;gap:20px}
.visit h2{font-size:48px;line-height:1.05;margin:0}
.visit-copy>p{margin:0;font-size:19px}
.exterior{width:100%;height:260px;object-fit:cover;object-position:center 40%;border-radius:24px;border:10px solid #fff}
.visit address{font-style:normal;display:flex;flex-direction:column;gap:6px;font-size:18px;align-items:flex-start}
.visit address .addr{font-weight:700}
.visit .tel{color:var(--yellow);font-weight:700}
.visit .tel:hover{color:#ffd65c}
.visit .mail{color:#9FC8FF}
.visit .mail:hover{color:#c9e0ff}

/* Tour form */
.tour-form{background:#fff;color:var(--navy);border-radius:28px;padding:36px;display:flex;flex-direction:column;gap:18px;border:10px solid var(--red)}
.tour-form h3{font-size:30px;margin:0}
.field{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:16px}
.field input,.field select{font:inherit;font-weight:400;color:var(--navy);padding:12px 14px;border:2px solid var(--field);border-radius:10px;min-height:48px;background:#fff;width:100%}
.field input[aria-invalid="true"]{border-color:var(--red)}
.field-error{color:#B3201A;font-size:15px;font-weight:700;min-height:0}
.field-error:empty{display:none}
.hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.submit{font:inherit;font-weight:700;font-size:19px;background:var(--red);color:#fff;border:0;border-radius:14px;padding:16px;min-height:52px;cursor:pointer}
.submit:hover{background:#b81f18}
.submit[disabled]{opacity:.7;cursor:progress}
.form-note{margin:0;font-size:15px;color:var(--muted)}
.form-status{margin:0;font-size:16px;font-weight:700;border-radius:12px;padding:12px 14px}
.form-status:empty{display:none}
.form-status.is-error{background:#FDECEA;color:#9E1C16}
.form-success{display:flex;flex-direction:column;gap:12px;outline:none}
.form-success h3{color:var(--green)}
.form-success p{margin:0}
.tour-form[hidden],.form-success[hidden]{display:none}

/* Footer */
.site-footer{background:var(--footer);color:#C9D6EA;padding:40px 0;font-size:15px}
.site-footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px;align-items:center}
.foot-id{display:flex;align-items:center;gap:12px}
.foot-id img{width:40px;height:40px;border-radius:8px}
.site-footer a{color:#fff;font-weight:700}
.site-footer a:hover{color:var(--yellow)}

/* Sticky mobile action bar */
.mobile-bar{display:none}

@media (max-width:960px){
  .cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .two{grid-template-columns:minmax(0,1fr);gap:32px}
  .three{grid-template-columns:repeat(2,minmax(0,1fr))}
  .navlinks{display:none}
}
@media (max-width:600px){
  .cards,.three{grid-template-columns:minmax(0,1fr)}
  .wrap{padding:0 20px}
  .h1{font-size:40px}
  .callnav{display:none}
  .site-header .wrap{gap:12px;height:76px}
  .brand{gap:10px}
  .brand img{width:44px;height:44px}
  .brand span{font-size:23px;white-space:nowrap}
  .btn-sm{padding:10px 16px;white-space:nowrap}
  .tour-form{padding:24px}
  body{padding-bottom:76px}
  .mobile-bar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:50;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -4px 16px rgba(27,42,74,.12)}
  .mobile-bar a{flex:1 1 auto;min-height:48px;border-radius:12px;font-size:16px;padding:0 10px;white-space:nowrap}
  .mobile-bar .btn-call{background:#fff;color:var(--navy);border:2px solid var(--navy)}
}

/* Gallery page */
.navlinks a[aria-current="page"]{color:var(--blue);text-decoration:underline;text-underline-offset:6px;text-decoration-thickness:3px}
.gallery-hero{background:var(--sky);position:relative;padding:56px 0 130px}
.gallery-hero .wrap{display:flex;flex-direction:column;gap:16px}
.gallery-hero .cloud{bottom:-1px;height:110px}
.gallery{padding:24px 0 72px}
.gallery-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.gallery-grid li{margin:0}
.gallery-grid button{display:block;width:100%;padding:0;border:8px solid var(--c,var(--blue));border-radius:22px;overflow:hidden;background:var(--wood);cursor:zoom-in}
.gallery-grid button:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.gallery-grid img{display:block;width:100%;aspect-ratio:4/3;height:auto;object-fit:cover}
.gallery-grid li:nth-child(5n+1){--c:var(--red)}
.gallery-grid li:nth-child(5n+2){--c:var(--blue)}
.gallery-grid li:nth-child(5n+3){--c:var(--green)}
.gallery-grid li:nth-child(5n+4){--c:var(--yellow)}
.gallery-grid li:nth-child(5n+5){--c:var(--purple)}
.gallery-cta{background:var(--cream);padding:56px 0 72px}
.gallery-cta .wrap{display:flex;flex-direction:column;gap:16px;align-items:flex-start}
.gallery-cta p{margin:0;font-size:19px}
.lightbox{border:0;padding:0;background:transparent;max-width:100vw;max-height:100vh;width:100vw;height:100vh;margin:0}
.lightbox::backdrop{background:rgba(19,32,58,.92)}
.lightbox figure{margin:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:56px 64px 24px}
.lightbox img{max-width:100%;max-height:calc(100vh - 140px);border-radius:14px;object-fit:contain}
.lightbox figcaption{color:#fff;font-size:16px;text-align:center;max-width:720px}
.lb-btn{position:fixed;background:#fff;color:var(--navy);border:0;border-radius:50%;width:48px;height:48px;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lb-btn:focus-visible{outline:3px solid var(--yellow);outline-offset:3px}
.lb-close{top:12px;right:12px}
.lb-prev{left:12px;top:50%;transform:translateY(-50%)}
.lb-next{right:12px;top:50%;transform:translateY(-50%)}
@media (max-width:960px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){
  .gallery-grid{grid-template-columns:minmax(0,1fr);gap:18px}
  .lightbox figure{padding:64px 8px 72px}
  .lb-prev,.lb-next{top:auto;bottom:14px;transform:none}
}
/* Header with 5 menu links: never wrap; drop the phone number between tablet and wide desktop */
.site-header a,.brand span{white-space:nowrap}
@media (max-width:1180px) and (min-width:961px){.navlinks{gap:24px}.callnav{display:none}}
/* Hero photo is landscape (front of the building): keep the house in frame */
.hero-frame img{object-position:60% 50%}
@media (max-width:960px){.hero-frame img{height:auto;aspect-ratio:3/2}}
@media (max-width:960px){.hero-photo figcaption{bottom:auto;top:18px;left:-10px;font-size:15px;padding:8px 14px}}
/* Whole building in frame at every desktop width: square frame, photo shifted right */
@media (min-width:961px){.hero-frame img{height:auto;aspect-ratio:1/1;object-position:76% 50%}}
/* "Room to build" photo is landscape: show it whole on tablets and phones */
@media (max-width:960px){.lego{height:auto;aspect-ratio:3/2}}
