/* ════════════════════════════════════════════════════════════
   MENTA CAFÉ — premium customer website
   Warm café palette · cream & coffee · serif elegance
   Design tokens → sections:  utilities / preloader / nav /
   hero / menu / modals / reservation / cart / contact / footer
   ════════════════════════════════════════════════════════════ */

/* ---------- 1 · Tokens & reset ---------- */
:root {
  /* palette — coffee brown · dark brown · beige · cream · white · soft black */
  --cream:        #faf5ec;
  --cream-2:      #f4ecdd;
  --white:        #fffdf8;
  --beige:        #e9dcc7;
  --beige-2:      #dccdae;
  --coffee:       #6f4e37;
  --coffee-2:     #8a6244;
  --espresso:     #332217;
  --espresso-2:   #241709;
  --gold:         #b98a55;
  --gold-2:       #d9b98c;
  --sage:         #56745b;
  --ink:          #2b2018;
  --muted:        rgba(43, 32, 24, .62);
  --faint:        rgba(43, 32, 24, .40);
  --danger:       #b3564a;

  --stroke:        rgba(111, 78, 55, .14);
  --stroke-strong: rgba(111, 78, 55, .30);

  --radius:     22px;
  --nav-h:      78px;
  --font-d:     "Playfair Display", Georgia, serif;
  --font-b:     "Manrope", system-ui, -apple-system, sans-serif;

  --shadow-lg:  0 30px 70px -18px rgba(51, 34, 23, .28);
  --shadow-md:  0 16px 40px -16px rgba(51, 34, 23, .20);
  --glow:       0 22px 50px -14px rgba(111, 78, 55, .28);
  --spring:     cubic-bezier(.22, 1, .36, 1);
  --ease:       cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-b);
  background:
    radial-gradient(900px 520px at 88% -6%, rgba(217, 185, 140, .34), transparent 62%),
    radial-gradient(760px 460px at -12% 32%, rgba(185, 138, 85, .16), transparent 62%),
    var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  min-height: 100vh;
}

body.locked { overflow: hidden; }

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, select, textarea  { font: inherit; color: inherit; }

::selection { background: var(--coffee); color: var(--cream); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--cream-2); }
::-webkit-scrollbar-thumb { background: rgba(111, 78, 55, .38); border-radius: 8px; border: 2px solid var(--cream-2); }
::-webkit-scrollbar-thumb:hover { background: rgba(111, 78, 55, .6); }

/* subtle paper grain */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 4000; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  opacity: .035; animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0) } 20% { transform: translate(-4%,3%) }
  40% { transform: translate(3%,-4%) } 60% { transform: translate(-3%,-2%) } 80% { transform: translate(4%,2%) }
}

/* ---------- 2 · Utilities ---------- */
.container { width: min(1240px, 100% - 2.5rem); margin-inline: auto; }
.section   { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }

.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.icon--star { width: .85em; height: .85em; color: var(--gold); transform: translateY(-1px); }
.icon--leaf-tiny { width: 1em; height: 1em; color: var(--gold-2); display: inline-block; vertical-align: -2px; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: 1rem 1.9rem; border-radius: 999px;
  font-weight: 700; font-size: .98rem; letter-spacing: .02em;
  transition: transform .45s var(--spring), box-shadow .45s var(--spring), border-color .3s, color .3s, background .3s;
  will-change: transform;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn--primary {
  background: linear-gradient(135deg, var(--coffee-2), var(--coffee) 60%, #5d3f28);
  color: var(--cream);
  box-shadow: 0 14px 34px -12px rgba(111, 78, 55, .55);
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 22px 46px -12px rgba(111, 78, 55, .6); }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -90%;
  width: 45%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .65s var(--ease);
}
.btn--primary:hover::after { left: 140%; }

.btn--reserve {
  border: 1.5px solid var(--stroke-strong); color: var(--espresso);
  background: rgba(255, 253, 248, .65); backdrop-filter: blur(8px);
}
.btn--reserve .icon { color: var(--coffee); transition: color .3s; }
.btn--reserve:hover {
  border-color: var(--coffee); color: var(--cream);
  background: var(--espresso);
  transform: translateY(-3px); box-shadow: var(--shadow-md);
}
.btn--reserve:hover .icon { color: var(--gold-2); }

.btn--ghost {
  border: 1px solid var(--stroke-strong); color: var(--ink);
  background: rgba(255, 253, 248, .55); backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--coffee); color: var(--coffee); transform: translateY(-3px); }

.btn--block { width: 100%; }

.icon-btn {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--stroke); background: rgba(255, 253, 248, .6);
  color: var(--espresso);
  transition: border-color .3s, background .3s, transform .3s var(--spring), color .3s;
}
.icon-btn:hover { border-color: var(--coffee); background: var(--white); transform: translateY(-2px); color: var(--coffee); }
.icon-btn .icon { width: 1.3rem; height: 1.3rem; }

.icon-btn__badge {
  position: absolute; top: -5px; right: -5px;
  min-width: 21px; height: 21px; padding: 0 5px;
  border-radius: 999px; background: var(--coffee); color: var(--cream);
  font-size: .68rem; font-weight: 800;
  display: grid; place-items: center;
  transition: transform .3s var(--spring);
}
.icon-btn__badge.is-zero { transform: scale(0); }
.icon-btn.bump { animation: bump .45s var(--spring); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-4deg); } 60% { transform: scale(.94); } }

.qty {
  display: inline-flex; align-items: center; gap: .2rem;
  border: 1px solid var(--stroke-strong); border-radius: 999px; padding: .3rem;
  background: var(--white);
}
.qty button {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--coffee);
  transition: background .25s, transform .2s;
}
.qty button:hover { background: rgba(111, 78, 55, .1); }
.qty button:active { transform: scale(.88); }
.qty span { min-width: 2.2ch; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.qty--sm button { width: 30px; height: 30px; }
.qty--sm .icon { width: .95em; height: .95em; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--spring), transform .9s var(--spring); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- 3 · Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 3000;
  background: var(--cream);
  display: grid; place-items: center;
  transition: opacity .7s var(--ease), visibility .7s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader__inner { display: grid; place-items: center; gap: 1rem; }
.preloader__mark {
  width: 84px; height: 84px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--stroke-strong);
  color: var(--coffee); background: var(--white);
  animation: pulseRing 1.8s ease-in-out infinite;
}
.preloader__mark .icon { width: 2.2rem; height: 2.2rem; }
@keyframes pulseRing {
  0%,100% { box-shadow: 0 0 0 0 rgba(111, 78, 55, .3); }
  50%     { box-shadow: 0 0 0 22px rgba(111, 78, 55, 0); }
}
.preloader__word {
  font-family: var(--font-d); font-size: 1.7rem; letter-spacing: .55em; text-indent: .55em;
  color: var(--espresso); animation: breathe 1.8s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { opacity: .55 } 50% { opacity: 1 } }
.preloader__bar { width: 180px; height: 2px; border-radius: 2px; background: rgba(111, 78, 55, .15); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 40%; background: var(--coffee); border-radius: 2px; animation: loadslide 1.1s ease-in-out infinite; }
@keyframes loadslide { 0% { transform: translateX(-110%) } 100% { transform: translateX(300%) } }

/* ---------- 4 · Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: clamp(1.2rem, 4vw, 3rem);
  transition: background .4s, box-shadow .4s, height .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: calc(var(--nav-h) - 14px);
  background: rgba(250, 245, 236, .82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--stroke);
  box-shadow: 0 22px 44px -26px rgba(51, 34, 23, .35);
}

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--cream); background: linear-gradient(135deg, var(--coffee-2), var(--espresso));
  box-shadow: 0 8px 22px -6px rgba(111, 78, 55, .5);
  transition: transform .4s var(--spring);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark .icon { width: 1.35rem; height: 1.35rem; }
.brand__text { font-family: var(--font-d); font-weight: 700; font-size: 1.28rem; letter-spacing: .14em; line-height: 1; display: grid; color: var(--espresso); }
.brand__text small { font-family: var(--font-b); font-size: .56rem; font-weight: 700; letter-spacing: .58em; color: var(--coffee); margin-top: .3rem; }

.nav__links {
  position: absolute; top: calc(100% + .6rem); left: 1.2rem; right: 1.2rem;
  display: flex; flex-direction: column; gap: .35rem;
  padding: .8rem;
  background: rgba(255, 253, 248, .96);
  border: 1px solid var(--stroke); border-radius: 18px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--spring), transform .35s var(--spring), visibility .35s;
}
.nav.open .nav__links { opacity: 1; visibility: visible; transform: none; }

.nav__links a {
  position: relative; padding: .8rem 1rem; border-radius: 12px;
  font-weight: 600; font-size: .98rem; color: var(--muted);
  display: flex; align-items: center; gap: .5rem;
  transition: color .3s, background .3s;
}
.nav__links a:hover { color: var(--coffee); background: rgba(111, 78, 55, .07); }
.nav__links a.is-active { color: var(--coffee); }
.nav__reserve {
  font-weight: 800 !important; color: var(--coffee) !important;
  border: 1px solid var(--stroke-strong);
  justify-content: center;
}
.nav__reserve:hover { background: var(--espresso) !important; color: var(--cream) !important; border-color: var(--espresso); }
.nav__reserve .icon { width: 1.05rem; height: 1.05rem; }

.nav__actions { display: flex; align-items: center; gap: .7rem; }

.burger {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center; gap: 5px;
  border: 1px solid var(--stroke); background: rgba(255, 253, 248, .6);
  transition: border-color .3s;
}
.burger:hover { border-color: var(--coffee); }
.burger span { display: block; width: 19px; height: 2px; border-radius: 2px; background: var(--espresso); transition: transform .35s var(--spring), opacity .25s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5 · Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 1.5rem);
}

.hero__inner {
  display: grid; gap: 3.2rem; align-items: center;
  padding-bottom: 4.5rem;
}

.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; }
.orb--1 { width: 480px; height: 480px; top: -14%; right: -12%; background: radial-gradient(circle, rgba(185, 138, 85, .34), transparent 70%); animation: blob 13s ease-in-out infinite alternate; }
.orb--2 { width: 380px; height: 380px; bottom: -20%; left: -14%; background: radial-gradient(circle, rgba(217, 185, 140, .42), transparent 70%); animation: blob 16s ease-in-out infinite alternate-reverse; }
.orb--3 { width: 240px; height: 240px; top: 30%; left: 42%; background: radial-gradient(circle, rgba(138, 98, 68, .18), transparent 70%); animation: blob 11s ease-in-out infinite alternate; }
@keyframes blob {
  0%   { transform: translate(0,0) scale(1); }
  50%  { transform: translate(4%, 8%) scale(1.12); }
  100% { transform: translate(-6%, -4%) scale(.94); }
}

.float-el { position: absolute; color: rgba(111, 78, 55, .20); pointer-events: none; }
.float-el--bean { width: 54px; height: 54px; }
.float-el--bean.b1 { top: 18%; left: 5%; animation: floatSpin 12s ease-in-out infinite; }
.float-el--bean.b2 { bottom: 12%; right: 6%; width: 40px; height: 40px; animation: floatSpin 15s ease-in-out infinite reverse; }
.float-el--leaf { width: 62px; height: 62px; }
.float-el--leaf.l1 { top: 12%; right: 9%; animation: floatY2 9s ease-in-out infinite; }
.float-el--leaf.l2 { bottom: 20%; left: 8%; width: 44px; height: 44px; animation: floatY2 11s ease-in-out infinite reverse; }
@keyframes floatSpin { 0%,100% { transform: translateY(0) rotate(0) } 50% { transform: translateY(-26px) rotate(38deg) } }
@keyframes floatY2   { 0%,100% { transform: translateY(0) rotate(-8deg) } 50% { transform: translateY(-20px) rotate(10deg) } }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  color: var(--coffee);
  padding: .55rem 1.1rem; border: 1px solid var(--stroke); border-radius: 999px;
  background: rgba(255, 253, 248, .6); backdrop-filter: blur(6px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coffee); animation: dotpulse 1.6s ease-in-out infinite; }
@keyframes dotpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(111, 78, 55, .45) } 50% { box-shadow: 0 0 0 7px rgba(111, 78, 55, 0) } }

.hero__title {
  margin: 1.1rem 0 .4rem;
  font-family: var(--font-d); font-weight: 800;
  font-size: clamp(4.2rem, 16vw, 10.5rem);
  line-height: .95; letter-spacing: .04em;
  background: linear-gradient(100deg, var(--espresso) 20%, var(--coffee-2) 55%, var(--gold) 90%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero__title span { display: inline-block; opacity: 0; transform: translateY(60px) rotate(4deg); }
body.loaded .hero__title span { animation: riseIn 1s var(--spring) both; animation-delay: calc(.15s + .09s * var(--i)); }
@keyframes riseIn { to { opacity: 1; transform: none } }

.hero__sub { max-width: 47ch; color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.13rem); }
.hero__sub strong { color: var(--coffee); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

.hero__stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 2.6rem);
  margin-top: 2.4rem; padding-top: 1.6rem;
  border-top: 1px solid var(--stroke);
}
.stat strong { display: block; font-family: var(--font-d); font-size: 1.5rem; color: var(--espresso); }
.stat span   { font-size: .8rem; color: var(--faint); letter-spacing: .04em; }

/* hero visual */
.hero__visual { position: relative; width: min(430px, 78vw); margin-inline: auto; }
.hero__cup {
  width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  border: 6px solid var(--white);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--stroke), var(--glow);
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-16px) } }

.hero__ring {
  position: absolute; inset: -7%; border-radius: 50%;
  border: 1px dashed rgba(111, 78, 55, .38);
  animation: spin 42s linear infinite;
}
.hero__ring--2 { inset: -14%; border-color: rgba(185, 138, 85, .30); animation-duration: 70s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg) } }

.chip-float {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem; border-radius: 999px;
  background: rgba(255, 253, 248, .92); border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font-size: .8rem; font-weight: 700; color: var(--espresso);
  box-shadow: var(--shadow-md);
  animation: floatY 6s ease-in-out infinite;
}
.chip-float .icon { color: var(--coffee); }
.chip-float.c1 { top: 6%; left: -6%; animation-delay: .8s; }
.chip-float.c2 { top: 44%; right: -10%; animation-delay: 1.6s; }
.chip-float.c3 { bottom: 4%; left: 2%; animation-delay: 2.4s; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; transform: translateX(-50%);
  display: grid; justify-items: center; gap: .5rem;
  color: var(--faint); transition: color .3s;
}
.hero__scroll:hover { color: var(--coffee); }
.hero__scroll-text { font-size: .68rem; letter-spacing: .38em; text-transform: uppercase; }
.mouse { width: 24px; height: 38px; border: 1.6px solid currentColor; border-radius: 14px; display: flex; justify-content: center; padding-top: 6px; }
.wheel { width: 3px; height: 8px; border-radius: 3px; background: currentColor; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1 } 70% { transform: translateY(11px); opacity: 0 } 100% { transform: translateY(0); opacity: 0 } }

/* marquee ribbon — deep espresso band */
.marquee {
  overflow: hidden; padding: 1.05rem 0;
  background: linear-gradient(135deg, var(--espresso), var(--espresso-2));
}
.marquee__track { display: flex; align-items: center; gap: 3rem; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-family: var(--font-d); font-size: clamp(.95rem, 1.8vw, 1.2rem);
  letter-spacing: .34em; text-transform: uppercase; white-space: nowrap; color: rgba(250, 245, 236, .72);
}
.marquee__track i { color: var(--gold-2); font-style: normal; font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%) } }

/* ---------- 6 · Section heads & menu ---------- */
.section__head { text-align: center; max-width: 620px; margin: 0 auto 3rem; }
.section__eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase;
  color: var(--coffee); margin-bottom: .9rem;
}
.section__title {
  font-family: var(--font-d); font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 3.9rem); line-height: 1.08; letter-spacing: .01em;
  color: var(--espresso);
}
.section__title em {
  font-style: italic; font-weight: 600;
  background: linear-gradient(95deg, var(--coffee-2), var(--gold));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section__sub { color: var(--muted); margin-top: 1rem; }

/* category chips */
.chips {
  display: flex; gap: .6rem; padding: .3rem .2rem 1.1rem;
  overflow-x: auto; scrollbar-width: none;
  margin-bottom: 1.6rem;
  position: sticky; top: calc(var(--nav-h) - 14px); z-index: 50;
  background: linear-gradient(var(--cream) 82%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  padding: .68rem 1.35rem; border-radius: 999px;
  border: 1px solid var(--stroke); color: var(--muted);
  font-weight: 700; font-size: .9rem; white-space: nowrap;
  background: rgba(255, 253, 248, .6);
  transition: all .35s var(--spring);
}
.chip small { opacity: .6; font-weight: 600; margin-left: .3rem; }
.chip:hover { border-color: var(--coffee); color: var(--coffee); transform: translateY(-2px); }
.chip.is-active {
  background: linear-gradient(135deg, var(--coffee-2), var(--coffee) 65%, #5d3f28);
  color: var(--cream); border-color: transparent;
  box-shadow: 0 10px 26px -8px rgba(111, 78, 55, .5);
}

/* product grid */
.grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
.grid.switching { animation: gridIn .5s var(--spring); }
@keyframes gridIn { from { opacity: 0; transform: translateY(14px) } }

.card {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--white);
  overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 24px -14px rgba(51, 34, 23, .18);
  transition: transform .5s var(--spring), border-color .35s, box-shadow .5s var(--spring);
}
.card:hover {
  transform: translateY(-8px);
  border-color: var(--stroke-strong);
  box-shadow: var(--shadow-lg), var(--glow);
}

.card__media { position: relative; aspect-ratio: 1 / .92; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--spring); }
.card:hover .card__media img { transform: scale(1.08); }
.card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(51, 34, 23, .34));
}

.card__cat {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  padding: .34rem .8rem; border-radius: 999px;
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255, 253, 248, .88); border: 1px solid var(--stroke);
  backdrop-filter: blur(8px); color: var(--coffee);
}
.card__badge {
  position: absolute; top: .9rem; right: .9rem; z-index: 2;
  padding: .34rem .8rem; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  background: linear-gradient(135deg, #ecd9b5, var(--gold-2)); color: #4a2e10;
  box-shadow: 0 6px 18px -6px rgba(185, 138, 85, .6);
}

.card__body { padding: 1.15rem 1.25rem 1.35rem; }
.card__name { font-family: var(--font-d); font-size: 1.32rem; font-weight: 700; letter-spacing: .01em; color: var(--espresso); }
.card__desc {
  color: var(--muted); font-size: .88rem; margin-top: .4rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; }
.card__price { font-weight: 800; font-size: 1.12rem; color: var(--coffee); font-variant-numeric: tabular-nums; }
.card__price small { font-size: .68rem; font-weight: 700; color: var(--faint); margin-right: .25rem; letter-spacing: .08em; }

.card__add {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--coffee-2), var(--coffee) 65%, #5d3f28); color: var(--cream);
  box-shadow: 0 8px 20px -6px rgba(111, 78, 55, .55);
  transition: transform .35s var(--spring), box-shadow .35s;
}
.card__add:hover { transform: scale(1.12) rotate(90deg); box-shadow: 0 12px 26px -6px rgba(111, 78, 55, .7); }
.card__add:active { transform: scale(.9); }
.card__add .icon { width: 1.15rem; height: 1.15rem; }

/* skeleton loading cards */
.skel { border-radius: var(--radius); border: 1px solid var(--stroke); overflow: hidden; background: var(--white); }
.skel__img, .skel__line {
  background: linear-gradient(110deg, rgba(111, 78, 55, .05) 8%, rgba(111, 78, 55, .12) 18%, rgba(111, 78, 55, .05) 33%);
  background-size: 200% 100%; animation: shimmer 1.5s linear infinite;
}
.skel__img { aspect-ratio: 1 / .92; }
.skel__body { padding: 1.15rem 1.25rem 1.35rem; display: grid; gap: .7rem; }
.skel__line { height: 14px; border-radius: 8px; }
.skel__line.w60 { width: 60%; }
.skel__line.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0 } }

.menu__empty { text-align: center; color: var(--muted); padding: 4rem 1rem; display: grid; justify-items: center; gap: .8rem; }
.menu__empty .icon { width: 3rem; height: 3rem; color: var(--faint); }

/* ---------- 7 · Modals ---------- */
.modal {
  position: fixed; inset: 0; z-index: 1500;
  display: grid; place-items: center; padding: 1.1rem;
  visibility: hidden; opacity: 0;
  transition: opacity .4s var(--ease), visibility .4s;
}
.modal.open { visibility: visible; opacity: 1; }
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(36, 23, 9, .55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.modal__panel {
  position: relative; width: 100%;
  max-height: calc(100dvh - 2.2rem); overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--beige); border-radius: 26px;
  box-shadow: var(--shadow-lg);
  transform: translateY(38px) scale(.95);
  transition: transform .5s var(--spring);
}
.modal.open .modal__panel { transform: none; }

.modal__close {
  position: absolute; top: .9rem; right: .9rem; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 248, .85); border: 1px solid var(--stroke);
  color: var(--ink);
  backdrop-filter: blur(8px);
  transition: transform .3s var(--spring), border-color .3s, color .3s;
}
.modal__close:hover { transform: rotate(90deg); border-color: var(--coffee); color: var(--coffee); }

/* product modal */
.modal__panel.pm { display: grid; max-width: 430px; }
.pm__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.pm__media img { width: 100%; height: 100%; object-fit: cover; animation: imgReveal .9s var(--spring) both .15s; }
@keyframes imgReveal { from { opacity: 0; transform: scale(1.12) } }
.pm__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 64%, rgba(51, 34, 23, .55)); }
.pm__badge {
  position: absolute; bottom: .9rem; left: 1.2rem; z-index: 2;
  padding: .34rem .85rem; border-radius: 999px;
  font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: linear-gradient(135deg, #ecd9b5, var(--gold-2)); color: #4a2e10;
}
.pm__info { padding: 1.6rem 1.6rem 1.8rem; }
.pm__cat { font-size: .74rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--coffee); }
.pm__name { font-family: var(--font-d); font-size: 1.9rem; font-weight: 700; margin-top: .3rem; color: var(--espresso); }
.pm__desc { color: var(--muted); margin-top: .8rem; font-size: .96rem; }
.pm__price { margin-top: 1.1rem; font-size: 1.5rem; font-weight: 800; color: var(--coffee); font-variant-numeric: tabular-nums; }
.pm__price small { font-size: .8rem; color: var(--faint); font-weight: 700; margin-right: .3rem; }
.pm__actions { display: flex; align-items: center; gap: .8rem; margin-top: 1.5rem; flex-wrap: wrap; }
.pm__add { flex: 1; min-width: 200px; padding-inline: 1.2rem; }

/* checkout modal */
.modal__panel.co { max-width: 430px; padding: 2rem 1.6rem 1.6rem; }
.co__head { text-align: center; margin-bottom: 1.4rem; }
.co__icon {
  width: 62px; height: 62px; margin: 0 auto .9rem; border-radius: 20px;
  display: grid; place-items: center;
  color: var(--coffee); background: rgba(111, 78, 55, .08); border: 1px solid var(--stroke-strong);
}
.co__icon .icon { width: 1.7rem; height: 1.7rem; }
.co__head h3 { font-family: var(--font-d); font-size: 1.55rem; color: var(--espresso); }
.co__head p { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.co__label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.co__input {
  width: 100%; padding: 1rem 1.2rem; border-radius: 16px;
  background: var(--cream); border: 1px solid var(--stroke-strong);
  color: var(--espresso); font-size: 1.25rem; font-weight: 800; text-align: center;
  outline: none; transition: border-color .3s, box-shadow .3s;
  font-variant-numeric: tabular-nums;
}
.co__input:focus { border-color: var(--coffee); box-shadow: 0 0 0 4px rgba(111, 78, 55, .14); }
.co__input::-webkit-outer-spin-button, .co__input::-webkit-inner-spin-button { -webkit-appearance: none; }
.co__input { -moz-appearance: textfield; appearance: textfield; }

.co__chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: .9rem; }
.co__chips button {
  padding: .55rem 0; border-radius: 12px;
  border: 1px solid var(--stroke); background: var(--white);
  font-weight: 700; color: var(--muted);
  transition: all .25s var(--spring);
}
.co__chips button:hover { border-color: var(--coffee); color: var(--coffee); transform: translateY(-2px); }
.co__chips button.is-active { background: linear-gradient(135deg, var(--coffee-2), var(--coffee)); color: var(--cream); border-color: transparent; }

.co__error { min-height: 1.4em; color: var(--danger); font-size: .86rem; font-weight: 600; text-align: center; margin: .7rem 0 .3rem; }

/* success modal + reservation success */
.modal__panel.so { max-width: 430px; padding: 2.4rem 1.6rem 1.6rem; text-align: center; }
.so__check { width: 92px; height: 92px; margin: 0 auto 1rem; display: block; }
.so__circle {
  fill: none; stroke: var(--sage); stroke-width: 3.4; stroke-linecap: round;
  stroke-dasharray: 183; stroke-dashoffset: 183;
  filter: drop-shadow(0 0 14px rgba(86, 116, 91, .4));
}
.so__tick {
  fill: none; stroke: var(--sage); stroke-width: 4.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 40; stroke-dashoffset: 40;
}
.modal.open .so__circle { animation: draw 1s var(--spring) forwards .15s; }
.modal.open .so__tick   { animation: draw .55s var(--spring) forwards .95s; }
@keyframes draw { to { stroke-dashoffset: 0 } }

.so__title { font-family: var(--font-d); font-size: 1.7rem; color: var(--espresso); }
.so__sub { color: var(--muted); font-size: .92rem; margin-top: .3rem; }
.so__rows {
  margin: 1.4rem 0; padding: .4rem 1.2rem;
  border: 1px solid var(--stroke); border-radius: 18px;
  background: var(--cream);
}
.so__rows .row { padding: .68rem 0; border-bottom: 1px solid var(--stroke); font-size: .95rem; }
.so__rows .row:last-child { border-bottom: none; }
.so__rows span { color: var(--faint); }
.so__rows strong { font-variant-numeric: tabular-nums; color: var(--espresso); text-align: right; }
#soOrderId { color: var(--coffee); font-size: 1.1rem; }

.chip-new {
  padding: .28rem .85rem; border-radius: 999px;
  background: rgba(86, 116, 91, .12); border: 1px solid rgba(86, 116, 91, .35);
  color: var(--sage); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  animation: dotpulse2 2s ease-in-out infinite;
}
@keyframes dotpulse2 { 0%,100% { box-shadow: 0 0 0 0 rgba(86, 116, 91, .28) } 50% { box-shadow: 0 0 0 6px rgba(86, 116, 91, 0) } }

/* ---------- 7b · RESERVATION modal ---------- */
.modal__panel.rv { max-width: 560px; padding: 2rem 1.7rem 1.7rem; }

.rv__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.rv__icon {
  width: 58px; height: 58px; border-radius: 19px; flex-shrink: 0;
  display: grid; place-items: center;
  color: var(--cream); background: linear-gradient(135deg, var(--coffee-2), var(--espresso));
  box-shadow: 0 10px 24px -8px rgba(111, 78, 55, .5);
}
.rv__icon .icon { width: 1.6rem; height: 1.6rem; }
.rv__head h3 { font-family: var(--font-d); font-size: 1.6rem; color: var(--espresso); }
.rv__head p { color: var(--muted); font-size: .9rem; margin-top: .15rem; }

.rv__form { display: grid; gap: 1rem; }
.rv__row { display: grid; gap: 1rem; }
.rv__row--2 { grid-template-columns: 1fr; }
.rv__row--3 { grid-template-columns: 1fr; }

.rv__field { display: grid; gap: .38rem; position: relative; }
.rv__field > span {
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint);
}
.rv__field > span em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 600; opacity: .75; }
.rv__field input, .rv__field select, .rv__field textarea {
  width: 100%; padding: .85rem 1.05rem; border-radius: 14px;
  border: 1px solid var(--stroke-strong); background: var(--cream);
  color: var(--espresso); font-weight: 600; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.rv__field input::placeholder, .rv__field textarea::placeholder { color: var(--faint); font-weight: 500; }
.rv__field input:focus, .rv__field select:focus, .rv__field textarea:focus {
  border-color: var(--coffee); background: var(--white);
  box-shadow: 0 0 0 4px rgba(111, 78, 55, .13);
}
.rv__field .invalid, .rv__field input.invalid, .rv__field select.invalid, .rv__field textarea.invalid {
  border-color: var(--danger); background: #fdf6f4;
}
.rv__field .invalid:focus { box-shadow: 0 0 0 4px rgba(179, 86, 74, .12); }
.rv__field select { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f4e37' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .95rem center; padding-right: 2.6rem;
}
.rv__field input[type="date"] { min-height: 3.15em; }
.rv__err { min-height: 1.05em; color: var(--danger); font-size: .76rem; font-weight: 600; line-height: 1.35; }
.rv__count { position: absolute; right: .2rem; top: 0; color: var(--faint); font-size: .72rem; font-weight: 600; }
.rv__error { min-height: 1.35em; color: var(--danger); font-size: .87rem; font-weight: 600; text-align: center; }

.rv__done { text-align: center; padding-top: .4rem; animation: doneIn .5s var(--spring); }
@keyframes doneIn { from { opacity: 0; transform: translateY(16px) } }
.rv__done .so__rows { text-align: left; }
.rv__done-actions { display: grid; gap: .7rem; grid-template-columns: 1fr; margin-top: 1.2rem; }

/* ---------- 8 · Cart drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 1400;
  background: rgba(36, 23, 9, .5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.overlay.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 1450;
  height: 100vh; height: 100dvh;
  width: min(440px, 100%);
  background: var(--white);
  border-left: 1px solid var(--beige);
  box-shadow: -30px 0 70px rgba(51, 34, 23, .3);
  display: flex; flex-direction: column;
  transform: translateX(103%);
  transition: transform .55s var(--spring);
}
.drawer.open { transform: none; }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--stroke);
}
.drawer__head h3 { font-family: var(--font-d); font-size: 1.3rem; display: flex; align-items: center; gap: .6rem; color: var(--espresso); }
.drawer__head .icon { color: var(--coffee); }
#cartHeadCount { font-family: var(--font-b); font-size: .8rem; color: var(--faint); font-weight: 700; }

.drawer__body { flex: 1; overflow-y: auto; padding: 1.1rem 1.4rem; display: grid; gap: .9rem; align-content: start; }

.ci {
  display: grid; grid-template-columns: 68px 1fr auto; gap: .9rem; align-items: center;
  padding: .8rem; border-radius: 18px;
  border: 1px solid var(--stroke); background: var(--cream);
  animation: ciIn .45s var(--spring);
}
@keyframes ciIn { from { opacity: 0; transform: translateX(26px) } }
.ci__img { width: 68px; height: 68px; object-fit: cover; border-radius: 14px; border: 1px solid var(--stroke); background: var(--cream-2); }
.ci__name { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--espresso); }
.ci__price { color: var(--faint); font-size: .78rem; margin: .15rem 0 .5rem; }
.ci__right { display: grid; justify-items: end; gap: .55rem; }
.ci__total { color: var(--coffee); font-weight: 800; font-size: .98rem; font-variant-numeric: tabular-nums; }
.ci__remove {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center; color: var(--faint);
  transition: color .25s, background .25s, transform .25s;
}
.ci__remove:hover { color: var(--danger); background: rgba(179, 86, 74, .09); transform: scale(1.08); }
.ci__remove .icon { width: 1.05rem; height: 1.05rem; }

.drawer__empty {
  text-align: center; padding: 3.5rem 1rem;
  display: grid; justify-items: center; gap: .5rem; color: var(--muted);
}
.drawer__empty .icon { width: 3.4rem; height: 3.4rem; color: rgba(111, 78, 55, .3); margin-bottom: .4rem; }
.drawer__empty strong { font-family: var(--font-d); font-size: 1.25rem; color: var(--espresso); }
.drawer__empty small { font-size: .88rem; }
.drawer__empty .btn { margin-top: 1rem; }

.drawer__foot { padding: 1.2rem 1.4rem 1.5rem; border-top: 1px solid var(--stroke); background: var(--cream); }
.row--total { margin-bottom: .5rem; }
.row--total span { color: var(--muted); font-weight: 600; }
.row--total strong { font-family: var(--font-d); font-size: 1.55rem; color: var(--coffee); font-variant-numeric: tabular-nums; }
.drawer__note { font-size: .76rem; color: var(--faint); text-align: center; margin-bottom: 1rem; }

/* ---------- 9 · Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.6rem; z-index: 2500;
  transform: translate(-50%, 24px);
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.35rem; border-radius: 14px;
  background: rgba(36, 23, 9, .94); border: 1px solid rgba(217, 185, 140, .3);
  border-left: 3px solid var(--gold-2);
  color: var(--cream); font-weight: 600; font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; white-space: nowrap;
  transition: opacity .4s var(--spring), transform .4s var(--spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 10 · Contact ---------- */
.contact__grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }

.c-card {
  padding: 1.7rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--white);
  box-shadow: 0 6px 24px -16px rgba(51, 34, 23, .18);
  transition: transform .5s var(--spring), border-color .35s, box-shadow .5s;
}
.c-card:hover { transform: translateY(-6px); border-color: var(--stroke-strong); box-shadow: var(--glow); }
.c-card__icon {
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  color: var(--coffee); background: rgba(111, 78, 55, .08); border: 1px solid var(--stroke-strong);
  transition: transform .45s var(--spring);
}
.c-card:hover .c-card__icon { transform: rotate(-8deg) scale(1.07); }
.c-card__icon .icon { width: 1.5rem; height: 1.5rem; }
.c-card h3 { font-family: var(--font-d); font-size: 1.22rem; margin-bottom: .45rem; color: var(--espresso); }
.c-card p { color: var(--muted); font-size: .95rem; }
.c-card p + p { margin-top: .3rem; }
.c-card a:hover { color: var(--coffee); }
.c-card .dim { color: var(--faint); font-size: .84rem; }

.socials { display: flex; gap: .6rem; margin: .2rem 0 .6rem; }
.socials a {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  border: 1px solid var(--stroke); color: var(--muted);
  background: var(--white);
  transition: all .35s var(--spring);
}
.socials a:hover {
  color: var(--cream); background: linear-gradient(135deg, var(--coffee-2), var(--espresso));
  border-color: transparent; transform: translateY(-4px) rotate(-6deg);
  box-shadow: 0 10px 22px -8px rgba(111, 78, 55, .55);
}
.socials--sm a { width: 38px; height: 38px; border-radius: 12px; }

.maps-btn {
  margin-top: 1.4rem;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--stroke-strong);
  background:
    radial-gradient(400px 120px at 10% 0%, rgba(217, 185, 140, .25), transparent 60%),
    var(--white);
  box-shadow: 0 8px 28px -16px rgba(51, 34, 23, .22);
  transition: transform .5s var(--spring), box-shadow .5s, border-color .3s;
  position: relative; overflow: hidden;
}
.maps-btn:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--coffee); }
.maps-btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 40%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.maps-btn:hover::after { left: 130%; }
.maps-btn__icon {
  width: 56px; height: 56px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--coffee-2), var(--espresso)); color: var(--cream);
  box-shadow: 0 10px 24px -8px rgba(111, 78, 55, .5);
}
.maps-btn__icon .icon { width: 1.6rem; height: 1.6rem; }
.maps-btn__text { flex: 1; }
.maps-btn__text strong { font-family: var(--font-d); font-size: 1.2rem; display: block; color: var(--espresso); }
.maps-btn__text small { color: var(--muted); }
.maps-btn__ext { color: var(--coffee); transition: transform .35s var(--spring); }
.maps-btn:hover .maps-btn__ext { transform: translate(3px, -3px); }

/* ---------- 11 · Footer (deep espresso) ---------- */
.footer {
  margin-top: 2rem;
  background: linear-gradient(180deg, var(--espresso), var(--espresso-2));
  color: rgba(250, 245, 236, .82);
}
.footer__inner {
  display: grid; gap: 2.2rem; padding: 3.5rem 0 2.5rem;
  grid-template-columns: 1fr;
}
.footer .brand__text { color: var(--cream); }
.footer .brand__text small { color: var(--gold-2); }
.footer .brand__mark { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--espresso-2); }
.footer__brand p { color: rgba(250, 245, 236, .55); font-size: .92rem; margin: 1rem 0 1.2rem; max-width: 34ch; }
.footer__col h4 {
  font-size: .78rem; font-weight: 800; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-2); margin-bottom: 1rem;
}
.footer__col a, .footer__col p { display: block; color: rgba(250, 245, 236, .62); font-size: .94rem; padding: .28rem 0; }
.footer__col a:hover { color: var(--cream); transform: translateX(4px); }
.footer__col a { transition: color .3s, transform .3s var(--spring); }
.footer__bar {
  border-top: 1px solid rgba(250, 245, 236, .12);
  padding: 1.3rem 0; text-align: center;
  color: rgba(250, 245, 236, .4); font-size: .85rem;
}
.footer .socials a { background: rgba(250, 245, 236, .05); border-color: rgba(250, 245, 236, .16); color: rgba(250, 245, 236, .6); }
.footer .socials a:hover { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--espresso-2); border-color: transparent; }

/* ---------- 12 · Back to top ---------- */
.to-top {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 253, 248, .9); border: 1px solid var(--stroke-strong);
  backdrop-filter: blur(10px); color: var(--coffee);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: all .4s var(--spring);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--espresso); color: var(--cream); transform: translateY(-3px); }

/* ---------- 13 · Responsive (mobile-first) ---------- */
@media (min-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: repeat(2, 1fr); }
  .modal__panel.pm { max-width: 720px; grid-template-columns: 1fr 1.1fr; }
  .pm__media { aspect-ratio: auto; min-height: 380px; }
  .rv__row--2, .rv__row--3 { grid-template-columns: repeat(2, 1fr); }
  .rv__done-actions { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .rv__row--3 { grid-template-columns: .8fr 1.1fr 1.1fr; }
}

@media (min-width: 900px) {
  .burger { display: none; }
  .nav__links {
    position: static; flex-direction: row; gap: .4rem;
    padding: .35rem; border-radius: 999px;
    opacity: 1; visibility: visible; transform: none;
    background: rgba(255, 253, 248, .55);
    box-shadow: none;
  }
  .nav__links a { padding: .55rem 1.15rem; border-radius: 999px; }
  .nav__links a.is-active { background: rgba(111, 78, 55, .1); }
  .nav__reserve { margin-left: .3rem; border-radius: 999px !important; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
  .hero__visual { width: min(500px, 40vw); }
  .chip-float.c1 { left: -12%; }
  .chip-float.c2 { right: -8%; }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .contact__grid { grid-template-columns: repeat(4, 1fr); }
  .c-card { padding: 1.9rem 1.6rem; }
}

@media (min-width: 1400px) {
  .grid { grid-template-columns: repeat(4, 1fr); }
}

/* custom logo (managed from the admin CMS) */
.brand__mark.has-logo { background: transparent; box-shadow: none; overflow: hidden; }
.brand__logo-img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

/* ---------- 14 · rendering performance ---------- */
#contact, .footer { content-visibility: auto; contain-intrinsic-size: auto 1000px; }
.card__media img, .hero__cup, .pm__media img { background: var(--cream-2); }
.hero__visual, .card { transform: translateZ(0); }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
