/* ============================================================
   Cannabis Products Market Reports — flowerrpts.css
   www.cannbus.org  |  Botanical-Industrial Aesthetic
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,700&family=DM+Mono:wght@300;400;500&family=Inter:wght@300;400;500;600&display=swap');

/* ── Root Variables — Light / White Theme ────────────────── */
:root {
  --bg:           #ffffff;
  --bg-2:         #f7f9f5;
  --bg-3:         #eef3ea;
  --panel:        #ffffff;
  --panel-alt:    #f4f7f1;
  --border:       rgba(80,130,40,0.16);
  --border-vivid: rgba(80,130,40,0.42);

  --green-vivid:  #4a8c28;
  --green-mid:    #5d8c35;
  --green-muted:  #82b450;
  --gold:         #a07c1a;
  --gold-light:   #b8920e;
  --amber:        #b8651a;
  --teal:         #1e8c70;
  --coral:        #c04030;
  --lavender:     #7055b8;
  --cream:        #1c2a14;

  --text-primary:   #1c2a14;
  --text-secondary: #3d5c28;
  --text-muted:     #7a9860;
  --text-accent:    #3a7010;

  --chart-1: #4a8c28;
  --chart-2: #a07c1a;
  --chart-3: #1e8c70;
  --chart-4: #c04030;
  --chart-5: #7055b8;
  --chart-6: #b8651a;

  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;

  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --glow:   0 0 32px rgba(74,140,40,0.10);
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

/* ── Noise Texture Overlay ───────────────────────────────── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

/* ── Typography ──────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }

.mono { font-family: 'DM Mono', monospace; }
.serif { font-family: 'Playfair Display', serif; }

a { color: var(--green-vivid); text-decoration: none; }
a:hover { color: var(--gold-light); }

/* ── Layout ──────────────────────────────────────────────── */
.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative; z-index: 1;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(480px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }

/* ── Top Nav Bar ─────────────────────────────────────────── */
.site-bar {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 100;
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.site-bar .container {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem;
}
.site-brand {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-brand span { color: var(--green-vivid); }
.site-nav { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.site-nav a {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  text-transform: uppercase;
}
.site-nav a:hover {
  color: var(--green-vivid);
  border-color: var(--border-vivid);
}

/* ── Hero Header ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 15% 50%, rgba(74,140,40,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 85% 30%, rgba(160,124,26,0.07) 0%, transparent 70%),
    linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  pointer-events: none;
}
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--green-vivid);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 2rem; height: 1px;
  background: var(--green-vivid);
}
.hero h1 {
  color: var(--cream);
  max-width: 780px;
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--green-vivid); }
.hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 2rem;
}
.hero-meta-item {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.hero-meta-item strong {
  display: block;
  font-size: 1.6rem;
  font-family: 'Playfair Display', serif;
  color: var(--gold-light);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  text-transform: uppercase;
  border: 1px solid;
}
.badge-green  { color: var(--green-vivid);  border-color: var(--green-muted); background: rgba(130,180,80,0.07); }
.badge-gold   { color: var(--gold);         border-color: rgba(200,168,75,0.35); background: rgba(200,168,75,0.07); }
.badge-teal   { color: var(--teal);         border-color: rgba(58,170,140,0.35); background: rgba(58,170,140,0.07); }
.badge-amber  { color: var(--amber);        border-color: rgba(212,137,58,0.35); background: rgba(212,137,58,0.07); }

/* ── Section Wrapper ─────────────────────────────────────── */
.section {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green-vivid);
  margin-bottom: 0.5rem;
}
.section h2 { color: var(--cream); margin-bottom: 0.75rem; }
.section-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 720px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

/* ── Stat Cards ──────────────────────────────────────────── */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: var(--border-vivid);
  box-shadow: var(--glow);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-color, var(--green-vivid));
}
.stat-card .label {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.stat-card .value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-card .sub {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.stat-card .trend {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  margin-top: 0.6rem;
}
.trend-up   { color: var(--green-vivid); }
.trend-down { color: var(--coral); }

/* ── Panel / Card ────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.panel-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.panel h3 { color: var(--cream); margin-bottom: 0.75rem; }

/* ── Chart Wrapper ───────────────────────────────────────── */
.chart-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.chart-title {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}
.chart-headline {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--cream);
  margin-bottom: 0.25rem;
}
.chart-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  font-style: italic;
}
.chart-container { position: relative; }

/* ── Data Tables ─────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}
.data-table th {
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid rgba(130,180,80,0.07);
  color: var(--text-primary);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(74,140,40,0.04); }
.data-table .num {
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  text-align: right;
}
.data-table .rank {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  width: 2rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
}
.pill-green  { background: rgba(74,140,40,0.12);  color: #2d6e10; }
.pill-gold   { background: rgba(160,124,26,0.12); color: #7a5c08; }
.pill-teal   { background: rgba(30,140,112,0.12); color: #116650; }
.pill-amber  { background: rgba(184,101,26,0.12); color: #884010; }
.pill-coral  { background: rgba(192,64,48,0.12);  color: #962018; }

/* Bar Spark */
.bar-spark {
  display: flex; align-items: center; gap: 0.5rem;
}
.bar-spark .bar {
  height: 6px;
  border-radius: 100px;
  background: var(--green-vivid);
  opacity: 0.7;
  transition: width 0.4s ease;
}
.bar-spark .pct {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ── State Grid Cards ────────────────────────────────────── */
.state-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: all 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 8px rgba(0,0,0,0.05);
}
.state-card:hover {
  border-color: var(--border-vivid);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.state-card .abbr {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.state-card .name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0.15rem 0;
}
.state-card .rev {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.state-card .status {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}
.state-card .dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.dot-rec  { background: var(--green-vivid); }
.dot-med  { background: var(--gold); }
.dot-dec  { background: var(--amber); }

.state-card .bar-bottom {
  position: absolute; bottom: 0; left: 0;
  height: 2px;
  background: var(--green-vivid);
  opacity: 0.5;
}

/* ── Product Type Tiles ──────────────────────────────────── */
.product-tile {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.2s;
}
.product-tile:hover {
  border-color: var(--border-vivid);
  box-shadow: var(--glow);
}
.product-tile .icon {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
}
.product-tile .pname {
  font-weight: 600;
  color: var(--cream);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}
.product-tile .share {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-accent);
}
.product-tile .share-label {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.product-tile .trend-tag {
  margin-top: 0.5rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
}

/* ── Brand Cards ─────────────────────────────────────────── */
.brand-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 0.2s;
}
.brand-card:hover { border-color: var(--border-vivid); }
.brand-card .bname {
  font-weight: 600;
  color: var(--cream);
  font-size: 0.95rem;
}
.brand-card .bstate {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.brand-card .bsales {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: var(--gold-light);
  font-weight: 700;
}
.brand-card .bstrain {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* ── Packaging Section ───────────────────────────────────── */
.pkg-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.pkg-item h4 { color: var(--cream); margin-bottom: 0.5rem; }
.pkg-item p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.6; }
.pkg-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }

/* ── Factors ─────────────────────────────────────────────── */
.factor-item {
  display: flex; gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}
.factor-item:last-child { border-bottom: none; }
.factor-num {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding-top: 0.25rem;
  flex-shrink: 0;
  width: 2rem;
}
.factor-body h4 { color: var(--cream); font-size: 0.95rem; margin-bottom: 0.25rem; }
.factor-body p  { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.65; }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem;
}
.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
}
.footer-brand span { color: var(--green-vivid); }
.footer-tagline { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; }
.footer-bottom {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .container { padding: 0 1rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .panel { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-meta { gap: 1.25rem; }
  .hero-meta-item strong { font-size: 1.3rem; }
}
