/* ============================================================
   ZenWeedGuide.com — Global Stylesheet v2
   Mobile-First. 360px → 1440px.
   ============================================================ */

:root {
  --primary: #2d7a3a;
  --primary-dark: #1e5428;
  --primary-light: #3d9a4e;
  --accent: #4caf50;
  --gold: #f4c430;
  --dark: #111827;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f7fdf8;
  --bg-card: #ffffff;
  --border: #d1e8d5;
  --section-bg: #f0f8f2;
  --red: #dc2626;
  --blue: #2563eb;
  --nav-h: 60px;
  --radius: 10px;
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow: 0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 6px 28px rgba(0,0,0,0.14);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  padding-top: var(--nav-h);
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--primary); text-decoration: none; touch-action: manipulation; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, [role="button"] { touch-action: manipulation; cursor: pointer; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px)  { .container { padding: 0 20px; } }
@media (min-width: 1024px) { .container { padding: 0 28px; } }

/* ── NAV ── */
.main-nav {
  background: var(--dark);
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1100;
  border-bottom: 3px solid var(--accent);
  height: var(--nav-h);
  box-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.logo {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 800;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap; flex-shrink: 0;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--accent); text-decoration: none; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.18s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; background: var(--primary); text-decoration: none; }
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.2rem;
  margin-left: auto;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.menu-toggle:hover { border-color: var(--accent); }

@media (max-width: 1023px) {
  .menu-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: #0f1117;
    flex-direction: column;
    padding: 12px 16px 32px;
    gap: 2px;
    overflow-y: auto;
    z-index: 999;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 16px;
    font-size: 1rem;
    border-radius: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    min-height: 52px;
    display: flex; align-items: center;
  }
}

/* ── HERO — full-bleed media hero ── */
.hero-media,
.section-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f1f10 0%, #1a3a1f 100%);
}
.hero-media video,
.hero-media-img,
.section-hero video,
.section-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-media-overlay,
.section-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    150deg,
    rgba(0,0,0,0.82) 0%,
    rgba(10,30,15,0.72) 50%,
    rgba(0,0,0,0.40) 100%
  );
  z-index: 1;
}
.hero-media-content,
.section-hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 0 40px;
}
@media (min-width: 640px) {
  .hero-media-content, .section-hero-content { padding: 64px 0 52px; }
}
@media (min-width: 1024px) {
  .hero-media-content, .section-hero-content { padding: 88px 0 68px; }
}

/* Heights */
.hero-media  { min-height: 520px; display: flex; flex-direction: column; justify-content: center; }
.section-hero { min-height: 300px; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 640px)  { .hero-media { min-height: 580px; } .section-hero { min-height: 340px; } }
@media (min-width: 1024px) { .hero-media { min-height: 640px; } .section-hero { min-height: 380px; } }

/* Hero typography */
.hero-media-content h1,
.section-hero-content h1 {
  text-shadow: 0 2px 16px rgba(0,0,0,0.5);
}
.hero-sub {
  font-size: clamp(0.9rem, 2.2vw, 1.1rem);
  color: rgba(255,255,255,0.85);
  max-width: 580px;
  margin-bottom: 28px;
  line-height: 1.65;
}

/* ── HOMEPAGE ── */
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (min-width: 640px) { .hero-chips { gap: 10px; } }
.hero-chip {
  background: rgba(76,175,80,0.18);
  border: 1px solid rgba(76,175,80,0.38);
  color: rgba(255,255,255,0.88);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  min-height: 36px;
  display: inline-flex; align-items: center;
}
@media (min-width: 640px) { .hero-chip { padding: 8px 16px; font-size: 0.85rem; } }
.hero-chip:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: none; transform: translateY(-1px); }

.search-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
@media (min-width: 480px) { .search-bar { flex-direction: row; max-width: 520px; } }
.search-bar input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 8px;
  border: none;
  font-size: 1rem;
  width: 100%;
  box-shadow: 0 0 0 2px rgba(76,175,80,0.3);
  outline: none;
  transition: box-shadow 0.2s;
}
.search-bar input:focus { box-shadow: 0 0 0 3px rgba(76,175,80,0.55); }
.search-bar button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  min-height: 48px;
  transition: background 0.18s, transform 0.1s;
  letter-spacing: 0.02em;
}
.search-bar button:hover { background: var(--primary); transform: translateY(-1px); }
@media (min-width: 480px) { .search-bar button { width: auto; } }

/* inline hero override (generated pages use height:300px inline) */
article [style*="height:300px"],
article [style*="height: 300px"] {
  height: auto !important;
  min-height: 220px;
  padding: 32px 0 !important;
}
@media (min-width: 640px) {
  article [style*="height:300px"],
  article [style*="height: 300px"] { min-height: 280px; }
}

/* ── BREADCRUMBS ── */
.breadcrumbs { font-size: 0.8rem; color: var(--text-light); margin-bottom: 16px; line-height: 1.5; }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs a:hover { text-decoration: underline; }

/* ── STAT CARDS ── */
.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
@media (min-width: 480px) { .stat-cards { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; } }
@media (min-width: 768px) { .stat-cards { gap: 16px; } }
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
@media (min-width: 640px) { .stat-card { padding: 20px; } }
.stat-num { font-size: 1.4rem; font-weight: 900; color: var(--primary); line-height: 1.2; }
@media (min-width: 640px) { .stat-num { font-size: 1.65rem; } }
@media (min-width: 768px) { .stat-num { font-size: 1.8rem; } }
.stat-lbl { font-size: 0.72rem; color: var(--text-light); margin-top: 5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ── SECTIONS ── */
.section { margin: 32px 0; }
@media (min-width: 768px) { .section { margin: 44px 0; } }
.section-header { border-bottom: 2px solid var(--border); padding-bottom: 10px; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.section-header h2 { font-size: 1.2rem; font-weight: 800; color: var(--dark); }
.section-header h2::before { content: ''; display: inline-block; width: 4px; height: 1.2em; background: var(--primary); border-radius: 2px; margin-right: 10px; vertical-align: middle; position: relative; top: -1px; }
@media (min-width: 640px) { .section-header h2 { font-size: 1.35rem; } }
@media (min-width: 768px) { .section-header h2 { font-size: 1.45rem; } }
.section p { margin-bottom: 14px; line-height: 1.75; }

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: rgba(45,122,58,0.35); text-decoration: none; }
.card-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 20px 0; }
@media (min-width: 480px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; } }

/* ── SCROLL ROW (Strain Cards) ── */
.scroll-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 480px) { .scroll-row { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; } }
@media (min-width: 768px) { .scroll-row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }

.scroll-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.scroll-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--primary);
  text-decoration: none;
}
.scroll-card:active { transform: scale(0.98); }

.scroll-card-body { padding: 12px; }
@media (min-width: 640px) { .scroll-card-body { padding: 14px; } }
.sc-label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  margin-bottom: 5px;
}
.scroll-card h3 { font-size: 0.88rem; font-weight: 700; line-height: 1.3; color: var(--dark); }

/* Scroll card image area — works with emoji, img, or colored div */
.scroll-card-img {
  height: 110px;
  background: linear-gradient(135deg, #1a3a1f 0%, #2d7a3a 60%, #4caf50 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  position: relative;
  overflow: hidden;
}
@media (min-width: 640px) { .scroll-card-img { height: 130px; } }

/* Subtle shimmer on card image area */
.scroll-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
}

/* Actual img tags inside scroll cards */
.scroll-card img,
.strain-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}
@media (min-width: 640px) { .scroll-card img, .strain-card-img { height: 130px; } }

/* ── KEY FINDINGS BOX ── */
.key-findings {
  background: #f0f8f2;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
}
@media (min-width: 640px) { .key-findings { padding: 22px 26px; } }
.key-findings-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 12px;
}
.key-findings ul { padding-left: 18px; }
.key-findings li { margin-bottom: 7px; line-height: 1.6; font-size: 0.9rem; }
@media (min-width: 640px) { .key-findings li { font-size: 1rem; } }

/* ── TAGS ── */
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.tag {
  background: var(--section-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--text);
  transition: border-color 0.15s;
}
.tag:hover { border-color: var(--primary); }
@media (min-width: 640px) { .tag { padding: 5px 12px; font-size: 0.78rem; } }
.tag.indica { background: #ede9fe; border-color: #8b5cf6; color: #5b21b6; }
.tag.sativa { background: #fef3c7; border-color: #f59e0b; color: #92400e; }
.tag.hybrid { background: #dcfce7; border-color: var(--accent); color: var(--primary-dark); }
.tag.effect { background: #f0f8f2; border-color: var(--border); }
.tag.flavor { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

/* ── RELATED BOX ── */
.related-box {
  background: rgba(45,122,58,0.04);
  border: 1px solid rgba(45,122,58,0.2);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin: 24px 0;
}
@media (min-width: 640px) { .related-box { padding: 20px 24px; } }
.related-box-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary);
  margin-bottom: 10px;
}
.related-box a {
  display: flex;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  min-height: 44px;
  transition: color 0.15s, padding-left 0.15s;
}
.related-box a:hover { color: var(--primary-dark); padding-left: 6px; text-decoration: none; }
.related-box a:last-child { border-bottom: none; }

/* ── STATUS BADGES ── */
.status-badge { display: inline-block; padding: 4px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 700; }
.status-recreational { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.status-medical      { background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; }
.status-decriminalized { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.status-illegal      { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── TABLES ── */
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.875rem; }
.data-table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-size: 0.82rem; }
.data-table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.data-table tr:nth-child(even) td { background: var(--section-bg); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 16px 0; border-radius: 8px; border: 1px solid var(--border); }
.table-wrap .data-table { margin: 0; }

article table:not(.data-table) {
  width: 100%; border-collapse: collapse; font-size: 0.875rem;
  display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%;
}
@media (min-width: 768px) { article table:not(.data-table) { display: table; overflow: visible; } }
article table th { background: var(--primary); color: #fff; padding: 10px 12px; text-align: left; font-size: 0.82rem; }
article table td { padding: 9px 12px; border-bottom: 1px solid var(--border); }
article table tr:nth-child(even) td { background: var(--section-bg); }

/* ── ARTICLE ── */
article { font-size: 15px; }
@media (min-width: 640px) { article { font-size: 16px; } }
article p { margin-bottom: 16px; line-height: 1.8; }
article h1 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; line-height: 1.2; color: var(--dark); }
article h2 { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 800; margin: 32px 0 12px; color: var(--dark); padding-bottom: 8px; border-bottom: 2px solid var(--border); }
article h3 { font-size: clamp(1rem, 2.5vw, 1.15rem); font-weight: 700; margin: 22px 0 8px; color: var(--primary-dark); }
article ul, article ol { padding-left: 22px; margin-bottom: 16px; }
article li { margin-bottom: 7px; line-height: 1.7; }
@media (min-width: 768px) {
  article h2 { margin: 40px 0 14px; }
  article h3 { margin: 26px 0 10px; }
}

/* ── FIGURE ── */
figure { margin: 24px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
figure img { width: 100%; height: auto; border-radius: var(--radius); }
figcaption { font-size: 0.78rem; color: var(--text-light); padding: 8px 4px 0; line-height: 1.5; }

/* ── BLOCKQUOTE ── */
blockquote {
  margin: 24px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--accent);
  background: rgba(45,122,58,0.05);
  border-radius: 0 var(--radius) var(--radius) 0;
}
blockquote p { margin: 0; font-size: 1rem; font-style: italic; line-height: 1.7; color: var(--text); }
@media (min-width: 640px) { blockquote { padding: 20px 28px; } }

/* ── PRO TIP ── */
.pro-tip {
  background: #fff9e6;
  border: 1px solid #fcd34d;
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.9rem;
  line-height: 1.65;
}
@media (min-width: 640px) { .pro-tip { padding: 16px 22px; } }
.pro-tip strong { color: #92400e; }

/* ── PAGE HERO (legacy — simple non-media hero) ── */
.page-hero { position: relative; overflow: hidden; }
.page-hero-img { width: 100%; object-fit: cover; display: block; max-height: 340px; }
.page-hero-gradient { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.35) 100%); }
.page-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding-bottom: 24px; }
.page-hero-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 8px; }
.page-hero-h1 { font-size: clamp(1.4rem, 5vw, 2.6rem); font-weight: 900; color: #fff; line-height: 1.15; margin-bottom: 8px; }
.page-hero-sub { font-size: clamp(0.85rem, 2vw, 1rem); color: rgba(255,255,255,0.85); max-width: 600px; }

/* ── FOOTER ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  margin-top: 56px;
  padding: 44px 0 28px;
  border-top: 3px solid var(--primary);
}
@media (min-width: 768px) { .site-footer { margin-top: 72px; padding: 56px 0 28px; } }
.footer-logo { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 12px; display: block; }
.footer-desc { font-size: 0.85rem; line-height: 1.65; max-width: 100%; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 36px; }
@media (min-width: 768px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
@media (min-width: 1024px) { .footer-grid { gap: 48px; } }
.footer-grid h4 { color: #fff; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.55); font-size: 0.875rem; padding: 2px 0; display: inline-block; min-height: 28px; transition: color 0.15s; }
.footer-grid a:hover { color: var(--accent); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; font-size: 0.78rem; }

/* -- BUTTONS -- */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s, box-shadow 0.15s;
  box-shadow: 0 2px 8px rgba(45,122,58,0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,122,58,0.35);
}

/* -- MOBILE RESPONSIVENESS -- */
@media (max-width: 400px) { .scroll-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .stat-num { font-size: 1.2rem; } .stat-lbl { font-size: 0.68rem; }
  .stat-card { padding: 12px 8px; }
  .card-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .key-findings { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .section-hero-content { padding: 32px 0 28px; }
  .hero-media-content { padding: 36px 0 30px; }
  .hero-sub { font-size: 0.875rem; margin-bottom: 20px; }
}
@media (max-width: 640px) {
  .scroll-card-body { padding: 10px 12px 12px; }
  .scroll-card h3 { font-size: 0.85rem; }
  .sc-label { font-size: 0.62rem; }
}
.related-box a::after { content: ' →'; opacity: 0.6; }
.related-box a:hover::after { opacity: 1; }
.table-wrap { position: relative; }
