/* ============================================================
   Pacific Coast Botanicals — pcbextracts.com
   Industrial / lab design system
   California DCC Type 7 volatile manufacturer.
   ============================================================ */

:root {
  /* Greens (facility signature) */
  --forest:        #101a12;
  --forest-2:      #16241a;
  --forest-3:      #1e3122;
  --accent:        #57946a;
  --accent-2:      #7cb890;
  --accent-hover:  #47805a;

  /* Steel neutrals (the industrial base) */
  --steel-900:     #1c2124;
  --steel-800:     #262c30;
  --steel-700:     #3a4247;
  --steel-500:     #67717a;
  --steel-400:     #8b949b;
  --steel-300:     #b6beba;
  --steel-200:     #cfd5cf;
  --steel-100:     #e3e7e1;

  /* Warm concentrate tone (amber = live resin / diamonds) */
  --amber:         #c6871f;
  --amber-light:   #f0d9a6;
  --amber-deep:    #7f5410;

  /* Surfaces */
  --paper:         #eceee9;   /* cool paper page bg */
  --paper-2:       #f5f6f2;
  --white:         #ffffff;
  --ink:           #182019;
  --ink-soft:      #3b443d;
  --muted:         #626b64;

  /* Rules */
  --line:          #d3d8d1;
  --line-strong:   #b9c0b8;
  --line-dark:     rgba(255,255,255,.12);

  /* Type */
  --display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --maxw: 1200px;
  --radius: 3px;
  --shadow-sm: 0 1px 0 rgba(16,26,18,.04);
  --shadow-md: 0 12px 34px rgba(16,26,18,.10);
  --ease: cubic-bezier(.2,.6,.2,1);
}

/* ---------- reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.04;
  color: var(--forest);
  letter-spacing: -.02em;
}
ul { list-style: none; }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 96px 0; }
.section.ruled { border-top: 1px solid var(--line); }
.section-sm { padding: 64px 0; }
.center { text-align: center; }

/* Monospace section marker — [ 01 / WHAT WE DO ] */
.marker {
  font-family: var(--mono);
  font-weight: 500;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-hover);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.marker::before {
  content: "";
  width: 26px; height: 1px; background: var(--line-strong);
}
.marker .idx { color: var(--muted); }

.lead { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }
.center .lead { margin-inline: auto; }
h2.title { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 14px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--mono); font-weight: 500; font-size: .85rem;
  letter-spacing: .04em;
  padding: 14px 22px; border-radius: var(--radius); border: 1px solid transparent;
  cursor: pointer; transition: background .18s var(--ease), color .18s, border-color .18s, transform .18s;
  white-space: nowrap; text-transform: uppercase;
}
.btn-primary { background: var(--accent); color: #0d160f; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--forest); }
.btn-ghost:hover { border-color: var(--forest); background: var(--white); }
.btn-light { background: transparent; color: #e6ede8; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.btn-lg { padding: 16px 26px; font-size: .9rem; }
.btn .arw { font-family: var(--sans); font-weight: 700; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(236,238,233,.9);
  backdrop-filter: saturate(130%) blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { width: 34px; height: 38px; flex: none; }
.brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand-txt b { font-family: var(--display); font-size: 1.02rem; color: var(--forest); font-weight: 600; letter-spacing: -.01em; }
.brand-txt span { font-family: var(--mono); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-hover); margin-top: 4px; font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a.link {
  padding: 8px 14px; border-radius: var(--radius); font-family: var(--mono); font-weight: 500; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav-links a.link:hover { background: rgba(87,148,106,.12); color: var(--forest); }
.nav-links a.link.active { color: var(--accent-hover); }
.nav-order { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--forest); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line-strong);
    padding: 14px 28px 22px; box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .22s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a.link { padding: 12px 14px; }
  .nav-order { margin: 10px 0 0; justify-content: center; }
}

/* ============================================================
   BLUEPRINT GRID (shared dark-surface texture)
   ============================================================ */
.grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 40%, transparent 100%);
}

/* crop marks — small industrial corner ticks */
.crop { position: absolute; width: 12px; height: 12px; z-index: 2; }
.crop::before, .crop::after { content: ""; position: absolute; background: currentColor; opacity: .55; }
.crop::before { width: 12px; height: 1px; top: 0; left: 0; }
.crop::after  { width: 1px; height: 12px; top: 0; left: 0; }
.crop.tr { right: 0; transform: scaleX(-1); }
.crop.bl { bottom: 0; transform: scaleY(-1); }
.crop.br { right: 0; bottom: 0; transform: scale(-1,-1); }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; color: #e7eee9; overflow: hidden; background: var(--forest); }
.hero .grid-bg { mask-image: none; opacity: .8; }
.hero .wrap { position: relative; z-index: 2; }
.hero-inner { padding: 78px 0 84px; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: end; }
@media (max-width: 900px){ .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-top {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent-2); display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center;
  padding-bottom: 22px; margin-bottom: 34px; border-bottom: 1px solid var(--line-dark);
}
.hero-top span { display: inline-flex; align-items: center; gap: 8px; }
.hero-top .sep { color: rgba(255,255,255,.25); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 6.4vw, 5rem); line-height: .98; letter-spacing: -.03em; }
.hero h1 .accent { color: var(--accent-2); }
.hero p.lead { color: #b7c7bc; margin: 26px 0 34px; font-size: 1.18rem; max-width: 48ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero spec panel (right column) — replaces glow blobs */
.spec-panel {
  border: 1px solid var(--line-dark); background: rgba(255,255,255,.02);
  position: relative;
}
.spec-panel .ph {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); padding: 14px 18px; border-bottom: 1px solid var(--line-dark);
  display: flex; justify-content: space-between;
}
.spec-panel dl { display: grid; grid-template-columns: auto 1fr; }
.spec-panel dt, .spec-panel dd { padding: 13px 18px; border-bottom: 1px solid var(--line-dark); font-size: .82rem; }
.spec-panel dt { font-family: var(--mono); color: var(--steel-400); letter-spacing: .08em; text-transform: uppercase; font-size: .68rem; align-self: center; }
.spec-panel dd { color: #dbe6de; text-align: right; font-weight: 500; }
.spec-panel dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ---------- spec bar (replaces the stat strip) ---------- */
.specbar { background: var(--forest-2); color: #c3d1c8; border-top: 1px solid var(--line-dark); }
.specbar-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.specbar .cell { padding: 26px 24px; border-left: 1px solid var(--line-dark); }
.specbar .cell:first-child { border-left: 0; }
.specbar .k { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--steel-400); display: block; margin-bottom: 8px; }
.specbar .v { font-family: var(--display); font-size: 1.15rem; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.specbar .v small { display: block; font-family: var(--sans); font-weight: 400; font-size: .78rem; color: #90a597; letter-spacing: 0; text-transform: none; margin-top: 3px; }
@media (max-width: 720px){ .specbar-grid { grid-template-columns: 1fr 1fr; }
  .specbar .cell:nth-child(3){ border-left: 0; }
  .specbar .cell:nth-child(3), .specbar .cell:nth-child(4){ border-top: 1px solid var(--line-dark); } }

/* ============================================================
   NUMBERED FEATURE ROWS / CARDS
   ============================================================ */
.grid { display: grid; gap: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* bordered "module" cards with mono index tab */
.modules { border: 1px solid var(--line); background: var(--white); }
.modules.cols-3 { display: grid; grid-template-columns: repeat(3,1fr); }
.modules.cols-2 { display: grid; grid-template-columns: repeat(2,1fr); }
.module {
  padding: 34px 30px 36px; border-left: 1px solid var(--line); position: relative;
  transition: background .2s var(--ease);
}
.module:first-child { border-left: 0; }
.module:hover { background: var(--paper-2); }
.module .midx { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; color: var(--accent-hover); }
.module .ico { width: 30px; height: 30px; color: var(--forest); margin: 22px 0 18px; }
.module .ico svg { width: 30px; height: 30px; }
.module h3 { font-size: 1.28rem; margin-bottom: 10px; letter-spacing: -.01em; }
.module p { color: var(--ink-soft); font-size: .97rem; }
@media (max-width: 820px){
  .modules.cols-3, .modules.cols-2 { grid-template-columns: 1fr; }
  .module { border-left: 0; border-top: 1px solid var(--line); }
  .module:first-child { border-top: 0; }
}

/* ============================================================
   SPLIT / TECHNICAL PANEL
   ============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .visual { order: 2; }
@media (max-width: 880px){ .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse .visual { order: 0; } }

/* technical schematic panel (replaces gradient boxes + float badges) */
.panel {
  position: relative; background: var(--forest); color: #dbe6de;
  border: 1px solid var(--forest-3); min-height: 340px; overflow: hidden;
  display: flex; flex-direction: column;
}
.panel .ph {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line-dark);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2);
}
.panel .ph .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); display: inline-block; margin-right: 8px; }
.panel .pbody { position: relative; flex: 1; padding: 22px; }
.panel .pbody svg { width: 100%; height: 100%; }
.panel .pfoot {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--steel-400);
  padding: 12px 18px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between;
}

/* process flow steps inside a panel */
.flow { display: grid; gap: 0; width: 100%; }
.flow .step { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px dashed var(--line-dark); align-items: baseline; }
.flow .step:last-child { border-bottom: 0; }
.flow .step .n { font-family: var(--mono); font-size: .74rem; color: var(--accent-2); }
.flow .step b { color: #fff; font-family: var(--display); font-weight: 600; font-size: 1.02rem; }
.flow .step span { display: block; color: #90a597; font-size: .84rem; margin-top: 3px; }

/* checklist (technical, mono markers) */
.checklist { margin-top: 8px; }
.checklist li { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist li .mk { font-family: var(--mono); font-size: .72rem; color: var(--accent-hover); }
.checklist li b { color: var(--forest); font-family: var(--display); font-weight: 600; }
.checklist li span.tx { color: var(--ink-soft); font-size: .97rem; }

/* ============================================================
   PRODUCTS — spec sheets
   ============================================================ */
.cat { margin-top: 56px; }
.cat:first-of-type { margin-top: 0; }
.cat-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  border-bottom: 1px solid var(--forest); padding-bottom: 12px; margin-bottom: 0;
}
.cat-head h3 { font-size: 1.5rem; letter-spacing: -.01em; }
.cat-head .count { font-family: var(--mono); color: var(--muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

/* spec table */
.spectable { width: 100%; border-collapse: collapse; }
.spectable thead th {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.spectable thead th.r, .spectable td.r { text-align: right; }
.spectable tbody tr { border-bottom: 1px solid var(--line); transition: background .16s; }
.spectable tbody tr:hover { background: var(--paper-2); }
.spectable td { padding: 15px 14px; vertical-align: middle; }
.spectable .pname { display: flex; align-items: center; gap: 14px; }
.spectable .swatch { width: 26px; height: 26px; border-radius: 3px; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.spectable .pname b { font-family: var(--display); font-weight: 600; color: var(--forest); font-size: 1rem; }
.spectable .desc { color: var(--ink-soft); font-size: .9rem; }
.spectable .type { font-family: var(--mono); font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tag-live {
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em;
  color: var(--amber-deep); border: 1px solid var(--amber); padding: 3px 7px; border-radius: 2px;
  text-transform: uppercase; white-space: nowrap;
}
.tag-sourced {
  font-family: var(--mono); font-size: .62rem; font-weight: 500; letter-spacing: .1em;
  color: var(--steel-500); border: 1px solid var(--line-strong); padding: 3px 7px; border-radius: 2px;
  text-transform: uppercase; white-space: nowrap;
}
@media (max-width: 720px){
  .spectable .desc-col, .spectable thead th.desc-col { display: none; }
}

/* swatch fills */
.sw-amber { background: linear-gradient(135deg,#eec164,#c6871f); }
.sw-gold  { background: linear-gradient(135deg,#f2d78f,#cf9a2b); }
.sw-honey { background: linear-gradient(135deg,#e0a944,#9a6414); }
.sw-clear { background: linear-gradient(135deg,#f4ecd2,#dcc590); }
.sw-green { background: linear-gradient(135deg,#7cb890,#3d7249); }
.sw-dark  { background: linear-gradient(135deg,#57946a,#1e3122); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-band {
  position: relative; background: var(--forest); color: #e7eee9;
  padding: 68px 48px; overflow: hidden; text-align: center;
  border: 1px solid var(--forest-3);
}
.cta-band > * { position: relative; z-index: 2; }
.cta-band .marker { justify-content: center; color: var(--accent-2); }
.cta-band .marker::before { background: rgba(255,255,255,.25); }
.cta-band h2 { color: #fff; font-size: clamp(1.9rem,3.8vw,2.8rem); }
.cta-band p { color: #b7c7bc; max-width: 54ch; margin: 14px auto 30px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest); color: #97ac9e; padding: 0; margin-top: 0; }
.footer .foot-top {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--steel-400);
  display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 18px 0; border-bottom: 1px solid var(--line-dark);
}
.footer .foot-top .ok { color: var(--accent-2); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 56px 0 44px; }
@media (max-width: 820px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; } }
@media (max-width: 480px){ .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-family: var(--mono); font-weight: 500; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px; }
.footer a { color: #97ac9e; font-size: .94rem; display: inline-block; padding: 4px 0; transition: color .18s; }
.footer a:hover { color: var(--accent-2); }
.footer .f-brand .fb-mark { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.footer .f-brand .fb-mark b { font-family: var(--display); color: #fff; font-size: 1.15rem; }
.footer .f-brand p { font-size: .9rem; margin-top: 4px; max-width: 32ch; line-height: 1.7; }
.footer .contact-line { font-size: .9rem; line-height: 1.95; }
.footer .contact-line a { padding: 0; }
.footer-bottom {
  border-top: 1px solid var(--line-dark); padding: 22px 0 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .06em; color: #6f867a; text-transform: uppercase;
}
.legal-note {
  background: var(--forest-2); color: #7f978a; font-size: .76rem; text-align: center;
  padding: 18px 24px; line-height: 1.7; border-top: 1px solid var(--line-dark);
}
.legal-note b { color: #c3d1c8; }

/* ============================================================
   AGE GATE
   ============================================================ */
.agegate {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(8,14,9,.9); backdrop-filter: blur(6px); padding: 24px;
}
.agegate[hidden] { display: none; }
.agegate .box {
  background: var(--forest); color: #e7eee9; border: 1px solid var(--forest-3);
  max-width: 460px; width: 100%; position: relative;
  animation: pop .3s var(--ease);
}
@keyframes pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.agegate .box .gate-head {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-2);
  padding: 14px 22px; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between;
}
.agegate .box .gate-body { padding: 34px 32px 32px; text-align: center; }
.agegate .mark { width: 46px; height: 52px; margin: 0 auto 18px; }
.agegate h2 { color: #fff; font-size: 1.7rem; }
.agegate p { color: #b7c7bc; margin: 12px 0 26px; font-size: .95rem; }
.agegate .btns { display: flex; gap: 12px; }
.agegate .btns .btn { flex: 1; justify-content: center; }
.agegate .fine { font-family: var(--mono); font-size: .66rem; color: var(--steel-400); margin-top: 22px; letter-spacing: .04em; line-height: 1.6; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
