/* ===== REVITAL DAYCARE - MAIN STYLESHEET ===== */

/* Color Palette */
:root {
    --primary: #2874A6;      /* Dark Teal - WCAG AA contrast on white */
    --secondary: #F4A66D;    /* Warm Coral */
    --accent: #F9D971;       /* Soft Yellow */
    --cream: #FFFBF0;        /* Cream */
    --light-gray: #F5F5F5;   /* Light Gray */
    --dark-gray: #333;       /* Dark Gray */
    --text: #444;            /* Body Text */
    --border: #E0E0E0;       /* Borders */
    --success: #6BBB7A;      /* Soft Green */
}

/* Scroll Animation */
.animate-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== RESET & BASE ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TYPOGRAPHY ===== */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary);
}

/* ===== BUTTONS ===== */

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #4A8FBD;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(93, 173, 226, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-light {
    background-color: white;
    color: var(--primary);
    border: 2px solid white;
}

.btn-light:hover {
    background-color: var(--cream);
    color: var(--primary);
}

/* ===== NAVIGATION ===== */

.navbar {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu .btn-cta {
    background-color: var(--accent);
    color: var(--dark-gray);
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
}

.nav-menu .btn-cta:hover {
    background-color: #F5C94E;
    color: var(--dark-gray);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary);
    margin: 5px 0;
    transition: 0.3s;
}

/* ===== HERO SECTION ===== */

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 100px 20px;
    text-align: center;
}

.hero-content h1 {
    color: white;
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
}

.hero-content .btn-primary {
    background-color: var(--accent);
    color: var(--dark-gray);
}

.hero-content .btn-primary:hover {
    background-color: #F5C94E;
}

/* ===== PAGE HEADER ===== */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, #4A8FBD 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* ===== SECTIONS ===== */

section {
    padding: 60px 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #555;
    text-align: center;
    margin-bottom: 2rem;
}

/* ===== WELCOME SECTION ===== */

.welcome-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.welcome-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.welcome-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.5rem;
}

/* ===== FEATURES SECTION ===== */

.features {
    background-color: var(--light-gray);
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
}

/* ===== PROGRAMS SECTION ===== */

.programs-preview {
    text-align: center;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.program-card {
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 5px solid var(--primary);
    text-align: left;
    transition: all 0.3s ease;
}

.program-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.program-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.program-card p {
    color: #888;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.program-card ul {
    list-style: none;
    text-align: left;
}

.program-card li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.program-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

/* ===== TESTIMONIALS ===== */

.testimonials {
    background-color: var(--cream);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.testimonial-card .stars {
    color: var(--accent);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-card .quote {
    font-style: italic;
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--primary);
}

/* ===== ABOUT SECTION ===== */

.about-section {
    max-width: 800px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text);
}

/* ===== MISSION & VALUES ===== */

.mission-values {
    background-color: var(--light-gray);
}

.mission-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mission-box h2 {
    color: white;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.value-card {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-3px);
}

/* ===== FACILITY ===== */

.facility {
    max-width: 1000px;
    margin: 0 auto;
}

.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.facility-item {
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
    transition: all 0.3s ease;
}

.facility-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.facility-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===== TEAM ===== */

.team h2 {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 3rem 0;
}

.team-member {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.member-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
}

.team-member h3 {
    padding: 20px 20px 5px 20px;
    margin: 0;
}

.team-member .role {
    padding: 0 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.team-member .bio {
    padding: 10px 20px 20px 20px;
    font-size: 0.95rem;
}

.team-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 2rem;
}

/* ===== CERTIFICATIONS ===== */

.certifications {
    background-color: var(--light-gray);
}

.certifications h2 {
    text-align: center;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.cert-item {
    background-color: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-top: 4px solid var(--secondary);
}

/* ===== PROGRAM DETAILS ===== */

.program-detail {
    max-width: 1100px;
    margin: 0 auto;
}

.program-detail.alt {
    background-color: var(--light-gray);
}

.program-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    margin: 2rem 0;
}

.program-detail-content .program-text {
    flex: 1;
}

.program-detail-content .program-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    height: 400px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    text-align: center;
    padding: 20px;
}

.age-range {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.program-description {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 1.5rem 0;
    color: var(--text);
}

.program-features {
    list-style: none;
    margin: 1.5rem 0;
}

.program-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.program-features li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

/* ===== CURRICULUM ===== */

.curriculum {
    max-width: 1000px;
    margin: 0 auto;
}

.curriculum > p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 2rem;
}

.curriculum-item {
    background: linear-gradient(135deg, var(--cream) 0%, white 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.curriculum-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ===== ENROLLMENT ===== */

.enrollment {
    max-width: 1000px;
    margin: 0 auto;
}

.enrollment h2 {
    text-align: center;
}

.enrollment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 2rem 0;
}

.enrollment-info,
.pricing-note {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--primary);
}

.enrollment-info h3,
.pricing-note h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.enrollment-info ol {
    padding-left: 1.5rem;
}

.enrollment-info li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.enrollment-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    margin-top: 2rem;
}

.enrollment-cta h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.enrollment-cta p {
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.5rem;
}

/* ===== GALLERY ===== */

.gallery {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-intro {
    text-align: center;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: var(--text);
}

.gallery h2 {
    color: var(--primary);
    margin: 2.5rem 0 1.5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 3rem;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.gallery-image {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.95rem;
    text-align: center;
    padding: 20px;
}

.gallery-caption {
    background-color: white;
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: var(--primary);
}

.gallery-info {
    background-color: var(--light-gray);
    text-align: center;
    border-radius: 12px;
    padding: 40px;
}

.gallery-info h2 {
    margin-bottom: 1rem;
}

.gallery-info p {
    margin-bottom: 1.5rem;
}

/* ===== CONTACT ===== */

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info h2 {
    margin-bottom: 2rem;
    color: var(--primary);
}

.info-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.contact-form-wrapper h2 {
    color: var(--primary);
    margin-bottom: 2rem;
}

.contact-form {
    background-color: var(--light-gray);
    padding: 30px;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

.contact-form button {
    width: 100%;
    margin-top: 1rem;
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.form-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
    flex-shrink: 0;
}

.form-checkbox label {
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0;
}

.form-checkbox label a {
    text-decoration: underline;
}

.form-note {
    text-align: center;
    color: #555;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* ===== MAP SECTION ===== */

.map-section {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.map-embed {
    margin-top: 2rem;
}

.map-embed iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
}

.map-embed p {
    margin-top: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

/* ===== FAQ ===== */

.faq {
    background-color: var(--light-gray);
}

.faq .container {
    max-width: 1000px;
}

.faq h2 {
    text-align: center;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.faq-item {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid var(--secondary);
}

.faq-item h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.faq-item p {
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== CTA SECTION ===== */

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255,255,255,0.95);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== FOOTER ===== */

.footer {
    background-color: var(--dark-gray);
    color: white;
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #ccc;
}

.footer-section a {
    color: var(--accent);
    font-weight: 600;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #555;
    color: #aaa;
}

.footer-bottom a {
    color: var(--accent);
}

.footer-bottom a:hover {
    color: white;
}

/* ===== PRIVACY POLICY ===== */

.privacy-policy {
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h2 {
    color: var(--primary);
    margin: 2rem 0 1rem;
}

.privacy-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1rem;
}

.privacy-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
    color: var(--text);
}

/* ===== RESPONSIVE DESIGN ===== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        padding: 20px;
        gap: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .features-grid,
    .programs-grid,
    .testimonials-grid,
    .values-grid,
    .facility-grid,
    .team-grid,
    .cert-grid,
    .curriculum-grid,
    .faq-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .program-detail-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .program-detail-content .program-image {
        height: 300px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .enrollment-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 40px 20px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    section {
        padding: 30px 15px;
    }

    .navbar .container {
        padding: 12px 15px;
    }

    .nav-brand .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 20px;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .program-card,
    .testimonial-card,
    .value-card,
    .facility-item,
    .curriculum-item,
    .faq-item {
        padding: 20px;
    }

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