/* ═══════════════════════ Amma's Grind ═══════════════════════ */

:root {
  /* Official brand palette — see brand & product reference */
  --cream: #fdf4e3;      /* Cream: background */
  --cream-2: #f5e9cb;
  --ink: #26331a;
  --ink-soft: #7a5c2a;   /* Earth Brown: secondary text */
  --gold: #c5a25c;       /* Turmeric Gold: accent */
  --gold-deep: #a57f35;
  --gold-soft: #e4cd97;
  --green: #2d5016;      /* Forest Green: primary */
  --green-deep: #1f3a0e;
  --leaf: #2d5016;
  --leaf-deep: #1f3a0e;
  --mint: #e8f5d4;       /* Mint Wash: highlight */
  --card: #fffbf0;
  --shadow-soft: 0 20px 40px -18px rgba(61, 54, 22, 0.28);
  --shadow-deep: 0 35px 70px -25px rgba(61, 54, 22, 0.45);
  --radius: 24px;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 85% -5%, #f3e5c0 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, var(--mint) 0%, transparent 55%),
    var(--cream);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.section { max-width: 1160px; margin: 0 auto; padding: clamp(4rem, 9vw, 7.5rem) 1.5rem 0; }
.section__title { text-align: center; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--mint);
  border: 1px solid rgba(45, 80, 22, 0.25);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}
.eyebrow--center { display: table; margin-left: auto; margin-right: auto; }

/* ─────────── Buttons ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  will-change: transform;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--primary {
  background: linear-gradient(135deg, #3d6b1f 0%, var(--green) 100%);
  color: #fff;
  box-shadow: 0 10px 25px -10px rgba(45, 80, 22, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover { box-shadow: 0 18px 35px -12px rgba(45, 80, 22, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.25); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.6);
  border: 1.5px solid rgba(84, 48, 12, 0.18);
  color: var(--ink);
  backdrop-filter: blur(6px);
}
.btn--light { background: #fff; color: var(--green); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.45); }
.btn--outline-light { border: 1.5px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn--big { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn--small { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ─────────── Nav ─────────── */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: min(1160px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 1rem 0.6rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 251, 242, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(84, 48, 12, 0.1);
  box-shadow: 0 12px 30px -18px rgba(84, 48, 12, 0.35);
  z-index: 100;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.nav--scrolled { background: rgba(255, 251, 242, 0.92); box-shadow: 0 16px 38px -18px rgba(84, 48, 12, 0.5); }

.nav__logo { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.nav__logo em { color: var(--gold-deep); font-style: italic; }
.nav__logo-mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--gold-soft), var(--gold-deep));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 6px 14px -6px rgba(201, 111, 34, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: rotate(-6deg);
}
.nav__links { display: flex; gap: 1.6rem; font-weight: 500; font-size: 0.95rem; color: var(--ink-soft); }
.nav__links a { position: relative; transition: color 0.2s; }
.nav__links a:hover { color: var(--green); }

/* ─────────── Hero ─────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 7.5rem 1.5rem 4rem;
}
.hero__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: 100%;
}
.hero__title { font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 600; letter-spacing: -0.015em; }
.hero__title-accent {
  background: linear-gradient(120deg, var(--gold) 20%, var(--gold-deep) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero__sub { margin-top: 1.25rem; font-size: 1.12rem; color: var(--ink-soft); max-width: 34rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2rem; }

.hero__badges { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.4rem; }
.badge3d {
  background: var(--card);
  border: 1px solid rgba(84, 48, 12, 0.08);
  border-radius: 16px;
  padding: 0.65rem 1.05rem;
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge3d:hover { transform: translateY(-4px) rotate(-1deg); }
.badge3d strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold-deep); }
.badge3d span { font-size: 0.8rem; color: var(--ink-soft); }

/* floating blobs */
.hero__blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; pointer-events: none; }
.hero__blob--1 { width: 420px; height: 420px; top: -80px; right: -60px; background: #ecd9a8; animation: drift 14s ease-in-out infinite alternate; }
.hero__blob--2 { width: 320px; height: 320px; bottom: -40px; left: -80px; background: var(--mint); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(30px, 24px) scale(1.08); } }

/* 3D scene */
.hero__scene { perspective: 1100px; position: relative; width: 100%; }
.scene__stage svg { width: 100%; height: auto; aspect-ratio: 520 / 320; }
.scene__stage {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.scene__layer { position: relative; }
.scene__layer--dosa, .scene__layer--chutney { position: absolute; inset: 0; }
.scene__layer--dosa { filter: drop-shadow(0 18px 22px rgba(120, 60, 10, 0.35)); }
.scene__layer--leaf { filter: drop-shadow(0 30px 30px rgba(40, 70, 40, 0.35)); }

.scene__shadow {
  width: 70%; height: 34px;
  margin: -6px auto 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(84, 48, 12, 0.3), transparent 70%);
  filter: blur(6px);
}

.scene__steam { position: absolute; top: 2%; left: 42%; display: flex; gap: 18px; }
.scene__steam span {
  width: 7px; height: 56px;
  border-radius: 999px;
  background: linear-gradient(to top, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85));
  filter: blur(2px);
  animation: steam 3s ease-in-out infinite;
}
.scene__steam span:nth-child(2) { animation-delay: 0.8s; height: 68px; }
.scene__steam span:nth-child(3) { animation-delay: 1.6s; height: 48px; }
@keyframes steam {
  0% { transform: translateY(12px) scaleY(0.7); opacity: 0; }
  40% { opacity: 0.9; }
  100% { transform: translateY(-26px) scaleY(1.15); opacity: 0; }
}

.hero__scroll-hint {
  position: absolute;
  bottom: 1.4rem; left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0.7;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }

/* ─────────── Marquee ─────────── */
.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--cream);
  padding: 0.85rem 0;
  transform: rotate(-1.2deg) scale(1.02);
  box-shadow: var(--shadow-deep);
}
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 24s linear infinite; }
.marquee__track span { font-weight: 500; letter-spacing: 0.05em; white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─────────── Tilt cards (3D) ─────────── */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.18s ease-out, box-shadow 0.3s ease;
  will-change: transform;
}
.tilt__glare {
  position: absolute; inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.55), transparent 45%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 2;
}
.tilt:hover .tilt__glare { opacity: 1; }

/* ─────────── Story ─────────── */
.story {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.story__card {
  background: linear-gradient(150deg, #fbf1dc, #eddfb4);
  border-radius: var(--radius);
  border: 1px solid rgba(84, 48, 12, 0.1);
  box-shadow: var(--shadow-deep);
  aspect-ratio: 4 / 4.6;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.story__art { text-align: center; padding: 2rem; transform: translateZ(40px); }
.story__emoji { font-size: 5.5rem; display: block; margin-bottom: 1.2rem; filter: drop-shadow(0 14px 16px rgba(84, 48, 12, 0.3)); }
.story__art p { font-family: var(--font-display); font-size: 1.2rem; color: var(--ink-soft); font-style: italic; }
.story__copy h2 { margin-bottom: 1.2rem; }
.story__copy p { color: var(--ink-soft); margin-bottom: 1.1rem; max-width: 34rem; }
.story__copy .btn { margin-top: 0.6rem; }

/* ─────────── Products ─────────── */
.products__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
  perspective: 1400px;
  max-width: 820px;
  margin: 0 auto;
}
.product {
  background: var(--card);
  border: 1px solid rgba(84, 48, 12, 0.09);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.product:hover { box-shadow: var(--shadow-deep); }
.product--featured {
  background: linear-gradient(165deg, #fffbf0 0%, #f6ecce 100%);
  border: 1.5px solid rgba(197, 162, 92, 0.55);
}
.product__flag {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%) translateZ(30px);
  background: linear-gradient(135deg, var(--gold), var(--gold-deep));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  box-shadow: 0 8px 16px -6px rgba(165, 127, 53, 0.7);
}
.product__icon {
  font-size: 2.6rem;
  width: 74px; height: 74px;
  display: grid; place-items: center;
  border-radius: 20px;
  background: var(--cream-2);
  box-shadow: inset 0 2px 6px rgba(84, 48, 12, 0.12), 0 10px 18px -10px rgba(84, 48, 12, 0.3);
  margin-bottom: 1.2rem;
  transform: translateZ(35px);
}
.product h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
.product > p { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1rem; }
.product ul { list-style: none; margin-bottom: 1.4rem; }
.product ul li { font-size: 0.9rem; color: var(--ink-soft); padding: 0.28rem 0 0.28rem 1.5rem; position: relative; }
.product ul li::before { content: "✦"; position: absolute; left: 0.2rem; color: var(--gold); }
.product__price { margin-top: auto; margin-bottom: 1.1rem; display: flex; align-items: baseline; gap: 0.4rem; }
.product__price strong { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.product__price span { color: var(--ink-soft); font-size: 0.9rem; }
.products__note { text-align: center; color: var(--ink-soft); margin-top: 2.4rem; font-size: 0.98rem; }

/* ─────────── Process ─────────── */
.process__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.step {
  background: var(--card);
  border: 1px solid rgba(84, 48, 12, 0.09);
  border-radius: var(--radius);
  padding: 1.8rem 1.4rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
}
.step:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: var(--shadow-deep); }
.step__num {
  position: absolute;
  top: 1.1rem; right: 1.2rem;
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(45, 80, 22, 0.2);
  font-weight: 700;
}
.step__emoji { font-size: 2.2rem; margin-bottom: 0.9rem; filter: drop-shadow(0 8px 10px rgba(84, 48, 12, 0.25)); }
.step h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--ink-soft); }

/* ─────────── Inside the pack ─────────── */
.details__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.detail {
  background: var(--card);
  border: 1px solid rgba(61, 54, 22, 0.09);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.detail h3 { font-size: 1.15rem; margin-bottom: 0.9rem; }
.detail h3 span { font-family: var(--font-body); font-size: 0.76rem; color: var(--ink-soft); font-weight: 400; }
.detail p { color: var(--ink-soft); font-size: 0.95rem; }
.detail__note { margin-top: 0.7rem; font-weight: 500; color: var(--green); }
.detail table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.detail td { padding: 0.4rem 0; border-bottom: 1px dashed rgba(61, 54, 22, 0.18); color: var(--ink-soft); }
.detail tr:last-child td { border-bottom: none; }
.detail td:last-child { text-align: right; font-weight: 500; color: var(--ink); }
.detail ul { list-style: none; }
.detail ul li { font-size: 0.92rem; color: var(--ink-soft); padding: 0.3rem 0 0.3rem 1.5rem; position: relative; }
.detail ul li::before { content: "✦"; position: absolute; left: 0.2rem; color: var(--gold); }

/* ─────────── Reviews ─────────── */
.reviews__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; perspective: 1400px; }
.review {
  background: var(--card);
  border: 1px solid rgba(84, 48, 12, 0.09);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-soft);
}
.review blockquote { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; color: var(--ink); margin-bottom: 1.2rem; transform: translateZ(25px); }
.review figcaption { font-weight: 600; font-size: 0.92rem; }
.review figcaption span { color: var(--ink-soft); font-weight: 400; }

/* ─────────── Order CTA ─────────── */
.order { padding: clamp(4.5rem, 9vw, 7.5rem) 1.5rem; }
.order__card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background:
    radial-gradient(500px 240px at 80% -20%, rgba(197, 162, 92, 0.3), transparent),
    linear-gradient(150deg, #2d5016, #14260a);
  color: var(--cream);
  border-radius: 32px;
  padding: clamp(2.8rem, 6vw, 4.5rem) clamp(1.6rem, 5vw, 4rem);
  box-shadow: var(--shadow-deep), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.order__card h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 1rem; }
.order__card h2 span { color: var(--gold-soft); font-style: italic; }
.order__card > p { color: rgba(253, 244, 227, 0.82); max-width: 30rem; margin: 0 auto 2rem; }
.order__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.order__small { margin-top: 1.8rem; font-size: 0.85rem; color: rgba(253, 244, 227, 0.6); }

/* ─────────── Footer ─────────── */
.footer {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
}
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__brand strong { font-family: var(--font-display); font-size: 1.1rem; }
.footer__brand p { font-size: 0.85rem; color: var(--ink-soft); }
.footer__links { display: flex; gap: 1.5rem; font-size: 0.9rem; color: var(--ink-soft); }
.footer__links a:hover { color: var(--green); }
.footer__copy { width: 100%; text-align: center; font-size: 0.8rem; color: rgba(122, 92, 42, 0.7); margin-top: 0.6rem; }

/* ─────────── Reveal on scroll ─────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ─────────── Responsive ─────────── */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta, .hero__badges { justify-content: center; }
  .hero__scene { max-width: 480px; margin: 0 auto; }
  .story { grid-template-columns: 1fr; }
  .story__card { max-width: 420px; margin: 0 auto; }
  .products__grid, .reviews__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .details__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .process__grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .process__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 6.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
