/* ============================================================
   HERBCEO.COM — RETRO CANNABIS DIRECTORY
   Inspired by old seedfinder.eu — dense, editorial, functional
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Bitter:ital,wght@0,400;0,600;0,700;1,400&family=Source+Sans+3:wght@400;500;600&display=swap');

:root {
  --cream:        #f5f0e8;
  --cream-dark:   #ede7d9;
  --cream-darker: #e0d8c8;
  --ink:          #1e1e18;
  --ink-mid:      #3d3d30;
  --ink-light:    #6b6b58;
  --green:        #2d5a27;
  --green-light:  #3d7a35;
  --green-pale:   #e8f0e6;
  --amber:        #b85c00;
  --amber-pale:   #fdf0e0;
  --rule:         #c8c0aa;
  --tag-bg:       #ddd8cc;
  --white:        #ffffff;
  --font-body:    'Source Sans 3', Georgia, serif;
  --font-head:    'Bitter', Georgia, serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--cream); color: var(--ink); font-family: var(--font-body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-light); text-decoration: underline; }
img { max-width: 100%; display: block; }
p { margin-bottom: 1rem; }

/* HEADER */
.site-header { background: var(--green); border-bottom: 3px solid var(--amber); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 54px; }
.site-brand { display: flex; flex-direction: column; text-decoration: none; }
.site-name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1; }
.site-tagline { font-family: var(--font-mono); font-size: 0.58rem; color: rgba(255,255,255,0.55); letter-spacing: 0.12em; text-transform: uppercase; margin-top: 2px; }
.main-nav { display: flex; gap: 1.25rem; align-items: center; }
.main-nav a { color: rgba(255,255,255,0.82); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.main-nav a:hover, .main-nav a.active { color: #fff; border-bottom-color: var(--amber); text-decoration: none; }

/* FOOTER */
.site-footer { background: var(--ink); border-top: 3px solid var(--amber); color: rgba(255,255,255,0.5); font-size: 0.78rem; padding: 1.75rem; text-align: center; margin-top: 3rem; }
.site-footer a { color: rgba(255,255,255,0.65); }
.site-footer a:hover { color: #fff; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 0.6rem; flex-wrap: wrap; }

/* BREADCRUMB */
.breadcrumb { background: var(--cream-darker); border-bottom: 1px solid var(--rule); padding: 0.45rem 1.5rem; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.04em; }
.breadcrumb a { color: var(--ink-light); }
.breadcrumb a:hover { color: var(--green); text-decoration: none; }

/* LOADING / ERROR */
.no-results { text-align: center; padding: 4rem 2rem; color: var(--ink-light); }
.no-results h2 { font-family: var(--font-head); font-size: 1.2rem; color: var(--ink-mid); margin-bottom: 0.5rem; }

/* TAGS */
.tag { display: inline-block; background: var(--tag-bg); color: var(--ink-mid); font-family: var(--font-mono); font-size: 0.62rem; padding: 0.15rem 0.45rem; border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em; }
.tag.green { background: var(--green-pale); color: var(--green); }
.tag.amber { background: var(--amber-pale); color: var(--amber); }

/* PAGINATION */
.pagination { display: flex; justify-content: center; gap: 0.35rem; padding: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 0.5rem; border: 1px solid var(--rule); border-radius: 2px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-mid); background: var(--white); display: inline-flex; align-items: center; justify-content: center; transition: border-color 0.15s; }
.pagination a:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.pagination .active { background: var(--green); color: #fff; border-color: var(--green); }
.pagination .disabled { color: var(--rule); border-color: var(--rule); }

/* LISTING CARD */
.listing-card { display: block; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 1rem 1.25rem; text-decoration: none; color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s; }
.listing-card:hover { border-color: var(--green); box-shadow: 0 2px 8px rgba(30,30,24,0.08); text-decoration: none; color: var(--ink); }
.listing-card-name { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--green); margin-bottom: 0.15rem; line-height: 1.2; }
.listing-card:hover .listing-card-name { color: var(--green-light); }
.listing-card-dba { font-size: 0.78rem; color: var(--ink-light); font-style: italic; margin-bottom: 0.4rem; }
.listing-card-meta { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.4rem; }
.listing-card-location { font-size: 0.78rem; color: var(--ink-light); margin-top: 0.35rem; }

/* LISTING GRID */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0.85rem; }

/* ARCHIVE HEADER */
.archive-header { background: var(--green); padding: 2.5rem 1.5rem; border-bottom: 3px solid var(--amber); }
.archive-header-inner { max-width: 1200px; margin: 0 auto; }
.archive-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.archive-tagline { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin: 0; }
.archive-meta { font-family: var(--font-mono); font-size: 0.7rem; color: rgba(255,255,255,0.5); margin-top: 0.5rem; }

.listing-grid-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

/* CATEGORY / STATE CARD GRIDS (hubs) */
.hc-cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
.hc-cat-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.8rem 0.4rem 0.65rem; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; color: var(--ink); transition: border-color 0.15s, background 0.15s; }
.hc-cat-card:hover { border-color: var(--green); background: var(--green-pale); text-decoration: none; }
.hc-cat-icon { font-size: 1.4rem; line-height: 1; margin-bottom: 0.3rem; }
.hc-cat-name { font-size: 0.72rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.2rem; color: var(--ink); }
.hc-cat-count { font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-light); }

.hc-state-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.hc-state-pill { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.4rem 1rem; background: var(--white); border: 1px solid var(--rule); border-radius: 2px; font-size: 0.84rem; color: var(--ink-mid); text-decoration: none; transition: border-color 0.15s, color 0.15s; }
.hc-state-pill:hover { border-color: var(--green); color: var(--green); text-decoration: none; }
.hc-sc { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-light); }

.hc-section-header { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--green); padding-bottom: 0.35rem; margin-bottom: 1rem; margin-top: 2rem; }
.hc-content > .hc-section-header:first-child { margin-top: 0; }
.hc-section-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: 0.04em; }
.hc-section-more { font-family: var(--font-mono); font-size: 0.7rem; color: var(--green); text-decoration: none; }
.hc-section-more:hover { text-decoration: underline; }

/* HOMEPAGE HERO */
.hc-hero { background: var(--green); padding: 3.5rem 1.5rem 3rem; }
.hc-hero-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.hc-hero h1 { color: #fff; font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem; }
.hc-hero-sub { color: rgba(255,255,255,0.8); font-size: 1rem; margin-bottom: 1.75rem; line-height: 1.5; }
.hc-browse-hint { font-size: 0.82rem; color: rgba(255,255,255,0.6); }
.hc-browse-hint a { color: rgba(255,255,255,0.85); text-decoration: underline; }

.hc-stats { background: var(--cream-darker); border-bottom: 1px solid var(--rule); padding: 0.55rem 1.5rem; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-mid); }
.hc-stats strong { color: var(--ink); font-weight: 600; }

.hc-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

.hc-cta { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; background: var(--amber-pale); border: 1px solid var(--amber); border-left: 4px solid var(--amber); border-radius: 3px; padding: 1.25rem 1.5rem; margin-top: 2rem; }
.hc-cta-text { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--amber); margin-bottom: 0.2rem; }
.hc-cta-sub { font-size: 0.82rem; color: var(--ink-mid); }
.hc-cta-btn { background: var(--amber); color: #fff; padding: 0.65rem 1.4rem; border-radius: 3px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; transition: background 0.15s; }
.hc-cta-btn:hover { background: #9e4f00; text-decoration: none; }

/* LISTING DETAIL */
.listing-wrap { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }
.listing-title { font-family: var(--font-head); font-size: 1.8rem; font-weight: 700; color: var(--ink); margin-bottom: 0.15rem; }
.listing-dba { font-size: 0.9rem; color: var(--ink-light); font-style: italic; margin-bottom: 0.75rem; }
.listing-cats { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.listing-cat-badge { display: inline-flex; align-items: center; background: var(--green-pale); color: var(--green); border: 1px solid var(--green); border-radius: 2px; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem; text-decoration: none; }
.listing-cat-badge:hover { background: var(--green); color: #fff; text-decoration: none; }
.listing-cat-badge.state { background: var(--amber-pale); color: var(--amber); border-color: var(--amber); }
.listing-narrative { font-size: 0.95rem; line-height: 1.75; color: var(--ink-mid); margin-bottom: 2rem; }
.listing-narrative p { margin-bottom: 0.85rem; }

.hc-license-box { background: var(--amber-pale); border: 1px solid var(--amber); border-left: 4px solid var(--amber); border-radius: 3px; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.hc-license-box h4 { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amber); margin-bottom: 0.75rem; }
.hc-license-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.hc-license-table tr { border-bottom: 1px dotted var(--rule); }
.hc-license-table tr:last-child { border-bottom: none; }
.hc-license-table td { padding: 0.3rem 0; vertical-align: top; }
.hc-license-table td:first-child { color: var(--ink-light); width: 40%; font-size: 0.75rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.03em; }
.hc-license-table td:last-child { color: var(--ink); font-weight: 500; }

.listing-contact-box { background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 1.25rem; margin-bottom: 1rem; }
.listing-contact-box h4 { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-light); margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--rule); }
.contact-row { display: flex; gap: 0.6rem; font-size: 0.85rem; color: var(--ink-mid); margin-bottom: 0.5rem; align-items: flex-start; }
.contact-label { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.04em; min-width: 60px; padding-top: 1px; }

.listing-nav { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.82rem; }
.listing-nav a { color: var(--green); text-decoration: none; max-width: 45%; }
.listing-nav a:hover { text-decoration: underline; }
.listing-nav-label { font-family: var(--font-mono); font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-light); display: block; margin-bottom: 0.2rem; }

/* BLOG POST */
.post-wrap { max-width: 780px; margin: 0 auto; padding: 2rem 1.5rem; }
.post-title { font-family: var(--font-head); font-size: 2rem; font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 0.5rem; }
.post-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--green); }
.post-content { font-size: 1rem; line-height: 1.75; color: var(--ink-mid); }
.post-content p { margin-bottom: 1.1rem; }
.post-nav { display: flex; justify-content: space-between; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); font-size: 0.85rem; }
.post-nav a { color: var(--green); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

.post-card { display: block; background: var(--white); border: 1px solid var(--rule); border-radius: 3px; padding: 1.25rem; text-decoration: none; color: var(--ink); margin-bottom: 0.85rem; transition: border-color 0.15s; }
.post-card:hover { border-color: var(--green); text-decoration: none; }
.post-card-title { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; color: var(--green); margin-bottom: 0.25rem; }
.post-card-meta { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.5rem; }
.post-card-excerpt { font-size: 0.88rem; color: var(--ink-mid); }

/* RESPONSIVE */
@media (max-width: 900px) { .listing-wrap { grid-template-columns: 1fr; } .hc-cat-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px) {
  .header-inner { padding: 0 1rem; }
  .main-nav { gap: 0.85rem; }
  .main-nav a { font-size: 0.7rem; }
  .listing-grid-wrap { padding: 1rem; }
  .archive-title { font-size: 1.4rem; }
  .hc-hero { padding: 2rem 1rem; }
  .hc-hero h1 { font-size: 1.5rem; }
  .hc-main { padding: 1rem; }
  .listing-wrap { padding: 1rem; }
  .listing-title { font-size: 1.4rem; }
  .hc-cat-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 480px) {
  .listing-grid { grid-template-columns: 1fr; }
  .main-nav .hide-mobile { display: none; }
  .hc-cat-grid { grid-template-columns: repeat(2,1fr); }
}
