/* --- Global Styles & Fonts --- */
:root {
    --primary-pink: #FF6B81;
    --primary-blue: #45AAF2;
    --primary-yellow: #FED330;
    --text-dark: #2C3A47;
    --bg-light: #fdfbf7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.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;
}

.section-intro {
    max-width: 700px;
    margin: 0 auto 36px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #636e72;
}

.contact-location {
    font-size: 1rem;
    color: #636e72;
    margin-bottom: 16px;
    line-height: 1.6;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-dark);
    background: var(--bg-light);
    line-height: 1.6;
}

html {
    scrollbar-width: thin;
    scrollbar-color: #ff638f #f4d39a;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(180deg, #f7e4b9 0%, #e4bb7a 100%);
    border-left: 1px solid rgba(95, 64, 31, 0.2);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #ff90b0 0%,
        #ff6e95 28%,
        #ff4f82 48%,
        #4a2f1e 52%,
        #ff4f82 58%,
        #ff6e95 76%,
        #ff90b0 100%
    );
    border: 2px solid #fff7ea;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(
        180deg,
        #ff9db9 0%,
        #ff789e 28%,
        #ff5b8b 48%,
        #3d2618 52%,
        #ff5b8b 58%,
        #ff789e 76%,
        #ff9db9 100%
    );
}

h1, h2, h3, .logo {
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    letter-spacing: 1px;
}

/* --- Navigation Bar --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(180deg, #8ed0ff 0%, #6dc0f8 100%);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 14px rgba(48, 105, 148, 0.28);
    z-index: 1000;
    transition: 0.3s ease;
    overflow: visible;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 3;
    align-self: flex-end;
    padding-top: 38px;
    margin-bottom: 4px;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    background: rgba(58, 138, 194, 0.35);
    position: relative;
    z-index: 4;
    cursor: pointer;
    padding: 8px 7px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background: #ffffff;
    border-radius: 999px;
    margin: 4px 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-links a {
    font-family: 'Nunito', sans-serif;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    padding: 0 4px;
    white-space: nowrap;
    transition: color 0.3s;
    -webkit-text-stroke: 0.5px rgba(44, 58, 71, 0.55);
    text-shadow: -1px 0 rgba(44, 58, 71, 0.55), 0 1px rgba(44, 58, 71, 0.55), 1px 0 rgba(44, 58, 71, 0.55), 0 -1px rgba(44, 58, 71, 0.55), 0 1px 2px rgba(44, 58, 71, 0.25);
}

#navbar .logo {
    display: flex;
    align-items: flex-start;
    align-self: flex-start;
    text-decoration: none;
    position: relative;
    z-index: 5;
    margin-top: 4px;
}

#navbar .logo-img {
    height: 165px;
    width: auto;
    display: block;
    margin-bottom: -65px;
    filter: drop-shadow(0 3px 10px rgba(44, 58, 71, 0.3));
}

.sky-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    overflow: hidden;
    pointer-events: none;
}

.sky-clouds-track {
    position: relative;
    min-width: 100%;
    height: 100%;
    animation: cloudDrift 22s linear infinite;
    will-change: transform;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    box-shadow: 40px 0 0 rgba(255, 255, 255, 0.92), 18px -14px 0 rgba(255, 255, 255, 0.92);
}

.cloud-1 {
    width: 70px;
    height: 22px;
    top: 18%;
    left: 8%;
}

.cloud-2 {
    width: 82px;
    height: 24px;
    top: 52%;
    left: 30%;
}

.cloud-3 {
    width: 64px;
    height: 20px;
    top: 28%;
    left: 52%;
}

.cloud-4 {
    width: 78px;
    height: 23px;
    top: 60%;
    left: 75%;
}

.cloud-5 {
    width: 68px;
    height: 21px;
    top: 24%;
    left: 96%;
}

@keyframes cloudDrift {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.nav-links a:hover {
    color: #ffedf9;
}

/* --- Clean Hero Background --- */
.hero-fun {
    position: relative;
    background-color: var(--bg-light); 
    padding: 150px 20px 100px;
    text-align: center;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; 
}

.hero-content {
    position: relative;
    z-index: 5; 
    margin-top: 200px; 
}

/* --- Floating Rainbow Ribbon --- */
.rainbow-ribbon {
    position: absolute;
    top: 35%; 
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    z-index: 1; 
    line-height: 0;
    pointer-events: none; 
}

.rainbow-ribbon svg {
    width: 200%; 
    height: 250px; 
    animation: waveScroll 15s linear infinite;
}

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- WOODEN BLOCKS HEADER STYLES --- */
.blocks-container {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.wooden-block {
    width: 90px; 
    height: auto;
    filter: drop-shadow(0px 8px 12px rgba(0,0,0,0.15));
    transition: translate 0.3s, rotate 0.3s, scale 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.wooden-block:hover {
    translate: 0 -15px;
    rotate: 5deg;
    scale: 1.05;
}

.block-1 { rotate: -2deg; }
.block-2 { rotate: 1deg; }
.block-3 { rotate: -1deg; }
.block-5 { rotate: 3deg; }

@keyframes dropIn {
    0% {
        translate: 0 -100px;
        rotate: -20deg;
        opacity: 0;
    }
    100% {
        translate: 0 0;
        opacity: 1;
    }
}

@keyframes periodicBounce {
    0%, 80%, 100% { 
        translate: 0 0; 
        scale: 1;
    }
    85% { 
        translate: 0 -25px; 
        scale: 1.05;
    }
    90% { 
        translate: 0 0; 
    }
    95% { 
        translate: 0 -10px; 
        scale: 1.02;
    }
}

.daycare-title {
    font-size: 3rem;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px rgba(255,255,255,0.5);
}

/* --- Chunky 3D Bouncy Buttons --- */
.btn-bouncy, .btn-nav {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-pink);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-family: 'Fredoka One', cursive;
    font-size: 1.2rem;
    box-shadow: 0 8px 0 #d14d60; 
    transition: all 0.1s ease;
    cursor: pointer;
    border: none;
}

.btn-nav {
    padding: 10px 25px;
    font-size: 1rem;
    box-shadow: 0 5px 0 #d14d60;
}

.btn-bouncy:active {
    transform: translateY(8px);
    box-shadow: 0 0px 0 #d14d60;
}

.btn-nav:active {
    transform: translateY(5px);
    box-shadow: 0 0px 0 #d14d60;
}

/* --- General Content Sections --- */
.content-section {
    padding: 80px 20px;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.light-bg {
    background: var(--bg-light);
    max-width: 100%;
}

.fun-heading {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-dark);
}

/* --- Welcome Block --- */
.welcome-block {
    max-width: 820px;
    margin: 0 auto 70px;
    text-align: center;
}

.welcome-block .fun-heading {
    margin-bottom: 24px;
}

.welcome-lead {
    font-size: 1.2rem;
    line-height: 1.75;
    margin-bottom: 32px;
}

.welcome-highlight {
    background: white;
    border-radius: 24px;
    padding: 32px 36px;
    margin-bottom: 32px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border-left: 6px solid var(--primary-yellow);
    text-align: left;
}

.welcome-subheading {
    font-family: 'Fredoka One', cursive;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.welcome-highlight p,
.welcome-detail {
    font-size: 1.1rem;
    line-height: 1.75;
}

.welcome-detail {
    margin-bottom: 28px;
}

.welcome-cta {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.75;
}

.inline-link {
    color: var(--primary-blue);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s;
}

.inline-link:hover {
    color: var(--primary-pink);
}

.team-heading {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 3px dashed rgba(69, 170, 242, 0.25);
}

/* --- Staff Grid --- */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.staff-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.staff-card:hover {
    transform: translateY(-10px);
}

.staff-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: center 25%;
}

.staff-info {
    padding: 25px;
}

.staff-title {
    color: var(--primary-blue);
    font-weight: bold;
    margin: 5px 0 15px;
}

/* --- Program Cards --- */
.card-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 40px 28px;
    width: 320px;
    min-height: 280px;
    text-align: center;
    border-radius: 40px 20px 40px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 4px solid;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card p {
    font-size: 1rem;
    line-height: 1.65;
}

.card:hover {
    transform: translateY(-15px) rotate(2deg);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 15px;
}

.card-yellow { border-color: var(--primary-yellow); }
.card-blue { border-color: var(--primary-blue); }
.card-pink { border-color: var(--primary-pink); }

/* --- FAQ & Accordions --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: white;
    border: 3px solid var(--primary-blue);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item summary {
    padding: 20px;
    font-size: 1.2rem;
    font-family: 'Fredoka One', cursive;
    color: var(--text-dark);
    cursor: pointer;
    list-style: none; 
    background: #f1f9ff;
    position: relative;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.faq-item[open] summary::after {
    content: '-';
    color: var(--primary-pink);
}

.faq-item[open] {
    border-color: var(--primary-pink);
}

.faq-content {
    padding: 20px;
    border-top: 2px dashed #eee;
}

.faq-content ul {
    list-style-type: none;
}

.faq-content li {
    margin-bottom: 10px;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.contact-info h3 {
    margin-bottom: 15px;
}

.contact-link {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.contact-link:hover {
    color: var(--primary-pink);
}

.hours-box {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-yellow);
}

.map-embed {
    width: 100%;
    height: 200px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.contact-form input, .contact-form textarea {
    padding: 15px 20px;
    border: 2px solid #ddd;
    border-radius: 15px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, .contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
}

.form-status {
    min-height: 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.form-status[data-state="error"] {
    color: #d63031;
}

/* --- Thank You Page --- */
.thank-you-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.thank-you-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

.thank-you-logo {
    height: 140px;
    width: auto;
    margin-bottom: 24px;
    filter: drop-shadow(0 3px 10px rgba(44, 58, 71, 0.25));
}

.thank-you-message {
    font-size: 1.2rem;
    color: #636e72;
    margin: 16px 0 32px;
    line-height: 1.7;
}

/* --- Footer --- */
footer {
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-weight: bold;
}

.license-text {
    font-size: 0.9rem;
    color: #a4b0be;
    margin-top: 10px;
}


/* --- Mobile --- */
@media (max-width: 768px) {
    #navbar {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: start;
        padding: 12px 20px;
    }

    #navbar .logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        align-self: start;
        margin-top: 0;
    }

    #navbar .logo-img {
        height: 135px;
        margin-bottom: -50px;
    }
    
    .nav-links {
        position: absolute;
        top: calc(100% + 8px);
        right: 12px;
        width: min(84vw, 320px);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        align-self: auto;
        padding-top: 0;
        margin-bottom: 0;
        background: rgba(77, 165, 226, 0.96);
        border: 2px solid rgba(255, 255, 255, 0.8);
        border-radius: 16px;
        padding: 14px;
        box-shadow: 0 8px 18px rgba(30, 83, 120, 0.35);
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }

    #navbar.nav-open .nav-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        display: block;
        padding: 8px 10px;
        border-radius: 10px;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
    }

    .hamburger {
        display: inline-block;
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
        align-self: start;
        margin: 10px 0 0;
        background: var(--primary-pink);
        border: 2px solid #ff8a9a;
        box-shadow: 0 4px 0 #d14d60;
    }

    .hamburger span {
        background: #ffffff;
    }

    #navbar.nav-open .hamburger span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    #navbar.nav-open .hamburger span:nth-child(2) {
        opacity: 0;
    }

    #navbar.nav-open .hamburger span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
    
    .blocks-container {
        gap: 5px;
    }
    
    .wooden-block {
        width: 13vw;
        min-width: 45px;
    }
    
    .daycare-title {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .welcome-highlight {
        padding: 24px 22px;
    }

    .welcome-subheading {
        font-size: 1.3rem;
    }

    .card {
        width: 100%;
        max-width: 360px;
        min-height: auto;
    }
}