/**
 * BiBi Land Play — mobile-first, pastel, kid-friendly
 */

:root {
    --bg: #fff7fb;
    --ink: #2d3436;
    --muted: #636e72;
    --lavender: #e8e1ff;
    --mint: #d7f6ef;
    --sun: #ffeaa7;
    --pink: #ffb8c9;
    --sky: #bde0fe;
    --coral: #ff7675;
    --white: #ffffff;
    --shadow: 0 18px 45px rgba(45, 52, 54, 0.12);
    --radius: 22px;
    --radius-sm: 14px;
    --font-display: "Fredoka", system-ui, sans-serif;
    --font-body: "Nunito", system-ui, sans-serif;
    --container: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.site-body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: radial-gradient(circle at top, #fff 0%, var(--bg) 55%, #fdefff 100%);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 32px));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.skip-link {
    position: absolute;
    left: -999px;
    top: 10px;
    background: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    z-index: 100;
}

.skip-link:focus {
    left: 16px;
}

/* Decorative layers */
.decor {
    pointer-events: none;
    position: fixed;
    inset: 0;
    z-index: -1;
}

.decor--clouds {
    background:
        radial-gradient(circle at 10% 18%, rgba(255, 255, 255, 0.85) 0, transparent 42%),
        radial-gradient(circle at 70% 12%, rgba(255, 255, 255, 0.75) 0, transparent 38%),
        radial-gradient(circle at 45% 82%, rgba(255, 255, 255, 0.65) 0, transparent 40%);
}

.decor--balloons::before,
.decor--balloons::after {
    content: "";
    position: absolute;
    width: 80px;
    height: 110px;
    border-radius: 50% 50% 48% 48%;
    opacity: 0.35;
}

.decor--balloons::before {
    background: var(--pink);
    top: 120px;
    right: 10%;
    animation: drift 9s ease-in-out infinite alternate;
}

.decor--balloons::after {
    background: var(--sky);
    bottom: 14%;
    left: 8%;
    animation: drift 11s ease-in-out infinite alternate-reverse;
}

.decor--stars {
    background-image:
        radial-gradient(circle, rgba(255, 234, 167, 0.9) 1px, transparent 2px),
        radial-gradient(circle, rgba(189, 224, 254, 0.85) 1px, transparent 2px);
    background-size: 130px 130px, 180px 180px;
    opacity: 0.45;
}

@keyframes drift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-18px);
    }
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-12px);
    }
}

.animate-rise {
    animation: rise 0.8s ease-out both;
}

.animate-float {
    animation: float 5s ease-in-out infinite alternate;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(12px);
    background: rgba(255, 247, 251, 0.82);
    border-bottom: 1px solid rgba(255, 184, 201, 0.35);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    padding: 4px 0;
}

.brand__logo {
    height: 66px;
    width: auto;
    max-width: min(380px, 70vw);
    object-fit: contain;
}

.brand__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.brand__tag {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.nav-link {
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-link:hover {
    background: rgba(255, 184, 201, 0.35);
    transform: translateY(-1px);
}

.nav-link.is-active {
    background: var(--white);
    box-shadow: var(--shadow);
}

.nav-toggle {
    display: none;
    background: var(--white);
    border: 1px solid rgba(45, 52, 54, 0.08);
    border-radius: 12px;
    padding: 10px;
}

.nav-toggle__bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ink);
    margin: 4px 0;
}

.header-cta {
    white-space: nowrap;
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-block;
    }

    .site-nav {
        position: absolute;
        right: 16px;
        top: 72px;
        background: var(--white);
        border-radius: var(--radius);
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
        box-shadow: var(--shadow);
        display: none;
        min-width: min(320px, calc(100vw - 32px));
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-list {
        flex-direction: column;
    }

    .header-cta {
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: 999px;
    padding: 12px 22px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn--accent {
    background: linear-gradient(135deg, #ff9acb, #74b9ff);
    color: var(--white);
    box-shadow: 0 14px 28px rgba(116, 185, 255, 0.35);
}

.btn--ghost {
    background: var(--white);
    border: 2px dashed rgba(255, 118, 117, 0.35);
    color: var(--ink);
}

.btn--sun {
    background: linear-gradient(135deg, #ffeaa7, #fab1a0);
    color: var(--ink);
}

.btn--small {
    padding: 8px 16px;
    font-size: 0.92rem;
}

.btn--wide {
    width: 100%;
}

.btn--bounce:hover {
    animation: bounce 0.45s ease;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-4px);
    }
    70% {
        transform: translateY(-2px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Hero */
.hero {
    padding: 56px 0 32px;
}

.hero__inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 36px;
    align-items: center;
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    margin: 12px 0 8px;
}

.hero__slogan {
    font-weight: 700;
    color: #e84393;
    font-size: 1.15rem;
}

.hero__lead {
    color: var(--muted);
    max-width: 520px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.hero-card {
    position: relative;
    padding: 36px;
    border-radius: 36px;
    background: linear-gradient(160deg, var(--lavender), var(--mint));
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
}

.hero-card__blob {
    position: absolute;
    inset: 14%;
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    background: rgba(255, 255, 255, 0.45);
    filter: blur(0px);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
}

.pill--sun {
    background: var(--sun);
}

/* Sections */
.section {
    padding: 48px 0;
}

.section--bands {
    background: linear-gradient(180deg, transparent, rgba(189, 224, 254, 0.35), transparent);
}

.section--lavender {
    background: linear-gradient(135deg, rgba(232, 225, 255, 0.9), rgba(255, 216, 236, 0.65));
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 28px;
}

.section-head h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 8px;
}

.grid-2 {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
    border-radius: var(--radius);
    padding: 22px;
    background: var(--white);
    box-shadow: var(--shadow);
}

.card--lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card--lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 55px rgba(45, 52, 54, 0.18);
}

.card--mint {
    background: linear-gradient(145deg, #ffffff, var(--mint));
}

.card--soft {
    background: #fffdf9;
    border: 1px solid rgba(255, 184, 201, 0.35);
}

.card--lavender {
    background: var(--lavender);
}

.check-list {
    padding-left: 18px;
}

.check-list li {
    margin-bottom: 8px;
}

.link-arrow {
    font-weight: 700;
    text-decoration: none;
    color: #0984e3;
}

.link-arrow::after {
    content: " →";
}

.package-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.package-card__media img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    background: var(--lavender);
}

.package-card__body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.package-card__footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.package-card--mini .package-card__media img {
    height: 160px;
}

.features-mini {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.price-tag {
    font-family: var(--font-display);
    font-weight: 700;
    color: #e84393;
}

.price-tag--lg {
    font-size: 1.45rem;
}

.gallery-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-grid--compact img {
    height: 160px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.gallery-thumb {
    margin: 0;
}

.quote-card {
    margin: 0;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
    font-style: normal;
}

.quote-card cite {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-style: normal;
}

.cta-banner {
    padding-bottom: 64px;
}

.cta-banner__inner {
    border-radius: var(--radius);
    padding: 28px;
    background: linear-gradient(120deg, #a29bfe, #fd79a8);
    color: var(--white);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-footer {
    background: #2d3436;
    color: #dfe6e9;
    padding: 36px 0 18px;
}

.footer-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-muted {
    color: #b2bec3;
}

.social-row a {
    margin-right: 12px;
    color: #ffeaa7;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.92rem;
}

.center {
    text-align: center;
}

.mt-lg {
    margin-top: 28px;
}

.mb-md {
    margin-bottom: 18px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.88rem;
}

.page-hero {
    padding: 36px 0 12px;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.6rem);
}

.page-lead {
    color: var(--muted);
    max-width: 720px;
}

.prose h2,
.prose h3 {
    font-family: var(--font-display);
}

/* Form */
.form .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.form input,
.form select,
.form textarea {
    font: inherit;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(45, 52, 54, 0.12);
    background: #fffdf9;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 3px solid rgba(116, 185, 255, 0.45);
    border-color: transparent;
}

.alert {
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-bottom: 14px;
}

.alert--error {
    background: #ffecec;
    border: 1px solid #fab1a0;
}

.alert--ok {
    background: #eafff5;
    border: 1px solid #55efc4;
}

.grid-reservation {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.calendar-widget {
    margin-top: 12px;
}

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    font-size: 0.85rem;
}

.cal-cell {
    padding: 8px 0;
    text-align: center;
    border-radius: 10px;
    background: var(--white);
    border: 1px solid rgba(45, 52, 54, 0.06);
}

.cal-cell--muted {
    opacity: 0.45;
}

.cal-cell--busy {
    background: #ffecec;
    border-color: #fab1a0;
    font-weight: 700;
}

.cal-nav {
    border: none;
    background: var(--white);
    border-radius: 12px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 700;
}

/* Gallery + Lightbox */
.gallery-item {
    border: none;
    padding: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow);
    background: none;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* Lightbox — block + absolute children (no flex row/wrap around the image) */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    box-sizing: border-box;
}

.lightbox.lightbox--open {
    display: block;
}

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(45, 52, 54, 0.88);
    cursor: pointer;
    z-index: 0;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Center slot for the photo — inset leaves gutter for side arrows */
.lightbox__figure {
    position: absolute;
    z-index: 1;
    left: max(52px, env(safe-area-inset-left));
    right: max(52px, env(safe-area-inset-right));
    top: max(56px, env(safe-area-inset-top));
    bottom: max(56px, env(safe-area-inset-bottom));
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.lightbox__photo {
    /* Let taps pass through to .lightbox__backdrop so “tap dark area” always closes */
    pointer-events: none;
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    background: #fff;
}

.lightbox__counter {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    top: max(14px, env(safe-area-inset-top));
    left: max(14px, env(safe-area-inset-left));
    right: auto;
    max-width: min(220px, 45vw);
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.lightbox__close {
    position: absolute;
    z-index: 3;
    pointer-events: auto;
    top: max(14px, env(safe-area-inset-top));
    right: max(14px, env(safe-area-inset-right));
    border: none;
    background: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 999px;
    padding: 12px 20px;
    min-height: 48px;
    max-width: min(160px, 42vw);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.lightbox__close:hover {
    background: #ffeaa7;
}

.lightbox__arrow {
    position: absolute;
    z-index: 3;
    pointer-events: auto;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow);
    color: var(--ink);
    padding: 0;
}

.lightbox__arrow:hover {
    background: #ffeaa7;
}

.lightbox__prev {
    left: max(10px, env(safe-area-inset-left));
}

.lightbox__next {
    right: max(10px, env(safe-area-inset-right));
}

@media (max-width: 480px) {
    .lightbox__figure {
        left: max(44px, env(safe-area-inset-left));
        right: max(44px, env(safe-area-inset-right));
    }

    .lightbox__arrow {
        width: 42px;
        height: 42px;
        font-size: 1.5rem;
    }
}

.map-embed iframe {
    width: 100%;
    border-radius: var(--radius);
}

.narrow-card {
    max-width: 560px;
    margin-inline: auto;
}

.success-icon {
    font-size: 3rem;
    color: #00b894;
}

.booking-ref {
    font-family: var(--font-display);
    font-size: 2rem;
    color: #e84393;
}

.form-hint {
    font-size: 0.85rem;
    color: var(--muted);
}

.contact-grid {
    align-items: start;
}
