/* =====================================================
   LITTLE LEARNERS CHILD CARE
   MAIN CSS v3
   ===================================================== */

:root{
    --purple:#763AB1;
    --green:#80B839;
    --text:#333333;
    --light:#f8f8f8;
    --border:#dddddd;
}

/* =====================================================
   GLOBAL
   ===================================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Verdana, Arial, sans-serif;
    color:var(--text);
    line-height:1.6;
    background:#ffffff;
}

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:var(--purple);
}

.container{
    width:95%;
    max-width:1200px;
    margin:0 auto;
}

/* =====================================================
   HEADER
   ===================================================== */

.site-header{
    background:#f8f8f8;
    padding:25px 0 15px;
}

.header-flex{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.logo-area img{
    max-width:420px;
}

.contact-box{
    text-align:right;
}

.contact-box h3{
    font-size:2rem;
    margin-bottom:5px;
}

.contact-box p{
    margin-bottom:5px;
}

.phone{
    color:#009900;
    text-decoration:none;
    font-size:1.6rem;
    font-weight:bold;
}

.logo-area a{
    display:inline-block;
}

.logo-area a:hover{
    opacity:.95;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.navbar{
    background:var(--purple);
}

#menu-toggle{
    display:none;
}

#nav{
    display:flex;
    justify-content:center;
    list-style:none;
}

#nav li{
    list-style:none;
}

#nav li a{
    display:block;
    color:#fff;
    text-decoration:none;
    font-weight:bold;
    font-size:.95rem;
    padding:16px 14px;
    transition:.25s;
}

#nav li a:hover{
    background:var(--green);
}

#nav li a.active{
    background:var(--green);
    color:#fff;
}

/* =====================================================
   HOME PAGE
   ===================================================== */

.hero{
    display:flex;
    align-items:center;
    gap:50px;
    padding:40px 0;
}

.hero-content{
    flex:1;
}

.hero-image{
    flex:1;
}

.hero-image img{
    max-width:550px;
    margin:0 auto;
}

.hero-content h1{
    font-size:1.6rem;
    line-height:1.3;
    margin-bottom:18px;
    color:#222;
}

.hero-content p{
    margin-bottom:12px;
    font-size:1.05rem;
}

.hours{
    margin-top:20px;
}

.hours h2{
    color:var(--purple);
    margin-bottom:10px;
    font-size:1.6rem;
}

.cta-buttons{
    margin-top:25px;
}

.button{
    display:inline-block;
    background:var(--green);
    color:#fff;
    text-decoration:none;
    padding:14px 24px;
    border-radius:5px;
    font-weight:bold;
    margin-right:10px;
    margin-bottom:10px;
    transition:.2s;
}

.button:hover{
    opacity:.9;
}

/* =====================================================
   INTERIOR PAGES
   ===================================================== */

.page-content{
    padding:40px 0;
}

.page-content h1{
    text-align:center;
    font-size:2rem;
    margin-bottom:30px;
}

.page-content h2{
    color:var(--purple);
    margin-bottom:15px;
}

.content-with-image{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.content-text{
    flex:1;
}

.content-image{
    flex:1;
    text-align:center;
}

.content-image img{
    max-width:500px;
    margin:0 auto;
    border-radius:8px;
}

.content-text p{
    margin-bottom:18px;
    line-height:1.8;
}

.content-text ul,
.content-text ol{
    padding-left:22px;
    margin-bottom:20px;
}

.content-text li{
    margin-bottom:10px;
}

/* =====================================================
   PHILOSOPHY PAGE
   ===================================================== */

.philosophy-quote{
    background:#f5f5f5;
    border-left:5px solid var(--green);
    padding:20px;
    margin-bottom:30px;
    font-size:1.15rem;
    font-style:italic;
    color:#555;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.contact-intro{
    text-align:center;
    max-width:800px;
    margin:0 auto 30px;
}

.contact-layout{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.contact-form-area{
    flex:2;
}

.contact-sidebar{
    flex:1;
}

.contact-sidebar img{
    max-width:350px;
    margin:0 auto 20px;
    border-radius:8px;
}

.contact-card{
    background:#faf7fd;
    border:1px solid #d8c5ec;
    border-radius:8px;
    padding:20px;
}

.contact-card h2{
    color:var(--purple);
}

/* =====================================================
   POLICY PAGE
   ===================================================== */

.policy-intro{
    text-align:center;
    max-width:850px;
    margin:0 auto 30px;
    font-size:1.1rem;
}

.policy-nav{
    background:#faf7fd;
    border:1px solid #d8c5ec;
    border-radius:8px;
    padding:25px;
    margin:30px 0 40px;
}

.policy-nav h2{
    color:var(--purple);
    font-size:2rem;
    margin-bottom:20px;
    border-bottom:2px solid var(--purple);
    padding-bottom:10px;
}

.policy-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}

.policy-grid a{
    display:flex;
    gap:10px;
    text-decoration:none;
    color:var(--purple);
    font-weight:600;
}

.policy-grid a:hover{
    color:var(--green);
}

.policy-grid i{
    width:22px;
}

/* =====================================================
   POLICY ACCORDIONS
   ===================================================== */

.policy-item{
    background:#fff;
    border:1px solid var(--border);
    border-radius:8px;
    overflow:hidden;
    margin-bottom:15px;
    box-shadow:0 2px 6px rgba(0,0,0,.05);
}

.policy-item summary{
    list-style:none;
    cursor:pointer;
    padding:18px 22px;
    font-weight:bold;
    color:var(--purple);
    position:relative;
}

.policy-item summary::-webkit-details-marker{
    display:none;
}

.policy-item summary::after{
    content:"+";
    position:absolute;
    right:20px;
    top:50%;
    transform:translateY(-50%);
    font-size:1.5rem;
    font-weight:bold;
}

.policy-item[open] summary::after{
    content:"−";
}

.policy-item[open] summary{
    border-bottom:1px solid var(--border);
}

.policy-item p,
.policy-item ul{
    padding-left:22px;
    padding-right:22px;
}

.policy-item p:first-of-type{
    padding-top:18px;
}

.policy-item p:last-child,
.policy-item ul:last-child{
    padding-bottom:22px;
}

/* =====================================================
   TOUR PAGE
   ===================================================== */

.tour-page{
    padding:20px 0 40px;
}

.tour-page h1{
    text-align:center;
    margin-bottom:20px;
}

.tour-intro{
    max-width:850px;
    margin:0 auto 30px;
    text-align:center;
    font-size:1.1rem;
    line-height:1.8;
}

/* Tour Buttons */

.tour-page .cta-buttons{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:15px;
    margin:30px 0 40px;
}

/* Gallery */

.gallery-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:20px;
    margin-top:40px;
}

.gallery-grid a{
    display:block;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
    transition:.25s;
}

.gallery-grid a:hover{
    transform:translateY(-4px);
    box-shadow:0 4px 12px rgba(0,0,0,.18);
}

.gallery-grid img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

/* =====================================================
   TOUR PAGE - TABLET
   ===================================================== */

@media (max-width:1000px){

    .gallery-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

/* =====================================================
   TOUR PAGE - MOBILE
   ===================================================== */

@media (max-width:768px){

    .tour-page .cta-buttons{
        flex-direction:column;
        align-items:center;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .gallery-grid img{
        height:150px;
    }

}

/* =====================================================
   TOUR PAGE - SMALL PHONES
   ===================================================== */

@media (max-width:480px){

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
    }

}
/* =====================================================
   FOOTER
   ===================================================== */

footer{
    background:#efefef;
    text-align:center;
    padding:30px 0;
    margin-top:40px;
}

footer p{
    font-size:.95rem;
}

footer i{
    color: var(--purple);
    width: 20px;
    margin-right: 6px;
}

/* =====================================================
   TABLET
   ===================================================== */

@media (max-width:900px){

    .policy-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .gallery-grid{
        grid-template-columns:repeat(3,1fr);
    }

}

/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width:768px){

    .header-flex{
        flex-direction:column;
        text-align:center;
    }

    .contact-box{
        text-align:center;
        margin-top:15px;
    }

    .logo-area img{
        max-width:340px;
        margin:0 auto;
    }

    .contact-box h3{
        font-size:1.5rem;
    }

    .phone{
        font-size:1.4rem;
    }

    #menu-toggle{
        display:block;
        width:100%;
        border:none;
        background:var(--purple);
        color:#fff;
        font-size:20px;
        font-weight:bold;
        padding:15px;
        cursor:pointer;
    }

    #nav{
        display:none;
        flex-direction:column;
        width:100%;
    }

    #nav.show{
        display:flex;
    }

    #nav li a{
        text-align:left;
        border-top:1px solid rgba(255,255,255,.2);
        padding:15px 20px;
    }

    .hero{
        flex-direction:column;
        text-align:center;
        gap:25px;
    }

    .hero-image img{
        max-width:350px;
    }

    .button{
        display:block;
        max-width:300px;
        margin:10px auto;
        text-align:center;
    }

    .page-content h1{
        font-size:1.6rem;
    }

    .content-with-image{
        flex-direction:column-reverse;
    }

    .contact-layout{
        flex-direction:column;
    }

    .policy-grid{
        grid-template-columns:1fr;
    }

    .gallery-grid{
        grid-template-columns:repeat(2,1fr);
        gap:12px;
    }

    .gallery-grid img{
        height:150px;
    }
}

/* =====================================================
   LARGE DESKTOPS
   ===================================================== */

@media (min-width:1200px){

    .hero-content h1{
        font-size:1.75rem;
    }

}

/* STYLING FOR ADDRESS - GOOGLE MAPS */

.address-link{
    color:inherit;
    text-decoration:none;
}

.address-link:hover{
    color:var(--purple);
    text-decoration:underline;
}

.contact-card i,
footer i{
    color: var(--purple);
    width: 20px;
    margin-right: 4px;
}

/* =====================================================
   FORM CONFIRMATION PAGE
   ===================================================== */

.confirmation-box{
    max-width:800px;
    margin:0 auto;
    padding:40px;
    text-align:center;
    background:#faf7fd;
    border:1px solid #d8c5ec;
    border-radius:10px;
}

.confirmation-icon{
    font-size:4rem;
    color:var(--green);
    margin-bottom:20px;
}

.confirmation-box h2{
    color:var(--purple);
    margin-bottom:20px;
}

.confirmation-box p{
    margin-bottom:18px;
    line-height:1.8;
}

.confirmation-phone{
    font-size:1.4rem;
    font-weight:bold;
}

.confirmation-phone a{
    text-decoration:none;
    color:#009900;
}

@media (max-width:768px){

    .confirmation-box{
        padding:25px;
    }

    .confirmation-icon{
        font-size:3rem;
    }

}