/* ==========================================================================
   Mantis Medicinals · shared house base (Cream Apothecary system)
   Cream ground, gold double-border frames, Pinyon / Cinzel / IM Fell.
   ========================================================================== */

:root {
  --warm-white: #F5F2EC;
  --cream: #E8E4DC;
  --near-white: #f8f6f3;
  --lavender-mist: #E8DFF0;
  --lilac: #D8CFE5;
  --violet: #9a8aaa;
  --purple: #724E8A;
  --ink: #281828;
  --forest: #2D5A2D;
  --deep-forest: #1A3A1A;
  --sage: #6B8A5A;
  --soft-sage: #8aaa8a;
  --pale-green: #f0f5ec;
  --gold: #B4914F;
  --gold-soft: rgba(180, 145, 79, 0.55);
  --gold-faint: rgba(180, 145, 79, 0.3);

  --script: 'Pinyon Script', cursive;
  --cinzel: 'Cinzel', serif;
  --fell: 'IM Fell English', Georgia, serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--warm-white);
  color: var(--ink);
  font-family: var(--fell);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
figure { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type helpers ---------- */
.script { font-family: var(--script); font-weight: 400; color: var(--purple); line-height: 1; }
.fell-i { font-family: var(--fell); font-style: italic; }
.amp { font-family: var(--fell); font-style: italic; font-weight: 400; color: var(--gold); font-size: 0.9em; }
.eyebrow {
  font-family: var(--cinzel);
  font-size: 12px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
h1 {
  font-family: var(--cinzel);
  font-size: clamp(30px, 3.4vw, 42px);
  letter-spacing: 0.04em;
  color: var(--forest);
  line-height: 1.2;
  text-wrap: balance;
}
h2 {
  font-family: var(--cinzel);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: 0.04em;
  color: var(--forest);
  line-height: 1.25;
  text-wrap: balance;
}
h3 {
  font-family: var(--cinzel);
  font-size: 18px;
  letter-spacing: 0.04em;
  color: var(--forest);
  line-height: 1.3;
  text-wrap: balance;
}
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head .sub { margin-top: 16px; color: rgba(40, 24, 40, 0.78); }
.tagline {
  font-family: var(--cinzel);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 14px;
}
.tagline .f { white-space: nowrap; }
.tagline .sep { margin: 0 0.6em; }

/* ---------- Gold double-border frame (the brand device) ---------- */
.frame {
  position: relative;
  border: 1px solid var(--gold);
  background: var(--near-white);
}
.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--gold-soft);
  pointer-events: none;
  z-index: 2;
}

/* ---------- Ornament: rule, mantis, rule ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.ornament::before, .ornament::after {
  content: "";
  width: 72px;
  height: 1px;
  background: var(--gold);
}
.mantis { display: block; width: 22px; height: auto; }

/* ---------- Botanical Seltzer lockup: real label artwork, never type ---------- */
.bs-mark { display: block; height: auto; }
.bs-mark img { width: 100%; height: auto; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-block;
  font-family: var(--cinzel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 15px 28px;
  border: 1px solid transparent;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
}
.btn-solid { background: var(--forest); color: var(--warm-white); border-color: var(--forest); }
.btn-solid:hover { background: var(--deep-forest); border-color: var(--deep-forest); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--warm-white); }
.btn-sm { padding: 12px 20px; font-size: 11px; }
.link-gold {
  font-family: var(--cinzel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  padding-bottom: 5px;
  border-bottom: 1px solid var(--gold);
  transition: color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.link-gold:hover { color: var(--forest); border-color: var(--forest); }
.text-link { color: var(--purple); border-bottom: 1px solid var(--gold-soft); transition: color .25s var(--ease), border-color .25s var(--ease); }
.text-link:hover { color: var(--forest); border-color: var(--forest); }

/* ---------- Masthead ----------
   Centred wordmark on its own row, links centred beneath. The mark is the
   trimmed script (1720x196), so 56px tall reads at about 490px wide. */
.mast {
  position: relative;
  z-index: 50;
  background: var(--warm-white);
  border-bottom: 1px solid var(--gold-soft);
}
.mast-inner { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.mast-top {
  position: relative;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mast-logo { display: block; }
.mast-logo img { height: 56px; width: auto; }
.mast-actions {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-nav { padding: 13px 22px; }
.cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: var(--forest);
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--near-white);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.cart:hover { background: var(--forest); color: var(--warm-white); }
.cart-count {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 18px; height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--purple);
  color: var(--warm-white);
  font-family: var(--cinzel);
  font-size: 10px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}
.menu-btn {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--near-white);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color .25s var(--ease);
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--forest); transition: transform .25s var(--ease); }
.menu-btn:hover { background: var(--lavender-mist); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
.mast-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid var(--gold-faint);
  padding: 15px 0;
}
.mast-links a {
  font-family: var(--cinzel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--forest);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), color .25s var(--ease);
}
.mast-links a:hover { border-color: var(--gold); color: var(--purple); }
.mast-links a[aria-current="page"] { color: var(--purple); border-color: var(--gold); }

/* ---------- Footer (centred) ---------- */
.footer { background: var(--cream); border-top: 1px solid var(--gold-soft); padding: 64px 0 40px; text-align: center; }
.footer-brand { margin-bottom: 36px; }
.footer-logo { height: 40px; width: auto; max-width: 100%; margin: 0 auto 14px; }
.footer-brand p { color: var(--purple); }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 32px;
  margin-bottom: 44px;
}
.footer-nav a {
  font-family: var(--cinzel);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest);
  transition: color .25s var(--ease);
}
.footer-nav a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--gold-soft); padding-top: 24px; }
.footer-bottom p { font-size: 13px; color: var(--violet); margin-bottom: 6px; max-width: 620px; margin-inline: auto; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Masthead responsive ---------- */
@media (max-width: 1024px) {
  .mast-logo img { height: 48px; }
  .mast-links { gap: 28px; }
}
@media (max-width: 860px) {
  .mast-top { height: auto; flex-wrap: wrap; row-gap: 12px; padding: 16px 0 12px; }
  .mast-logo { flex: 0 0 100%; display: flex; justify-content: center; }
  .mast-logo img { height: 40px; }
  .mast-actions { position: static; transform: none; flex: 0 0 100%; justify-content: flex-end; gap: 12px; }
  .menu-btn { display: flex; margin-right: auto; }
  .mast-links {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--warm-white);
    border-top: 0;
    border-bottom: 1px solid var(--gold-soft);
    padding: 8px var(--gutter) 16px;
  }
  .mast-links.open { display: flex; }
  .mast-links a { padding: 14px 0; border-bottom: 1px solid rgba(180,145,79,0.25); }
  .mast-links a:last-child { border-bottom: 0; }
  .btn-nav { padding: 12px 16px; font-size: 11px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .mast-logo img { height: 40px; }
  .btn-nav { padding: 11px 13px; font-size: 10px; letter-spacing: 0.12em; }
  .cart, .menu-btn { width: 40px; height: 40px; }
  .footer-nav { gap: 12px 22px; }
}

/* ==========================================================================
   Lab Results page
   Plain and trustworthy. Centred page head with the real Botanical Seltzer
   lockup, a four-up row of what gets tested, how to read a report beside
   the side-profile can, the batch table, MOFGA, and a short close.
   ========================================================================== */

/* page head */
.page-head { padding: 72px 0 60px; text-align: center; }
.page-head .bs-mark { width: clamp(150px, 14vw, 190px); margin: 0 auto 26px; }
.page-head h1 { margin-bottom: 14px; }
.page-head .sub {
  font-size: 21px;
  color: var(--purple);
  max-width: 30ch;
  margin: 0 auto 26px;
  text-wrap: balance;
}
.page-head .ornament { margin-bottom: 30px; }
.page-head .intro { max-width: 600px; margin: 0 auto; color: rgba(40, 24, 40, 0.84); }
.verbatim { font-family: var(--fell); font-style: italic; color: var(--purple); font-size: 19px; }

/* what the lab checks */
.tests { padding: 0 0 96px; }
.tests-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.tests-row li { padding: 32px 24px; border-right: 1px solid var(--gold-soft); text-align: center; }
.tests-row li:last-child { border-right: 0; }
.tests-row h3 { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 10px; }
.tests-row p { font-size: 15.5px; color: rgba(40, 24, 40, 0.8); max-width: 24ch; margin-inline: auto; }

/* how to read a report */
.read { background: var(--cream); padding: 96px 0; }
.read-grid {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.read-photo { padding: 10px; }
.read-photo img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: contain; background: var(--cream); }
.read-copy h2 { margin-bottom: 18px; }
.read-copy > p { color: rgba(40, 24, 40, 0.84); max-width: 54ch; }
.read-steps { margin-top: 26px; border-top: 1px solid var(--gold-soft); }
.read-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--gold-faint);
  font-size: 16px;
  color: rgba(40, 24, 40, 0.84);
}
.read-steps li b {
  font-family: var(--cinzel);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
  padding-top: 4px;
}
.read-steps li strong { font-weight: 400; color: var(--forest); font-family: var(--cinzel); font-size: 14px; letter-spacing: 0.04em; display: block; margin-bottom: 2px; }

/* batch table */
.batches { padding: 96px 0; }
.batches .section-head { margin-bottom: 36px; }
.placeholder-note {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 26px;
  background: var(--lavender-mist);
  border: 1px solid var(--lilac);
  font-size: 15px;
  color: var(--ink);
}
.placeholder-note p { margin: 0; }
.tag {
  display: inline-block;
  flex: none;
  font-family: var(--cinzel);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple);
  border: 1px solid var(--violet);
  padding: 5px 8px 4px;
  line-height: 1;
  white-space: nowrap;
}
.table-wrap { overflow-x: auto; }
.coa { width: 100%; border-collapse: collapse; font-size: 16px; }
.coa th {
  font-family: var(--cinzel);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-align: left;
  padding: 14px 16px;
  border-top: 1px solid var(--gold-soft);
  border-bottom: 1px solid var(--gold-soft);
}
.coa th.report, .coa td.report { text-align: right; }
.coa td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--gold-faint);
  vertical-align: middle;
  color: rgba(40, 24, 40, 0.86);
  transition: background-color .25s var(--ease);
}
.coa tbody tr:hover td { background: var(--near-white); }
.coa .batch { font-family: var(--cinzel); font-size: 14px; letter-spacing: 0.06em; color: var(--forest); white-space: nowrap; }
.coa .batch .tag { margin-left: 12px; vertical-align: middle; }
.coa .date { white-space: nowrap; color: rgba(40, 24, 40, 0.7); }
.coa .report { white-space: nowrap; }
.coa .report .link-gold { font-size: 11px; }
.coa-foot { margin-top: 20px; font-size: 14.5px; color: var(--violet); max-width: 64ch; }

/* certified */
.certified { background: var(--pale-green); padding: 88px 0; }
.cert-frame {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 5vw, 64px);
  text-align: center;
}
.badges { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 5vw, 64px); margin-bottom: 30px; }
.badges img { width: 140px; height: auto; mix-blend-mode: multiply; }
.cert-frame h2 { margin-bottom: 16px; }
.cert-frame p { color: rgba(40, 24, 40, 0.84); max-width: 58ch; margin-inline: auto; }
.cert-frame .tagline { margin-top: 26px; }
.cert-frame .tagline .f { display: block; line-height: 2; }
.cert-frame .tagline .sep { display: none; }

/* closing */
.closing { padding: 96px 0 104px; text-align: center; }
.closing-inner { max-width: 560px; margin: 0 auto; }
.closing .ornament { margin-bottom: 26px; }
.closing h2 { margin-bottom: 12px; }
.closing .fell-i { font-size: 19px; color: rgba(40, 24, 40, 0.8); margin-bottom: 30px; max-width: 44ch; margin-inline: auto; }
.closing .fell-i .line { display: block; }
.closing-actions { display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .tests-row { grid-template-columns: repeat(2, 1fr); }
  .tests-row li { border-bottom: 1px solid var(--gold-soft); }
  .tests-row li:nth-child(2n) { border-right: 0; }
  .tests-row li:nth-last-child(-n+2) { border-bottom: 0; }
  .read-grid { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .page-head { padding: 48px 0 44px; }
  .tests { padding-bottom: 64px; }
  .read { padding: 64px 0; }
  .read-grid { grid-template-columns: 1fr; gap: 36px; }
  .read-photo { max-width: 300px; margin: 0 auto; width: 100%; }
  .batches { padding: 64px 0; }
  .placeholder-note { align-items: flex-start; }
  .placeholder-note .tag { margin-top: 3px; }
  .coa thead { display: none; }
  .coa, .coa tbody, .coa tr, .coa td { display: block; }
  .coa tr { border: 1px solid var(--gold-soft); padding: 16px 18px 18px; margin-bottom: 12px; background: var(--near-white); }
  .coa td { padding: 3px 0; border: 0; white-space: normal; }
  .coa tbody tr:hover td { background: transparent; }
  .coa td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--cinzel);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1px;
  }
  .coa td.batch::before, .coa td.report::before { display: none; }
  .coa .batch { font-size: 15px; margin-bottom: 8px; }
  .coa .batch .tag { margin-left: 10px; }
  .coa td.report { text-align: left; padding-top: 12px; }
  .certified { padding: 64px 0; }
  .badges img { width: 110px; }
  .closing { padding: 64px 0 72px; }
  .closing .fell-i .line { display: inline; }
}
@media (max-width: 480px) {
  .tests-row { grid-template-columns: 1fr; }
  .tests-row li { border-right: 0; border-bottom: 1px solid var(--gold-soft); padding: 24px 16px; }
  .tests-row li:nth-last-child(-n+2) { border-bottom: 1px solid var(--gold-soft); }
  .tests-row li:last-child { border-bottom: 0; }
  .page-head .bs-mark { width: 150px; }
  .page-head .sub { font-size: 19px; }
  .page-head .intro { text-align: left; }
  .badges { gap: 20px; }
  .badges img { width: 100px; }
}


/* MANTIS-R7 ------------------------------------------------------------- */
/* The one-line lockup needs width where the stacked one needed height. */
.bs-mark img { width: min(420px, 80%); height: auto; }

/* Certified Clean was carrying 88px top and bottom on top of the frame's own
   padding. Tightened so the block does not float in the middle of nothing. */
.certified { padding: clamp(34px, 4vw, 52px) 0; }
.cert-frame { padding: clamp(28px, 3.2vw, 42px) clamp(24px, 5vw, 56px); }
.cert-frame h2 { margin-bottom: 12px; }
.cert-frame .tagline { margin-top: 20px; }
.closing { padding: clamp(44px, 5vw, 68px) 0 clamp(52px, 6vw, 76px); }

/* Instagram sits in the footer nav as a link with a mark. */
.footer-ig { display: inline-flex; align-items: center; gap: 7px; }
.footer-ig svg { width: 17px; height: 17px; }


/* MANTIS-R7: match the single-row nav used on the rest of the site.
   Logo left, links right, actions right. Markup untouched. */
.mast-top {
  height: 96px;
  justify-content: flex-start;
  gap: 24px;
}
.mast-logo img { height: 46px; }
.mast-actions {
  position: static;
  transform: none;
  margin-left: auto;
  order: 3;
}
.mast-links {
  border-top: 0;
  padding: 0;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 44px);
  position: absolute;
  right: 72px;              /* clears the cart */
  top: 50%;
  transform: translateY(-50%);
}
.mast-inner { position: relative; }
.mast-top { position: static; }

@media (max-width: 900px) {
  .mast-links { position: static; transform: none; justify-content: center; padding: 12px 0; border-top: 1px solid var(--gold-faint); }
  .mast-actions { padding-left: 0; }
}

.footer-ig span { display: none; }
.footer-ig svg { width: 18px; height: 18px; }
/* The one-line lockup reads better larger. */
.bs-mark img { width: min(560px, 88%); height: auto; }

/* MANTIS-R8: nav links match the rest of the site. */
.mast-links a { font-family: var(--jost, "Jost", system-ui, sans-serif); font-weight: 400; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }

/* Larger one-line lockup on Lab Results. */
.bs-mark img { width: min(680px, 92%) !important; height: auto; }
