/* Ai-CHA Bedong: brand colours from the Ai-CHA brand board */
:root {
  --red: #e4002b;        /* Pantone 185 C */
  --red-deep: #b5001f;
  --red-soft: #ffe3e8;
  --orange: #ffad29;
  --pink: #ff7878;
  --ink: #231f20;
  --grey: #494948;
  --cream: #fff7ef;
  --white: #ffffff;
  --line: #f1e3d6;
  --radius: 22px;
  --shadow: 0 18px 40px rgba(35, 31, 32, 0.12);
  --wrap: 1180px;
  --display: 'Fredoka', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.6 var(--body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--red); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--grey); }
.note { font-size: 0.88rem; color: var(--grey); }
.eyebrow { font: 700 0.85rem var(--body); text-transform: uppercase; letter-spacing: 0.16em; color: var(--red); margin-bottom: 0.6em; }
.eyebrow-light { color: var(--orange); }
.ph { background: #fff3c4; color: var(--ink); border-bottom: 1px dashed var(--orange); padding: 0 3px; border-radius: 3px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo img { height: 42px; width: auto; }
.links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.links a { font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 12px; border-radius: 999px; }
.links a:hover { background: var(--red-soft); color: var(--red); }
.links .pill { margin-left: 6px; }
.menu-btn { display: none; font: 700 0.95rem var(--body); background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
@media (max-width: 880px) {
  .menu-btn { display: block; }
  .links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .links.open { display: flex; }
  .links a { padding: 12px; }
  .links .pill { margin: 8px 0 0; text-align: center; }
}

/* ---------- buttons ---------- */
.pill { display: inline-block; font: 700 1rem var(--body); text-decoration: none; padding: 13px 24px; border-radius: 999px; border: 2px solid transparent; transition: transform 0.15s, background 0.15s, color 0.15s; cursor: pointer; }
.pill:hover { transform: translateY(-2px); }
.pill-red { background: var(--red); color: #fff; }
.pill-red:hover { background: var(--red-deep); }
.pill-white { background: #fff; color: var(--red); }
.pill-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.pill-ghost:hover { background: rgba(255, 255, 255, 0.15); }
.pill-outline { border-color: var(--red); color: var(--red); background: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 8px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(92vh, 860px); color: #fff; overflow: hidden; display: flex; align-items: center;
  background: radial-gradient(circle at 72% 42%, #ff3d5e 0%, var(--red) 42%, var(--red-deep) 100%); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; pointer-events: none; padding-top: 40px; padding-bottom: 110px; }
.hero-inner a, .hero-inner button { pointer-events: auto; }
.hero-copy { max-width: 560px; }
.tag { display: inline-block; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.35); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; }
.hero h1 { font-size: clamp(2.7rem, 6.4vw, 5rem); margin-top: 14px; text-shadow: 0 6px 30px rgba(120, 0, 20, 0.25); }
.hero h1 span { color: #fff3d6; }
.lead { font-size: 1.15rem; max-width: 30em; opacity: 0.95; }
.lead strong { color: #fff3d6; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding: 0; margin: 26px 0 0; }
.hero-badges li { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 16px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 120px; backdrop-filter: blur(6px); }
.hero-badges strong { font: 700 1.35rem var(--display); }
.hero-badges span { font-size: 0.82rem; opacity: 0.9; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 90px; z-index: 3; fill: #fff; }

/* Fallback when 3D is not available */
.hero-fallback { display: none; position: absolute; right: 4%; top: 50%; transform: translateY(-50%); width: 46%; height: 80%; }
.no-webgl .hero-fallback { display: block; }
.no-webgl #hero-canvas { display: none; }
.hero-fallback img { position: absolute; filter: drop-shadow(0 20px 30px rgba(80, 0, 10, 0.35)); }
.hf-1 { height: 62%; left: 2%; bottom: 4%; transform: rotate(-10deg); }
.hf-2 { height: 92%; left: 30%; top: 0; }
.hf-3 { height: 66%; right: 2%; bottom: 6%; transform: rotate(8deg); }

@media (max-width: 760px) {
  .hero { min-height: 0; align-items: flex-end; }
  .hero-inner { padding-top: 330px; padding-bottom: 90px; }
  .hero-badges li { min-width: 0; flex: 1; }
  .hero-fallback { width: 90%; height: 300px; top: 20px; right: 5%; transform: none; }
}

/* ---------- ticker ---------- */
.ticker { background: var(--orange); color: var(--ink); overflow: hidden; white-space: nowrap; border-block: 3px solid var(--ink); }
.ticker-track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker span { font: 700 1.15rem var(--display); padding: 12px 22px; }
.ticker span::after { content: '❄'; margin-left: 44px; color: var(--red); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-cream { background: var(--cream); }
.section-red { background: radial-gradient(circle at 20% 30%, #ff3d5e 0%, var(--red) 45%, var(--red-deep) 100%); color: #fff; overflow: hidden; }
.head { max-width: 700px; margin-bottom: 36px; }
.head.center { text-align: center; margin-left: auto; margin-right: auto; }
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 880px) { .split, .grid-2 { grid-template-columns: 1fr; gap: 36px; } .section { padding: 72px 0; } }

/* Signature matcha */
.tilt-card { perspective: 1200px; }
.tilt-card img { border-radius: var(--radius); box-shadow: var(--shadow); transform: rotateY(-8deg) rotateX(3deg); transition: transform 0.5s ease; }
.tilt-card:hover img { transform: rotateY(0) rotateX(0) scale(1.02); }
.price-list, .menu-list { list-style: none; padding: 0; margin: 0; }
.price-list li, .menu-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 2px dotted var(--line); font-weight: 700; }
.price-list b, .menu-list b { font: 700 1.1rem var(--display); color: var(--red); white-space: nowrap; }
.menu-list i { font-style: normal; font-size: 0.75rem; color: #fff; background: var(--grey); border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: 2px; }
.menu-list .sub { font-weight: 600; color: var(--grey); font-size: 0.95rem; }

/* ---------- 3D carousel ---------- */
main { overflow-x: clip; }
.ring-stage { position: relative; height: 440px; overflow: hidden; perspective: 1500px; perspective-origin: 50% 40%; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.ring-stage.dragging { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 20px; width: 0; height: 0; transform-style: preserve-3d; }
.ring-item { position: absolute; margin: 0; width: 190px; height: 360px; left: -95px; top: 0; display: flex; align-items: flex-end; justify-content: center; transform-style: preserve-3d; }
.ring-item img { max-height: 100%; width: auto; filter: drop-shadow(0 18px 18px rgba(35, 31, 32, 0.22)); pointer-events: none; }
.ring-item::after { content: ''; position: absolute; bottom: -14px; left: 20%; right: 20%; height: 18px; border-radius: 50%; background: radial-gradient(rgba(35, 31, 32, 0.25), transparent 70%); transform: rotateX(80deg); }
.ring-ui { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 10px; }
.round { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--red); background: #fff; color: var(--red); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.round:hover { background: var(--red); color: #fff; }
.ring-caption { min-width: 250px; text-align: center; }
.ring-caption strong { display: block; font: 700 1.35rem var(--display); }
.ring-caption span { font: 700 1.1rem var(--display); color: var(--red); }
@media (max-width: 600px) {
  .ring-stage { height: 330px; }
  .ring-item { width: 130px; height: 260px; left: -65px; }
  .ring-caption { min-width: 0; flex: 1; }
}

/* ---------- RM1.99 cones ---------- */
.giant { font-size: clamp(4.5rem, 13vw, 9rem); line-height: 0.9; color: #fff3d6; }
.giant span { color: #fff; }
.record { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 16px; padding: 12px 16px; font-weight: 700; }
.cone-trio { position: relative; height: 440px; perspective: 900px; }
.cone-trio img { position: absolute; bottom: 0; height: 88%; filter: drop-shadow(0 26px 28px rgba(80, 0, 10, 0.35)); animation: float 5s ease-in-out infinite; }
.cone-trio .c1 { left: 6%; transform: rotate(-12deg); height: 72%; animation-delay: -1.2s; }
.cone-trio .c2 { left: 34%; z-index: 2; animation-delay: -2.4s; }
.cone-trio .c3 { right: 6%; transform: rotate(12deg); height: 72%; }
@keyframes float { 50% { translate: 0 -14px; } }
@media (max-width: 600px) { .cone-trio { height: 320px; } }

/* ---------- menu tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tabs button { font: 700 0.95rem var(--body); border: 2px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.tabs button[aria-selected='true'] { background: var(--red); border-color: var(--red); color: #fff; }
.menu-panel { background: var(--cream); border-radius: var(--radius); padding: 10px 26px 16px; max-width: 760px; }
.menu-note { margin-top: 18px; font-size: 0.92rem; color: var(--grey); }

/* ---------- awards ---------- */
.awards { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; gap: 28px; }
.award { margin: 0; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); transition: transform 0.4s; }
.award:hover { transform: translateY(-6px) rotate(-1deg); }
.award img { border-radius: 14px; }
.award figcaption { font-weight: 700; font-size: 0.95rem; text-align: center; padding: 12px 6px 4px; }
@media (max-width: 640px) { .awards { grid-template-columns: 1fr; } }

/* ---------- visit ---------- */
.info { list-style: none; padding: 0; margin: 0; }
.info li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 12px 0; border-bottom: 2px dotted var(--line); }
.info b { color: var(--grey); }
@media (max-width: 520px) { .info li { grid-template-columns: 1fr; gap: 2px; } }
.map-card { background: var(--red); border-radius: 28px; aspect-ratio: 1 / 1; max-width: 420px; justify-self: center; width: 100%; display: grid; place-items: center; text-align: center; color: #fff; box-shadow: var(--shadow); padding: 30px; }
.map-card img { width: 70%; border-radius: 20px; }
.map-card p { font: 700 1.4rem var(--display); margin: 14px 0 0; }

/* ---------- promos ---------- */
.promo { display: block; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 30px; text-decoration: none; color: var(--ink); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.promo:hover { transform: translateY(-4px); border-color: var(--red); box-shadow: var(--shadow); }
.promo-emoji { font-size: 2.2rem; }
.promo h3 { margin-top: 10px; }
.promo p { color: var(--grey); }
.promo-link { font-weight: 800; color: var(--red); }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: #d8d2cc; padding: 56px 0 30px; font-size: 0.93rem; }
.footer-inner { display: grid; gap: 16px; justify-items: start; }
.footer-logo { height: 44px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--orange); }
.copy { color: #8f8984; margin: 0; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .cone-trio img { animation: none; }
  .tilt-card img { transform: none; }
}
