/* ═══════════════════════════════════════════════════════════
   NIDHI'S KITCHEN — Design System
   Authentic · Transparent · Dil Se
   ═══════════════════════════════════════════════════════════ */

:root {
  --cream: #FDF9F3;
  --warm-white: #FFFAF5;
  --deep-brown: #2C2416;
  --body-text: #3D3429;
  --terracotta: #C4733E;
  --terracotta-light: #E8C9A0;
  --sage: #5B7B4E;
  --sage-light: #E8F0E3;
  --clay: #D4956A;
  --border: #E8DCCF;
  --card-bg: #FFFBF6;
  --available-bg: #FDF2E4;
  --available-border: #E8C080;
  --muted: #7A6E5E;
  --muted-light: #9A8E7E;
  --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.04);
  --shadow-md: 0 8px 25px rgba(44, 36, 22, 0.06);
  --shadow-lg: 0 16px 40px rgba(44, 36, 22, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --max-width: 720px;
  --max-width-wide: 960px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream);
  color: var(--body-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────── */
h1, h2, h3, h4, .serif {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  color: var(--deep-brown);
}

h1 { font-size: 2.6rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.5px; }
h2 { font-size: 1.6rem; font-weight: 600; letter-spacing: -0.3px; }
h3 { font-size: 1.2rem; font-weight: 600; }

a { color: var(--terracotta); text-decoration: none; transition: color 0.2s; }
a:hover { color: #A85E2E; }

/* ── Nav ─────────────────────────────────────────────── */
.nav {
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 250, 245, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--deep-brown);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.nav-logo span { color: var(--terracotta); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 1.8rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--body-text);
  font-size: 0.88rem;
  font-weight: 450;
  transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--terracotta); }

.nav-available-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--sage);
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  position: relative;
  top: -1px;
}

/* ── Layout ──────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-wide {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero (recipe pages) ─────────────────────────────── */
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.hero-placeholder {
  width: 100%;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--warm-white);
  text-align: center;
  padding: 2rem;
}

.hero-placeholder .hero-icon {
  font-size: 4.5rem;
  margin-bottom: 0.8rem;
  opacity: 0.65;
}

.hero-placeholder p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  opacity: 0.75;
  max-width: 400px;
}

/* ── Page Header ─────────────────────────────────────── */
.page-header {
  padding: 5rem 1.5rem 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.page-header .subtitle {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Recipe Header ───────────────────────────────────── */
.recipe-header { padding: 3rem 0 1.5rem; }

.category-tag {
  display: inline-block;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--terracotta);
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.recipe-header h1 {
  font-size: 2.6rem;
  margin-bottom: 0.7rem;
}

.recipe-header .subtitle {
  font-size: 1.08rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.7;
}

.recipe-meta {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.meta-item { display: flex; flex-direction: column; }

.meta-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted-light);
  font-weight: 500;
}

.meta-value { font-size: 0.93rem; color: var(--deep-brown); font-weight: 500; }

/* ── Story Section ───────────────────────────────────── */
.story { padding: 2rem 0; font-size: 1.03rem; line-height: 1.85; }
.story p { margin-bottom: 1.2rem; }

.story .highlight {
  border-left: 3px solid var(--terracotta);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--card-bg);
  font-style: italic;
  color: #5C4F3C;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── Process Photo Grid ──────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}

.process-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}

.process-photo .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 0.6rem;
  background: rgba(0,0,0,0.4);
  color: white;
  font-size: 0.78rem;
  text-align: center;
  font-weight: 450;
}

/* ── Ingredients Grid ────────────────────────────────── */
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--deep-brown);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.3px;
}

.ingredients-intro { color: var(--muted); margin-bottom: 1rem; font-size: 0.95rem; }

.ingredients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}

.ingredient-item {
  display: flex;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: var(--card-bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.88rem;
}

.ingredient-name { font-weight: 500; color: var(--deep-brown); }
.ingredient-amount { color: var(--muted); font-weight: 400; }

/* ── Method Steps ────────────────────────────────────── */
.step {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-number {
  flex-shrink: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: var(--terracotta);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'Playfair Display', Georgia, serif;
}

.step-content h3 { font-size: 1.08rem; margin-bottom: 0.25rem; }
.step-content p { color: var(--body-text); line-height: 1.7; }

.step-photo {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-sm);
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #A67B5B;
  font-size: 0.8rem;
  font-style: italic;
}

.step-photo.s1 { background: linear-gradient(135deg, #E8D5B0, #D4A574); }
.step-photo.s2 { background: linear-gradient(135deg, #D4C5A0, #C4B58A); }
.step-photo.s3 { background: linear-gradient(135deg, #C9B896, #B8A67B); }

/* ── Notes Card ──────────────────────────────────────── */
.notes-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  margin: 2rem 0;
}

.notes-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.notes-card ul { list-style: none; padding: 0; }

.notes-card li {
  padding: 0.45rem 0 0.45rem 1.5rem;
  position: relative;
  font-size: 0.93rem;
  line-height: 1.6;
}

.notes-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--terracotta);
  font-weight: bold;
}

/* ── Batch Availability ──────────────────────────────── */
.batch-available {
  background: var(--available-bg);
  border: 1.5px solid var(--available-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 3rem 0 2rem;
  text-align: center;
}

.batch-available .badge {
  display: inline-block;
  background: var(--terracotta);
  color: white;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.3rem 1rem;
  border-radius: 20px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.batch-available h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.batch-available .batch-detail {
  color: #6B5E4E;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.batch-available.sold-out {
  background: #F5F0EB;
  border-color: #E0D5C5;
}

.batch-available.sold-out .badge { background: var(--muted-light); }

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: white;
  text-decoration: none;
  padding: 0.75rem 1.8rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.93rem;
  transition: background 0.2s, transform 0.15s;
}

.whatsapp-btn:hover { background: #1EA851; transform: translateY(-1px); color: white; }

/* ── Try It Yourself ─────────────────────────────────── */
.try-yourself {
  text-align: center;
  padding: 2rem;
  margin: 1rem 0 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.try-yourself p { color: var(--muted); font-size: 0.93rem; font-style: italic; }

/* ── Homepage Hero ───────────────────────────────────── */
.home-hero {
  padding: 6rem 1.5rem 4rem;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
}

.hero-split {
  display: flex;
  align-items: center;
  gap: 4rem;
  max-width: var(--max-width-wide);
  margin: 0 auto;
}

.hero-content {
  flex: 1.2;
  text-align: left;
}

.hero-avatar {
  flex: 1;
  max-width: 480px;
}

.hero-avatar img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.home-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
  color: var(--terracotta);
}

.home-hero .tagline {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.home-hero .hero-desc {
  max-width: 520px;
  margin: 1.5rem 0 2.5rem;
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.8;
}

.home-hero .hero-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* Mobile adjustments */
@media (max-width: 992px) {
  .hero-split {
    flex-direction: column-reverse;
    text-align: center;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .home-hero .hero-desc {
    margin: 1.5rem auto 2.5rem;
  }
  .home-hero .hero-actions {
    justify-content: center;
  }
  .home-hero h1 {
    font-size: 2.8rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.6rem;
  border-radius: 30px;
  font-weight: 550;
  font-size: 0.93rem;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--terracotta);
  color: white;
}

.btn-primary:hover { background: #A85E2E; color: white; transform: translateY(-1px); }

.btn-outline {
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta);
  background: transparent;
}

.btn-outline:hover { background: var(--terracotta); color: white; }

/* ── Category Filter ─────────────────────────────────── */
.category-filter {
  display: flex;
  gap: 0.5rem;
  padding: 2rem 0 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--warm-white);
  color: var(--body-text);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-weight: 450;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--terracotta);
  color: white;
  border-color: var(--terracotta);
}

/* ── Recipe Card Grid ────────────────────────────────── */
.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
  padding: 1rem 0 3rem;
}

.recipe-card {
  background: var(--warm-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.recipe-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.recipe-card-img {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
}

.recipe-card-img .card-category-tag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  background: rgba(255,255,255,0.9);
  color: var(--terracotta);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.25rem 0.7rem;
  border-radius: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.recipe-card-body { padding: 1.2rem; }

.recipe-card-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--deep-brown);
}

.recipe-card-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.75rem;
  color: var(--muted-light);
}

.card-available-tag {
  display: inline-block;
  font-size: 0.7rem;
  background: var(--sage-light);
  color: var(--sage);
  padding: 0.2rem 0.7rem;
  border-radius: 10px;
  margin-top: 0.5rem;
  font-weight: 500;
}

/* ── About Page ──────────────────────────────────────── */
.about-section {
  padding: 2rem 0 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
}

.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--body-text);
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

.philosophy-card {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.philosophy-card .phil-icon { font-size: 2rem; margin-bottom: 0.5rem; }

.philosophy-card h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

.philosophy-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── Available Now Page ──────────────────────────────── */
.available-list { padding: 2rem 0 4rem; }

.available-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  align-items: center;
}

.available-item.new-batch {
  border-color: var(--available-border);
  background: var(--available-bg);
}

.available-item-img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.available-item-info { flex: 1; }

.available-item-info h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.available-item-info .item-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.available-item-info .item-price {
  font-weight: 600;
  color: var(--deep-brown);
  font-size: 1rem;
}

.available-item .whatsapp-btn { white-space: nowrap; font-size: 0.85rem; padding: 0.6rem 1.2rem; }

/* ── Empty State ─────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
}

.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; }

.empty-state h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.empty-state p { color: var(--muted); max-width: 400px; margin: 0 auto 1.5rem; }

/* ── Brand Elements ──────────────────────────────────── */
.avatar-stamp {
  display: inline-block;
  vertical-align: middle;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,0.05);
  margin-right: 6px;
}

.avatar-xs { width: 22px; height: 22px; }
.avatar-sm { width: 36px; height: 36px; }

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.2rem;
}

.footer-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.refund-promise {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(179, 92, 68, 0.05);
  border-radius: 12px;
  color: var(--terracotta);
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  border: 1px dashed rgba(179, 92, 68, 0.2);
}

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  background: var(--cream);
  color: var(--muted-light);
  font-size: 0.85rem;
}

.site-footer .footer-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--deep-brown);
  margin-bottom: 0.4rem;
}

.site-footer a { color: var(--terracotta); }

.site-footer .footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 0.8rem 0;
  flex-wrap: wrap;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 768px) {
  html { font-size: 15px; }

  h1, .recipe-header h1, .page-header h1 { font-size: 2rem; }
  .home-hero h1 { font-size: 2.2rem; }

  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .philosophy-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }

  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.8rem; }

  .step { flex-direction: column; gap: 0.8rem; }
  .recipe-meta { gap: 1rem; }
  .ingredients-grid { grid-template-columns: 1fr; }
  .recipe-grid { grid-template-columns: 1fr; }

  .available-item { flex-direction: column; text-align: center; }
  .available-item-img { width: 80px; height: 80px; }

  .hero-placeholder { height: 35vh; }
  .category-filter { gap: 0.3rem; }
  .filter-btn { font-size: 0.75rem; padding: 0.4rem 0.8rem; }
}

/* ── Print ───────────────────────────────────────────── */
@media print {
  .nav, .batch-available, .whatsapp-btn, .site-footer,
  .category-filter, .recipe-grid, .hero, .home-hero { display: none; }
  body { background: white; color: black; font-size: 13px; }
  .container { max-width: 100%; }
  .step-photo { border: 1px dashed #ccc; background: none; color: #999; }
}
