:root {
  --maroon: #6b1626;
  --maroon-dark: #3f0b16;
  --gold: #c9973b;
  --gold-light: #f0d79a;
  --cream: #fbf5ea;
  --cream-2: #f4e9d6;
  --ink: #2b1a14;
  --muted: #6e5a4e;
  --radius: 16px;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Mulish', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font: 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--maroon); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; color: var(--maroon-dark); }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700;
  background: var(--gold); color: var(--maroon-dark);
  border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { background: var(--gold-light); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.btn-sm { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; font-size: .9rem; }
.btn-lg { padding: .9rem 1.8rem; font-size: 1.05rem; box-shadow: 0 6px 20px rgb(0 0 0 / .2); }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: .4rem 1rem; background: var(--maroon-dark);
  border-bottom: 1px solid rgb(201 151 59 / .4);
}

.topbar .brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 1.25rem; color: var(--gold-light); text-decoration: none; }

/* Hero */
.hero {
  min-height: 88svh; display: grid; place-items: center; text-align: center;
  padding: 3rem 1rem;
  background:
    linear-gradient(180deg, rgb(43 10 18 / .55), rgb(43 10 18 / .85)),
    url('paati-sweets/hero-sm.webp') center / cover no-repeat;
  color: var(--cream);
}
@media (min-width: 601px) {
  .hero {
    background:
      linear-gradient(180deg, rgb(43 10 18 / .55), rgb(43 10 18 / .85)),
      url('paati-sweets/hero.webp') center / cover no-repeat;
  }
}
.hero-inner { max-width: 640px; }
.hero h1 { font-size: clamp(2.6rem, 12vw, 4.8rem); color: var(--gold-light); margin: .3rem 0; }
.tagline { font-family: var(--serif); font-size: clamp(1.15rem, 5vw, 1.6rem); margin-bottom: 1.8rem; }
.hero-note { margin-top: 1.4rem; font-size: .9rem; opacity: .85; }
.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold);
}
.hero .eyebrow { color: var(--gold-light); }

/* Sections */
.section { padding: 3.5rem 1rem; }
.section.alt { background: var(--cream-2); }
.wrap { max-width: 1100px; margin: 0 auto; }
.section h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); margin: .2rem 0 .6rem; }
.lead { color: var(--muted); margin-bottom: 1.6rem; }

.festive {
  background: radial-gradient(circle at top, var(--maroon) 0%, var(--maroon-dark) 75%);
  color: var(--cream);
}
.festive h2 { color: var(--gold-light); }
.festive .lead { color: var(--cream-2); }

/* Cards */
.grid { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgb(63 11 22 / .08);
  display: flex; flex-direction: column;
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.card h3, .card h4 { font-size: 1.2rem; margin-bottom: .25rem; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; }
.price { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; color: var(--maroon); }
.price small { font-family: var(--sans); font-size: .8rem; font-weight: 600; color: var(--muted); }
.card-feature { border: 2px solid var(--gold); }
.card { transition: transform .3s ease, box-shadow .3s ease; }
.card img { transition: transform .5s ease; }
@media (hover: hover) {
  .card:hover { transform: translateY(-5px); box-shadow: 0 14px 34px rgb(63 11 22 / .18), 0 0 0 1px var(--gold); }
  .card:hover img { transform: scale(1.05); }
}

/* Festive banner */
.festive-banner {
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  color: var(--maroon-dark); text-align: center;
  font-size: .85rem; font-weight: 700; padding: .5rem 1rem;
}

/* Diya */
.diya { width: 56px; height: 56px; margin: 0 auto .6rem; filter: drop-shadow(0 0 12px rgb(246 196 83 / .6)); }
.flame { transform-origin: 32px 32px; animation: flicker 2.4s ease-in-out infinite; }
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0); }
  30% { transform: scale(1.05, .95) rotate(-2deg); }
  60% { transform: scale(.96, 1.04) rotate(2deg); }
}

/* Rangoli divider under section headings */
.section h2::after {
  content: ''; display: block; width: 160px; height: 24px; margin-top: .5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 24'%3E%3Cg fill='none' stroke='%23c9973b' stroke-width='1.5'%3E%3Cpath d='M0 12h56M104 12h56'/%3E%3Ccircle cx='80' cy='12' r='4'/%3E%3Cpath d='M80 2l4 6-4 4-4-4zM80 22l4-6-4-4-4 4zM70 12l6-4 4 4-4 4zM90 12l-6-4-4 4 4 4z'/%3E%3C/g%3E%3Cg fill='%23c9973b'%3E%3Ccircle cx='62' cy='12' r='2'/%3E%3Ccircle cx='98' cy='12' r='2'/%3E%3C/g%3E%3C/svg%3E") left center / contain no-repeat;
}

/* Faint rangoli mandalas in the Diwali section corners */
.festive { position: relative; overflow: hidden; }
.festive::before, .festive::after {
  content: ''; position: absolute; width: 320px; height: 320px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%23f0d79a' stroke-opacity='.22' stroke-width='1'%3E%3Ccircle cx='100' cy='100' r='96' stroke-dasharray='2 6'/%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='100' cy='100' r='60' stroke-dasharray='12 6'/%3E%3Ccircle cx='100' cy='100' r='40'/%3E%3Ccircle cx='100' cy='100' r='20' stroke-dasharray='3 3'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat;
}
.festive::before { top: -140px; right: -140px; }
.festive::after { bottom: -140px; left: -140px; }
.festive .wrap { position: relative; z-index: 1; }
.badge {
  align-self: flex-start; background: var(--cream-2); color: var(--maroon);
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .2rem .6rem; border-radius: 999px; margin-bottom: .5rem;
}
.cat {
  font-size: 1.35rem; margin: 2.2rem 0 1rem; padding-bottom: .4rem;
  border-bottom: 2px solid var(--gold);
}
.cat:first-of-type { margin-top: 1.2rem; }

/* Steps */
.steps { list-style: none; display: grid; gap: 1rem; margin-top: 1.4rem; }
.steps li {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; padding: 1.2rem; border-radius: var(--radius);
}
.num {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--maroon); color: var(--gold-light);
  font-family: var(--serif); font-size: 1.2rem; font-weight: 700;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .2rem; }
.steps p { color: var(--muted); }

/* About */
.about { max-width: 720px; }
.about p { font-size: 1.05rem; }
.pills { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.pills li {
  border: 1px solid var(--gold); color: var(--maroon);
  padding: .35rem .9rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
}

/* Contact */
.contact-grid { display: grid; gap: 1rem; margin: 1.4rem 0 2rem; }
.info { background: #fff; padding: 1.2rem; border-radius: var(--radius); }
.info h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.info small { color: var(--muted); }

/* Footer */
.footer { background: var(--maroon-dark); color: var(--cream-2); text-align: center; padding: 2rem 1rem; }
.footer .brand { font-family: var(--serif); font-size: 1.4rem; color: var(--gold-light); margin-bottom: .3rem; }
.footer p { font-size: .9rem; }

/* Larger screens */
@media (min-width: 600px) {
  .grid, .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4.5rem 1.5rem; }
}
@media (min-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card, .card img { transition: none; }
  .flame { animation: none; }
}

/* ---------- Order system ---------- */
.qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--gold); border-radius: 999px; background: var(--cream);
}
.qty button {
  width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  font-size: 1.3rem; line-height: 1; color: var(--maroon); border-radius: 50%;
}
.qty button:hover { background: var(--cream-2); }
.qty button:focus-visible { outline: 2px solid var(--maroon); outline-offset: -2px; }
.qty output { min-width: 3.6rem; text-align: center; font-weight: 700; font-size: .9rem; }
.card.in-cart { box-shadow: 0 0 0 2px var(--gold), 0 8px 22px rgb(63 11 22 / .14); }
.card.in-cart .qty { background: var(--gold); }
.card.in-cart .qty button { color: var(--maroon-dark); }

.order-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; padding: .95rem 1.1rem calc(.95rem + env(safe-area-inset-bottom));
  border: 0; border-top: 2px solid var(--gold); cursor: pointer;
  background: var(--maroon-dark); color: var(--cream); font: 600 1rem var(--sans);
  box-shadow: 0 -6px 20px rgb(0 0 0 / .2);
}
.order-bar[hidden] { display: none; }
.order-bar strong { color: var(--gold-light); }
.order-bar-cta { background: var(--gold); color: var(--maroon-dark); padding: .45rem 1rem; border-radius: 999px; font-weight: 700; }
body:has(.order-bar:not([hidden])) { padding-bottom: 76px; }

.order-dialog {
  width: min(560px, 100% - 1.5rem); max-height: 92svh; margin: auto;
  border: 0; border-radius: var(--radius); padding: 0;
  background: var(--cream); color: var(--ink);
}
.order-dialog::backdrop { background: rgb(43 10 18 / .65); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.dlg-head h2 { font-size: 1.6rem; }
.dlg-close { border: 0; background: none; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--maroon); width: 44px; height: 44px; margin-right: -.5rem; }

.summary { list-style: none; border-top: 1px solid var(--cream-2); }
.summary li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--cream-2); }
.summary small { display: block; color: var(--muted); font-size: .82rem; }
.summary-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.25rem; margin: .7rem 0 1.2rem; color: var(--maroon-dark); }

.field { display: block; margin-bottom: 1rem; font-weight: 700; font-size: .92rem; border: 0; }
.field legend { margin-bottom: .3rem; }
.field input:not([type=radio]), .field textarea {
  display: block; width: 100%; margin-top: .3rem; padding: .7rem .8rem;
  font: 400 1rem var(--sans); color: var(--ink);
  border: 1.5px solid #d9c6a5; border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--maroon); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.radio { display: flex; align-items: center; gap: .5rem; font-weight: 400; min-height: 44px; }
.radio input { accent-color: var(--maroon); width: 1.15rem; height: 1.15rem; }
.radio small { color: var(--muted); }
.hint { color: var(--muted); font-size: .85rem; margin: -.5rem 0 1.2rem; }
.btn-block { display: block; width: 100%; border: 0; cursor: pointer; font-family: var(--sans); }

@media (min-width: 900px) {
  .order-bar { left: auto; right: 1.5rem; bottom: 1.5rem; width: auto; border: 2px solid var(--gold); border-radius: 999px; }
  body:has(.order-bar:not([hidden])) { padding-bottom: 0; }
}

body:has(.order-dialog[open]) { overflow: hidden; }
.order-dialog form { padding: 1.3rem; }
