:root {
  --paper: #F1EDE0;
  --paper-2: #E8E2D1;
  --card: rgba(250, 248, 240, .62);
  --ink: #4F4B43;
  --ink-soft: #7D786C;
  --line: #B9B3A3;
  --sage: #A9B79A;
  --sage-deep: #6F8366;
  --gold: #CDBB74;
  --mist: #C9D4D4;
  --teal: #6E9696;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font: 300 17px/1.7 var(--sans);
  color: var(--ink);
  background: var(--paper) url("assets/img/wall.webp") center / cover fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Painted-wall / concrete texture: fine grain + slow mottled clouds, both tinted to the logo's cream. */
body::before, body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
}
body::before {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='1000' preserveAspectRatio='none'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.0035' numOctaves='4' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55  0 0 0 0 .5  0 0 0 0 .4  1.5 0 0 0 -.62'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 15% 10%, rgba(255,255,250,.7), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(201,212,212,.35), transparent 60%),
    radial-gradient(ellipse at 90% 15%, rgba(205,187,116,.14), transparent 50%);
  background-size: cover;
  background-repeat: no-repeat;
}
body::after {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3  0 0 0 0 .28  0 0 0 0 .22  1 0 0 0 -.38'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .7;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; color: #3F3B34; }
em { font-style: italic; color: var(--sage-deep); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem clamp(16px, 4vw, 48px);
  transition: background .5s var(--ease), box-shadow .5s var(--ease), padding .5s var(--ease);
}
.nav.scrolled { background: rgba(241, 237, 224, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(79, 75, 67, .08); padding-block: .5rem; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; font: 400 1.35rem var(--sans); letter-spacing: .04em; color: var(--ink-soft); }
.brand img { width: 40px; height: auto; transition: transform .8s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.05); }
.links { display: flex; gap: clamp(1rem, 2.5vw, 2.2rem); }
.links a { position: relative; text-decoration: none; font-size: .95rem; letter-spacing: .04em; padding: .3rem 0; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.links a:hover::after, .links a.active::after { transform: scaleX(1); transform-origin: left; }
.tools { display: flex; gap: .4rem; align-items: center; }

.icon-btn {
  position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink); cursor: pointer;
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: rgba(169, 183, 154, .22); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }

.count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--sage-deep); color: #fff; font-size: .68rem; line-height: 18px; font-weight: 500;
  transform: scale(0); transition: transform .4s var(--ease);
}
.count.has { transform: scale(1); }
.bag-btn.bump { animation: bump .6s var(--ease); }
.count.pop { animation: pop .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.18) rotate(-6deg); } 60% { transform: scale(.96) rotate(3deg); } }
@keyframes pop { 40% { transform: scale(1.5); } }

/* Speaker: waves breathe while playing, an x shows when silent. */
.sound-btn .w, .sound-btn .x { transition: opacity .35s var(--ease), transform .35s var(--ease); transform-origin: 12px 12px; }
.sound-btn .x { opacity: 0; transform: scale(.4); }
.sound-btn.is-off .w { opacity: 0; transform: scale(.6); }
.sound-btn.is-off .x { opacity: 1; transform: none; }
.sound-btn:not(.is-off) .w1 { animation: wave 1.6s ease-in-out infinite; }
.sound-btn:not(.is-off) .w2 { animation: wave 1.6s ease-in-out .3s infinite; }
@keyframes wave { 50% { opacity: .35; } }
.sound-btn.hint::after {
  content: "Tap for music"; position: absolute; top: 100%; right: 0; margin-top: 6px; white-space: nowrap;
  font-size: .72rem; letter-spacing: .06em; padding: .3rem .7rem; border-radius: 99px;
  background: var(--ink); color: var(--paper); animation: fadeIn .6s var(--ease) both;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.7rem; border-radius: 99px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); font: 400 .95rem var(--sans); letter-spacing: .05em;
  text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .4s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--sage-deep); transform: translateY(101%); transition: transform .5s var(--ease); z-index: -1; border-radius: inherit; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -12px rgba(63, 59, 52, .5); }
.btn:hover::before { transform: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost::before { background: var(--ink); }
.btn.ghost:hover { color: var(--paper); }
.btn.wide { width: 100%; }
.link-btn { border: 0; background: none; padding: .3rem 0; font: 400 .95rem var(--sans); color: var(--sage-deep); cursor: pointer; transition: letter-spacing .4s var(--ease); }
.link-btn:hover { letter-spacing: .04em; }

/* ---------- Sections ---------- */
section { padding: clamp(5rem, 11vw, 9rem) clamp(16px, 6vw, 96px); position: relative; }
.sec-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.sec-head h2 { font-size: clamp(2.3rem, 5.5vw, 3.8rem); margin-bottom: 1rem; }
.sec-head p:not(.eyebrow) { color: var(--ink-soft); margin: 0; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* Hero */
.hero { min-height: 100svh; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: clamp(2rem, 6vw, 6rem); padding-top: 7rem; max-width: 1280px; margin: 0 auto; }
.hero-art { justify-self: end; width: min(400px, 100%); animation: rise 1.6s var(--ease) both; }
.hero-art img { width: 100%; height: auto; animation: float 7s ease-in-out 1.6s infinite; }
.hero-copy > * { animation: rise 1.4s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .3s; }
.hero-copy > :nth-child(4) { animation-delay: .45s; }
.hero h1 { font-size: clamp(3.2rem, 8vw, 6.2rem); margin-bottom: 1.5rem; }
.lede { font-size: 1.12rem; max-width: 34ch; color: var(--ink-soft); margin: 0 0 2.2rem; }
.cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 2rem; width: 22px; height: 36px; border: 1px solid var(--ink-soft); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--ink-soft); animation: cue 2s var(--ease) infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(6px); } }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } }

/* Flow */
.flow { padding-block: 3rem; }
.flow ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1100px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.flow li { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.flow .num { font: italic 1.3rem var(--serif); color: var(--sage-deep); }
.flow h3 { font-size: 1.8rem; margin: .2rem 0 .4rem; }
.flow p { margin: 0; font-size: .95rem; color: var(--ink-soft); }

/* Sketch illustrations */
.sketch { display: block; width: 100%; height: auto; color: #6F6A5E; overflow: visible; }

/* Consult */
.experts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.expert { text-align: center; padding: 2rem 1.6rem 1.6rem; border-radius: 28px; background: var(--card); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 20px 40px -32px rgba(63,59,52,.45); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.expert:hover { transform: translateY(-6px); box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 30px 50px -30px rgba(63,59,52,.5); }
.expert .portrait { display: block; width: 150px; height: 150px; object-fit: cover; object-position: center 22%; margin: 0 auto 1.2rem; border-radius: 50%; box-shadow: 0 16px 34px -22px rgba(63, 59, 52, .6); transition: transform .8s var(--ease); }
.expert:hover .portrait { transform: scale(1.05); }
.expert h3 { font-size: 1.55rem; }
.expert .role { margin: .2rem 0 .8rem; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); }
.expert p { font-size: .95rem; color: var(--ink-soft); }

.booking { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; max-width: 1100px; margin: 4rem auto 0; }
.plans { display: grid; gap: 1.2rem; align-content: start; }
.plan { padding: 1.6rem 1.8rem; border: 1px solid var(--line); border-radius: 24px; transition: border-color .4s var(--ease), background .4s var(--ease); }
.plan:hover { border-color: var(--sage-deep); background: var(--card); }
.plan.featured { background: rgba(169, 183, 154, .2); border-color: transparent; }
.plan h3 { font-size: 1.5rem; }
.plan .price { font: 500 1.3rem var(--sans); margin: .3rem 0; color: var(--sage-deep); }
.plan p:last-child { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.form { display: grid; gap: 1rem; padding: 2rem; border-radius: 28px; background: var(--card); }
.form h3 { font-size: 1.8rem; margin-bottom: .3rem; }
.form label { display: grid; gap: .35rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form select {
  font: 300 1rem var(--sans); color: var(--ink); padding: .75rem 1rem; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .55); width: 100%;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.form input:focus, .form select:focus { outline: none; border-color: var(--sage-deep); background: #fff; box-shadow: 0 0 0 4px rgba(169, 183, 154, .3); }
.form .btn { justify-self: start; margin-top: .4rem; }
.form.flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 30% { box-shadow: 0 0 0 6px rgba(169, 183, 154, .45); } }

/* Catering */
.promise { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 1100px; margin: 0 auto 5rem; }
.promise article { padding: 2.2rem; border-radius: 28px; background: var(--card); }
.promise .photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 20px; margin-bottom: 1.4rem; }
.promise h3 { font-size: 1.9rem; margin-bottom: .7rem; }
.promise p { margin: 0; color: var(--ink-soft); }

/* Process timeline: the line fills as you scroll (--p from script.js), each step lights up as the line reaches it. */
.process-wrap { max-width: 1200px; margin: 0 auto; }
.process { --p: 0; --ico: 96px; list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.4rem; }
.process::before, .process::after {
  content: ""; position: absolute; top: calc(var(--ico) / 2); left: calc(100% / 12); right: calc(100% / 12); height: 1px; background: var(--line);
}
.process::after { height: 2px; margin-top: -.5px; background: var(--sage-deep); transform: scaleX(var(--p)); transform-origin: left; }
.step { text-align: center; position: relative; z-index: 1; }
.step .ico {
  width: var(--ico); height: var(--ico); margin: 0 auto 1.1rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line);
  transition: border-color .6s var(--ease), background .6s var(--ease), transform .6s var(--ease), box-shadow .6s var(--ease);
}
.step .ico .sketch { width: 62%; opacity: .45; transition: opacity .6s var(--ease); }
.step .when { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.step h3 { font-size: 1.55rem; margin: .2rem 0 .4rem; }
.step p { margin: 0; font-size: .9rem; color: var(--ink-soft); opacity: .55; transition: opacity .6s var(--ease); }
.step.lit .ico { border-color: var(--sage-deep); background: #F8F5EC; transform: scale(1.06); box-shadow: 0 12px 30px -18px rgba(63, 59, 52, .6); }
.step.lit .ico .sketch, .step.lit p { opacity: 1; }

/* Reviews */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; max-width: 1150px; margin: 0 auto; }
.review { margin: 0; display: flex; flex-direction: column; gap: 1rem; padding: 1.8rem; border-radius: 26px; background: var(--card); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.review:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 30px 50px -34px rgba(63, 59, 52, .55); }
.praise { align-self: flex-start; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; padding: .2rem .7rem; border-radius: 99px; background: rgba(205, 187, 116, .28); color: #7E6F3A; }
.praise::before { content: "★★★★★"; letter-spacing: .1em; margin-right: .5rem; color: var(--gold); }
.review blockquote { margin: 0; flex: 1; font: italic 400 1.28rem/1.45 var(--serif); color: #3F3B34; }
.review figcaption { display: flex; align-items: center; gap: .8rem; font-size: .88rem; color: var(--ink-soft); }
.review figcaption .sketch { width: 46px; flex: none; }
.review strong { font-weight: 500; color: var(--ink); }
.reviews .note { text-align: center; font-size: .78rem; color: var(--ink-soft); margin: 2rem 0 0; opacity: .8; }

/* Shop */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin: -1.5rem auto 3rem; }
.tabs button { border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: .5rem 1.2rem; font: 400 .9rem var(--sans); color: var(--ink); cursor: pointer; transition: all .4s var(--ease); }
.tabs button:hover { border-color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.6rem; max-width: 1200px; margin: 0 auto; }
.card { display: flex; flex-direction: column; border-radius: 26px; background: var(--card); padding: 1rem 1rem 1.3rem; transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity .5s var(--ease); animation: cardIn .7s var(--ease) both; animation-delay: var(--d, 0s); }
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -34px rgba(63, 59, 52, .55); }
@keyframes cardIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.card .art { aspect-ratio: 1; border-radius: 20px; display: grid; place-items: center; margin-bottom: 1rem; background: var(--tint, rgba(201,212,212,.35)); overflow: hidden; }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .art img { transform: scale(1.07); }
.card .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .5rem; }
.card .tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 99px; background: rgba(169, 183, 154, .25); color: var(--sage-deep); }
.card h3 { font-size: 1.45rem; }
.card p { font-size: .9rem; color: var(--ink-soft); margin: .3rem 0 1rem; flex: 1; }
.card .buy { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.card .price { font-weight: 500; }
.add {
  border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 99px;
  padding: .5rem 1rem; font: 400 .85rem var(--sans); cursor: pointer; min-width: 112px;
  transition: background .4s var(--ease), color .4s var(--ease), transform .3s var(--ease), border-color .4s var(--ease);
}
.add:hover { background: var(--ink); color: var(--paper); }
.add:active { transform: scale(.94); }
.add.done { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

/* The flying product clone */
.flyer { position: fixed; z-index: 60; pointer-events: none; border-radius: 50%; background: var(--paper-2); box-shadow: 0 10px 30px -10px rgba(63,59,52,.5); will-change: transform, opacity; }
.flyer img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

/* About & History */
.about-inner { max-width: 760px; margin: 0 auto; }
.about .sec-head { margin-bottom: 2.5rem; }
.about p { font-size: 1.08rem; }
.about .big { font: italic 400 clamp(1.5rem, 3vw, 2.1rem)/1.35 var(--serif); color: #3F3B34; text-align: center; margin: 0 0 2rem; }
.timeline { list-style: none; max-width: 720px; margin: 0 auto; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 82px; top: .6rem; bottom: .6rem; width: 1px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 82px 1fr; gap: 2rem; padding: 0 0 2rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 77px; top: .55rem; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--sage-deep); transition: background .6s var(--ease) .4s; }
.timeline li.in::before { background: var(--sage); }
.timeline time { font: italic 1.25rem var(--serif); color: var(--sage-deep); text-align: right; padding-right: .8rem; }
.timeline p { margin: 0; }
.footnote { text-align: center; font: italic 1.4rem var(--serif); color: var(--ink-soft); margin-top: 1rem; }

/* Team */
.members { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; max-width: 1100px; margin: 0 auto; }
.member { margin: 0; text-align: center; }
.member .portrait { display: block; width: min(210px, 100%); height: auto; aspect-ratio: 1; object-fit: cover; margin: 0 auto 1rem; border-radius: 50%; box-shadow: 0 18px 40px -26px rgba(63, 59, 52, .6); transition: transform .8s var(--ease); }
.member:hover .portrait { transform: rotate(-4deg) scale(1.04); }
.member figcaption { display: grid; gap: .15rem; }
.member .role { font-size: .75rem; letter-spacing: .24em; color: var(--sage-deep); }
.member strong { font: 400 1.35rem/1.2 var(--serif); color: #3F3B34; }
.member small { color: var(--ink-soft); letter-spacing: .08em; }

/* Footer */
.foot { text-align: center; padding: 4rem 16px 3rem; border-top: 1px solid rgba(185, 179, 163, .5); color: var(--ink-soft); font-size: .9rem; }
.foot img { width: 56px; height: auto; }
.foot .wordmark { font-size: 1.5rem; letter-spacing: .06em; margin: .2rem 0 .8rem; color: var(--ink-soft); }
.foot p { margin: .2rem 0; }
.foot .credit { font-size: .78rem; opacity: .8; max-width: 520px; margin: 1rem auto 0; }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(63, 59, 52, .3); backdrop-filter: blur(2px); opacity: 0; transition: opacity .5s var(--ease); }
.scrim.open { opacity: 1; }
.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
  display: flex; flex-direction: column; background: var(--paper); box-shadow: -30px 0 60px -30px rgba(63, 59, 52, .4);
  transform: translateX(105%); visibility: hidden; transition: transform .6s var(--ease), visibility 0s .6s;
}
.drawer.open { transform: none; visibility: visible; transition: transform .6s var(--ease); }
.drawer > header, .drawer > footer { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; }
.drawer > header h2 { font-size: 2rem; }
.drawer > footer { flex-direction: column; align-items: stretch; gap: 1rem; border-top: 1px solid var(--line); }
.total { display: flex; justify-content: space-between; }
.bag-list { list-style: none; margin: 0; padding: 0 1.5rem; overflow-y: auto; flex: 1; }
.bag-list li { display: grid; grid-template-columns: 64px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid rgba(185, 179, 163, .5); animation: cardIn .5s var(--ease) both; }
.bag-list .thumb { width: 64px; height: 64px; border-radius: 16px; background: var(--tint); overflow: hidden; }
.bag-list .thumb img { width: 100%; height: 100%; object-fit: cover; }
.bag-list h3 { font-size: 1.15rem; }
.bag-list .sub { font-size: .85rem; color: var(--ink-soft); }
.qty { display: flex; align-items: center; gap: .3rem; }
.qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); transition: background .3s; }
.qty button:hover { background: var(--paper-2); }
.empty { padding: 0 1.5rem; color: var(--ink-soft); font-style: italic; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 70; max-width: calc(100% - 32px);
  padding: .9rem 1.4rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: .92rem;
  transform: translate(-50%, 150%); opacity: 0; transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: grid; }
  .links {
    position: fixed; top: 0; left: 0; right: 0; z-index: -1; flex-direction: column; align-items: center; gap: 1.1rem;
    padding: 5.5rem 16px 2.5rem; background: rgba(241, 237, 224, .97); backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px -30px rgba(63, 59, 52, .5);
    transform: translateY(-100%); transition: transform .6s var(--ease);
  }
  .links a { font: 400 1.6rem var(--serif); }
  .links.open { transform: none; }
  .process { --ico: 76px; grid-template-columns: repeat(3, 1fr); row-gap: 3rem; }
  .process::before, .process::after { display: none; }
}
@media (max-width: 960px) {
  .experts { grid-template-columns: 1fr; max-width: 480px; }
  .promise { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr 1fr; }
  .booking { grid-template-columns: 1fr; }
  .members { grid-template-columns: repeat(2, 1fr); }
  .flow ol { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .review-grid { grid-template-columns: 1fr; }
  .promise article { padding: 1.6rem; }
  /* Vertical timeline on phones: icon column on the left, line runs down through the icons. */
  .process { --ico: 64px; grid-template-columns: 1fr; row-gap: 1.6rem; }
  .process::before, .process::after { display: block; top: calc(var(--ico) / 2); bottom: calc(var(--ico) / 2); left: calc(var(--ico) / 2); right: auto; width: 1px; height: auto; }
  .process::after { width: 2px; margin: 0 0 0 -.5px; transform: scaleY(var(--p)); transform-origin: top; }
  .step { display: grid; grid-template-columns: var(--ico) 1fr; column-gap: 1.1rem; text-align: left; }
  .step .ico { grid-row: span 3; margin: 0; }
  .step h3 { margin: 0; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 6rem; gap: 1rem; }
  .hero-art { justify-self: center; width: min(240px, 70vw); }
  .lede { margin-inline: auto; }
  .cta { justify-content: center; }
  .scroll-cue { display: none; }
  .form { padding: 1.4rem; }
  .form .row { grid-template-columns: 1fr; }
  .timeline::before { left: 56px; }
  .timeline li { grid-template-columns: 56px 1fr; gap: 1.4rem; }
  .timeline li::before { left: 51px; }
  .timeline time { font-size: 1rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .card { padding: .7rem .7rem 1rem; border-radius: 20px; }
  .card h3 { font-size: 1.2rem; }
  .card .buy { flex-direction: column; align-items: stretch; }
  .add { min-width: 0; }
}
@media (max-width: 420px) {
  .members { grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .member strong { font-size: 1.1rem; }
}

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

/* ---------- Post-consultation care: nutritionist card, chat, mock call ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.care { animation: cardIn .7s var(--ease) both; }
.care[hidden], .form[hidden] { display: none; }
.care-person { display: flex; align-items: center; gap: 1.1rem; margin: .4rem 0 .2rem; }
.care-person img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: center 22%; box-shadow: 0 12px 28px -18px rgba(63, 59, 52, .6); }
.care-person strong { display: block; font: 400 1.45rem/1.2 var(--serif); color: #3F3B34; }
.care-role { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sage-deep); }
.online { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--ink-soft); }
.online i { width: 8px; height: 8px; border-radius: 50%; background: #5FA06A; animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0% { box-shadow: 0 0 0 0 rgba(95, 160, 106, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(95, 160, 106, 0); } }
.care-meta { margin: .3rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.care-note { margin: 0; font-size: .95rem; }
.care-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: .3rem; }
.care-actions .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.care .link-btn { justify-self: start; }

.chat {
  position: fixed; z-index: 55; right: 1.5rem; bottom: 1.5rem; width: min(400px, calc(100% - 32px)); height: min(620px, calc(100svh - 3rem));
  display: flex; flex-direction: column; background: var(--paper); border-radius: 26px; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(63, 59, 52, .55), 0 0 0 1px rgba(185, 179, 163, .5);
  opacity: 0; transform: translateY(24px) scale(.97); transform-origin: bottom right; transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.chat[hidden] { display: none; }
.chat.open { opacity: 1; transform: none; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: rgba(169, 183, 154, .22); }
.chat-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.chat-who { flex: 1; min-width: 0; display: grid; }
.chat-who .online { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chat-who .online i { display: inline-block; margin-right: .4rem; vertical-align: middle; }
.chat-who strong { font: 400 1.15rem/1.2 var(--serif); color: #3F3B34; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-log { list-style: none; margin: 0; padding: 1rem; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: .6rem; }
.msg { max-width: 82%; animation: cardIn .4s var(--ease) both; }
.msg p { margin: 0; padding: .65rem .9rem; border-radius: 18px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .7rem; color: var(--ink-soft); margin: .2rem .5rem 0; }
.msg.them { align-self: flex-start; }
.msg.them p { background: #fff; border-bottom-left-radius: 6px; box-shadow: 0 1px 0 rgba(63, 59, 52, .06); }
.msg.me { align-self: flex-end; text-align: right; }
.msg.me p { background: var(--sage-deep); color: #fff; border-bottom-right-radius: 6px; text-align: left; }
.typing { display: flex; align-items: center; gap: .25rem; margin: 0 1rem .4rem; font-size: .75rem; color: var(--ink-soft); }
.typing[hidden] { display: none; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.typing em { margin-left: .4rem; font-style: normal; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.quick { display: flex; gap: .4rem; padding: 0 1rem .6rem; overflow-x: auto; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.quick button { flex: none; border: 1px solid var(--line); background: transparent; border-radius: 99px; padding: .35rem .8rem; font: 400 .8rem var(--sans); color: var(--ink); cursor: pointer; transition: background .3s, border-color .3s; }
.quick button:hover { background: rgba(169, 183, 154, .2); border-color: var(--sage-deep); }
.chat-form { display: flex; gap: .4rem; padding: .6rem .7rem .3rem 1rem; border-top: 1px solid rgba(185, 179, 163, .5); }
.chat-form input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 99px; padding: .65rem 1rem; font: 300 .95rem var(--sans); background: #fff; color: var(--ink); }
.chat-form input:focus { outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(169, 183, 154, .3); }
.icon-btn.send { background: var(--ink); color: var(--paper); }
.icon-btn.send:hover { background: var(--sage-deep); }
.chat-note { margin: 0 0 .7rem; text-align: center; font-size: .7rem; color: var(--ink-soft); }

.call { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; overflow: hidden; background: #24221E; color: #F1EDE0; opacity: 0; transition: opacity .4s var(--ease); }
.call[hidden] { display: none; }
.call.open { opacity: 1; }
.call-bg { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(38px) brightness(.45) saturate(.8); }
.call-body { position: relative; text-align: center; padding: 2rem 16px; display: grid; justify-items: center; gap: .3rem; }
.call-avatar { position: relative; margin-bottom: 1rem; }
.call-avatar img { display: block; width: 148px; height: 148px; border-radius: 50%; object-fit: cover; object-position: center 22%; border: 2px solid rgba(241, 237, 224, .7); }
.call-avatar::before, .call-avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(241, 237, 224, .5); animation: ring 2s var(--ease) infinite; }
.call-avatar::after { animation-delay: 1s; }
.call.connected .call-avatar::before, .call.connected .call-avatar::after { animation: none; opacity: 0; }
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.call h2 { color: #F1EDE0; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.call-role { margin: 0; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 237, 224, .7); }
.call-status { margin: .6rem 0 2.2rem; font-size: 1.05rem; font-variant-numeric: tabular-nums; color: rgba(241, 237, 224, .9); }
.call-controls { display: flex; gap: clamp(1.2rem, 6vw, 2.4rem); align-items: flex-start; }
.call-btn { display: grid; justify-items: center; gap: .5rem; border: 0; background: none; color: inherit; font: 400 .78rem var(--sans); cursor: pointer; }
.call-btn svg { width: 64px; height: 64px; padding: 19px; border-radius: 50%; background: rgba(241, 237, 224, .14); fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: background .3s var(--ease), transform .2s var(--ease); }
.call-btn:hover svg { background: rgba(241, 237, 224, .24); }
.call-btn:active svg { transform: scale(.92); }
.call-btn[aria-pressed="true"] svg { background: #F1EDE0; color: #24221E; }
.call-btn.end svg { background: #C8553D; fill: #fff; stroke: none; }
.call-btn.end:hover svg { background: #B0452F; }
.call.ended .call-status { color: #F3B4A6; }
.call-note { margin-top: 2rem; font-size: .72rem; color: rgba(241, 237, 224, .55); }

@media (max-width: 760px) {
  .chat { inset: 0; right: 0; bottom: 0; width: 100%; height: 100%; border-radius: 0; }
  .care-actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .online i, .call-avatar::before, .call-avatar::after { animation: none; }
}

/* Floating "Chat with …" button, visible anywhere on the page after booking */
.chat-fab {
  position: fixed; z-index: 54; right: 1.5rem; bottom: 1.5rem; display: flex; align-items: center; gap: .6rem;
  padding: .35rem 1.1rem .35rem .35rem; border: 0; border-radius: 99px; background: var(--ink); color: var(--paper);
  font: 400 .95rem var(--sans); cursor: pointer; box-shadow: 0 18px 40px -18px rgba(63, 59, 52, .7);
  animation: cardIn .6s var(--ease) both; transition: background .3s var(--ease), transform .2s var(--ease);
}
.chat-fab[hidden] { display: none; }
.chat-fab:hover { background: var(--sage-deep); transform: translateY(-2px); }
.chat-fab img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 22%; }
.chat-fab b { font-weight: 500; }
@media (max-width: 760px) { .chat-fab { right: 16px; bottom: 16px; } }
