/* =========================================================
   Purvi Kitchens — Pre-order site
   Design tokens
   ========================================================= */
:root {
  --saffron: #FF9933;
  --saffron-dark: #B5600E;
  --cream: #FEE6A1;
  --cream-light: #FFF8E8;
  --espresso: #231F20;
  --leaf: #4A7856;
  --leaf-dark: #34573D;
  --danger: #B3261E;

  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'Space Mono', 'Courier New', monospace;

  --radius: 16px;
  --shadow: 0 8px 24px rgba(35, 31, 32, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--espresso);
  background: var(--cream-light);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--font-display); margin: 0 0 0.4em; }

a { color: inherit; }

button { font-family: var(--font-body); cursor: pointer; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--espresso);
  outline-offset: 2px;
}

/* ---------- Kolam dot-grid texture (signature motif, used sparingly) ---------- */
.kolam-bg {
  background-image: radial-gradient(circle, rgba(35,31,32,0.16) 1.6px, transparent 1.6px);
  background-size: 22px 22px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: var(--cream-light);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--saffron-dark);
  letter-spacing: 0.02em;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark span.sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--espresso);
  opacity: 0.65;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--saffron) 0%, var(--saffron-dark) 100%);
  color: var(--cream-light);
  padding: 56px 24px 72px;
}
.hero-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  background: rgba(35, 31, 32, 0.18);
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.08;
  margin-bottom: 16px;
}
.hero p.lede {
  font-size: 1.1rem;
  max-width: 46ch;
  opacity: 0.95;
  margin-bottom: 28px;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--espresso);
  color: var(--cream-light);
  border: none;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.hero-cta:hover { transform: translateY(-2px); }
.hero-cta-main {
  font-size: 1.15rem;
  padding: 18px 32px;
  background: var(--espresso);
}

/* ---------- Signature element: the cutoff "thali" countdown ring ---------- */
.thali-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.thali {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(35,31,32,0.14) 1.6px, transparent 1.6px) 0 0/16px 16px,
    var(--cream-light);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.thali::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 3px dashed rgba(35,31,32,0.18);
}
.thali-ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.thali-ring circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}
.thali-ring .track { stroke: rgba(35,31,32,0.08); }
.thali-ring .progress { stroke: var(--saffron-dark); transition: stroke-dashoffset 1s linear; }
.thali-center {
  position: relative;
  text-align: center;
  font-family: var(--font-mono);
  color: var(--espresso);
}
.thali-center .label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  display: block;
  margin-bottom: 4px;
}
.thali-center .time {
  font-size: 1.5rem;
  font-weight: 700;
}
.thali-caption {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cream-light);
  opacity: 0.9;
  text-align: center;
}

/* ---------- Sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.7rem; color: var(--saffron-dark); }
.section-head .meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ---------- Empty / closed states ---------- */
.state-card {
  background: #fff;
  border: 1px solid rgba(35,31,32,0.08);
  border-radius: var(--radius);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.state-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.state-card p { opacity: 0.75; margin: 0; }

/* ---------- Week intro + day tabs ---------- */
.week-intro {
  font-size: 0.95rem;
  opacity: 0.75;
  margin: -8px 0 18px;
  max-width: 60ch;
}
.day-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.day-tab {
  flex: 0 0 auto;
  border: 1.5px solid rgba(35,31,32,0.15);
  background: #fff;
  color: var(--espresso);
  border-radius: 999px;
  padding: 10px 18px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}
.day-tab.active {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #fff;
}

.mode-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
}
.mode-tab {
  flex: 1;
  max-width: 220px;
  border: 2px solid rgba(35,31,32,0.15);
  background: #fff;
  color: var(--espresso);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}
.mode-tab.active {
  background: var(--espresso);
  border-color: var(--espresso);
  color: #fff;
}

/* ---------- Veg-only filter ---------- */
.veg-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(74,120,86,0.4);
  background: #fff;
  color: var(--leaf-dark);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.veg-filter-btn.active { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.veg-locked {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--leaf-dark);
  background: rgba(74,120,86,0.12);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

/* ---------- Menu ---------- */
.day-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--saffron);
}
.day-heading h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--saffron-dark);
  margin: 0;
}

.tag-chip { font-family: var(--font-mono); font-size: 0.72rem; background: var(--cream); padding: 3px 9px; border-radius: 999px; display: inline-block; }

.badge-soldout, .badge-low {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  vertical-align: middle;
  margin-left: 6px;
  white-space: nowrap;
}
.badge-soldout { background: rgba(179,38,30,0.12); color: var(--danger); }
.badge-low { background: rgba(255,153,51,0.15); color: var(--saffron-dark); }
.menu-card.sold-out { opacity: 0.6; }
.menu-card.sold-out .dish-img { filter: grayscale(0.6); }

.summary-date-heading {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--leaf-dark);
  margin: 14px 0 4px;
}
.summary-date-heading:first-child { margin-top: 0; }


.menu-category { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; color: var(--leaf-dark); margin: 28px 0 12px; }
.menu-category:first-child { margin-top: 0; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.menu-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.menu-card .dish-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  background: var(--cream-light);
}
.menu-card-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.menu-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.menu-card p.desc { margin: 0; font-size: 0.88rem; opacity: 0.7; min-height: 1.2em; }
.menu-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.menu-card .price { font-family: var(--font-mono); font-weight: 700; color: var(--saffron-dark); font-size: 1.05rem; }

.qty-stepper { display: flex; align-items: center; gap: 12px; background: var(--cream-light); border-radius: 999px; padding: 4px; }
.qty-stepper button {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--saffron); color: #fff; font-size: 1.3rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty-stepper .qty-value { font-family: var(--font-mono); min-width: 1.6em; text-align: center; font-size: 1.05rem; }

/* ---------- Combo builder ---------- */
.combo-card { border: 2px solid var(--saffron); }
.combo-controls { display: flex; flex-direction: column; gap: 10px; }
.veg-toggle { display: flex; gap: 8px; }
.veg-btn {
  flex: 1;
  border: 1.5px solid rgba(35,31,32,0.15);
  background: var(--cream-light);
  border-radius: 999px;
  padding: 10px 8px;
  font-size: 0.85rem;
  font-weight: 700;
}
.veg-btn.active { border-color: var(--saffron-dark); background: var(--cream); }
.combo-select {
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(35,31,32,0.15);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream-light);
  width: 100%;
}
.combo-empty { font-size: 0.85rem; opacity: 0.65; margin: 4px 0; }
.combo-add-btn { margin-top: 4px; }

/* ---------- Postcode checker ---------- */
.postcode-check {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 12px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.field { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 180px; }
.field label { font-size: 0.8rem; font-weight: 600; opacity: 0.75; }
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1.5px solid rgba(35,31,32,0.15);
  font-family: var(--font-body);
  font-size: 1.05rem;
  background: var(--cream-light);
}
.field input:focus, .field textarea:focus { border-color: var(--saffron-dark); outline: none; }
.btn {
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-weight: 700;
  font-size: 1.05rem;
  background: var(--espresso);
  color: #fff;
  width: 100%;
}
.btn.secondary { background: var(--saffron); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.status-msg { font-size: 0.9rem; margin-top: 4px; }
.status-msg.ok { color: var(--leaf-dark); }
.status-msg.bad { color: var(--danger); }

/* ---------- Checkout ---------- */
.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px; align-items: start; }
.checkout-form, .order-summary {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.order-summary h3 { font-size: 1.1rem; margin-bottom: 14px; }
.summary-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 0.92rem; padding: 6px 0; border-bottom: 1px dashed rgba(35,31,32,0.12); }
.summary-line-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.summary-remove {
  border: none;
  background: rgba(179,38,30,0.1);
  color: var(--danger);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-total { display: flex; justify-content: space-between; font-weight: 700; font-family: var(--font-mono); font-size: 1.1rem; padding-top: 14px; margin-top: 6px; color: var(--saffron-dark); }
.summary-empty { opacity: 0.6; font-size: 0.9rem; }

@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .thali-wrap { order: -1; }
  .checkout-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cta { transition: none; }
  .thali-ring .progress { transition: none; }
}

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 4px 20px;
}
.faq-item summary {
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--saffron-dark);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  margin: 0 0 18px;
  opacity: 0.78;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* ---------- How it works (3 simple steps) ---------- */
.how-it-works {
  background: var(--cream);
  padding: 20px 24px;
}
.how-it-works-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 90px;
  text-align: center;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--saffron-dark);
  background: #fff;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-icon { font-size: 1.8rem; line-height: 1; }
.step-text { font-size: 0.82rem; font-weight: 600; color: var(--espresso); }
.step-arrow { font-size: 1.3rem; color: var(--saffron-dark); opacity: 0.5; }

/* ---------- Sticky "order now" bar (mobile-friendly persistent CTA) ---------- */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--espresso);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(35,31,32,0.35);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.sticky-cta.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

.field-hint {
  font-size: 0.78rem;
  opacity: 0.6;
  margin-top: -2px;
}

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 32px 24px 48px;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--espresso);
  color: #fff;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
