/* ==========================================================
   Swagat India Bar & Bistro — design system
   ========================================================== */
:root {
  --bg: #F7F2E9;
  --bg-2: #EFE6D6;
  --card: #FFFCF6;
  --line: rgba(52, 30, 20, .13);
  --line-2: rgba(52, 30, 20, .22);
  --ink: #241915;
  --ink-2: #66564C;
  --ink-3: #978679;
  --maroon: #6E1526;
  --maroon-2: #8C1D31;
  --maroon-d: #3D0B15;
  --maroon-dd: #26070D;
  --saffron: #D4711C;
  --saffron-2: #E8892F;
  --gold: #C29548;
  --gold-l: #E6C886;
  --leaf: #3C7A4B;
  --chilli: #C23B22;
  --on-dark: #F6EBDC;
  --on-dark-2: rgba(246, 235, 220, .68);

  --f-display: 'Fraunces', 'Times New Roman', serif;
  --f-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --f-hindi: 'Tiro Devanagari Hindi', 'Noto Serif Devanagari', serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.25rem, 5vw, 4.5rem);
  --max: 1360px;
  --nav-h: 84px;
  --r: 18px;

  --arch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M0,140 L0,52 C0,32 18,20 33,13 C43,8.5 47.5,5 50,0 C52.5,5 57,8.5 67,13 C82,20 100,32 100,52 L100,140 Z'/%3E%3C/svg%3E");
  --buti: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23E6C886' stroke-width='1'%3E%3Cpath d='M36 22c5 6 5 14 0 20c-5-6-5-14 0-20z'/%3E%3Cpath d='M36 42c-6-2-10-7-11-13c6 1 10 6 11 13zM36 42c6-2 10-7 11-13c-6 1-10 6-11 13z'/%3E%3C/g%3E%3Cg fill='%23E6C886'%3E%3Ccircle cx='0' cy='0' r='1.6'/%3E%3Ccircle cx='72' cy='0' r='1.6'/%3E%3Ccircle cx='0' cy='72' r='1.6'/%3E%3Ccircle cx='72' cy='72' r='1.6'/%3E%3Ccircle cx='36' cy='48' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  --jaali: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='88' viewBox='0 0 88 88'%3E%3Cg fill='none' stroke='%236E1526' stroke-width='1'%3E%3Ccircle cx='44' cy='44' r='18'/%3E%3Cpath d='M44 0Q57 22 44 44Q31 22 44 0ZM44 88Q57 66 44 44Q31 66 44 88ZM0 44Q22 31 44 44Q22 57 0 44ZM88 44Q66 31 44 44Q66 57 88 44Z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.7 var(--f-body); overflow-x: hidden; }
body.is-loading { overflow: hidden; }
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--maroon); color: var(--on-dark); }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 4px; }
*, *::before, *::after { font-variant-numeric: lining-nums; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--max) + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.section { position: relative; padding: clamp(5.5rem, 11vw, 10rem) 0; }
.section--sand { background: var(--bg-2); }
.section--dark { background: var(--maroon-d); color: var(--on-dark); }
.section--dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: var(--buti) 0 0 / 72px 72px; opacity: .07;
}
.section--dark > * { position: relative; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font: 600 .72rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--saffron);
}
.eyebrow::before { content: ''; width: 7px; height: 7px; border: 1px solid currentColor; transform: rotate(45deg); flex: none; }
.section--dark .eyebrow { color: var(--gold-l); }
.hi { display: block; font: 400 1.05rem/1.2 var(--f-hindi); color: var(--maroon); letter-spacing: .02em; }
.section--dark .hi { color: var(--gold-l); }
.h-display {
  font: 360 clamp(2.5rem, 5.2vw, 4.75rem)/1.02 var(--f-display); letter-spacing: -.025em;
  font-variation-settings: 'opsz' 120, 'SOFT' 30; text-wrap: balance;
}
.h-hero { font: 330 clamp(3.1rem, 6.4vw, 6.5rem)/.98 var(--f-display); letter-spacing: -.035em; font-variation-settings: 'opsz' 144; max-width: 10ch; }
.h-hero em { display: inline-block; }
.h-display em, .h-hero em { font-style: italic; font-weight: 300; color: var(--maroon); }
.section--dark .h-display em { color: var(--gold-l); }
.h-3 { font: 400 clamp(1.6rem, 2.4vw, 2.2rem)/1.1 var(--f-display); letter-spacing: -.015em; font-variation-settings: 'opsz' 72; }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.15rem); line-height: 1.75; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.section--dark .lead { color: var(--on-dark-2); }
.sec-head { display: grid; gap: 1.25rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.sec-head--center { justify-items: center; text-align: center; }
.sec-head--center .lead { margin: 0 auto; }
.sec-head--split { grid-template-columns: 1fr auto; align-items: end; gap: 2rem 4rem; }
.ornament { width: 200px; color: var(--gold); }
.ornament svg { width: 100%; height: auto; }

/* word-mask reveal */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .16em .04em .1em; margin: -.16em -.04em -.1em; }
.wi { display: inline-block; will-change: transform; }

/* ---------- buttons ---------- */
.btn {
  --bg-c: var(--maroon); --fg-c: var(--on-dark); --hv: var(--maroon-2);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  height: 54px; padding: 0 1.75rem; border-radius: 999px; overflow: hidden; isolation: isolate;
  background: var(--bg-c); color: var(--fg-c);
  font: 600 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
  transition: color .4s var(--ease), border-color .4s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--hv);
  border-radius: inherit; transform: translateY(101%); transition: transform .6s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--sm { height: 44px; padding: 0 1.25rem; font-size: .72rem; }
.btn--outline { --bg-c: transparent; --fg-c: var(--ink); --hv: var(--ink); border: 1px solid var(--line-2); }
.btn--outline:hover { color: var(--bg); border-color: var(--ink); }
.btn--light { --bg-c: var(--on-dark); --fg-c: var(--maroon-d); --hv: var(--gold-l); }
.btn--ghost-light { --bg-c: transparent; --fg-c: var(--on-dark); --hv: var(--on-dark); border: 1px solid rgba(246, 235, 220, .35); }
.btn--ghost-light:hover { color: var(--maroon-d); }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .6rem; padding-bottom: .35rem;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .6s var(--ease), color .3s;
}
.link-arrow:hover { background-size: 30% 1px; color: var(--maroon); }
.section--dark .link-arrow:hover { color: var(--gold-l); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- small parts ---------- */
.status { display: inline-flex; align-items: center; gap: .55rem; font: 500 .82rem/1 var(--f-body); color: inherit; }
.status::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); flex: none; }
.status.is-open::before { background: #3BA55C; box-shadow: 0 0 0 0 rgba(59, 165, 92, .5); animation: ping 2s ease-out infinite; }
.status.is-closed::before { background: var(--chilli); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(59, 165, 92, .55); } 100% { box-shadow: 0 0 0 9px rgba(59, 165, 92, 0); } }
.stars { color: var(--saffron); letter-spacing: .12em; }

.mark { display: inline-grid; place-items: center; flex: none; }
.mark--veg { width: 14px; height: 14px; border: 1.5px solid var(--leaf); border-radius: 3px; }
.mark--veg::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--leaf); }
.mark--spicy svg { width: 15px; height: 15px; fill: var(--chilli); }
.tag {
  display: inline-flex; align-items: center; gap: .4rem; height: 26px; padding: 0 .7rem; border-radius: 99px;
  font: 600 .66rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase;
  background: rgba(110, 21, 38, .08); color: var(--maroon);
}
.tag--veg { background: rgba(60, 122, 75, .1); color: var(--leaf); }
.tag--hot { background: rgba(194, 59, 34, .1); color: var(--chilli); }

/* arch-framed media */
.arch-frame { position: relative; }
.arch { position: relative; overflow: hidden; -webkit-mask: var(--arch) center / 100% 100% no-repeat; mask: var(--arch) center / 100% 100% no-repeat; background: var(--bg-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.arch-line { position: absolute; inset: -14px; width: calc(100% + 28px); height: calc(100% + 28px); max-width: none; pointer-events: none; overflow: visible; }
.arch-line path { fill: none; stroke: var(--gold); stroke-width: 1; }
.mandala { color: var(--gold); pointer-events: none; }
.mandala svg { width: 100%; height: 100%; animation: spin 160s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--bg-2); }
.media img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }

/* ---------- nav ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h); transition: transform .6s var(--ease), height .5s var(--ease); }
.nav::before {
  content: ''; position: absolute; inset: 0; background: rgba(247, 242, 233, .86);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line); opacity: 0; transition: opacity .5s var(--ease);
}
.nav--solid { height: 70px; }
.nav--solid::before { opacity: 1; }
.nav--hidden { transform: translateY(-100%); }
.nav__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.logo { display: inline-flex; align-items: center; gap: .8rem; }
.logo__mark { width: 42px; height: 42px; padding: 8px; border-radius: 50%; background: var(--maroon); color: var(--gold-l); flex: none; }
.logo__mark svg { width: 100%; height: 100%; }
.logo__text { display: grid; line-height: 1; }
.logo__text b { font: 400 1.55rem/1 var(--f-display); letter-spacing: -.01em; font-variation-settings: 'opsz' 48; }
.logo__text small { margin-top: .3rem; font: 600 .56rem/1 var(--f-body); letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.nav__links { display: flex; gap: 2.4rem; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a { position: relative; padding: .5rem 0; font: 500 .9rem/1 var(--f-body); color: var(--ink); }
.nav__links a::after {
  content: ''; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; margin-left: -2.5px;
  background: var(--saffron); transform: rotate(45deg) scale(0); transition: transform .4s var(--ease);
}
.nav__links a:hover::after, .nav__links a.is-active::after { transform: rotate(45deg) scale(1); }
.nav__right { display: flex; align-items: center; gap: 1.4rem; }
.nav__phone { font: 600 .88rem/1 var(--f-body); display: inline-flex; align-items: center; gap: .5rem; }
.nav__phone svg { width: 16px; height: 16px; color: var(--saffron); }
.nav__burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); position: relative; }
.nav__burger i { position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease); }
.nav__burger i:nth-child(1) { top: 19px; }
.nav__burger i:nth-child(2) { top: 26px; }
.menu-open .nav__burger i:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-open .nav__burger i:nth-child(2) { top: 22px; transform: rotate(-45deg); }
.menu-open .nav { transform: none; }
.menu-open .nav::before { opacity: 0; }

.mmenu {
  position: fixed; inset: 0; z-index: 90; visibility: hidden; display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 2.5rem; background: var(--bg);
}
.mmenu::before { content: ''; position: absolute; inset: 0; background: var(--jaali) 0 0 / 88px 88px; opacity: .05; pointer-events: none; }
.mmenu__links { position: relative; display: grid; gap: .4rem; }
.mmenu__links li { overflow: hidden; }
.mmenu__links a { display: flex; align-items: baseline; justify-content: space-between; padding: .55rem 0; border-bottom: 1px solid var(--line); font: 360 2.6rem/1.1 var(--f-display); letter-spacing: -.02em; }
.mmenu__links a small { font: 400 1rem/1 var(--f-hindi); color: var(--maroon); }
.mmenu__links a.is-active { color: var(--maroon); }
.mmenu__foot { position: relative; display: grid; gap: .8rem; font-size: .95rem; color: var(--ink-2); }
.mmenu__foot a:not(.btn) { color: var(--ink); font-weight: 600; }

/* ---------- page transition ---------- */
.pt { position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; }
.pt__panel {
  position: absolute; inset: 0; background: var(--maroon-d); transform: translateY(100%);
  display: grid; place-items: center; overflow: hidden;
}
.pt__panel::before { content: ''; position: absolute; inset: 0; background: var(--buti) 0 0 / 72px 72px; opacity: .08; }
.pt__mark { position: relative; display: grid; justify-items: center; gap: .9rem; color: var(--gold-l); }
.pt__mark span:first-child { width: 58px; height: 58px; }
.pt__mark span:last-child { font: 400 1.6rem/1 var(--f-hindi); }
html.curtain-in .pt { visibility: visible; pointer-events: all; }
html.curtain-in .pt__panel { transform: none; }

/* ---------- footer ---------- */
.footer { position: relative; background: var(--maroon-dd); color: var(--on-dark-2); padding: clamp(4.5rem, 8vw, 7rem) 0 2rem; overflow: hidden; }
.footer::before { content: ''; position: absolute; inset: 0; background: var(--buti) 0 0 / 72px 72px; opacity: .05; pointer-events: none; }
.footer .container { position: relative; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1fr; gap: 3rem; }
.footer__brand .logo { color: var(--on-dark); }
.footer__brand .logo__mark { background: var(--gold-l); color: var(--maroon-d); }
.footer__brand .logo__text small { color: var(--on-dark-2); }
.footer__brand p { max-width: 30ch; margin: 1.5rem 0 1.75rem; font-size: .95rem; }
.footer h4 { margin-bottom: 1.2rem; font: 600 .7rem/1 var(--f-body); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-l); }
.footer__col { display: grid; align-content: start; gap: .6rem; font-size: .95rem; }
.footer__col a { width: fit-content; transition: color .3s; }
.footer__col a:hover { color: var(--on-dark); }
.footer__hours { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.5rem; font-size: .9rem; }
.footer__hours .is-today { color: var(--gold-l); font-weight: 600; }
.footer__word {
  margin: clamp(3.5rem, 7vw, 6rem) 0 1rem; text-align: center; line-height: .9; white-space: nowrap;
  font: 400 clamp(5rem, 19vw, 17rem)/1 var(--f-hindi); color: transparent;
  -webkit-text-stroke: 1px rgba(230, 200, 134, .32); user-select: none;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.75rem; border-top: 1px solid rgba(246, 235, 220, .12); font-size: .82rem; }

/* ---------- reveal initial states (JS takes over) ---------- */
.js [data-reveal], .js [data-stagger] > *, .js [data-words], .js [data-img] { visibility: hidden; }
.no-gsap [data-reveal], .no-gsap [data-stagger] > *, .no-gsap [data-words], .no-gsap [data-img] { visibility: visible !important; }
[data-img] { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav__links, .nav__phone { display: none; }
  .nav__burger { display: block; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --nav-h: 70px; }
  .nav--solid { height: 64px; }
  .nav__right .btn { display: none; }
  .logo__mark { width: 38px; height: 38px; padding: 7px; }
  .logo__text b { font-size: 1.35rem; }
  .h-hero { font-size: clamp(2.7rem, 12.5vw, 3.6rem); }
  .sec-head--split { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2.5rem; }
  .btn { height: 52px; padding: 0 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  .mandala svg, .status.is-open::before { animation: none !important; }
}
