/* ==========================================================================
   Houston Child Development Center - Play & Learn Photo Section
   Full-Width Playground & Classroom Image Section

   Reference Behavior (kidsworldcyfair.com/landing-page/):
   - Dramatic full-width playground image with fixed/parallax viewport scrolling.
   - White typography + warm golden accent eyebrow anchored bottom-left.
   - Second wide classroom photograph immediately follows edge-to-edge.
   - Smooth, native performance without external library bloat or scroll-jacking.
   - Graceful fallback for mobile & prefers-reduced-motion.

   Brand Palette:
   - Dark Green:    #174525
   - Primary Green: #28763B
   - Pale Green:    #F0F6ED
   - Warm Gold:     #ffc233 / #ffae00
   - White:         #ffffff
   ========================================================================== */

.play-learn-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #174525;
}

.play-learn-section figure {
    margin: 0;
}

/* --------------------------------------------------------------------------
   1. Main Playground Banner (Parallax / Fixed Viewport Depth Effect)
   -------------------------------------------------------------------------- */
.play-learn-banner {
    position: relative;
    width: 100%;
    height: 480px;
    background-image: url('../images/play-learn/playground-banner.jpg');
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Creates seamless window parallax scroll */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
}

/* Subtle dark gradient overlay: ensures contrast for bottom-left typography */
.play-learn-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(10, 28, 16, 0.08) 0%,
        rgba(10, 28, 16, 0.20) 45%,
        rgba(10, 28, 16, 0.52) 75%,
        rgba(10, 28, 16, 0.78) 100%
    );
}

.play-learn-banner .auto-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: 56px;
}

.play-learn-content {
    max-width: 660px;
    text-align: left;
}

.play-learn-eyebrow {
    display: block;
    margin-bottom: 12px;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffc233;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.play-learn-heading {
    margin: 0;
    font-family: 'Fredoka One', cursive;
    font-size: 38px;
    font-weight: 400;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* --------------------------------------------------------------------------
   2. Classroom Image Section (Immediately Follows Flush Below)
   -------------------------------------------------------------------------- */
.play-learn-classroom {
    position: relative;
    width: 100%;
    height: 350px;
    background-image: url('../images/play-learn/classroom-wide.jpg');
    background-size: cover;
    background-position: center 60%;
    background-repeat: no-repeat;
    overflow: hidden;
    margin: 0;
    border: none;
}

/* Accessible screen-reader text for SEO without altering visible layout */
.play-learn-photo .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;
}

/* --------------------------------------------------------------------------
   Responsive Design & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .play-learn-banner {
        height: 460px;
    }

    .play-learn-heading {
        font-size: 34px;
    }

    .play-learn-classroom {
        height: 330px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .play-learn-banner {
        height: 420px;
    }

    .play-learn-banner .auto-container {
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 44px;
    }

    .play-learn-content {
        max-width: 560px;
    }

    .play-learn-heading {
        font-size: 31px;
    }

    .play-learn-classroom {
        height: 300px;
    }
}

/* Mobile & Touch Devices */
/* Note: Mobile Safari / Android browsers have known stutter or zoom issues with fixed backgrounds.
   We smoothly fall back to standard cover scrolling on small screens and touch devices. */
@media (max-width: 767px) {
    .play-learn-banner {
        height: 380px;
        background-attachment: scroll; /* Smooth performance on mobile */
        background-position: 40% center;
    }

    .play-learn-banner .auto-container {
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 34px;
    }

    .play-learn-eyebrow {
        font-size: 12px;
        letter-spacing: 0.14em;
        margin-bottom: 8px;
    }

    .play-learn-heading {
        font-size: 26px;
        line-height: 1.28;
    }

    .play-learn-classroom {
        height: 240px;
        background-position: center;
    }
}

@media (max-width: 420px) {
    .play-learn-banner {
        height: 340px;
    }

    .play-learn-heading {
        font-size: 24px;
    }

    .play-learn-classroom {
        height: 210px;
    }
}

/* Respect Reduced-Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    .play-learn-banner {
        background-attachment: scroll !important;
    }
}
