
/* Responsive additions for the static rebuild. Desktop look stays close to the original 985px layout. */
/* Do not set a global border-box. The original theme sizes were written for content-box,
   and a global change makes the homepage columns wrap. */
img, iframe { max-width: 100%; height: auto; }
iframe { border: 0; }

.preview-form input,
.preview-form textarea,
.form-preview-note,
.nav-toggle { box-sizing: border-box; }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: #00489f;
    color: #fff;
    padding: 8px 12px;
    z-index: 10;
}
.skip-link:focus { left: 8px; top: 8px; }

.form-preview-note {
    background: #fff8d5;
    border: 1px solid #faa622;
    padding: 10px 12px;
    margin: 0 0 16px 0;
    font-size: 14px;
}

.preview-form input[type="text"],
.preview-form input[type="email"],
.preview-form input[type="tel"],
.preview-form textarea {
    max-width: 100%;
    width: 100%;
    padding: 6px;
    border: 1px solid #231f20;
}

.nav-toggle {
    display: none;
}

@media (max-width: 1040px) {
    #page-container,
    #homepage-container,
    #header-bar,
    #home-header-bar,
    #footer-inside,
    #content-container,
    #home-container {
        width: auto;
        max-width: 985px;
        margin-left: auto;
        margin-right: auto;
    }

    #header-bar,
    #home-header-bar {
        background-size: 100% auto;
        height: auto;
        min-height: 150px;
    }

    #home-header-bar {
        min-height: 260px;
        aspect-ratio: 985 / 600;
    }

    #logo {
        position: relative;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        padding-top: 8px;
    }
    #logo img {
        width: min(406px, 80vw);
        height: auto;
    }

    #menu-bar {
        position: relative;
        margin: 8px 0 12px;
        text-align: center;
    }
    ul#left-nav,
    ul#right-nav {
        float: none;
        position: static;
        width: auto;
        margin: 0;
        left: auto;
        display: inline-block;
        text-align: center;
    }
    #home-container {
        height: auto;
        margin: 0 12px 20px;
        width: auto;
    }
    #welcome-box {
        width: auto;
        height: auto;
        overflow: hidden;
    }
    #welcome-content {
        width: auto;
        height: auto;
        float: none;
    }
    #home-programs,
    #home-testimonials,
    #home-events {
        float: none;
        width: auto;
        height: auto;
        margin: 20px 10px;
    }
    #page-content.contact {
        margin: 10px 0 0 0;
    }
    #side-nav,
    #side-nav.programs,
    #side-nav.toddler,
    #side-nav.tykes {
        float: none;
        height: auto;
        margin: 10px 0 20px;
    }
    #footer-1, #footer-2, #footer-3, #footer-4, #footer-5 {
        float: none;
        margin: 0 0 20px 0;
        width: auto;
        padding: 0;
    }
    #footer {
        height: auto;
        padding: 36px 16px 24px;
    }
    #footer h4 { font-size: 14px; }
    #push, #push.home { height: 24px; }
    #homepage-container { margin-bottom: 0; min-height: 0; height: auto; }
    #program-container { height: auto; }
    ul#discovery-club,
    ul#discounts,
    ul#kinder,
    #bottom-content ul { margin-left: 0; }
}

@media (max-width: 700px) {
    #content-container {
        padding: 10px 16px 24px;
        width: auto;
        margin: 0 8px 20px;
    }
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    .nav-toggle {
        display: inline-block;
        margin: 8px auto;
        background: #00489f;
        color: #fff;
        border: 0;
        font-family: "Cherry Cream Soda", Arial Black, sans-serif;
        font-size: 16px;
        padding: 8px 18px;
        cursor: pointer;
    }
    #site-nav { display: none; }
    #site-nav.is-open { display: block; }
    ul#left-nav,
    ul#right-nav {
        display: block;
        margin: 0;
    }
    ul#left-nav li,
    ul#right-nav li { display: block; }
    ul#left-nav li a,
    ul#right-nav li a,
    ul#left-nav li a#menu1,
    ul#left-nav li a#menu3,
    ul#right-nav li a#menu1,
    ul#right-nav li a#menu2,
    ul#right-nav li a#menu3 {
        display: block;
        padding: 10px 12px;
        background: rgba(0, 72, 159, 0.85);
        margin: 4px 12px;
    }
    #home-header-bar {
        aspect-ratio: auto;
        min-height: 0;
        background-size: cover;
        background-position: center top;
        padding-bottom: 12px;
    }
    #program { width: auto; float: none; }
    iframe { width: 100%; height: 280px; }
}
