/* Sabi Organics: home page only. Shared components live in style.css and modern.css. */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  overflow: hidden;
  padding: calc(var(--header-total) + var(--s7)) 0 var(--s8);
  border-radius: 0 0 36px 36px;
  background: linear-gradient(165deg, #1D4A11 0%, #12300B 46%, #0B1F06 100%);
  color: var(--footer-text);
}

.hero :focus-visible { outline-color: var(--surface); }

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero__blob {
  position: absolute;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__blob--green {
  top: -18%;
  right: -8%;
  width: min(72vw, 740px);
  background: #3F9A1B;
  opacity: 0.55;
}

.hero__blob--gold {
  bottom: -32%;
  left: -14%;
  width: min(64vw, 580px);
  background: var(--haldi);
  opacity: 0.34;
}

.hero__mesh {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 62% 42%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 62% 42%, #000 15%, transparent 75%);
}

.hero__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(520px circle at var(--mx, 72%) var(--my, 30%), rgba(246, 190, 79, 0.18), transparent 65%);
}

.hero__leaf {
  position: absolute;
  display: block;
  color: var(--mint);
  opacity: 0.4;
}

.hero__leaf svg { width: 100%; height: 100%; fill: currentColor; }
.hero__leaf--1 { top: 22%; left: 4%; width: 22px; height: 22px; rotate: 20deg; }
.hero__leaf--2 { top: 70%; left: 44%; width: 16px; height: 16px; rotate: -30deg; opacity: 0.3; }
.hero__leaf--3 { top: 16%; left: 52%; width: 14px; height: 14px; rotate: 70deg; color: var(--gold); }
.hero__leaf--4 { top: 82%; left: 12%; width: 26px; height: 26px; rotate: -12deg; color: var(--gold); opacity: 0.3; }
.hero__leaf--5 { top: 58%; right: 3%; width: 20px; height: 20px; rotate: 110deg; }

.hero__inner {
  position: relative;
  display: grid;
  gap: var(--s8);
  align-items: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s5);
  max-width: 38rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
}

.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--mint);
}

.hero__title {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(2.6rem, 1.3rem + 4.4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.hero__title .line {
  display: block;
  overflow: hidden;
  margin-bottom: -0.12em;
  padding-bottom: 0.16em;
}

.hero__title .line > span { display: inline-block; }

.hero__accent { color: var(--gold); }

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__accent {
    background: linear-gradient(100deg, #FBD98A 0%, #F6BE4F 30%, #BDE58F 62%, #FBD98A 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.hero__lead {
  max-width: 34rem;
  margin: 0;
  color: rgba(243, 233, 210, 0.9);
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  font-weight: 500;
  line-height: 1.55;
}

.hero__actions { width: 100%; }

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }

.hero__chips .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: rgba(189, 229, 143, 0.18);
  color: var(--mint);
}

.hero__call { margin: 0; color: rgba(243, 233, 210, 0.8); font-size: 0.975rem; font-weight: 500; }
.hero__call a { color: var(--gold); font-weight: 700; text-underline-offset: 0.22em; }
.hero__call a:hover { color: #FFFFFF; }

/* Stage with the two packs */
.hero__stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin-inline: auto;
  aspect-ratio: 1 / 1.02;
}

.hero__halo {
  position: absolute;
  inset: 4% 2% 8% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 190, 79, 0.42), rgba(63, 154, 27, 0.3) 45%, transparent 70%);
  filter: blur(12px);
}

.hero__ring {
  position: absolute;
  inset: 0 -2% 3% -2%;
  border: 1.5px dashed rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.hero__pack { position: absolute; width: 57%; }
.hero__pack--moringa { top: 5%; left: 1%; z-index: 1; rotate: -7deg; }
.hero__pack--haldi { top: 16%; right: 1%; z-index: 2; rotate: 6deg; }

.hero__pack .arch {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: 0 44px 70px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.hero__pack .arch img { display: block; width: 100%; height: auto; }

.hero__tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  background: rgba(11, 31, 6, 0.68);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, 0.75);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.hero__tag .icon { width: 18px; height: 18px; color: var(--mint); }
.hero__tag--a { bottom: 9%; left: -2%; }
.hero__tag--b { top: 1%; right: -1%; }
.hero__tag--b .icon { color: var(--gold); }

/* Seal */
.seal {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 3;
  width: 84px;
  height: 84px;
  pointer-events: none;
  filter: drop-shadow(0 14px 18px rgba(0, 0, 0, 0.45));
}

.seal svg { display: block; width: 100%; height: 100%; overflow: visible; }
.seal__disc { fill: var(--surface); }
.seal__ring { fill: none; stroke: var(--forest); stroke-width: 2; }
.seal__ring--inner { stroke-width: 1; }

.seal__text {
  fill: var(--forest);
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.seal__leaf {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero__scroll { display: none; }

@media (min-width: 900px) {
  .hero { min-height: min(100svh, 900px); padding-bottom: var(--s9); }

  .hero__inner {
    grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
    gap: var(--s7);
  }

  .hero__copy { max-width: none; }

  .hero__stage { max-width: 540px; margin-inline: auto 0; }
  .hero__tag { padding: 12px 18px 12px 14px; font-size: 0.9rem; }
  .hero__tag--a { left: -6%; }
  .seal { width: 112px; height: 112px; right: -2%; }

  .hero__scroll {
    position: absolute;
    bottom: 26px;
    left: 50%;
    display: block;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
  }

  .hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--gold);
  }
}

/* Hero motion */
@keyframes line-up { from { transform: translateY(108%); } }
@keyframes pack-in { from { opacity: 0; translate: 0 80px; scale: 0.86; } }
@keyframes pop-in { from { opacity: 0; scale: 0.5; } }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 14px -26px; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes dot-pulse { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes scroll-cue { 0% { transform: translateY(0); opacity: 1; } 70%, 100% { transform: translateY(14px); opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero__blob--green { animation: aurora-a 16s ease-in-out infinite; }
  .hero__blob--gold { animation: aurora-b 20s ease-in-out infinite; }
  .hero__leaf { animation: drift 9s ease-in-out infinite; }
  .hero__leaf--2 { animation-duration: 12s; animation-delay: -3s; }
  .hero__leaf--3 { animation-duration: 10s; animation-delay: -5s; }
  .hero__leaf--4 { animation-duration: 14s; animation-delay: -2s; }
  .hero__leaf--5 { animation-duration: 11s; animation-delay: -7s; }
  .hero__dot::after { animation: dot-pulse 2s ease-out infinite; }
  .hero__accent { animation: shimmer 7s linear infinite; }
  .hero__ring { animation: spin 80s linear infinite; }
  .hero__pack--moringa .arch { animation: floaty 7s ease-in-out infinite; }
  .hero__pack--haldi .arch { animation: floaty 8.5s ease-in-out -3s infinite; }
  .hero__tag--a { animation: floaty 6s ease-in-out -1s infinite; }
  .hero__tag--b { animation: floaty 7.5s ease-in-out -4s infinite; }
  .seal svg { animation: spin 36s linear infinite; }
  .hero__scroll span { animation: scroll-cue 1.8s ease-in-out infinite; }

  html.js .hero__copy > * { animation: rise-in 0.95s var(--ease) both; }
  html.js .hero__copy > :nth-child(3) { animation-delay: 0.3s; }
  html.js .hero__copy > :nth-child(4) { animation-delay: 0.4s; }
  html.js .hero__copy > :nth-child(5) { animation-delay: 0.5s; }
  html.js .hero__copy > :nth-child(6) { animation-delay: 0.58s; }
  html.js .hero__copy > .hero__title { animation: none; }
  html.js .hero__title .line > span { animation: line-up 1.05s var(--ease) 0.08s both; }
  html.js .hero__title .line:nth-child(2) > span { animation-delay: 0.2s; }
  html.js .hero__accent { animation: line-up 1.05s var(--ease) 0.2s both, shimmer 7s linear 1.3s infinite; }
  html.js .hero__pack { animation: pack-in 1.25s var(--ease) 0.25s both; }
  html.js .hero__pack--haldi { animation-delay: 0.42s; }
  html.js .seal { animation: pop-in 0.8s var(--ease-spring) 1.05s both; }
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: var(--s6);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
}

.marquee__item {
  margin-right: var(--s5);
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 1.1rem + 2.6vw, 3.2rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

@supports (-webkit-text-stroke: 1px black) {
  .marquee__item--outline {
    color: transparent;
    -webkit-text-stroke: 1.2px var(--leaf);
  }
}

.marquee__sep { display: inline-flex; margin-right: var(--s5); color: var(--haldi); }
.marquee__sep .icon { width: clamp(22px, 2.4vw, 34px); height: clamp(22px, 2.4vw, 34px); }

@keyframes marquee { to { transform: translateX(-25%); } }

@media (prefers-reduced-motion: no-preference) {
  .marquee__track { animation: marquee 42s linear infinite; }
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

@media (min-width: 900px) {
  .marquee { padding-block: var(--s7); }
}

/* ---------- Promises ---------- */
.home-promises { padding-top: calc(var(--section-y) * 0.5); }
.home-promises .promise-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }

.home-promises .promise-grid .promise {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s4);
  text-align: left;
}

.promise__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }

@media (min-width: 600px) {
  .home-promises .promise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
}

@media (min-width: 1000px) {
  .home-promises .promise-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .home-promises .promise-grid .promise { flex-direction: column; padding: var(--s6) var(--s5); }
}

/* ---------- Section heads with a link ---------- */
.home-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s4) var(--s6);
  margin-bottom: var(--s6);
}

.home-head .section-head { margin-bottom: 0; }
.home-head__link { margin-bottom: 6px; }

@media (min-width: 900px) {
  .home-head { margin-bottom: var(--s7); }
}

/* ---------- Range ---------- */
.home-range { gap: var(--s6); align-items: stretch; }

/* ---------- In your kitchen ---------- */
.home-kitchen { gap: var(--s5); }

.home-kitchen .block {
  justify-content: flex-end;
  gap: var(--s4);
  min-height: 300px;
  padding: var(--s6);
}

.home-kitchen__name {
  margin: 0;
  color: inherit;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.home-kitchen__text {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.use-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.use-chips li {
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 0.4s var(--ease-spring), background-color 0.3s ease;
}

.block--haldi .use-chips li { border-color: rgba(30, 42, 23, 0.22); background: rgba(255, 255, 255, 0.36); }
.use-chips li:hover { transform: translateY(-3px) scale(1.04); background: rgba(255, 255, 255, 0.3); }
.block--haldi .use-chips li:hover { background: rgba(255, 255, 255, 0.55); }
.home-kitchen .text-link { align-self: flex-start; }

@media (min-width: 900px) {
  .home-kitchen .block { min-height: 380px; padding: var(--s7); }
}

/* ---------- Printed on the pack ---------- */
.home-pack { align-items: center; gap: var(--s7); }
.home-pack__photo .banner-crop { margin: 0; }
.home-pack__copy .section-head { margin-bottom: var(--s5); }

.home-pack__ledgers {
  display: grid;
  gap: var(--s4);
}

.home-pack__ledger {
  padding: var(--s5);
  border: 1px solid rgba(23, 56, 15, 0.08);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.home-pack__ledger:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.home-pack__name { margin: 0 0 var(--s3); font-size: inherit; line-height: 1; }
.home-pack__ledger .ledger { margin: 0; }
.home-pack__ledger .ledger--list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.home-pack .wellness-note { margin: var(--s5) 0 0; }

@media (min-width: 600px) {
  .home-pack__ledgers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .home-pack { gap: var(--s8); }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: var(--s5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s6);
  border: 1px solid rgba(23, 56, 15, 0.08);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.55s var(--ease), box-shadow 0.55s var(--ease);
}

.step:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.step__num {
  color: var(--leaf);
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.4rem + 2.4vw, 4.4rem);
  font-weight: 600;
  font-variation-settings: "SOFT" 50, "WONK" 0;
  letter-spacing: -0.04em;
  line-height: 0.9;
  transition: color 0.4s ease, transform 0.5s var(--ease-spring);
}

@supports (-webkit-text-stroke: 1px black) {
  .step__num { color: transparent; -webkit-text-stroke: 1.5px var(--leaf); }
  .step:hover .step__num { color: var(--leaf); }
}

.step:hover .step__num { transform: translateX(6px); }
.step__title { margin: var(--s2) 0 0; }
.step__text { margin: 0; color: var(--muted); }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
  .step { padding: var(--s7) var(--s6); }
}

/* ---------- FAQ ---------- */
.home-faq__split { align-items: start; }
.home-faq__head .section-head { margin-bottom: var(--s5); }

@media (min-width: 900px) {
  .home-faq__head { position: sticky; top: calc(var(--header-total) + 28px); }
}

/* ---------- Bulk ---------- */
.bulk-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--s7) var(--s5);
  border-radius: 36px;
  background: linear-gradient(135deg, #F9DB97 0%, #F2BC4E 52%, #E8920A 100%);
  box-shadow: 0 40px 70px -36px rgba(232, 146, 10, 0.9);
  color: var(--ink);
}

.bulk-card::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -22%;
  z-index: -1;
  width: min(60%, 420px);
  aspect-ratio: 398 / 255;
  background: url("../../img/logo-mark.png") no-repeat center / contain;
  opacity: 0.12;
}

.bulk-card__ring {
  position: absolute;
  top: -46%;
  right: -12%;
  z-index: -1;
  width: min(80%, 520px);
  aspect-ratio: 1;
  border: 2px dashed rgba(30, 42, 23, 0.22);
  border-radius: 50%;
}

.bulk-card__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s4);
  max-width: 34rem;
}

.bulk-card .label { color: var(--forest); }
.bulk-card h2,
.bulk-card p { margin: 0; }
.bulk-card h2 { color: var(--ink); }
.bulk-card .btn-row { width: 100%; margin-top: var(--s3); }
.bulk-card .btn--secondary { border-color: var(--ink); }
.bulk-card .btn--secondary:hover { background: rgba(255, 255, 255, 0.5); }

@media (prefers-reduced-motion: no-preference) {
  .bulk-card__ring { animation: spin 90s linear infinite; }
}

@media (min-width: 900px) {
  .bulk-card { padding: var(--s9) var(--s8); }
}
