﻿/*
 * Theme Stylesheet for Pee Wee Folks Preschool
 *
 * This stylesheet defines a playful, childâ€‘friendly color palette and responsive
 * layout styles for the website. The design is mobileâ€‘first, includes clear
 * navigation, accessible focus indicators, badges for program ages and
 * responsive components such as the hero, program cards and gallery grid.
 */

/* Root variables for easy color theming */
:root {
    --primary-color: #ffb703; /* golden yellow */
    --secondary-color: #fb8500; /* orange */
    --accent-color: #8ecae6; /* pastel blue */
    --text-color: #333333;
    --background-color: #fff7e5; /* light cream */
}

/* Reset and base styles */
* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Media-safe helpers */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 0 1rem;
}

.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;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

a:hover,
a:focus {
    text-decoration: underline;
}

/* Header styles */
.site-header {
    background-color: var(--accent-color);
    padding: 0.5rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo img {
    height: 48px;
    width: auto;
}

.menu-toggle {
    display: none;
    background: #fff;
    border: 2px solid var(--text-color);
    border-radius: 6px;
    padding: 0.35rem 0.5rem;
    font-size: 1.1rem;
    cursor: pointer;
}

.menu-toggle:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.site-nav {
    display: flex;
    gap: 1rem;
}

.site-nav a {
    padding: 0.5rem 0.75rem;
    font-weight: bold;
    color: var(--text-color);
}

.site-nav a:hover {
    color: var(--secondary-color);
}

/* Header quick actions */
.header-actions {
    display: inline-flex;
    margin-left: 12px;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cta-phone {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 4px;
    display: inline-block;
}

.cta-email {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    background: var(--primary-color);
    color: #000;
    border-radius: 4px;
    display: inline-block;
}

.cta-group {
    display: inline-flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: #fff;
        flex-direction: column;
        padding: 0.75rem;
        border-radius: 10px;
        box-shadow: 0 10px 22px rgba(0,0,0,0.12);
        display: none;
        z-index: 10;
    }

    .site-nav.open { display: flex; }

    .site-nav a {
        width: 100%;
        padding: 0.75rem;
        border-radius: 8px;
    }

    .site-nav a:hover {
        background: var(--background-color);
    }

    .header-actions {
        margin-left: auto;
        margin-right: 2.75rem;
    }

    .cta-email,
    .cta-phone {
        padding: 0.45rem 0.65rem;
        font-size: 0.9rem;
    }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    text-align: center;
}

.btn:hover,
.btn:focus {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn.secondary {
    background-color: var(--secondary-color);
    color: #fff;
}

.btn.small {
    font-size: 0.875rem;
    padding: 0.45rem 0.8rem;
}

.btn.secondary:hover,
.btn.secondary:focus {
    background-color: var(--primary-color);
    color: #000;
}

/* Visible focus for keyboard users */
a:focus, button:focus, .btn:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    background-image: url('images/IMG_6594-2.webp');
    background-size: cover;
    background-position: center 63%;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: clamp(2rem, 3vw, 3rem) 1.25rem;
}

.hero-overlay {
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 8px;
    width: min(720px, 96vw);
    box-shadow: 0 12px 30px rgba(0,0,0,0.28);
}

.hero h1 {
    font-size: clamp(2rem, 2vw + 1.4rem, 2.6rem);
    margin-bottom: 0.5rem;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* Programs Section */
.programs-section {
    padding: 3rem 1rem;
    background-color: #fff;
}

.programs-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.program-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.program-card {
    flex: 1 1 260px;
    max-width: 300px;
    background: var(--background-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
}

.program-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
}

.program-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.program-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

/* Small badge for ages/labels */
.badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 999px;
    background: var(--secondary-color);
    color: #000;
    vertical-align: middle;
}

/* Blog Section on home */
.blog-section {
    padding: 3rem 1rem;
    background-color: var(--accent-color);
    color: #fff;
}

.blog-section h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.blog-card {
    max-width: 600px;
    margin: 0 auto 1.5rem;
    background: rgba(255,255,255,0.2);
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    text-align: center;
}

.blog-card h3 {
    margin-top: 0;
}

.blog-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.blog-card .btn {
    display: inline-block;
}

/* Gallery Section */
.gallery-section {
    padding: 3rem 1rem;
    background-color: #fff;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* width/height set in HTML for CLS; CSS keeps a consistent crop */
}

.gallery-cta {
    text-align: center;
    margin-top: 1.5rem;
}

/* Inquiry Section */
.inquiry-section {
    padding: 3rem 1rem;
    background-color: #fff7f0;
}

.inquiry-card {
    max-width: 1100px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.inquiry-copy h2 {
    margin-top: 0;
    color: var(--secondary-color);
}

.inquiry-copy p {
    margin-bottom: 0.75rem;
}

.email-highlight a {
    font-weight: 700;
    color: var(--secondary-color);
}

.inquiry-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.inquiry-form label {
    font-weight: 600;
    font-size: 0.95rem;
}

.inquiry-form input,
.inquiry-form textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font: inherit;
    background-color: #fff;
}

.inquiry-form textarea {
    resize: vertical;
    min-height: 140px;
}

.inquiry-form .btn {
    width: 100%;
}

.form-note {
    font-size: 0.85rem;
    color: #555;
    margin: 0.25rem 0 0;
}

/* Contact Section */
.contact-section {
    padding: 3rem 1rem;
    background-color: var(--background-color);
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.contact-section p {
    margin: 0 auto 1rem;
    max-width: 600px;
    font-size: 0.95rem;
}

.map-embed {
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.map-embed iframe {
    width: 100%;
    height: 360px;
    border: 0;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* Footer */
.site-footer {
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    font-size: 0.85rem;
}

/* Page-specific hero for secondary pages */
.page-hero {
    position: relative;
    min-height: 40vh;
    background-image: url('Website Pictures/Copy of Color Est 1994.png');
    background-size: contain; /* show full pic on all viewports */
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    padding: clamp(1.5rem, 3vw, 2.5rem) 1.25rem;
}

.page-hero .hero-overlay {
    background: rgba(0,0,0,0.5);
    padding: 2rem;
    border-radius: 8px;
}

/* Generic content sections for about/program pages */
.about-content,
.program-detail,
.blog-list {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.about-content h2,
.program-detail h2,
.blog-list h2 {
    color: var(--secondary-color);
    margin-top: 1.5rem;
}

.about-content p,
.program-detail p,
.blog-list p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Blog list on blog page */
.blog-list .blog-post {
    margin-bottom: 2rem;
}

.blog-list .blog-post h2 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.blog-list .blog-post p {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.thank-you-section {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
}

.thank-you-card {
    max-width: 680px;
    background: #fff;
    border-radius: 18px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 16px 34px rgba(0,0,0,0.1);
}

.thank-you-card h1 {
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.thank-you-card p {
    margin-bottom: 1rem;
}

/* Small-screen refinements */
@media (max-width: 600px) {
    .hero {
        min-height: 70vh;
        padding: 1.25rem 1rem 1.75rem;
        background-position: center 60%;
    }

    .hero-overlay {
        padding: 1.1rem 1.25rem;
        width: min(520px, 92vw);
    }

    .hero p {
        font-size: 0.98rem;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 5vw + 1rem, 2.2rem);
    }

    .cta-group {
        width: 100%;
        gap: 0.5rem;
        justify-content: center;
    }

    .cta-group .btn {
        flex: 1 1 calc(50% - 0.75rem);
        min-width: 140px;
    }

    .programs-section,
    .blog-section,
    .gallery-section,
    .inquiry-section,
    .contact-section {
        padding: 2.25rem 1rem;
    }

    .program-card {
        max-width: 100%;
    }

    .map-embed iframe {
        height: 260px;
    }

    .page-hero {
        min-height: 32vh;
        background-position: center;
    }

    .page-hero .hero-overlay {
        padding: 1.1rem 1.25rem;
        width: min(520px, 92vw);
    }

    .thank-you-card {
        padding: 2rem 1.25rem;
    }
}

