/* Panama Red. Spacing is on an 8px grid (--s1 = 8px). */
:root {
  --deep: #0A3D2C;
  --deep-2: #0E4E38;
  --green: #1E8A55;
  --hybrid: #1FB03F;
  --indica: #4A22D8;
  --sativa: #E0197C;
  --yellow: #F2C230;
  --red: #C02020;
  --maroon: #3A0808;
  --cream: #FBF6EA;
  --cream-2: #EFE6D2;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px;
  --s6: 48px; --s8: 64px; --s10: 80px;
  --radius: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--deep);
  color: var(--cream);
  font: 400 18px/1.55 "Work Sans", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: "Alfa Slab One", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(32px, 6vw, 48px); }
h2 { font-size: clamp(24px, 4vw, 32px); }
h3 { font-size: 24px; }
p { margin: 0; }
a { color: inherit; }

/* The stripe carries the three box colors between the logo's yellow and red. */
.stripe {
  height: var(--s2);
  background: linear-gradient(90deg,
    var(--yellow) 0 20%, var(--hybrid) 20% 40%, var(--indica) 40% 60%,
    var(--sativa) 60% 80%, var(--red) 80% 100%);
}

/* Hero: logo, then headline, then body. Three clear tiers. */
.hero {
  text-align: center;
  padding: var(--s8) var(--s2) var(--s10);
  background: radial-gradient(120% 80% at 50% 0%, var(--deep-2) 0%, var(--deep) 70%);
}
.logo { display: inline-block; }
.logo-lg img { width: min(320px, 72vw); margin: 0 auto var(--s5); }
.logo-sm img { width: 136px; margin: 0 auto; }
.hero h1 { color: var(--cream); margin-bottom: var(--s2); }
.lede { max-width: 32em; margin: 0 auto var(--s4); color: var(--cream-2); }

.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--maroon);
  font-weight: 700;
  text-decoration: none;
  padding: var(--s2) var(--s3);
  border: 0;
  border-radius: 999px;
  font: inherit; font-weight: 700;
  cursor: pointer;
}
.btn:hover, .btn:focus-visible { background: #FFD457; }
.btn:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--yellow); outline-offset: 2px;
}

main { padding: 0 var(--s2); }
.band { max-width: 960px; margin: 0 auto; padding: var(--s8) 0; }
.band > h2 { margin-bottom: var(--s4); text-align: center; }
.band.center { text-align: center; max-width: 640px; }
.band.center h1 { margin-bottom: var(--s2); }
.band.center p + p { margin-top: var(--s4); }

/* Strain cards */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s3);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: var(--cream);
  color: var(--maroon);
  border-radius: var(--radius);
  padding: var(--s4) var(--s3);
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s2);
}
.card h3 { color: var(--maroon); }
.tag {
  display: inline-block;
  font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: var(--s1) var(--s2);
  border-radius: 999px;
}
.t-hybrid { background: var(--hybrid); color: #0B2A12; }
.t-indica { background: var(--indica); color: #fff; }
.t-sativa { background: var(--sativa); color: #fff; }
.card { border-top: var(--s1) solid transparent; }
.card:has(.t-hybrid) { border-top-color: var(--hybrid); }
.card:has(.t-indica) { border-top-color: var(--indica); }
.card:has(.t-sativa) { border-top-color: var(--sativa); }
.blend { font-weight: 700; font-size: 18px; }
.spec { font-size: 16px; opacity: 0.85; }
.link { font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.card .link { color: var(--red); margin-top: auto; }

/* Inquiry form */
.panel {
  background: var(--cream);
  color: var(--maroon);
  border-radius: var(--radius);
  padding: var(--s6) var(--s3);
  margin-bottom: var(--s8);
  max-width: 720px;
}
.panel h2 { text-align: center; margin-bottom: var(--s2); }
.panel > p { text-align: center; margin-bottom: var(--s4); }
form .grid2 { display: grid; gap: var(--s2) var(--s3); grid-template-columns: 1fr 1fr; margin-bottom: var(--s4); }
form .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: var(--s1); font-weight: 600; font-size: 16px; }
input, select {
  font: inherit; font-weight: 400; color: var(--maroon);
  background: #fff;
  border: 2px solid var(--cream-2);
  border-radius: 8px;
  padding: var(--s1) var(--s2);
  min-height: 48px;
}
form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; }

/* COA pages */
.mini { text-align: center; padding: var(--s4) var(--s2); }
.coa { max-width: 640px; text-align: center; }
.coa .tag { margin-bottom: var(--s2); }
.coa h1 { margin-bottom: var(--s1); }
.coa-blend { color: var(--cream-2); margin-bottom: var(--s4); }
.soon { margin-top: var(--s2); font-weight: 600; }
.current {
  background: var(--cream); color: var(--maroon);
  border-radius: var(--radius);
  padding: var(--s5) var(--s3);
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
}
.current .btn { margin-top: var(--s3); }
.current.empty { padding: var(--s4) var(--s3); }
.label { font-size: 14px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.batch-big { font-family: "Alfa Slab One", Georgia, serif; font-size: 32px; }
.date { color: inherit; opacity: 0.8; }
.note { margin-top: var(--s3); color: var(--cream-2); }
.coa > h2 { margin: var(--s6) 0 var(--s2); font-size: 24px; }
.batches { list-style: none; margin: 0; padding: 0; text-align: left; }
.batches li {
  display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); align-items: baseline;
  padding: var(--s2) 0; border-bottom: 1px solid rgba(251, 246, 234, 0.2);
}
.batch { font-weight: 700; }
.batches .link { margin-left: auto; }
.back { margin-top: var(--s6); }

/* Footer */
.foot p { text-align: center; padding: var(--s4) var(--s2); font-size: 14px; color: var(--cream-2); }

@media (max-width: 560px) {
  .hero { padding: var(--s5) var(--s2) var(--s8); }
  form .grid2 { grid-template-columns: 1fr; }
  .band { padding: var(--s6) 0; }
}

/* Top link to the lab results, on every page */
.topbar { display: flex; justify-content: flex-end; padding: var(--s2) var(--s3); }
.topbar a {
  color: var(--cream); font-weight: 700; text-decoration: none;
  padding: var(--s1) var(--s2); border-radius: 999px;
  border: 2px solid rgba(251, 246, 234, 0.5);
}
.topbar a:hover, .topbar a:focus-visible { background: rgba(251, 246, 234, 0.12); }
.topbar.on-art { position: absolute; top: 0; right: 0; left: 0; }
.topbar.on-art a { background: rgba(10, 61, 44, 0.85); border-color: transparent; }

/* Colorful hero: the package swirl drifts slowly behind a big rooster */
.hero-art {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: var(--s10) var(--s2) var(--s8);
  background: var(--deep);
  isolation: isolate;
}
.swirl {
  position: absolute; inset: -8%;
  background: url("/assets/swirl-hd.webp") center / cover no-repeat;
  z-index: -1;
  animation: drift 36s ease-in-out infinite alternate;
}
.hero-art::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 55% at 50% 50%, rgba(10, 61, 44, 0) 40%, rgba(10, 61, 44, 0.45) 100%);
}
@keyframes drift {
  0%   { transform: scale(1.05) translate(0, 0) rotate(0deg); }
  50%  { transform: scale(1.18) translate(-3%, 2%) rotate(1.5deg); }
  100% { transform: scale(1.1) translate(3%, -2%) rotate(-1deg); }
}
.logo-pop { animation: pop 900ms cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.logo-pop .logo { animation: bob 6s ease-in-out 1s infinite; }
@keyframes pop { from { opacity: 0; transform: translateY(-32px) scale(0.85); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.hero-art .logo-lg img {
  width: min(400px, 78vw); margin: 0 auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.45));
}

/* Scrolling ticker under the hero */
.ticker { background: var(--cream); overflow: hidden; border-block: 4px solid var(--maroon); }
.ticker-track { display: flex; width: max-content; animation: tick 32s linear infinite; }
.ticker-set { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) var(--s3) var(--s2) 0; }
.ticker span { font-family: "Alfa Slab One", Georgia, serif; font-size: 24px; white-space: nowrap; text-transform: uppercase; }
.ticker .dot { color: var(--yellow); -webkit-text-stroke: 1px var(--maroon); font-size: 20px; }
.c-hybrid { color: #14862C; } .c-indica { color: var(--indica); } .c-sativa { color: var(--sativa); } .c-red { color: var(--red); }
@keyframes tick { to { transform: translateX(-50%); } }

.intro { text-align: center; padding: var(--s8) var(--s2) var(--s6); }
.intro h1 { margin-bottom: var(--s2); }

/* Batch search */
.search { text-align: left; margin-bottom: var(--s5); }
.search label { color: var(--cream); margin-bottom: var(--s1); }
.search-row { display: flex; gap: var(--s1); }
.search-row input { flex: 1; min-width: 0; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; }
.search-row input::placeholder { text-transform: none; letter-spacing: 0; }
.search-row .btn { padding: var(--s1) var(--s3); }
.rows { list-style: none; margin: 0; padding: 0; text-align: left; display: grid; gap: var(--s2); }
.rows li {
  background: var(--cream); color: var(--maroon); border-radius: var(--radius);
  padding: var(--s3); display: grid; gap: var(--s1);
}
.rows li[hidden] { display: none; }
.batch-mid { font-family: "Alfa Slab One", Georgia, serif; font-size: 24px; }
.prod { font-weight: 700; }
.rows .link { color: var(--red); }
.soon-sm { font-weight: 600; opacity: 0.8; }
.none { margin-top: var(--s3); color: var(--cream-2); }
.panel > p + p { margin-top: calc(-1 * var(--s2)); }
.search .search-row .btn { width: auto; flex: none; }
.search-row input { min-height: 56px; }

/* Scroll reveal (only hides things when JS is running) */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.prod-grid .reveal:nth-child(2) { transition-delay: 120ms; }
.prod-grid .reveal:nth-child(3) { transition-delay: 240ms; }

/* Lineup: each card wears its box colors, box art tilts up on hover */
.lineup > h2 { margin-bottom: var(--s5); }
.prod-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--s4);
  grid-template-columns: repeat(3, 1fr);
}
.prod-card {
  border-radius: 24px;
  padding: var(--s4) var(--s3) var(--s3);
  color: #fff;
  display: flex; flex-direction: column; gap: var(--s3);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}
.pc-hybrid { background: linear-gradient(160deg, #6BE38A 0%, #1FB03F 45%, #0E6B26 100%); }
.pc-indica { background: linear-gradient(160deg, #FF8A3D 0%, #C43A8C 45%, #3A1EC8 100%); }
.pc-sativa { background: linear-gradient(160deg, #FF9AD0 0%, #E0197C 50%, #7A1FC8 100%); }
.box-wrap { perspective: 800px; display: flex; justify-content: center; }
.box {
  width: 56%; max-width: 200px;
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  transform: rotate(-4deg);
  transition: transform 400ms cubic-bezier(0.2, 1.2, 0.4, 1), box-shadow 400ms ease;
}
.prod-card:nth-child(2) .box { transform: rotate(3deg); }
.prod-card:hover .box, .prod-card:focus-within .box {
  transform: translateY(-12px) rotate(0deg) scale(1.04);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.4);
}
.prod-text { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); }
.prod-text h3 { color: #fff; font-size: 28px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25); }
.prod-text .blend { font-size: 18px; }
.prod-text .spec { font-size: 16px; opacity: 0.9; }
.prod-card .tag { background: rgba(0, 0, 0, 0.28); color: #fff; }
.chip {
  margin-top: var(--s2);
  display: inline-block; background: #fff; color: var(--maroon);
  font-weight: 700; text-decoration: none;
  padding: var(--s1) var(--s2); border-radius: 999px;
  transition: transform 200ms ease;
}
.chip:hover, .chip:focus-visible { transform: translateY(-2px); }

/* Scan band */
.scan {
  max-width: 960px; margin: 0 auto var(--s8);
  background: var(--yellow); color: var(--maroon);
  border-radius: 24px;
  padding: var(--s6) var(--s5);
  display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); align-items: center;
}
.scan-img img {
  border-radius: 8px; border: 8px solid #fff;
  box-shadow: 0 16px 32px rgba(58, 8, 8, 0.3);
  transform: rotate(-3deg);
}
.scan h2 { margin-bottom: var(--s2); }
.scan p { margin-bottom: var(--s3); }
.scan .btn { background: var(--maroon); color: var(--cream); }
.scan .btn:hover, .scan .btn:focus-visible { background: #5A1010; }

/* Box art on each strain's COA page */
.coa-box {
  width: 120px; margin: 0 auto var(--s3);
  border-radius: 8px; box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: rotate(-3deg);
}

@media (max-width: 860px) {
  .prod-grid { grid-template-columns: 1fr; }
  .prod-card { flex-direction: row; align-items: center; padding: var(--s3); }
  .box-wrap { flex: 0 0 36%; }
  .box { width: 100%; }
  .scan { grid-template-columns: 1fr; padding: var(--s4) var(--s3); margin-left: 0; margin-right: 0; }
  .prod-card { gap: var(--s2); }
  .box-wrap { flex: 0 0 32%; }
  .prod-text h3 { font-size: 24px; }
  .prod-text .blend, .prod-text .spec { font-size: 16px; }
  .chip { font-size: 15px; white-space: nowrap; padding: var(--s1) 12px; }
  .coa-box { width: 80px; margin-bottom: var(--s2); }
}
@media (max-width: 560px) { .coa-box { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .swirl, .logo-pop, .logo-pop .logo, .ticker-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .box, .chip { transition: none; }
}

/* Footer */
.foot-inner { max-width: 960px; margin: 0 auto; padding: var(--s5) var(--s2) var(--s4); text-align: center; display: grid; gap: var(--s1); }
.foot-inner p { padding: 0; font-size: 15px; color: var(--cream-2); }
.foot-inner a { color: var(--cream); }
.foot-name { font-family: "Alfa Slab One", Georgia, serif; font-size: 20px !important; color: var(--cream) !important; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s1) var(--s3); margin-top: var(--s1); }
.foot-links a { font-weight: 700; }
.foot-copy { margin-top: var(--s2); font-size: 13px !important; opacity: 0.8; }

/* Privacy page */
.prose { max-width: 680px; }
.prose h1 { margin-bottom: var(--s1); }
.prose .updated { color: var(--cream-2); margin-bottom: var(--s5); font-size: 15px; }
.prose h2 { font-size: 24px; margin: var(--s5) 0 var(--s2); }
.prose p + p { margin-top: var(--s2); }

/* Batch dates sit on their own lines */
.current .date + .date, .rows .date + .date { margin-top: 0; }
.prose > h2 { text-align: left; margin-bottom: var(--s2); }

/* Whole-page background: the package swirl, fixed behind everything, dimmed so text stays readable */
body { background: var(--deep); }
.page-bg {
  position: fixed; inset: 0; z-index: -2;
  background: url("/assets/swirl-hd.webp") center / cover no-repeat;
}
.page-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 61, 44, 0.5) 0%, rgba(10, 61, 44, 0.62) 100%);
}
.intro h1, .intro .lede, .lineup > h2, .coa h1, .coa-blend, .note, .search label,
.prose h1, .prose h2, .prose p, .band.center h1, .band.center p, .none {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.foot { background: rgba(10, 61, 44, 0.88); }
.mini, .topbar:not(.on-art) { position: relative; }

/* Keep the swirl bright all the way down: light tint, text sits on glass panels */
.page-bg::after { background: rgba(10, 61, 44, 0.12); }
.intro, .coa, .prose, .band.center {
  background: rgba(10, 61, 44, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(251, 246, 234, 0.14);
  border-radius: 24px;
}
.intro { max-width: 760px; margin: var(--s8) auto var(--s4); padding: var(--s6) var(--s4); }
.coa, .prose, .band.center { margin-top: var(--s6); margin-bottom: var(--s8); padding: var(--s5) var(--s4); }
.lineup { padding-top: var(--s5); }
.lineup > h2 {
  display: table; margin: 0 auto var(--s5);
  background: rgba(10, 61, 44, 0.62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: var(--s1) var(--s4); border-radius: 999px;
}
.coa .rows li, .coa .current { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2); }
@media (max-width: 560px) {
  .intro { margin: var(--s6) var(--s2) var(--s4); padding: var(--s5) var(--s3); }
  .coa, .prose, .band.center { padding: var(--s4) var(--s3); }
}
.foot { background: rgba(10, 61, 44, 0.6); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.foot-inner p { text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); }
@media (max-width: 560px) { .band.panel { padding: var(--s5) var(--s3); } }
