/* =============================================================
   CHAZM CAFE — landing page
   ============================================================= */

:root {
  --yellow: #ffc52e;
  --yellow-dark: #f5b800;
  --yellow-deep: #e7a300;
  --red: #ef2f24;
  --red-dark: #c91a10;
  --ink: #080808;
  --ink-soft: #1a1a1a;
  --cream: #fff4d7;
  --cream-warm: #ffe8a8;
  --white: #ffffff;
  --pink: #ff8aae;

  --display: "Archivo Black", "Inter", system-ui, -apple-system, "Segoe UI",
    sans-serif;
  --body: "Fredoka", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --line: 3px;
  --line-thick: 4px;
  --radius-card: 28px;
  --radius-pill: 999px;
  --shadow-ink: 0 6px 0 var(--ink);
  --shadow-ink-sm: 0 4px 0 var(--ink);
  --shadow-soft: 0 18px 38px -12px rgba(0, 0, 0, 0.25);
  --container: 2000px;
}

/* ----------- Reset & base ----------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  background: var(--yellow);
  min-height: 100vh;
  overflow-x: clip;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
html { overflow-x: clip; }

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  cursor: pointer;
}

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--yellow);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* =============================================================
   HEADER
   ============================================================= */

.site-header {
  position: relative;
  z-index: 20;
  padding: 18px 0 10px;
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: relative;
}

.nav ul {
  display: flex;
  gap: 44px;
  align-items: center;
}

.nav-left ul {
  justify-content: flex-start;
}

.nav-right ul {
  justify-content: flex-end;
}

.nav-link {
  font-family: var(--body);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--ink);
  position: relative;
  padding: 6px 2px;
  transition: transform 180ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 220ms ease;
}

.nav-link:hover {
  transform: translateY(-2px);
}
.nav-link:hover::after {
  transform: scaleX(1);
}

/* center brand */
.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* the 3-tick decoration on each side of the logo, like the reference */
.brand::before,
.brand::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 28px;
  height: 4px;
  border-radius: 3px;
  background: var(--ink);
  transform-origin: center;
}
.brand::before {
  left: -46px;
  transform: translateY(-2px) rotate(-18deg);
  box-shadow:
    -8px 16px 0 var(--ink),
    -8px -16px 0 var(--ink);
}
.brand::after {
  right: -46px;
  transform: translateY(-2px) rotate(18deg);
  box-shadow:
    8px 16px 0 var(--ink),
    8px -16px 0 var(--ink);
}

.brand-logo {
  width: clamp(260px, 26vw, 380px);
  height: auto;
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.08));
}

/* sound toggle */
.sound-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font-family: var(--body);
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}

.sound-toggle .sound-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--line) solid var(--ink);
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow-ink-sm);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.sound-toggle .sound-icon svg {
  width: 22px;
  height: 22px;
  color: var(--ink);
}
.sound-toggle:hover .sound-icon {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.sound-toggle:active .sound-icon {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.sound-toggle[aria-pressed="false"] .wave-1,
.sound-toggle[aria-pressed="false"] .wave-2 {
  opacity: 0;
}
.sound-toggle .wave-2 {
  opacity: 0.85;
}

.menu-burger {
  display: none;
  width: 46px;
  height: 46px;
  border: var(--line) solid var(--ink);
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-ink-sm);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0;
}
.menu-burger span {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--ink);
  display: block;
}

.mobile-menu {
  margin: 12px 28px 0;
  border: var(--line) solid var(--ink);
  background: var(--cream);
  border-radius: 18px;
  box-shadow: var(--shadow-ink-sm);
}
.mobile-menu ul {
  display: flex;
  flex-direction: column;
  padding: 8px 4px;
}
.mobile-menu a {
  display: block;
  padding: 12px 18px;
  font-weight: 700;
}

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  padding: 18px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns:
    clamp(240px, 16vw, 360px)
    minmax(0, 1fr)
    clamp(420px, 30vw, 760px);
  gap: 32px;
  align-items: center;
}

/* ---- LEFT (badge) ---- */

.hero-left {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding-top: 24px;
}

.badge {
  width: 100%;
  max-width: 380px;
  transform: rotate(-7deg);
  filter: drop-shadow(0 16px 22px rgba(0, 0, 0, 0.18));
  transition: transform 350ms ease;
}
.badge:hover {
  transform: rotate(-3deg) translateY(-4px) scale(1.02);
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 28px;
  padding: 8px 16px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-ink-sm);
  transform: rotate(2deg);
}
.tag-pill::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  display: inline-block;
}

/* ---- CENTER (tray) ---- */

.hero-center {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 12px 0 56px;
}

/* Single composite tray-scene image (red backdrop + tray + food, baked in) */
.tray-scene-img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  filter: drop-shadow(0 32px 36px rgba(0, 0, 0, 0.32));
  user-select: none;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* scroll hint — bare double-chevron */
.scroll-hint {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  width: 36px;
  height: 36px;
}
.scroll-hint svg {
  width: 28px;
  height: 28px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(6px);
  }
}

/* ---- RIGHT (headline) ---- */

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.display {
  font-family: var(--display);
  font-weight: 900;
  color: var(--ink);
  /* Font scales linearly so "TINY PAWS." (~6.9em wide) always fits the
     right column. 4.2vw matches the column's 30vw width / 6.9 char ratio. */
  font-size: clamp(50px, 4.2vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0;
  text-transform: uppercase;
}
.display .line {
  display: block;
  white-space: nowrap;
}
.display .heart {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  vertical-align: 0.04em;
  color: var(--red);
}
.display .heart svg {
  width: 0.3em;
  height: 0.3em;
  filter: drop-shadow(0 3px 0 var(--ink));
}

.blurbs {
  display: flex;
  flex-direction: column;
}
.blurbs .blurb + .blurb {
  border-top: 2px solid rgba(0, 0, 0, 0.12);
  padding-top: 18px;
  margin-top: 18px;
}
.blurb {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: center;
}
.blurb p {
  margin: 0;
  font-family: var(--body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: var(--ink);
  max-width: 32ch;
}

.blurb-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-ink-sm);
}
.blurb-icon--img {
  background: var(--yellow);
  padding: 4px;
}
.blurb-icon--img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.blurb-icon--paw svg {
  width: 30px;
  height: 30px;
  color: var(--ink);
}

/* carousel */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}
.circle-btn {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-ink-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.circle-btn:hover {
  transform: translateY(-2px);
  background: var(--cream);
  box-shadow: 0 6px 0 var(--ink);
}
.circle-btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.circle-btn svg {
  width: 20px;
  height: 20px;
}
.dots {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}
.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
  border: 2.5px solid var(--ink);
  padding: 0;
  transition: transform 160ms ease, background 160ms ease;
}
.dot.is-active {
  background: var(--ink);
  transform: scale(1.15);
}

/* CTA row */
.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 16px;
  border: var(--line) solid var(--ink);
  font-family: var(--body);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-ink-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
}
.btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover {
  background: #ff3a30;
}
.btn-ghost {
  background: var(--cream);
}
.btn-sm {
  padding: 10px 16px;
  font-size: 13px;
}

/* sparkle decorations */
.sparkle {
  position: absolute;
  pointer-events: none;
  opacity: 0.95;
  animation: sparkleFloat 4.5s ease-in-out infinite;
}
.sparkle-1 {
  top: 12%;
  left: 28%;
  width: 52px;
  animation-delay: 0s;
}
.sparkle-2 {
  top: 22%;
  right: 32%;
  width: 46px;
  animation-delay: 1.2s;
}
.sparkle-3 {
  top: 56%;
  right: 12%;
  width: 44px;
  animation-delay: 2.1s;
}
.sparkle-4 {
  bottom: 8%;
  left: 8%;
  width: 36px;
  animation-delay: 3s;
}

@keyframes sparkleFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0);
    opacity: 0.95;
  }
  50% {
    transform: translateY(-10px) rotate(12deg);
    opacity: 0.6;
  }
}

/* doodles */
.doodle {
  position: absolute;
  pointer-events: none;
  background: var(--ink);
  border-radius: 4px;
}
.doodle-1 {
  top: 8%;
  left: 6%;
  width: 22px;
  height: 4px;
  transform: rotate(-30deg);
  box-shadow: 14px 8px 0 var(--ink), 26px 18px 0 var(--ink);
}
.doodle-2 {
  bottom: 30%;
  left: 18%;
  width: 18px;
  height: 4px;
  transform: rotate(20deg);
  box-shadow: -14px 8px 0 var(--ink);
}
.doodle-3 {
  top: 14%;
  right: 4%;
  width: 22px;
  height: 4px;
  transform: rotate(35deg);
  box-shadow: -16px 10px 0 var(--ink);
}
.doodle-4 {
  bottom: 12%;
  right: 32%;
  width: 18px;
  height: 4px;
  transform: rotate(-12deg);
  box-shadow: -12px 10px 0 var(--ink);
}

/* gentle floating bob — applied to badge + tray scene */
.float-bob {
  animation: floatBob 4.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* ---------- HERO LIFE: layered subtle animations ---------- */

/* Big composite tray slowly drifts up and down */
.tray-scene-img {
  animation: trayBob 4.6s ease-in-out infinite;
  will-change: transform;
}
@keyframes trayBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Badge keeps its tilt but wobbles gently */
.badge {
  animation: badgeWobble 5.2s ease-in-out infinite;
}
@keyframes badgeWobble {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50%      { transform: rotate(-4.2deg) translateY(-4px); }
}

/* Pause the wobble on hover so the existing :hover pop reads cleanly */
.badge:hover { animation-play-state: paused; }

/* "NEW THIS WEEK" pill bob */
.tag-pill {
  animation: pillFloat 4s ease-in-out infinite;
}
@keyframes pillFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(-1.4deg) translateY(-3px); }
}

/* Tiny red heart in the headline pulses like a heartbeat */
.display .heart {
  animation: heartBeat 1.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes heartBeat {
  0%, 35%, 100% { transform: scale(1); }
  10%, 25%      { transform: scale(1.18); }
  50%           { transform: scale(0.96); }
  60%           { transform: scale(1.08); }
}

/* Sound icon: waves shimmer when sound is "on" */
.sound-toggle[aria-pressed="true"] .wave-1 {
  animation: waveShimmer 1.4s ease-in-out infinite;
  transform-origin: 14px 12px;
}
.sound-toggle[aria-pressed="true"] .wave-2 {
  animation: waveShimmer 1.4s 0.35s ease-in-out infinite;
  transform-origin: 14px 12px;
}
@keyframes waveShimmer {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Black tick / motion-line doodles softly fade */
.doodle {
  animation: doodleBlink 3.2s ease-in-out infinite;
}
.doodle-2 { animation-delay: 0.6s; }
.doodle-3 { animation-delay: 1.2s; }
.doodle-4 { animation-delay: 1.8s; }
@keyframes doodleBlink {
  0%, 100% { opacity: 0.92; }
  50%      { opacity: 0.45; }
}

/* Carousel circle buttons gently breathe to invite a click */
.carousel-controls .circle-btn {
  animation: btnBreathe 5.4s ease-in-out infinite;
}
.carousel-controls .circle-btn:last-child { animation-delay: 1.2s; }
@keyframes btnBreathe {
  0%, 100% { box-shadow: var(--shadow-ink-sm); }
  50%      { box-shadow: 0 6px 0 var(--ink); }
}

/* Page-enter stagger: hero columns + headline lines lift in */
.hero-left,
.hero-center,
.hero-right {
  animation: enterUp 720ms cubic-bezier(.2,.7,.2,1) backwards;
}
.hero-left   { animation-delay: 60ms; }
.hero-center { animation-delay: 200ms; }
.hero-right  { animation-delay: 340ms; }

.display .line {
  animation: enterUp 700ms cubic-bezier(.2,.7,.2,1) backwards;
}
.display .line:nth-child(1) { animation-delay: 380ms; }
.display .line:nth-child(2) { animation-delay: 460ms; }
.display .line:nth-child(3) { animation-delay: 540ms; }

@keyframes enterUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Reduced motion — switch every hero animation off */
@media (prefers-reduced-motion: reduce) {
  .float-bob,
  .sparkle,
  .scroll-hint svg,
  .tray-scene-img,
  .badge,
  .tag-pill,
  .display .heart,
  .display .line,
  .doodle,
  .carousel-controls .circle-btn,
  .hero-left, .hero-center, .hero-right,
  .sound-toggle .wave-1,
  .sound-toggle .wave-2 {
    animation: none !important;
  }
}

/* =============================================================
   MENU SECTION
   ============================================================= */

.menu-section {
  position: relative;
  padding: 80px 0 100px;
  background: var(--yellow);
  border-top: var(--line) solid var(--ink);
}

.menu-section::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 30px;
  background: repeating-linear-gradient(
    -45deg,
    transparent 0 18px,
    rgba(0, 0, 0, 0.04) 18px 24px
  );
}

.section-head {
  text-align: center;
  margin: 0 auto 56px;
  max-width: 720px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-ink-sm);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 84px);
  letter-spacing: -0.01em;
  line-height: 1;
  margin: 6px 0 12px;
  text-transform: uppercase;
  color: var(--ink);
}
.section-sub {
  font-family: var(--body);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  color: var(--ink);
  opacity: 0.9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.card {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.card:hover {
  transform: translateY(-6px) rotate(-0.4deg);
  box-shadow: 0 12px 0 var(--ink);
}

.card-media {
  position: relative;
  background: var(--yellow);
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: var(--line) solid var(--ink);
  overflow: hidden;
}
.card-media::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -32%;
  height: 60%;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.18;
}
.card-img {
  position: relative;
  z-index: 2;
  max-height: 78%;
  max-width: 80%;
  object-fit: contain;
  filter: drop-shadow(0 14px 14px rgba(0, 0, 0, 0.28));
  transition: transform 280ms ease;
}
.card:hover .card-img {
  transform: translateY(-4px) scale(1.04);
}

.card-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 90px;
  z-index: 3;
  transform: rotate(10deg);
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.2));
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title {
  font-family: var(--display);
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  line-height: 1.05;
}
.card-desc {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  opacity: 0.85;
  flex: 1;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}
.price {
  font-family: var(--display);
  font-size: 22px;
  color: var(--red);
}

/* =============================================================
   FOOTER
   ============================================================= */

.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 56px 0 36px;
  border-top: var(--line) solid var(--ink);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -16px 0 auto 0;
  height: 16px;
  background: var(--ink);
  clip-path: polygon(
    0 100%, 4% 0, 8% 100%, 12% 0, 16% 100%, 20% 0, 24% 100%, 28% 0,
    32% 100%, 36% 0, 40% 100%, 44% 0, 48% 100%, 52% 0, 56% 100%,
    60% 0, 64% 100%, 68% 0, 72% 100%, 76% 0, 80% 100%, 84% 0, 88% 100%,
    92% 0, 96% 100%, 100% 0, 100% 100%
  );
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.footer-logo {
  width: 220px;
  filter: brightness(0) invert(1);
}
.footer-tag {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
  color: var(--cream);
}
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}
.footer-nav a {
  font-weight: 700;
  position: relative;
}
.footer-nav a:hover {
  color: var(--yellow);
}
.footer-meta {
  margin: 18px 0 0;
  font-size: 13px;
  opacity: 0.6;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* Anything narrower than ~1180 stacks to one column — the 3-col layout
   needs ~1280 to comfortably fit the headline next to the tray scene. */
@media (max-width: 1180px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .header-inner {
    grid-template-columns: auto 1fr auto;
  }
  .nav-left,
  .nav-right ul li:not(:last-child) {
    display: none;
  }
  .menu-burger {
    display: inline-flex;
  }
  .nav-right ul {
    gap: 12px;
  }
  .sound-toggle .sound-label {
    display: none;
  }

  .hero {
    padding-top: 8px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-left {
    align-items: center;
    padding-top: 0;
  }
  .badge {
    width: clamp(220px, 50vw, 280px);
  }
  .hero-center {
    min-height: 480px;
    order: 3;
  }
  .hero-right {
    order: 2;
    align-items: center;
    text-align: center;
  }
  .display {
    text-align: center;
  }
  .blurb {
    text-align: left;
  }
  .blurbs {
    max-width: 460px;
    margin: 0 auto;
  }
  .cta-row,
  .carousel-controls {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }

  .header-inner { gap: 10px; }
  .brand-logo { width: 180px; }

  .hero { padding: 8px 0 56px; }
  .hero-center { min-height: 380px; }

  .capsule {
    height: 360px;
    bottom: 60px;
  }
  .tray {
    height: 160px;
    margin-top: 160px;
    width: 96%;
  }
  .scroll-hint { bottom: -28px; }

  .display { font-size: clamp(46px, 14vw, 72px); }

  .blurb {
    grid-template-columns: 48px 1fr;
    gap: 12px;
  }
  .blurb-icon { width: 48px; height: 48px; }
  .blurb p { font-size: 16px; }

  .menu-section { padding: 56px 0 72px; }
  .cards { grid-template-columns: 1fr; }

  .sparkle-1 { top: 6%; left: 4%; width: 28px; }
  .sparkle-2 { top: 12%; right: 6%; width: 22px; }
  .sparkle-3 { top: 60%; right: 6%; width: 22px; }
  .sparkle-4 { bottom: 6%; left: 4%; width: 22px; }

  .doodle-1, .doodle-2, .doodle-3, .doodle-4 { display: none; }

  .brand::before, .brand::after { display: none; }
}

/* small extra polish: nav focus rings */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =============================================================
   Multi-page additions: nav state, cart, toasts, page sections,
   filters, forms, location cards, FAQ, confirmation
   ============================================================= */

/* Current-page nav indicator */
.nav-link.is-current::after {
  transform: scaleX(1);
}

/* Cart button + badge in the header */
.cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--white);
  box-shadow: var(--shadow-ink-sm);
  color: var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.cart-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--ink);
  background: var(--cream);
}
.cart-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--ink);
}
.cart-button svg { width: 22px; height: 22px; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  line-height: 1;
}
.cart-count.is-empty { display: none; }

/* Toast */
.toast-root {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: var(--ink);
  color: var(--cream);
  padding: 12px 18px;
  border-radius: 12px;
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-ink-sm);
  font-weight: 700;
  font-size: 15px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.is-in { opacity: 1; transform: translateY(0); }

/* Card add-to-basket pressed micro-animation */
.btn.is-pressed { transform: translateY(2px) scale(0.98); }

/* Card tags */
.card-tags {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 4;
}
.card-tag {
  font-family: var(--body);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-ink-sm);
}
.tag-popular { background: var(--red); color: var(--white); }
.tag-new { background: var(--pink); }
.tag-shareable { background: var(--cream-warm); }

/* =============================================================
   Page hero strip (used on subpages — smaller than home hero)
   ============================================================= */

.page-hero {
  position: relative;
  padding: 96px 0 64px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-family: var(--body);
  font-weight: 800;
  letter-spacing: 0.18em;
  font-size: 13px;
  text-transform: uppercase;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-ink-sm);
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 132px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 6px 0 14px;
  text-transform: uppercase;
  color: var(--ink);
}
.page-hero p.lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
  opacity: 0.92;
}
.page-hero .sparkle {
  /* re-use sparkle layout from home, but anchor to .page-hero */
  position: absolute;
}

/* =============================================================
   Filter chips (menu page)
   ============================================================= */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0 auto 40px;
  max-width: 920px;
}
.filter-chip {
  font-family: var(--body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  border: var(--line) solid var(--ink);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-ink-sm);
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}
.filter-chip:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); background: var(--cream); }
.filter-chip:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--ink); }
.filter-chip.is-active { background: var(--ink); color: var(--cream); }

/* =============================================================
   Forms
   ============================================================= */

.form {
  display: grid;
  gap: 18px;
}
.form-row {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}
.form-row--three { grid-template-columns: 2fr 1fr 1fr; }

.field { display: grid; gap: 6px; }
.field label {
  font-family: var(--body);
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.field input,
.field textarea,
.field select {
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: var(--line) solid var(--ink);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  box-shadow: var(--shadow-ink-sm);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--cream);
}

.form-status {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow-ink-sm);
  padding: 14px 16px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 720px) {
  .form-row, .form-row--three { grid-template-columns: 1fr; }
}

/* =============================================================
   Locations page
   ============================================================= */

.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
}
.location-card {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  padding: 22px 22px 24px;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.location-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
  box-shadow: 0 12px 0 var(--ink);
}
.location-name {
  font-family: var(--display);
  font-size: 26px;
  margin: 0 0 4px;
  text-transform: uppercase;
  letter-spacing: -0.005em;
}
.location-address { margin: 0; font-weight: 700; font-size: 15px; }
.location-meta { margin: 0; font-size: 14px; }
.location-meta strong { font-weight: 800; margin-right: 6px; }
.location-note {
  margin: 8px 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  opacity: 0.8;
}

/* Stylised "map" decoration */
.fake-map {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius-card);
  border: var(--line) solid var(--ink);
  background:
    radial-gradient(2px 2px at 20% 30%, var(--ink) 100%, transparent 102%),
    radial-gradient(2px 2px at 60% 70%, var(--ink) 100%, transparent 102%),
    radial-gradient(2px 2px at 80% 20%, var(--ink) 100%, transparent 102%),
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(0,0,0,0.04) 14px 16px),
    var(--cream);
  box-shadow: var(--shadow-ink);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.fake-map::before {
  content: "Coverage area";
  position: absolute;
  top: 14px;
  left: 18px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* =============================================================
   How it works
   ============================================================= */

.hiw-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}
.hiw-step {
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  padding: 28px 24px 26px;
  box-shadow: var(--shadow-ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hiw-num {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  color: var(--red);
  display: inline-block;
  margin-bottom: 4px;
}
.hiw-title {
  font-family: var(--display);
  font-size: 24px;
  margin: 0;
  text-transform: uppercase;
}
.hiw-body { margin: 0; font-size: 15px; line-height: 1.5; }

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

/* FAQs */
.faq {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow-ink-sm);
  padding: 0;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-family: var(--body);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--display);
  font-size: 24px;
  transition: transform 220ms ease;
}
.faq[open] summary::after { content: "−"; }
.faq p { margin: 0; padding: 0 22px 18px; font-size: 15px; line-height: 1.5; }

/* =============================================================
   Cart page
   ============================================================= */

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 980px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-list { display: grid; gap: 14px; }
.cart-line {
  display: grid;
  grid-template-columns: 110px 1fr auto auto auto;
  gap: 18px;
  align-items: center;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ink-sm);
  padding: 14px 18px 14px 14px;
}
.cart-line-img {
  width: 110px;
  height: 100px;
  object-fit: contain;
  background: var(--yellow);
  border-radius: 18px;
  border: 2px solid var(--ink);
  padding: 6px;
}
.cart-line-title { font-family: var(--display); font-size: 18px; margin: 0; text-transform: uppercase; }
.cart-line-blurb { margin: 4px 0 4px; font-size: 13px; opacity: 0.8; }
.cart-line-unit { font-size: 12px; font-weight: 700; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; }

.cart-line-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--white);
  box-shadow: var(--shadow-ink-sm);
}
.cart-line-qty button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cart-line-qty button:hover { background: var(--cream); }
.cart-line-qty .qty {
  min-width: 24px;
  text-align: center;
  font-family: var(--display);
  font-size: 16px;
}

.cart-line-total { font-family: var(--display); font-size: 20px; color: var(--red); }
.cart-line-remove {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--white);
  font-weight: 800;
}
.cart-line-remove:hover { background: var(--red); color: var(--white); }

@media (max-width: 720px) {
  .cart-line {
    grid-template-columns: 84px 1fr auto;
    grid-auto-rows: auto;
  }
  .cart-line-img { width: 84px; height: 84px; }
  .cart-line-qty { grid-column: 2; }
  .cart-line-total { grid-column: 3; grid-row: 1; }
  .cart-line-remove { grid-column: 3; grid-row: 2; justify-self: end; }
}

/* Cart summary */
.summary {
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ink);
  padding: 24px;
  position: sticky;
  top: 24px;
}
.summary h2 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}
.summary-row.is-total {
  border-top: 2px solid var(--ink);
  margin-top: 12px;
  padding-top: 14px;
  font-family: var(--display);
  font-size: 22px;
}
.summary-row.is-total .price { color: var(--red); }
.summary-note {
  margin: 4px 0 16px;
  font-size: 13px;
  font-weight: 700;
  opacity: 0.75;
}
.summary .btn { width: 100%; margin-top: 10px; }

.cart-empty {
  text-align: center;
  padding: 80px 20px;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-ink);
}
.cart-empty h2 { font-family: var(--display); font-size: 32px; margin: 12px 0 8px; text-transform: uppercase; }
.cart-empty p { font-size: 16px; margin: 0 auto 22px; max-width: 380px; }

/* Checkout summary line items */
.summary-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ck-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(0,0,0,0.12);
}
.ck-line-name { font-weight: 700; }

/* =============================================================
   Confirmation page
   ============================================================= */

.confirmation {
  text-align: center;
  background: var(--cream);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-card);
  padding: 56px 32px;
  box-shadow: var(--shadow-ink);
  max-width: 720px;
  margin: 32px auto;
}
.confirmation .badge-tick {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: var(--line) solid var(--ink);
  background: var(--red);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: var(--shadow-ink);
}
.confirmation h1 {
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 64px);
  margin: 6px 0 8px;
  text-transform: uppercase;
}
.confirmation .order-meta {
  display: inline-block;
  margin: 8px auto 24px;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-family: var(--display);
  box-shadow: var(--shadow-ink-sm);
}
.confirmation-summary {
  text-align: left;
  background: var(--white);
  border: var(--line) solid var(--ink);
  border-radius: 18px;
  padding: 18px 22px;
  margin: 24px 0;
}
.confirmation .actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* =============================================================
   Generic page section utilities
   ============================================================= */

.section { padding: 56px 0; }
.section h2.section-title { text-align: center; margin-bottom: 24px; }
.section .lead { text-align: center; max-width: 720px; margin: 0 auto 36px; font-size: 18px; }

/* "back to home" inline link */
.inline-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.inline-back::before { content: "←"; font-family: var(--display); font-size: 18px; }

/* =============================================================
   Scroll-driven UI: progress bar, sticky header, reveal, back-to-top
   ============================================================= */

/* Top progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: linear-gradient(90deg, var(--red), #ff6b5e);
  z-index: 200;
  pointer-events: none;
  border-bottom-right-radius: 4px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
  transition: width 90ms linear;
}

/* Sticky shrink header.
   IMPORTANT: only change visual properties (background, shadow, transform).
   Anything that changes the header's BOX HEIGHT — padding, logo width,
   element heights — will reflow the page and create a feedback loop where
   the toggle threshold flaps. So we shrink the logo via transform: scale()
   only, leave padding alone, and keep brand height locked. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--yellow);
  transition: background 240ms ease, box-shadow 240ms ease;
  /* lock total header height regardless of is-scrolled state */
}
.site-header.is-scrolled {
  background: rgba(255, 197, 46, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 3px 0 var(--ink), 0 14px 28px -12px rgba(0, 0, 0, 0.25);
}

/* Lock the brand's box so logo scaling never changes layout */
.brand {
  height: clamp(80px, 8vw, 120px);
}
.brand-logo {
  height: 100%;
  width: auto;
  max-width: clamp(260px, 26vw, 380px);
  transform-origin: center;
  transition: transform 240ms ease;
}
.site-header.is-scrolled .brand-logo {
  transform: scale(0.7);
}
/* tick decorations fade but do NOT translate (keeps layout stable) */
.site-header .brand::before,
.site-header .brand::after {
  transition: opacity 200ms ease;
}
.site-header.is-scrolled .brand::before,
.site-header.is-scrolled .brand::after {
  opacity: 0;
}

/* Reveal-on-scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 600ms ease var(--reveal-delay, 0ms),
    transform 700ms cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* Faqs use details, slightly different transform so they don't flicker the open state */
.faq[data-reveal] { transform: translateY(14px); }

/* Back-to-top */
.back-to-top {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 40;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--white);
  border: var(--line) solid var(--ink);
  box-shadow: var(--shadow-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px) scale(0.85) rotate(-6deg);
  pointer-events: none;
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(.2, .7, .2, 1),
    background 200ms ease,
    box-shadow 200ms ease;
  overflow: hidden;
}
.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--yellow);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 10px 0 var(--ink);
}
.back-to-top:active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 0 var(--ink);
}
.back-to-top .btt-mascot {
  width: 44px;
  height: 44px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, 110%);
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1);
}
.back-to-top .btt-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 260ms cubic-bezier(.2, .7, .2, 1), opacity 200ms ease;
}
.back-to-top .btt-arrow svg { width: 24px; height: 24px; }
.back-to-top:hover .btt-arrow {
  transform: translateY(-130%);
  opacity: 0;
}
.back-to-top:hover .btt-mascot {
  transform: translate(-50%, -50%);
}

@media (max-width: 640px) {
  .back-to-top { width: 54px; height: 54px; bottom: 18px; right: 18px; }
  .back-to-top .btt-mascot { width: 36px; height: 36px; }
}

/* Reduced motion: skip reveals, keep header & progress functional */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .back-to-top, .site-header, .site-header .brand-logo {
    transition: none;
  }
}

