/*
Theme Name: Biogemz
Theme URI: https://biogemz.example
Author: Biogemz Team
Author URI: https://biogemz.example
Description: A modern WordPress theme for Biogemz — a biodiversity-preservation real estate platform enabling fractional land ownership, carbon & biodiversity credit revenue, DAO governance, and institutional ESG partnerships. No crypto knowledge required.
Version: 2.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: biogemz
Tags: ecology, esg, marketplace, custom-colors, full-width-template
*/

:root {
  --biogemz-forest: #10412e;
  --biogemz-leaf: #2f9e6c;
  --biogemz-gold: #d9a441;
  --biogemz-cream: #f7f5ef;
  --biogemz-ink: #16241d;
  --biogemz-mist: #e7f0e9;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--biogemz-ink);
  background: var(--biogemz-cream);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--biogemz-forest);
  line-height: 1.2;
  margin-top: 0;
}

a { color: var(--biogemz-leaf); text-decoration: none; }
a:hover { color: var(--biogemz-forest); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,245,239,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(16,65,46,0.1);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.site-logo { font-family: 'Fraunces', serif; font-size: 1.5rem; font-weight: 700; color: var(--biogemz-forest); display:flex; align-items:center; gap:8px; }
.site-logo .dot { color: var(--biogemz-gold); }
.main-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--biogemz-ink); font-weight: 500; font-size: 0.95rem; }
.header-cta { display: flex; gap: 12px; align-items: center; }

.btn {
  display: inline-block; padding: 12px 24px; border-radius: 999px;
  font-weight: 600; font-size: 0.9rem; cursor: pointer; border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--biogemz-leaf); color: #fff; box-shadow: 0 4px 14px rgba(47,158,108,0.35); }
.btn-primary:hover { background: var(--biogemz-forest); color:#fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--biogemz-forest); color: var(--biogemz-forest); }
.btn-gold { background: var(--biogemz-gold); color: var(--biogemz-forest); }
.btn-sm { padding: 8px 16px; font-size: 0.8rem; }

/* Hero */
.hero {
  padding: 90px 0 70px;
  background: linear-gradient(160deg, var(--biogemz-mist) 0%, var(--biogemz-cream) 60%);
  overflow: hidden; position: relative;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p.lede { font-size: 1.15rem; color: #3d4d43; max-width: 520px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats .stat-num { font-size: 1.6rem; font-weight: 700; color: var(--biogemz-forest); font-family: 'Fraunces', serif; }
.hero-stats .stat-label { font-size: 0.8rem; color: #6b7a70; }
.hero-visual { border-radius: 20px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(16,65,46,0.3); }
.hero-visual img { width: 100%; display: block; }

/* Badge strip */
.badge-strip { background: var(--biogemz-forest); color: #fff; padding: 12px 0; font-size: 0.82rem; }
.badge-strip .container { display: flex; gap: 36px; justify-content: center; flex-wrap: wrap; opacity: 0.9; }

/* Sections */
.section { padding: 76px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; color: var(--biogemz-leaf); font-weight: 700; margin-bottom: 10px; display:block; }
.section-alt { background: #fff; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.card {
  background: #fff; border-radius: var(--radius); padding: 28px;
  border: 1px solid rgba(16,65,46,0.08); box-shadow: 0 2px 8px rgba(16,65,46,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(16,65,46,0.1); }
.card .icon { font-size: 1.8rem; margin-bottom: 14px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: #4a5b50; font-size: 0.93rem; margin: 0; }

/* Listing / marketplace card */
.listing-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(16,65,46,0.08); box-shadow: 0 2px 10px rgba(16,65,46,0.05); }
.listing-media { position: relative; height: 190px; background-size: cover; background-position: center; }
.listing-media .tag { position: absolute; top: 12px; left: 12px; background: rgba(255,255,255,0.92); padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; color: var(--biogemz-forest); }
.listing-media .score { position: absolute; top: 12px; right: 12px; background: var(--biogemz-forest); color:#fff; padding: 4px 12px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.listing-body { padding: 20px; }
.listing-body h3 { font-size: 1.05rem; margin-bottom: 6px; }
.listing-meta { display: flex; justify-content: space-between; font-size: 0.8rem; color: #6b7a70; margin-bottom: 14px; }
.progress-track { height: 8px; background: var(--biogemz-mist); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--biogemz-leaf), var(--biogemz-gold)); }
.progress-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: #6b7a70; margin-bottom: 16px; }
.listing-figures { display: flex; justify-content: space-between; border-top: 1px solid var(--biogemz-mist); padding-top: 14px; margin-top: 4px; }
.listing-figures div { text-align: left; }
.listing-figures .num { font-weight: 700; color: var(--biogemz-forest); font-family: 'Fraunces', serif; font-size: 1.05rem; }
.listing-figures .lbl { font-size: 0.72rem; color: #6b7a70; }

/* Table */
.biogemz-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(16,65,46,0.05); }
.biogemz-table th { background: var(--biogemz-forest); color: #fff; text-align: left; padding: 14px 18px; font-size: 0.82rem; }
.biogemz-table td { padding: 14px 18px; border-bottom: 1px solid var(--biogemz-mist); font-size: 0.9rem; }
.biogemz-table tr:last-child td { border-bottom: none; }

/* Wallet */
.wallet-panel { background: linear-gradient(135deg, var(--biogemz-forest), #0b2e1f); color: #fff; border-radius: 20px; padding: 36px; }
.wallet-balance { font-size: 2.4rem; font-family: 'Fraunces', serif; font-weight: 700; }
.wallet-sub { opacity: 0.75; font-size: 0.88rem; }
.wallet-tabs { display: flex; gap: 8px; margin: 24px 0; }
.wallet-tab { padding: 8px 18px; border-radius: 999px; background: rgba(255,255,255,0.1); font-size: 0.82rem; cursor: pointer; }
.wallet-tab.active { background: var(--biogemz-gold); color: var(--biogemz-forest); font-weight: 700; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.step-num { width: 40px; height: 40px; border-radius: 50%; background: var(--biogemz-leaf); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 14px; }

/* Institutional / ESG band */
.esg-band { background: var(--biogemz-forest); color: #fff; border-radius: 24px; padding: 56px; }
.esg-band h2 { color: #fff; }
.esg-band p { color: rgba(255,255,255,0.8); }
.logo-row { display: flex; gap: 28px; flex-wrap: wrap; opacity: 0.7; margin-top: 24px; font-size: 0.85rem; }

/* Forms */
.form-panel { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid rgba(16,65,46,0.08); }
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; color: var(--biogemz-forest); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #dbe5de; font-size: 0.9rem; font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus { outline: none; border-color: var(--biogemz-leaf); }

/* Pricing / tiers */
.tier-card { border-radius: var(--radius); padding: 32px; border: 2px solid var(--biogemz-mist); background: #fff; }
.tier-card.featured { border-color: var(--biogemz-gold); position: relative; }
.tier-card.featured::before { content: "Limited Allocation"; position: absolute; top: -12px; right: 24px; background: var(--biogemz-gold); color: var(--biogemz-forest); font-size: 0.7rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.tier-price { font-size: 2rem; font-family: 'Fraunces', serif; color: var(--biogemz-forest); margin: 12px 0; }
.tier-card ul { padding-left: 18px; font-size: 0.88rem; color: #4a5b50; }

/* Footer */
.site-footer { background: var(--biogemz-forest); color: rgba(255,255,255,0.75); padding: 60px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.86rem; }
.site-footer a { color: rgba(255,255,255,0.75); }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px; font-size: 0.78rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .hero-grid, .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}
