/* ============================================================
   BALAJI — Home & shared page sections
   ============================================================ */

/* ---------- HERO — asymmetric split, editorial ---------- */
.hero {
  position: relative;
  padding-top: clamp(2.5rem, 5vw, 5rem);
  padding-bottom: clamp(3rem, 6vw, 5.5rem);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -30%; right: -12%;
  width: 55vw; height: 55vw;
  max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(194,161,90,0.16), transparent 62%);
  z-index: -1;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  gap: clamp(2.4rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; }
}
.hero__eyebrow-row {
  display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem);
  line-height: 1.08;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-700);
  padding-bottom: 0.06em;
}
.hero__sub {
  margin-top: 1.6rem;
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 34ch;
  font-weight: 400;
}
.hero__actions { margin-top: 2.2rem; }

/* Hero visual — stacked images + floating stat */
.hero__visual { position: relative; }
.hero__visual-main {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero__visual-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__visual-tag {
  position: absolute;
  left: -6%; bottom: 12%;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 1rem 1.3rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.9rem;
  max-width: 240px;
}
@media (max-width: 520px){ .hero__visual-tag{ left: 4%; } }
.hero__visual-tag .n {
  font-family: var(--font-display);
  font-size: 1.9rem; font-weight: 700; color: var(--green-800);
  line-height: 1;
}
.hero__visual-tag .l { font-size: 0.78rem; color: var(--ink-mute); line-height: 1.3; }
.hero__visual-badge {
  position: absolute;
  top: 6%; right: -4%;
  background: var(--green-800);
  color: var(--paper);
  border-radius: var(--r-pill);
  padding: 0.7rem 1.2rem;
  font-size: 0.78rem; font-weight: 600;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 0.5rem;
}
.hero__visual-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); }

/* ---------- Marquee strip (certifications / capabilities) ---------- */
.marquee {
  border-block: 1px solid var(--sand);
  background: var(--paper-2);
  overflow: hidden;
  padding-block: 1.4rem;
}
.marquee__track {
  display: flex;
  gap: 3rem;
  padding-left: 3rem;
  width: max-content;
  animation: marquee 34s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; flex-wrap: wrap; justify-content: center; }
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 600;
  color: var(--green-700);
  white-space: nowrap;
}
.marquee__item svg { width: 20px; height: 20px; color: var(--gold-600); flex: none; }

/* ---------- Intro / positioning ---------- */
.intro__lead {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2.05rem);
  line-height: 1.28;
  color: var(--ink);
  font-weight: 500;
  max-width: 26ch;
}
.intro__lead b { color: var(--gold-700); font-weight: 600; }
.intro__body p + p { margin-top: 1.1rem; }

/* Stat band */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 2px solid var(--gold-500); padding-top: 1rem; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.7vw, 2.7rem);
  font-weight: 700; color: var(--green-800); line-height: 1;
  display: block;
}
.stat .lbl { font-size: 0.86rem; color: var(--ink-mute); margin-top: 0.5rem; }

/* ---------- Heritage Timeline (SIGNATURE) ---------- */
.heritage { background: var(--green-950); color: rgba(255,255,255,0.8); position: relative; overflow: hidden; }
.heritage::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 85% 15%, rgba(194,161,90,0.10), transparent 45%);
  pointer-events:none;
}
.heritage h2 { color: #fff; }
.heritage .eyebrow { color: var(--gold-300); }
.heritage .lede { color: rgba(255,255,255,0.66); }

.timeline {
  margin-top: 3.5rem;
  position: relative;
  display: grid;
  gap: 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--gold-500), rgba(194,161,90,0.15));
}
@media (min-width: 800px) {
  .timeline::before { left: 50%; transform: translateX(-1px); }
}
.tl-item {
  position: relative;
  padding-left: 3rem;
  padding-block: 1.4rem;
}
@media (min-width: 800px) {
  .tl-item { width: 50%; padding-left: 0; }
  .tl-item:nth-child(odd) { padding-right: 3.5rem; text-align: right; }
  .tl-item:nth-child(even) { margin-left: 50%; padding-left: 3.5rem; }
}
.tl-item::before {
  content: "";
  position: absolute;
  top: 1.9rem; left: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold-500);
  box-shadow: 0 0 0 5px rgba(194,161,90,0.18);
}
@media (min-width: 800px) {
  .tl-item:nth-child(odd)::before { left: auto; right: -8px; }
  .tl-item:nth-child(even)::before { left: -8px; }
}
.tl-year {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700; color: var(--gold-300);
  line-height: 1;
}
.tl-title { color: #fff; font-weight: 700; font-family: var(--font-body); font-size: 1.02rem; margin-top: 0.5rem; }
.tl-desc { font-size: 0.92rem; color: rgba(255,255,255,0.6); margin-top: 0.4rem; }

/* ---------- Product categories grid (bento with rhythm) ---------- */
.cat-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .cat-grid {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 220px;
  }
}
.cat-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  color: #fff;
  display: flex;
  min-height: 220px;
  isolation: isolate;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat-card img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -2;
  transition: transform 0.7s var(--ease);
}
.cat-card:hover img { transform: scale(1.06); }
.cat-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,15,14,0.15) 20%, rgba(13,15,14,0.86) 100%);
}
.cat-card__body {
  margin-top: auto;
  padding: 1.5rem;
}
.cat-card__body h3 { color: #fff; font-size: 1.3rem; }
.cat-card__body p { font-size: 0.85rem; color: rgba(255,255,255,0.82); margin-top: 0.3rem; }
.cat-card__tag {
  position: absolute; top: 1.1rem; left: 1.1rem;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.16); backdrop-filter: blur(6px);
  padding: 0.35em 0.8em; border-radius: var(--r-pill);
  color: #fff;
}
/* bento spans on desktop */
@media (min-width: 1000px) {
  .cat-card--lg { grid-column: span 3; grid-row: span 2; }
  .cat-card--md { grid-column: span 3; }
  .cat-card--sm { grid-column: span 2; }
  .cat-card--wide { grid-column: span 4; }
}

/* ---------- Split feature (nutraceuticals / science) ---------- */
.feature-visual {
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
  aspect-ratio: 5/4;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.feature-list li {
  display: grid; grid-template-columns: auto 1fr; gap: 0.9rem; align-items: start;
}
.feature-list .ic {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--green-100); color: var(--green-700);
  display: grid; place-items: center; flex: none;
}
.feature-list .ic svg { width: 20px; height: 20px; }
.feature-list h4 { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--ink); }
.feature-list p { font-size: 0.9rem; margin-top: 0.15rem; }

/* ---------- Capability / process strip ---------- */
.process {
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
  margin-top: 3rem;
}
@media (min-width: 720px) { .process { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1080px) { .process { grid-template-columns: repeat(4,1fr); } }
.process__step {
  padding: 1.8rem 1.5rem;
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--green-500);
  position: relative;
}
.process__step .k {
  font-family: var(--font-display);
  font-size: 1.1rem; color: var(--gold-700); font-weight: 700;
  display: inline-block; margin-bottom: 0.6rem;
}
.process__step h4 { font-family:var(--font-body); font-size: 1.1rem; color: var(--ink); font-weight: 700; }
.process__step p { font-size: 0.9rem; margin-top: 0.4rem; }

/* ---------- Testimonial / quote ---------- */
.quote {
  background: var(--green-800); color: #fff; border-radius: var(--r-lg);
  padding: clamp(2.5rem, 5vw, 4.5rem);
  position: relative; overflow: hidden;
}
.quote::before {
  content: "\201C";
  position: absolute; top: -0.2em; left: 0.15em;
  font-family: var(--font-display); font-size: 14rem;
  color: rgba(194,161,90,0.18); line-height: 1;
}
.quote__body {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1rem + 1.05vw, 1.75rem);
  line-height: 1.4; font-weight: 500; position: relative;
  max-width: 30ch;
}
.quote__attr { margin-top: 1.8rem; font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.quote__attr b { color: var(--gold-300); font-weight: 700; display: block; font-size: 1rem; }

/* ---------- Global reach / presence ---------- */
.presence {
  display: grid; gap: 0.9rem;
  grid-template-columns: 1fr;
}
/* Sits inside a half-width split column, so cards are horizontal rows:
   label + place on the left, description on the right. No ragged 2-word wraps. */
.presence__card {
  background: var(--surface); border-radius: var(--r-md);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand);
  display: grid; gap: 0.15rem 1.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.presence__card:hover { border-color: var(--green-300); box-shadow: var(--shadow-md); }
@media (min-width: 560px) {
  .presence__card {
    grid-template-columns: minmax(9.5rem, 0.8fr) 1.2fr;
    align-items: baseline;
  }
  .presence__card .tag { grid-column: 1; }
  .presence__card h4  { grid-column: 1; }
  .presence__card p   { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
}
.presence__card .tag { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-700); font-weight: 700; }
.presence__card h4 { font-family:var(--font-body); font-size: 1.02rem; color: var(--ink); font-weight: 600; margin-top: 0.2rem; line-height: 1.25; }
.presence__card p { font-size: 0.85rem; margin-top: 0; color: var(--ink-mute); line-height: 1.5; max-width: none; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: clamp(3rem, 6vw, 5.5rem);
  text-align: center;
}
.cta-band::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(circle at 15% 120%, rgba(194,161,90,0.28), transparent 45%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-band p { color: rgba(255,255,255,0.78); margin-inline: auto; margin-top: 1rem; }
.cta-band .stack-actions { justify-content: center; margin-top: 2rem; }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .lede { margin-top: 1rem; }
.sec-head h2 { margin-top: 0.7rem; }

/* ---------- Certifications ---------- */
.certs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 2.5rem;
}
@media (min-width: 560px) { .certs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .certs { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .certs { grid-template-columns: repeat(6, 1fr); } }

.cert {
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: var(--r-md);
  padding: 1.35rem 1rem 1.1rem;
  display: grid;
  grid-template-rows: 64px auto;
  align-items: center;
  justify-items: center;
  gap: 0.75rem;
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.cert:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-500); }

/* Logo sits in a fixed-height box so wildly different aspect ratios
   (wide FSSC bar vs square USDA seal) still optically align. */
.cert__logo {
  height: 64px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  filter: saturate(0.92);
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.cert:hover .cert__logo { filter: saturate(1.05); transform: scale(1.04); }

.cert__name {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.cert__sub {
  font-size: 0.68rem;
  color: var(--ink-mute);
  line-height: 1.35;
  margin-top: 0.2rem;
  display: block;
}
