/* Shivaan Café — premium hill-station café aesthetic */
:root {
  --ink: #1a1310;
  --bean: #2d211b;
  --crema: #f7f1e8;
  --milk: #fffdf9;
  --gold: #b98a2f;
  --gold-deep: #966f1f;
  --gold-soft: #f0e2c3;
  --sage: #6f7d5c;
  --line: rgba(26, 19, 16, 0.1);
  --text: #241a14;
  --muted: #7a6a5e;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(26, 19, 16, 0.18);
  --font-d: "Fraunces", Georgia, serif;
  --font-b: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--crema);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { font-family: var(--font-d); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.gold { color: var(--gold); }
.eyebrow {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold-deep); margin-bottom: 10px;
}

/* Announcement bar */
.announce {
  background: var(--ink); color: var(--gold-soft);
  text-align: center; font-size: 0.85rem; font-weight: 600;
  padding: 9px 16px;
}
.announce[hidden] { display: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 241, 232, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled { border-color: var(--line); box-shadow: 0 4px 20px -14px rgba(26,19,16,0.35); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-d); font-size: 1.25rem; font-weight: 700;
}
.brand-name { font-family: var(--font-d); font-size: 1.15rem; font-weight: 600; }
.brand-name em { font-style: normal; color: var(--gold); }
.nav-links { margin-left: auto; display: flex; gap: 22px; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 0.92rem; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.cart-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--ink); color: var(--crema);
  transition: transform 0.15s;
}
.cart-btn:hover { transform: scale(1.05); }
.cart-count {
  position: absolute; top: -5px; right: -5px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--gold); color: #fff;
  font-size: 0.72rem; font-weight: 700;
  display: grid; place-items: center;
}
.cart-count[hidden] { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-gold { background: var(--gold); color: #fff; box-shadow: 0 8px 20px -8px rgba(185, 138, 47, 0.55); }
.btn-gold:hover { background: var(--gold-deep); }
.btn-ghost { border: 1.5px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Hero */
.hero { padding: clamp(40px, 7vw, 84px) 0 clamp(50px, 8vw, 90px); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 48ch; margin: 18px 0 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  list-style: none; display: flex; gap: 22px; flex-wrap: wrap;
  margin-top: 30px; font-size: 0.85rem; font-weight: 600; color: var(--muted);
}
.hero-trust li { display: flex; align-items: center; gap: 7px; }
.hero-trust li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }

/* Hero art: hills + sun + cup */
.hero-art {
  position: relative; height: 420px; border-radius: 28px;
  background: linear-gradient(180deg, #f4e7cd 0%, #efe0c0 38%, #e7d3ad 100%);
  overflow: hidden; box-shadow: var(--shadow);
}
.sun {
  position: absolute; top: 44px; right: 56px; width: 92px; height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f6d98a, #e2b04f 70%);
  box-shadow: 0 0 60px 18px rgba(240, 204, 120, 0.55);
}
.ridge { position: absolute; left: 0; right: 0; bottom: 0; }
.ridge-back {
  height: 210px;
  background: #b9a377;
  clip-path: polygon(0 55%, 14% 30%, 28% 48%, 44% 18%, 60% 42%, 76% 22%, 90% 40%, 100% 28%, 100% 100%, 0 100%);
  opacity: 0.7;
}
.ridge-front {
  height: 165px;
  background: #7c6a49;
  clip-path: polygon(0 62%, 16% 38%, 34% 58%, 50% 30%, 68% 55%, 84% 34%, 100% 50%, 100% 100%, 0 100%);
}
.cup { position: absolute; left: 50%; bottom: 88px; transform: translateX(-50%); }
.cup-body {
  width: 120px; height: 86px;
  background: linear-gradient(180deg, #fdfaf3, #efe4cf);
  border-radius: 10px 10px 46px 46px;
  box-shadow: inset 0 -8px 0 rgba(26,19,16,0.06), 0 16px 26px -12px rgba(26,19,16,0.4);
  position: relative; z-index: 2;
}
.cup-body::before {
  content: ""; position: absolute; top: 10px; left: 12px; right: 12px; height: 16px;
  border-radius: 50%; background: radial-gradient(ellipse, #6b4423, #3f2614);
}
.cup-handle {
  position: absolute; right: -30px; top: 16px; width: 42px; height: 50px;
  border: 11px solid #efe4cf; border-left: 0;
  border-radius: 0 30px 30px 0; z-index: 1;
}
.saucer {
  width: 168px; height: 20px; margin: 8px auto 0;
  background: #e6d7ba; border-radius: 50%;
  box-shadow: 0 10px 18px -8px rgba(26,19,16,0.35);
}
.steam {
  position: absolute; top: -34px; width: 9px; height: 34px;
  border-radius: 8px; background: rgba(255,255,255,0.75);
  filter: blur(1px); opacity: 0;
  animation: steam 2.8s ease-in-out infinite;
}
.s1 { left: 30px; }
.s2 { left: 56px; animation-delay: 0.9s; height: 40px; top: -40px; }
.s3 { left: 82px; animation-delay: 1.7s; }
@keyframes steam {
  0% { transform: translateY(8px) scaleY(0.6); opacity: 0; }
  35% { opacity: 0.8; }
  100% { transform: translateY(-26px) scaleY(1.15); opacity: 0; }
}

/* Sections */
.sec-head { max-width: 620px; margin-bottom: 34px; }
.sec-sub { color: var(--muted); margin-top: 10px; }
.menu { padding: 30px 0 80px; }
.steps { padding: 70px 0; background: var(--milk); border-block: 1px solid var(--line); }
.visit { padding: 80px 0; }

/* Category pills */
.pills {
  position: sticky; top: 66px; z-index: 30;
  display: flex; gap: 10px; overflow-x: auto;
  padding: 12px 0; margin-bottom: 18px;
  background: linear-gradient(180deg, var(--crema) 76%, transparent);
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto; padding: 9px 18px; border-radius: 999px;
  background: var(--milk); border: 1px solid var(--line);
  font-weight: 600; font-size: 0.88rem; color: var(--muted);
  transition: all 0.18s;
}
.pill:hover { border-color: var(--gold); color: var(--text); }
.pill.active { background: var(--ink); border-color: var(--ink); color: var(--crema); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--milk); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.18s, box-shadow 0.18s;
  animation: rise 0.5s ease both;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card-media {
  height: 110px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold-soft), #e8d5ab);
  font-family: var(--font-d); font-size: 2.4rem; font-weight: 700; color: var(--gold-deep);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-size: 1.12rem; }
.card p {
  font-size: 0.86rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.4em;
}
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 800; font-size: 1.05rem; }
.add-btn {
  padding: 8px 16px; border-radius: 999px;
  background: var(--ink); color: var(--crema);
  font-weight: 700; font-size: 0.82rem;
  transition: background 0.15s;
}
.add-btn:hover { background: var(--gold); }
.stepper { display: inline-flex; align-items: center; gap: 2px; background: var(--ink); border-radius: 999px; color: var(--crema); }
.stepper button { width: 34px; height: 34px; display: grid; place-items: center; font-weight: 800; color: var(--crema); }
.stepper button:hover { color: var(--gold); }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; font-size: 0.9rem; }
.card .unavail { font-size: 0.78rem; color: var(--muted); font-style: italic; }

/* Skeleton + states */
.skeleton {
  grid-column: 1 / -1;
  height: 320px; border-radius: var(--radius);
  background: linear-gradient(100deg, #efe6d6 40%, #f7f0e3 50%, #efe6d6 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.state { text-align: center; padding: 60px 20px; color: var(--muted); }
.state-title { font-family: var(--font-d); font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }
.state .btn { margin-top: 16px; }
.paused {
  margin-top: 26px; padding: 16px 20px; border-radius: 14px;
  background: var(--gold-soft); border: 1px solid rgba(185,138,47,0.35);
  font-size: 0.92rem; text-align: center;
}

/* Steps */
.step-grid { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step-grid li { background: var(--crema); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--ink); color: var(--gold);
  font-family: var(--font-d); font-weight: 700; margin-bottom: 14px;
}
.step-grid h3 { font-size: 1.2rem; margin-bottom: 6px; }
.step-grid p { font-size: 0.9rem; color: var(--muted); }

/* Visit */
.visit-in { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.visit-addr { font-size: 1.2rem; font-weight: 600; margin: 14px 0 4px; }
.visit-meta { color: var(--muted); margin-bottom: 22px; }
.visit-card {
  background: var(--ink); color: var(--crema);
  border-radius: 24px; padding: 34px; box-shadow: var(--shadow);
}
.visit-card-k { font-family: var(--font-d); font-size: 1.35rem; color: var(--gold); margin-bottom: 12px; }
.visit-card p:nth-child(2) { color: rgba(247,241,232,0.78); font-size: 0.95rem; }
.visit-review {
  display: inline-block; margin-top: 20px; color: var(--gold);
  font-weight: 700; text-decoration: none; font-size: 0.92rem;
}
.visit-review:hover { text-decoration: underline; }

/* Footer */
.foot { background: var(--ink); color: rgba(247,241,232,0.75); padding: 46px 0 34px; }
.foot .brand-name { color: var(--crema); }
.foot-in { display: grid; gap: 22px; }
.foot-tag { font-size: 0.88rem; margin-top: 10px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { color: rgba(247,241,232,0.75); text-decoration: none; font-size: 0.9rem; }
.foot-links a:hover { color: var(--gold); }
.foot-copy { font-size: 0.8rem; color: rgba(247,241,232,0.45); border-top: 1px solid rgba(247,241,232,0.12); padding-top: 20px; }

/* Drawer */
.overlay {
  position: fixed; inset: 0; background: rgba(26,19,16,0.5);
  z-index: 50; animation: fade 0.2s ease;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(420px, 100vw);
  background: var(--milk); display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -20px 0 50px -20px rgba(26,19,16,0.4);
}
.drawer.open { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 1.3rem; }
.icon-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  color: var(--muted); font-size: 1rem;
}
.icon-btn:hover { background: var(--crema); color: var(--text); }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px 22px; }
.line { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.line-info { flex: 1; min-width: 0; }
.line-info strong { display: block; font-size: 0.93rem; }
.line-info span { font-size: 0.8rem; color: var(--muted); }
.line-price { font-weight: 700; font-size: 0.92rem; }
.drawer-foot { padding: 18px 22px 24px; border-top: 1px solid var(--line); background: var(--crema); }
.tot-row { display: flex; justify-content: space-between; font-size: 0.93rem; padding: 4px 0; }
.tot-row.disc { color: var(--sage); font-weight: 600; }
.tot-row.grand { font-size: 1.1rem; font-weight: 800; padding-top: 10px; margin-top: 6px; border-top: 1px dashed var(--line); }
.drawer-note { text-align: center; font-size: 0.76rem; color: var(--muted); margin-top: 10px; }
.empty-cart { text-align: center; color: var(--muted); padding: 60px 10px; }
.empty-cart p:first-child { font-family: var(--font-d); font-size: 1.2rem; color: var(--text); margin-bottom: 4px; }

/* Modal */
.modal {
  position: fixed; inset: 0; z-index: 70;
  display: grid; place-items: center; padding: 18px;
  background: rgba(26,19,16,0.55); animation: fade 0.2s ease;
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative; width: min(440px, 100%);
  background: var(--milk); border-radius: 24px; padding: 32px 28px;
  box-shadow: 0 30px 70px -20px rgba(26,19,16,0.5);
  animation: pop 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.modal-x { position: absolute; top: 14px; right: 14px; }
.modal-sub { color: var(--muted); font-size: 0.92rem; margin: 6px 0 20px; }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 0.95rem; transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field .err, .form-err { display: block; color: #b4402e; font-size: 0.78rem; font-style: normal; margin-top: 5px; }
.checkout-tot {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--crema); border-radius: 12px; padding: 13px 16px;
  margin: 6px 0 16px; font-size: 0.92rem;
}
.checkout-tot strong { font-size: 1.1rem; }

/* Success */
.success-mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--sage); color: #fff; font-size: 1.8rem; font-weight: 800;
  display: grid; place-items: center; margin: 6px auto 16px;
}
#checkout-success { text-align: center; }
.success-tot {
  display: inline-flex; gap: 18px; background: var(--crema);
  border-radius: 12px; padding: 12px 22px; margin: 10px 0 14px;
  font-weight: 700;
}
.success-pay { color: var(--muted); font-size: 0.88rem; margin-bottom: 20px; }

/* Toast */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 80; background: var(--ink); color: var(--crema);
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.88rem;
  box-shadow: 0 14px 34px -12px rgba(26,19,16,0.55);
  animation: toast-in 0.25s ease;
}
.toast[hidden] { display: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }

/* Responsive */
@media (max-width: 860px) {
  .hero-in, .visit-in { grid-template-columns: 1fr; }
  .hero-art { height: 300px; order: -1; }
  .step-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
