/* TAN Coffee Bhopal · sun-baked terracotta, cream glaze, espresso */
:root {
  --cream: #FBF5EA; --sand: #F2DCB4; --sand-2: #EBD3A6; --terra: #A0542A; --terra-d: #7C3C19; --clay: #C77945;
  --ink: #2A1D15; --muted: #65503F; --line: #E4D3B8; --espresso: #24180F; --olive: #4C5A2A; --wa: #12733D;
  --r: 22px; --r-sm: 14px; --shadow: 0 18px 40px -18px rgba(70, 35, 12, .35);
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif; --text: 'Figtree', system-ui, sans-serif;
  --head-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 17px/1.6 var(--text); overflow-x: clip; }
body.has-cart { padding-bottom: 84px; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--terra); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 .4em; font-weight: 800; }
h2 { font-size: clamp(2rem, 6.5vw, 3.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 .82rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--terra); margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* demo bar + header */
.demo-bar { margin: 0; background: var(--espresso); color: #F4E6CF; font-size: .84rem; text-align: center; padding: 7px 16px; line-height: 1.4; }
.site-head { position: sticky; top: 0; z-index: 30; background: rgba(251, 245, 234, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 10px; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font: 800 1.15rem/1 var(--display); letter-spacing: -.01em; white-space: nowrap; }
.brand small { display: block; font: 500 .84rem/1.3 var(--text); color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.nav { display: none; gap: 4px; }
.nav a, .mnav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .mnav a:hover { background: var(--sand); }
.nav a[aria-current], .mnav a[aria-current] { background: var(--ink); color: var(--cream); }
.mnav { display: flex; gap: 4px; padding: 0 12px 8px; overflow-x: auto; scrollbar-width: none; }
.mnav a { font-size: .95rem; padding: 8px 14px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1.5px solid var(--line); background: #fff8ee; color: var(--ink); cursor: pointer; font-size: 1rem; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--terra); color: var(--terra); }
@media (min-width: 820px) { .nav { display: flex; } .mnav { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 1rem/1.1 var(--text); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn svg { width: 20px; height: 20px; }
.btn-terra { background: var(--terra); color: #FFF8EF; box-shadow: 0 10px 22px -10px rgba(160, 84, 42, .8); }
.btn-terra:hover { background: var(--terra-d); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #0d5a2f; }
.head-row .btn { min-height: 44px; padding: 10px 18px; }

/* hero */
.hero { position: relative; padding: 28px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: auto -20% -40% 30%; height: 80%; background: radial-gradient(closest-side, rgba(199, 121, 69, .22), transparent); pointer-events: none; }
.hero-grid { display: grid; gap: 28px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(3rem, 14vw, 6.6rem); line-height: .92; letter-spacing: -.03em; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--terra); display: block; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 34ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: #fff8ee; border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.pill[data-open]::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #2E8B4A; box-shadow: 0 0 0 4px rgba(46, 139, 74, .18); }
.pill.closed::before { background: #B4432B; box-shadow: 0 0 0 4px rgba(180, 67, 43, .18); }
.star { color: var(--terra); }

.stage { position: relative; aspect-ratio: 4 / 4.6; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; touch-action: pan-y; cursor: grab;
  background: radial-gradient(120% 70% at 50% 100%, #E9B98C 0%, var(--clay) 45%, var(--terra) 100%); box-shadow: var(--shadow); isolation: isolate; }
.stage::after { content: ''; position: absolute; inset: 12px; border-radius: inherit; border: 1.5px solid rgba(255, 240, 220, .45); pointer-events: none; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s; }
.stage-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s; }
.stage.live canvas { opacity: 1; }
.stage.live .stage-fallback { opacity: 0; }
.stage-tag { position: absolute; left: 50%; top: 9%; transform: translateX(-50%); text-align: center; color: #FFF6EA; font: 800 1.05rem/1.1 var(--display); text-shadow: 0 2px 10px rgba(60, 25, 5, .35); white-space: nowrap; }
.stage-tag small { display: block; font: 600 .85rem/1.4 var(--text); opacity: .95; }
.stage-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); background: rgba(36, 24, 15, .75); color: #FFF3E2; font-size: .82rem; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 56px; }
  .stage { max-height: 640px; }
}

/* ticker */
.ticker { background: var(--terra); color: #FFF4E4; overflow: hidden; padding: 14px 0; transform: rotate(-1.2deg); margin: 6px -10px 0; }
.ticker div { display: flex; gap: 34px; width: max-content; animation: tick 30s linear infinite; font: 800 1.35rem/1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.ticker span::after { content: '✺'; margin-left: 34px; color: var(--sand); }
@keyframes tick { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: 72px 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.sec-head p { color: var(--muted); max-width: 52ch; margin: 0; }

/* hours strip */
.strip-info { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 46px; }
.strip-info > div { background: #fff8ee; padding: 18px 20px; }
.strip-info b { display: block; font: 800 1.15rem/1.2 var(--display); }
.strip-info span { color: var(--muted); font-size: .95rem; }
@media (min-width: 720px) { .strip-info { grid-template-columns: repeat(3, 1fr); } }

/* product cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff9f0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; transform-style: preserve-3d; will-change: transform; }
.card:hover { box-shadow: var(--shadow); }
.card-img { position: relative; aspect-ratio: 4 / 3.4; overflow: hidden; background: var(--sand); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .card-img img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: var(--cream); color: var(--terra-d); font-weight: 700; font-size: .84rem; padding: 6px 12px; border-radius: 999px; }
.card-body { padding: 18px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { display: flex; gap: 8px; align-items: baseline; }
.card-body p { color: var(--muted); font-size: .97rem; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font: 800 1.25rem/1 var(--display); color: var(--ink); }
.vd { flex: none; width: 14px; height: 14px; border: 1.5px solid; border-radius: 3px; display: inline-grid; place-items: center; transform: translateY(1px); }
.vd::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.vd.veg { color: #2E7D32; } .vd.nv { color: #A3361F; }

.add { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--terra); background: transparent; color: var(--terra-d); font: 700 .98rem/1 var(--text); cursor: pointer; transition: background .2s, color .2s; }
.add:hover { background: var(--terra); color: #fff; }
.step { display: inline-flex; align-items: center; background: var(--terra); color: #fff; border-radius: 999px; padding: 2px; }
.step button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 1.3rem; cursor: pointer; }
.step button:hover { background: rgba(255, 255, 255, .16); }
.step output { min-width: 22px; text-align: center; font-weight: 700; }

/* story (dark) */
.story { background: var(--espresso); color: #F4E6CF; border-radius: 34px; margin: 0 8px; position: relative; overflow: hidden; }
.story h2 { color: #FFF4E4; }
.story .eyebrow { color: var(--sand); }
.story p { color: #E6D3B8; }
.story-grid { display: grid; gap: 40px; align-items: center; }
.story .facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.story .facts li { border: 1px solid rgba(242, 220, 180, .25); border-radius: var(--r-sm); padding: 14px 16px; }
.story .facts b { display: block; font: 800 1.6rem/1.05 var(--display); color: var(--sand); }
.story .facts span { font-size: .92rem; color: #E6D3B8; }
.layers { position: relative; perspective: 1100px; min-height: 420px; }
.layers img { position: absolute; border-radius: 999px 999px 18px 18px; object-fit: cover; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.layers .l1 { width: 64%; height: 380px; left: 0; top: 0; transform: rotateY(10deg) rotateZ(-2deg); }
.layers .l2 { width: 52%; height: 300px; right: 0; bottom: 0; transform: rotateY(-12deg) rotateZ(3deg) translateZ(40px); border: 6px solid var(--espresso); }
.layers:hover .l1 { transform: rotateY(2deg) rotateZ(-1deg) translateZ(20px); }
.layers:hover .l2 { transform: rotateY(-4deg) rotateZ(1deg) translateZ(70px); }
@media (min-width: 900px) { .story-grid { grid-template-columns: 1fr 1fr; gap: 64px; } .story { margin: 0 20px; } .layers { min-height: 520px; } .layers .l1 { height: 460px; } .layers .l2 { height: 340px; } }

/* gallery strip */
.gal { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 18px; scrollbar-width: thin; }
.gal figure { margin: 0; flex: 0 0 72%; scroll-snap-align: center; }
.gal img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 18px 18px; }
.gal figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (min-width: 720px) { .gal figure { flex-basis: 32%; } }
@media (min-width: 1100px) { .gal { padding-inline: max(16px, calc((100vw - 1180px) / 2)); } .gal figure { flex-basis: 24%; } }

/* visit */
.visit { display: grid; gap: 26px; }
.visit-card { background: #fff8ee; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px; }
.visit-card dl { margin: 0; display: grid; gap: 14px; }
.visit-card dt { font: 700 .84rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--terra); }
.visit-card dd { margin: 2px 0 0; }
.visit-card .cta { margin-bottom: 0; }
.map { border: 0; width: 100%; min-height: 340px; height: 100%; border-radius: var(--r); background: var(--sand); }
@media (min-width: 900px) { .visit { grid-template-columns: .9fr 1.1fr; } }
.hours-list { list-style: none; padding: 0; margin: 6px 0 0; }
.hours-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.hours-list li.today { font-weight: 700; color: var(--terra-d); }

/* menu page */
.page-hero { padding: 40px 0 18px; }
.page-hero h1 { font-size: clamp(2.8rem, 12vw, 5.4rem); line-height: .95; letter-spacing: -.04em; }
.page-hero p { color: var(--muted); max-width: 56ch; }
.chips { position: sticky; top: calc(var(--head-h) + 52px); z-index: 20; background: rgba(251, 245, 234, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .chips { top: var(--head-h); } }
.chips nav { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; scrollbar-width: none; max-width: 1180px; margin: auto; }
.chips a { flex: none; text-decoration: none; color: var(--ink); border: 1.5px solid var(--line); background: #fff8ee; border-radius: 999px; padding: 9px 16px; font-weight: 600; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }
.chips a.on { background: var(--terra); border-color: var(--terra); color: #fff; }
.mcat { padding: 44px 0 10px; }
.mcat-head { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline; margin-bottom: 18px; }
.mnum { font: 800 1rem/1 var(--display); color: var(--terra); }
.mcat h2 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 0; }
.mblurb { grid-column: 2; color: var(--muted); margin: 6px 0 0; }
.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .mlist { grid-template-columns: 1fr 1fr; } }
.mrow { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 16px; background: #fff9f0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.mrow.has-img { grid-template-columns: 76px 1fr auto; }
.mrow img { width: 76px; height: 76px; border-radius: 50% 50% 12px 12px; object-fit: cover; }
.mtext h3 { font-size: 1.08rem; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.mtext p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.5; }
.tag { font: 700 .84rem/1 var(--text); background: var(--sand); color: var(--terra-d); padding: 5px 9px; border-radius: 999px; letter-spacing: .02em; }
.side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.side .price { font-size: 1.12rem; }
@media (max-width: 420px) {
  .mrow, .mrow.has-img { grid-template-columns: 1fr auto; }
  .mrow.has-img img { grid-row: span 2; width: 64px; height: 64px; }
  .mrow.has-img { grid-template-columns: 64px 1fr; }
  .mrow.has-img .side { grid-column: 2; flex-direction: row; justify-content: space-between; align-items: center; }
  .mrow:not(.has-img) .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .mrow:not(.has-img) { grid-template-columns: 1fr; }
}

/* booking form + drawer form */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form input, .form textarea, .form select { font: 400 1rem/1.4 var(--text); color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 48px; width: 100%; }
.form input:focus, .form textarea:focus, .form select:focus { border-color: var(--terra); outline: 3px solid rgba(160, 84, 42, .2); outline-offset: 0; }
.form textarea { min-height: 80px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modes { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.modes legend { font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.modes label { display: block; }
.modes input { position: absolute; opacity: 0; }
.modes span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; font-weight: 600; background: #fff; }
.modes input:checked + span { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.modes input:focus-visible + span { outline: 3px solid var(--terra); outline-offset: 2px; }
.fine { font-size: .86rem; color: var(--muted); margin: 0; }
.total-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; padding-top: 6px; border-top: 1px solid var(--line); }
.total-row b { font: 800 1.5rem/1 var(--display); }

/* cart bar + drawer */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); transform: translateY(120%); transition: transform .35s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.cartbar.show { transform: none; pointer-events: auto; }
.cartbar button { width: min(620px, 100%); margin: auto; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px 10px 20px; border: 0; border-radius: 999px; background: var(--espresso); color: #FFF4E4; font: 600 1rem/1 var(--text); cursor: pointer; box-shadow: 0 16px 34px -12px rgba(36, 24, 15, .7); }
.cb-total { font: 800 1.15rem/1 var(--display); color: var(--sand); }
.cartbar .go { margin-left: auto; background: var(--terra); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; }
.cartbar.pop button { animation: pop .4s; }
@keyframes pop { 40% { transform: scale(1.04); } }
.drawer { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92vh; background: transparent; color: var(--ink); }
.drawer::backdrop { background: rgba(36, 24, 15, .55); backdrop-filter: blur(3px); }
.sheet { background: var(--cream); border-radius: 26px 26px 0 0; max-height: 92vh; display: flex; flex-direction: column; }
.drawer[open] .sheet { animation: up .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 10px; }
.sheet-head h2 { font-size: 1.9rem; margin: 0; }
.sheet-body { overflow-y: auto; padding: 4px 20px calc(24px + env(safe-area-inset-bottom)); }
.lines { list-style: none; padding: 0; margin: 0 0 18px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .nm { font-weight: 700; display: flex; gap: 8px; align-items: baseline; }
.line .sub { color: var(--muted); font-size: .92rem; grid-column: 1; }
.line .qty { grid-row: 1 / span 2; grid-column: 2; }
.empty { color: var(--muted); }
@media (min-width: 720px) {
  .drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: 440px; }
  .sheet { border-radius: 26px 0 0 26px; height: 100%; max-height: 100vh; }
  .drawer[open] .sheet { animation-name: side; }
  @keyframes side { from { transform: translateX(40px); opacity: 0; } }
}

/* footer */
.foot { background: var(--espresso); color: #E6D3B8; padding: 56px 0 40px; margin-top: 72px; }
.foot-grid { display: grid; gap: 28px; }
.foot .big { font: 800 clamp(2.2rem, 9vw, 4.4rem)/.95 var(--display); color: #FFF4E4; letter-spacing: -.035em; margin: 0 0 8px; }
.foot .big em { font-style: normal; color: var(--clay); }
.foot a { color: #FFE2BF; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot small { display: block; margin-top: 36px; color: #CDB797; font-size: .88rem; }
@media (min-width: 820px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

/* reveal */
.js-rv .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.js-rv .rv.in { opacity: 1; transform: none; }
.js-rv .card.rv.in { transition: opacity .7s ease var(--d, 0ms), transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
