/* ==========================================================================
   THE BAKERS FARM (TBF) - Main Design System & Global Styles
   Palette extracted directly from the official brand logo:
   Deep Muted Blue-Grey & Warm Gold / Cream
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,500&display=swap');

:root {
  /* Brand Core Colors */
  --color-brand-dark: #1b282f;
  --color-brand-primary: #2b3d47;
  --color-brand-slate: #3b525e;
  --color-brand-slate-light: #4c6877;
  --color-brand-slate-border: rgba(212, 175, 103, 0.22);

  /* Gold & Warm Tones */
  --color-gold-primary: #d4af67;
  --color-gold-light: #edd8a6;
  --color-gold-pale: #fbf7ee;
  --color-gold-deep: #b38b3c;
  --color-gold-gradient: linear-gradient(135deg, #f3deaf 0%, #d4af67 50%, #b38b3c 100%);
  --color-gold-glow: rgba(212, 175, 103, 0.28);

  /* Neutral Light Backdrops */
  --color-bg-light: #faf7f2;
  --color-bg-card: #ffffff;
  --color-bg-subtle: #f4efe6;
  --color-text-dark: #1a2327;
  --color-text-muted: #5e707a;
  --color-text-light: #ffffff;
  --color-text-light-muted: #c3d1d9;

  /* Dietary Indicators (FSSAI Standard) */
  --color-veg: #228b22;
  --color-non-veg: #c42727;
  --color-egg: #e67e22;

  /* Typography */
  --font-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Shadows & Elevations */
  --shadow-sm: 0 4px 12px rgba(27, 40, 47, 0.05);
  --shadow-md: 0 10px 28px rgba(27, 40, 47, 0.09);
  --shadow-lg: 0 20px 48px rgba(27, 40, 47, 0.16);
  --shadow-gold: 0 8px 24px rgba(212, 175, 103, 0.25);
  --shadow-card-hover: 0 16px 36px rgba(43, 61, 71, 0.14);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-light);
  color: var(--color-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

button, input, select, textarea {
  font-family: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
  transition: var(--transition);
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 960px;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.2;
}

.gold-text {
  background: var(--color-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-gradient-text {
  background: linear-gradient(135deg, #edd8a6 0%, #d4af67 50%, #f7e6be 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold-deep);
  margin-bottom: 0.8rem;
}

.section-eyebrow::before,
.section-eyebrow::after {
  content: "";
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--color-gold-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  color: var(--color-brand-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* Dark Section Variant */
.section-dark {
  background-color: var(--color-brand-primary);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
}

.section-dark .section-title {
  color: var(--color-gold-light);
}

.section-dark .section-subtitle {
  color: var(--color-text-light-muted);
}

.section-dark .section-eyebrow {
  color: var(--color-gold-light);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-gold-gradient);
  color: var(--color-brand-dark);
  box-shadow: var(--shadow-gold);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(212, 175, 103, 0.4);
  filter: brightness(1.05);
}

.btn-secondary {
  background: transparent;
  color: var(--color-gold-light);
  border: 1.5px solid var(--color-gold-primary);
}

.btn-secondary:hover {
  background: rgba(212, 175, 103, 0.12);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-dark {
  background: var(--color-brand-primary);
  color: var(--color-gold-light);
  border: 1px solid var(--color-brand-slate-border);
}

.btn-dark:hover {
  background: var(--color-brand-slate);
  color: #ffffff;
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
  font-weight: 600;
}

.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.35);
}

/* Food Diet Indicator Badges (FSSAI) */
.diet-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid;
  border-radius: 4px;
  background: #ffffff;
  position: relative;
  flex-shrink: 0;
}

.diet-indicator.veg {
  border-color: var(--color-veg);
}

.diet-indicator.veg::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-veg);
}

.diet-indicator.non-veg {
  border-color: var(--color-non-veg);
}

.diet-indicator.non-veg::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 7px solid var(--color-non-veg);
}

.diet-indicator.egg {
  border-color: var(--color-egg);
}

.diet-indicator.egg::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-egg);
}

/* Badges & Notices */
.badge-conflict {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  margin-top: 0.4rem;
}

.badge-tbd {
  display: inline-block;
  background: rgba(212, 175, 103, 0.15);
  color: var(--color-gold-deep);
  border: 1px dashed var(--color-gold-primary);
  font-size: 0.75rem;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.badge-signature {
  background: var(--color-gold-gradient);
  color: var(--color-brand-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.placeholder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 103, 0.12);
  color: var(--color-gold-deep);
  border: 1px dashed var(--color-gold-primary);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99999;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--color-brand-dark);
  color: #ffffff;
  padding: 0.9rem 1.4rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-gold-primary);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  animation: slideInToast 0.35s ease forwards;
  max-width: 360px;
}

@keyframes slideInToast {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
