/* ============================================================
   TasteFast — Liquid Morph Theme
   css/style.css
   ============================================================ */

:root {
  --turmeric: #F5A623;
  --chilli: #E63946;
  --sage: #52B788;
  --deep: #1A1A2E;
  --mid: #16213E;
  --light: #F8F9FA;
  --cream: #FFF8F0;
  --text-dark: #1A1A2E;
  --sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--text-dark); background: var(--cream); overflow-x: hidden; }
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; }
p { line-height: 1.7; color: #444; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============================================================
   KEYFRAMES
   ============================================================ */

@keyframes morph {
  0%,100% { border-radius: 60% 40% 30% 70%/60% 30% 70% 40%; }
  25%      { border-radius: 30% 60% 70% 40%/50% 60% 30% 60%; }
  50%      { border-radius: 50% 60% 30% 60%/30% 40% 70% 60%; }
  75%      { border-radius: 40% 60% 50% 30%/50% 70% 30% 50%; }
}

@keyframes flow {
  0%   { transform: translateY(0) translateX(0); }
  33%  { transform: translateY(-20px) translateX(10px); }
  66%  { transform: translateY(10px) translateX(-10px); }
  100% { transform: translateY(0) translateX(0); }
}

@keyframes liquid-rise {
  from { clip-path: circle(0% at 50% 100%); }
  to   { clip-path: circle(150% at 50% 100%); }
}

@keyframes wave-text {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes float-blob {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.05); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,0.4); }
  50%       { box-shadow: 0 0 20px 6px rgba(245,166,35,0.25); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ============================================================
   MORPH BLOB
   ============================================================ */

.morph-blob {
  animation: morph 8s ease-in-out infinite;
  overflow: hidden;
}

/* ============================================================
   LIQUID BUTTON
   ============================================================ */

.liquid-btn {
  position: relative;
  overflow: hidden;
  background: var(--turmeric);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--sans);
  font-size: 1rem;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.liquid-btn::before {
  content: '';
  position: absolute;
  width: 300%;
  height: 300%;
  top: -100%;
  left: -100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 60%);
  transform: scale(0);
  transition: transform 0.5s ease;
}

.liquid-btn:hover::before { transform: scale(1); }
.liquid-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245,166,35,0.4); }
.liquid-btn:active { transform: translateY(0); }

.liquid-btn--outline {
  background: transparent;
  border: 2px solid var(--turmeric);
  color: var(--turmeric);
}
.liquid-btn--outline::before {
  background: radial-gradient(circle, rgba(245,166,35,0.2) 0%, transparent 60%);
}
.liquid-btn--outline:hover { background: var(--turmeric); color: white; }

.liquid-btn--chilli { background: var(--chilli); }
.liquid-btn--chilli:hover { box-shadow: 0 8px 30px rgba(230,57,70,0.4); }

.liquid-btn--sage { background: var(--sage); }
.liquid-btn--sage:hover { box-shadow: 0 8px 30px rgba(82,183,136,0.4); }

.liquid-btn--dark { background: var(--deep); }
.liquid-btn--dark:hover { box-shadow: 0 8px 30px rgba(26,26,46,0.4); }

.liquid-btn--sm { padding: 10px 22px; font-size: 0.875rem; }
.liquid-btn--lg { padding: 17px 40px; font-size: 1.05rem; }

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--turmeric);
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}

.navbar-brand img {
  height: 40px;
  width: auto;
}

.navbar-brand span { color: var(--chilli); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--turmeric);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover { color: var(--turmeric); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--turmeric); }

.nav-actions { display: flex; gap: 14px; align-items: center; }

.cart-icon {
  position: relative;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--text-dark);
  transition: color 0.3s;
  text-decoration: none;
}
.cart-icon:hover { color: var(--turmeric); }

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--chilli);
  color: white;
  font-size: 0.62rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- MOBILE NAV ---- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.3s;
}
.mobile-nav a:hover { color: var(--turmeric); }
.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  line-height: 1;
}

/* ============================================================
   WAVY DIVIDER
   ============================================================ */

.wave-divider { width: 100%; overflow: hidden; line-height: 0; }
.wave-divider svg { display: block; width: 100%; }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

.section { padding: 80px 40px; }
.section--dark { background: var(--deep); color: white; }
.section--dark p { color: rgba(255,255,255,0.7); }
.section--mid { background: var(--mid); color: white; }
.section--light { background: var(--light); }

.container { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--turmeric);
  background: rgba(245,166,35,0.12);
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-sub {
  font-size: 1.05rem;
  max-width: 560px;
  margin-bottom: 40px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-left { max-width: 560px; }

.hero-tag {
  display: inline-block;
  background: rgba(245,166,35,0.15);
  color: var(--turmeric);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}

.hero-heading {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  color: var(--text-dark);
}

.wave-word {
  display: inline-block;
  animation: wave-text 2s ease-in-out infinite;
}
.wave-word:nth-child(1) { animation-delay: 0s; }
.wave-word:nth-child(2) { animation-delay: 0.15s; }
.wave-word:nth-child(3) { animation-delay: 0.3s; }
.wave-word:nth-child(4) { animation-delay: 0.45s; }
.wave-word:nth-child(5) { animation-delay: 0.6s; }

.hero-body {
  font-size: 1.08rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-blob-wrap {
  position: relative;
  width: 460px;
  height: 460px;
}

.hero-blob {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--turmeric), #e8860a);
  animation: morph 8s ease-in-out infinite;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob img {
  width: 110%;
  height: 110%;
  object-fit: cover;
}

.floating-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  animation: float-blob 6s ease-in-out infinite;
  pointer-events: none;
}
.floating-blob-1 {
  width: 80px; height: 80px;
  background: rgba(230,57,70,0.3);
  top: -20px; right: -20px;
  animation-delay: 0.5s;
}
.floating-blob-2 {
  width: 50px; height: 50px;
  background: rgba(82,183,136,0.3);
  bottom: 30px; left: -30px;
  animation-delay: 1.2s;
}

/* ============================================================
   GOOEY SECTION
   ============================================================ */

.gooey-section {
  background: var(--deep);
  padding: 100px 40px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.gooey-wrapper {
  position: relative;
  height: 360px;
}

.gooey-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: url(#gooey);
}

.gooey-blob {
  position: absolute;
  animation: morph 8s ease-in-out infinite, float-blob 5s ease-in-out infinite;
}

.gooey-blob-1 {
  width: 200px; height: 200px;
  background: var(--turmeric);
  left: calc(50% - 200px);
  top: 50%;
  transform: translateY(-50%);
  animation-delay: 0s, 0s;
}

.gooey-blob-2 {
  width: 180px; height: 180px;
  background: var(--chilli);
  left: calc(50% - 80px);
  top: 40%;
  transform: translateY(-50%);
  animation-delay: 1.5s, 0.8s;
}

.gooey-blob-3 {
  width: 160px; height: 160px;
  background: var(--sage);
  left: calc(50% + 80px);
  top: 55%;
  transform: translateY(-50%);
  animation-delay: 3s, 1.5s;
}

.gooey-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  pointer-events: none;
}

.gooey-text-overlay h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  text-shadow: 0 2px 24px rgba(0,0,0,0.6);
  white-space: nowrap;
}

.gooey-text-overlay p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  margin-top: 12px;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-decoration: none;
  color: var(--text-dark);
  display: block;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.product-card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f0f0f0;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-img { transform: scale(1.05); }

.product-card-body { padding: 20px; }

.product-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--turmeric);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  letter-spacing: 0.5px;
}
.product-card-badge--chilli { background: var(--chilli); }
.product-card-badge--sage   { background: var(--sage); }

.product-card h3 { font-size: 1.05rem; margin-bottom: 6px; }

.product-card p {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--turmeric);
}

.product-rating {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---- Morph card variant ---- */
.morph-card {
  background: white;
  border-radius: 32px 12px 32px 12px;
  overflow: hidden;
  transition: border-radius 0.5s ease, transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  display: block;
  text-decoration: none;
  color: var(--text-dark);
}
.morph-card:hover {
  border-radius: 12px 32px 12px 32px;
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.process-step { text-align: center; position: relative; }

.process-icon-wrap {
  width: 90px;
  height: 90px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--turmeric), #e8860a);
  animation: morph 8s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.process-step:nth-child(2) .process-icon-wrap {
  background: linear-gradient(135deg, var(--chilli), #c0192a);
  animation-delay: 2s;
}
.process-step:nth-child(3) .process-icon-wrap {
  background: linear-gradient(135deg, var(--sage), #3a9a6a);
  animation-delay: 4s;
}

.process-step h3 { font-size: 1.15rem; margin-bottom: 10px; }
.process-step p  { font-size: 0.92rem; color: #666; max-width: 240px; margin: 0 auto; }

/* ============================================================
   FILTER PILLS
   ============================================================ */

.filter-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }

.filter-pill {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid #ddd;
  background: white;
  color: #666;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.88rem;
}
.filter-pill:hover { border-color: var(--turmeric); color: var(--turmeric); }
.filter-pill.active {
  background: var(--turmeric);
  border-color: var(--turmeric);
  color: white;
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ============================================================
   ORGANIC HERO (inner pages)
   ============================================================ */

.organic-hero {
  background: linear-gradient(135deg, var(--deep), var(--mid));
  padding: 100px 40px 60px;
  position: relative;
  overflow: hidden;
  color: white;
}

.organic-hero-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.organic-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.organic-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
}

.organic-hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.organic-hero-blob {
  position: absolute;
  opacity: 0.12;
}
.organic-hero-blob-1 {
  width: 400px; height: 400px;
  background: var(--turmeric);
  top: -100px; right: -100px;
  animation: morph 8s ease-in-out infinite;
}
.organic-hero-blob-2 {
  width: 300px; height: 300px;
  background: var(--chilli);
  bottom: -80px; right: 200px;
  animation: morph 10s ease-in-out infinite;
  animation-delay: 2s;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--deep);
  color: white;
  padding: 72px 40px 40px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--turmeric);
  margin-bottom: 12px;
}
.footer-brand-name span { color: var(--chilli); }

.footer-tagline {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 20px;
}

.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; color: rgba(255,255,255,0.65); transition: color 0.3s; }
.footer-links a:hover { color: var(--turmeric); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy  { font-size: 0.83rem; color: rgba(255,255,255,0.38); }
.footer-fssai { font-size: 0.78rem; color: rgba(255,255,255,0.28); }

/* ============================================================
   TOAST
   ============================================================ */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--deep);
  color: white;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 500;
  z-index: 9999;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  transition: transform 0.4s cubic-bezier(.175,.885,.32,1.275);
  pointer-events: none;
  white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast .toast-icon { color: var(--turmeric); margin-right: 6px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   MISC
   ============================================================ */

.empty-state {
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}
.empty-state p { font-size: 1.05rem; color: #888; }

.tag-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(245,166,35,0.12);
  color: var(--turmeric);
  margin-right: 6px;
}

.organic-divider {
  height: 3px;
  background: linear-gradient(90deg, var(--turmeric), var(--chilli), var(--sage));
  border-radius: 3px;
  margin: 24px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 24px; }
  .hero-blob-wrap { width: 360px; height: 360px; }
  .hero-left { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .navbar { padding: 14px 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 60px 20px; }
  .organic-hero { padding: 80px 20px 48px; }
  .gooey-section { padding: 60px 20px; }
  .footer { padding: 48px 20px 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .hero-blob-wrap { width: 260px; height: 260px; }
  .gooey-wrapper { height: 280px; }
  .gooey-blob-1 { width: 140px; height: 140px; left: 5%; }
  .gooey-blob-2 { width: 120px; height: 120px; left: 32%; }
  .gooey-blob-3 { width: 110px; height: 110px; left: 60%; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
