/* =====================================================
   Kids Village Tanger — Custom CSS (complementing Tailwind)
   ===================================================== */

/* ── Global Reset & Fonts ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ── CUSTOM VARIABLES ── */
:root {
    --nav-blue: #bde0fe;
    --nav-green: #b7e4c7;
    --nav-yellow: #fdf0d5;
    --nav-orange: #ffd6a5;
    --nav-pink: #ffcbf2;
    --nav-cta: #ffb703;
    --nav-cta-hover: #fb8500;
    --text-color: #333333;
}

/* ── HEADER & NAVBAR ── */
.kids-header {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 0 15px;
}

.kids-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 60px;
    padding: 6px 16px;
    width: 100%;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Fredoka', sans-serif;
}

/* ── BRAND LOGO ── */
.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand img {
    height: 60px;
    width: auto;
    object-fit: contain;
    transform: scale(2.5);
    transform-origin: left center;
}

/* ── NAVIGATION MENU ── */
.nav-menu {
    display: none;
    /* Hidden on mobile */
    align-items: center;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px;
    border-radius: 40px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-link.active {
    box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.1);
}

/* Pastel Colors */
.nav-blue {
    background-color: var(--nav-blue);
}

.nav-green {
    background-color: var(--nav-green);
}

.nav-yellow {
    background-color: var(--nav-yellow);
}

.nav-orange {
    background-color: var(--nav-orange);
}

.nav-pink {
    background-color: var(--nav-pink);
}

/* ── CTA & ACTIONS ── */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-cta {
    background-color: var(--nav-cta);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    border-radius: 40px;
    box-shadow: 0 4px 10px rgba(255, 183, 3, 0.3);
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-cta:hover {
    background-color: var(--nav-cta-hover);
    transform: translateY(-2px);
}

/* ── MOBILE TOGGLE ── */
.mobile-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
}

/* ── MOBILE NAVIGATION ── */
.mobile-nav-menu {
    position: fixed;
    top: 80px;
    left: 15px;
    right: 15px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 10px;
    z-index: 1001;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-menu.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.mobile-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px;
    border-radius: 16px;
    text-align: center;
}

.mobile-cta {
    background-color: var(--nav-cta);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px;
    border-radius: 16px;
    text-align: center;
    margin-top: 10px;
}

/* ── HERO ── */
.hero {
    position: relative;
    background: linear-gradient(to bottom, #ffffff 40%, #c8edfb 72%, #a6e1fa 100%);
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero Content & Layout */
/* We removed the CSS grid here to allow full-width background slider */

/* Floating Emoji Elements */
.floating-el {
    position: absolute;
    animation: float 4s ease-in-out infinite alternate;
    z-index: 5;
    opacity: 0.85;
    pointer-events: none;
    will-change: transform;
    transform: scale(0.6);
    /* Reduced size on mobile */
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg) scale(0.6);
    }

    100% {
        transform: translateY(-10px) rotate(8deg) scale(0.6);
    }
}

.el-1 {
    top: 15%;
    left: 5%;
}

.el-2 {
    top: 12%;
    right: 10%;
}

.el-3 {
    top: 40%;
    right: 5%;
}

.el-4 {
    top: 60%;
    left: 8%;
}

.el-5 {
    top: 75%;
    right: 12%;
}

.el-6 {
    top: 80%;
    left: 15%;
}

.el-7 {
    top: 30%;
    right: 2%;
}

.hero-content {
    /* No longer display:contents, uses flexbox classes from HTML */
}

/* Wave Divider */
.wave-bottom {
    position: absolute;
    bottom: -1px;
    left: -1px;
    width: calc(100% + 2px);
    line-height: 0;
    z-index: 6;
    pointer-events: none;
}

.wave-bottom svg {
    display: block;
    width: 100%;
    height: 80px;
    /* Smaller wave on mobile */
}

/* Wave Animations */
.wave-back {
    animation: waveBack 7s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

.wave-front {
    animation: waveFront 5s ease-in-out infinite alternate;
    transform-origin: center bottom;
}

@keyframes waveBack {
    0% {
        transform: translateX(0px) scaleY(1);
    }

    50% {
        transform: translateX(-10px) scaleY(1.03);
    }

    100% {
        transform: translateX(10px) scaleY(0.98);
    }
}

@keyframes waveFront {
    0% {
        transform: translateX(0px) scaleY(1);
    }

    50% {
        transform: translateX(15px) scaleY(1.02);
    }

    100% {
        transform: translateX(-10px) scaleY(0.99);
    }
}


/* ── SCATTERED ANIMATED COLLAGE ── */
.about-collage-animated {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 450px;
    min-width: 360px;
}

.collage-slot {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 20px;
    border: 6px solid #fff;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: transform 0.4s ease, z-index 0.4s ease;
}

.collage-slot:hover {
    transform: scale(1.08) translateY(-10px) !important;
    z-index: 10 !important;
}

.slot-1 { top: 10%; left: 0; transform: rotate(-8deg); z-index: 1; }
.slot-2 { top: 5%; right: 0; transform: rotate(10deg); z-index: 2; width: 190px; height: 190px; }
.slot-3 { bottom: 5%; left: 15%; transform: rotate(6deg); z-index: 3; width: 210px; height: 210px; }
.slot-4 { bottom: 0; right: 10%; transform: rotate(-5deg); z-index: 4; }

.collage-slot img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.collage-slot img.active {
    opacity: 1;
}

/* Make it responsive */
@media (max-width: 768px) {
    .about-collage-animated {
        height: 340px;
        min-width: unset;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 2rem auto;
    }
    .collage-slot { width: 150px; height: 150px; border-width: 4px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
    .slot-1 { top: 10px; left: 0; }
    .slot-2 { top: 30px; right: 0; width: 130px; height: 130px; }
    .slot-3 { bottom: 30px; left: 5%; width: 140px; height: 140px; }
    .slot-4 { bottom: 0; right: 5%; width: 150px; height: 150px; }
}

/* ── PLAYGROUND BANNER ── */
.playground-banner {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.playground-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* On mobile, we use standard scroll, parallax (fixed) is problematic on iOS */
    background-attachment: scroll;
}

/* ── GALLERY FILTERS ── */
.gallery-filters {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    background-color: white;
    border-radius: 40px;
    padding: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.gallery-filters::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    border: none;
    background: transparent;
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    font-family: 'Fredoka', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    color: #374151;
    flex-shrink: 0;
}

.filter-btn:hover {
    transform: scale(1.04);
}

.filter-btn.active[data-filter="all"] {
    background-color: white;
    border: 2px solid #e5e7eb;
}

.filter-btn.active[data-filter="birthdays"] {
    background-color: #ffb7d5;
}

.filter-btn.active[data-filter="school"] {
    background-color: #ffe97d;
}

.filter-btn.active[data-filter="holidays"] {
    background-color: #9bf3d0;
}

.filter-btn.active[data-filter="animals"] {
    background-color: #ffb57b;
}

.filter-btn[data-filter="birthdays"]:hover {
    background-color: #ffb7d5;
}

.filter-btn[data-filter="school"]:hover {
    background-color: #ffe97d;
}

.filter-btn[data-filter="holidays"]:hover {
    background-color: #9bf3d0;
}

.filter-btn[data-filter="animals"]:hover {
    background-color: #ffb57b;
}

/* ── GALLERY GRID ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 cols on mobile */
    gap: 12px;
    grid-auto-rows: 220px;
    margin-bottom: 2rem;
}

@media (max-width: 400px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        /* 1 col on very small screens */
    }
}

.gallery-item {
    border-radius: 20px;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.10);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Clown image spans 2 cols on mobile if it fits, or adjust */
.main-clown {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 400px) {
    .main-clown {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* ── TESTIMONIALS ── */
.testimonials-slider {
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-bubbles {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.bubble {
    padding: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.07);
    transition: transform 0.2s;
}

.bubble:hover {
    transform: translateY(-4px);
}

/* ── CONTACT & MAP ── */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: stretch;
}

.fun-info-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.map-embed {
    width: 100%;
    height: 250px;
    /* Specific mobile height */
    min-height: 250px;
}

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

/* ── FOOTER ── */
footer {
    padding-top: 60px;
    padding-bottom: 30px;
}

.footer-logo img {
    height: 100px;
    transform: scale(2);
}

.footer-decorations {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 120px;
    pointer-events: none;
    z-index: 2;
}

.footer-decor-group {
    position: absolute;
    bottom: 0;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    transform: scale(0.7);
    transform-origin: bottom center;
}

.footer-decor-group svg {
    height: 100%;
    width: auto;
    overflow: visible;
}

.decor-hills {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    z-index: 1;
}

.decor-hills svg {
    width: 100%;
    height: 100%;
}

@keyframes ear-flap {

    0%,
    100% {
        transform: scaleX(1);
    }

    50% {
        transform: scaleX(1.2);
    }
}

@keyframes neck-sway {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-3deg);
    }
}

@keyframes bird-fly {

    0%,
    100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-10px) translateX(5px);
    }
}

@keyframes wing-flap {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(0.3);
    }
}

@keyframes tail-wag {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

/* Application of animations */
.anim-sway {
    animation: sway-slow 4s ease-in-out infinite;
    transform-origin: bottom center;
}

.anim-ear {
    animation: ear-flap 3s ease-in-out infinite;
    transform-origin: left center;
}

.anim-neck {
    animation: neck-sway 5s ease-in-out infinite;
    transform-origin: bottom center;
}

.anim-wing {
    animation: wing-flap 0.3s ease-in-out infinite alternate;
    transform-origin: center;
}

.anim-tail {
    animation: tail-wag 1s ease-in-out infinite;
    transform-origin: left bottom;
}

@keyframes blink {

    0%,
    90%,
    100% {
        transform: scaleY(1);
    }

    95% {
        transform: scaleY(0.1);
    }
}

.eye-blink {
    animation: blink 4s infinite;
    transform-origin: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.map-embed {
    flex: 1.5;
    min-height: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 4px solid #a6e1fa;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
}

.map-embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}

footer {
    background-color: #a6e1fa;
    position: relative;
    padding-top: 3rem;
    padding-bottom: 2rem;
}

/* ── TABLET PORTRAIT (min-width: 601px) ── */
@media (min-width: 601px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 240px;
    }

    .main-clown {
        grid-column: span 1;
        grid-row: span 2;
    }

    .testimonial-bubbles {
        flex-direction: row;
    }

    .bubble {
        flex: 1;
    }

    .footer-decor-group {
        height: 130px;
        transform: scale(0.85);
    }
}

/* ── TABLET LANDSCAPE (min-width: 769px) ── */
@media (min-width: 769px) {
    .nav-menu {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }

    .hero>.max-w-6xl {
        grid-template-areas: none;
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 30px;
    }

    .hero-content {
        display: block;
    }

    .hero-content h1 {
        grid-area: auto;
    }

    .hero-content p {
        grid-area: auto;
    }

    .hero-content .flex {
        grid-area: auto;
        justify-content: flex-start;
    }

    .hero-image-wrapper {
        grid-area: auto;
        width: auto;
        margin: 0;
    }

    .hero-image-wrapper>div {
        height: 420px !important;
    }

    .floating-el {
        transform: scale(1);
    }

    @keyframes float {
        0% {
            transform: translateY(0px) rotate(0deg) scale(1);
        }

        100% {
            transform: translateY(-18px) rotate(8deg) scale(1);
        }
    }

    .wave-bottom svg {
        height: 120px;
    }

    .about-collage {
        position: relative;
        height: 380px;
        min-width: 360px;
        flex: 1;
        display: block;
        /* Disable grid for absolute layout */
    }

    .collage-img {
        position: absolute;
        height: auto;
    }

    .img-1 {
        width: 185px;
        height: 185px;
        top: 0;
        left: 15px;
        transform: rotate(-5deg);
    }

    .img-2 {
        width: 160px;
        height: 155px;
        top: 25px;
        right: 15px;
        transform: rotate(5deg);
    }

    .img-3 {
        width: 195px;
        height: 195px;
        bottom: 15px;
        left: 0;
        transform: rotate(3deg);
    }

    .img-4 {
        width: 215px;
        height: 155px;
        bottom: 0;
        right: 5px;
        transform: rotate(-3deg);
    }

    .about-text {
        flex: 1;
    }

    .playground-banner {
        height: 380px;
    }

    .playground-banner img {
        background-attachment: fixed;
        /* Parallax works better here */
    }

    .contact-container {
        flex-direction: row;
    }

    .map-embed {
        flex: 1.5;
        height: auto;
    }

    .map-embed iframe {
        height: 100%;
    }

    .footer-decorations {
        height: 180px;
    }

    .footer-decor-group {
        transform: scale(1);
    }
}

/* ── LAPTOP (min-width: 1025px) ── */
@media (min-width: 1025px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 270px;
        max-width: 1100px;
        margin: 0 auto 3rem;
    }

    .main-clown {
        grid-row: span 2;
    }

    .kids-navbar {
        padding: 8px 24px;
    }

    .nav-brand img {
        height: 50px;
    }

    .nav-link {
        font-size: 1rem;
    }

    .nav-cta {
        font-size: 1.05rem;
        padding: 12px 28px;
    }
}

/* ── DESKTOP (min-width: 1281px) ── */
@media (min-width: 1281px) {
    .kids-navbar {
        max-width: 1200px;
    }

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

/* ── SCROLL REVEAL ── */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure hero is always visible */
#home.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

/* ── REGULATIONS PAGE SPECIFIC ── */
.reg-hero {
    background: linear-gradient(135deg, #fdf0d5 0%, #ffb7d5 100%);
    padding: 120px 20px 60px;
    text-align: center;
    border-radius: 0 0 80px 80px;
}

.reg-container {
    max-width: 1100px;
    margin: -40px auto 80px;
    padding: 0 20px;
    position: relative;
    z-index: 20;
}

.reg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.reg-card {
    background: white;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.reg-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.reg-card.blue {
    border-bottom: 6px solid var(--nav-blue);
}

.reg-card.green {
    border-bottom: 6px solid var(--nav-green);
}

.reg-card.yellow {
    border-bottom: 6px solid #ffe97d;
}

.reg-card.orange {
    border-bottom: 6px solid var(--nav-orange);
}

.reg-card.pink {
    border-bottom: 6px solid var(--nav-pink);
}

.reg-icon {
    width: 60px;
    height: 60px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.reg-card h3 {
    font-family: 'Fredoka', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
}

.reg-card p,
.reg-card ul {
    font-family: 'Quicksand', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.reg-card ul {
    list-style: none;
    padding-left: 0;
}

.reg-card ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
}

.reg-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: currentColor;
    font-weight: bold;
}

.reg-highlight {
    background-color: #fef9c3;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
}

.reg-warning {
    color: #dc2626;
    font-weight: 700;
    margin-top: auto;
    padding-top: 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #333;
    padding: 12px 25px;
    border-radius: 40px;
    font-weight: 700;
    font-family: 'Fredoka', sans-serif;
    margin-bottom: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
    .reg-grid {
        grid-template-columns: 1fr;
    }

    .reg-hero h1 {
        font-size: 2.2rem;
    }
}

/* ══════════════════════════════════════════════════════
   BOOKING / INSCRIPTION FORM STYLES
   Added for the online registration section (#book)
   ══════════════════════════════════════════════════════ */

/* Cards */
.book-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.book-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    border-bottom: 1px solid #f1f5f9;
}

.book-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.book-card-body {
    padding: 24px;
}

/* Grid layout for form fields */
.book-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .book-grid {
        grid-template-columns: 1fr;
    }
}

.col-span-full {
    grid-column: 1 / -1;
}

/* Form fields */
.book-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.book-label {
    font-family: 'Quicksand', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.book-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: 'Quicksand', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}

.book-input:focus {
    border-color: #60a5fa;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.15);
}

.book-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* Children blocks */
.child-block {
    background: #f0fdf4;
    border: 2px solid #bbf7d0;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
}

.child-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 14px;
    padding: 4px 12px;
    background: #dcfce7;
    border-radius: 10px;
}

/* Loading overlay for form */
.book-loading {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.book-loading .spinner {
    width: 56px;
    height: 56px;
    border: 5px solid #e2e8f0;
    border-top: 5px solid #f97316;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── HERO CAROUSEL / SLIDER TRANSITIONS ── */
.hero-slide {
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 0.8s ease-in-out;
    transform: scale(1.03);
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 20;
}

.slide-caption {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 70%, transparent 100%);
}

/* Float Animation delay helpers */
.floating-el:nth-child(1) { animation-delay: 0s; }
.floating-el:nth-child(2) { animation-delay: 0.5s; }
.floating-el:nth-child(3) { animation-delay: 1s; }
.floating-el:nth-child(4) { animation-delay: 1.5s; }
.floating-el:nth-child(5) { animation-delay: 2s; }
.floating-el:nth-child(6) { animation-delay: 2.5s; }
.floating-el:nth-child(7) { animation-delay: 3s; }

/* ── GALLERY ITEM HOVER OVERLAYS ── */
.gallery-item {
    position: relative;
    border-radius: 24px !important;
    border: 4px solid white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
    opacity: 1;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-badge {
    transition: all 0.3s ease;
}

/* Hover effects per category on desktop */
@media (hover: hover) {
    .gallery-overlay h3,
    .gallery-overlay p,
    .gallery-overlay .gallery-badge {
        transform: translateY(12px);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .gallery-item:hover .gallery-overlay h3,
    .gallery-item:hover .gallery-overlay p,
    .gallery-item:hover .gallery-overlay .gallery-badge {
        transform: translateY(0);
    }

    /* School (Pastel Yellow) */
    .gallery-item.school:hover .gallery-overlay {
        background: rgba(254, 240, 138, 0.96);
        color: #1f2937 !important;
    }
    .gallery-item.school:hover .gallery-badge {
        background-color: #1f2937 !important;
        color: #fde047 !important;
    }

    /* Birthdays (Pastel Pink) */
    .gallery-item.birthdays:hover .gallery-overlay {
        background: rgba(255, 183, 213, 0.96);
        color: #1f2937 !important;
    }
    .gallery-item.birthdays:hover .gallery-badge {
        background-color: #1f2937 !important;
        color: #ffb7d5 !important;
    }

    /* Holidays (Pastel Green) */
    .gallery-item.holidays:hover .gallery-overlay {
        background: rgba(167, 243, 208, 0.96);
        color: #1f2937 !important;
    }
    .gallery-item.holidays:hover .gallery-badge {
        background-color: #1f2937 !important;
        color: #34d399 !important;
    }

    /* Animals (Pastel Blue) */
    .gallery-item.animals:hover .gallery-overlay {
        background: rgba(186, 230, 253, 0.96);
        color: #1f2937 !important;
    }
    .gallery-item.animals:hover .gallery-badge {
        background-color: #1f2937 !important;
        color: #38bdf8 !important;
    }
}

/* Touch fallback: set nice color badges */
@media (hover: none) {
    .gallery-item.school .gallery-badge {
        background-color: #fde047;
        color: #1f2937;
    }
    .gallery-item.birthdays .gallery-badge {
        background-color: #ffb7d5;
        color: #1f2937;
    }
    .gallery-item.holidays .gallery-badge {
        background-color: #34d399;
        color: #1f2937;
    }
    .gallery-item.animals .gallery-badge {
        background-color: #38bdf8;
        color: #1f2937;
    }
}