/* ============================================================
   Bandits & Co. Catering — paper-craft one-pager
   Tokens: orange #E8740C · brown #5C3A1E · cream #F5E6C8 · kraft #C9965A
   ============================================================ */

:root {
  --orange: #E8740C;
  --brown: #5C3A1E;
  --brown-deep: #46270f;
  --cream: #F5E6C8;
  --cream-soft: #FAF0DC;
  --kraft: #C9965A;
  --green: #7d8c4f;
  --tilt-scale: 1;          /* tweak: polaroid tilt multiplier */
  --wobble-amt: 1.6deg;     /* tweak: character wobble */
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; } /* smooth scrolling is driven by the JS tween in site.js */

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  line-height: 1.55;
  color: var(--brown);
  background: url('uploads/bg.jpg') repeat;
  background-size: 640px auto;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Fredoka One', cursive; font-weight: 400; margin: 0; }
img { max-width: 100%; }
a { color: inherit; }

/* ---------- buttons: rounded pills, 3px brown border, hard offset shadow ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Fredoka One', cursive;
  font-size: 19px;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: 999px;
  border: 3px solid var(--brown);
  box-shadow: 4px 4px 0 var(--brown);
  background: var(--cream);
  color: var(--brown);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brown); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--brown); }
.btn-orange { background: var(--orange); color: #fff8ec; text-shadow: 0 1px 0 rgba(92,58,30,0.35); }
.btn-big { font-size: 24px; padding: 18px 44px; }

/* ---------- image buttons (stitched leather patches) ---------- */
.img-btn { display: inline-flex; align-items: center; line-height: 0; transition: transform 0.15s ease, filter 0.15s ease; }
.img-btn img { width: auto; filter: drop-shadow(0 5px 4px rgba(70, 39, 15, 0.28)); transition: inherit; }
.img-btn:hover { transform: scale(1.05) rotate(-1.2deg); }
.img-btn:active { transform: translateY(4px) scale(0.99); }
.img-btn-nav img { height: 46px; }
.img-btn-hero img { height: 66px; }

/* ---------- sticky nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 12px 28px;
  background: rgba(245, 230, 200, 0.96);
  border-bottom: 3px dashed var(--kraft);
  box-shadow: 0 4px 0 rgba(92, 58, 30, 0.18);
}
.nav-wordmark {
  font-family: 'Fredoka One', cursive;
  font-size: 24px;
  color: var(--orange);
  text-decoration: none;
  text-shadow: 1.5px 1.5px 0 var(--brown);
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.nav-logo-patch {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 3px 3px rgba(70, 39, 15, 0.25));
}
.nav-wordmark small {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--brown);
  text-shadow: none;
}
.nav-links { display: flex; gap: 14px; margin-left: auto; align-items: center; }
.nav-wordmark { flex-shrink: 0; }
.nav-links a {
  white-space: nowrap;
  text-decoration: none;
}
.nav .btn { font-size: 16px; padding: 9px 22px; margin-left: 10px; }

@media (max-width: 1120px) {
  .nav { gap: 16px; }
  .nav-wordmark small { display: none; }
  .img-btn-nav img { height: 38px; }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; justify-content: center; }
  .nav-links { margin-left: 0; flex-wrap: wrap; justify-content: center; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 24px;
}
.hero-left { position: relative; z-index: 2; }
.hero-logo { width: min(480px, 100%); height: auto; filter: drop-shadow(0 10px 14px rgba(70, 39, 15, 0.35)); }
.hero-tagline {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(26px, 3.2vw, 38px);
  color: var(--brown);
  margin: 26px 0 8px;
  max-width: 480px;
  line-height: 1.2;
  text-wrap: pretty;
}
.hero-sub { font-weight: 700; max-width: 460px; margin: 0 0 26px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-chef { position: relative; text-align: center; }
.hero-chef img { width: min(400px, 90%); height: auto; filter: drop-shadow(0 14px 10px rgba(70, 39, 15, 0.35)); }

/* scattered stitched stars */
.star { position: absolute; pointer-events: none; height: auto; }
.star-1 { width: 74px; top: 30px; right: 4%; transform: rotate(12deg); }
.star-2 { width: 48px; top: 56%; left: 46%; transform: rotate(-14deg); }
.star-3 { width: 56px; bottom: 24px; right: 38%; transform: rotate(8deg); }
.star-4 { width: 40px; top: 12px; left: 38%; transform: rotate(-9deg); }

/* ---------- slim gingham divider strips ---------- */
.divider { display: flex; justify-content: center; padding: 26px 0 10px; }
.divider img {
  width: min(440px, 72vw);
  height: auto;
  object-fit: fill;
  transform: rotate(-1.5deg);
  filter: drop-shadow(0 5px 5px rgba(70, 39, 15, 0.3));
}
.divider.tilt-right img { transform: rotate(1.5deg); }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 48px 32px; position: relative; }
.section-head { text-align: center; margin-bottom: 36px; position: relative; }
.section-sign { width: min(420px, 80%); height: auto; filter: drop-shadow(0 8px 8px rgba(70, 39, 15, 0.35)); }
.section-banner { width: min(380px, 70%); height: auto; display: block; margin: 14px auto 0; transform: rotate(1.2deg); }
.section-title {
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--orange);
  text-shadow: 2px 2px 0 var(--brown);
}
.section-intro { max-width: 560px; margin: 14px auto 0; font-weight: 700; }

/* character standee next to a section header */
.standee { position: absolute; z-index: 3; filter: drop-shadow(0 12px 8px rgba(70, 39, 15, 0.35)); height: auto; }

/* ---------- felt day cards ---------- */
.day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 10px;
}
.day-card {
  position: relative;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.5), transparent 55%),
    var(--cream);
  border-radius: 22px;
  padding: 24px 22px 20px;
  box-shadow: 0 6px 0 rgba(92, 58, 30, 0.35), 0 14px 18px rgba(70, 39, 15, 0.18);
}
.day-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 3px dashed var(--kraft);
  border-radius: 16px;
  pointer-events: none;
}
.day-card h3 {
  font-size: 24px;
  color: var(--orange);
  text-shadow: 1.5px 1.5px 0 var(--brown);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.day-card h3 img.btn-deco { width: 26px; height: 26px; flex: none; }
.day-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.day-card li { font-weight: 700; font-size: 16.5px; padding-left: 22px; position: relative; }
.day-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: inset 0 -2px 0 rgba(92, 58, 30, 0.45);
}
.day-card li small { display: block; font-size: 13.5px; font-weight: 700; color: rgba(92, 58, 30, 0.7); }

/* slight handmade tilts */
.day-grid .day-card:nth-child(odd) { transform: rotate(-0.6deg); }
.day-grid .day-card:nth-child(even) { transform: rotate(0.5deg); }

.trust-line {
  margin: 34px auto 0;
  max-width: 760px;
  text-align: center;
  font-weight: 800;
  background: rgba(245, 230, 200, 0.85);
  border: 3px dashed var(--kraft);
  border-radius: 999px;
  padding: 14px 28px;
}
.trust-line .check { color: var(--orange); font-weight: 900; }
.trust-line span.sep { opacity: 0.45; margin: 0 8px; }
.trust-line em { display: block; font-style: normal; font-weight: 700; font-size: 15px; margin-top: 4px; }

/* ---------- flip polaroids: photo front, day-menu back ---------- */
.flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 30px;
  margin-top: 16px;
  perspective: 1500px;
}
.flip-card {
  position: relative;
  cursor: pointer;
  transform: rotate(calc(var(--r, 2deg) * var(--tilt-scale)));
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  -webkit-tap-highlight-color: transparent;
}
.flip-card:hover { transform: rotate(0deg) translateY(-8px); z-index: 4; }
.flip-card:focus-visible { outline: 3px dashed var(--orange); outline-offset: 5px; border-radius: 8px; }
.flip-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.34, 1.3, 0.45, 1);
}
.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-front {
  margin: 0;
  background: var(--cream-soft);
  padding: 10px 10px 12px;
  border-radius: 6px;
  box-shadow: 0 5px 0 rgba(92, 58, 30, 0.3), 0 12px 16px rgba(70, 39, 15, 0.22);
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-front .flip-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; display: block; }
.flip-front figcaption {
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  text-align: center;
  padding-top: 9px;
  color: var(--brown);
}
.flip-front figcaption small {
  display: block;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 12px;
  color: var(--orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 2px;
}

.flip-back.day-card {
  position: absolute;
  inset: 0;
  margin: 0;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.flip-hint {
  margin-top: 14px;
  text-align: center;
  font-weight: 800;
  font-size: 12px;
  color: rgba(92, 58, 30, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* waffle-day photo carousel */
.carousel { position: relative; width: 100%; aspect-ratio: 1; border-radius: 3px; overflow: hidden; }
.carousel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.carousel img.active { opacity: 1; }
.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 2;
}
.carousel-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(250, 240, 220, 0.65);
  border: 1.5px solid rgba(92, 58, 30, 0.55);
  transition: background 0.3s ease;
}
.carousel-dots i.on { background: var(--orange); }

/* gingham washi tape */
.flip-front::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  width: 92px;
  height: 26px;
  transform: translateX(-50%) rotate(calc(var(--r, 2deg) * -1.4));
  background:
    repeating-linear-gradient(90deg, rgba(125, 140, 79, 0.55) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, rgba(125, 140, 79, 0.55) 0 8px, transparent 8px 16px),
    rgba(250, 244, 222, 0.9);
  opacity: 0.92;
  border-left: 2px dashed rgba(92, 58, 30, 0.25);
  border-right: 2px dashed rgba(92, 58, 30, 0.25);
  box-shadow: 0 2px 3px rgba(70, 39, 15, 0.25);
  z-index: 3;
}
.flip-card:nth-child(6n+1) { --r: -2.6deg; }
.flip-card:nth-child(6n+2) { --r: 2deg; }
.flip-card:nth-child(6n+3) { --r: -1.4deg; }
.flip-card:nth-child(6n+4) { --r: 2.8deg; }
.flip-card:nth-child(6n+5) { --r: 1.6deg; }
.flip-card:nth-child(6n+6) { --r: -2.2deg; }
.flip-card:nth-child(6n+2) .flip-front::before, .flip-card:nth-child(6n+5) .flip-front::before {
  background:
    repeating-linear-gradient(90deg, rgba(232, 116, 12, 0.4) 0 8px, transparent 8px 16px),
    repeating-linear-gradient(0deg, rgba(232, 116, 12, 0.4) 0 8px, transparent 8px 16px),
    rgba(250, 244, 222, 0.9);
}

/* ---------- catering: ribbon labels + pill tags ---------- */
.catering-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 30px; align-items: center; }
.catering-character { text-align: center; }
.catering-character img { width: min(340px, 85%); height: auto; filter: drop-shadow(0 14px 10px rgba(70, 39, 15, 0.35)); }
.menu-group { margin-bottom: 30px; }
.ribbon {
  display: inline-block;
  font-family: 'Fredoka One', cursive;
  font-size: 19px;
  color: #fff8ec;
  background: var(--orange);
  border: 3px solid var(--brown);
  box-shadow: 3px 3px 0 var(--brown);
  padding: 6px 22px;
  border-radius: 6px;
  transform: rotate(-1.4deg);
  margin-bottom: 16px;
  text-shadow: 0 1px 0 rgba(92, 58, 30, 0.35);
}
.ribbon.ribbon-green { background: var(--green); }
.pill-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.pill-tag {
  background: var(--cream);
  border: 3px solid var(--brown);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--brown);
  padding: 8px 18px;
  font-weight: 800;
  font-size: 16px;
}
.pill-tag small { font-weight: 700; color: rgba(92, 58, 30, 0.7); }
.catering-ctas { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- food industry product cards ---------- */
.industry-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: center; }
.products { display: flex; flex-wrap: wrap; gap: 16px; }
.product-card {
  background: var(--cream);
  border-radius: 16px;
  border: 3px dashed var(--kraft);
  padding: 14px 20px;
  font-family: 'Fredoka One', cursive;
  font-size: 17px;
  color: var(--brown);
  box-shadow: 0 4px 0 rgba(92, 58, 30, 0.3);
  transform: rotate(-0.5deg);
}
.products .product-card:nth-child(even) { transform: rotate(0.7deg); }
.product-card small { display: block; font-family: 'Nunito', sans-serif; font-weight: 700; font-size: 13px; }
.industry-character { text-align: center; }
.industry-character img { width: min(360px, 85%); height: auto; filter: drop-shadow(0 14px 10px rgba(70, 39, 15, 0.35)); }

/* ---------- contact ---------- */
.contact {
  background: var(--brown-deep);
  color: var(--cream);
  margin-top: 56px;
  padding: 64px 32px 48px;
  border-top: 4px dashed var(--kraft);
  text-align: center;
  position: relative;
}
.contact-logo { width: 150px; height: auto; margin-top: -130px; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.45)); }
.contact h2 { font-size: clamp(28px, 3vw, 38px); color: var(--cream); margin: 18px 0 8px; }
.contact p.lead { font-weight: 700; opacity: 0.85; max-width: 480px; margin: 0 auto 34px; }
.contact-cards { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-bottom: 38px; }
.contact-card {
  background: rgba(245, 230, 200, 0.08);
  border: 3px dashed rgba(201, 150, 90, 0.65);
  border-radius: 18px;
  padding: 18px 30px;
  min-width: 230px;
}
.contact-card .label {
  font-family: 'Fredoka One', cursive;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 4px;
}
.contact-card .value { font-weight: 800; font-size: 19px; }
.contact-card a { text-decoration: none; }

/* ---------- click-to-reveal contact patches ---------- */
.contact-card.contact-reveal {
  background: none;
  border: none;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.reveal-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  line-height: 0;
  transition: transform 0.15s ease;
}
.reveal-btn img {
  height: 92px;
  width: auto;
  filter: drop-shadow(0 5px 4px rgba(70, 39, 15, 0.28));
}
.reveal-btn:hover { transform: scale(1.05) rotate(-1.2deg); }
.reveal-btn:active { transform: translateY(3px) scale(0.99); }
.contact-reveal.revealed .reveal-btn { cursor: default; }
.contact-reveal.revealed .reveal-btn:hover { transform: none; }
.reveal-value {
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-8px) scale(0.85);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
  pointer-events: none;
}
.contact-reveal.revealed .reveal-value {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.contact-where {
  font-weight: 800;
  font-size: 19px;
  opacity: 0.9;
  margin: 0 0 38px;
}
.footer-note { margin-top: 36px; font-size: 14px; font-weight: 700; opacity: 0.6; }

/* ---------- booking (Calendly) ---------- */
.booking {
  max-width: 920px;
  margin: 0 auto 34px;
}
.booking-title {
  font-family: 'Fredoka One', cursive;
  font-size: clamp(22px, 2.4vw, 28px);
  color: var(--cream);
  margin: 0 0 18px;
}
.booking .calendly-inline-widget {
  background: var(--cream);
  border: 3px dashed rgba(201, 150, 90, 0.65);
  border-radius: 22px;
  overflow: hidden;
}

/* ---------- motion: pop-up-book reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  html[data-reveals="on"] .pop {
    opacity: 0;
    /* fold lives only in the popUp keyframes so resting transforms survive */
    transform-origin: 50% 100%;
  }
  html[data-reveals="on"] .pop.in {
    opacity: 1;
    /* no transform here: elements with resting transforms (tilted flip-cards,
       dividers) must regain them once the pop-up animation finishes */
    animation: popUp 0.9s cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  html[data-wobble="on"] .wobble {
    animation: standeeWobble 4.5s ease-in-out infinite;
    transform-origin: 50% 96%;
  }
  html[data-wobble="on"] .wobble.wobble-alt { animation-delay: -2.2s; animation-duration: 5.4s; }
}
@keyframes popUp {
  0%   { opacity: 0; transform: perspective(1100px) rotateX(32deg) translateY(70px) scale(0.95); }
  62%  { opacity: 1; transform: perspective(1100px) rotateX(-6deg) translateY(-8px) scale(1.012); }
  82%  { transform: perspective(1100px) rotateX(2.5deg) translateY(2px) scale(0.998); }
  100% { opacity: 1; transform: perspective(1100px) rotateX(0) translateY(0) scale(1); }
}
@keyframes standeeWobble {
  0%, 100% { transform: rotate(calc(var(--wobble-amt) * -1)); }
  50%      { transform: rotate(var(--wobble-amt)); }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .day-grid { grid-template-columns: repeat(2, 1fr); }
  .flip-grid { grid-template-columns: repeat(2, 1fr); }
  .standee { display: none; }
}
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 40px; }
  .hero-tagline, .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .catering-grid, .industry-grid { grid-template-columns: 1fr; }
  .industry-character { order: -1; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .day-grid { grid-template-columns: 1fr; }
  .flip-grid { grid-template-columns: 1fr; }
}
