/* ==========================================================================
   Anan Early Years – shared inner-page components
   Page banner, sticky section menu and closing CTA (About, Programs, ...)
   Builds on style.css
   ========================================================================== */

/* ---------- Page banner ---------- */
.page-banner {
    position: relative;
    overflow: hidden;
    padding: 50px 0 120px;
    background:
        radial-gradient(55% 60% at 85% 25%, rgba(240, 138, 176, .18), transparent 70%),
        radial-gradient(45% 50% at 10% 85%, rgba(123, 184, 174, .16), transparent 70%),
        radial-gradient(35% 40% at 45% 0%, rgba(245, 200, 90, .14), transparent 70%);
}

.page-banner > .container {
    z-index: 2;
}

.pb-s1 { top: 16%; left: 48%; width: 30px; }
.pb-s2 { bottom: 34%; right: 4%; width: 22px; fill: var(--teal); animation-delay: -1.5s; }
.pb-d1 { top: 30%; left: 4%; background: var(--yellow); }

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    margin-bottom: 22px;
    border-radius: 40px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}

.breadcrumb-nav a {
    color: var(--purple-deep);
}

.breadcrumb-nav a:hover {
    color: var(--pink);
}

.breadcrumb-nav > i {
    font-size: 11px;
    color: var(--muted);
}

.pb-title {
    font-size: clamp(2.8rem, 6.2vw, 5.2rem);
    letter-spacing: -.03em;
    line-height: 1.08;
    margin-bottom: 22px;
}

/* Extra bottom room (offset by the negative margin) keeps script descenders inside the reveal mask */
.pb-title .line {
    display: block;
    overflow: hidden;
    padding-bottom: .36em;
    margin-bottom: -.24em;
}

.pb-title .pb-word {
    display: inline-block;
}

.pb-title .script-word {
    font-size: 1.1em;
    line-height: 1.15;
    display: inline-block;
}

.pb-text {
    max-width: 540px;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.pb-text strong,
.pb-text em {
    color: var(--purple-deep);
}

.pb-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Photo cluster */
.pb-cluster {
    position: relative;
    max-width: 540px;
    margin: 0 auto;
    aspect-ratio: 1 / .9;
}

.pb-ring {
    position: absolute;
    inset: 6% 8%;
    border-radius: 50%;
    border: 2px dashed rgba(147, 115, 168, .4);
    animation: spin 45s linear infinite;
}

.pb-photo {
    position: absolute;
    margin: 0;
    overflow: hidden;
    border: 8px solid #fff;
    box-shadow: var(--shadow);
    background: var(--purple-soft);
    animation: floaty 6s ease-in-out infinite;
}

.pb-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pb-photo-1 {
    width: 56%;
    aspect-ratio: 1;
    top: 6%;
    left: 4%;
    border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%;
    animation: floaty 6s ease-in-out infinite, morph 12s ease-in-out infinite;
}

.pb-photo-2 {
    width: 42%;
    aspect-ratio: 1;
    top: 28%;
    right: 2%;
    border-radius: 50%;
    animation-delay: -2s;
}

.pb-photo-3 {
    width: 34%;
    aspect-ratio: 1;
    bottom: 2%;
    left: 24%;
    border-radius: 50%;
    animation-delay: -4s;
}

.pb-chip {
    position: absolute;
    top: 6%;
    right: 8%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 40px;
    background: #fff;
    box-shadow: var(--shadow);
    font-weight: 700;
    color: var(--ink);
}

.pb-chip i {
    color: var(--orange);
}

@media (max-width: 991px) {
    .page-banner {
        padding: 30px 0 100px;
        text-align: center;
    }

    .pb-text {
        margin-left: auto;
        margin-right: auto;
    }

    .pb-btns {
        justify-content: center;
    }

    .pb-cluster {
        max-width: 420px;
    }
}

@media (max-width: 575px) {
    .pb-photo {
        border-width: 5px;
    }
}

/* ---------- Sticky in-page navigation ---------- */
.page-subnav {
    position: sticky;
    top: 16px;
    z-index: 50;
    display: flex;
    gap: 4px;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: -60px auto 0;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
    transition: top .5s var(--ease);
}

.page-subnav::-webkit-scrollbar {
    display: none;
}

/* Drop below the header while it is showing */
.site-header.scrolled:not(.hide) ~ main .page-subnav {
    top: 82px;
}

.page-subnav a {
    flex-shrink: 0;
    padding: 10px 20px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    transition: background .3s, color .3s;
}

.page-subnav a:hover {
    color: var(--purple-deep);
    background: var(--purple-soft);
}

.page-subnav a.active {
    color: #fff;
    background: var(--purple-deep);
}

@media (max-width: 575px) {
    .page-subnav {
        margin-top: -40px;
    }

    .page-subnav a {
        padding: 9px 14px;
        font-size: 13px;
    }
}

/* ---------- CTA ---------- */
.page-cta {
    padding: 20px 0 110px;
    background: #fff;
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: 60px 56px;
    border-radius: 36px;
    color: rgba(255, 255, 255, .88);
    background:
        radial-gradient(60% 80% at 100% 0%, rgba(240, 138, 176, .6), transparent 70%),
        radial-gradient(60% 80% at 0% 100%, rgba(123, 184, 174, .5), transparent 70%),
        var(--purple-deep);
    box-shadow: var(--shadow);
}

.cta-card h2 {
    margin: 4px 0 12px;
    color: #fff;
    font-size: clamp(1.8rem, 3.4vw, 2.7rem);
}

.cta-card p {
    margin: 0;
    max-width: 560px;
}

.cta-btns {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.cta-phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.cta-phone i {
    margin-right: 8px;
    color: var(--yellow);
}

.cta-phone:hover {
    color: var(--yellow);
}

.cta-s1 {
    top: -30px;
    right: -30px;
    width: 170px;
    fill: rgba(255, 255, 255, .1);
    animation: spin 24s linear infinite;
}

@media (max-width: 991px) {
    .cta-card {
        padding: 44px 28px;
    }

    .cta-btns {
        align-items: flex-start;
    }
}

/* Inner pages end on a white CTA band */
.inner-page .site-footer {
    margin-top: 0;
}
