/* ============================================================
   Royal Tea & Cafe Royal — two royal themes
   Royal Tea  : porcelain white + royal blue   (body[data-brand="royaltea"])
   Cafe Royal : warm ivory + espresso brown     (body[data-brand="caferoyal"])
   ============================================================ */
:root,
body[data-brand="royaltea"] {
  --bg: #fbfbf8;            /* porcelain */
  --bg-2: #eef2fa;          /* pale blue wash */
  --surface: #ffffff;
  --text: #13214d;          /* royal navy */
  --text-2: #3b4873;
  --muted: #6c7699;
  --accent: #2f4fae;        /* logo blue */
  --accent-2: #4d6cc9;
  --accent-deep: #172a6b;
  --accent-soft: rgba(47, 79, 174, .07);
  --line: rgba(19, 33, 77, .12);
  --line-strong: rgba(47, 79, 174, .35);
  --deep: #0f1b45;          /* dark band for footer */
  --deep-2: #182a63;
  --on-deep: #f3f5fb;
  --pattern: rgba(47, 79, 174, .06);
  --shadow: 0 30px 60px -30px rgba(19, 33, 77, .35);
}
body[data-brand="caferoyal"] {
  --bg: #fcfaf6;            /* warm ivory */
  --bg-2: #f4ece2;          /* latte wash */
  --surface: #ffffff;
  --text: #2e1c10;          /* espresso */
  --text-2: #5b4433;
  --muted: #8b7462;
  --accent: #7b4a22;        /* logo brown */
  --accent-2: #a46a38;
  --accent-deep: #4a2a12;
  --accent-soft: rgba(123, 74, 34, .07);
  --line: rgba(46, 28, 16, .12);
  --line-strong: rgba(123, 74, 34, .35);
  --deep: #23150b;
  --deep-2: #3a2414;
  --on-deep: #f8f1e8;
  --pattern: rgba(123, 74, 34, .06);
  --shadow: 0 30px 60px -30px rgba(46, 28, 16, .4);
}
:root {
  --radius: 18px;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --theme-t: background-color .7s ease, color .7s ease, border-color .7s ease, box-shadow .7s ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 300 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: var(--theme-t);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
em { font-style: italic; color: var(--accent); transition: color .7s; }
[hidden] { display: none !important; }

.eyebrow {
  font: 500 12px/1 var(--sans);
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 14px;
}
.section__head .eyebrow::before, .section__head .eyebrow::after { content: ""; width: 36px; height: 3px; border-block: 1px solid currentColor; opacity: .6; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  border-radius: 999px;
  font: 500 13px/1 var(--sans);
  letter-spacing: .18em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .5s, color .35s, box-shadow .35s, border-color .35s;
}
.btn--gold {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 50%, var(--accent-deep));
  color: #fff;
  box-shadow: 0 14px 30px -14px var(--accent), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px var(--accent), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { border-color: var(--line-strong); color: var(--accent-deep); background: var(--surface); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px clamp(16px, 4vw, 56px);
  transition: background .5s, padding .4s, border-color .5s, box-shadow .5s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(0,0,0,.4);
  padding-block: 10px;
}
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__switch { background: none; border: 0; padding: 4px; border-radius: 12px; opacity: .5; filter: grayscale(.4); transition: opacity .5s, filter .5s, transform .4s var(--ease); }
.nav__switch:hover { opacity: .8; filter: none; }
.nav__switch.is-active { opacity: 1; filter: none; }
.nav__logo { display: block; width: auto; }
.nav__logo--tea { height: 50px; }
.nav__logo--cafe { height: 32px; }
.nav.is-scrolled .nav__logo--tea { height: 42px; }
.nav__divider { width: 1px; height: 30px; background: var(--line); }
.nav__links { display: flex; gap: 34px; }
.nav__links a { text-decoration: none; font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--text-2); position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--accent); transition: right .4s var(--ease); }
.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { right: 0; }
.cart-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 9px 12px 9px 16px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-deep);
  transition: var(--theme-t);
}
.cart-btn svg { width: 20px; height: 20px; color: var(--accent); }
.cart-count {
  min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: 0;
  transition: background .7s;
}
.cart-count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ---------- hero (marble / porcelain) ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px clamp(16px, 5vw, 80px) 70px;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 15%, var(--accent-soft), transparent 65%),
    radial-gradient(700px 500px at 5% 95%, var(--accent-soft), transparent 60%),
    linear-gradient(115deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%),
    var(--bg);
  transition: var(--theme-t);
}
/* soft marble veins */
.hero::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none; opacity: .9;
  background:
    repeating-linear-gradient(118deg, transparent 0 140px, var(--pattern) 141px 142px, transparent 143px 260px),
    repeating-linear-gradient(28deg, transparent 0 220px, var(--pattern) 221px 222px, transparent 223px 380px);
}
/* double-rule frame, like the logo */
.hero::after {
  content: ""; position: absolute; inset: 96px clamp(10px, 2.5vw, 36px) 24px; pointer-events: none;
  border: 1px solid var(--line); outline: 1px solid var(--line); outline-offset: 6px; border-radius: 4px;
}
.hero__mark {
  position: absolute; right: clamp(-120px, -4vw, 0px); top: 50%; transform: translateY(-58%);
  width: min(52vw, 640px); height: auto; opacity: .1; pointer-events: none;
  transition: opacity .7s;
}
body[data-brand="caferoyal"] .hero__mark { width: min(50vw, 620px); opacity: .09; }
.hero__inner { position: relative; max-width: 860px; z-index: 1; }
.hero__title { font-size: clamp(54px, 9vw, 128px); font-weight: 400; color: var(--text); }
.hero__lede { max-width: 600px; margin: 28px 0 36px; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); }
.hero__lede strong { font-weight: 500; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.rating { display: inline-flex; align-items: center; gap: 12px; margin-top: 36px; text-decoration: none; font-size: 14px; color: var(--text-2); }
.rating b { color: var(--text); font-weight: 600; }
.stars { letter-spacing: .12em; background: linear-gradient(90deg, #c9a24a 90%, rgba(201,162,74,.3) 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.houses { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 72px; max-width: 1100px; }
.house {
  position: relative; text-align: left; overflow: hidden;
  display: flex; flex-direction: column; gap: 6px;
  padding: 34px 32px; border-radius: var(--radius);
  background: #fff;
  border: 1px solid;
  transition: transform .5s var(--ease), box-shadow .5s, border-color .5s;
}
.house > * { position: relative; z-index: 1; }
.house--tea  { border-color: rgba(47,79,174,.22); color: #13214d; }
.house--cafe { border-color: rgba(123,74,34,.22); color: #2e1c10; }
.house--tea::before, .house--cafe::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.house--tea::before  { background: linear-gradient(135deg, rgba(47,79,174,.08), transparent 60%); }
.house--cafe::before { background: linear-gradient(135deg, rgba(123,74,34,.08), transparent 60%); }
.house:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.house:hover::before, .house.is-active::before { opacity: 1; }
.house--tea.is-active  { border-color: #2f4fae; box-shadow: 0 0 0 1px #2f4fae, 0 30px 60px -30px rgba(47,79,174,.5); }
.house--cafe.is-active { border-color: #7b4a22; box-shadow: 0 0 0 1px #7b4a22, 0 30px 60px -30px rgba(123,74,34,.5); }
.house__kicker { font-size: 11px; letter-spacing: .32em; text-transform: uppercase; opacity: .6; }
.house__name { font: 500 clamp(34px, 4vw, 48px)/1 var(--serif); }
.house__tag { opacity: .75; font-size: 15px; }
.house__link { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; }
.house--tea .house__link  { color: #2f4fae; }
.house--cafe .house__link { color: #7b4a22; }
.house__logo { position: absolute !important; right: 24px; top: 50%; transform: translateY(-50%); transition: transform .6s var(--ease); pointer-events: none; }
.house__logo--tea { height: 150px; }
.house__logo--cafe { height: 66px; }
.house:hover .house__logo { transform: translateY(-50%) scale(1.06); }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-deep)); padding: 20px 0; transition: background .7s; }
.marquee__track { display: flex; gap: 40px; width: max-content; animation: marquee 40s linear infinite; font: italic 400 28px/1 var(--serif); color: #fff; white-space: nowrap; }
.marquee i { color: rgba(255,255,255,.6); font-style: normal; font-size: 15px; align-self: center; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) clamp(16px, 5vw, 80px); max-width: 1320px; margin: 0 auto; }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section__head h2 { font-size: clamp(42px, 6vw, 80px); font-weight: 400; }
.section__lede { color: var(--text-2); margin: 22px auto 0; max-width: 620px; }
.center { text-align: center; }
.band { background: var(--bg-2); transition: var(--theme-t); }

/* ---------- experience ---------- */
.gallery { display: grid; grid-template-columns: 1.1fr 1fr 1fr; grid-auto-rows: 270px; gap: 16px; }
.photo {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2) center / cover;
  box-shadow: var(--shadow);
  transition: transform .8s var(--ease);
}
.photo:not(.has-img)::before {
  content: "Photo coming soon"; position: absolute; inset: 0; display: grid; place-items: center;
  font: italic 18px var(--serif); color: var(--muted);
}
.photo--tall { grid-row: span 2; }
.photo--wide { grid-column: span 2; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 50px 22px 18px;
  background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff;
  font: 500 12px var(--sans); letter-spacing: .24em; text-transform: uppercase;
}
.photo:hover { transform: scale(1.01); }
.pillars { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; position: relative; transition: var(--theme-t); }
.pillars li::before { content: ""; position: absolute; top: 0; left: 24px; width: 32px; height: 3px; background: var(--accent); transition: background .7s; }
.pillars b { font: 500 26px var(--serif); color: var(--accent-deep); }
.pillars span { color: var(--muted); font-size: 15px; }

/* ---------- live music (always Cafe Royal: espresso & cream) ---------- */
.live { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 160px) clamp(16px, 5vw, 80px); background: #1b1009; color: #f8f1e8; isolation: isolate; }
.live__bg { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center 30%; transform: scale(1.05); }
.live::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(27,16,9,.97) 0%, rgba(27,16,9,.9) 38%, rgba(27,16,9,.45) 70%, rgba(27,16,9,.78) 100%),
    linear-gradient(0deg, rgba(27,16,9,.9), transparent 35%);
}
.live__inner { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.live .eyebrow { color: #d9b48a; }
.live h2 { font-size: clamp(46px, 6.4vw, 88px); font-weight: 400; margin-bottom: 26px; }
.live h2 em { color: #e8c9a2; text-shadow: 0 0 40px rgba(232,201,162,.35); }
.live__copy > p { color: rgba(248,241,232,.82); max-width: 540px; }
.live__note { font: italic 400 22px/1.4 var(--serif); color: #e8c9a2 !important; }
.live__logo { height: 54px; width: auto; margin-bottom: 22px; }
.live__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.live .btn--gold { background: linear-gradient(135deg, #f8f1e8, #e8d6bf); color: #3a2414; box-shadow: 0 14px 30px -14px rgba(0,0,0,.8); }
.live .btn--ghost { background: transparent; border-color: rgba(248,241,232,.4); color: #f8f1e8; }
.live .btn--ghost:hover { border-color: #f8f1e8; }
.live__stack { position: relative; height: 520px; }
.live__photo { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(232,201,162,.35); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); }
.live__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.live__photo:hover img { transform: scale(1.05); }
.live__photo--a { width: 82%; height: 300px; top: 0; right: 0; }
.live__photo--b { width: 70%; height: 260px; bottom: 0; left: 0; }

/* ---------- menu ---------- */
.menu-wrap { background: var(--bg-2); transition: var(--theme-t); }
.brand-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-width: 620px; margin: 0 auto 30px; padding: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  box-shadow: var(--shadow);
}
.brand-switch__btn {
  border: 0; background: transparent; border-radius: 999px; padding: 14px 18px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-2);
  transition: background .5s var(--ease), color .5s;
}
.brand-switch__name { font: 500 24px/1 var(--serif); }
.brand-switch__sub { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .7; }
.brand-switch__btn.is-active { background: linear-gradient(135deg, var(--accent-2), var(--accent) 50%, var(--accent-deep)); color: #fff; }

.menu-banner { text-align: center; margin: 0 0 22px; }
.menu-banner__logo { display: inline-block; height: 160px; width: auto; animation: rise .6s var(--ease); }
.menu-banner__logo--caferoyal { height: 84px; margin: 38px 0 34px; }
.menu-banner__tag { margin: 6px 0 0; font: italic 400 21px var(--serif); color: var(--text-2); }

.cat-bar {
  position: sticky; top: 70px; z-index: 20;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 4px; margin: 0 -4px 30px;
  background: linear-gradient(var(--bg-2) 75%, transparent);
  transition: background .7s;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-bar a {
  flex: none; text-decoration: none; padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 13px; letter-spacing: .08em; color: var(--accent-deep);
  transition: all .3s;
}
.cat-bar a:hover, .cat-bar a.is-active { border-color: var(--accent); color: #fff; background: var(--accent); }

.cat { margin-bottom: 64px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 14px; margin-bottom: 24px; flex-wrap: wrap; border-bottom: 3px double var(--line-strong); }
.cat__head h3 { font-size: clamp(32px, 4vw, 46px); font-weight: 400; color: var(--accent-deep); }
.cat__head p { margin: 0; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 19px; }
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.item {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 22px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: border-color .35s, transform .35s var(--ease), box-shadow .35s;
  text-align: left;
}
.item:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.item:has(.item__pic) { display: grid; grid-template-columns: 124px 1fr; grid-template-rows: auto 1fr auto; column-gap: 20px; row-gap: 6px; align-items: start; }
.item:has(.item__pic) > .item__top, .item:has(.item__pic) > .item__desc, .item:has(.item__pic) > .item__add { grid-column: 2; }
.item:has(.item__pic) > .item__add { justify-self: start; }
.item__pic {
  grid-column: 1; grid-row: 1 / span 3; align-self: center;
  display: block; width: 124px; height: 124px; padding: 0; border: 1px solid var(--line);
  overflow: hidden; border-radius: 14px; cursor: pointer; position: relative;
  box-shadow: 0 14px 26px -16px rgba(0,0,0,.45);
}
.item__pic img { width: 100%; height: 100%; transition: transform .9s var(--ease); }
.item:hover .item__pic img { transform: scale(1.06); }
.item__top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.item__name { font: 500 25px/1.1 var(--serif); color: var(--text); }
.item__price { font: 600 20px var(--serif); color: var(--accent); white-space: nowrap; }
.item__desc { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.item__badge { position: absolute; z-index: 2; top: -10px; left: 18px; background: var(--accent); color: #fff; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.item__add {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--accent);
  transition: all .3s;
}
.item__add:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.menu__board { text-align: center; color: var(--muted); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- how ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { padding: 40px 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: var(--theme-t); }
.steps__n { font: italic 400 56px/1 var(--serif); color: var(--accent); display: block; margin-bottom: 18px; }
.steps h3 { font-size: 30px; margin-bottom: 10px; color: var(--accent-deep); }
.steps p { margin: 0; color: var(--muted); }

/* ---------- reviews ---------- */
.big-rating { font-size: clamp(90px, 12vw, 150px); display: block; line-height: 1; color: var(--accent-deep); }
.stars--lg { font-size: 28px; letter-spacing: .3em; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.quotes blockquote { margin: 0; padding: 44px 32px 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; transition: var(--theme-t); }
.quotes blockquote::before { content: "“"; position: absolute; top: -6px; left: 24px; font: 400 110px/1 var(--serif); color: var(--accent); opacity: .25; }
.quotes p { font: italic 400 23px/1.4 var(--serif); margin: 0 0 22px; color: var(--text); }
.quotes cite { font-style: normal; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.visit h2 { font-size: clamp(42px, 5vw, 70px); font-weight: 400; }
.facts { margin: 36px 0; display: grid; gap: 22px; }
.facts div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; }
.facts dt { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); padding-top: 4px; }
.facts dd { margin: 0; color: var(--text-2); }
.visit__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.visit__map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1 / 1; box-shadow: var(--shadow); }
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.7); }

/* ---------- footer ---------- */
.footer { padding: 70px 20px 110px; text-align: center; color: color-mix(in srgb, var(--on-deep) 70%, transparent); background: linear-gradient(180deg, var(--deep-2), var(--deep)); transition: background .7s; }
.footer__brands { display: flex; justify-content: center; gap: 30px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.footer__brands i { color: var(--on-deep); opacity: .5; font-size: 18px; font-style: normal; }
.footer__logo--tea { height: 120px; width: auto; }
.footer__logo--cafe { height: 56px; width: auto; }
.footer__social { display: flex; gap: 28px; justify-content: center; }
.footer__social a { text-decoration: none; letter-spacing: .22em; text-transform: uppercase; font-size: 12px; color: var(--on-deep); }
.footer__fine { font-size: 13px; margin-top: 30px; }

/* ---------- FAB ---------- */
.fab {
  position: fixed; left: 50%; bottom: 20px; z-index: 40;
  transform: translate(-50%, 140%);
  display: flex; align-items: center; gap: 10px;
  padding: 15px 24px; border: 0; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 50%, var(--accent-deep));
  color: #fff; font-size: 14px; box-shadow: 0 18px 40px -12px rgba(0,0,0,.5);
  transition: transform .5s var(--ease); white-space: nowrap;
}
.fab em { color: #fff; font-style: normal; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; margin-left: 8px; }
.fab.is-visible { transform: translate(-50%, 0); }

/* ---------- overlays ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100;
  background: color-mix(in srgb, var(--deep) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: grid; place-items: center; padding: 16px;
  animation: fade .3s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line); border-radius: 24px;
  padding: 40px clamp(20px, 4vw, 40px) 32px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,.4);
  animation: rise .45s var(--ease);
}
.sheet--wide { width: min(680px, 100%); }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.sheet__pic { margin: -40px calc(-1 * clamp(20px, 4vw, 40px)) 24px; height: 240px; border-radius: 24px 24px 0 0; overflow: hidden; }
.sheet__pic img { width: 100%; height: 100%; }
.sheet h3 { font-size: clamp(34px, 5vw, 44px); margin-bottom: 8px; color: var(--accent-deep); }
.sheet__desc { color: var(--text-2); margin: 0 0 24px; }
.sheet__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 24px; line-height: 1;
  box-shadow: 0 6px 16px -8px rgba(0,0,0,.4);
}
.sheet__close--light { position: fixed; top: 20px; right: 20px; }
.sheet__foot { display: flex; gap: 14px; align-items: center; margin-top: 22px; position: sticky; bottom: -32px; padding: 16px 0; background: linear-gradient(transparent, var(--surface) 30%); }

.opt { border: 0; padding: 0; margin: 0 0 22px; }
.opt legend { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.opt legend small { color: var(--muted); letter-spacing: .1em; text-transform: none; margin-left: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line);
  font-size: 14px; transition: all .25s; cursor: pointer; background: var(--bg);
}
.chip span small { color: var(--accent); margin-left: 4px; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip input:checked + span small { color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.qty { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; flex: none; }
.qty button { width: 44px; height: 48px; border: 0; background: none; font-size: 20px; color: var(--accent); }
.qty output { min-width: 24px; text-align: center; font-weight: 500; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field span { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; color: var(--text); font: 400 16px var(--sans);
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field input.invalid { border-color: #c4473a; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr .8fr; gap: 0 14px; }

/* drawer */
.overlay--side { place-items: stretch end; padding: 0; }
.drawer {
  width: min(460px, 100%); height: 100%; display: flex; flex-direction: column;
  background: var(--surface); border-left: 1px solid var(--line);
  animation: slide .45s var(--ease);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 26px 28px; border-bottom: 3px double var(--line-strong); }
.drawer__head h3 { font-size: 34px; color: var(--accent-deep); }
.drawer__head .sheet__close { position: static; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 28px; }
.drawer__foot { padding: 22px 28px 28px; border-top: 1px solid var(--line); background: var(--bg); }
.sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
.sum b { font: 600 32px var(--serif); letter-spacing: 0; color: var(--accent); }
.hint { color: var(--muted); font-size: 14px; margin: 6px 0 16px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line__brand { grid-column: 1 / -1; font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.line__name { font: 500 22px/1.15 var(--serif); }
.line__price { font: 600 19px var(--serif); color: var(--accent); }
.line__opts { grid-column: 1 / -1; color: var(--muted); font-size: 14px; margin: 0; }
.line__ctrl { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.line__ctrl .qty button { width: 36px; height: 36px; font-size: 17px; }
.line__rm { background: none; border: 0; color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.empty { text-align: center; padding: 70px 10px; color: var(--muted); }
.empty b { display: block; font: italic 400 30px var(--serif); color: var(--accent-deep); margin-bottom: 8px; }

/* checkout */
.seg { border: 1px solid var(--line); margin: 10px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--bg); border-radius: 999px; padding: 5px; }
.seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 12px 6px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; cursor: pointer; transition: all .3s; color: var(--text-2); }
.seg input:checked + span { background: var(--accent); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.pay { border: 0; padding: 0; margin: 8px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay legend { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.pay__opt { position: relative; }
.pay__opt input { position: absolute; opacity: 0; }
.pay__opt span { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; transition: all .3s; height: 100%; background: var(--bg); }
.pay__opt b { font: 600 22px var(--serif); color: var(--accent-deep); }
.pay__opt small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.pay__opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.pay__opt input:focus-visible + span { outline: 2px solid var(--accent); }
.gcash { display: flex; gap: 20px; align-items: center; padding: 18px; border-radius: 16px; background: linear-gradient(135deg, #e8f1ff, #f6f9ff); border: 1px solid #b7d1ff; margin-bottom: 18px; color: #0b2a5c; }
.gcash img { width: 120px; height: 120px; border-radius: 10px; background: #fff; object-fit: contain; flex: none; }
.gcash__label { margin: 0; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #0a5bd3; font-weight: 500; }
.gcash__num { margin: 4px 0 0; font: 600 26px var(--sans); letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.gcash__name { margin: 0; color: #36507a; }
.gcash__copy { vertical-align: middle; margin-left: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid #0a5bd3; background: #fff; color: #0a5bd3; font: 500 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.gcash__copy:hover { background: #0a5bd3; color: #fff; }
.co-sum { border-top: 3px double var(--line-strong); padding-top: 16px; margin: 8px 0 14px; }
.co-sum div { display: flex; justify-content: space-between; color: var(--muted); }
.co-sum__total { color: var(--text) !important; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; align-items: baseline; }
.co-sum__total b { font: 600 34px var(--serif); color: var(--accent); letter-spacing: 0; }
.error { color: #c4473a; min-height: 1em; margin: 0 0 10px; font-size: 14px; }
.ms { width: 20px; height: 20px; }
.receipt { white-space: pre-wrap; font: 400 13px/1.55 ui-monospace, "Cascadia Mono", Consolas, monospace; background: var(--bg-2); border: 1px dashed var(--line-strong); border-radius: 14px; padding: 18px; max-height: 260px; overflow: auto; color: var(--text-2); }
.done-cta { display: grid; gap: 10px; margin-top: 18px; }

#lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

.toast {
  position: fixed; left: 50%; top: 24px; z-index: 200; transform: translate(-50%, -150%);
  background: var(--accent-deep); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px; font-weight: 500;
  transition: transform .45s var(--ease), opacity .45s, visibility .45s; box-shadow: 0 16px 40px -14px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .steps, .quotes { grid-template-columns: 1fr; }
  .visit { grid-template-columns: 1fr; }
  .live__inner { grid-template-columns: 1fr; }
  .live::before { background: linear-gradient(0deg, rgba(27,16,9,.97) 30%, rgba(27,16,9,.7)); }
  .live__stack { height: 440px; }
  .hero__mark { opacity: .07; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav { gap: 10px; }
  .nav__brand { gap: 8px; }
  .nav__logo--tea, .nav.is-scrolled .nav__logo--tea { height: 40px; }
  .nav__logo--cafe { height: 22px; }
  .cart-btn span:not(.cart-count) { display: none; }
  .hero { padding-top: 130px; }
  .hero::after { inset: 84px 8px 12px; }
  .hero__mark { width: 90vw; right: -30vw; }
  .houses { grid-template-columns: 1fr; margin-top: 48px; }
  .house { padding: 26px 24px; }
  .house__logo--tea { height: 96px; right: 16px; }
  .house__logo--cafe { height: 40px; right: 16px; top: 28%; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .photo--tall { grid-row: span 1; }
  .photo--wide { grid-column: span 1; }
  .pillars { grid-template-columns: 1fr; }
  .live__stack { height: 360px; }
  .live__photo--a { width: 88%; height: 210px; }
  .live__photo--b { width: 76%; height: 180px; }
  .brand-switch__name { font-size: 20px; }
  .brand-switch__sub { display: none; }
  .menu-banner__logo { height: 120px; }
  .menu-banner__logo--caferoyal { height: 60px; }
  .items { grid-template-columns: 1fr; }
  .item:has(.item__pic) { grid-template-columns: 96px 1fr; column-gap: 16px; padding: 18px; }
  .item__pic { width: 96px; height: 96px; }
  .cat-bar { top: 62px; }
  .grid2, .grid3, .pay { grid-template-columns: 1fr; }
  .gcash { flex-direction: column; text-align: center; }
  .facts div { grid-template-columns: 1fr; gap: 4px; }
  .sheet { padding-top: 48px; }
  .sheet__pic { height: 200px; margin-top: -48px; }
  .footer__logo--tea { height: 90px; }
  .footer__logo--cafe { height: 40px; }
}
