/* ==========================================================================
   Miro Biotech — homepage
   Structure mirrors the main site (hero + search, stats, press, featured,
   blends, categories, why-us, ordering, FAQ, closing CTA).
   Load after style.css and product-detail.css.
   ========================================================================== */

/* ---------- header/search ---------- */
.header { position: sticky; top: 0; z-index: 60; }

/* ---------- hero ---------- */
.hero--home { padding: 76px 0 84px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero__copy h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); margin-bottom: .7rem; }
.hero__copy h1 em { font-style: italic; color: var(--teal-bright); }
.hero__sub { color: rgba(255, 255, 255, .74); font-size: 1.03rem; max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }

.hero__search {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-top: 1.7rem;
  max-width: 460px;
  padding: .8rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .75);
  transition: background-color .15s ease, border-color .15s ease;
}
.hero__search:focus-within {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(45, 212, 191, .55);
}
.hero__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: .95rem;
  outline: none;
}
.hero__search input::placeholder { color: rgba(255, 255, 255, .55); }
.hero__search kbd {
  font-family: var(--sans);
  font-size: .72rem;
  padding: .15rem .4rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .7);
}
.hero__art img { width: 100%; border-radius: var(--radius); }

/* live search results */
.hero__results {
  max-width: 460px;
  margin-top: .6rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero__results a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: .6rem .9rem;
  font-size: .88rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.hero__results a:last-child { border-bottom: 0; }
.hero__results a:hover { background: var(--teal-soft); text-decoration: none; }
.hero__results span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.hero__results p { margin: 0; padding: .8rem .9rem; font-size: .84rem; color: var(--muted); }

/* ---------- proof strip ---------- */
.proof {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 30px 0 34px;
}
.proof__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}
.stat { text-align: center; }
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: #fff;
  line-height: 1.1;
}
.stat span {
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .55);
}
.proof__press {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 34px;
  padding-top: 24px;
}
.proof__press-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
}
.proof__logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 30px; }
.proof__logos img {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .55;
  transition: opacity .15s ease;
}
.proof__logos img:hover { opacity: .85; }
.proof__more { font-size: .78rem; color: rgba(255, 255, 255, .45); }

/* ---------- section heads with a trailing action ---------- */
.section-head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  flex-wrap: wrap;
}
.section-head--row > div { max-width: 660px; }
.section-head--row .btn { flex: 0 0 auto; }

/* ---------- why grid ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.why {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
}
.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--teal-soft);
  color: var(--teal);
  margin-bottom: .8rem;
}
.why h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.why p { color: var(--muted); font-size: .89rem; margin: 0; }

/* ---------- volume pricing band ---------- */
.volume-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px 40px;
  align-items: center;
  margin-top: 44px;
  padding: 26px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.volume-band h3 { margin-bottom: .3rem; font-size: 1.12rem; }
.volume-band p { margin: 0; font-size: .88rem; }
.volume-table { border-collapse: collapse; font-size: .88rem; }
.volume-table th {
  text-align: left;
  font-weight: 600;
  color: var(--muted);
  padding: .35rem .9rem .35rem 0;
  white-space: nowrap;
}
.volume-table td {
  padding: .35rem .9rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
  white-space: nowrap;
}
.volume-table tr:last-child td { color: var(--teal); }

/* ---------- closing CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-3) 100%);
  padding: 58px 0;
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { color: rgba(255, 255, 255, .7); max-width: 620px; margin: 0; }

/* ---------- product card tweak for the new per-vial price ---------- */
.card__price small { white-space: nowrap; }
.variant__label small,
.variant__price small {
  display: block;
  font-size: .72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero--home { padding: 48px 0 56px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__art img { max-height: 260px; object-fit: contain; margin: 0 auto; }
  .proof__stats { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .volume-band { grid-template-columns: 1fr; gap: 18px; padding: 22px 20px; }
  .volume-table { font-size: .82rem; width: 100%; }
  .volume-table th { padding-right: .5rem; }
  .volume-table td { padding: .35rem .4rem; }
}
@media (max-width: 560px) {
  .hero__search kbd { display: none; }
  .proof__logos img { height: 20px; }
  .section-head--row { align-items: flex-start; }
}
