/* moomoo 牧牧 — brand site
   Japanese-minimal. Hokkaido-milk cream base, milk-tea brown accent. */

:root {
  --cream:   #FBF8F2;
  --cream-2: #F4EDE1;
  --paper:   #FFFFFF;
  --ink:     #2A2622;
  --muted:   #8A8178;
  --line:    #E7DECF;
  --brown:   #A8703F;   /* milk-tea accent */
  --brown-d: #8A5A30;
  --maxw:    1120px;
  --ease:    cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans TC", -apple-system, "PingFang TC", sans-serif;
  font-weight: 350;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  letter-spacing: .01em;
}

h1, h2, h3, .serif {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1.4;
}

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

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

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ---------- wordmark ---------- */
.wordmark {
  font-family: "Noto Sans TC", sans-serif;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: lowercase;
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(251,248,242,.86);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 28px;
}
.nav .brand { font-size: 20px; letter-spacing: .3em; }
.nav .brand .cn { font-family: "Noto Serif TC", serif; letter-spacing: .15em; margin-left: .6em; font-size: 17px; }
.nav .links { display: flex; gap: 30px; font-size: 14px; letter-spacing: .12em; }
.nav .links a { position: relative; padding: 4px 0; color: var(--ink); opacity: .8; transition: opacity .3s; }
.nav .links a:hover { opacity: 1; }
.nav .links a.active { opacity: 1; }
.nav .links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--brown);
}
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, #FFFFFF 0%, var(--cream) 45%, var(--cream-2) 100%);
  padding: 120px 28px 80px;
  overflow: hidden;
}
.hero::after {  /* milk drop */
  content: ""; position: absolute; bottom: -180px; left: 50%; transform: translateX(-50%);
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #ffffff, #f6efe2);
  filter: blur(2px); opacity: .7;
}
.hero-inner { position: relative; z-index: 2; }
.hero .mk {
  font-family: "Noto Sans TC", sans-serif; font-weight: 500;
  font-size: clamp(56px, 12vw, 132px); letter-spacing: .12em;
  text-transform: lowercase; line-height: 1; color: var(--ink);
}
.hero .cn {
  font-family: "Noto Serif TC", serif; font-size: clamp(20px, 3.4vw, 30px);
  letter-spacing: .5em; margin-top: 18px; color: var(--brown-d);
  padding-left: .5em;
}
.hero .tag {
  margin-top: 34px; font-size: clamp(15px, 2.2vw, 19px); color: var(--muted);
  letter-spacing: .14em;
}
.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .3em; color: var(--muted); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue .line { width: 1px; height: 40px; background: var(--line); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -40px; left: 0; width: 1px; height: 40px;
  background: var(--brown); animation: drop 2.4s var(--ease) infinite;
}
@keyframes drop { 0% { top: -40px; } 60%,100% { top: 40px; } }

/* ---------- sections ---------- */
section { padding: 100px 0; }
.eyebrow {
  font-size: 12px; letter-spacing: .34em; color: var(--brown);
  text-transform: uppercase; margin-bottom: 18px;
}
.section-title { font-size: clamp(26px, 4vw, 40px); margin: 0 0 26px; }
.lead { font-size: clamp(16px, 2vw, 19px); color: #4a443d; max-width: 620px; }

/* home anchor trio */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); }
.trio a {
  background: var(--paper); padding: 54px 34px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.trio a:hover { background: #fffdf8; }
.trio .no { font-family: "Noto Serif TC", serif; color: var(--brown); font-size: 15px; letter-spacing: .2em; }
.trio h3 { font-size: 26px; margin: 22px 0 10px; }
.trio p { color: var(--muted); font-size: 14.5px; margin: 0; }
.trio .go { margin-top: 26px; font-size: 13px; letter-spacing: .2em; color: var(--ink); }
.trio .go span { color: var(--brown); }

/* photo placeholder frame */
.frame {
  background: linear-gradient(135deg, #f3ead9, #efe5d2);
  border: 1px solid var(--line); aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  color: #b6a589; font-size: 13px; letter-spacing: .2em;
}
.frame.tall { aspect-ratio: 3/4; }

/* story */
.story-block { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-block.rev { direction: rtl; }
.story-block.rev > * { direction: ltr; }
.story-block p { color: #4a443d; }
.story-block + .story-block { margin-top: 96px; }
.pullquote {
  font-family: "Noto Serif TC", serif; font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.7; text-align: center; max-width: 760px; margin: 110px auto;
  color: var(--ink); position: relative;
}
.pullquote::before { content: "「"; color: var(--brown); }
.pullquote::after  { content: "」"; color: var(--brown); }

/* menu */
.menu-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 10px; }
.drink { background: var(--paper); padding: 40px 30px; transition: background .4s var(--ease); }
.drink:hover { background: #fffdf8; }
.drink.signature { background: #fbf3e8; }
.drink .badge { font-size: 11px; letter-spacing: .22em; color: var(--brown); margin-bottom: 16px; }
.drink h3 { font-size: 21px; margin: 0 0 8px; }
.drink .en { font-size: 12px; letter-spacing: .14em; color: var(--muted); text-transform: lowercase; margin-bottom: 14px; }
.drink p { font-size: 14px; color: #5a534b; margin: 0; }
.menu-note {
  margin-top: 44px; text-align: center; color: var(--muted);
  font-size: 14.5px; letter-spacing: .08em;
}
.cat-head { margin: 80px 0 8px; font-size: 22px; }
.cat-head:first-of-type { margin-top: 30px; }

/* stores */
.stores { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.store {
  background: var(--paper); border: 1px solid var(--line); padding: 0; overflow: hidden;
  display: flex; flex-direction: column;
}
.store .frame { aspect-ratio: 16/10; border: none; border-bottom: 1px solid var(--line); }
.store-body { padding: 34px 34px 38px; }
.store h3 { font-size: 24px; margin: 0 0 4px; }
.store .sub { color: var(--brown); font-size: 13px; letter-spacing: .12em; margin-bottom: 22px; }
.store dl { margin: 0; display: grid; grid-template-columns: 70px 1fr; row-gap: 12px; column-gap: 16px; font-size: 14.5px; }
.store dt { color: var(--muted); letter-spacing: .1em; }
.store dd { margin: 0; color: #3a342e; }
.store .placeholder { color: var(--brown-d); }
.maplink {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-size: 13px; letter-spacing: .14em; color: var(--ink);
  border-bottom: 1px solid var(--brown); padding-bottom: 3px; align-self: flex-start;
  transition: gap .3s var(--ease);
}
.maplink:hover { gap: 14px; }
.delivery { margin-top: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; letter-spacing: .1em; }
.delivery .lbl { color: var(--muted); }
.delivery a {
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink);
  transition: border-color .3s var(--ease), color .3s var(--ease), background .3s var(--ease);
}
.delivery a:hover { border-color: var(--brown); color: var(--brown); background: #fbf3e8; }

/* ---------- footer ---------- */
.footer { background: var(--cream-2); border-top: 1px solid var(--line); padding: 70px 0 50px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; }
.footer .fm { font-size: 26px; letter-spacing: .25em; }
.footer .fm .cn { font-family: "Noto Serif TC", serif; letter-spacing: .15em; font-size: 18px; margin-left: .5em; }
.footer .cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer .col h4 { font-size: 12px; letter-spacing: .2em; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.footer .col a, .footer .col p { display: block; font-size: 14px; color: #4a443d; margin: 0 0 9px; }
.footer .col a { transition: color .3s; }
.footer .col a:hover { color: var(--brown); }
.footer-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted); letter-spacing: .08em;
}

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

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .nav .links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--cream); flex-direction: column; gap: 0;
    padding: 100px 32px; transform: translateX(100%); transition: transform .45s var(--ease);
    box-shadow: -10px 0 40px rgba(0,0,0,.06);
  }
  .nav.open .links { transform: none; }
  .nav .links a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 5px; width: 26px; z-index: 60;
    background: none; border: none; cursor: pointer; padding: 4px;
  }
  .nav-toggle span { height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
  .nav.open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .trio, .menu-grid, .stores { grid-template-columns: 1fr; }
  .story-block { grid-template-columns: 1fr; gap: 30px; }
  .story-block.rev { direction: ltr; }
  .story-block + .story-block { margin-top: 64px; }
  section { padding: 72px 0; }
}
