/* =========================================
   VARIABLES & BASE STYLES
   ========================================= */
   :root {
    /* Color Palette */
    --clr-primary: #C1E1F4; /* Soft Sky Blue */
    --clr-primary-dark: #91c7e6;
    --clr-secondary: #F4A396; /* Playful Coral */
    --clr-secondary-dark: #e88676;
    --clr-accent: #FDE6A9; /* Warm Sand/Yellow */
    --clr-bg: #FDFBF7; /* Soft White */
    --clr-text: #2D3748; /* Soft Dark Gray */
    --clr-text-light: #4A5568;
    
    /* Typography */
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Quicksand', sans-serif;

    /* Styling */
    --border-radius-lg: 2rem;
    --border-radius-md: 1rem;
    --border-radius-sm: 0.5rem;
    --shadow-soft: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 35px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-bg);
    color: var(--clr-text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo-text, .section-title {
    font-family: var(--font-heading);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    --prox-scale: 1;
    --prox-rx: 0deg;
    --prox-ry: 0deg;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
.text-center { text-align: center; }
.text-white { color: white; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--clr-text);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--clr-primary-dark);
    color: white;
    box-shadow: var(--shadow-soft);
    animation: gentle-bounce 2.5s infinite ease-in-out, pulse-glow 3s infinite cubic-bezier(0.66, 0, 0, 1);
}

.btn-primary:hover {
    background-color: var(--clr-secondary);
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-hover);
    /* Pause animation on hover for a stable click area */
    animation-play-state: paused;
}

@keyframes gentle-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(145, 199, 230, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(145, 199, 230, 0); }
    100% { box-shadow: 0 0 0 0 rgba(145, 199, 230, 0); }
}

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

.btn-secondary:hover {
    background-color: var(--clr-primary-dark);
    color: white;
}

/* =========================================
   HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--clr-primary-dark);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.business-name {
    font-size: 1.2rem;
    color: var(--clr-text);
}

.business-sub {
    font-size: 0.9rem;
    color: var(--clr-text-light);
}

.desktop-nav ul {
    display: flex;
    gap: 2rem;
}

.desktop-nav a {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--clr-text);
}

.desktop-nav a:hover {
    color: var(--clr-secondary);
}

.contact-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.phone-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--clr-text);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--clr-text);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
    background-color: var(--clr-primary);
    padding: 6rem 0 8rem 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--clr-text);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

.hero-image {
    width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    animation: float 6s ease-in-out infinite;
    transform: translateZ(30px) !important;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Shape Dividers (Clouds) */
.custom-shape-divider-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.custom-shape-divider-bottom svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.custom-shape-divider-bottom .shape-fill { fill: var(--clr-bg); }
.custom-shape-divider-bottom.pink-divider .shape-fill { fill: var(--clr-secondary); }
.custom-shape-divider-bottom.white-divider .shape-fill { fill: var(--clr-bg); }

/* =========================================
   JOURNEY / SERVICES SECTION
   ========================================= */
.journey-section {
    padding: 5rem 0 8rem 0;
    background-color: var(--clr-bg);
    position: relative;
    z-index: 10;
    overflow: visible;
}

.journey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.journey-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
}

.journey-card:hover {
    transform: translateY(-10px);
    border-color: var(--clr-accent);
}

.journey-img {
    height: 200px;
    object-fit: contain;
    margin: 0 auto 1.5rem auto;
    border-radius: 50%;
    transform: translateZ(30px) !important;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-primary-dark);
}

.extra-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.extra-service-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
}

.text-icon {
    font-size: 2rem;
    color: var(--clr-secondary);
    margin-bottom: 1rem;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-section {
    background-color: var(--clr-secondary);
    padding: 6rem 0 8rem 0;
    position: relative;
}

/* Carousel container styles */
.carousel-container {
    position: relative;
    height: 350px;
    width: 80%;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.carousel-track-container {
    background: transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    padding: 0;
    margin: 0;
    list-style: none;
    position: relative;
    height: 100%;
    transition: transform 250ms ease-in;
}

.carousel-slide {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-frame {
    background: url('path-to-frame') no-repeat center; /* Optional if real image used */
    background-color: var(--clr-accent);
    padding: 3rem;
    border-radius: 1rem;
    border: 8px solid #d4a373; /* Wood-like border */
    max-width: 600px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.review-stars {
    color: #fca311;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.review-author {
    font-family: var(--font-heading);
    font-weight: 600;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    z-index: 100;
    color: var(--clr-secondary);
}

.prev-btn { left: -60px; }
.next-btn { right: -60px; }

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-indicator {
    border: 0;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
}

.carousel-indicator.current-slide {
    background: white;
}

/* =========================================
   PARENTS RESOURCES (REASSURANCE)
   ========================================= */
.reassurance-section {
    padding: 6rem 0;
    background-color: var(--clr-bg);
}

.layout-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.reassurance-image {
    flex: 1;
    transform-style: preserve-3d;
}

.reassurance-content {
    flex: 1;
}

.scroll-img {
    transform: translateZ(20px) !important;
}

/* WIGGLE / POP ANIMATION WHEN MOUSE IS NEAR */
@keyframes character-excited {
    0% { 
        transform: translateZ(30px) scale(1) rotate(0deg); 
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); 
    }
    50% { 
        transform: translateZ(90px) scale(1.15) rotate(2deg); 
        box-shadow: -15px 40px 50px rgba(0, 0, 0, 0.4); 
    }
    100% { 
        transform: translateZ(30px) scale(1) rotate(0deg); 
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); 
    }
}

@keyframes character-excited-scroll {
    0% { 
        transform: translateZ(20px) scale(1) rotate(0deg); 
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); 
    }
    50% { 
        transform: translateZ(70px) scale(1.1) rotate(2deg); 
        box-shadow: -10px 30px 40px rgba(0, 0, 0, 0.35); 
    }
    100% { 
        transform: translateZ(20px) scale(1) rotate(0deg); 
        box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); 
    }
}

.hero-image.is-near, .journey-img.is-near {
    animation: character-excited 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite !important;
}

.scroll-img.is-near {
    animation: character-excited-scroll 3s cubic-bezier(0.25, 0.8, 0.25, 1) infinite !important;
}

/* AUTOMATIC VIBRANT ANIMATION ON MOBILE */
@keyframes mobile-vibrant-bounce {
    0%, 100% {
        transform: translateY(0) scale(1) rotate(0deg);
        filter: brightness(1);
    }
    50% {
        transform: translateY(-15px) scale(1.08) rotate(3deg);
        filter: brightness(1.1);
        box-shadow: 0 15px 25px rgba(0,0,0,0.2);
        border-radius: 20px;
    }
}

@media (max-width: 900px) {
    .hero-image, .journey-img, .scroll-img, img {
        animation: mobile-vibrant-bounce 3s ease-in-out infinite !important;
    }
}

/* =========================================
   GOLDEN DUST & SHIMMER EFFECTS
   ========================================= */
.sparkle {
    position: absolute;
    pointer-events: none;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffffff, #ffd700);
    border-radius: 50%;
    box-shadow: 0 0 10px #ffcc00, 0 0 20px #ffaa00;
    opacity: 0;
    z-index: 50;
    animation: sparkle-float 1s ease-out forwards;
}

.sparkle.star {
    background: transparent;
    box-shadow: none;
}

.sparkle.star::after {
    content: "✨";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 16px;
    color: #ffd700;
    text-shadow: 0 0 8px #fff, 0 0 15px #f6ca17;
}

@keyframes sparkle-float {
    0% {
        transform: translateZ(40px) translateY(0) scale(0);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateZ(60px) translateY(-50px) scale(1.5) rotate(45deg);
        opacity: 0;
    }
}

.philosophy-quote {
    font-size: 1.5rem;
    font-style: italic;
    font-family: var(--font-heading);
    color: var(--clr-secondary-dark);
    margin-bottom: 1.5rem;
}

.resources-list {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.resources-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background-color: white;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.resources-list a:hover {
    background-color: var(--clr-primary);
    color: var(--clr-text);
}

.resources-list i {
    color: var(--clr-primary-dark);
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: #E2F0CB; /* Soft pastel green to match landscape */
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-desc {
    margin: 1rem 0;
    max-width: 300px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    color: #4caf50;
    font-size: 0.9rem;
    box-shadow: var(--shadow-soft);
}

.footer-links h4, .footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a:hover {
    color: var(--clr-secondary-dark);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--clr-secondary);
    margin-top: 0.3rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.1);
    padding-top: 2rem;
    font-size: 0.9rem;
}

.legal-links a {
    margin-left: 1rem;
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }

    .journey-grid, .layout-flex, .footer-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .carousel-container {
        width: 100%;
    }

    .desktop-nav, .contact-cta .btn {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }
}

/* =========================================
   LULLABY MUSIC PLAYER
   ========================================= */
.music-player {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 10px 20px 10px 10px;
    border-radius: 50px;
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    transition: var(--transition);
    border: 2px solid var(--clr-primary-dark);
}

.music-toggle-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--clr-primary-dark);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-soft);
}

.music-toggle-btn:hover {
    background: var(--clr-secondary);
    transform: scale(1.1);
}

.music-text {
    font-family: var(--font-heading);
    color: var(--clr-text);
    font-weight: 600;
    font-size: 1rem;
    user-select: none;
}

@media (max-width: 900px) {
    .music-player {
        bottom: 20px;
        right: 20px;
        padding: 8px;
    }
    .music-text {
        display: none; /* Icon only on mobile */
    }
}
