/* =========================================================
   PANDALION — shared styles (home page + Video Studio)
   Cute, soft, lively. Colours live in :root.
   ========================================================= */

:root {
  --cream: #fffaf0;
  --cream-2: #fdf3df;
  --paper: #ffffff;
  --sage: #7fb07d;
  --sage-dark: #5b8c5a;
  --sage-soft: #e3f2df;
  --honey: #f7c65c;
  --honey-soft: #fff1cc;
  --peach: #ff9f80;
  --pink: #ffb5c8;
  --pink-soft: #ffe6ee;
  --sky: #a9dcff;
  --sky-soft: #e5f5ff;
  --lilac: #c9b6ff;
  --ink: #2f3a2e;
  --ink-soft: #66705f;
  --line: #efe6d3;

  --font-head: "Fredoka", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 30px;
  --r-xl: 44px;

  --shadow-soft: 0 10px 30px -12px rgba(77, 70, 45, .25);
  --shadow-pop: 0 6px 0 rgba(47, 58, 46, .12), 0 18px 40px -16px rgba(77, 70, 45, .35);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --wrap: 1200px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--honey); color: var(--ink); }
:focus-visible { outline: 3px dashed var(--sage-dark); outline-offset: 3px; border-radius: 8px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* ---------- little shared bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--sage-dark);
  box-shadow: 0 3px 0 var(--line);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 0; border-radius: 999px;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
  background: var(--sage); color: #fff;
  box-shadow: 0 5px 0 var(--sage-dark);
  transition: transform .25s var(--bounce), box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 8px 0 var(--sage-dark); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--sage-dark); }
.btn.honey { background: var(--honey); color: var(--ink); box-shadow: 0 5px 0 #d9a33a; }
.btn.honey:hover { box-shadow: 0 8px 0 #d9a33a; }
.btn.pink { background: var(--peach); box-shadow: 0 5px 0 #e2785a; }
.btn.pink:hover { box-shadow: 0 8px 0 #e2785a; }
.btn.ghost { background: var(--paper); color: var(--ink); box-shadow: 0 5px 0 var(--line); border: 2px solid var(--line); }
.btn.ghost:hover { box-shadow: 0 8px 0 var(--line); }
.btn .arrow { transition: transform .25s var(--bounce); }
.btn:hover .arrow { transform: translateX(4px); }

.badge-new {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--peach); color: #fff;
  font-size: 11px; font-weight: 900; letter-spacing: .08em;
  animation: wiggle 2.4s ease-in-out infinite;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 12px 0;
  transition: background .3s, box-shadow .3s, padding .3s;
}
.site-header.scrolled {
  background: rgba(255, 250, 240, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 24px -18px rgba(0,0,0,.35);
  padding: 8px 0;
}
.header-inner { display: flex; align-items: center; gap: 22px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  height: 52px; width: auto;
  filter: drop-shadow(0 3px 0 rgba(47, 58, 46, .12));
  transition: transform .4s var(--bounce);
}
.logo:hover .logo-mark { transform: rotate(-6deg) scale(1.08); }
.logo-word { font-family: var(--font-head); font-weight: 700; font-size: 26px; letter-spacing: -.01em; }
.logo-word span { color: var(--sage-dark); }

.main-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.main-nav a {
  position: relative;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 800; font-size: 15px; color: var(--ink-soft);
  transition: background .2s, color .2s, transform .25s var(--bounce);
}
.main-nav a:hover { background: var(--sage-soft); color: var(--ink); transform: translateY(-2px); }
.main-nav a.active { background: var(--paper); color: var(--ink); box-shadow: 0 3px 0 var(--line); }
.main-nav .nav-studio { color: #d4634a; }
.main-nav .nav-studio .badge-new { margin-left: 4px; vertical-align: 2px; }
.park-btn { padding: 10px 18px; font-size: 15px; }
.menu-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--paper);
  font-size: 20px; box-shadow: 0 3px 0 var(--line);
}

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .7s ease, transform .8s var(--bounce); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .40s; }

/* ---------- sky decorations ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.cloud {
  position: absolute;
  width: 140px; height: 46px;
  background: #fff; border-radius: 999px;
  opacity: .9;
  filter: drop-shadow(0 8px 10px rgba(120, 160, 190, .18));
  animation: drift linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 62px; height: 62px; left: 22px; top: -30px; }
.cloud::after { width: 48px; height: 48px; left: 70px; top: -20px; }
.cloud.c1 { top: 12%; animation-duration: 70s; animation-delay: -10s; }
.cloud.c2 { top: 28%; transform: scale(.7); animation-duration: 95s; animation-delay: -50s; opacity: .75; }
.cloud.c3 { top: 6%; transform: scale(.55); animation-duration: 120s; animation-delay: -80s; opacity: .7; }
.cloud.c4 { top: 40%; transform: scale(.85); animation-duration: 85s; animation-delay: -30s; opacity: .6; }

.leaf {
  position: absolute; top: -40px;
  font-size: 20px;
  animation: fall linear infinite;
  opacity: .85;
}

.sparkle { position: absolute; color: var(--honey); animation: twinkle 2.6s ease-in-out infinite; pointer-events: none; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 300;
  transform: translate(-50%, 30px) scale(.9);
  padding: 13px 22px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow-soft);
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--bounce);
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- click paw prints ---------- */
.paw-pop {
  position: fixed; z-index: 400; pointer-events: none;
  font-size: 18px;
  animation: pawPop .9s ease-out forwards;
}

/* ---------- popups (shared shell) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(47, 58, 46, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.overlay.open { opacity: 1; visibility: visible; }
.popup {
  position: relative;
  width: min(100%, 860px);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--cream);
  border-radius: var(--r-xl);
  border: 4px solid #fff;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.45);
  transform: translateY(30px) scale(.92);
  transition: transform .45s var(--bounce);
}
.overlay.open .popup { transform: none; }
.popup-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff;
  font-size: 18px; font-weight: 900;
  transition: transform .3s var(--bounce);
}
.popup-close:hover { transform: rotate(90deg) scale(1.1); }

.popup-split { display: grid; grid-template-columns: 1fr 1.05fr; }
.popup-side {
  position: relative; overflow: hidden;
  padding: 44px 34px;
  background: linear-gradient(160deg, var(--sage-soft), var(--sky-soft));
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
}
.popup-side .eyebrow { align-self: flex-start; }
.popup-side h2 { font-size: clamp(28px, 3.4vw, 38px); }
.popup-side p { color: var(--ink-soft); font-weight: 600; }
.popup-side .popup-panda { width: 170px; margin: 8px auto -50px; animation: bob 3.2s ease-in-out infinite; }
.popup-main { padding: 44px 34px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.popup-main h3 { font-size: 26px; }
.popup-main p.sub { color: var(--ink-soft); margin-top: -6px; }

.field-label { font-weight: 800; font-size: 14px; color: var(--ink-soft); margin-bottom: -6px; }
.input {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  border: 2px solid var(--line);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.input:focus { border-color: var(--sage); box-shadow: 0 0 0 4px var(--sage-soft); }
textarea.input { resize: vertical; min-height: 96px; }
.form-status { min-height: 22px; font-weight: 700; color: var(--sage-dark); font-size: 14px; }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  margin-top: 40px;
  padding: 90px 0 34px;
  background: var(--sage-dark);
  color: #fff;
  text-align: center;
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px;
  background:
    radial-gradient(circle at 20px 40px, var(--sage-dark) 22px, transparent 23px) 0 0 / 40px 40px repeat-x;
}
.footer-panda { width: 110px; margin: -150px auto 10px; animation: bob 3s ease-in-out infinite; position: relative; }
.footer-brand { font-family: var(--font-head); font-size: 28px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.footer-brand img { height: 46px; width: auto; background: #fff; border-radius: 999px; padding: 4px 8px; }
.site-footer p { opacity: .9; margin: 6px 0 18px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font-weight: 800; margin-bottom: 18px; }
.footer-links a { opacity: .9; }
.footer-links a:hover { opacity: 1; text-decoration: underline wavy; }
.site-footer small { opacity: .75; }

/* ---------- keyframes ---------- */
@keyframes drift { from { left: -200px; } to { left: 110%; } }
@keyframes fall {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(30px, 25vh) rotate(90deg); }
  50% { transform: translate(-20px, 50vh) rotate(180deg); }
  75% { transform: translate(25px, 75vh) rotate(270deg); }
  100% { transform: translate(-10px, 105vh) rotate(360deg); }
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sway { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes wiggle { 0%, 80%, 100% { transform: rotate(0); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(8deg); } 95% { transform: rotate(-4deg); } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes pawPop { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(-20deg); } 30% { opacity: 1; transform: translate(-50%, -70%) scale(1.1) rotate(5deg); } 100% { opacity: 0; transform: translate(-50%, -140%) scale(.8) rotate(10deg); } }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-10deg); } 20%, 40% { transform: rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes float-up { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-90px) scale(1.1); opacity: 0; } }

/* ---------- responsive (shared) ---------- */
@media (max-width: 980px) {
  .menu-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute; top: calc(100% + 6px); left: 20px; right: 20px;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px;
    background: #fff; border-radius: var(--r-md);
    box-shadow: var(--shadow-pop);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .25s, transform .3s var(--bounce), visibility .25s;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { padding: 12px 16px; }
  .header-inner .park-btn { display: none; }
  .main-nav .park-btn-mobile { display: flex; }
  .popup-split { grid-template-columns: 1fr; }
  .popup-side { padding: 40px 26px 20px; text-align: center; }
  .popup-side .eyebrow { align-self: center; }
  .popup-side .popup-panda { margin-bottom: -20px; width: 130px; }
  .popup-main { padding: 26px; }
}
.main-nav .park-btn-mobile { display: none; margin-top: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .leaf, .cloud { display: none; }
  .reveal { opacity: 1; transform: none; }
}
