/* Royal Darbar — site-wide styles. Fresh & modern: ivory base, royal green, saffron.
   Fonts: Fraunces (display serif — royal character) + public sans-like system stack. */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Nunito+Sans:wght@400;600;700;800&display=swap');

:root {
  --green: #0E5B3A;
  --green-deep: #0A4429;
  --green-tint: #EAF3EC;
  --saffron: #F0A02E;
  --saffron-deep: #D98A1C;
  --ivory: #FDFBF5;
  --cream: #F7F2E7;
  --ink: #21261F;
  --muted: #6B7266;
  --veg: #2E7D32;
  --nonveg: #B03A2E;
  --card-r: 26px;
  --shadow: 0 10px 30px rgba(20, 40, 25, 0.10);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Nunito Sans', 'Segoe UI', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--ivory);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 44px);
  background: rgba(253, 251, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(14, 91, 58, 0.10);
}
.nav .brand {
  font-family: var(--display); font-weight: 700; font-size: 22px; color: var(--green);
  display: flex; align-items: center; gap: 10px;
}
.nav .brand .crown { font-size: 20px; }
.nav-links { display: flex; gap: clamp(12px, 2.5vw, 30px); align-items: center; }
.nav-links a { font-weight: 700; font-size: 15px; color: var(--ink); opacity: 0.85; }
.nav-links a:hover, .nav-links a.active { color: var(--green); opacity: 1; }
.nav-cta {
  background: var(--green); color: #fff !important; padding: 9px 18px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 7px; font-weight: 800;
}
.nav-cta:hover { background: var(--green-deep); }

/* ---------- Hero (header only — gallery's sketchbook section also uses .hero) ---------- */
header.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--green) 0%, var(--green-deep) 100%);
  color: #fff; text-align: center;
  padding: clamp(48px, 8vw, 90px) 20px clamp(120px, 14vw, 170px);
}
header.hero .rating-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25);
  padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  margin-bottom: 18px;
}
header.hero .rating-pill .star { color: var(--saffron); }
header.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(34px, 6.2vw, 68px); line-height: 1.08;
  max-width: 18ch; margin: 0 auto 14px;
}
header.hero h1 em { font-style: italic; color: #F6D9A0; }
header.hero .sub { font-size: clamp(15px, 2vw, 19px); opacity: 0.92; max-width: 46ch; margin: 0 auto; }
header.hero .hero-actions { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px;
  padding: 13px 26px; border-radius: 999px; border: none; transition: transform .15s ease, background .15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-saffron { background: var(--saffron); color: #241a05; }
.btn-saffron:hover { background: var(--saffron-deep); }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); }
/* corner food art */
header.hero .corner {
  position: absolute; width: clamp(150px, 22vw, 320px); border-radius: 50%;
  object-fit: cover; aspect-ratio: 1; opacity: 0.95;
  box-shadow: 0 18px 50px rgba(0,0,0,0.35);
}
header.hero .corner.tl { top: -60px; left: -60px; transform: rotate(-8deg); }
header.hero .corner.tr { bottom: 30px; right: -70px; transform: rotate(10deg); }

/* hero cards (Dine In / Order / Araku) */
.hero-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.5vw, 30px);
  max-width: 1120px; margin: -clamp(70px, 9vw, 120px) auto 0;
  margin-top: clamp(-130px, -9vw, -70px);
  padding: 0 20px; position: relative; z-index: 5;
}
.hcard {
  background: #fff; border-radius: var(--card-r); box-shadow: var(--shadow);
  padding: 26px 26px 0; text-align: left; overflow: hidden; position: relative;
  display: flex; flex-direction: column; min-height: 240px;
  transition: transform .18s ease;
}
.hcard:hover { transform: translateY(-4px); }
.hcard h3 { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.05; }
.hcard .hsub { font-weight: 800; letter-spacing: 0.02em; color: var(--muted); font-size: 14px; text-transform: uppercase; margin-top: 4px; }
.hcard .htag {
  display: inline-block; margin-top: 12px; background: #FDEBD2; color: #8a5a10;
  font-weight: 800; font-size: 13px; padding: 5px 12px; border-radius: 8px; width: fit-content;
}
.hcard .hphoto {
  position: absolute; right: -18px; bottom: -18px; width: 46%; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover; box-shadow: 0 10px 26px rgba(0,0,0,0.18);
}
.hcard .harrow {
  margin-top: 16px; margin-bottom: 20px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--saffron); color: #241a05; display: grid; place-items: center;
  font-size: 20px; font-weight: 800; border: none; transition: transform .15s;
}
.hcard:hover .harrow { transform: translateX(4px); }

/* ---------- Sections ---------- */
.section { padding: clamp(48px, 7vw, 84px) clamp(18px, 4vw, 44px); max-width: 1160px; margin: 0 auto; }
.section.tint { background: var(--green-tint); max-width: none; }
.section.tint > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.sec-head { text-align: center; margin-bottom: 34px; }
.sec-head h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4vw, 42px); color: var(--green-deep); }
.sec-head p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* category circles */
.circles { display: flex; gap: clamp(14px, 3vw, 34px); justify-content: center; flex-wrap: wrap; }
.circle { text-align: center; width: 108px; border: none; background: none; }
.circle img {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px;
  border: 3px solid #fff; box-shadow: var(--shadow); transition: transform .15s ease;
}
.circle:hover img { transform: scale(1.06); }
.circle span { font-weight: 800; font-size: 13.5px; color: var(--ink); }

/* feature rows / highlights */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.hl {
  background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow);
}
.hl .ico { font-size: 26px; }
.hl h4 { font-family: var(--display); font-size: 19px; margin: 8px 0 4px; }
.hl p { color: var(--muted); font-size: 14.5px; }

/* hours strip */
.hours-strip {
  display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap;
  background: var(--green); color: #fff; border-radius: 18px; padding: 18px 26px;
  font-weight: 700;
}
.hours-strip .dot { opacity: 0.5; }

/* footer */
footer {
  background: var(--green-deep); color: #E8F0E8; margin-top: 60px;
  padding: 46px clamp(18px, 4vw, 44px) 28px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; max-width: 1160px; margin: 0 auto 26px; }
.foot-grid h5 { font-family: var(--display); color: #fff; font-size: 18px; margin-bottom: 10px; }
.foot-grid p, .foot-grid a { font-size: 14.5px; opacity: 0.85; display: block; margin-bottom: 6px; }
.foot-grid a:hover { opacity: 1; color: #F6D9A0; }
.foot-base { max-width: 1160px; margin: 0 auto; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 16px; font-size: 13px; opacity: 0.7; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Login ---------- */
.login-layer { position: fixed; inset: 0; z-index: 200; display: none; }
.login-layer.open { display: block; }
.login-backdrop { position: absolute; inset: 0; background: rgba(15, 30, 20, 0.55); backdrop-filter: blur(4px); }
.login-card {
  position: relative; max-width: 420px; margin: 8vh auto; background: #fff;
  border-radius: 24px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
.login-card h3 { font-family: var(--display); font-size: 26px; color: var(--green-deep); }
.login-card .lsub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 800; font-size: 13px; margin-bottom: 5px; color: var(--ink); }
.field input {
  width: 100%; padding: 12px 14px; border: 1.6px solid #DCE3DA; border-radius: 12px;
  font-size: 15px; font-family: inherit; background: var(--ivory);
}
.field input:focus { outline: none; border-color: var(--green); background: #fff; }
.login-msg { min-height: 20px; font-size: 13.5px; color: var(--nonveg); font-weight: 700; margin-bottom: 6px; }
.login-msg.ok { color: var(--veg); }
.userchip {
  display: none; align-items: center; gap: 10px; background: var(--green-tint);
  padding: 7px 8px 7px 14px; border-radius: 999px; font-weight: 800; font-size: 14px;
}
.userchip.on { display: inline-flex; }
.userchip button { border: none; background: var(--green); color: #fff; border-radius: 999px; padding: 6px 13px; font-weight: 800; }

/* ---------- AI concierge ---------- */
.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 150;
  width: 60px; height: 60px; border-radius: 50%; border: none;
  background: linear-gradient(145deg, var(--green), var(--green-deep));
  color: #fff; font-size: 26px; box-shadow: 0 12px 30px rgba(10, 60, 35, 0.4);
  transition: transform .15s;
}
.ai-fab:hover { transform: scale(1.07); }
.ai-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 151; width: min(380px, calc(100vw - 32px));
  height: min(560px, 70vh); background: #fff; border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35); display: none; flex-direction: column; overflow: hidden;
}
.ai-panel.open { display: flex; }
.ai-head { background: var(--green); color: #fff; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; }
.ai-head b { font-family: var(--display); font-size: 18px; }
.ai-head button { background: none; border: none; color: #fff; font-size: 20px; }
.ai-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--ivory); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; }
.msg.bot { background: #EDF2ED; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.user { background: var(--green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg .dish-chip {
  display: flex; align-items: center; gap: 10px; background: #fff; margin-top: 8px;
  border-radius: 12px; padding: 8px; box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}
.msg .dish-chip img { width: 52px; height: 52px; border-radius: 9px; object-fit: cover; }
.msg .dish-chip .n { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.msg .dish-chip .p { color: var(--saffron-deep); font-weight: 800; font-size: 13px; }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #E8E8E0; background: #fff; }
.ai-input input { flex: 1; border: 1.6px solid #DCE3DA; border-radius: 999px; padding: 10px 16px; font-size: 14.5px; font-family: inherit; }
.ai-input input:focus { outline: none; border-color: var(--green); }
.ai-input button { border: none; background: var(--saffron); border-radius: 999px; width: 44px; font-size: 17px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; max-width: 90%; }
.chip {
  border: 1.5px solid var(--green); background: #fff; color: var(--green-deep);
  border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; font-family: inherit;
  cursor: pointer; transition: all .15s;
}
.chip:hover { background: var(--green); color: #fff; }

/* ---------- Cart ---------- */
.cart-fab {
  position: fixed; right: 20px; bottom: 92px; z-index: 149; display: none;
  background: var(--saffron); border: none; border-radius: 999px; padding: 12px 20px;
  font-weight: 900; font-size: 15px; color: #241a05; box-shadow: 0 12px 28px rgba(200,130,20,0.4);
}
.cart-fab.on { display: block; }
.cart-panel {
  position: fixed; right: 20px; bottom: 92px; z-index: 152; width: min(360px, calc(100vw - 32px));
  max-height: 70vh; background: #fff; border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  display: none; flex-direction: column; overflow: hidden;
}
.cart-panel.open { display: flex; }
.cart-head { background: var(--green-deep); color: #fff; padding: 14px 18px; font-family: var(--display); display: flex; justify-content: space-between; }
.cart-items { overflow-y: auto; padding: 12px 16px; flex: 1; }
.cart-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px dashed #E4E0D2; font-size: 14.5px; }
.cart-item .rm { border: none; background: none; color: var(--nonveg); font-weight: 900; }
.cart-total { display: flex; justify-content: space-between; font-weight: 900; padding: 12px 16px 4px; font-size: 16px; }
.cart-actions { padding: 12px 16px 16px; }
.cart-actions .btn { width: 100%; justify-content: center; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 11px 22px; border-radius: 999px;
  font-weight: 800; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 300;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* reveal-on-load for hero only */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
header.hero .rating-pill, header.hero h1, header.hero .sub, header.hero .hero-actions { animation: rise .7s ease both; }
header.hero h1 { animation-delay: .08s; } header.hero .sub { animation-delay: .16s; } header.hero .hero-actions { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 900px) {
  .hero-cards { grid-template-columns: 1fr; max-width: 480px; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- phone compatibility ---------- */
@media (max-width: 640px) {
  .ai-fab { width: 54px; height: 54px; font-size: 23px; right: 14px; bottom: 14px; }
  .cart-fab { right: 14px; }
  .ai-panel {
    right: 8px; left: 8px; width: auto; bottom: 78px;
    height: min(68vh, 540px); border-radius: 18px;
  }
  .ai-log { padding: 12px; }
  .msg { max-width: 92%; font-size: 14px; }
  .msg .dish-chip img { width: 44px; height: 44px; }
  .cart-panel { left: 8px; right: 8px; width: auto; }
  .hero { padding-bottom: clamp(96px, 18vw, 130px); }
  .corner { opacity: 0.55; }
  .books-embed iframe { height: min(72vh, 560px) !important; }
  .circles { gap: 12px; }
  .circle { width: 88px; }
  .circle img { width: 74px; height: 74px; }
  .section { padding-left: 16px; padding-right: 16px; }
}
/* safe-area for notched phones */
@supports (padding: env(safe-area-inset-bottom)) {
  .ai-fab { bottom: calc(14px + env(safe-area-inset-bottom)); }
  .cart-fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(26px + env(safe-area-inset-bottom)); }
}
