/* ==========================================================================
   NüNI Pixel Studio — shared design system
   Aesthetic: soft kawaii pastel. Candy gradients, pillowy white cards,
   pastel rainbow accents, fluffy poodle mascots, hearts and sparkles.
   ========================================================================== */

:root {
  --paper: #fdf4f8;
  --surface: #ffffff;
  --surface-sunk: #fdf5fa;
  --ink: #241d26;
  --ink-soft: #7d6b80;
  --ink-faint: #ac9db0;
  --line: #f4e5ef;
  --line-strong: #e8d4e4;

  /* pink is the studio's voice */
  --flare: #f08cae;
  --flare-deep: #d9648e;
  --flare-wash: #fde8f0;
  --flare-soft: #f9c2d7;

  /* pastel rainbow, straight off the prize wheel */
  --teal: #64c3bb;
  --teal-wash: #ddf4f1;
  --mustard: #e0ae43;
  --mustard-wash: #fdf2d5;
  --plum: #9484df;
  --plum-wash: #ece6fb;
  --moss: #6bbe86;
  --moss-wash: #e1f6e8;
  --sky-wash: #dcecfb;
  --peach-wash: #fde6d6;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sticker: 0 10px 26px -16px rgba(196, 108, 150, 0.55);
  --shadow-lift: 0 22px 46px -24px rgba(196, 108, 150, 0.6);
  /* lifts a mascot sticker off whichever surface it lands on */
  --pup-lift: drop-shadow(0 8px 12px rgba(196, 108, 150, 0.22));

  --font-display: "Poppins", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", "Helvetica Neue", sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --step: clamp(14.5px, 1.6vw, 16.5px);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(900px 460px at 50% -6%, #ffffff 0%, rgba(255, 255, 255, 0) 72%),
    radial-gradient(620px 420px at 8% 12%, rgba(244, 214, 236, 0.55), rgba(255, 255, 255, 0) 70%),
    radial-gradient(620px 420px at 94% 6%, rgba(220, 228, 250, 0.5), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #fdeff7 0%, #f8f0fb 42%, #fdf4f8 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-wrap: break-word;
}

::selection { background: var(--flare-soft); color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

a { color: var(--flare-deep); text-underline-offset: 3px; }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

/* Bold headline with a candy-pink echo behind it, like the studio's posters. */
.pop-title {
  text-shadow: 3px 3px 0 var(--flare-soft);
}

/* ---------- layout ---------- */
.shell {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(14px, 4vw, 34px) calc(72px + env(safe-area-inset-bottom));
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px) saturate(1.3);
  border-bottom: 1.5px solid var(--line);
}
.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 10px clamp(14px, 4vw, 34px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.topbar-inner .spacer { flex: 1 1 auto; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand-badge {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-badge img { width: 34px; height: auto; display: block; }
.brand-wordmark {
  display: block;
  height: 20px;
  width: auto;
  margin-bottom: 1px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  display: block;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- language switch ---------- */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  gap: 2px;
}
.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 30px;
  transition: background 0.16s ease, color 0.16s ease;
}
.lang-switch button[aria-pressed="true"] { background: var(--flare); color: #fff; }
.lang-switch button:hover:not([aria-pressed="true"]) { background: var(--flare-wash); color: var(--ink); }

/* ---------- site navigation ---------- */
/* Home, booking and gallery share one nav so visitors can hop between them. */
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  transition: background 0.16s ease, color 0.16s ease;
}
.site-nav a:hover { background: var(--flare-wash); color: var(--ink); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .topbar-inner .site-nav { order: 3; flex: 1 1 100%; justify-content: center; }
}

/* shared footer for the public pages */
.site-footer {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 2px dashed var(--line-strong);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-faint);
}
.site-footer a { color: var(--ink-soft); }

/* ---------- panels ---------- */
.panel {
  position: relative;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sticker);
  padding: clamp(20px, 3vw, 30px);
}
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { font-size: clamp(19px, 2.4vw, 24px); }
.panel-head .hint { color: var(--ink-soft); font-size: 13.5px; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.eyebrow::before {
  content: "♡";
  font-size: 13px;
  letter-spacing: 0;
  color: var(--flare);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--flare);
  color: #fff;
  flex: none;
  box-shadow: 0 4px 0 var(--flare-soft);
}

/* ---------- buttons ---------- */
.btn {
  appearance: none;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 15px;
  border-radius: 999px;
  border: 2px solid transparent;
  padding: 12px 24px;
  min-height: 48px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.12s ease, background 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease;
}
.btn:active { transform: translateY(2px); box-shadow: none !important; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
.btn-primary { background: var(--flare); color: #fff; box-shadow: 0 4px 0 var(--flare-deep); }
.btn-primary:hover:not(:disabled) { background: #ec7ba2; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 4px 0 rgba(36, 29, 38, 0.45); }
.btn-ghost {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 3px 0 var(--line);
}
.btn-ghost:hover:not(:disabled) { border-color: var(--flare); color: var(--flare-deep); }
.btn-danger { background: var(--flare-wash); color: var(--flare-deep); border-color: var(--flare-soft); }
.btn-danger:hover:not(:disabled) { background: #fbd8e5; }
.btn-sm { font-size: 13px; padding: 8px 15px; min-height: 38px; box-shadow: none; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- forms ---------- */
label.lbl {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 7px;
}
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="time"], input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px; /* keeps iOS from zooming on focus */
  color: var(--ink);
  background: var(--surface-sunk);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 12px 14px;
  min-height: 48px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
textarea { resize: vertical; min-height: 82px; line-height: 1.55; }
input:focus, select:focus, textarea:focus {
  background: #fff;
  border-color: var(--flare);
  box-shadow: 0 0 0 4px var(--flare-wash);
}
input[aria-invalid="true"] { border-color: var(--flare-deep); box-shadow: 0 0 0 4px var(--flare-wash); }
.field-error { color: var(--flare-deep); font-size: 13px; font-weight: 700; margin-top: 6px; min-height: 1.2em; }
.grid-2 { display: grid; gap: 14px; }
@media (min-width: 680px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* segmented chooser (contact type, view tabs) */
.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented button {
  appearance: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  background: var(--surface-sunk);
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 18px;
  min-height: 44px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.segmented button[aria-pressed="true"] {
  background: var(--flare);
  border-color: var(--flare);
  color: #fff;
}

/* ---------- status pills ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 2px solid var(--line-strong);
  background: var(--surface-sunk);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.is-booked { color: #3f9f97; background: var(--teal-wash); border-color: #bfe8e3; }
.pill.is-checked_in { color: #b78a22; background: var(--mustard-wash); border-color: #f0dfae; }
.pill.is-completed { color: #4b9c66; background: var(--moss-wash); border-color: #c5e9d1; }
.pill.is-cancelled, .pill.is-no_show { color: var(--flare-deep); background: var(--flare-wash); border-color: var(--flare-soft); }

/* ---------- tables that become cards ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th {
  text-align: left;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  padding: 9px 10px;
  border-bottom: 2px solid var(--line);
  white-space: nowrap;
}
table.data td { padding: 12px 10px; border-bottom: 1.5px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
  table.data thead { display: none; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data tr {
    border: 0;
    border-radius: var(--radius);
    padding: 8px 14px;
    margin-bottom: 10px;
    background: var(--surface-sunk);
  }
  table.data td { border: 0; padding: 6px 0; display: flex; gap: 12px; align-items: center; }
  table.data td::before {
    content: attr(data-label);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-faint);
    flex: 0 0 38%;
  }
  table.data td.cell-actions { justify-content: flex-start; flex-wrap: wrap; }
}

/* ---------- misc ---------- */
.empty {
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-sunk);
}
.empty::before {
  content: "";
  display: block;
  width: 76px;
  height: 59px;
  margin: 0 auto 8px;
  background: url("/assets/mascot/pup-sleep.png") center / contain no-repeat;
}

/* ---------- mascot stickers ---------- */
/* A pup hitched over the top edge of a panel, peering in at the step. The
   panel reserves the room the sticker hangs into, so it never lands on top of
   whatever sits above it. */
.panel-pup {
  position: absolute;
  z-index: 1;
  width: clamp(64px, 9vw, 88px);
  height: auto;
  top: calc(-1 * clamp(28px, 4vw, 40px));
  right: clamp(14px, 3vw, 28px);
  pointer-events: none;
  filter: var(--pup-lift);
}
.panel:has(> .panel-pup) { margin-top: clamp(36px, 5vw, 52px); }
@media (max-width: 560px) {
  .panel-pup { width: 62px; top: -26px; right: 10px; }
}

.skeleton {
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-sunk), var(--flare-wash), var(--surface-sunk));
  background-size: 240% 100%;
  animation: shimmer 1.5s linear infinite;
  height: 68px;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

.toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(440px, calc(100vw - 28px));
}
.toast {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 13px 18px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 18px 34px -18px rgba(36, 29, 38, 0.6);
  animation: toast-in 0.24s cubic-bezier(0.2, 1.2, 0.4, 1);
}
.toast.is-warn { background: var(--flare-deep); }
.toast.is-good { background: #4b9c66; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* floating sparkles and hearts scattered behind the content */
.confetti { position: absolute; pointer-events: none; user-select: none; line-height: 1; }
.confetti.s1 { color: var(--plum); font-size: 20px; }
.confetti.s2 { color: var(--mustard); font-size: 17px; }
.confetti.s3 { color: var(--flare-soft); font-size: 26px; }
.confetti.s4 { color: var(--teal); font-size: 16px; }
@keyframes float-soft {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(8deg); }
}
.confetti { animation: float-soft 4.5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
