/* =========================================================
   v3: photo-free, illustration + interaction layer
   (no stock photos: everything here is drawn, so nothing
   pretends to be our real food)
   ========================================================= */

/* ---------- Hero with flavour-switching shake ---------- */
.hero3 { position: relative; min-height: 100vh; background: var(--ink); color: var(--cream); overflow: hidden; display: flex; align-items: center; padding: 130px 0 110px; }
.hero3::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 72% 45%, var(--glow, rgba(232,51,109,.45)), transparent 70%); transition: background 1s ease; }
.hero3 .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 30px; align-items: center; width: 100%; }
.hero3 h1 { font-size: clamp(2.8rem, 6.2vw, 5.4rem); line-height: .95; letter-spacing: -.04em; }
.hero3 h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero3 h1 .line > span { display: inline-block; transform: translateY(110%); animation: rise .9s cubic-bezier(.2,.8,.2,1) forwards; }
.hero3 h1 .line:nth-child(2) > span { animation-delay: .12s; }
.hero3 h1 .line:nth-child(3) > span { animation-delay: .24s; }
.hero3 h1 em { font-style: normal; color: var(--accent, #FF8FB1); transition: color .8s; }
.hero3 .eyebrow { color: #FF8FB1; }
.veg-badge { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid #3DBE6B; color: #7BE0A0; border-radius: 999px; padding: 6px 14px 6px 8px; font-weight: 700; font-size: .82rem; letter-spacing: .04em; margin-bottom: 18px; }
.veg-badge i { width: 18px; height: 18px; border: 2px solid #3DBE6B; border-radius: 4px; display: grid; place-items: center; }
.veg-badge i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3DBE6B; }
.hero3 .lead { color: rgba(255,246,236,.78); margin: 24px 0 30px; opacity: 0; animation: fade .8s .5s forwards; }
.hero3 .hero-ctas { opacity: 0; animation: fade .8s .65s forwards; }
.hero3 .btn-ghost { border-color: rgba(255,246,236,.6); color: var(--cream); }
.hero3 .btn-ghost:hover { background: var(--cream); color: var(--ink); }

.shake-stage { position: relative; display: flex; flex-direction: column; align-items: center; opacity: 0; animation: fade 1s .3s forwards; }
.shake-wrap { position: relative; width: min(340px, 78vw); transform-style: preserve-3d; transition: transform .25s ease-out; }
.shake-svg { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 40px 50px rgba(0,0,0,.5)); }
.shake-svg .liquid, .shake-svg .wave { fill: var(--shake, #6B4232); transition: fill .8s ease; }
.shake-svg .drip { fill: var(--drip, #2B1A12); transition: fill .8s ease; }
.shake-svg .wave { animation: wave 3.2s linear infinite; }
.shake-svg .drip-line { stroke: #2B1A12; }
@keyframes wave { to { transform: translateX(-120px); } }
.shake-svg .cherry { transform-origin: 150px 70px; animation: wobble 4s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(0); } 50% { transform: rotate(8deg); } }
.shake-svg.pop { animation: popcup .55s cubic-bezier(.3,1.6,.5,1); }
@keyframes popcup { 0% { transform: scale(1); } 40% { transform: scale(.94) rotate(-2deg); } 100% { transform: scale(1); } }

.flavour-name { margin-top: 18px; text-align: center; min-height: 64px; }
.flavour-name b { display: block; font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.02em; }
.flavour-name span { font-size: .85rem; color: rgba(255,246,236,.6); letter-spacing: .12em; text-transform: uppercase; }
.flavour-name.swap b { animation: swapin .5s cubic-bezier(.2,.8,.2,1); }
@keyframes swapin { from { opacity: 0; transform: translateY(14px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; max-width: 460px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid rgba(255,246,236,.22); background: rgba(255,255,255,.04); color: var(--cream); border-radius: 999px; padding: 7px 13px 7px 8px; font: 600 .82rem var(--font-body); cursor: pointer; transition: .2s; }
.chip-btn i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -3px 0 rgba(0,0,0,.2); }
.chip-btn:hover { border-color: var(--cream); transform: translateY(-2px); }
.chip-btn.on { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.tap-hint { font-size: .78rem; color: rgba(255,246,236,.5); margin-top: 10px; }

/* sprinkles burst */
.sprinkle { position: absolute; width: 10px; height: 4px; border-radius: 3px; pointer-events: none; left: 50%; top: 18%; animation: burst .9s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes burst { from { transform: translate(-50%, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* floating doodles */
.doodle { position: absolute; z-index: 1; opacity: .9; pointer-events: none; animation: drift 9s ease-in-out infinite; }
.doodle svg { width: 100%; height: auto; }
@keyframes drift { 0%,100% { translate: 0 0; rotate: 0deg; } 50% { translate: 0 -18px; rotate: 6deg; } }

/* ---------- What we serve: tilt tiles ---------- */
.serve-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; perspective: 900px; }
.serve { position: relative; border-radius: 26px; padding: 26px 22px 24px; background: var(--bg); color: var(--fg, var(--ink)); overflow: hidden; transform-style: preserve-3d; transition: transform .2s ease-out, box-shadow .3s; box-shadow: 0 14px 30px -22px rgba(59,31,20,.6); cursor: default; min-height: 270px; display: flex; flex-direction: column; }
.serve:hover { box-shadow: 0 30px 50px -26px rgba(59,31,20,.7); }
.serve .ico { width: 92px; height: 92px; margin-bottom: 14px; transform: translateZ(40px); transition: transform .4s cubic-bezier(.3,1.6,.5,1); }
.serve:hover .ico { transform: translateZ(40px) scale(1.12) rotate(-6deg); }
.serve h3 { font-size: 1.3rem; margin-bottom: 8px; transform: translateZ(25px); }
.serve p { font-size: .88rem; margin: 0; opacity: .8; transform: translateZ(15px); }
.serve .count { position: absolute; right: 18px; top: 16px; font-family: var(--font-head); font-weight: 800; font-size: .78rem; background: rgba(255,255,255,.55); padding: 4px 10px; border-radius: 999px; }
.serve::after { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; right: -60px; bottom: -70px; background: rgba(255,255,255,.22); }

/* ---------- Illustrated brand cards ---------- */
.brand-ill { position: relative; border-radius: 30px; overflow: hidden; min-height: 460px; padding: 40px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; text-decoration: none; }
.brand-ill.sj { background: radial-gradient(circle at 75% 25%, #FF6B97, var(--berry) 45%, var(--berry-dark)); }
.brand-ill.ss { background: radial-gradient(circle at 75% 25%, #FFB366, var(--sizzle) 45%, #C2410C); }
.brand-ill .art { position: absolute; right: -10px; top: 10px; width: 62%; z-index: -1; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.brand-ill:hover .art { transform: rotate(-6deg) scale(1.06); }
.brand-ill .tag { position: absolute; top: 26px; left: 30px; padding: 7px 14px; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.22); }
.brand-ill h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 10px; }
.brand-ill p { opacity: .92; max-width: 36ch; }
.brand-ill .go { display: inline-flex; gap: 8px; font-weight: 700; margin-top: 6px; }
.brand-ill .go::after { content: "→"; transition: transform .3s; }
.brand-ill:hover .go::after { transform: translateX(6px); }

/* ---------- Big kinetic statement ---------- */
.kinetic { background: var(--cocoa); color: var(--cream); padding: 120px 0; overflow: hidden; position: relative; }
.kinetic .row { font-family: var(--font-head); font-weight: 800; font-size: clamp(3rem, 10vw, 9rem); line-height: .95; letter-spacing: -.05em; white-space: nowrap; will-change: transform; }
.kinetic .row .o { -webkit-text-stroke: 2px var(--cream); color: transparent; }
.kinetic .row .p { color: var(--berry); }
.kinetic .row .g { color: #3DBE6B; }
.kinetic .sub { max-width: 640px; margin: 50px auto 0; text-align: center; font-size: 1.15rem; color: rgba(255,246,236,.8); padding: 0 20px; }

/* ---------- Illustrated franchise CTA ---------- */
.fr-ill { position: relative; border-radius: 34px; overflow: hidden; color: #fff; padding: 80px 64px; background: linear-gradient(120deg, var(--berry-dark), var(--berry) 60%, #FF6B97); display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.fr-ill h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); max-width: 15ch; }
.fr-ill .lead { color: rgba(255,255,255,.9); }
.fr-ill .eyebrow { color: #FFD6E3; }
.fr-ill .btn-ghost { border-color: #fff; color: #fff; }
.fr-ill .btn-ghost:hover { background: #fff; color: var(--berry-dark); }
.fr-ill .map { position: relative; }
.fr-ill .map svg { width: 100%; height: auto; }
.pin-drop { animation: pindrop 2.4s cubic-bezier(.3,1.6,.5,1) infinite; transform-origin: bottom center; transform-box: fill-box; }
@keyframes pindrop { 0%, 20% { transform: translateY(-30px); opacity: 0; } 35% { transform: none; opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Phone versions of the hover effects ---------- */
.serve.active { box-shadow: 0 30px 50px -26px rgba(59,31,20,.7); }
.serve.active .ico { transform: translateZ(40px) scale(1.15) rotate(-6deg); }
.serve.tapped .ico { animation: jump .6s cubic-bezier(.3,1.6,.5,1); }
@keyframes jump { 0% { transform: scale(1); } 40% { transform: translateY(-18px) scale(1.2) rotate(10deg); } 100% { transform: scale(1.15) rotate(-6deg); } }
.brand-ill.active .art { transform: rotate(-6deg) scale(1.08); }
.kpi.active { background: rgba(255,255,255,.12); border-color: rgba(255,178,122,.6); }
.proof.active { box-shadow: 0 0 0 3px var(--berry), 0 16px 36px -24px rgba(59,31,20,.5); }
.why.active { box-shadow: 0 0 0 2px var(--berry), 0 8px 22px -16px rgba(59,31,20,.4); }
.outlet.active { border-color: var(--berry); background: #fff; }
.shake-wrap { touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.serve, .proof, .why, .kpi, .outlet { transition: box-shadow .4s, background .4s, border-color .4s, transform .3s; }

/* Outlet extras */
.outlet .pill.veg { background: rgba(61,190,107,.14); color: #1F7A44; }
.outlet .stars { color: #B7791F; font-weight: 700; }
.outlet .meta { font-size: .88rem; display: flex; flex-direction: column; gap: 2px; }
.outlet .meta a { color: var(--cocoa); text-decoration: none; font-weight: 600; }
.outlet .meta a:hover { color: var(--berry); }

@media (max-width: 980px) {
  .hero3 .wrap { grid-template-columns: 1fr; }
  .serve-grid { grid-template-columns: repeat(2, 1fr); }
  .fr-ill { grid-template-columns: 1fr; }
  .fr-ill .map { max-width: 360px; }
}
@media (max-width: 760px) {
  .hero3 { padding: 110px 0 80px; }
  .serve { min-height: 230px; padding: 20px 18px; }
  .serve .ico { width: 70px; height: 70px; }
  .brand-ill { min-height: 380px; padding: 28px; }
  .fr-ill { padding: 50px 26px; }
  .doodle.hide-sm { display: none; }
  .kinetic { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero3 .lead, .hero3 .hero-ctas, .shake-stage { opacity: 1 !important; }
  .hero3 h1 .line > span { transform: none; }
}
