/* MOKKA — Beanro-style showcase. Palette and type scale lifted from the reference study. */

:root {
  --cream: #fcf7ee;
  --cream-2: #f9f0e1;
  --cream-3: #faf0e0;
  --espresso: #7d2c0f;
  --rust: #af4f29;
  --orange: #ff8342;
  --butter: #fed16a;
  --green: #485f4e;
  --cocoa: #664237;
  --ink: #222;
  --font-display: "Bayon", sans-serif;
  --font-accent: "Boldonse", sans-serif;
  --font-body: "Manrope", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--espresso);
  display: grid; place-items: center;
}
.loader-inner { text-align: center; }
.loader-cup {
  width: 54px; height: 64px; margin: 0 auto 18px;
  border: 3px solid var(--cream); border-radius: 6px 6px 18px 18px;
  position: relative; overflow: hidden;
}
.loader-cup::after {
  content: ""; position: absolute; right: -16px; top: 12px;
  width: 14px; height: 22px;
  border: 3px solid var(--cream); border-left: none; border-radius: 0 10px 10px 0;
}
.loader-fill {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0%;
  background: var(--orange);
}
.loader-word {
  font-family: var(--font-display); color: var(--cream);
  font-size: 28px; letter-spacing: 0.35em; margin-right: -0.35em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: none; border-radius: 999px;
  font-weight: 700; font-size: 15px; line-height: 1;
  padding: 16px 28px; transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--rust); }
.btn-dark { background: var(--espresso); color: var(--cream); }
.btn-dark:hover { background: var(--cocoa); }
.btn-outline { background: transparent; color: var(--espresso); border: 1.5px solid var(--espresso); }
.btn-outline:hover { background: var(--espresso); color: var(--cream); }
.btn-big { font-size: 18px; padding: 20px 44px; }

/* ---------- Announcement ---------- */
.announce {
  background: var(--espresso); color: var(--cream);
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 13px 44px; font-size: 14px; position: relative;
}
.announce-text a { text-decoration: underline; text-underline-offset: 3px; }
.announce-close {
  position: absolute; right: 16px; top: 50%; translate: 0 -50%;
  background: none; border: none; color: var(--cream); font-size: 20px; line-height: 1;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 20px 40px;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--espresso) 8%, transparent);
}
.nav-links { display: flex; gap: 26px; }
.nav-link { font-weight: 600; font-size: 15px; position: relative; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--orange); transition: width 0.25s ease;
}
.nav-link:hover::after { width: 100%; }
.nav-logo {
  font-family: var(--font-display); font-size: 30px; color: var(--espresso);
  letter-spacing: 0.08em;
}
.nav-cta-wrap { display: flex; justify-content: flex-end; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 90px 24px 40px; text-align: center;
  background: var(--cream-2); overflow: hidden;
}
.hero-columns {
  position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr);
  pointer-events: none;
}
.hero-columns span { border-left: 1px solid color-mix(in srgb, var(--espresso) 5%, transparent); }
.hero-title {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 400;
  color: var(--espresso);
  font-size: clamp(56px, 10.5vw, 150px);
  line-height: 0.94; text-transform: uppercase;
}
.hero-line { display: block; }
.hero-title em { font-style: normal; color: var(--rust); }
.hero-media { position: relative; margin: 48px auto 0; width: min(470px, 78vw); z-index: 2; }
.hero-video-frame { position: relative; }
/* Primary: Higgsfield's alpha WebM plays natively transparent. The hidden mp4 + canvas
   pair is the fallback for browsers without VP9-alpha decode (Safari). */
.hero-alpha, .hero-canvas {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block;
  filter: drop-shadow(0 34px 40px color-mix(in srgb, var(--espresso) 32%, transparent));
}
.hero-video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hero-alpha[hidden], .hero-canvas[hidden] { display: none; }
.hero-bean { position: absolute; width: 54px; z-index: 3; }
.hero-bean-1 { top: 8%; left: -18%; rotate: -20deg; }
.hero-bean-2 { top: 46%; right: -20%; rotate: 35deg; width: 42px; }
.hero-bean-3 { bottom: 4%; left: -10%; rotate: 80deg; width: 34px; }
.hero-meta {
  position: relative; z-index: 2; margin: 44px auto 0; max-width: 560px;
  display: grid; gap: 22px; justify-items: center;
}
.hero-sub { font-size: 17px; line-height: 1.6; color: var(--cocoa); }

/* ---------- Shared section bits ---------- */
section { padding: 110px 40px; }
.kicker {
  font-family: var(--font-accent); font-size: 13px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--rust); margin-bottom: 18px;
}
.kicker-light { color: var(--butter); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 72px); line-height: 1; color: var(--espresso);
}
.section-sub { margin-top: 18px; font-size: 17px; line-height: 1.6; color: var(--cocoa); }

/* ---------- About statement ---------- */
.about { background: var(--cream); text-align: center; padding-block: 140px; }
.about-statement {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(30px, 4.6vw, 64px); line-height: 1.12;
  color: var(--espresso); max-width: 1100px; margin: 0 auto;
}
.about-statement .word { opacity: 0.14; display: inline-block; }

/* ---------- Menu ---------- */
.menu { background: var(--cream-3); }
.menu-tabs { display: flex; gap: 10px; justify-content: center; margin-bottom: 48px; flex-wrap: wrap; }
.menu-tab {
  border: 1.5px solid var(--espresso); background: transparent; color: var(--espresso);
  border-radius: 999px; padding: 12px 24px; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.06em;
  transition: background 0.25s, color 0.25s;
}
.menu-tab.is-active, .menu-tab:hover { background: var(--espresso); color: var(--cream); }
.menu-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px; max-width: 1200px; margin: 0 auto;
}
.menu-card {
  background: var(--cream); border-radius: 20px; padding: 18px;
  display: grid; gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.35s ease;
}
.menu-card:hover {
  background: var(--espresso);
  transform: translateY(-6px);
  box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--espresso) 40%, transparent);
}
.menu-card:hover .menu-name { color: var(--cream); }
.menu-card:hover .menu-price { color: var(--butter); }
.menu-card:hover .menu-rating { color: var(--orange); }
.menu-card:hover .menu-add { color: var(--cream); border-color: var(--cream); }
.menu-card:hover .menu-add:hover { background: var(--cream); color: var(--espresso); }
.menu-card.is-hidden { display: none; }
.menu-card-img { border-radius: 14px; overflow: hidden; background: var(--cream-2); }
.menu-card-img img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; transition: scale 0.5s ease; }
.menu-card:hover .menu-card-img img { scale: 1.05; }
.menu-card-row { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 12px; }
.menu-rating { color: var(--rust); font-weight: 800; font-size: 14px; transition: color 0.35s ease; }
.menu-name { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--espresso); text-transform: uppercase; transition: color 0.35s ease; }
.menu-price { font-weight: 800; color: var(--rust); transition: color 0.35s ease; }
.menu-add { justify-self: start; }

/* ---------- Craft ---------- */
.craft { background: var(--espresso); color: var(--cream); }
.craft .section-title { color: var(--cream); }
.craft .section-sub { color: color-mix(in srgb, var(--cream) 75%, transparent); }
.craft-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.craft-media {
  max-width: 1000px; margin: 0 auto 64px; border-radius: 24px; overflow: hidden;
}
.craft-video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.craft-list { max-width: 820px; margin: 0 auto; list-style: none; display: grid; }
.craft-item {
  display: grid; grid-template-columns: 90px 1fr; gap: 28px; align-items: start;
  padding: 36px 0; border-top: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
}
.craft-num { font-family: var(--font-accent); font-size: 30px; color: var(--butter); }
.craft-item h3 { font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; margin-bottom: 10px; }
.craft-item p { color: color-mix(in srgb, var(--cream) 75%, transparent); line-height: 1.6; }

/* ---------- Stir statement ---------- */
.stir { background: var(--cream-2); text-align: center; padding-block: 150px; }
.stir-title {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(34px, 5.6vw, 80px); line-height: 1.18; color: var(--espresso);
}
.stir-line { display: block; }
.stir-title em { font-style: normal; color: var(--orange); }
.chip {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(12px, 1.2vw, 17px); text-transform: none; letter-spacing: 0;
  border-radius: 999px; padding: 0.55em 1.2em; margin: 0 0.15em;
  rotate: -3deg; scale: 0;
}
.chip-orange { background: var(--orange); color: #fff; rotate: 3deg; }
.chip-yellow { background: var(--butter); color: var(--espresso); }
.chip-green  { background: var(--green); color: var(--cream); rotate: 4deg; }
.chip-rust   { background: var(--rust); color: #fff; rotate: -5deg; }
.stir-sub { margin: 40px auto 0; max-width: 520px; color: var(--cocoa); font-size: 17px; line-height: 1.6; }

/* ---------- Reviews ---------- */
.reviews { background: var(--cream); overflow: hidden; padding-inline: 0; }
.reviews .section-head { padding-inline: 40px; }
.reviews-track {
  display: flex; gap: 24px; width: max-content; padding-inline: 40px;
  will-change: transform;
}
.review-card {
  width: 380px; background: var(--cream-3); border-radius: 20px; padding: 34px;
  display: grid; gap: 20px; align-content: space-between;
}
.review-card blockquote { font-size: 17px; line-height: 1.65; color: var(--ink); }
.review-card figcaption { font-weight: 700; color: var(--rust); font-size: 14px; }

/* ---------- Story ---------- */
.story {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
  max-width: 1200px; margin: 0 auto; background: var(--cream);
}
.story-media { border-radius: 24px; overflow: hidden; }
.story-media img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story-text { display: grid; gap: 20px; justify-items: start; }
.story-text p:not(.kicker) { font-size: 17px; line-height: 1.65; color: var(--cocoa); }

/* ---------- FAQ ---------- */
.faq { background: var(--cream-3); }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
  background: var(--cream); border-radius: 16px; padding: 24px 28px;
}
.faq-item summary {
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 22px; text-transform: uppercase;
  color: var(--espresso); cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { font-size: 26px; color: var(--rust); transition: rotate 0.3s ease; }
.faq-item[open] .faq-icon { rotate: 45deg; }
.faq-item p { margin-top: 16px; line-height: 1.65; color: var(--cocoa); }

/* ---------- CTA ---------- */
.cta {
  background: var(--cream-2);
  text-align: center; position: relative; overflow: hidden; padding-block: 150px;
}
.cta-title {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(48px, 7vw, 100px); line-height: 1.04;
}
.cta-title .hl {
  display: inline-block; background: var(--espresso); color: var(--cream);
  padding: 0.02em 0.28em 0.08em; border-radius: 0.14em;
}
.cta-title .hl-1 { rotate: -1.2deg; }
.cta-title .hl-2 { rotate: 0.8deg; translate: 0 -0.12em; }
.cta-sub { position: relative; z-index: 2; margin: 26px auto 38px; max-width: 460px; color: var(--rust); font-size: 17px; line-height: 1.6; }
.cta .btn { position: relative; z-index: 2; }
.cta-float {
  position: absolute; z-index: 1; width: 230px;
  filter: drop-shadow(0 24px 30px color-mix(in srgb, var(--espresso) 30%, transparent));
}
.cta-float-1 { left: 8%; top: 50%; translate: 0 -55%; rotate: -14deg; }
.cta-float-2 { right: 8%; top: 50%; translate: 0 -45%; rotate: 12deg; }

/* ---------- Marquee ---------- */
.marquee { background: var(--butter); overflow: hidden; padding: 22px 0; }
.marquee-track {
  display: flex; width: max-content;
  animation: marquee 22s linear infinite;
  font-family: var(--font-display); font-size: 34px; text-transform: uppercase;
  color: var(--espresso); white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { background: var(--espresso); color: var(--cream); padding: 90px 40px 30px; }
.footer-tag { text-align: center; font-size: 17px; color: color-mix(in srgb, var(--cream) 70%, transparent); margin-bottom: 64px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  max-width: 900px; margin: 0 auto 80px; text-align: center;
}
.footer-col { display: grid; gap: 12px; justify-items: center; }
.footer-col h4 {
  font-family: var(--font-accent); font-size: 13px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--butter); margin-bottom: 8px;
}
.footer-col a { color: color-mix(in srgb, var(--cream) 82%, transparent); transition: color 0.2s; }
.footer-col a:hover { color: var(--orange); }
.footer-word {
  font-family: var(--font-display); text-align: center;
  font-size: clamp(90px, 22vw, 320px); line-height: 0.8;
  color: color-mix(in srgb, var(--cream) 12%, transparent);
  user-select: none;
}
.footer-base {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--cream) 15%, transparent);
  margin-top: 40px; padding-top: 24px; font-size: 14px;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.footer-base a:hover { color: var(--orange); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  section { padding: 80px 20px; }
  .nav { padding: 16px 20px; grid-template-columns: auto 1fr auto; }
  .nav-links { gap: 16px; }
  .nav-logo { justify-self: center; }
  .story { grid-template-columns: 1fr; gap: 36px; }
  .cta-float { width: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}
