/* WonderBox — warm, playful, easy to read. */
:root {
  --sand: #fff7e8;
  --sand-2: #fdeccb;
  --ink: #1d3447;
  --ink-soft: #4b6174;
  --sun: #f6b73c;
  --sun-dark: #d9961a;
  --coral: #ee6c4d;
  --teal: #1f8a8a;
  --teal-dark: #146868;
  --navy: #14283a;
  --leaf: #5b9a4a;
  --leaf-dark: #3f7633;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 10px 30px rgba(29, 52, 71, .12);
  --shadow-sm: 0 4px 14px rgba(29, 52, 71, .1);
  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 .5em; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; }
.container { width: min(1120px, 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); margin-inline: auto; }
.center { text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; font-size: .85rem; color: var(--coral); margin-bottom: .6rem;
}
.lead { font-size: 1.25rem; color: var(--ink-soft); }
section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--white); padding: .5rem 1rem; z-index: 99; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; text-decoration: none;
  padding: .85rem 1.7rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--coral); color: var(--white); box-shadow: 0 6px 0 #c4502f, var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(2px); box-shadow: 0 4px 0 #c4502f, var(--shadow-sm); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 #c4502f; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px;
}
.btn-sun { background: var(--sun); color: var(--navy); box-shadow: 0 6px 0 var(--sun-dark), var(--shadow-sm); }
.btn-sun:hover { box-shadow: 0 4px 0 var(--sun-dark), var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 3px var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); box-shadow: inset 0 0 0 3px var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 247, 232, .94); backdrop-filter: blur(8px); border-bottom: 2px solid var(--sand-2); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); }
.logo svg { width: 38px; height: 38px; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--coral); }
.nav-links .btn { padding: .55rem 1.2rem; font-size: 1rem; color: var(--white); box-shadow: 0 4px 0 #c4502f; }
.nav-links .btn:hover { color: var(--white); }
.menu-btn { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.menu-btn span { display: block; width: 28px; height: 3px; background: var(--navy); margin: 5px 0; border-radius: 2px; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--sand); padding: .5rem 4% 1.2rem; border-bottom: 2px solid var(--sand-2); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: .8rem 0; }
  .nav-links .btn { margin-top: .5rem; }
}

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 0; background: linear-gradient(180deg, #cfeef0 0%, #fff7e8 78%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; }
.hero h1 span { color: var(--coral); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(20, 40, 58, .18)); }
.trust { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; font-weight: 700; font-size: .98rem; color: var(--ink-soft); }
.trust li::before { content: "★ "; color: var(--sun-dark); }
.wave { display: block; width: 100%; height: 70px; margin-top: -1px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } }

/* Cards / adventures */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; }
.adventure {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white);
  display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease;
}
.adventure:hover { transform: translateY(-6px); }
.adventure .art { aspect-ratio: 16 / 10; }
.adventure .art svg, .art-frame svg { width: 100%; height: 100%; }
.adventure .body { padding: 1.5rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.adventure .body p { color: var(--ink-soft); }
.adventure .more { margin-top: auto; font-family: var(--font-head); font-weight: 600; color: var(--coral); }
.tag { display: inline-block; background: var(--sand-2); border-radius: 999px; padding: .15rem .8rem; font-size: .85rem; font-weight: 700; margin: 0 .35rem .35rem 0; color: var(--ink); }

/* Steps */
.band { background: var(--navy); color: var(--white); }
.band h2, .band h3 { color: var(--white); }
.band .lead { color: #c9d8e4; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 2.2rem; counter-reset: step; list-style: none; padding: 0; }
.steps li { background: rgba(255, 255, 255, .07); border-radius: var(--radius); padding: 1.6rem; counter-increment: step; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--sun); color: var(--navy); font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; margin-bottom: .9rem;
}
.steps p { margin: 0; color: #d4e1ec; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.feature { background: var(--white); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.feature .ico { font-size: 2rem; line-height: 1; margin-bottom: .6rem; }
.feature p { margin: 0; color: var(--ink-soft); }

/* Split blocks */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split.flip .split-art { order: -1; }
.art-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--sand-2); position: relative; }
.art-frame figcaption, .caption { position: absolute; left: .8rem; bottom: .7rem; background: rgba(20, 40, 58, .75); color: #fff; font-size: .78rem; padding: .15rem .65rem; border-radius: 999px; }
figure { margin: 0; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 1.8rem; } .split.flip .split-art { order: 0; } }
.checklist { list-style: none; padding: 0; margin: 1rem 0; }
.checklist li { padding-left: 2rem; position: relative; margin-bottom: .7rem; }
.checklist li::before { content: "✔"; position: absolute; left: 0; top: 0; color: var(--teal); font-weight: 800; }

/* Themed pages */
.theme-pirate { --accent: var(--teal); }
.theme-dino { --accent: var(--leaf); }
.page-hero { padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(1rem, 3vw, 2rem); }
.theme-pirate .page-hero { background: linear-gradient(180deg, #bfe8ec, var(--sand)); }
.theme-dino .page-hero { background: linear-gradient(180deg, #dcefc9, var(--sand)); }
.theme-pirate .eyebrow { color: var(--teal-dark); }
.theme-dino .eyebrow { color: var(--leaf-dark); }
.loot { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.6rem; }
.loot div { background: var(--white); border-radius: 18px; padding: 1.1rem .8rem; text-align: center; box-shadow: var(--shadow-sm); font-family: var(--font-head); font-weight: 500; }
.loot div span { display: block; font-size: 2.2rem; margin-bottom: .3rem; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.6rem; align-items: stretch; margin-top: 2.2rem; }
.plan { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem 1.7rem; display: flex; flex-direction: column; position: relative; border: 3px solid transparent; }
.plan.pop { border-color: var(--sun); transform: translateY(-6px); }
.plan .badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--navy); font-family: var(--font-head); font-weight: 600; padding: .2rem 1rem; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.plan .price { font-family: var(--font-head); font-size: 3rem; font-weight: 700; color: var(--navy); line-height: 1; margin: .4rem 0 .2rem; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.plan .for { color: var(--ink-soft); margin-bottom: 1rem; }
.plan .checklist { margin-bottom: 1.5rem; }
.plan .btn { margin-top: auto; }
.table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { text-align: left; padding: .9rem 1.2rem; border-bottom: 1px solid var(--sand-2); }
.table th { font-family: var(--font-head); font-weight: 600; width: 60%; }
.table tr:last-child td, .table tr:last-child th { border-bottom: 0; }

/* Area band */
.area { background: var(--teal); color: var(--white); text-align: center; }
.area h2 { color: var(--white); }
.pills { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin: 1.4rem 0; }
.pill { background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .5rem 1.4rem; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; }

/* FAQ */
details { background: var(--white); border-radius: 18px; padding: 1.1rem 1.4rem; margin-bottom: .9rem; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-family: var(--font-head); font-weight: 500; font-size: 1.2rem; list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -.15rem; font-size: 1.8rem; color: var(--coral); }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--ink-soft); }

/* Form */
.form-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.4rem, 4vw, 2.5rem); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label, legend { font-family: var(--font-head); font-weight: 500; font-size: 1.02rem; display: block; margin-bottom: .3rem; }
input[type=text], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea {
  width: 100%; font: inherit; padding: .75rem .95rem; border: 2px solid #d9cfba; border-radius: 14px; background: #fffdf8; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.choice span {
  display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border: 2px solid #d9cfba; border-radius: 16px; background: #fffdf8;
  font-family: var(--font-head); font-weight: 500; font-size: 1.1rem; transition: all .15s;
}
.choice input:checked + span { border-color: var(--coral); background: #fff1ec; box-shadow: 0 0 0 3px rgba(238, 108, 77, .25); }
.choice input:focus-visible + span { outline: 3px solid var(--navy); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.hint { font-size: .9rem; color: var(--ink-soft); margin-top: .35rem; }
.form-msg { margin-top: 1rem; padding: 1rem 1.2rem; border-radius: 14px; display: none; font-weight: 700; }
.form-msg.ok { display: block; background: #e3f5e1; color: #1f5a1c; }
.form-msg.err { display: block; background: #fde5df; color: #8a2d16; }

/* Footer */
.site-footer { background: var(--navy); color: #c9d8e4; padding: 3rem 0 2rem; }
.site-footer a { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.fine { margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .88rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Images inside art frames */
.art img, .art-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-art img { width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(20, 40, 58, .18)); }

/* Carousels */
.carousel { position: relative; overflow: hidden; background: var(--sand-2); }
.hero-carousel { border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.card-carousel { aspect-ratio: 16 / 10; }
.carousel .slides { position: absolute; inset: 0; }
.carousel .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; display: block; }
.carousel .slide.active { opacity: 1; z-index: 1; }
.carousel .slide img { width: 100%; height: 100%; object-fit: cover; filter: none; }
.c-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--navy); font-size: 1.7rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .2s; }
.carousel:hover .c-btn, .carousel:focus-within .c-btn { opacity: 1; }
@media (hover: none) { .c-btn { opacity: .85; } }
.c-prev { left: .7rem; } .c-next { right: .7rem; }
.carousel.single .c-btn, .carousel.single .dots { display: none; }
.dots { position: absolute; bottom: .7rem; left: 0; right: 0; display: flex; gap: .45rem; justify-content: center; z-index: 3; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 0 0 1px rgba(20,40,58,.25); }
.dot.on { background: var(--coral); }

/* Photo gallery + lightbox */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.gallery a { display: block; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.05); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 20, 30, .82); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 16px; display: block; }
.lb-close { position: absolute; top: .4rem; right: .6rem; z-index: 2; border: 0; background: rgba(255,255,255,.9); border-radius: 50%; width: 38px; height: 38px; font-size: 1.5rem; cursor: pointer; }
.adventure .more { text-decoration: none; }

/* Send animation: form folds into a paper plane and flies away */
.form-card { position: relative; overflow: hidden; }
.form-card.away > :not(.plane) { animation: foldaway .7s ease-in forwards; transform-origin: center; }
.plane { position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; opacity: 0; pointer-events: none; animation: fly 1.5s .5s cubic-bezier(.45,.05,.55,.95) forwards; }
.plane svg { width: 100%; height: 100%; filter: drop-shadow(0 8px 10px rgba(20,40,58,.25)); }
@keyframes foldaway { to { opacity: 0; transform: scale(.3) rotate(-4deg); } }
@keyframes fly {
  0%   { opacity: 0; transform: translate(0, 10px) scale(.3) rotate(-10deg); }
  15%  { opacity: 1; transform: translate(0, 0) scale(1) rotate(-10deg); }
  45%  { transform: translate(60px, -40px) scale(1.05) rotate(-18deg); }
  70%  { opacity: 1; transform: translate(220px, -130px) scale(.8) rotate(-24deg); }
  100% { opacity: 0; transform: translate(520px, -300px) scale(.35) rotate(-30deg); }
}
.thanks { text-align: center; padding: 1.5rem 0; animation: popin .5s ease both; }
.thanks-check { width: 76px; height: 76px; margin: 0 auto 1rem; border-radius: 50%; background: #e3f5e1; color: #2b8a3e; font-size: 2.6rem; font-weight: 800; display: grid; place-items: center; }
@keyframes popin { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

.theme-paint .page-hero { background: linear-gradient(180deg, #ffd9e6, var(--sand)); }
.theme-paint .eyebrow { color: #c2456f; }
@media (max-width: 1100px) { .nav-links { gap: 1rem; } .nav-links a { font-size: .98rem; } }
.pricing-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.8rem; max-width: 860px; margin: 0 auto; }
.pricing-two .plan { transform: none; }

.treat { background: linear-gradient(135deg, #fff0d6, #ffe0ea); }
.treat-art { font-size: clamp(7rem, 18vw, 11rem); text-align: center; line-height: 1; filter: drop-shadow(0 14px 18px rgba(20,40,58,.18)); }
[hidden] { display: none !important; }

.adventure .paint-art { aspect-ratio: 640 / 220; background: transparent; }
.adventure .paint-art img { object-fit: contain; }

.nav-phone a { font-weight: 700; white-space: nowrap; }
@media (min-width: 861px) and (max-width: 1220px) { .nav-phone { display: none !important; } }

.favor { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; background: linear-gradient(135deg, #fff3cf, #ffe0ea); border: 3px solid var(--sun); border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); box-shadow: var(--shadow); position: relative; }
.favor .badge { position: absolute; top: -16px; left: 1.6rem; background: var(--coral); color: #fff; font-family: var(--font-head); font-weight: 600; padding: .25rem 1.1rem; border-radius: 999px; }
.favor h2 { margin-bottom: .4rem; }
.favor .big { font-family: var(--font-head); font-weight: 700; font-size: 2.6rem; color: var(--navy); line-height: 1; margin: .4rem 0; }
.favor .big small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.favor img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 760px) { .favor { grid-template-columns: 1fr; } }

.logo .wm b { color: var(--coral); }
.logo svg { width: 44px; height: 44px; }

.treat-art { font-size: 1rem; line-height: 0; filter: none; }
.treat-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 16 / 10; object-fit: cover; }
.treat-art img { height: auto; }

details.hl { background: #fff6dc; border: 3px solid var(--sun); box-shadow: var(--shadow); }
details.hl summary { color: var(--navy); }
details.hl p { color: var(--ink); }
#good-to-know { scroll-margin-top: 90px; }
